imlib2-1.4.6/0000775000175000017500000000000012255306373007711 500000000000000imlib2-1.4.6/ltmain.sh0000644000175000017500000105152212255306300011443 00000000000000 # libtool (GNU libtool) 2.4.2 # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010, 2011 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. # GNU Libtool 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 # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --no-quiet, --no-silent # print informational messages (default) # --no-warn don't display warning messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print more informational messages than default # --no-verbose don't print the extra informational messages # --version print version information # -h, --help, --help-all print short, long, or detailed help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. When passed as first option, # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.4.2 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . # GNU libtool home page: . # General help using GNU software: . PROGRAM=libtool PACKAGE=libtool VERSION=2.4.2 TIMESTAMP="" package_revision=1.3337 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # NLS nuisances: We save the old values to restore during execute mode. lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL $lt_unset CDPATH # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" : ${CP="cp -f"} test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_dirname may be replaced by extended shell implementation # func_basename file func_basename () { func_basename_result=`$ECHO "${1}" | $SED "$basename"` } # func_basename may be replaced by extended shell implementation # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` } # func_dirname_and_basename may be replaced by extended shell implementation # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname may be replaced by extended shell implementation # These SED scripts presuppose an absolute path with a trailing slash. pathcar='s,^/\([^/]*\).*$,\1,' pathcdr='s,^/[^/]*,,' removedotparts=':dotsl s@/\./@/@g t dotsl s,/\.$,/,' collapseslashes='s@/\{1,\}@/@g' finalslash='s,/*$,/,' # func_normal_abspath PATH # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. # value returned in "$func_normal_abspath_result" func_normal_abspath () { # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` while :; do # Processed it all yet? if test "$func_normal_abspath_tpath" = / ; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result" ; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_relative_path SRCDIR DSTDIR # generates a relative path from SRCDIR to DSTDIR, with a trailing # slash if non-empty, suitable for immediately appending a filename # without needing to append a separator. # value returned in "$func_relative_path_result" func_relative_path () { func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=${func_dirname_result} if test "x$func_relative_path_tlibdir" = x ; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test "x$func_stripname_result" != x ; then func_relative_path_result=${func_relative_path_result}/${func_stripname_result} fi # Normalisation. If bindir is libdir, return empty string, # else relative path ending with a slash; either way, target # file name can be directly appended. if test ! -z "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result/" func_relative_path_result=$func_stripname_result fi } # The name of this program: func_dirname_and_basename "$progpath" progname=$func_basename_result # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' # Sed substitution that converts a w32 file name or path # which contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "$my_tmpdir" } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_tr_sh # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_version # Echo version message to standard output and exit. func_version () { $opt_debug $SED -n '/(C)/!b go :more /\./!{ N s/\n# / / b more } :go /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $opt_debug $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" echo $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help [NOEXIT] # Echo long help message to standard output and exit, # unless 'noexit' is passed as argument. func_help () { $opt_debug $SED -n '/^# Usage:/,/# Report bugs to/ { :print s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ p d } /^# .* home page:/b print /^# General help using/b print ' < "$progpath" ret=$? if test -z "$1"; then exit $ret fi } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $opt_debug func_error "missing argument for $1." exit_cmd=exit } # func_split_short_opt shortopt # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. func_split_short_opt () { my_sed_short_opt='1s/^\(..\).*$/\1/;q' my_sed_short_rest='1s/^..\(.*\)$/\1/;q' func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` } # func_split_short_opt may be replaced by extended shell implementation # func_split_long_opt longopt # Set func_split_long_opt_name and func_split_long_opt_arg shell # variables after splitting LONGOPT at the `=' sign. func_split_long_opt () { my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^--[^=]*=//' func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` } # func_split_long_opt may be replaced by extended shell implementation exit_cmd=: magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. nonopt= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "${1}=\$${1}\${2}" } # func_append may be replaced by extended shell implementation # func_append_quoted var value # Quote VALUE and append to the end of shell variable VAR, separated # by a space. func_append_quoted () { func_quote_for_eval "${2}" eval "${1}=\$${1}\\ \$func_quote_for_eval_result" } # func_append_quoted may be replaced by extended shell implementation # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "${@}"` } # func_arith may be replaced by extended shell implementation # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` } # func_len may be replaced by extended shell implementation # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` } # func_lo2o may be replaced by extended shell implementation # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` } # func_xform may be replaced by extended shell implementation # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Option defaults: opt_debug=: opt_dry_run=false opt_config=false opt_preserve_dup_deps=false opt_features=false opt_finish=false opt_help=false opt_help_all=false opt_silent=: opt_warning=: opt_verbose=: opt_silent=false opt_verbose=false # Parse options once, thoroughly. This comes as soon as possible in the # script to make things like `--version' happen as quickly as we can. { # this just eases exit handling while test $# -gt 0; do opt="$1" shift case $opt in --debug|-x) opt_debug='set -x' func_echo "enabling shell trace mode" $opt_debug ;; --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) opt_config=: func_config ;; --dlopen|-dlopen) optarg="$1" opt_dlopen="${opt_dlopen+$opt_dlopen }$optarg" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) opt_features=: func_features ;; --finish) opt_finish=: set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help_all=: opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_mode="$optarg" case $optarg in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_silent=false func_append preserve_args " $opt" ;; --no-warning|--no-warn) opt_warning=false func_append preserve_args " $opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $opt" ;; --silent|--quiet) opt_silent=: func_append preserve_args " $opt" opt_verbose=false ;; --verbose|-v) opt_verbose=: func_append preserve_args " $opt" opt_silent=false ;; --tag) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_tag="$optarg" func_append preserve_args " $opt $optarg" func_enable_tag "$optarg" shift ;; -\?|-h) func_usage ;; --help) func_help ;; --version) func_version ;; # Separate optargs to long options: --*=*) func_split_long_opt "$opt" set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-n*|-v*) func_split_short_opt "$opt" set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) set dummy "$opt" ${1+"$@"}; shift; break ;; esac done # Validate options: # save first non-option argument if test "$#" -gt 0; then nonopt="$opt" shift fi # preserve --debug test "$opt_debug" = : || func_append preserve_args " --debug" case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test "$opt_mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$opt_mode' for more information." } # Bail if the options were screwed $exit_cmd $EXIT_FAILURE } ## ----------- ## ## Main. ## ## ----------- ## # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case "$lt_sysroot:$1" in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result="=$func_stripname_result" ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$lt_sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $opt_debug # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result="" if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result" ; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $opt_debug if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $opt_debug # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $opt_debug if test -z "$2" && test -n "$1" ; then func_error "Could not determine host file name corresponding to" func_error " \`$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result="$1" fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $opt_debug if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " \`$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result="$3" fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $opt_debug case $4 in $1 ) func_to_host_path_result="$3$func_to_host_path_result" ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via `$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $opt_debug $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $opt_debug case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result="$1" } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result="$func_convert_core_msys_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via `$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $opt_debug if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd="func_convert_path_${func_stripname_result}" fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $opt_debug func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result="$1" } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_msys_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac echo $ECHO "Try \`$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test "$opt_help" = :; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | sed -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | sed '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "\`$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument \`$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and \`=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the \`-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the \`$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test "x$prev" = x-m && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename="" if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname" ; then func_basename "$dlprefile_dlname" dlprefile_dlbasename="$func_basename_result" else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename" ; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $opt_debug sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $opt_debug match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive which possess that section. Heuristic: eliminate # all those which have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $opt_debug if func_cygming_gnu_implib_p "$1" ; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1" ; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result="" fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" if test "$lock_old_archive_extraction" = yes; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test "$lock_old_archive_extraction" = yes; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ which is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options which match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include /* declarations of non-ANSI functions */ #if defined(__MINGW32__) # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined(__CYGWIN__) # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined (other platforms) ... */ #endif /* portability defines, excluding path handling macros */ #if defined(_MSC_VER) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC # ifndef _INTPTR_T_DEFINED # define _INTPTR_T_DEFINED # define intptr_t int # endif #elif defined(__MINGW32__) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined(__CYGWIN__) # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined (other platforms) ... */ #endif #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #if defined(LT_DEBUGWRAPPER) static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $opt_debug case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir="$arg" prev= continue ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps ; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." else echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test "$prefer_static_libs" = yes || test "$prefer_static_libs,$installed" = "built,no"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib="$l" done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$lt_sysroot$libdir" absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi case "$host" in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$absdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi func_append newlib_search_path " $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. func_append verstring ":${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$opt_mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test "X$deplibs_check_method" = "Xnone"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then # Remove ${wl} instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd1 in $cmds; do IFS="$save_ifs" # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test "$try_normal_branch" = yes \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=${output_objdir}/${output_la}.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " ${wl}-bind_at_load" func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=no ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" func_resolve_sysroot "$deplib" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test "x$bindir" != x ; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) func_append RM " $arg"; rmforce=yes ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then odir="$objdir" else odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" test "$opt_mode" = uninstall && odir="$dir" # Remember odir for removal later, being careful to avoid duplicates if test "$opt_mode" = clean; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case "$opt_mode" in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 imlib2-1.4.6/AUTHORS0000664000175000017500000000240612255265030010675 00000000000000The Rasterman (Carsten Haitzler) Ryan Gustafson Mandrake (Geoff Harrison) Willem Monsuwe KainX (Michael Jennings) Eric Dorland Chutt (Isaac Richards) giblet (Tom Gilbert) Takis Dan Maas Platon Fomichev boris (Chris Ross) Martin Grimm Matt McClanahan Steve Langasek Christophe Tronche Nathan Ingersoll Masa(Masahiko) Mori Term (Lyle Kempler) Adam Kisiel Carsten Pfeiffer Lightman (Franz Marini) Mark Bainter Brian Lindholm Renchi Raju Yuri Hudobin Radoslaw Grzanka Kim Woelders Nick Blievers Mike Castle R.Ramkumar Dmitry Antipov imlib2-1.4.6/imlib2.spec.in0000664000175000017500000001270412255265113012270 00000000000000Summary: Powerful image loading and rendering library Name: imlib2 Version: @VERSION@ Release: 0.%(date '+%Y%m%d') License: BSD Group: System Environment/Libraries URL: http://www.enlightenment.org Source: %{name}-%{version}.tar.gz Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings } Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)} Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} #BuildSuggests: XFree86-devel xorg-x11-devel freetype-devel freetype2-devel libungif-devel BuildRequires: /usr/bin/freetype-config /usr/include/gif_lib.h BuildRequires: libid3tag-devel Requires: %{name}-loader_jpeg = %{version} Requires: %{name}-loader_png = %{version} Requires: %{name}-loader_argb = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Imlib2 is an advanced replacement library for libraries like libXpm that provides many more features with much greater flexibility and speed than standard libraries, including font rasterization, rotation, RGBA space rendering and blending, dynamic binary filters, scripting, and more. %package devel Summary: Imlib2 headers, static libraries and documentation Group: System Environment/Libraries Requires: %{name} = %{version} Requires: /usr/bin/freetype-config %description devel Headers, static libraries and documentation for Imlib2. %package filters Summary: Imlib2 basic plugin filters set Group: System Environment/Libraries Requires: %{name} = %{version} %description filters Basic set of plugin filters that come with Imlib2 %package loader_lbm Summary: Imlib2 LBM loader Group: System Environment/Libraries %description loader_lbm LBM image loader/saver for Imlib2 %package loader_jpeg Summary: Imlib2 JPEG loader Group: System Environment/Libraries BuildRequires: libjpeg-devel %description loader_jpeg JPEG image loader/saver for Imlib2 %package loader_png Summary: Imlib2 PNG loader Group: System Environment/Libraries BuildRequires: libpng-devel BuildRequires: zlib-devel %description loader_png PNG image loader/saver for Imlib2 %package loader_argb Summary: Imlib2 ARGB loader Group: System Environment/Libraries %description loader_argb ARGB image loader/saver for Imlib2 %package loader_bmp Summary: Imlib2 BMP loader Group: System Environment/Libraries %description loader_bmp BMP image loader/saver for Imlib2 %package loader_gif Summary: Imlib2 GIF loader Group: System Environment/Libraries %description loader_gif GIF image loader for Imlib2 %package loader_pnm Summary: Imlib2 PNM loader Group: System Environment/Libraries %description loader_pnm PNM image loader/saver for Imlib2 %package loader_tga Summary: Imlib2 TGA loader Group: System Environment/Libraries %description loader_tga TGA image loader/saver for Imlib2 %package loader_tiff Summary: Imlib2 TIFF loader Group: System Environment/Libraries BuildRequires: libtiff-devel %description loader_tiff TIFF image loader/saver for Imlib2 %package loader_xpm Summary: Imlib2 XPM loader Group: System Environment/Libraries %description loader_xpm XPM image loader/saver for Imlib2 %package loader_bz2 Summary: Imlib2 .bz2 loader Group: System Environment/Libraries %description loader_bz2 Bzip2 compressed image loader/saver for Imlib2 %package loader_gz Summary: Imlib2 .gz loader Group: System Environment/Libraries %description loader_gz gz compressed image loader/saver for Imlib2 %package loader_id3 Summary: Imlib2 .id3 loader Group: System Environment/Libraries %description loader_id3 id3 tag image loader/saver for Imlib2 %prep %setup -q %build %{configure} --prefix=%{_prefix} \ %ifarch x86_64 --disable-mmx \ %endif %ifarch i386 i486 i586 i686 --enable-mmx \ %endif $RPM_CONFIGURE_OPTS %{__make} %{?_smp_mflags} %{?mflags} %install %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/filters/*.a %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/loaders/*.a %clean test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %postun /sbin/ldconfig %files %defattr(-, root, root) %doc AUTHORS COPYING COPYING-PLAIN README %dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/loaders %{_libdir}/lib*.so.* %files devel %defattr(-, root, root, 0755) %{_libdir}/*.so %{_libdir}/*.la %{_libdir}/*.a %{_libdir}/imlib2/*/*.la %{_bindir}/imlib2-config %{_libdir}/pkgconfig/* %{_includedir}/* %{_datadir}/%{name} %{_bindir}/imlib2_* %files filters %dir %{_libdir}/%{name}/filters %attr(755,root,root) %{_libdir}/imlib2/filters/*.so %files loader_lbm %attr(755,root,root) %{_libdir}/imlib2/loaders/lbm.so %files loader_jpeg %attr(755,root,root) %{_libdir}/imlib2/loaders/jpeg.so %files loader_png %attr(755,root,root) %{_libdir}/imlib2/loaders/png.so %files loader_argb %attr(755,root,root) %{_libdir}/imlib2/loaders/argb.so %files loader_bmp %attr(755,root,root) %{_libdir}/imlib2/loaders/bmp.so %files loader_gif %attr(755,root,root) %{_libdir}/imlib2/loaders/gif.so %files loader_pnm %attr(755,root,root) %{_libdir}/imlib2/loaders/pnm.so %files loader_tga %attr(755,root,root) %{_libdir}/imlib2/loaders/tga.so %files loader_tiff %attr(755,root,root) %{_libdir}/imlib2/loaders/tiff.so %files loader_xpm %attr(755,root,root) %{_libdir}/imlib2/loaders/xpm.so %files loader_bz2 %attr(755,root,root) %{_libdir}/imlib2/loaders/bz2.so %files loader_gz %attr(755,root,root) %{_libdir}/imlib2/loaders/zlib.so %files loader_id3 %attr(755,root,root) %{_libdir}/imlib2/loaders/id3.so %changelog imlib2-1.4.6/Makefile.in0000664000175000017500000007320112255306302011671 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/configure $(am__configure_deps) \ $(srcdir)/config.h.in $(srcdir)/imlib2.pc.in \ $(srcdir)/imlib2-config.in $(srcdir)/README.in \ $(srcdir)/imlib2.spec.in AUTHORS COPYING ChangeLog INSTALL \ TODO config.guess config.sub install-sh missing ltmain.sh ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = imlib2.pc imlib2-config README imlib2.spec CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)" SCRIPTS = $(bin_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 GZIP_ENV = --best DIST_TARGETS = dist-bzip2 dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 SUBDIRS = src data doc MAINTAINERCLEANFILES = aclocal.m4 config.guess config.h.in \ config.sub configure depcomp install-sh \ ltmain.sh Makefile.in missing imlib2_docs.tar.gz bin_SCRIPTS = imlib2-config EXTRA_DIST = AUTHORS COPYING COPYING-PLAIN gendoc \ Doxyfile \ README.in README \ imlib2.pc.in \ imlib2.spec.in imlib2.spec pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = imlib2.pc all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then rm -f stamp-h1; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 imlib2.pc: $(top_builddir)/config.status $(srcdir)/imlib2.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ imlib2-config: $(top_builddir)/config.status $(srcdir)/imlib2-config.in cd $(top_builddir) && $(SHELL) ./config.status $@ README: $(top_builddir)/config.status $(srcdir)/README.in cd $(top_builddir) && $(SHELL) ./config.status $@ imlib2.spec: $(top_builddir)/config.status $(srcdir)/imlib2.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(SCRIPTS) $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binSCRIPTS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binSCRIPTS uninstall-pkgconfigDATA .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ dist-xz dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-libtool distclean-tags distcleancheck \ distdir distuninstallcheck dvi dvi-am html html-am info \ info-am install install-am install-binSCRIPTS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-pkgconfigDATA install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-binSCRIPTS \ uninstall-pkgconfigDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/imlib2-config.in0000664000175000017500000000201612255265030012573 00000000000000#!/bin/sh prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix_set=no usage="\ Usage: imlib2-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]" if test $# -eq 0; then echo "${usage}" 1>&2 exit 1 fi while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo $prefix ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo $exec_prefix ;; --version) echo @VERSION@ ;; --cflags) if test @prefix@/include != /usr/include ; then includes="-I@prefix@/include" fi echo $includes ;; --libs) libdirs=-L@libdir@ echo $libdirs -lImlib2 @my_libs@ ;; *) echo "${usage}" 1>&2 exit 1 ;; esac shift done exit 0 imlib2-1.4.6/config.guess0000755000175000017500000013036112255306301012142 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-06-10' # 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. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # 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 Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner. # # 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,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. 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." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 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 #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 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 # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # 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} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # 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'` # 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 # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; 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" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *: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 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-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 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [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 # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system 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/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; 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 EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac 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-${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-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; 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-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 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 # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; 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 ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 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 [ "$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 i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: imlib2-1.4.6/imlib2.pc.in0000664000175000017500000000034112255265053011735 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: imlib2 Description: Powerful image loading and rendering library Version: @VERSION@ Libs: -L${libdir} -lImlib2 Cflags: -I${includedir} imlib2-1.4.6/config.sub0000755000175000017500000010531512255306301011606 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-04-24' # 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. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # 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 Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # 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. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) 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." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # 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-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 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -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 | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # 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 | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | 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 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 \ | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ | 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 \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) 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. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # 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-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | 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-* \ | 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-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | 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-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) 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 ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i386-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; 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 ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then 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|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # 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* | -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* \ | -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* | -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* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or1k-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: imlib2-1.4.6/README.in0000664000175000017500000000340312137523370011113 00000000000000Imlib2 @VERSION@ This is the Imlib 2 library - a library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support, etc. It does ALL of these operations FAST. Imlib2 also tries to be highly intelligent about doing them, so writing naive programs can be done easily, without sacrificing speed. This is a complete rewrite over the Imlib 1.x series. The architecture is more modular, simple, and flexible. See index.html in the doc/ directory for more information. Imlib2 requires several libraries to be already installed. These are: libjpeg http://www.ijg.org/ libpng http://www.libpng.org/pub/png/libpng.html freetype 2.1.x http://www.freetype.org/ For examples of this library in use, seek: Eterm http://www.eterm.org/ (CVS version only, currently) feh http://www.linuxbrit.co.uk/feh.html geist http://www.linuxbrit.co.uk/geist.html ------------------------------------------------------------------------------ COMPILING AND INSTALLING: ./configure make (as root unless youa re installing in your users directories): make install ------------------------------------------------------------------------------ BUILDING PACKAGES: RPM: To build rpm packages: sudo rpm -ta @PACKAGE@-@VERSION@.tar.gz You will find rpm packages in your system /usr/src/redhat/* dirs (note you may not need to use sudo or root if you have your own ~/.rpmrc. see rpm documents for more details) DEB: To build deb packages: tar zvf @PACKAGE@-@VERSION@.tar.gz cd @PACKAGE@-@VERSION@ dpkg-buildpackage -us -uc -rfakeroot cd .. rm -rf @PACKAGE@-@VERSION@ You will find all the debian source, binary etc. packages put in the directory where you first untarred the source tarball. imlib2-1.4.6/config.h.in0000664000175000017500000000444712255306316011662 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* enabling X11 support */ #undef BUILD_X11 /* enabling AMD64 Assembly */ #undef DO_AMD64_ASM /* enabling MMX Assembly */ #undef DO_MMX_ASM /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #endif /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING /* Define to empty if `const' does not conform to ANSI C. */ #undef const imlib2-1.4.6/gendoc0000775000175000017500000000060612255265065011022 00000000000000#!/bin/sh cp ./imlib2.c.in ./imlib2.c for I in `find ./src -name "api.c" -print`; do cat $I >> ./imlib2.c done #for I in `find ./src/lib -name "*.c" -print`; do # cat $I >> ./imlib2.c #done rm -rf ./doc/html ./doc/latex ./doc/man doxygen cp doc/img/* doc/html/ rm -f imlib2_docs.tar imlib2_docs.tar.gz tar -cvf imlib2_docs.tar doc/html doc/man doc/latex gzip -9 imlib2_docs.tar exit 0 imlib2-1.4.6/m4/0000775000175000017500000000000012255306372010230 500000000000000imlib2-1.4.6/m4/lt~obsolete.m40000644000175000017500000001375612255266744013006 00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) imlib2-1.4.6/m4/ltsugar.m40000644000175000017500000001042412255266744012102 00000000000000# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) imlib2-1.4.6/m4/ltversion.m40000644000175000017500000000126212255266744012446 00000000000000# ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 3337 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.2]) m4_define([LT_PACKAGE_REVISION], [1.3337]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2' macro_revision='1.3337' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) imlib2-1.4.6/m4/ac_warnflags.m40000664000175000017500000000176312255266600013047 00000000000000dnl Copyright (C) 2008 Kim Woelders dnl This code is public domain and can be freely used or copied. dnl Macro to set compiler warning flags dnl Provides configure argument --enable-werror to stop compilation on warnings dnl Usage: AC_C_WARNFLAGS([LANG]) dnl Set LANG to 'cpp' when compiling for C++ AC_DEFUN([AC_C_WARNFLAGS], [ define(ac_c_compile_cpp, ifelse([$1], [cpp], [yes], [no])) AC_ARG_ENABLE(werror, [ --enable-werror treat compiler warnings as errors @<:@default=no@:>@],, enable_werror=no) if test "x$GCC" = "xyes"; then CWARNFLAGS="-W -Wall -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings" dnl # ignore some warnings for now... CWARNFLAGS="$CWARNFLAGS -Wno-unused-parameter" ifelse(ac_c_compile_cpp, no, [ CWARNFLAGS="$CWARNFLAGS -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes" ],) if test "x$enable_werror" = "xyes"; then CWARNFLAGS="$CWARNFLAGS -Werror" fi fi AC_SUBST(CWARNFLAGS) ]) imlib2-1.4.6/m4/ltoptions.m40000644000175000017500000003007312255266744012456 00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, # Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 7 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) imlib2-1.4.6/m4/libtool.m40000644000175000017500000105756012255266744012102 00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool 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 (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 57 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # `#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test $lt_write_fail = 0 && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_REPLACE_SHELLFNS mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test "$lt_cv_ld_force_load" = "yes"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script which will find a shell with a builtin # printf (which we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case "$ECHO" in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified).], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([${with_sysroot}]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and in which our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; powerpcle-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS="$save_LDFLAGS"]) if test "$lt_cv_irix_exported_symbol" = yes; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ func_to_tool_file "$lt_outputfile"~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test "$pre_test_object_deps_done" = no; then case ${prev} in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" CFLAGS="$lt_save_CFLAGS" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) # ------------------------------------------------------ # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. m4_defun([_LT_PROG_FUNCTION_REPLACE], [dnl { sed -e '/^$1 ()$/,/^} # $1 /c\ $1 ()\ {\ m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: ]) # _LT_PROG_REPLACE_SHELLFNS # ------------------------- # Replace existing portable implementations of several shell functions with # equivalent extended shell implementations where those features are available.. m4_defun([_LT_PROG_REPLACE_SHELLFNS], [if test x"$xsi_shell" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"}]) _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl func_split_long_opt_name=${1%%=*} func_split_long_opt_arg=${1#*=}]) _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) fi if test x"$lt_shell_append" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl func_quote_for_eval "${2}" dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) fi ]) # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine which file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS imlib2-1.4.6/depcomp0000755000175000017500000005601612255306302011204 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # 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 # 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 . # 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 Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. 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 outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; 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 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 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 # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" 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' 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 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; 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). 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 gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # 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. ## 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. ## 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. 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. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # 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 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" 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 # dependency line. 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 ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else 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 # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done 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" ;; ## 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 '\' : # 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 # 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=$? # 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 rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. 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" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # '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. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else 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'. # 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. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # 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$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.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else 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) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # 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. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$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" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$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 ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; 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" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | 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::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # 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 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # 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: imlib2-1.4.6/doc/0000775000175000017500000000000012255306373010456 500000000000000imlib2-1.4.6/doc/index.html0000664000175000017500000031544612255265113012404 00000000000000 Imlib 2 - Documentation.

Imlib2

What is it?
Imlib 2 is the successor to Imlib. It is NOT a newer version - it is a completely new library. Imlib 2 can be installed alongside Imlib 1.x without any problems since they are effectively different libraries - BUT they Have very similar functionality.

Imlib 2 does the following:

  • Load image files from disk in one of many formats
  • Save images to disk in one of many formats
  • Render image data onto other images
  • Render images to an X-Windows drawable
  • Produce pixmaps and pixmap masks of Images
  • Apply filters to images
  • Rotate images
  • Accept RGBA Data for images
  • Scale images
  • Alpha blend Images on other images or drawables
  • Apply color correction and modification tables and factors to images
  • Render images onto images with color correction and modification tables
  • Render truetype anti-aliased text
  • Render truetype anti-aliased text at any angle
  • Render anti-aliased lines
  • Render rectangles
  • Render linear multi-colored gradients
  • Cache data intelligently for maximum performance
  • Allocate colors automatically
  • Allow full control over caching and color allocation
  • Provide highly optimized MMX assembly for core routines
  • Provide plug-in filter interface
  • Provide on-the-fly runtime plug-in image loading and saving interface
  • Fastest image compositing, rendering and manipulation library for X
If what you want isn't in the list above somewhere then likely Imlib 2 does not do it. If it does it it likely does it faster than any other library you can find (this includes gdk-pixbuf, gdkrgb, etc.) primarily because of highly optimized code and a smart subsystem that does the dirty work for you and picks up the pieces for you so you can be lazy and let all the optimizations for FOR you.

Imlib 2 can run without a display, so it can be easily used for background image processing for web sites or servers - it only requires the X libraries to be installed - that is all - it does not require an XServer to run unless you wish to display images.

The interface is simple - once you get used to it, the functions do exactly what they say they do.


A Simple Example
The best way to start is to show a simple example of an Imlib2 program. This one will load an image of any format you have a loader installed for (all loaders are dynamic code objects that Imlib2 will use and update automatically runtime - anyone is free to write a loader. All that has to be done is for the object to be dropped into the loaders directory with the others and all Imlib2 programs will automatically be able to use it - without a restart).
/* standard headers */
#include <X11/Xlib.h>
#include <Imlib2.h>
#include <stdio.h>
#include <string.h>

/* main program */
int main(int argc, char **argv)
{
  /* an image handle */
  Imlib_Image image;
  
  /* if we provided < 2 arguments after the command - exit */
  if (argc != 3) exit(1);
  /* load the image */
  image = imlib_load_image(argv[1]);
  /* if the load was successful */
  if (image)
    {
      char *tmp;
      /* set the image we loaded as the current context image to work on */
      imlib_context_set_image(image);
      /* set the image format to be the format of the extension of our last */
      /* argument - i.e. .png = png, .tif = tiff etc. */
      tmp = strrchr(argv[2], '.');
      if(tmp)
         imlib_image_set_format(tmp + 1);
      /* save the image */
      imlib_save_image(argv[2]);
    }
}
Now to compile this
cc imlib2_convert.c -o imlib2_convert `imlib2-config --cflags` `imlib2-config --libs`
You now have a program that if used as follows:
./imlib2_convert image1.jpg image2.png
will convert image1.jpg into a png called image2.png. It is that simple.

How Image Loading Works
It is probably a good idea to discuss how Imlib2 actually loads an Image so the programmer knows what is going on, how to take advantage of the optimizations already there and to explain why things work as they do.

Loading using imlib_load_image();

This is likely to be by far the most common way to load an image - when you don't really care about the details of the loading process or why it failed - all you care about is if you got a valid image handle.

When you call this function Imlib2 attempts to find the file specified as the parameter. This will involve Imlib2 first checking to see if that file path already has been loaded and is in Imlib2's cache (a cache of already decoded images in memory to save having to load and decode from disk all the time). If there already is a copy in the cache (either already active or speculatively cached from a previous load & free) this copy will have its handle returned instead of Imlib2 checking on disk (in some circumstances this is not true - see later in this section to find out). This means if your program blindly loads an Image, renders it, then frees it - then soon afterwards loads the same image again, it will not be loaded from disk at all, instead it will simply be re-referenced from the cache - meaning the load will be almost instant. A great way to take full advantage of this is to set the cache to some size you are happy with for the image data being used by your application and then all rendering o an image follows the pseudo code:

set cache to some amount (e.g. 4 Mb)
...
rendering loop ...
    load image
    render image
    free image
... continue loop
This may normally sound silly - load image, render then free - EVERY time we want to use it, BUT - it is actually the smartest way to use Imlib2 - since the caching will find the image for you in the cache - you do not need to manage your own cache, or worry about filling up memory with image data - only as much memory as you have set for the cache size will actually ever be used to store image data - if you have lots of image data to work with then increase the cache size for better performance, but this is the only thing you need to worry about. you won't have problems of accidentally forgetting to free images later since you free them immediately after use.

Now what happens if the file changes on disk while it's in cache? By default nothing. The file is ignored. This is an optimization (to avoid hitting the disk to check if the file changed for every load if it's cached). You can inform Imlib2 that you care about this by using the imlib_image_set_changes_on_disk(); call. Do this whenever you load an Image that you expect will change on disk, and the fact that it changes really matters. Remember this will marginally reduce the caching performance.

Now what actually happens when we try and load an image using a filename? First the filename is broken down into 2 parts. the filename before a colon (:) and the key after the colon. This means when we have a filename like:

/path/to/file.jpg

the filename is:

/path/to/file.jpg

and the key is blank. If we have:

/path/to/file.db:key.value/blah

the filename is:

/path/to/file.db

and the key is:

key.value/blah

You may ask what is this thing with keys and filenames? Well Imlib2 has loaders that are able to load data that is WITHIN a file (the loader capable of this right now is the database loader that is able to load image data stored with a key in a Berkeley-db database file). The colon is used to delimit where the filename ends and the key begins. Fro the majority of files you load you won't have to worry, but there is a limit in this case that filenames cannot contain a color character.

First Imlib2 checks to see if the file exists and that you have permission to read it. If this fails it will abort the load. Now that it has checked that this is the case it evaluates that it's list of dynamically loaded loader modules it up to date then it runs through the loader modules until one of them claims it can load this file. If this is the case that loader is now used to decode the image and return an Image handle to the calling program. If the loader is written correctly and the file format sanely supports this, the loader will NOT decode any image data at this point. It will ONLY read the header of the image to figure out its size, if it has an alpha channel, format and any other header information. The loader is remembered and it will be re-used to load the image data itself later if and ONLY if the actual image data itself is needed. This means you can scan vast directories of files figuring their format and size and other such information just by loading and freeing - and it will be fast because no image data is decoded. You can take advantage of this by loading the image and checking its size to calculate the size of an output area before you ever load the data. This means geometry calculations can be done fast ahead of time.

If you desire more detailed information about why a load failed you can use imlib_load_image_with_error_return(); and it will return a detailed error return code.

If you do not wish to have the image data loaded later using the optimized "deferred" method of loading, you can force the data to be decoded immediately with imlib_load_image_immediately();

If you wish to bypass the cache when loading images you can using imlib_load_image_without_cache(); and imlib_load_image_immediately_without_cache();.

Sometimes loading images can take a while. Often it is a good idea to provide feedback to the user whilst this is happening. This is when you set the progress function callback. Setting this to NULL will mean no progress function is called during load - this is the default. When it is set you set it to a function that will get called every so often (depending on the progress granularity) during load. Use imlib_context_set_progress_function(); and imlib_context_set_progress_granularity(); to set this up.


A more advanced Example
This is a more comprehensive example that should show off a fair number of features of imlib2. The code this was based off can be found in Imlib2's test directory. This covers a lot of the core of Imlib2's API so you should have a pretty good idea on how it works if you understand this code snippet.
/* include X11 stuff */
#include <X11/Xlib.h>
/* include Imlib2 stuff */
#include <Imlib2.h>
/* sprintf include */
#include <stdio.h>

/* some globals for our window & X display */
Display *disp;
Window   win;
Visual  *vis;
Colormap cm;
int      depth;

/* the program... */
int main(int argc, char **argv)
{
   /* events we get from X */
   XEvent ev;
   /* areas to update */
   Imlib_Updates updates, current_update;
   /* our virtual framebuffer image we draw into */
   Imlib_Image buffer;
   /* a font */
   Imlib_Font font;
   /* our color range */
   Imlib_Color_Range range;
   /* our mouse x, y coordinates */
   int mouse_x = 0, mouse_y = 0;
   
   /* connect to X */
   disp  = XOpenDisplay(NULL);
   /* get default visual , colormap etc. you could ask imlib2 for what it */
   /* thinks is the best, but this example is intended to be simple */
   vis   = DefaultVisual(disp, DefaultScreen(disp));
   depth = DefaultDepth(disp, DefaultScreen(disp));
   cm    = DefaultColormap(disp, DefaultScreen(disp));
   /* create a window 640x480 */
   win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 
                             0, 0, 640, 480, 0, 0, 0);
   /* tell X what events we are interested in */
   XSelectInput(disp, win, ButtonPressMask | ButtonReleaseMask | 
                PointerMotionMask | ExposureMask);
   /* show the window */
   XMapWindow(disp, win);
   /* set our cache to 2 Mb so it doesn't have to go hit the disk as long as */
   /* the images we use use less than 2Mb of RAM (that is uncompressed) */
   imlib_set_cache_size(2048 * 1024);
   /* set the font cache to 512Kb - again to avoid re-loading */
   imlib_set_font_cache_size(512 * 1024);
   /* add the ./ttfonts dir to our font path - you'll want a notepad.ttf */
   /* in that dir for the text to display */
   imlib_add_path_to_font_path("./ttfonts");
   /* set the maximum number of colors to allocate for 8bpp and less to 128 */
   imlib_set_color_usage(128);
   /* dither for depths < 24bpp */
   imlib_context_set_dither(1);
   /* set the display , visual, colormap and drawable we are using */
   imlib_context_set_display(disp);
   imlib_context_set_visual(vis);
   imlib_context_set_colormap(cm);
   imlib_context_set_drawable(win);
   /* infinite event loop */
   for (;;)
     {
        /* image variable */
        Imlib_Image image;
        /* width and height values */
        int w, h, text_w, text_h;
        
        /* init our updates to empty */
        updates = imlib_updates_init();
        /* while there are events form X - handle them */
        do
          {
             XNextEvent(disp, &ev);
             switch (ev.type)
               {
               case Expose:
                  /* window rectangle was exposed - add it to the list of */
                  /* rectangles we need to re-render */
                  updates = imlib_update_append_rect(updates,
                                                     ev.xexpose.x, ev.xexpose.y,
                                                     ev.xexpose.width, ev.xexpose.height);
                  break;
               case ButtonPress:
                  /* if we click anywhere in the window, exit */
                  exit(0);
                  break;
               case MotionNotify:
                  /* if the mouse moves - note it */
                  /* add a rectangle update for the new mouse position */
                  image = imlib_load_image("./test_images/mush.png");
                  imlib_context_set_image(image);
                  w = imlib_image_get_width();
                  h = imlib_image_get_height();
                  imlib_context_set_image(image);
                  imlib_free_image();
                  /* the old position - so we wipe over where it used to be */
                  updates = imlib_update_append_rect(updates,
                                                     mouse_x - (w / 2), mouse_y - (h / 2),
                                                     w, h);
                  font = imlib_load_font("notepad/30");
                  if (font)
                    {
                       char text[4096];
                       
                       imlib_context_set_font(font);
                       sprintf(text, "Mouse is at %i, %i", mouse_x, mouse_y);
                       imlib_get_text_size(text, &text_w, &text_h); 
                       imlib_free_font();
                       updates = imlib_update_append_rect(updates,
                                                          320 - (text_w / 2), 240 - (text_h / 2),
                                                          text_w, text_h);
                    }
                  
                  mouse_x = ev.xmotion.x;
                  mouse_y = ev.xmotion.y;
                  /* the new one */
                  updates = imlib_update_append_rect(updates,
                                                     mouse_x - (w / 2), mouse_y - (h / 2),
                                                     w, h);
                  font = imlib_load_font("notepad/30");
                  if (font)
                    {
                       char text[4096];
                       
                       imlib_context_set_font(font);
                       sprintf(text, "Mouse is at %i, %i", mouse_x, mouse_y);
                       imlib_get_text_size(text, &text_w, &text_h); 
                       imlib_free_font();
                       updates = imlib_update_append_rect(updates,
                                                          320 - (text_w / 2), 240 - (text_h / 2),
                                                          text_w, text_h);
                    }
               default:
                  /* any other events - do nothing */
                  break;
               }
          }
        while (XPending(disp));
        
        /* no more events for now ? ok - idle time so lets draw stuff */
        
        /* take all the little rectangles to redraw and merge them into */
        /* something sane for rendering */
        updates = imlib_updates_merge_for_rendering(updates, 640, 480);
        for (current_update = updates; 
             current_update; 
             current_update = imlib_updates_get_next(current_update))
          {
             int up_x, up_y, up_w, up_h;

             /* find out where the first update is */
             imlib_updates_get_coordinates(current_update, 
                                           &up_x, &up_y, &up_w, &up_h);
             
             /* create our buffer image for rendering this update */
             buffer = imlib_create_image(up_w, up_h);
             
             /* we can blend stuff now */
             imlib_context_set_blend(1);
             
             /* fill the window background */
             /* load the background image - you'll need to have some images */
             /* in ./test_images lying around for this to actually work */
             image = imlib_load_image("./test_images/bg.png");
             /* we're working with this image now */
             imlib_context_set_image(image);
             /* get its size */
             w = imlib_image_get_width();
             h = imlib_image_get_height();
             /* now we want to work with the buffer */
             imlib_context_set_image(buffer);
             /* if the iimage loaded */
             if (image) 
               {
                  /* blend image onto the buffer and scale it to 640x480 */
                  imlib_blend_image_onto_image(image, 0, 
                                               0, 0, w, h, 
                                               - up_x, - up_y, 640, 480);
                  /* working with the loaded image */
                  imlib_context_set_image(image);
                  /* free it */
                  imlib_free_image();
               }
             
             /* draw an icon centered around the mouse position */
             image = imlib_load_image("./test_images/mush.png");
             imlib_context_set_image(image);
             w = imlib_image_get_width();
             h = imlib_image_get_height();
             imlib_context_set_image(buffer);
             if (image) 
               {
                  imlib_blend_image_onto_image(image, 0, 
                                               0, 0, w, h, 
                                               mouse_x - (w / 2) - up_x, mouse_y - (h / 2) - up_y, w, h);
                  imlib_context_set_image(image);
                  imlib_free_image();
               }
             
             /* draw a gradient on top of things at the top left of the window */
             /* create a range */
             range = imlib_create_color_range();
             imlib_context_set_color_range(range);
             /* add white opaque as the first color */
             imlib_context_set_color(255, 255, 255, 255);
             imlib_add_color_to_color_range(0);
             /* add an orange color, semi-transparent 10 units from the first */
             imlib_context_set_color(255, 200, 10, 100);
             imlib_add_color_to_color_range(10);
             /* add black, fully transparent at the end 20 units away */
             imlib_context_set_color(0, 0, 0, 0);
             imlib_add_color_to_color_range(20);
             /* draw the range */
             imlib_context_set_image(buffer);
             imlib_image_fill_color_range_rectangle(- up_x, - up_y, 128, 128, -45.0);
             /* free it */
             imlib_free_color_range();
             
             /* draw text - centered with the current mouse x, y */
             font = imlib_load_font("notepad/30");
             if (font)
               {
                  char text[4096];
                  
                  /* set the current font */
                  imlib_context_set_font(font);
                  /* set the image */
                  imlib_context_set_image(buffer);
                  /* set the color (black) */
                  imlib_context_set_color(0, 0, 0, 255);
                  /* print text to display in the buffer */
                  sprintf(text, "Mouse is at %i, %i", mouse_x, mouse_y);
                  /* query the size it will be */
                  imlib_get_text_size(text, &text_w, &text_h); 
                  /* draw it */
                  imlib_text_draw(320 - (text_w / 2) - up_x, 240 - (text_h / 2) - up_y, text); 
                  /* free the font */
                  imlib_free_font();
               }
             
             /* don't blend the image onto the drawable - slower */
             imlib_context_set_blend(0);
             /* set the buffer image as our current image */
             imlib_context_set_image(buffer);
             /* render the image at 0, 0 */
             imlib_render_image_on_drawable(up_x, up_y);
             /* don't need that temporary buffer image anymore */
             imlib_free_image();
          }
        /* if we had updates - free them */
        if (updates)
           imlib_updates_free(updates);
        /* loop again waiting for events */
     }
   return 0;
}

API Reference

This is a list of all the Imlib2 API calls and what each of them do. You should familiarize yourself well with this API so you have a good idea of what can be done.

void imlib_context_set_display(Display *display);
Sets the current X display to be used for rendering of images to drawables. You do not need to set this if you do not intend to render an image to an X drawable. If you do you will need to set this. If you change displays just set this to the new display pointer. Do not use a Display pointer if you have closed that display already - also note that if you close a display connection and continue to render using Imlib2 without setting the display pointer to NULL or something new, crashes may occur.
void imlib_context_set_visual(Visual *visual);
This sets the current visual to use when rendering images to drawables or producing pixmaps. You need to set this for anything to render to a drawable or produce any pixmaps (this can be the default visual).
void imlib_context_set_colormap(Colormap colormap);
Sets the colormap to use when rendering to drawables and allocating colors. You must set this to the colormap you are using to render any images or produce any pixmaps (this can be the default colormap).
void imlib_context_set_drawable(Drawable drawable);
This sets the X drawable to which images will be rendered when you call a render call in Imlib2. This may be either a pixmap or a window. You must set this to render anything.
void imlib_context_set_mask(Pixmap mask);
This sets the 1-bit deep pixmap to be drawn to when rendering to generate a mask pixmap. This is only useful if the image you are rendering has alpha. Set this to 0 to not render a pixmap mask.
void imlib_context_set_dither_mask(char dither_mask);
Selects if, you are rendering to a mask, or producing pixmap masks from images, if the mask is to be dithered or not. passing in 1 for dither_mask means the mask pixmap will be dithered, 0 means it will not be dithered.
void imlib_context_set_anti_alias(char anti_alias);
Toggles "anti-aliased" scaling of images. This isn't quite correct since it's actually super and sub pixel sampling that it turns on and off, but anti-aliasing is used for having "smooth" edges to lines and shapes and this means when images are scaled they will keep their smooth appearance. Passing in 1 turns this on and 0 turns it off.
void imlib_context_set_dither(char dither);
Sets the dithering flag for rendering to a drawable or when pixmaps are produced. This affects the color image appearance by enabling dithering. Dithering slows down rendering but produces considerably better results. this option has no effect foe rendering in 24 bit and up, but in 16 bit and lower it will dither, producing smooth gradients and much better quality images. setting dither to 1 enables it and 0 disables it.
void imlib_context_set_blend(char blend);
When rendering an image to a drawable, Imlib2 is able to blend the image directly onto the drawable during rendering. setting this to 1 will enable this. If the image has no alpha channel this has no effect. Setting it to 0 will disable this.
void imlib_context_set_color_modifier(Imlib_Color_Modifier color_modifier);
This sets the current color modifier used for rendering pixmaps or images to a drawable or images onto other images. Color modifiers are lookup tables that map the values in the red, green, blue and alpha channels to other values in the same channel when rendering, allowing for fades, color correction etc. to be done whilst rendering. pass in NULL as the color_modifier to disable the color modifier for rendering.
void imlib_context_set_operation(Imlib_Operation operation);
When Imlib2 draws an image onto another or an image onto a drawable it is able to do more than just blend the result on using the given alpha channel of the image. It is also able to do saturating additive, subtractive and a combination of the both (called reshade) rendering. The default mode is IMLIB_OP_COPY. you can also set it to IMLIB_OP_ADD, IMLIB_OP_SUBTRACT or IMLIB_OP_RESHADE. Use this function to set the rendering operation. IMLIB_OP_COPY performs basic alpha blending: DST = (SRC * A) + (DST * (1 - A)). IMLIB_OP_ADD does DST = DST + (SRC * A). IMLIB_OP_SUBTRACT does DST = DST - (SRC * A) and IMLIB_OP_RESHADE does DST = DST + (((SRC - 0.5) / 2) * A).
void imlib_context_set_font(Imlib_Font font);
This function sets the current font to use when rendering text. you should load the font first with imlib_load_font().
void imlib_context_set_direction(Imlib_Text_Direction direction);
This sets the direction in which to draw text in terms of simple 90 degree orientations or an arbitrary angle. The direction can be one of IMLIB_TEXT_TO_RIGHT, IMLIB_TEXT_TO_LEFT, IMLIB_TEXT_TO_DOWN, IMLIB_TEXT_TO_UP or IMLIB_TEXT_TO_ANGLE. The default is IMLIB_TEXT_TO_RIGHT. If you use IMLIB_TEXT_TO_ANGLE, you will also have to set the angle with imlib_context_set_angle().
void imlib_context_set_angle(double angle);
This sets the angle at which text strings will be drawn if the text direction has been set to IMLIB_TEXT_TO_ANGLE with imlib_context_set_direction().
void imlib_context_set_color(int red, int green, int blue, int alpha);
This sets the color with which text, lines and rectangles are drawn when being rendered onto an image. Values for red, green, blue and alpha are between 0 and 255 - any other values have undefined results.
void imlib_context_set_color_cmya(int cyan, magenta, int yellow, int alpha);
This sets the color in CMYA space. Values for cyan, magenta, yellow and alpha are between 0 and 255 - any other values have undefined results.
void imlib_context_set_color_hsva(float hue, float saturation, float value, int alpha);
This sets the color in HSVA space. Values for hue are between 0 and 360, values for saturation and value between 0 and 1, and values for alpha are between 0 and 255 - any other values have undefined results.
void imlib_context_set_color_hlsa(float hue, float lightness, float saturation, int alpha);
This sets the color in HLSA space. Values for hue are between 0 and 360, values for lightness and saturation between 0 and 1, and values for alpha are between 0 and 255 - any other values have undefined results.
void imlib_context_set_color_range(Imlib_Color_Range color_range);
This sets the current color range to use for rendering gradients.
void imlib_context_set_progress_function(Imlib_Progress_Function progress_function);
This sets the progress function to be called back whilst loading images. Set this to the function to be called, or set it to NULL to disable progress callbacks whilst loading.
void imlib_context_set_progress_granularity(char progress_granularity);
This hints as to how often to call the progress callback. 0 means as often as possible. 1 means whenever 15 more of the image has been decoded, 10 means every 10% of the image decoding, 50 means every 50% and 100 means only call at the end. Values outside of the range 0-100 are undefined.
void imlib_context_set_image(Imlib_Image image);
This sets the current image Imlib2 will be using with its function calls.
void imlib_context_set_filter(Imlib_Filter filter);
This sets the current filter to be used when applying filters to images. Set this to NULL to disable filters.
Display *imlib_context_get_display(void);
This returns the current display used for Imlib2's display context.
Visual *imlib_context_get_visual(void);
Returns the current visual used for Imlib2's context.
Colormap imlib_context_get_colormap(void);
Returns the current Colormap used for Imlib2's context.
Drawable imlib_context_get_drawable(void);
Returns the current Drawable used for Imlib2's context.
Pixmap imlib_context_get_mask(void);
Returns the current pixmap destination to be used to render a mask into.
char imlib_context_get_dither_mask(void);
Returns the current mode for dithering pixmap masks. 1 means dithering is enabled and 0 means it is not.
char imlib_context_get_anti_alias(void);
Returns if Imlib2 currently will smoothly scale images. 1 means it will and 0 means it will not.
char imlib_context_get_dither(void);
Returns if image data is rendered with dithering currently. 1 means yes and 0 means no.
char imlib_context_get_blend(void);
Returns if Imlib2 will blend images onto a drawable whilst rendering to that drawable. 1 means yes and 0 means no.
Imlib_Color_Modifier imlib_context_get_color_modifier(void);
Returns the current colormodifier being used.
Imlib_Operation imlib_context_get_operation(void);
Returns the current operation mode.
Imlib_Font imlib_context_get_font(void);
Returns the current font.
double imlib_context_get_angle(void);
Returns the current angle used to render text at if the direction is IMLIB_TEXT_TO_ANGLE.
Imlib_Text_Direction imlib_context_get_direction(void);
Returns the current direction to render text in.
void imlib_context_get_color(int *red, int *green, int *blue, int *alpha);
Returns the current color for rendering text, rectangles and lines.
void imlib_context_get_color_cmya(int *cyan, int *magenta, int *yellow, int *alpha);
Returns the current color for rendering text, rectangles and lines in CMYA space.
void imlib_context_get_color_hsva(float *hue, float *saturation, float *value, int *alpha);
Returns the current color for rendering text, rectangles and lines in HSVA space.
void imlib_context_get_color_hlsa(float *hue, float * lightness, float *saturation, int *alpha);
Returns the current color for rendering text, rectangles and lines in HLSA space.
Imlib_Color *imlib_context_get_imlib_color(void);
Returns the current color as a color struct. Do NOT free this pointer.
Imlib_Color_Range imlib_context_get_color_range(void);
Return the current color range being used for gradients.
Imlib_Progress_Function imlib_context_get_progress_function(void);
Return the current progress function being used.
char imlib_context_get_progress_granularity(void);
Get the current progress granularity being used.
Imlib_Image imlib_context_get_image(void);
Return the current context image.
Imlib_Filter imlib_context_get_filter(void);
Get the current context image filter.
int imlib_get_cache_size(void);
Return the current size of the image cache in bytes. The cache is a unified cache used for image data AND pixmaps.
void imlib_set_cache_size(int bytes);
Set the cache size. The size is in bytes. Setting the cache size to 0 effectively flushes the cache and keeps the cache size at 0 until set to another value. Whenever you set the cache size Imlib2 will flush as many old images and pixmap from the cache as needed until the current cache usage is less than or equal to the cache size.
int imlib_get_color_usage(void);
Get the number of colors Imlib2 currently at a maximum is allowed to allocate for rendering. The default is 256.
void imlib_set_color_usage(int max);
Set the maximum number of colors you would like Imlib2 to allocate for you when rendering. The default ids 256. This has no effect in depths greater than 8 bit.
void imlib_flush_loaders(void);
If you want Imlib2 to forcibly flush any cached loaders it has and re-load them from disk (this is useful if the program just installed a new loader and does not want to wait till Imlib2 deems it an optimal time to rescan the loaders)
int imlib_get_visual_depth(Display *display, Visual *visual);
Convenience function that returns the depth of a visual for that display.
Visual *imlib_get_best_visual(Display *display, int screen, int *depth_return);
Returns the visual for that display and screen that Imlib2 thinks will give you the best quality output. depth_return should point to an int that will be filled with the depth of that visual too.
Imlib_Image imlib_load_image(const char *file);
This function loads an image from disk located at the path specified by file. Please see the "How image loading works" section for more detail. Returns an image handle on success or NULL on failure.
Imlib_Image imlib_load_image_immediately(const char *file);
Loads an image from disk located at the path specified by file. This forces the image data to be decoded at load time too, instead of decoding being deferred until it is needed. Returns an image handle on success or NULL on failure.
Imlib_Image imlib_load_image_without_cache(const char *file);
This loads the image without looking in the cache first. Returns an image handle on success or NULL on failure.
Imlib_Image imlib_load_image_immediately_without_cache(const char *file);
Loads the image without deferred image data decoding (i.e. it is decoded straight away) and without looking in the cache. Returns an image handle on success or NULL on failure.
Imlib_Image imlib_load_image_with_error_return(const char *file, Imlib_Load_Error *error_return);
This loads an image at the path file on disk. If it succeeds it returns a valid image handle, if not NULL is returned and the error_return pointed to is set to the detail of the error.
void imlib_free_image(void);
This frees the image that is set as the current image in Imlib2's context.
void imlib_free_image_and_decache(void);
Frees the current image in Imlib2's context AND removes it from the cache.
int imlib_image_get_width(void);
Returns the width in pixels of the current image in Imlib2's context.
int imlib_image_get_height(void);
Returns the height in pixels of the current image in Imlib2's context.
const char *imlib_image_get_filename(void);
This returns the filename for the file that is set as the current context. The pointer returned is only valid as long as no operations cause the filename of the image to change. Saving the file with a different name would cause this. It is suggested you duplicate the string if you wish to continue to use the string for later processing. Do not free the string pointer returned by this function.
DATA32 *imlib_image_get_data(void);
This returns a pointer to the image data in the image set as the image for the current context. When you get this pointer it is assumed you are planning on writing to the data, thus once you do this the image can no longer be used for caching - in fact all images cached from this one will also be affected when you put the data back. If this matters it is suggested you clone the image first before playing with the image data. The image data is returned in the format of a DATA32 (32 bits) per pixel in a linear array ordered from the top left of the image to the bottom right going from left to right each line. Each pixel has the upper 8 bits as the alpha channel and the lower 8 bits are the blue channel - so a pixel's bits are ARGB (from most to least significant, 8 bits per channel). You must put the data back at some point.
DATA32 *imlib_image_get_data_for_reading_only(void);
This functions the same way as imlib_image_get_data(), but returns a pointer expecting the program to NOT write to the data returned (it is for inspection purposes only). Writing to this data has undefined results. The data does not need to be put back.
void imlib_image_put_back_data(DATA32 *data);
This will put back data when it was obtained by imlib_image_get_data(). The data must be the same pointer returned by imlib_image_get_data(). This operated on the current context image.
char imlib_image_has_alpha(void);
Returns 1 if the current context image has an alpha channel, or 0 if it does not (the alpha data space is still there and available - just "unused").
void imlib_image_set_changes_on_disk(void);
By default Imlib2 will not check the timestamp of an image on disk and compare it with the image in its cache - this is to minimize disk activity when using the cache. Call this function and it will flag the current context image as being liable to change on disk and Imlib2 will check the timestamp of the image file on disk and compare it with the cached image when it next needs to use this image in the cache.
void imlib_image_get_border(Imlib_Border *border);
This function fills the Imlib_Border structure to which border points to with the values of the border of the current context image. The border is the area at the edge of the image that does not scale with the rest of the image when resized - the borders remain constant in size. This is useful for scaling bevels at the edge of images differently to the image center.
void imlib_image_set_border(Imlib_Border *border);
This sets the border of the current context image to the values contained in the Imlib_Border structure border points to.
void imlib_image_set_format(const char *format);
This sets the format of the current image. This is used for when you wish to save an image in a different format that it was loaded in, or if the image currently has no file format associated with it.
void imlib_image_set_irrelevant_format(char irrelevant);
This sets if the format value of the current image is irrelevant for caching purposes - by default it is. pass irrelevant as 1 to make it irrelevant and 0 to make it relevant for caching.
void imlib_image_set_irrelevant_border(char irrelevant);
This sets if the border of the current image is irrelevant for caching purposes. By default it is. Set irrelevant to 1 to make it irrelevant, and 0 to make it relevant.
void imlib_image_set_irrelevant_alpha(char irrelevant);
This sets if the alpha channel status of the current image (i.e. if there is or is not one) is important for caching purposes. By default it is not. Set irrelevant to 1 to make it irrelevant and 0 to make it relevant.
char *imlib_image_format(void);
This returns the current image's format. Do not free this string. Duplicate it if you need it for later use.
void imlib_image_set_has_alpha(char has_alpha);
Sets the alpha flag for the current image. Set has_alpha to 1 to enable the alpha channel in the current image, or 0 to disable it.
void imlib_render_pixmaps_for_whole_image(Pixmap *pixmap_return, Pixmap *mask_return);
This function will create a pixmap of the current image (and a mask if the image has an alpha value) and return the id's of the pixmap and mask to the pixmap_return and mask_return pixmap id's. You must free these pixmaps using Imlib2's free function imlib_free_pixmap_and_mask();.
void imlib_render_pixmaps_for_whole_image_at_size(Pixmap *pixmap_return, Pixmap *mask_return, int width, int height);
This function works just like imlib_render_pixmaps_for_whole_image(), but will scale the output result to the width and height specified. Scaling is done before depth conversion so pixels used for dithering don't grow large.
void imlib_free_pixmap_and_mask(Pixmap pixmap);
This will free the pixmap (and any mask generated in association with that pixmap). The pixmap will remain cached until the image the pixmap was generated from is dirtied or decached, or the cache is flushed.
void imlib_render_image_on_drawable(int x, int y);
This renders the current image onto the current drawable at the x, y pixel location specified without scaling.
void imlib_render_image_on_drawable_at_size(int x, int y, int width, int height);
This will render the current image onto the current drawable at the x, y location specified AND scale the image to the width and height specified.
void imlib_render_image_part_on_drawable_at_size(int source_x, int source_y, int source_width, int source_height, int x, int y, int width, int height);
This renders the source x, y, width, height pixel rectangle from the current image onto the current drawable at the x, y location scaled to the width and height specified.
void imlib_blend_image_onto_image(Imlib_Image source_image, char merge_alpha, int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int destination_width, int destination_height);
This will blend the source rectangle x, y, width, height from the source_image onto the current image at the destination x, y location scaled to the width and height specified. If merge_alpha is set to 1 it will also modify the destination image alpha channel, otherwise the destination alpha channel is left untouched.
Imlib_Image imlib_create_image(int width, int height);
This creates a new blank image of size width and height. The contents of this image at creation time are undefined (they could be garbage memory). You are free to do whatever you like with this image. It is not cached. On success an image handle is returned - on failure NULL is returned.
Imlib_Image imlib_create_image_using_data(int width, int height, DATA32 *data);
This creates an image from the image data specified with the width and height specified. The image data must be in the same format as imlib_image_get_data() would return. You are responsible for freeing this image data once the image is freed - Imlib2 will not do that for you. This is useful for when you already have static buffers of the same format Imlib2 uses (many video grabbing devices use such a format) and wish to use Imlib2 to render the results onto another image, or X drawable. You should free the image when you are done with it. Imlib2 returns a valid image handle on success or NULL on failure
Imlib_Image imlib_create_image_using_copied_data(int width, int height, DATA32 *data);
This works the same way as imlib_create_image_using_data() but Imlib2 copies the image data to the image structure. You may now do whatever you wish with the original data as it will not be needed anymore. Imlib2 returns a valid image handle on success or NULL on failure.
Imlib_Image imlib_create_image_from_drawable(Pixmap mask, int x, int y, int width, int height, char need_to_grab_x);
This will return an image (using the mask to determine the alpha channel) from the current drawable. If the mask is 0 it will not create a useful alpha channel in the image. It will create an image from the x, y, width , height rectangle in the drawable. If need_to_grab_x is 1 it will also grab the X Server to avoid possible race conditions in grabbing. If you have not already grabbed the server you MUST set this to 1. Imlib2 returns a valid image handle on success or NULL on failure.
Imlib_Image imlib_create_scaled_image_from_drawable(Pixmap mask, int source_x, int source_y, int source_width, int source_height, int destination_width, int destination_height, char need_to_grab_x, char get_mask_from_shape);
This will create an image from the current drawable (optionally using the mask pixmap specified to determine alpha transparency) and scale the grabbed data first before converting to an actual image (to minimize reads from the frame buffer which can be slow). The source x, y, width, height rectangle will be grabbed, scaled to the destination width and height, then converted to an image. If need_to_grab_x is set to 1, X is grabbed (set this to 1 unless you have already grabbed the server) and if get_mask_from_shape and the current drawable is a window its shape is used for determining the alpha channel. If successful this function will return a valid image handle, otherwise NULL is returned.
char imlib_copy_drawable_to_image(Pixmap mask, int x, int y, int width, int height, int destination_x, int destination_y, char need_to_grab_x);
This routine will grab a section of the current drawable (optionally using the pixmap provided as a corresponding mask for that drawable - if mask is 0 this is not used). It grabs the x, y, width, height rectangle and places it at the destination x, y location in the current image. If need_to_grab_x is 1 it will grab and ungrab the server whilst doing this - you need to do this if you have not already grabbed the server.
Imlib_Image imlib_clone_image(void);
This creates an exact duplicate of the current image and returns a valid image handle on success, or NULL on failure.
Imlib_Image imlib_create_cropped_image(int x, int y, int width, int height);
This creates a duplicate of a x, y, width, height rectangle in the current image and returns a valid image handle on success, or NULL on failure.
Imlib_Image imlib_create_cropped_scaled_image(int source_x, int source_y, int source_width, int source_height, int destination_width, int destination_height);
This function works the same as imlib_create_cropped_image() but will scale the new image to the new destination width and height whilst cropping.
Imlib_Updates imlib_updates_clone(Imlib_Updates updates);
This function creates a duplicate of the updates list passed into the function.
Imlib_Updates imlib_update_append_rect(Imlib_Updates updates, int x, int y, int w, int h);
This function appends an update rectangle to the updates list passed in (if the updates is NULL it will create a new updates list) and returns a handle to the modified updates list (the handle may be modified so only use the new updates handle returned)
Imlib_Updates imlib_updates_merge(Imlib_Updates updates, int w, int h);
This function takes an updates list, and modifies it by merging overlapped rectangles and lots of tiny rectangles into larger rectangles to minimize the number of rectangles in the list for optimized redrawing. The new updates handle is now valid and the old one passed in is not.
Imlib_Updates imlib_updates_merge_for_rendering(Imlib_Updates updates, int w, int h);
This works almost exactly as imlib_updates_merge() but is more lenient on the spacing between update rectangles - if they are very close it amalgamates 2 smaller rectangles into 1 larger one.
void imlib_updates_free(Imlib_Updates updates);
This frees an updates list.
Imlib_Updates imlib_updates_get_next(Imlib_Updates updates);
This gets the next update in the updates list relative to the one passed in.
void imlib_updates_get_coordinates(Imlib_Updates updates, int *x_return, int *y_return, int *width_return, int *height_return);
This returns the coordinates of an update.
void imlib_updates_set_coordinates(Imlib_Updates updates, int x, int y, int width, int height);
This modifies the coordinates of an update in an updates list.
void imlib_render_image_updates_on_drawable(Imlib_Updates updates, int x, int y);
Given an updates list (preferable already merged for rendering) this will render the corresponding parts of the image to the current drawable at an offset of x, y in the drawable.
Imlib_Updates imlib_updates_init(void);
This initializes an updates list before you add any updates to it or merge it for rendering etc.
Imlib_Updates imlib_updates_append_updates(Imlib_Updates updates, Imlib_Updates appended_updates);
This appends one updates list (appended_updates) to the updates list (updates) and returns the new list.
void imlib_image_flip_horizontal(void);
This will flip/mirror the current image horizontally.
void imlib_image_flip_vertical(void);
This will flip/mirror the current image vertically.
void imlib_image_flip_diagonal(void);
This will flip/mirror the current image diagonally (good for quick and dirty 90 degree rotations if used before to after a horizontal or vertical flip).
void imlib_image_orientate(int orientation);
This will perform 90 degree rotations on the current image. Passing in orientation does not rotate, 1 rotates clockwise by 90 degree, 2, rotates clockwise by 180 degrees, 3 rotates clockwise by 270 degrees.
void imlib_image_blur(int radius);
This will blur the current image. A radius of 0 has no effect, 1 and above determine the blur matrix radius that determine how much to blur the image.
void imlib_image_sharpen(int radius);
This sharpens the current image. The radius affects how much to sharpen by.
void imlib_image_tile_horizontal(void);
This modifies an image so it will tile seamlessly horizontally if used as a tile (i.e. drawn multiple times horizontally)
void imlib_image_tile_vertical(void);
This modifies an image so it will tile seamlessly vertically if used as a tile (i.e. drawn multiple times vertically)
void imlib_image_tile(void);
This modifies an image so it will tile seamlessly horizontally and vertically if used as a tile (i.e. drawn multiple times horizontally and vertically)
Imlib_Font imlib_load_font(const char *font_name);
This function will load a truetype font from the first directory in the font path that contains that font. The font name format is "font_name/size". For example. If there is a font file called blum.ttf somewhere in the font path you might use "blum/20" to load a 20 pixel sized font of blum. If the font cannot be found NULL is returned.
void imlib_free_font(void);
This frees the current font.
void imlib_text_draw(int x, int y, const char *text);
Call this function to draw the null-byte terminated string text using the current font on the current image at the x, y location (x, y denoting the top left corner of the font string)
void imlib_text_draw_with_return_metrics(int x, int y, const char *text, int *width_return, int *height_return, int *horizontal_advance_return, int *vertical_advance_return);
This function works just like imlib_text_draw() but also returns the width and height of the string drawn, and horizontal_advance_return returns the number of pixels you should advance horizontally to draw another string (useful if you are drawing a line of text word by word) and vertical_advance_return does the same for the vertical direction (i.e. drawing text line by line).
void imlib_get_text_size(const char *text, int *width_return, int *height_return);
This function returns the width and height in pixels the text string would use up if drawn with the current font.
void imlib_get_text_advance(const char *text, int *horizontal_advance_return, int *vertical_advance_return);
This function returns the advance horizontally and vertically in pixels the next text string would need to be placed at for the current font. The advances are not adjusted for rotation so you will have to translate the advances (which are calculated as if the text was drawn horizontally from left to right) depending on the text orientation.
int imlib_get_text_inset(const char *text);
This function returns the inset of the first character of the text string passed in using the current font and returns that value in pixels.
void imlib_add_path_to_font_path(const char *path);
This function adds the directory path to the end of the current list of directories to scan for fonts.
void imlib_remove_path_from_font_path(const char *path);
This function removes all directories in the font path that match the path specified.
char **imlib_list_font_path(int *number_return);
This returns a list of strings that are the directories in the font path. Do not free this list or change it in any way. If you add or delete members of the font path this list will be invalid. If you intend to use this list later duplicate it for your own use. The number of elements in the array of strings is put into number_return.
int imlib_text_get_index_and_location(const char *text, int x, int y, int *char_x_return, int *char_y_return, int *char_width_return, int *char_height_return);
This will return the character number in the string text using the current font at the x, y pixel location which is an offset relative to the top left of that string. -1 is returned if there is no character there. If there is a character, character x, y, width and height are also filled in.
void imlib_text_get_location_at_index(const char *text, int index, int *char_x_return, int *char_y_return, int *char_width_return, int *char_height_return);
This will return the geometry of the character at index index in the text string using the current font.
char **imlib_list_fonts(int *number_return);
This returns a list of fonts imlib2 can find in its font path.
void imlib_free_font_list(char **font_list, int number);
This will free the font list returned by imlib_list_fonts().
int imlib_get_font_cache_size(void);
This returns the font cache size in bytes.
void imlib_set_font_cache_size(int bytes);
This sets the font cache in bytes. Whenever you set the font cache size Imlib2 will flush fonts from the cache until the memory used by fonts is less than or equal to the font cache size. Setting the size to 0 effectively frees all speculatively cached fonts.
void imlib_flush_font_cache(void);
This will cause a flush of all speculatively cached fonts from the font cache.
int imlib_get_font_ascent(void);
Returns the current font's ascent value in pixels.
int imlib_get_font_descent(void);
Returns the current font's descent value in pixels.
int imlib_get_maximum_font_ascent(void);
Returns the current font's maximum ascent extent.
int imlib_get_maximum_font_descent(void);
Returns the current font's maximum descent extent.
Imlib_Color_Modifier imlib_create_color_modifier(void);
This function creates a new empty color modifier and returns a valid handle on success. NULL is returned on failure.
void imlib_free_color_modifier(void);
Calling this function frees the current color modifier.
void imlib_modify_color_modifier_gamma(double gamma_value);
This function modifies the current color modifier by adjusting the gamma by the value specified. The color modifier is modified not set, so calling this repeatedly has cumulative effects. A gamma of 1.0 is normal linear, 2.0 brightens and 0.5 darkens etc. Negative values are not allows.
void imlib_modify_color_modifier_brightness(double brightness_value);
This function modifies the current color modifier by adjusting the brightness by the value specified. The color modifier is modified not set, so calling this repeatedly has cumulative effects. brightness values of 0 do not affect anything. -1.0 will make things completely black and 1.0 will make things all white. Values in-between vary brightness linearly.
void imlib_modify_color_modifier_contrast(double contrast_value);
This function modifies the current color modifier by adjusting the contrast by the value specified. The color modifier is modified not set, so calling this repeatedly has cumulative effects. Contrast of 1.0 does nothing. 0.0 will merge to gray, 2.0 will double contrast etc.
void imlib_set_color_modifier_tables(DATA8 *red_table, DATA8 *green_table, DATA8 *blue_table, DATA8 *alpha_table);
This function explicitly copies the mapping tables from the table pointers passed into this function into those of the current color modifier. Tables are 256 entry arrays of DATA8 which are a mapping of that channel value to a new channel value. A normal mapping would be linear (v[0] = 0, v[10] = 10, v[50] = 50, v[200] = 200, v[255] = 255).
void imlib_get_color_modifier_tables(DATA8 *red_table, DATA8 *green_table, DATA8 *blue_table, DATA8 *alpha_table);
This copies the table values from the current color modifier into the pointers to mapping tables specified. They must have 256 entries and be DATA8 format.
void imlib_reset_color_modifier(void);
This function resets the current color modifier to have linear mapping tables.
void imlib_apply_color_modifier(void);
This uses the current color modifier and modifies the current image using the mapping tables in the current color modifier.
void imlib_apply_color_modifier_to_rectangle(int x, int y, int width, int height);
This works the same way as imlib_apply_color_modifier() but only modifies a selected rectangle in the current image.
Imlib_Updates imlib_image_draw_line(int x1, int y1, int x2, int y2, char make_updates);
Draw a line using the current color on the current image from coordinates x1, y1 to x2, y2. If make_updates is 1 it will also return an update you can use for an updates list, otherwise it returns NULL.
void imlib_image_draw_rectangle(int x, int y, int width, int height);
This draws the outline of a rectangle on the current image at the x, y coordinates with a size of width and height pixels, using the current color.
void imlib_image_fill_rectangle(int x, int y, int width, int height);
This draws a filled rectangle on the current image at the x, y coordinates with a size of width and height pixels, using the current color.
void imlib_image_copy_alpha_to_image(Imlib_Image image_source, int x, int y);
This copies the alpha channel of the source image to the x, y coordinates of the current image, replacing the alpha channel there.
void imlib_image_copy_alpha_rectangle_to_image(Imlib_Image image_source, int x, int y, int width, int height, int destination_x, int destination_y);
This copies the source x, y, width, height rectangle alpha channel from the source image and replaces the alpha channel on the destination image at the x, y, coordinates.
void imlib_image_scroll_rect(int x, int y, int width, int height, int delta_x, int delta_y);
This scrolls a rectangle at x, y, width, height within the current image by the delta x, y distance (in pixels).
void imlib_image_copy_rect(int x, int y, int width, int height, int new_x, int new_y);
This copies a rectangle of size width, height at the x, y location specified in the current image to a new location x, y in the same image.
Imlib_Color_Range imlib_create_color_range(void);
This creates a new empty color range and returns a valid handle to that color range.
void imlib_free_color_range(void);
This frees the current color range.
void imlib_add_color_to_color_range(int distance_away);
This adds the current color to the current color range at a distance_away distance from the previous color in the range (if it's the first color in the range this is irrelevant).
void imlib_image_fill_color_range_rectangle(int x, int y, int width, int height, double angle);
This fills a rectangle of width and height at the x, y location specified in the current image with a linear gradient of the current color range at an angle of angle degrees with 0 degrees being vertical from top to bottom going clockwise from there.
void imlib_image_fill_hsva_color_range_rectangle(int x, int y, int width, int height, double angle);
This fills a rectangle of width and height at the x, y location specified in the current image with a linear gradient in HSVA color space of the current color range at an angle of angle degrees with 0 degrees being vertical from top to bottom going clockwise from there.
void imlib_image_query_pixel(int x, int y, Imlib_Color *color_return);
This fills the color_return color structure with the color of the pixel in the current image that is at the x, y location specified.
void imlib_image_query_pixel_cmya(int x, int y, int *cyan, int *magenta, int *yellow, int *alpha);
This returns the CMYA color of the pixel in the current image that is at the x, y location specified.
void imlib_image_query_pixel_hsva(int x, int y, float *hue, float *saturation, float *value, int *alpha);
This returns the HSVA color of the pixel in the current image that is at the x, y location specified.
void imlib_image_query_pixel_hlsa(int x, int y, float *hue, float *lightness, float *saturation, int *alpha);
This returns the HLSA color of the pixel in the current image that is at the x, y location specified.
void imlib_image_attach_data_value(const char *key, void *data, int value, Imlib_Data_Destructor_Function destructor_function);
This attaches data to the current image with the string key of key, and the data of data and an integer of value. The destructor function, if not NULL is called when this image is freed so the destructor can free the data, if this is needed.
void *imlib_image_get_attached_data(const char *key);
This returns the data attached to the current image with the key specified. NULL is returned if no data could be found with that key on the current image.
int imlib_image_get_attached_value(const char *key);
This returns the value attached to the current image with the specified key. If none could be found 0 is returned.
void imlib_image_remove_attached_data_value(const char *key);
This detaches the data & value attached with the specified key from the current image.
void imlib_image_remove_and_free_attached_data_value(const char *key);
This removes the data and value attached to the current image with the specified key and also calls the destructor function that was supplied when attaching it.
void imlib_save_image(const char *filename);
This saves the current image in the format specified by the current image's format settings to the filename specified.
void imlib_save_image_with_error_return(const char *filename, Imlib_Load_Error *error_return);
This works the same way imlib_save_image() works, but will set the error_return to an error value if the save fails.
Imlib_Image imlib_create_rotated_image(double angle);
This creates an new copy of the current image, but rotated by angle degrees. On success it returns a valid image handle, otherwise NULL.
void imlib_blend_image_onto_image_at_angle(Imlib_Image source_image, char merge_alpha, int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int angle_x, int angle_y);
This function works just like imlib_blend_image_onto_image_skewed() except you cannot skew an image (v_angle_x and v_angle_y are 0).
void imlib_blend_image_onto_image_skewed(Imlib_Image source_image, char merge_alpha, int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int h_angle_x, int h_angle_y, int v_angle_x, int v_angle_y);
This will blend the source rectangle x, y, width, height from the source_image onto the current image at the destination x, y location.

It will be rotated and scaled so that the upper right corner will be positioned h_angle_x pixels to the right (or left, if negative) and h_angle_y pixels down (from destination_[x|y]).

If v_angle_x and v_angle_y are not 0, the image will also be skewed so that the lower left corner will be positioned v_angle_x pixels to the right and v_angle_y pixels down.

The at_angle versions simply have the v_angle_x and v_angle_y set to 0 so the rotation doesn't get skewed, and the render_..._on_drawable ones seem obvious enough; they do the same on a drawable.

Examples:

  • imlib_blend_image_onto_image_skewed(..., 0, 0, 100, 0, 0, 100);

  • will simply scale the image to be 100x100.

  • imlib_blend_image_onto_image_skewed(..., 0, 0, 0, 100, 100, 0);

  • will scale the image to be 100x100, and flip it diagonally.

  • imlib_blend_image_onto_image_skewed(..., 100, 0, 0, 100, -100, 0);

  • will scale the image and rotate it 90 degrees clockwise.

  • imlib_blend_image_onto_image_skewed(..., 50, 0, 50, 50, -50, 50);

  • will rotate the image 45 degrees clockwise, and will scale it so its corners are at (50,0)-(100,50)-(50,100)-(0,50) i.e. it fits into the 100x100 square, so it's scaled down to 70.7% (sqrt(2)/2).

  • imlib_blend_image_onto_image_skewed(..., 50, 50, 100 * cos(a), 100 * sin(a), 0);

  • will rotate the image `a' degrees, with its upper left corner at (50,50).

void imlib_render_image_on_drawable_skewed(int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int h_angle_x, int h_angle_y, int v_angle_x, int v_angle_y);
This works just like imlib_blend_image_onto_image_skewed(), except it blends the image onto the current drawable instead of the current image.
void imlib_render_image_on_drawable_at_angle(int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int angle_x, int angle_y);
This function works just like imlib_render_image_on_drawable_skewed() except you cannot skew an image (v_angle_x and v_angle_y are 0).
void imlib_context_set_cliprect(int x, int y, int w, int h);
Sets the current clipping rectangle to (x,y w*h). The clipping rectangle effects all image drawing functions and prevents the area outside the rectangle from being edited. Set w to 0 to disable clipping.
void imlib_polygon_new(void);
Returns a new polygon object with no points set.
void imlib_polygon_free(ImlibPolygon poly);
Frees a polygon object.
void imlib_polygon_add_point(ImlibPolygon poly, int x, int y);
Adds the point (x,y) to a polygon object. The point will be added to the end of the polygon's internal point list. The points are drawn in order, from the first to the last.
void imlib_image_draw_polygon(ImlibPolygon poly, unsigned char closed);
Draws a polygon onto the current context image. Points which have been added to the polygon are drawn in sequence, first to last. The final point will be joined with the first point if closed is non-zero.
void imlib_image_fill_polygon(ImlibPolygon poly);
Fill the area defined by the polygon on the current context image with the current context colour.
void imlib_polygon_get_bounds(ImlibPolygon poly, int *px1, int *py1, int *px2, int *py2);
Calculate the bounding area of the polygon. (px1, py1) defines the upper left corner of the bounding box and (px2, py2) defines it's lower right corner.
unsigned char imlib_polygon_contains_point(ImlibPolygon poly, int x, int y);
Returns non-zero if the point (x,y) is within the area defined by the polygon.
void imlib_image_draw_ellipse(int xc, int yc, int a, int b);
Draw an ellipse on the current context image. The ellipse is defined as (x-xc)^2/a^2 + (y-yc)^2/b^2 = 1. This means that the point (xc,yc) marks the center of the ellipse, a defines the horizontal amplitude of the ellipse, and b defines the vertical amplitude.
void imlib_image_fill_ellipse(int xc, int yc, int a, int b);
Fills an ellipse on the current context image using the current context colour. The ellipse is defined as (x-xc)^2/a^2 + (y-yc)^2/b^2 = 1. This means that the point (xc,yc) marks the center of the ellipse, a defines the horizontal amplitude of the ellipse, and b defines the vertical amplitude.
void imlib_image_filter(void);
Imlib_Filter imlib_create_filter(int initsize);
void imlib_free_filter(void);
void imlib_filter_set(int xoff, int yoff, int a, int r, int g, int b);
void imlib_filter_set_alpha(int xoff, int yoff, int a, int r, int g, int b);
void imlib_filter_set_red(int xoff, int yoff, int a, int r, int g, int b);
void imlib_filter_set_green(int xoff, int yoff, int a, int r, int g, int b);
void imlib_filter_set_blue(int xoff, int yoff, int a, int r, int g, int b);
void imlib_filter_constants(int a, int r, int g, int b);
void imlib_filter_divisors(int a, int r, int g, int b);
void imlib_apply_filter( char *script, ... );

Imlib 2 Dynamic Filters

Imlib2 has built in features allowing filters and effects to be applied at run time through a very small scripting language, this is similar to that of script-fu found in the GIMP (http://www.gimp.org). There are two parts to the system, the client library call ``imlib_apply_filter'' and the library side filters. The library side filters are synonymous with image loaders.

To run a script on an image you need to set the context image then call:

imlib_apply_filter( script_string, ... );

The script_string variable is made up of the script language, which is very simple and made up of only function calls. Functions calls look like this:

filter name( key=value [, ...] );

Where,

filter name is the name of the filter you wish to apply
key is an expected value
value is a ``string'', a number, or an actual variable in

the program, or the result of another filter.

eg.

bump_map( map=tint(red=50,tint=200), blue=10 );

This example would bump map using a a map generated from the tint filter.

It is also possible to pass application information to the filters via the usage of the [] operator. When the script is being compiled the script engine looks on the parameters passed to it and picks up a pointer for every [] found.

eg2.

imlib_apply_filter( "tint( x=[], y=[], red=255, alpha=55 );", &myxint, &myyint );

This will cause a tint to the current image at (myxint,myyint) to be done. This is very useful for when you want the filters to dynamically change according to program variables. The system is very quick as the code is pseudo-compiled and then run. The advantage of having the scripting system allows customization of the image manipulations, this is particularly useful in applications that allow modifications to be done (eg. image viewers).

Filter Library

There are three functions that must be in every filter library

void init( struct imlib_filter_info *info ); - Called once on loading of the filter

info - a structure passed to the filter to be filled in with information about the filter info->name - Name of the filter library
info->author - Name of the library author
info->description - Description of the filter library
info->num_filters - Number of filters the library exports
info->filters - An array of ``char *'' with each filter name in it.

void deinit(); - Called when the filter is closed

/* Called every time a filter the library exports is called */
void *exec( char *filter, void *im, pIFunctionParam params );

filter - The name of the filter being asked for im - The image that the filter should be applied against params - A linked list of parameters.

The best way to get all the values is such:

Declare all parameters and initialize them to there default values.
  for( ptr = params; ptr != NULL; ptr = ptr->next )
    {
      ..MACRO TO GET VALUE..
    }
Current Macros are:
   ASSIGN_INT( keyname, local variable )
   ASSIGN_DATA8( keyname, local variable )
   ASSIGN_IMAGE( keyname, local variable )
eg.
   int r = 50;
   IFunctionParam *ptr;
				      
   for( ptr = params; ptr != NULL; ptr = ptr->next )
     {
       ASSIGN_INT( "red", r );
     }

If the value "red" is not passed to the filter then it will remain at 50, but it a value is passed, it will be assign to r.

return type - Imlib_Image, this is the result of filter.

imlib2-1.4.6/doc/Makefile.in0000664000175000017500000003023412255306302012435 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = Makefile.in EXTRA_DIST = imlib2.gif \ blank.gif \ index.html all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/doc/imlib2.gif0000664000175000017500000001521212137523370012241 00000000000000GIF89a€¥ JJJ}}}‡‡‡žžž¸¸¸ÆÆÆÕÕÕÜÜÜâââæææêêêVVVîîî666òòò^^^ööö000–––úúúppp(((¨¨¨ þþþ>>>fffÎÎÎÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þ Copyright The Rasterman (C) 2000!ù ,€@þ@ŽpH,ȤrÉl:ŸÐ¨tJ­Z¯Ø¬vËÝ$’Ëp"^@ Á4€¼B ™ðÐ(B‚]†‡ˆ‰ŠI~uk B ~urk~™r C jb ru›‹¸¹º»– Bw­r·QvÉ ex˜´u»áâãSrjDBk¯XµÑÞê vthÕ§ÎrT.(,ƒÐÉ… Ä"’ç`[† 2h R þ–©Ù2 52¼ú÷gŽšj¢ 5TÐq©ÓÎB+ÔÃ}Z³ÍD.»þr‡C Ü‘Æ^RjtÐuª/¿ù¤Êl ep’ÊáÑìÔëé´˜6<Ñh3ý„¢r+~”ñ$S_.GrÕ·÷™¨M€ 4Ùg1˜#€ÐÒ &òñ‡:@k›€ÊS7»|ÀWó2ÌQØÔ& ¤iU3rH¹Úó.ÐL)9éÙ¬Ä €Rp‚ˆƒ–>§ \Ä €ì´¥$cZ‚Gช±ˆ‚•ñEc’d€Î|Æ(°ÑFáK(n›J²tBYeX€’¼ÁP@€Ï‚„° !ôÃÂ] pyPóÃIþØ0@ ,`+ùÛ‹Âôç0j„’K×B¡@6y`uÃÏc®¸œ›ä¤@¦R#v$@ËÒÏ y;D0Ài 4ðá4š Cp+ÙQ†$œwë‰WÂŽ> t'+P*§”Æ`<‰ÑI<@ΰk<È‚À}òs¡0.G‰A’~¬TÄ `GøÀZ3KçU@8öÑIˆœ('), ƒ@æÂ·LÀ° bP€}w²BVFJЩҸª³¦)fGz P.”€m*åÏÉLWì’““L‰KžÊIÐÙ%aG µ|Ì"ȉ`UÆy¿N1€%…¬Gøá “þà:t`j+»žÞ¸‘Ç-ð ²ÛT&U–f•3 Q<¾ pAôjŸfØ–Ê.q"öbU¸ñx*GhZ•3…TLÈ+Òq´6µD-,uÀHÆÔ# UqU¾Bªà1¥Q€|S7¶µ¹ï¯† M›pü¥UýE¾Y‡8ô°­Þ'þ Ôb^\˜YÒBd6€1ŽÐ†@&µ0Ë|SwÀ ЃÓȺPYJ’D&xt@ôXÂuzd¶Z\ÈPÚ´‘Ì'’eXÀ*öñ‹)3n¯îêäá1€ˆBŽjÈ™ú`»€Èc Åfÿþ2|„å­-°‰ X //R[l;04éÚ÷¾øÍ¯~÷Ë_E¬Å;sb€:–™&ú²Xペ"Úô÷ÁXøÀ‘$Á¥6œûC+*P”± lÀF&*`ÂÌb©´€!Ìâ% tXCLx†´þKFa¢Je›pÀE¸—œ ¨°8@êÛb¸0¥0,G¾9`¢“Õqa-fiÐ&ÚÄ`æR VÄÉt›üWJø­ë3ƒØ9µL0¹ ðn&Ô¡úÁjuÎÙ,Ý\f y¼€ö¢Y> RЀpl× ” ùŒL©j×@³þÇÚµ³àÙŠ…PˆØºí" Á‚ld»ÊÐç…Fð> X¤¥D©B?ÌçÑ¢…øØ°àŽÅè%%Ú`­ÿjïj©c‚}°à@Ú æðÑø?jLŠfq8IJšr²š S¥¢¤ýƒWcH=MÄAÁ²ªx€PRä@&|³…½¢÷vP€â0JõFÛbæ&~Ò+FJ„K’Å¢ò­uMh@wÂ¥n ^G){qDZfõâ!àTòø@¦?ð„ß“®§Œ½ÈaŒ„ð¡%oDâ8I—«8¬óŸU¼£RÑ¡¦ÖR–—æÇŠÈiÑŠ þX@:D9Õˆm úu %É€oÀá!>%ãÈ7Bü•ÓK:ñcžõ5r>9ñXS^iD‡Tõ^ùº”Å¢Åkªì ÔF"þº x§}8±HüÑÄ2íu,Ãúq‘ñ‡5g¹¥ºK.‰X@ºåå§~i糨Ò±‘HåŠP‹ˆ@ÈúP—×Ùp È"Ðü˜l•:aÒs~ò¡0)jœš.”j©àq׊ð†N‰¢+=Œnô.a}¬…Ç$ò3* 3n—¼‹„ûêç@Ľ9¤œÔRV2öÔP¹2%Ó$W?” @nÕþ+ýtM@¢lTEF…0DE÷ö/³)Ý÷ °Á+Et ýÑh°b)çwp÷o`!ÀäOþd0ÅdDvGöw^à`5çErPBB€{D#J²€GÇ%}§‚¬”1%2ø1,äƒÙñfg W ÞÑ*hÐ=b„"hœBGâdqcÀ0ˆ1k»â#‰sI2öG¿òæ0wàްWå…60g yÇ—DeáPH×LH%®B$–ptgBBu#Ù•+•ÂL HpB"Qµ´Z˜ukKB ¦'~$xMc¢2òt`Õ"E’‰T†¡gt6@<ÈiþCSE5¨Gã‡,òP›q„Õd+þ´#øÀ‚ì'ßá€c‰{*’„BK¤+u5µ× †:€È4H§OŽâQÙ±”œaPK¢4(u&>åpE[@@Êp^/b›Ñ>kѹ²~Ña†Õ „ù›¨UÚ÷T@RB…”)›¢x¥z À:€ƒY?'#´R)HÆ,ÝHà(…É×`0lø#Ž8+Å1PvÓ+„eÎÈ z¦ÉL±±oÓB_C€(¨»(Ûr9&”vŒ¡–Àç<å¥>>³’ÙcðiÛ`7ž¨…v0?Ep;¢þ 0kìÉ6ð`@o–GN0†¤>}á=H èà Ê@” ß5) ïpD 9 %ºâ`3áUËÉ“1_I²ž)š£:º£<Ú£åöa>꣦ÂRðÇ€n¤,–€ L‚Õ²W@(€<È ÂÐ §¤Ñå õ5­e4åR €@%µ$¸ö _$@¶?È \ Xe³àBÐZà}S_·t`KGóRÅS_3Ô5l)žV§Ô£>ã6 ðf´@3âÓcE0vÐ^Üã£VÿÉ`à¨Õcl Å1WRòcÒ*¤þ„w%j“s! y15Ðïes.Äu¦ú8÷0Ÿ Öœ€Ú† ew@Õ„ªjù"~€{ P¯P;à5© ErCÊ6¬ES›™]R¦kP PSK€J¡ )V©Aªç¥†3ê ®EÓ­bj ˜÷ ©ä:¸ $TóƒýÀA3•€¯Dó~oÆ fÄp­z…bT3LRÀé„¶ƒÐÉÁ8p†;>ƒ h±%>³ à8&sP*¬Q`dçåŽÉP@^˜ú àv,kœj^0³·>js›hǾ0 ‘ú›P#´C‹l¡Cþ ØZ·àÙ…[~ФN ddr™B@„ãwõÍó­YÛ½ð"´€5 04ÝúÈvpVð¤þ‡©ýðµpWn#I:·ãp>S£6ý@¢EJ‰æp;Ú€Z\÷gŸóa_ c b'Üõþu#„m"S‹äpµZé1”$a,ܳ§”d«G¿M{y 0ÎÓ¥ü€>q %*¢t´ãQ‘²"Gp(ÆÄ.d)9DA,± ÆÔ`B ™ µ[§cs_ va´|›cø@w¦G,q1t軼ZBQZ¼ð€o IßzD§f«$F°W—üRP¢W;ÜàF~À;·†b³13†pW¬|ºb3û±Å‡©@åÑÑŒ|÷b…24*üT…×&ËVIAZw4s ÁÇûžP?RÓš!‚pÜ',)q$Ìþ׉†Œ¸€H2ŠKÇf@b˵b#Eâ40t¯ 0Ê{xðfó™àš @°¶àC渨øs…üvØ1 H¢Q \+y £‘l (Ê «¼$LÑE™€_xpù-úï p/Å¡ñýÃDLá¢Û²sJ>7MbþÜh1~b¼)öòØÁ^b)‰V²õ'EQÅ\ 6çÂpA¼eІÓ" ×Í„üS††ŠÒ‚I—•œ°AîA à¡Ãó’Æ;Q¯xH¶C "}ÈÇÊY-iµ4ðà5!XK;Ìx#þJãs3ÝÐo÷=ñNÃØ¦K.Ó7Hý%ºb5„ð]¤D§†Ð=‘1õ5*S€a` Çw( Ýq2É\EàÑ.A.æRƒˆhD½+ÂÕ7ÌÇÂ;]ÄKÙÎ èi0&a‡Ð!/áj«ÃK£‡r@( Â ô€;q2Øë<Ö&€ÞáækUøt§‘N)XÕÔ"‡t (ŒÕ„ÐÙñ'ìKâg#ŒÁÙ*E*(„!-}MËäÖ)!ÿ05( ÐCÜ­È—‘ØD4ÌÏ4ˆNrÙC60¨+`å+á%/¬Â]Á¸¢+§þc…†¦X€|'ÙÕá×m¯ˆœ(”ˆJ±%Q`±j;•‰iå}0¹ªäQLr[MáÖ¤¬®Ô¿S…mg¢Fy,K2(FµõBȳL¸” @A!îJ*Eáö´ Ú)eá €$7ÂF*eÃL (}"àÀ—¢©<1|”¯F£@ر ÍG# ®3%þ‚†Õ€äDE$ðØv˜¨iªW]zŽqÒ>'$w9/•Ø(%{©b?;ä…µíb½&½¸ºWÑ ŽsÀ38Ö´DeÖrÅÜ@"‰Â#kÞVVŒ¨€Ó.’Åþ…ÛÈ+Ð=Ö8Á$I>Žê ,J¤ˆ+é5Š#Žä]1¢ÜK¾pWmb'ܽ>89È:8ah=Œ¯þ%W|#;ò9œÍBí/´VøáãMBÈPÒP Æ`ø€–ˆÓä/ Díc2)©*^a¬¸M´ãM€<¾sŠ C^~q;*± ð˜˜w3G† ×èB]ŒQ&T‚Ùˆ,É›1H÷Œè%‡Q×Î/Ö ~@T$€€ŒŽH*Øá3™$Éþ%ë6xð³ÎÜ’09Ì6ý G‹b~ëÿtŒ©8PfýÈ%˜Iá&ÙX à'äˆrM¡¨PµKþDR¯R§#<‚ÜÒ(„=WŸêªj}EjŸL8cŒß”ôß,~a²$P&ñ@Ä `¹²æ»Òõá"²‘b»|!Ù¸LÏMƒ¯Žõ±~ä¼çoï3!uoÕy+9,ð¨3“Ri¿;iµ + ç¦Eì>ýXAuãê4=Œð!‹Aô›Ù|ã“(¤/3Ux9âÂà²&O¡ ãSWd³_ÙŽÓ7òVbqÀ’5Ú,0)nÛ5h©¼¹¹² _=ˆ¼?ò÷±”Y„Bâ÷oå,;,ßrû£gÑ‰ß ™‰møtažà D!•s)ÎÀrNþ$Ÿõf@Б %ÌÀR0‹Èä‘N9ŒÆPˆ€’ SV¯Ùm÷›}q$ šÁ¢1 œÑx„!áãÀ ðA!ÂOíâbŠ‘ãpaÁá©rЮÎà#Šê"¢“ÐÔTmbΣ¡£Âö¡C ¡¡è/”iÁÁ5-!`  #l£ à¡"Kbî;[»íÑAÁóà`´t2–ÝaØq{ÍñýtP!!!q3­›aAsQ¹xØ!0!Â_ôˆC”‰X:dx€¡@­¼h!#Ńv#I–Üw“&&YºqI’ËwìÞT „`P¸þpî5É´iåÉ à@`K,Êž‰Œð¡eT©ÙfNµzuäË[¹F¢ùf@²xˆh…0e8D8ƒn\¹sé^½€@êºËÒ!™€u 6|øðY ¸° KŽ[ˆD|sfÍØ.4a0Þ,a`ñ°ujÕ—/ È+À‡,nÔ•Áƒe5  !@ *H  ÄñjåË™{ð[éŽb‚Ra`¡ï/Í›Åoé-0*`~=V DTieòRÉ , VR ´Ã° ¸È¢‚ `‹ ½„Ã2¨ ¬(¯”,ƒþ ¾X†¸ ð €*È… ,°`€%Ìcã– :Œ2‹6@ƒuÔqŽ6€Àü"JÀD#OŽ!4=zR  à€#¥¸€éž, µ¬ÙÌå@K g¦Ó"Çk> @‚Éàh#ʸ࿠~ÜÀ àK$xS¯Z( ÌBW+€‚ :耂 °sļqF€àK€ °2 îx/ƾRdä¾,2ÍÐX—³ô˜ ,LJ™d†c¬U\ ¾É´@ ( Ê* ð€±¥(Ô2ò( ª“[¹" ¼Ñ°x€Žˆ‚rœ:"9"Ö/é ™,].9ƒ.2 *ð FßÊ–_¹ð/ÄZ3¨À FAc‚,àŽÒ028‚~×5\æ õÜÀ–¿ž1` Îjà˶ú=y® <,ÍC ®Åìh SðüXr¿O‹…“å ã‚ Ñ0*Ð ±xàÇ!.Q/Äšj¬‚¬ê¬µÞšë®½^.;imlib2-1.4.6/doc/Makefile.am0000664000175000017500000000015012137523370012423 00000000000000MAINTAINERCLEANFILES = Makefile.in EXTRA_DIST = imlib2.gif \ blank.gif \ index.html imlib2-1.4.6/doc/blank.gif0000664000175000017500000000041212137523370012146 00000000000000GIF89a¥ JJJ}}}‡‡‡žžž¸¸¸ÆÆÆÕÕÕÜÜÜâââæææêêêVVVîîî666òòò^^^ööö000–––úúúppp(((¨¨¨ þþþ>>>fffÎÎÎÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þ Copyright The Rasterman (C) 2000!ù ,ÀO;imlib2-1.4.6/TODO0000664000175000017500000000037712255265135010330 00000000000000* line code doesn't draw nice liens when clipping - fix * filled polygons can break fill bounds on corner cases - fix * go thru TODOs and FIXMEs evas2 has fixed code for these 2 in it that work just fine. just need to port over (should be fairly easy). imlib2-1.4.6/missing0000755000175000017500000001533112255306301011220 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2012-06-26.16; # UTC # Copyright (C) 1996-2013 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 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 # 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 . # 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. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --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 ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... 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 Supported PROGRAM values: 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. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # 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'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) 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 "You might have modified some maintainer files that require" echo "the 'automa4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) 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/>" ;; lex*|flex*) 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>" ;; help2man*) 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 "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/>" ;; *) 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 } 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) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: imlib2-1.4.6/Makefile.am0000664000175000017500000000075712255300157011670 00000000000000AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 SUBDIRS = src data doc MAINTAINERCLEANFILES = aclocal.m4 config.guess config.h.in \ config.sub configure depcomp install-sh \ ltmain.sh Makefile.in missing imlib2_docs.tar.gz bin_SCRIPTS = imlib2-config EXTRA_DIST = AUTHORS COPYING COPYING-PLAIN gendoc \ Doxyfile \ README.in README \ imlib2.pc.in \ imlib2.spec.in imlib2.spec pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = imlib2.pc imlib2-1.4.6/configure.ac0000664000175000017500000002520612255300157012116 00000000000000# get rid of that stupid cache mechanism rm -f config.cache AC_INIT([imlib2], [1.4.6], [enlightenment-devel@lists.sourceforge.net]) AC_CONFIG_SRCDIR(configure.ac) AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_BUILD AC_CANONICAL_HOST AM_INIT_AUTOMAKE(1.6 dist-bzip2) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_C_BIGENDIAN AC_PROG_CC AM_PROG_AS dnl Set default visibility to hidden? AC_ARG_ENABLE([visibility-hiding], [AS_HELP_STRING([--enable-visibility-hiding], [enable visibility hiding @<:@default=no@:>@])], [enable_visibility_hiding=yes], [enable_visibility_hiding=no] ) AC_HEADER_STDC AC_C_CONST dnl Next two lines is a hack to prevent libtool checking for CXX/F77 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl AC_PROG_LIBTOOL VERSION_CUR=5 VERSION_REV=6 VERSION_AGE=4 lt_version=${VERSION_CUR}:${VERSION_REV}:${VERSION_AGE} AC_SUBST(lt_version) PKG_PROG_PKG_CONFIG mmx=no amd64=no case $host_cpu in i*86) mmx="yes";; x86_64) amd64="yes";; amd64) amd64="yes";; esac case $host_os in solaris*) mmx="no";; darwin*) mmx="no";; esac AC_ARG_ENABLE([mmx], [AS_HELP_STRING([--enable-mmx], [attempt compiling using x86 mmx assembly @<:@default=auto@:>@])], [ if test x$enableval = xyes; then mmx=yes # Cannot compile with both options enabled amd64=no else mmx=no fi ] ) AC_ARG_ENABLE([amd64], [AS_HELP_STRING([--enable-amd64], [attempt compiling using amd64 assembly @<:@default=auto@:>@])], [ if test x$enableval = xyes; then amd64=yes mmx=no else amd64=no fi ] ) AC_MSG_CHECKING(whether to enable x86 mmx support) if test x$mmx = xyes; then AC_DEFINE(DO_MMX_ASM, 1, [enabling MMX Assembly]) fi AC_MSG_RESULT($mmx) AM_CONDITIONAL(BUILD_MMX, test x$mmx = xyes) AC_MSG_CHECKING(whether to enable amd64 asm support) if test x$amd64 = xyes; then AC_DEFINE(DO_AMD64_ASM, 1, [enabling AMD64 Assembly]) fi AC_MSG_RESULT($amd64) AM_CONDITIONAL(BUILD_AMD64, test x$amd64 = xyes) # check for freetype PKG_CHECK_MODULES(FREETYPE, freetype2) AC_PATH_X AC_PATH_XTRA if test "x$have_x" = "xno"; then # If --without-x was passed, this will be "disabled" instead of "no" -- # so always treat "no" as an error AC_MSG_ERROR( [no X support found. Use --x-includes and --x-libraries to specify the X path on your system, or --without-x to disable X support.]) fi if test "x$have_x" = "xyes"; then AC_DEFINE(BUILD_X11, 1, [enabling X11 support]) else have_x="no" fi AM_CONDITIONAL(BUILD_X11, test "x$have_x" = "xyes") AC_CHECK_LIB(dl, dlopen, DLOPEN_LIBS=-ldl) AC_SUBST(DLOPEN_LIBS) AC_MSG_CHECKING(whether to enable jpeg support) AC_ARG_WITH([jpeg], [AS_HELP_STRING([--without-jpeg], [Disable JPEG image loader])], [ if test "$withval" = no ; then jpeg_loader=no else jpeg_loader=yes fi ], [ jpeg_loader=auto ] ) AC_MSG_RESULT($jpeg_loader) if test "$jpeg_loader" != no ; then AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, jpeg_ok=yes, jpeg_ok=no) if test "$jpeg_ok" = yes; then AC_CHECK_HEADER([jpeglib.h], , jpeg_ok=no) if test "$jpeg_ok" = yes; then JPEGLIBS="-ljpeg" fi fi if test "$jpeg_ok" = no ; then if test "$jpeg_loader" = yes ; then AC_MSG_ERROR(JPEG support was requested but system does not support it) else AC_MSG_WARN(*** Native JPEG support will not be built (JPEG not found) ***) fi fi else jpeg_ok=no fi AM_CONDITIONAL(BUILD_JPEG_LOADER, test "$jpeg_ok" = yes) AC_SUBST(JPEGLIBS) AC_MSG_CHECKING(whether to enable png support) AC_ARG_WITH([png], [AS_HELP_STRING([--without-png], [Disable PNG image loader])], [ if test "$withval" = no ; then png_loader=no else png_loader=yes fi ], [ png_loader=auto ] ) AC_MSG_RESULT($png_loader) if test "$png_loader" != no ; then PKG_CHECK_MODULES(PNG, libpng, [ png_ok="yes" ], [ PKG_CHECK_MODULES(PNG, libpng12, [ png_ok="yes" ], [ PKG_CHECK_MODULES(PNG, libpng10, [ png_ok="yes" ], [ png_ok="no"]) ]) ]) else png_ok="no" fi AM_CONDITIONAL(BUILD_PNG_LOADER, test "$png_ok" = yes) AC_MSG_CHECKING(whether to enable tiff support) AC_ARG_WITH([tiff], [AS_HELP_STRING([--without-tiff], [Disable TIFF image loader])], [ if test "$withval" = no ; then tiff_loader=no else tiff_loader=yes fi ], [ tiff_loader=auto ] ) AC_MSG_RESULT($tiff_loader) if test "$tiff_loader" != no ; then AC_CHECK_LIB(tiff, TIFFReadScanline, tiff_libs="-ltiff" tiff_ok=yes, AC_CHECK_LIB(tiff, TIFFReadScanline, tiff_libs="-ltiff -ljpeg -lz -lm" tiff_ok=yes, AC_CHECK_LIB(tiff34, TIFFReadScanline, tiff_libs="-ltiff34 -ljpeg -lz -lm" tiff_ok=yes, tiff_ok=no, -ljpeg -lz -lm), -ljpeg -lz -lm), ) if test "$tiff_ok" = yes; then AC_CHECK_HEADER([tiffio.h], , tiff_ok=no) if test "$tiff_ok" = yes; then TIFFLIBS=$tiff_libs fi fi if test "$tiff_ok" = no ; then if test "$tiff_loader" = yes ; then AC_MSG_ERROR(TIFF support was requested but system does not support it) else AC_MSG_WARN(*** Native TIFF support will not be built (TIFF not found) ***) fi fi else tiff_ok=no fi AM_CONDITIONAL(BUILD_TIFF_LOADER, test "$tiff_ok" = yes) AC_SUBST(TIFFLIBS) AC_MSG_CHECKING(whether to enable gif support) gif_lib=any AC_ARG_WITH([gif], [AS_HELP_STRING([--without-gif], [Disable GIF image loader])], [ if test "$withval" = no ; then gif_loader=no else gif_loader=yes case "$withval" in giflib) gif_lib=giflib;; libungif) gif_lib=libungif;; esac fi ], [ gif_loader=auto ] ) AC_MSG_RESULT($gif_loader) if test "$gif_loader" != no ; then AC_MSG_CHECKING(for preferred gif provider) AC_MSG_RESULT($gif_lib) if test "$gif_lib" != libungif ; then AC_CHECK_LIB(gif, DGifOpenFileName, gif_libs="-lgif" gif_ok=yes, gif_ok=no) if test "$gif_ok" = yes; then AC_CHECK_HEADER([gif_lib.h], , gif_ok=no) if test "$gif_ok" = yes; then GIFLIBS=$gif_libs gif_lib=giflib fi fi fi if test "$gif_lib" != giflib ; then AC_CHECK_LIB(ungif, DGifOpenFileName, gif_libs="-lungif" gif_ok=yes, gif_ok=no) if test "$gif_ok" = yes; then AC_CHECK_HEADER([gif_lib.h], , gif_ok=no) if test "$gif_ok" = yes; then GIFLIBS=$gif_libs gif_lib=libungif fi fi fi if test "$gif_ok" = no ; then if test "$gif_loader" = yes ; then AC_MSG_ERROR(GIF support was requested but system does not support it) else AC_MSG_WARN(*** Native GIF support will not be built (GIF not found) ***) fi fi else gif_ok=no fi AM_CONDITIONAL(BUILD_GIF_LOADER, test "$gif_ok" = yes) AC_SUBST(GIFLIBS) AC_MSG_CHECKING(whether to enable zlib support) AC_ARG_WITH([zlib], [AS_HELP_STRING([--without-zlib], [Disable ZLIB loader])], [ if test "$withval" = no ; then zlib_loader=no else zlib_loader=yes fi ], [ zlib_loader=auto ] ) AC_MSG_RESULT($zlib_loader) if test "$zlib_loader" != no ; then AC_CHECK_LIB(z, uncompress, zlib_ok=yes, zlib_ok=no) if test "$zlib_ok" = yes; then AC_CHECK_HEADER([zlib.h], , zlib_ok=no) if test "$zlib_ok" = yes; then ZLIBLIBS="-lz" fi fi if test "$zlib_ok" = no ; then if test "$zlib_loader" = yes ; then AC_MSG_ERROR(ZLIB support was requested but system does not support it) else AC_MSG_WARN(*** Native zlib support will not be built (zlib not found) ***) fi fi else zlib_ok=no fi AM_CONDITIONAL(BUILD_ZLIB_LOADER, test "$zlib_ok" = yes) AC_SUBST(ZLIBLIBS) AC_MSG_CHECKING(whether to enable bzip2 support) AC_ARG_WITH([bzip2], [AS_HELP_STRING([--without-bzip2], [Disable BZIP2 loader])], [ if test "$withval" = no ; then bz2_loader=no else bz2_loader=yes fi ], [ bz2_loader=auto ] ) AC_MSG_RESULT($bz2_loader) if test "$bz2_loader" != no ; then AC_CHECK_LIB(bz2, BZ2_bzRead, bz2_ok=yes, bz2_ok=no) if test "$bz2_ok" = yes; then AC_CHECK_HEADER([bzlib.h], , bz2_ok=no) if test "$bz2_ok" = yes; then BZ2LIBS="-lbz2" fi fi if test "$bz2_ok" = no ; then if test "$bz2_loader" = yes ; then AC_MSG_ERROR(BZIP2 support was requested but system does not support it) else AC_MSG_WARN(*** Native bz2 support will not be built (bzip2 not found) ***) fi fi else bz2_ok=no fi AM_CONDITIONAL(BUILD_BZ2_LOADER, test "$bz2_ok" = yes) AC_SUBST(BZ2LIBS) AC_MSG_CHECKING(whether to enable id3 support) AC_ARG_WITH([id3], [AS_HELP_STRING([--without-id3], [Disable ID3 loader])], [ if test "$withval" = no ; then id3_loader=no else id3_loader=yes fi ], [ id3_loader=auto ] ) AC_MSG_RESULT($id3_loader) if test "$id3_loader" != no ; then AC_CHECK_LIB(id3tag, id3_file_open, id3_libs="-lz -lid3tag" id3_ok=yes, id3_ok=no, -lz) if test "$id3_ok" = yes; then AC_CHECK_HEADER([id3tag.h], , id3_ok=no) if test "$id3_ok" = yes; then ID3LIBS=$id3_libs fi fi if test "$id3_ok" = no ; then if test "$id3_loader" = yes ; then AC_MSG_ERROR(ID3 support was requested but system does not support it) else AC_MSG_WARN(*** Native mp3 support will not be built (id3tag not found) ***) fi fi else id3_ok=no fi AM_CONDITIONAL(BUILD_ID3_LOADER, test "$id3_ok" = yes) AC_SUBST(ID3LIBS) AC_C_WARNFLAGS() if test "x$enable_visibility_hiding" = xyes ; then CPPFLAGS="$CPPFLAGS -fvisibility=hidden" fi AC_CONFIG_HEADERS(config.h) AC_CONFIG_FILES([ Makefile imlib2.pc src/Makefile src/lib/Makefile src/bin/Makefile src/modules/Makefile src/modules/filters/Makefile src/modules/loaders/Makefile data/Makefile data/fonts/Makefile data/images/Makefile doc/Makefile imlib2-config README imlib2.spec ]) AC_CONFIG_COMMANDS([default],[ chmod +x imlib2-config ],[]) AC_OUTPUT ##################################################################### ## Info echo echo echo echo "------------------------------------------------------------------------" echo "$PACKAGE $VERSION" echo "------------------------------------------------------------------------" echo echo "Configuration Options Summary:" echo echo echo "Image Loaders:" echo " JPEG....................: $jpeg_ok" echo " PNG.....................: $png_ok" echo " TIFF....................: $tiff_ok" echo " GIF.....................: $gif_ok" echo " ZLIB....................: $zlib_ok" echo " BZIP2...................: $bz2_ok" echo " ID3.....................: $id3_ok" echo " X.......................: $have_x" echo echo echo "Use X86 MMX for speed.....: $mmx" echo "Use AMD64 for speed.......: $amd64" echo echo "Use visibility hiding.....: $enable_visibility_hiding" echo echo echo "Installation Path.........: $prefix" echo echo "Compilation...............: make" echo "Installation..............: make install" echo imlib2-1.4.6/COPYING-PLAIN0000664000175000017500000000366312255265135011535 00000000000000Plain English Copyright Notice This file is not intended to be the actual License. The reason this file exists is that we here are programmers and engineers. We aren't lawyers. We provide licenses that we THINK say the right things, but we have our own intentions at heart. This is a plain-english explanation of what those intentions are, and if you follow them you will be within the "spirit" of the license. The intent is for us to enjoy writing software that is useful to us (the AUTHORS) and allow others to use it freely and also benefit from the work we put into making it. We don't want to restrict others using it. They should not *HAVE* to make the source code of the applications they write that simply link to these libraries (be that statically or dynamically), or for them to be limited as to what license they choose to use (be it open, closed or anything else). But we would like to know you are using these libraries. We simply would like to know that it has been useful to someone. This is why we ask for acknowledgement of some sort. You can do what you want with the source of this software - it doesn't matter. We still have it here for ourselves and it is open and free to use and download and play with. It can't be taken away. We don't really mind what you do with the source to your software. We would simply like to know that you are using it - especially if it makes it to a commercial product. If you simply e-mail all the AUTHORS (see COPYING and AUTHORS files) telling us, and then make sure you include a paragraph or page in the manual for the product with the copyright notice and state that you used this software, we will be very happy. If you want to contribute back modifications and fixes you may have made we will welcome those too with open arms (generally). If you want help with changes needed, ports needed or features to be added, arrangements can be easily made with some dialogue. Carsten Haitzler imlib2-1.4.6/INSTALL0000664000175000017500000000052212137523370010656 00000000000000COMPILING and INSTALLING: If you got a official release tar archive do: ./configure ( otherwise if you got this from enlightenment cvs do: ./autogen.sh ) Then to compile: make To install (run this as root, or the user who handles installs): make install NOTE: You MUST make install Imlib2 for it to run properly. imlib2-1.4.6/Doxyfile0000664000175000017500000000760412255265065011350 00000000000000PROJECT_NAME = Imlib2 PROJECT_NUMBER = OUTPUT_DIRECTORY = doc INPUT = imlib2.c IMAGE_PATH = doc/img OUTPUT_LANGUAGE = English GENERATE_HTML = YES HTML_OUTPUT = html HTML_FILE_EXTENSION = .html HTML_HEADER = doc/head.html HTML_FOOTER = doc/foot.html HTML_STYLESHEET = doc/e.css HTML_ALIGN_MEMBERS = YES ENUM_VALUES_PER_LINE = 1 GENERATE_HTMLHELP = NO CHM_FILE = HHC_LOCATION = GENERATE_CHI = NO BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = YES EXTRACT_ALL = NO EXTRACT_PRIVATE = NO EXTRACT_STATIC = NO EXTRACT_LOCAL_CLASSES = NO HIDE_UNDOC_MEMBERS = YES HIDE_UNDOC_CLASSES = YES HIDE_FRIEND_COMPOUNDS = YES BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = NO STRIP_FROM_PATH = INTERNAL_DOCS = NO STRIP_CODE_COMMENTS = YES CASE_SENSE_NAMES = YES SHORT_NAMES = NO HIDE_SCOPE_NAMES = NO VERBATIM_HEADERS = NO SHOW_INCLUDE_FILES = NO JAVADOC_AUTOBRIEF = YES MULTILINE_CPP_IS_BRIEF = NO DETAILS_AT_TOP = NO INHERIT_DOCS = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES DISTRIBUTE_GROUP_DOC = NO TAB_SIZE = 2 GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES GENERATE_DEPRECATEDLIST= YES ALIASES = ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 OPTIMIZE_OUTPUT_FOR_C = YES OPTIMIZE_OUTPUT_JAVA = NO SHOW_USED_FILES = NO QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = FILE_PATTERNS = RECURSIVE = NO EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXAMPLE_PATH = EXAMPLE_PATTERNS = EXAMPLE_RECURSIVE = NO INPUT_FILTER = FILTER_SOURCE_FILES = NO SOURCE_BROWSER = NO INLINE_SOURCES = NO REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES ALPHABETICAL_INDEX = YES COLS_IN_ALPHA_INDEX = 2 IGNORE_PREFIX = GENERATE_TREEVIEW = NO TREEVIEW_WIDTH = 250 GENERATE_LATEX = YES LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO PAPER_TYPE = a4wide EXTRA_PACKAGES = LATEX_HEADER = PDF_HYPERLINKS = YES USE_PDFLATEX = NO LATEX_BATCHMODE = NO GENERATE_RTF = NO RTF_OUTPUT = rtf COMPACT_RTF = NO RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = GENERATE_MAN = YES MAN_OUTPUT = man MAN_EXTENSION = .3 MAN_LINKS = YES GENERATE_XML = YES XML_SCHEMA = XML_DTD = GENERATE_AUTOGEN_DEF = NO ENABLE_PREPROCESSING = YES MACRO_EXPANSION = NO EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = NO INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES TAGFILES = GENERATE_TAGFILE = ALLEXTERNALS = NO EXTERNAL_GROUPS = YES PERL_PATH = /usr/bin/perl CLASS_DIAGRAMS = NO HIDE_UNDOC_RELATIONS = YES HAVE_DOT = NO CLASS_GRAPH = NO COLLABORATION_GRAPH = NO TEMPLATE_RELATIONS = NO INCLUDE_GRAPH = NO INCLUDED_BY_GRAPH = NO GRAPHICAL_HIERARCHY = NO DOT_IMAGE_FORMAT = png DOT_PATH = DOTFILE_DIRS = MAX_DOT_GRAPH_WIDTH = 512 MAX_DOT_GRAPH_HEIGHT = 512 GENERATE_LEGEND = YES DOT_CLEANUP = YES SEARCHENGINE = NO imlib2-1.4.6/src/0000775000175000017500000000000012255306373010500 500000000000000imlib2-1.4.6/src/bin/0000775000175000017500000000000012255306373011250 500000000000000imlib2-1.4.6/src/bin/Makefile.in0000664000175000017500000006011112255306302013224 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = imlib2_conv$(EXEEXT) $(am__EXEEXT_1) subdir = src/bin DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = @BUILD_X11_TRUE@am__EXEEXT_1 = imlib2_show$(EXEEXT) \ @BUILD_X11_TRUE@ imlib2_test$(EXEEXT) imlib2_bumpmap$(EXEEXT) \ @BUILD_X11_TRUE@ imlib2_poly$(EXEEXT) \ @BUILD_X11_TRUE@ imlib2_colorspace$(EXEEXT) \ @BUILD_X11_TRUE@ imlib2_view$(EXEEXT) imlib2_grab$(EXEEXT) am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_imlib2_bumpmap_OBJECTS = imlib2_bumpmap.$(OBJEXT) imlib2_bumpmap_OBJECTS = $(am_imlib2_bumpmap_OBJECTS) imlib2_bumpmap_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = am_imlib2_colorspace_OBJECTS = imlib2_colorspace.$(OBJEXT) imlib2_colorspace_OBJECTS = $(am_imlib2_colorspace_OBJECTS) imlib2_colorspace_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_imlib2_conv_OBJECTS = imlib2_conv.$(OBJEXT) imlib2_conv_OBJECTS = $(am_imlib2_conv_OBJECTS) imlib2_conv_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_imlib2_grab_OBJECTS = imlib2_grab.$(OBJEXT) imlib2_grab_OBJECTS = $(am_imlib2_grab_OBJECTS) imlib2_grab_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_imlib2_poly_OBJECTS = imlib2_poly.$(OBJEXT) imlib2_poly_OBJECTS = $(am_imlib2_poly_OBJECTS) imlib2_poly_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_imlib2_show_OBJECTS = imlib2_show.$(OBJEXT) imlib2_show_OBJECTS = $(am_imlib2_show_OBJECTS) imlib2_show_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_imlib2_test_OBJECTS = imlib2_test.$(OBJEXT) imlib2_test_OBJECTS = $(am_imlib2_test_OBJECTS) imlib2_test_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_imlib2_view_OBJECTS = imlib2_view.$(OBJEXT) imlib2_view_OBJECTS = $(am_imlib2_view_OBJECTS) imlib2_view_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(imlib2_bumpmap_SOURCES) $(imlib2_colorspace_SOURCES) \ $(imlib2_conv_SOURCES) $(imlib2_grab_SOURCES) \ $(imlib2_poly_SOURCES) $(imlib2_show_SOURCES) \ $(imlib2_test_SOURCES) $(imlib2_view_SOURCES) DIST_SOURCES = $(imlib2_bumpmap_SOURCES) $(imlib2_colorspace_SOURCES) \ $(imlib2_conv_SOURCES) $(imlib2_grab_SOURCES) \ $(imlib2_poly_SOURCES) $(imlib2_show_SOURCES) \ $(imlib2_test_SOURCES) $(imlib2_view_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = Makefile.in AM_CPPFLAGS = \ -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ -I$(top_builddir)/src/lib \ $(X_CFLAGS) @BUILD_X11_TRUE@X_BASED_PROGS = imlib2_show imlib2_test imlib2_bumpmap imlib2_poly imlib2_colorspace imlib2_view imlib2_grab imlib2_conv_SOURCES = imlib2_conv.c imlib2_conv_LDADD = $(top_builddir)/src/lib/libImlib2.la imlib2_show_SOURCES = imlib2_show.c imlib2_show_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 -lm imlib2_test_SOURCES = imlib2_test.c imlib2_test_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_bumpmap_SOURCES = imlib2_bumpmap.c imlib2_bumpmap_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_poly_SOURCES = imlib2_poly.c imlib2_poly_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_colorspace_SOURCES = imlib2_colorspace.c imlib2_colorspace_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_view_SOURCES = imlib2_view.c imlib2_view_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_grab_SOURCES = imlib2_grab.c imlib2_grab_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/bin/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/bin/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list imlib2_bumpmap$(EXEEXT): $(imlib2_bumpmap_OBJECTS) $(imlib2_bumpmap_DEPENDENCIES) $(EXTRA_imlib2_bumpmap_DEPENDENCIES) @rm -f imlib2_bumpmap$(EXEEXT) $(AM_V_CCLD)$(LINK) $(imlib2_bumpmap_OBJECTS) $(imlib2_bumpmap_LDADD) $(LIBS) imlib2_colorspace$(EXEEXT): $(imlib2_colorspace_OBJECTS) $(imlib2_colorspace_DEPENDENCIES) $(EXTRA_imlib2_colorspace_DEPENDENCIES) @rm -f imlib2_colorspace$(EXEEXT) $(AM_V_CCLD)$(LINK) $(imlib2_colorspace_OBJECTS) $(imlib2_colorspace_LDADD) $(LIBS) imlib2_conv$(EXEEXT): $(imlib2_conv_OBJECTS) $(imlib2_conv_DEPENDENCIES) $(EXTRA_imlib2_conv_DEPENDENCIES) @rm -f imlib2_conv$(EXEEXT) $(AM_V_CCLD)$(LINK) $(imlib2_conv_OBJECTS) $(imlib2_conv_LDADD) $(LIBS) imlib2_grab$(EXEEXT): $(imlib2_grab_OBJECTS) $(imlib2_grab_DEPENDENCIES) $(EXTRA_imlib2_grab_DEPENDENCIES) @rm -f imlib2_grab$(EXEEXT) $(AM_V_CCLD)$(LINK) $(imlib2_grab_OBJECTS) $(imlib2_grab_LDADD) $(LIBS) imlib2_poly$(EXEEXT): $(imlib2_poly_OBJECTS) $(imlib2_poly_DEPENDENCIES) $(EXTRA_imlib2_poly_DEPENDENCIES) @rm -f imlib2_poly$(EXEEXT) $(AM_V_CCLD)$(LINK) $(imlib2_poly_OBJECTS) $(imlib2_poly_LDADD) $(LIBS) imlib2_show$(EXEEXT): $(imlib2_show_OBJECTS) $(imlib2_show_DEPENDENCIES) $(EXTRA_imlib2_show_DEPENDENCIES) @rm -f imlib2_show$(EXEEXT) $(AM_V_CCLD)$(LINK) $(imlib2_show_OBJECTS) $(imlib2_show_LDADD) $(LIBS) imlib2_test$(EXEEXT): $(imlib2_test_OBJECTS) $(imlib2_test_DEPENDENCIES) $(EXTRA_imlib2_test_DEPENDENCIES) @rm -f imlib2_test$(EXEEXT) $(AM_V_CCLD)$(LINK) $(imlib2_test_OBJECTS) $(imlib2_test_LDADD) $(LIBS) imlib2_view$(EXEEXT): $(imlib2_view_OBJECTS) $(imlib2_view_DEPENDENCIES) $(EXTRA_imlib2_view_DEPENDENCIES) @rm -f imlib2_view$(EXEEXT) $(AM_V_CCLD)$(LINK) $(imlib2_view_OBJECTS) $(imlib2_view_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imlib2_bumpmap.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imlib2_colorspace.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imlib2_conv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imlib2_grab.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imlib2_poly.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imlib2_show.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imlib2_test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imlib2_view.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/src/bin/Makefile.am0000664000175000017500000000220612255265152013223 00000000000000MAINTAINERCLEANFILES = Makefile.in AM_CPPFLAGS = \ -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ -I$(top_builddir)/src/lib \ $(X_CFLAGS) if BUILD_X11 X_BASED_PROGS = imlib2_show imlib2_test imlib2_bumpmap imlib2_poly imlib2_colorspace imlib2_view imlib2_grab endif bin_PROGRAMS = \ imlib2_conv \ $(X_BASED_PROGS) imlib2_conv_SOURCES = imlib2_conv.c imlib2_conv_LDADD = $(top_builddir)/src/lib/libImlib2.la imlib2_show_SOURCES = imlib2_show.c imlib2_show_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 -lm imlib2_test_SOURCES = imlib2_test.c imlib2_test_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_bumpmap_SOURCES = imlib2_bumpmap.c imlib2_bumpmap_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_poly_SOURCES = imlib2_poly.c imlib2_poly_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_colorspace_SOURCES = imlib2_colorspace.c imlib2_colorspace_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_view_SOURCES = imlib2_view.c imlib2_view_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2_grab_SOURCES = imlib2_grab.c imlib2_grab_LDADD = $(top_builddir)/src/lib/libImlib2.la -lX11 imlib2-1.4.6/src/bin/imlib2_conv.c0000664000175000017500000000510212255265135013535 00000000000000#include "config.h" /* Convert images between formats, using Imlib2's API. Smart enough to know * about edb files; defaults to jpg's. */ #include #include #include #include #define X_DISPLAY_MISSING #include #define PROG_NAME "imlib2_conv" static void usage(int exit_status); int main(int argc, char **argv) { char *dot, *colon, *n, *oldn; Imlib_Image im; /* I'm just plain being lazy here.. get our basename. */ for (oldn = n = argv[0]; n; oldn = n) n = strchr(++oldn, '/'); if (argc < 3 || !strcmp(argv[1], "-h")) usage(-1); if (!(im = imlib_load_image(argv[1]))) { fprintf(stderr, PROG_NAME ": Error loading image: %s\n", argv[1]); exit(-1); } /* we only care what format the export format is. */ imlib_context_set_image(im); /* hopefully the last one will be the one we want.. */ dot = strrchr(argv[2], '.'); /* if there's a format, snarf it and set the format. */ if (dot && *(dot + 1)) { colon = strrchr(++dot, ':'); /* if a db file with a key, export it to a db. */ if (colon && *(colon + 1)) { *colon = 0; /* beats having to look for strcasecmp() */ if (!strncmp(dot, "db", 2) || !strncmp(dot, "dB", 2) || !strncmp(dot, "DB", 2) || !strncmp(dot, "Db", 2)) { imlib_image_set_format("db"); } *colon = ':'; } else { char *p, *q; /* max length of 8 for format name. seems reasonable. */ q = p = malloc(8); memset(p, 0, 8); strncpy(p, dot, (strlen(dot) < 9) ? strlen(dot) : 8); /* Imlib2 only recognizes lowercase formats. convert it. */ for (q[8] = 0; *q; q++) *q = tolower(*q); imlib_image_set_format(p); free(p); } dot--; } else imlib_image_set_format("jpg"); imlib_save_image(argv[2]); return 0; } static void usage(int exit_status) { fprintf(exit_status ? stderr : stdout, PROG_NAME ": Convert images between formats (part of the " "Imlib2 package)\n\n" "Usage: " PROG_NAME " [ -h | ]\n" " defaults to jpg if not provided; images in " "edb files are supported via\n" " the file.db:/key/name convention.\n" " -h shows this help.\n\n"); exit(exit_status); } imlib2-1.4.6/src/bin/imlib2_poly.c0000664000175000017500000000752312255265135013564 00000000000000#include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include "Imlib2.h" Display *disp; Window win; Visual *vis; Colormap cm; int depth; int main(int argc, char **argv) { int w, h; Imlib_Image im_bg = NULL; XEvent ev; KeySym keysym; static char kbuf[20]; ImlibPolygon poly, poly1, poly2; const char *display_name = getenv("DISPLAY"); /** * First tests to determine which rendering task to perform */ if (!display_name) display_name = ":0"; disp = XOpenDisplay(display_name); if (!disp) { fprintf(stderr, "Can't open display %s\n", display_name); return 1; } vis = DefaultVisual(disp, DefaultScreen(disp)); depth = DefaultDepth(disp, DefaultScreen(disp)); cm = DefaultColormap(disp, DefaultScreen(disp)); win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 0, 0, 100, 100, 0, 0, 0); XSelectInput(disp, win, ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | PointerMotionMask | ExposureMask | KeyPressMask); /** * Start rendering */ imlib_context_set_display(disp); imlib_context_set_visual(vis); imlib_context_set_colormap(cm); imlib_context_set_drawable(win); imlib_context_set_blend(0); imlib_context_set_color_modifier(NULL); imlib_context_set_blend(0); im_bg = imlib_create_image(400, 400); imlib_context_set_image(im_bg); w = imlib_image_get_width(); h = imlib_image_get_height(); imlib_context_set_color(0, 0, 0, 255); imlib_image_fill_rectangle(0, 0, w, h); XResizeWindow(disp, win, w, h); XMapWindow(disp, win); XSync(disp, False); poly = imlib_polygon_new(); imlib_polygon_add_point(poly, 20, 20); imlib_polygon_add_point(poly, 70, 20); imlib_polygon_add_point(poly, 70, 70); imlib_polygon_add_point(poly, 20, 70); poly1 = imlib_polygon_new(); imlib_polygon_add_point(poly1, 100, 20); imlib_polygon_add_point(poly1, 190, 100); imlib_polygon_add_point(poly1, 120, 70); poly2 = imlib_polygon_new(); imlib_polygon_add_point(poly2, 290, 20); imlib_polygon_add_point(poly2, 200, 100); imlib_polygon_add_point(poly2, 270, 70); while (1) { do { XNextEvent(disp, &ev); switch (ev.type) { case ButtonRelease: exit(0); break; case KeyPress: XLookupString(&ev.xkey, (char *)kbuf, sizeof(kbuf), &keysym, NULL); switch (*kbuf) { case ' ': imlib_context_set_anti_alias (!imlib_context_get_anti_alias()); printf("AA is %s\n", imlib_context_get_anti_alias()? "on" : "off"); break; case 'q': exit(0); default: break; } break; default: break; } } while (XPending(disp)); imlib_context_set_image(im_bg); imlib_context_set_color(0, 0, 0, 255); imlib_image_fill_rectangle(0, 0, w, h); imlib_context_set_color(255, 255, 255, 255); imlib_image_fill_polygon(poly); imlib_image_fill_polygon(poly1); imlib_image_fill_polygon(poly2); imlib_render_image_on_drawable(0, 0); } return 0; } imlib2-1.4.6/src/bin/imlib2_test.c0000664000175000017500000002714412255265135013561 00000000000000#include "config.h" /* include X11 stuff */ #include /* include Imlib2 stuff */ #include /* needed for sprintf and fprintf */ #include /* needed for getenv */ #include /* some globals for our window & X display */ Display *disp; Window win; Visual *vis; Colormap cm; int depth; /* the program... */ int main(int argc, char **argv) { /* events we get from X */ XEvent ev; /* areas to update */ Imlib_Updates updates, current_update; /* our virtual framebuffer image we draw into */ Imlib_Image buffer; /* a font */ Imlib_Font font; /* our color range */ Imlib_Color_Range range; /* our mouse x, y coordinates */ int mouse_x = 0, mouse_y = 0; const char *display_name = getenv("DISPLAY"); /* connect to X */ if (!display_name) display_name = ":0"; disp = XOpenDisplay(display_name); if (!disp) { fprintf(stderr, "Can't open display %s\n", display_name); return 1; } /* get default visual , colormap etc. you could ask imlib2 for what it */ /* thinks is the best, but this example is intended to be simple */ vis = DefaultVisual(disp, DefaultScreen(disp)); depth = DefaultDepth(disp, DefaultScreen(disp)); cm = DefaultColormap(disp, DefaultScreen(disp)); /* create a window 640x480 */ win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 0, 0, 640, 480, 0, 0, 0); /* tell X what events we are interested in */ XSelectInput(disp, win, ButtonPressMask | ButtonReleaseMask | PointerMotionMask | ExposureMask); /* show the window */ XMapWindow(disp, win); /* set our cache to 2 Mb so it doesn't have to go hit the disk as long as */ /* the images we use use less than 2Mb of RAM (that is uncompressed) */ imlib_set_cache_size(2048 * 1024); /* set the font cache to 512Kb - again to avoid re-loading */ imlib_set_font_cache_size(512 * 1024); /* add the ./ttfonts dir to our font path - you'll want a notepad.ttf */ /* in that dir for the text to display */ imlib_add_path_to_font_path(PACKAGE_DATA_DIR "/data/fonts"); /* set the maximum number of colors to allocate for 8bpp and less to 128 */ imlib_set_color_usage(128); /* dither for depths < 24bpp */ imlib_context_set_dither(1); /* set the display , visual, colormap and drawable we are using */ imlib_context_set_display(disp); imlib_context_set_visual(vis); imlib_context_set_colormap(cm); imlib_context_set_drawable(win); /* infinite event loop */ for (;;) { /* image variable */ Imlib_Image image; /* width and height values */ int w, h, text_w, text_h; /* init our updates to empty */ updates = imlib_updates_init(); /* while there are events form X - handle them */ do { XNextEvent(disp, &ev); switch (ev.type) { case Expose: /* window rectangle was exposed - add it to the list of */ /* rectangles we need to re-render */ updates = imlib_update_append_rect(updates, ev.xexpose.x, ev.xexpose.y, ev.xexpose.width, ev.xexpose.height); break; case ButtonPress: /* if we click anywhere in the window, exit */ exit(0); break; case MotionNotify: /* if the mouse moves - note it */ /* add a rectangle update for the new mouse position */ image = imlib_load_image(PACKAGE_DATA_DIR "/data/images/mush.png"); imlib_context_set_image(image); w = imlib_image_get_width(); h = imlib_image_get_height(); imlib_context_set_image(image); imlib_free_image(); /* the old position - so we wipe over where it used to be */ updates = imlib_update_append_rect(updates, mouse_x - (w / 2), mouse_y - (h / 2), w, h); font = imlib_load_font("notepad/30"); if (font) { char text[4096]; imlib_context_set_font(font); sprintf(text, "Mouse is at %i, %i", mouse_x, mouse_y); imlib_get_text_size(text, &text_w, &text_h); imlib_free_font(); updates = imlib_update_append_rect(updates, 320 - (text_w / 2), 240 - (text_h / 2), text_w, text_h); } mouse_x = ev.xmotion.x; mouse_y = ev.xmotion.y; /* the new one */ updates = imlib_update_append_rect(updates, mouse_x - (w / 2), mouse_y - (h / 2), w, h); font = imlib_load_font("notepad/30"); if (font) { char text[4096]; imlib_context_set_font(font); sprintf(text, "Mouse is at %i, %i", mouse_x, mouse_y); imlib_get_text_size(text, &text_w, &text_h); imlib_free_font(); updates = imlib_update_append_rect(updates, 320 - (text_w / 2), 240 - (text_h / 2), text_w, text_h); } default: /* any other events - do nothing */ break; } } while (XPending(disp)); /* no more events for now ? ok - idle time so lets draw stuff */ /* take all the little rectangles to redraw and merge them into */ /* something sane for rendering */ updates = imlib_updates_merge_for_rendering(updates, 640, 480); for (current_update = updates; current_update; current_update = imlib_updates_get_next(current_update)) { int up_x, up_y, up_w, up_h; /* find out where the first update is */ imlib_updates_get_coordinates(current_update, &up_x, &up_y, &up_w, &up_h); /* create our buffer image for renderign this update */ buffer = imlib_create_image(up_w, up_h); /* we can blend stuff now */ imlib_context_set_blend(1); /* fill the window background */ /* load the background image - you'll need to have some images */ /* in ./test_images lying around for this to actually work */ image = imlib_load_image(PACKAGE_DATA_DIR "/data/images/bg.png"); /* we're working with this image now */ imlib_context_set_image(image); /* get its size */ w = imlib_image_get_width(); h = imlib_image_get_height(); /* now we want to work with the buffer */ imlib_context_set_image(buffer); /* if the iimage loaded */ if (image) { /* blend image onto the buffer and scale it to 640x480 */ imlib_blend_image_onto_image(image, 0, 0, 0, w, h, -up_x, -up_y, 640, 480); /* working with the loaded image */ imlib_context_set_image(image); /* free it */ imlib_free_image(); } /* draw an icon centered around the mouse position */ image = imlib_load_image(PACKAGE_DATA_DIR "/data/images/mush.png"); imlib_context_set_image(image); w = imlib_image_get_width(); h = imlib_image_get_height(); imlib_context_set_image(buffer); if (image) { imlib_blend_image_onto_image(image, 0, 0, 0, w, h, mouse_x - (w / 2) - up_x, mouse_y - (h / 2) - up_y, w, h); imlib_context_set_image(image); imlib_free_image(); } /* draw a gradient on top of things at the top left of the window */ /* create a range */ range = imlib_create_color_range(); imlib_context_set_color_range(range); /* add white opaque as the first color */ imlib_context_set_color(255, 255, 255, 255); imlib_add_color_to_color_range(0); /* add an orange color, semi-transparent 10 units from the first */ imlib_context_set_color(255, 200, 10, 100); imlib_add_color_to_color_range(10); /* add black, fully transparent at the end 20 units away */ imlib_context_set_color(0, 0, 0, 0); imlib_add_color_to_color_range(20); /* draw the range */ imlib_context_set_image(buffer); imlib_image_fill_color_range_rectangle(-up_x, -up_y, 128, 128, -45.0); /* free it */ imlib_free_color_range(); /* draw text - centered with the current mouse x, y */ font = imlib_load_font("notepad/30"); if (font) { char text[4096]; /* set the current font */ imlib_context_set_font(font); /* set the image */ imlib_context_set_image(buffer); /* set the color (black) */ imlib_context_set_color(0, 0, 0, 255); /* print text to display in the buffer */ sprintf(text, "Mouse is at %i, %i", mouse_x, mouse_y); /* query the size it will be */ imlib_get_text_size(text, &text_w, &text_h); /* draw it */ imlib_text_draw(320 - (text_w / 2) - up_x, 240 - (text_h / 2) - up_y, text); /* free the font */ imlib_free_font(); } /* dont blend the image onto the drawable - slower */ imlib_context_set_blend(0); /* set the buffer image as our current image */ imlib_context_set_image(buffer); /* render the image at 0, 0 */ imlib_render_image_on_drawable(up_x, up_y); /* don't need that temproary buffer image anymore */ imlib_free_image(); } /* if we had updates - free them */ if (updates) imlib_updates_free(updates); /* loop again waiting for events */ } return 0; } imlib2-1.4.6/src/bin/imlib2_view.c0000664000175000017500000003077712255265135013562 00000000000000#include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include "Imlib2.h" Display *disp; Window win; Pixmap pm = 0; Visual *vis; Colormap cm; int depth; int image_width = 0, image_height = 0; int window_width = 0, window_height = 0; double scale = 1.; Imlib_Image bg_im = NULL; static Atom ATOM_WM_DELETE_WINDOW = None; static Atom ATOM_WM_PROTOCOLS = None; #define SCALE(x) (int)(scale * (x) + .5) static int progress(Imlib_Image im, char percent, int update_x, int update_y, int update_w, int update_h) { int up_wx, up_wy, up_ww, up_wh; /* first time it's called */ imlib_context_set_drawable(pm); imlib_context_set_anti_alias(0); imlib_context_set_dither(0); imlib_context_set_blend(0); if (image_width == 0) { int x, y, onoff; imlib_context_set_image(im); image_width = imlib_image_get_width(); image_height = imlib_image_get_height(); window_width = SCALE(image_width); window_height = SCALE(image_height); if (pm) XFreePixmap(disp, pm); pm = XCreatePixmap(disp, win, window_width, window_height, depth); imlib_context_set_drawable(pm); if (bg_im) { imlib_context_set_image(bg_im); imlib_free_image_and_decache(); } bg_im = imlib_create_image(image_width, image_height); imlib_context_set_image(bg_im); for (y = 0; y < image_height; y += 8) { onoff = (y / 8) & 0x1; for (x = 0; x < image_width; x += 8) { if (onoff) imlib_context_set_color(144, 144, 144, 255); else imlib_context_set_color(100, 100, 100, 255); imlib_image_fill_rectangle(x, y, 8, 8); onoff++; if (onoff == 2) onoff = 0; } } imlib_render_image_part_on_drawable_at_size(0, 0, image_width, image_height, 0, 0, window_width, window_height); XSetWindowBackgroundPixmap(disp, win, pm); XResizeWindow(disp, win, window_width, window_height); XMapWindow(disp, win); XSync(disp, False); } imlib_context_set_anti_alias(0); imlib_context_set_dither(0); imlib_context_set_blend(1); imlib_blend_image_onto_image(im, 0, update_x, update_y, update_w, update_h, update_x, update_y, update_w, update_h); up_wx = SCALE(update_x); up_wy = SCALE(update_y); up_ww = SCALE(update_w); up_wh = SCALE(update_h); imlib_context_set_blend(0); imlib_render_image_part_on_drawable_at_size(update_x, update_y, update_w, update_h, up_wx, up_wy, up_ww, up_wh); XClearArea(disp, win, up_wx, up_wy, up_ww, up_wh, False); XFlush(disp); return 1; } int main(int argc, char **argv) { char *s; Imlib_Image *im = NULL; char *file = NULL; int no = 1; for (no = 1; no < argc; no++) { s = argv[no]; if (*s++ != '-') break; switch (*s) { default: break; case 's': /* Scale (window size wrt. image size) */ if (++no < argc) scale = atof(argv[no]); break; } } if (no >= argc) { fprintf(stderr, "imlib2_view [-s ] file...\n"); return 1; } disp = XOpenDisplay(NULL); if (!disp) { fprintf(stderr, "Cannot open display\n"); return 1; } vis = DefaultVisual(disp, DefaultScreen(disp)); depth = DefaultDepth(disp, DefaultScreen(disp)); cm = DefaultColormap(disp, DefaultScreen(disp)); win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 0, 0, 10, 10, 0, 0, 0); XSelectInput(disp, win, KeyPressMask | ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | PointerMotionMask); ATOM_WM_PROTOCOLS = XInternAtom(disp, "WM_PROTOCOLS", False); ATOM_WM_DELETE_WINDOW = XInternAtom(disp, "WM_DELETE_WINDOW", False); XSetWMProtocols(disp, win, &ATOM_WM_DELETE_WINDOW, 1); imlib_context_set_display(disp); imlib_context_set_visual(vis); imlib_context_set_colormap(cm); imlib_context_set_progress_function(progress); imlib_context_set_progress_granularity(10); imlib_context_set_drawable(win); file = argv[no]; im = imlib_load_image(file); while (!im) { no++; if (no == argc) { fprintf(stderr, "Image format not available\n"); exit(0); } file = argv[no]; image_width = 0; im = imlib_load_image(file); imlib_context_set_image(im); } if (!im) { fprintf(stderr, "Image format not available\n"); exit(0); } for (;;) { int x, y, b, count, fdsize, xfd, timeout = 0; XEvent ev; static int zoom_mode = 0, zx, zy; static double zoom = 1.0; struct timeval tval; fd_set fdset; double t1; KeySym key; XFlush(disp); XNextEvent(disp, &ev); switch (ev.type) { case ClientMessage: if (ev.xclient.message_type == ATOM_WM_PROTOCOLS && (Atom) ev.xclient.data.l[0] == ATOM_WM_DELETE_WINDOW) return 0; break; case KeyPress: key = XLookupKeysym(&ev.xkey, 0); if (key == XK_q) return 0; break; case ButtonPress: b = ev.xbutton.button; x = ev.xbutton.x; y = ev.xbutton.y; if (b == 3) { zoom_mode = 1; zx = x; zy = y; imlib_context_set_drawable(pm); imlib_context_set_image(bg_im); imlib_context_set_anti_alias(0); imlib_context_set_dither(0); imlib_context_set_blend(0); imlib_render_image_part_on_drawable_at_size (0, 0, image_width, image_height, 0, 0, window_width, window_height); XClearWindow(disp, win); } break; case ButtonRelease: b = ev.xbutton.button; x = ev.xbutton.x; y = ev.xbutton.y; if (b == 3) zoom_mode = 0; if (b == 1) { no++; if (no == argc) no = argc - 1; file = argv[no]; image_width = 0; zoom = 1.0; zoom_mode = 0; imlib_context_set_image(im); imlib_free_image_and_decache(); im = imlib_load_image(file); while (!im) { no++; if (no == argc) exit(0); file = argv[no]; image_width = 0; im = imlib_load_image(file); } imlib_context_set_image(im); } if (b == 2) { no--; if (no == 0) no = 1; file = argv[no]; image_width = 0; zoom = 1.0; zoom_mode = 0; imlib_context_set_image(im); imlib_free_image_and_decache(); im = imlib_load_image(file); while (!im) { no--; if (no == 0) no = 1; file = argv[no]; image_width = 0; im = imlib_load_image(file); } imlib_context_set_image(im); } break; case MotionNotify: while (XCheckTypedWindowEvent(disp, win, MotionNotify, &ev)); x = ev.xmotion.x; y = ev.xmotion.y; if (zoom_mode) { int sx, sy, sw, sh, dx, dy, dw, dh; zoom = ((double)x - (double)zx) / 32.0; if (zoom < 0) zoom = 1.0 + ((zoom * 32.0) / ((double)(zx + 1))); else zoom += 1.0; if (zoom <= 0.0001) zoom = 0.0001; if (zoom > 1.0) { dx = 0; dy = 0; dw = window_width; dh = window_height; sx = zx - (zx / zoom); sy = zy - (zy / zoom); sw = image_width / zoom; sh = image_height / zoom; } else { dx = zx - (zx * zoom); dy = zy - (zy * zoom); dw = window_width * zoom; dh = window_height * zoom; sx = 0; sy = 0; sw = image_width; sh = image_height; } imlib_context_set_anti_alias(0); imlib_context_set_dither(0); imlib_context_set_blend(0); imlib_context_set_image(bg_im); imlib_render_image_part_on_drawable_at_size (sx, sy, sw, sh, dx, dy, dw, dh); XClearWindow(disp, win); XFlush(disp); timeout = 1; } default: break; } t1 = 0.2; tval.tv_sec = (long)t1; tval.tv_usec = (long)((t1 - ((double)tval.tv_sec)) * 1000000); xfd = ConnectionNumber(disp); fdsize = xfd + 1; FD_ZERO(&fdset); FD_SET(xfd, &fdset); if (timeout) count = select(fdsize, &fdset, NULL, NULL, &tval); else count = select(fdsize, &fdset, NULL, NULL, NULL); if (count < 0) { if ((errno == ENOMEM) || (errno == EINVAL) || (errno == EBADF)) exit(1); } else { if ((count == 0) && (timeout)) { int sx, sy, sw, sh, dx, dy, dw, dh; if (zoom > 1.0) { dx = 0; dy = 0; dw = window_width; dh = window_height; sx = zx - (zx / zoom); sy = zy - (zy / zoom); sw = image_width / zoom; sh = image_height / zoom; } else { dx = zx - (zx * zoom); dy = zy - (zy * zoom); dw = window_width * zoom; dh = window_height * zoom; sx = 0; sy = 0; sw = image_width; sh = image_height; } imlib_context_set_anti_alias(1); imlib_context_set_dither(1); imlib_context_set_blend(0); imlib_context_set_image(bg_im); imlib_render_image_part_on_drawable_at_size (sx, sy, sw, sh, dx, dy, dw, dh); XClearWindow(disp, win); XFlush(disp); timeout = 0; } } } return 0; } imlib2-1.4.6/src/bin/imlib2_bumpmap.c0000664000175000017500000000652012255265135014236 00000000000000#include "config.h" #include #include #include #include #include #include #include #include #include #include #include /* #include #include "common.h" #include "image.h" #include "rend.h" #include "rgba.h" #include "ximage.h" #include "color.h" */ #include "Imlib2.h" Display *disp; Window win; Visual *vis; Colormap cm; int depth; int main(int argc, char **argv) { int w, h, x, y; Imlib_Image im = NULL, im_bg = NULL; XEvent ev; const char *display_name = getenv("DISPLAY"); /** * Initialization according to options */ printf("Initialising\n"); /** * First tests to determine which rendering task to perform */ if (!display_name) display_name = ":0"; disp = XOpenDisplay(display_name); if (!disp) { fprintf(stderr, "Can't open display %s\n", display_name); return 1; } vis = DefaultVisual(disp, DefaultScreen(disp)); depth = DefaultDepth(disp, DefaultScreen(disp)); cm = DefaultColormap(disp, DefaultScreen(disp)); win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 0, 0, 100, 100, 0, 0, 0); XSelectInput(disp, win, ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | PointerMotionMask | ExposureMask); /** * Start rendering */ printf("Rendering\n"); imlib_context_set_display(disp); imlib_context_set_visual(vis); imlib_context_set_colormap(cm); imlib_context_set_drawable(win); imlib_context_set_dither(1); imlib_context_set_blend(0); imlib_context_set_color_modifier(NULL); im_bg = imlib_load_image(PACKAGE_DATA_DIR "/data/images/imlib2.png"); im = imlib_load_image(PACKAGE_DATA_DIR "/data/images/imlib2.png"); imlib_context_set_image(im_bg); w = imlib_image_get_width(); h = imlib_image_get_height(); XResizeWindow(disp, win, w, h); XMapWindow(disp, win); XSync(disp, False); x = -9999; y = -9999; while (1) { Imlib_Image *temp, *temp2; do { XNextEvent(disp, &ev); switch (ev.type) { case Expose: break; case ButtonRelease: exit(0); break; case MotionNotify: x = ev.xmotion.x; y = ev.xmotion.y; default: break; } } while (XPending(disp)); imlib_context_set_blend(0); imlib_context_set_image(im_bg); temp = imlib_clone_image(); imlib_context_set_image(temp); /* imlib_blend_image_onto_image(im_bg, 0, * 0, 0, w, h, * 0, 0, w, h); * first = 0; */ imlib_apply_filter ("bump_map_point(x=[],y=[],map=" PACKAGE_DATA_DIR "/data/images/imlib2.png);", &x, &y); temp2 = im_bg; im_bg = temp; imlib_context_set_image(im_bg); imlib_render_image_on_drawable(0, 0); im_bg = temp2; imlib_context_set_image(temp); imlib_free_image(); } return 0; } imlib2-1.4.6/src/bin/imlib2_grab.c0000664000175000017500000000711312255265135013507 00000000000000#include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include "Imlib2.h" Display *disp; Visual *vis; Colormap cm; int depth; int image_width = 0, image_height = 0; static void usage(void) { printf ("Usage: imlib2_grab [-v] [-id ] [-width ] [-height ] [-noshape] \n"); } int main(int argc, char **argv) { char *s; Imlib_Image *im = NULL; char *file = NULL; int verbose; int get_alpha; const char *display_name = getenv("DISPLAY"); Drawable draw; int x, y; unsigned int w, h, bw, depth; unsigned int wo, ho; Window rr; verbose = 0; get_alpha = 1; draw = None; wo = ho = 0; for (;;) { argc--; argv++; if (argc <= 0) break; s = argv[0]; if (*s++ != '-') break; if (!strcmp(s, "id")) { argc--; argv++; if (argc <= 1) break; draw = strtoul(argv[0], NULL, 0); } else if (!strcmp(s, "w") || !strcmp(s, "width")) { argc--; argv++; if (argc <= 1) break; wo = strtoul(argv[0], NULL, 0); } else if (!strcmp(s, "h") || !strcmp(s, "height")) { argc--; argv++; if (argc <= 1) break; ho = strtoul(argv[0], NULL, 0); } else if (!strcmp(s, "noshape")) { get_alpha = 0; } else if (!strcmp(s, "v")) { verbose = 1; } else if (!strcmp(s, "help")) { usage(); return 0; } } if (argc <= 0) { usage(); return 1; } file = argv[0]; if (!display_name) display_name = ":0"; disp = XOpenDisplay(display_name); if (!disp) { fprintf(stderr, "Can't open display %s\n", display_name); return 1; } vis = DefaultVisual(disp, DefaultScreen(disp)); depth = DefaultDepth(disp, DefaultScreen(disp)); cm = DefaultColormap(disp, DefaultScreen(disp)); imlib_context_set_display(disp); imlib_context_set_visual(vis); imlib_context_set_colormap(cm); if (draw == None) draw = DefaultRootWindow(disp); imlib_context_set_drawable(draw); XGetGeometry(disp, draw, &rr, &x, &y, &w, &h, &bw, &depth); if (wo == 0) wo = w; if (ho == 0) ho = h; if (verbose) { printf("Drawable: %#lx: x,y: %d,%d wxh=%ux%u bw=%u depth=%u\n", draw, x, y, w, h, bw, depth); if ((wo != w) || (ho != h)) printf("Output : wxh=%ux%u\n", wo, ho); } if ((wo != w) || (ho != h)) im = imlib_create_scaled_image_from_drawable(None, 0, 0, w, h, wo, ho, 1, (get_alpha) ? 1 : 0); else im = imlib_create_image_from_drawable((get_alpha) ? 1 : 0, 0, 0, w, h, 1); if (!im) { fprintf(stderr, "Cannot grab image!\n"); exit(0); } imlib_context_set_image(im); imlib_save_image(file); return 0; } imlib2-1.4.6/src/bin/imlib2_show.c0000664000175000017500000015330412255265135013560 00000000000000#include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include /* #include #include "common.h" #include "image.h" #include "rend.h" #include "rgba.h" #include "ximage.h" #include "color.h" */ #include "Imlib2.h" Display *disp; Window win; Visual *vis; Colormap cm; int depth; void progress(Imlib_Image * im, char percent, int update_x, int update_y, int update_w, int update_h); void progress(Imlib_Image * im, char percent, int update_x, int update_y, int update_w, int update_h) { imlib_context_set_display(disp); imlib_context_set_visual(vis); imlib_context_set_colormap(cm); imlib_context_set_drawable(win); imlib_context_set_dither(0); imlib_context_set_blend(0); imlib_context_set_color_modifier(NULL); imlib_context_set_operation(IMLIB_OP_COPY); imlib_context_set_image(im); imlib_render_image_part_on_drawable_at_size(update_x, update_y, update_w, update_h, update_x, update_y, update_w, update_h); } int main(int argc, char **argv) { int i; Imlib_Image *im = NULL; int sec1, usec1, sec2, usec2; int pixels = 0; struct timeval timev; double sec; char *file = NULL; char *fon = NULL, *str = NULL; int root = 0; int scale = 0; int w = 20; int h = 20; int aa = 0; int dith = 0; int loop = 0; int blend = 1; int interactive = 1; int blendtest = 0; int filter = 0; int pol = 0; int rotate = 0; int rottest = 0; int scaleup = 0; int scaleboth = 0; int origone = 0; int bump_map_to_point = 0; Imlib_Color_Modifier colormod = 0; ImlibPolygon poly, poly2, poly3; int textdir = IMLIB_TEXT_TO_RIGHT; int xfdtest = 0; int xfdcachetest = 0; char *xfdfname = NULL; int xfdloop = 1; /* now we'll set the locale */ setlocale(LC_ALL, ""); if (!XSupportsLocale()) setlocale(LC_ALL, "C"); XSetLocaleModifiers(""); setlocale(LC_ALL, NULL); /** * Parse all the command line arguments */ if ((argc > 1) && (!strcmp(argv[1], "-help"))) { printf("Imlib2 program test. (Imlib v2.0.0.4)\n"); printf("usage: imlib2 [options] [file]\n"); printf("options are:\n"); printf("-help\t\tDisplays this help.\n"); printf("-root\t\tDraw in the root window.\n"); printf("-smooth\t\tWhen scaling images scale with anti-aliasing.\n"); printf("-up\t\tWhen doing scal test scale up, not down.\n"); printf("-both\t\tScale horizontally AND vertically in scale test.\n"); printf ("-orig\t\tKeep original width and height in each pass of scale test.\n"); printf("-blend\t\tBlending test.\n"); printf("-dither\t\tTurn dithering on for depths < 24bpp\n"); printf("-colormod \t\tSet up color mod tables\n"); printf("-scale\t\tScale test.\n"); printf("-noloop\t\tDont loop - timing test.\n"); printf ("-rotate\t\tAlso rotate background image with mouse in interative test.\n"); printf("-size \t\tScale from w x h down in scaling test.\n"); // require parameters w / h printf("-maxcolors \t\tLimit color allocation count to n colors.\n"); // require parameter nb colors printf ("-text\t\tDisplays the text following this option. Need a loaded font.\n"); printf ("-font\t\tLoads a font. The parameter must follow the police_name/size format. Example: loading the grunge font at size 18 is : grunge/18.\n\t\tThe XFD font also can be specified. Ex. 'notepad/32,-*--24-*'.\n"); printf("-poly\t\tPerforms a poly test\n"); printf("The following options requires a file to work properly.\n"); printf("-textdir\t\tText Direction. 0: L to R, 1: R to L\n"); printf(" 2: U to D, 3: D to U, 4: angle\n"); printf("-xfdtest\t\tXFD Font queue test.\n"); printf ("-xfdcachetest []\t\tXFD tFont cache test.\n\t\tThe file f is drawn l times\n"); printf("-blast\t\tDisplays the file.\n"); printf("-loop\t\tScales down the image.\n"); printf("-blendtest\tPerforms a blending test on the file.\n"); printf("-rotatetest\tPerforms a rotate test on the file.\n"); printf ("-filter\t\tPerforms filtering. Possible filters are,\n\t\t\t1:Blur filter, 2:Sharpen filter, 3:Color blur filter, \n\t\t\t4:Emboss filter, 5:Grayscale filter, 6:Saturation filter,\n\t\t\t7:Edge detection filter.\n"); printf("-bmp2pt\t\tPerformas Bump Mapping to a point\n"); return 0; } for (i = 1; i < argc; i++) { if (!strcmp(argv[i], "-root")) root = 1; else if (!strcmp(argv[i], "-smooth")) aa = 1; else if (!strcmp(argv[i], "-blast")) interactive = 0; else if (!strcmp(argv[i], "-loop")) { interactive = 0; loop = 1; } else if (!strcmp(argv[i], "-up")) scaleup = 1; else if (!strcmp(argv[i], "-both")) scaleboth = 1; else if (!strcmp(argv[i], "-bmp2pt")) bump_map_to_point = 1; else if (!strcmp(argv[i], "-orig")) origone = 1; else if (!strcmp(argv[i], "-blend")) blend = 1; else if (!strcmp(argv[i], "-poly")) pol = 1; else if (!strcmp(argv[i], "-blendtest")) { blendtest = 1; interactive = 0; } else if (!strcmp(argv[i], "-colormod")) { DATA8 rt[256], gt[256], bt[256], at[256]; double rm, gm, bm, am; int j; /*\ Setup color mod tables \ */ if (!colormod) colormod = imlib_create_color_modifier(); imlib_context_set_color_modifier(colormod); rm = strtod(argv[++i], 0); gm = strtod(argv[++i], 0); bm = strtod(argv[++i], 0); am = strtod(argv[++i], 0); imlib_get_color_modifier_tables(rt, gt, bt, at); for (j = 0x100; --j >= 0;) { rt[j] = ((double)rt[j]) * rm; gt[j] = ((double)gt[j]) * gm; bt[j] = ((double)bt[j]) * bm; at[j] = ((double)at[j]) * am; } imlib_set_color_modifier_tables(rt, gt, bt, at); } else if (!strcmp(argv[i], "-dither")) dith = 1; else if (!strcmp(argv[i], "-scale")) scale = 1; else if (!strcmp(argv[i], "-noloop")) loop = 0; else if (!strcmp(argv[i], "-size")) { i++; w = atoi(argv[i++]); h = atoi(argv[i]); } else if (!strcmp(argv[i], "-maxcolors")) { i++; imlib_set_color_usage(atoi(argv[i])); } else if (!strcmp(argv[i], "-font")) { i++; fon = argv[i]; } else if (!strcmp(argv[i], "-text")) { i++; str = argv[i]; } else if (!strcmp(argv[i], "-xfdtest")) xfdtest = 1; else if (!strcmp(argv[i], "-xfdcachetest")) { xfdcachetest = 1; i++; xfdfname = argv[i]; i++; if (i < argc) xfdloop = atoi(argv[i]); } else if (!strcmp(argv[i], "-textdir")) { i++; textdir = atoi(argv[i]); } else if (!strcmp(argv[i], "-rotate")) rotate = 1; else if (!strcmp(argv[i], "-filter")) { filter = atoi(argv[++i]); interactive = 0; } else if (!strcmp(argv[i], "-rotatetest")) { rottest = 1; interactive = 0; } else file = argv[i]; } /** * Initialization according to options */ printf("init\n"); /** * First tests to determine which rendering task to perform */ if (!blendtest) { const char *display_name = getenv("DISPLAY"); if (!display_name) display_name = ":0"; disp = XOpenDisplay(display_name); if (!disp) { fprintf(stderr, "Can't open display %s\n", display_name); return 1; } vis = DefaultVisual(disp, DefaultScreen(disp)); depth = DefaultDepth(disp, DefaultScreen(disp)); cm = DefaultColormap(disp, DefaultScreen(disp)); #if 0 /* nasty - using imlib internal function.. but it makes benchmarks fair */ if (!interactive) __imlib_SetMaxXImageCount(disp, 3); #endif if (root) win = DefaultRootWindow(disp); else { win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 0, 0, 10, 10, 0, 0, 0); XSelectInput(disp, win, ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | PointerMotionMask | ExposureMask); } } if (!interactive) { printf("load %s\n", file); im = imlib_load_image_immediately(file); if (!im) { printf("load failed\n"); exit(0); } imlib_context_set_image(im); w = imlib_image_get_width(); h = imlib_image_get_height(); printf("image %i x %i\n", w, h); } if (!blendtest) { if (!root) { if (scaleup) XResizeWindow(disp, win, w * 4, h * 4); else if (scaleboth) XResizeWindow(disp, win, w * 2, h * 2); else XResizeWindow(disp, win, w, h); XMapWindow(disp, win); } if (scale) { Window d; unsigned int ud; int dd; XGetGeometry(disp, win, &d, &dd, &dd, &ud, &ud, &ud, &ud); } XSync(disp, False); } /** * Start rendering */ printf("rend\n"); if (!blendtest) { imlib_context_set_display(disp); imlib_context_set_visual(vis); imlib_context_set_colormap(cm); imlib_context_set_drawable(win); } imlib_context_set_anti_alias(aa); imlib_context_set_dither(dith); imlib_context_set_blend(blend); imlib_context_set_color_modifier(NULL); imlib_context_set_operation(IMLIB_OP_COPY); imlib_context_set_image(im); gettimeofday(&timev, NULL); sec1 = (int)timev.tv_sec; /* and stores it so we can time outselves */ usec1 = (int)timev.tv_usec; /* we will use this to vary speed of rot */ poly = imlib_polygon_new(); imlib_polygon_add_point(poly, 400, 50); imlib_polygon_add_point(poly, 450, 100); imlib_polygon_add_point(poly, 350, 100); poly2 = imlib_polygon_new(); imlib_polygon_add_point(poly2, 400, 150); imlib_polygon_add_point(poly2, 450, 200); imlib_polygon_add_point(poly2, 350, 200); poly3 = imlib_polygon_new(); imlib_polygon_add_point(poly3, 400, 250); imlib_polygon_add_point(poly3, 450, 300); imlib_polygon_add_point(poly3, 350, 300); #define A90 (3.141592654 / 2) if (pol) { Imlib_Image im_bg, im; int w, h; int i; double a, points[8][2]; if (file) im_bg = imlib_load_image(file); else im_bg = imlib_load_image(PACKAGE_DATA_DIR "/data/images/bg.png"); imlib_context_set_image(im_bg); w = imlib_image_get_width(); h = imlib_image_get_height(); XResizeWindow(disp, win, w, h); XSync(disp, False); im = imlib_create_image(w, h); srand(time(NULL)); for (i = 0; i < 8; i++) { points[i][0] = (rand() % w) - (w / 2); points[i][1] = (rand() % h) - (h / 2); } a = 0.0; for (;;) { imlib_context_set_image(im); imlib_blend_image_onto_image(im_bg, 0, 0, 0, w, h, 0, 0, w, h); poly = imlib_polygon_new(); for (i = 0; i < 8; i++) { double xx, yy; xx = (w / 2) + (cos(a) * points[i][0]) + (cos(a + A90) * points[i][1]); yy = (h / 2) + (sin(a) * points[i][0]) + (sin(a + A90) * points[i][1]); imlib_polygon_add_point(poly, xx, yy); } printf("draw angle %3.3f\n", a); imlib_context_set_color(255, 255, 255, 100); imlib_image_fill_polygon(poly); imlib_context_set_color(0, 0, 0, 20); imlib_image_draw_polygon(poly, 1); imlib_polygon_free(poly); imlib_render_image_on_drawable(0, 0); a += 0.05; } } if (loop) { printf("loop\n"); // first test if (scaleup) { printf("scale up\n"); for (i = 0; i < w * 3; i += 8) { if (!blendtest) { Imlib_Image im_tmp; im_tmp = imlib_create_cropped_scaled_image(0, 0, w, h, w + i, (((w + i) * h) / w)); if (im_tmp) { imlib_context_set_image(im_tmp); imlib_render_image_on_drawable(0, 0); imlib_free_image(); } imlib_context_set_image(im); } else { Imlib_Image im_tmp; im_tmp = imlib_create_cropped_scaled_image(0, 0, w, h, w + i, (((w + i) * h) / w)); if (im_tmp) { imlib_context_set_image(im_tmp); imlib_free_image(); } imlib_context_set_image(im); } pixels += (w + i) * (((w + i) * h) / w); } } // else if // second else if (scaleboth) { if (origone) { for (i = 0; i < w * 2; i += 4) { if (!blendtest) { Imlib_Image im_tmp; im_tmp = imlib_create_cropped_scaled_image(0, 0, w, h, w, (((i) * h) / w)); if (im_tmp) { imlib_context_set_image(im_tmp); imlib_render_image_on_drawable(0, 0); imlib_free_image(); } imlib_context_set_image(im); } else { Imlib_Image im_tmp; im_tmp = imlib_create_cropped_scaled_image(0, 0, w, h, w, (((i) * h) / w)); if (im_tmp) { imlib_context_set_image(im_tmp); imlib_free_image(); } imlib_context_set_image(im); } XSync(disp, False); pixels += (2 * w - i) * (((i) * h) / w); } for (i = 0; i < w * 2; i += 4) { if (!blendtest) imlib_render_image_on_drawable_at_size(0, 0, 2 * w - i, h); else { Imlib_Image im_tmp; im_tmp = imlib_create_cropped_scaled_image(0, 0, w, h, 2 * w - i, h); if (im_tmp) { imlib_context_set_image(im_tmp); imlib_free_image(); } imlib_context_set_image(im); } pixels += (2 * w - i) * h; } } else { for (i = 0; i < w * 2; i += 4) { if (!blendtest) imlib_render_image_on_drawable_at_size(0, 0, 2 * w - i, (((i) * h) / w)); else { Imlib_Image im_tmp; im_tmp = imlib_create_cropped_scaled_image(0, 0, w, h, 2 * w - i, (((i) * h) / w)); if (im_tmp) { imlib_context_set_image(im_tmp); imlib_free_image(); } imlib_context_set_image(im); } pixels += w * (((i) * h) / w); } } } else { printf("scale down 0 -> %i incriment by 1\n", w); for (i = 0; i < w; i++) { if (!blendtest) imlib_render_image_on_drawable_at_size(0, 0, w - i, (((w - i) * h) / w)); else { Imlib_Image im_tmp; im_tmp = imlib_create_cropped_scaled_image(0, 0, w, h, w - i, (((w - i) * h) / w)); if (im_tmp) { imlib_context_set_image(im_tmp); imlib_free_image(); } imlib_context_set_image(im); } pixels += (w + i) * (((w + i) * h) / w); } } } // last test /* else if (scaleboth) * { * for (i = 0; i < w * 2; i+= 1) * { * if (!blendtest) * imlib_render_image_on_drawable_at_size(0, 0, * 2 * w - i, (((i) * h) / w)); * else * { * Imlib_Image im_tmp; * im_tmp = imlib_create_cropped_scaled_image(0, 0, w, h, * 2 * w - i, (((i) * h) / w)); * if (im_tmp) * { * imlib_context_set_image(im_tmp); * imlib_free_image(); * } * imlib_context_set_image(im); * } * pixels += (2 * w - i) * (((i) * h) / w); * } * } * } */// end if loop else if (blendtest) { Imlib_Image im2; im2 = imlib_create_image(w, h); imlib_context_set_image(im2); w = imlib_image_get_width(); h = imlib_image_get_height(); imlib_context_set_image(im2); imlib_context_set_color_modifier(colormod); for (i = 0; i < 256; i++) { imlib_blend_image_onto_image(im, 0, 0, 0, w, h, 0, 0, w, h); pixels += (w * h); } } else if (rottest) { int w, h; double i; imlib_context_set_image(im); imlib_render_image_on_drawable(0, 0); w = imlib_image_get_width(); h = imlib_image_get_height(); printf("rotating inside %dx%d frame\n", w, h); imlib_context_set_blend(1); imlib_context_set_image(imlib_create_image(w, h)); for (i = 0; i < 1; i += 0.01) { imlib_blend_image_onto_image(im, 0, 0, 0, w, h, 0, 0, w, h); imlib_context_set_color_modifier(colormod); imlib_blend_image_onto_image_at_angle(im, 0, 0, 0, w, h, 0, h * i, w * (1 - i), -(h * i)); imlib_context_set_color_modifier(NULL); imlib_render_image_on_drawable(0, 0); pixels += w * h; } for (i = 0; i < 1; i += 0.01) { imlib_blend_image_onto_image(im, 0, 0, 0, w, h, 0, 0, w, h); imlib_context_set_color_modifier(colormod); imlib_context_set_operation(IMLIB_OP_ADD); imlib_blend_image_onto_image_at_angle(im, 0, 0, 0, w, h, w * i, h, -(w * i), h * (i - 1)); imlib_context_set_operation(IMLIB_OP_COPY); imlib_context_set_color_modifier(NULL); imlib_render_image_on_drawable(0, 0); pixels += w * h; } for (i = 0; i < 1; i += 0.01) { imlib_blend_image_onto_image(im, 0, 0, 0, w, h, 0, 0, w, h); imlib_context_set_color_modifier(colormod); imlib_context_set_operation(IMLIB_OP_SUBTRACT); imlib_blend_image_onto_image_at_angle(im, 0, 0, 0, w, h, w, h * (1 - i), w * (i - 1), h * i); imlib_context_set_operation(IMLIB_OP_COPY); imlib_context_set_color_modifier(NULL); imlib_render_image_on_drawable(0, 0); pixels += w * h; } for (i = 0; i < 1; i += 0.01) { imlib_blend_image_onto_image(im, 0, 0, 0, w, h, 0, 0, w, h); imlib_context_set_color_modifier(colormod); imlib_context_set_operation(IMLIB_OP_RESHADE); imlib_blend_image_onto_image_at_angle(im, 0, 0, 0, w, h, w * (1 - i), 0, w * i, h * (1 - i)); imlib_context_set_operation(IMLIB_OP_COPY); imlib_context_set_color_modifier(NULL); imlib_render_image_on_drawable(0, 0); pixels += w * h; } imlib_free_image(); } else if (filter) { imlib_context_set_filter(imlib_create_filter(0)); switch (filter) { default: case 1: /*\ Blur filter \ */ imlib_filter_set(0, 0, 0, 8, 8, 8); imlib_filter_set(-1, 0, 0, 4, 4, 4); imlib_filter_set(0, -1, 0, 4, 4, 4); imlib_filter_set(1, 0, 0, 4, 4, 4); imlib_filter_set(0, 1, 0, 4, 4, 4); imlib_filter_set(-2, 0, 0, 1, 1, 1); imlib_filter_set(0, -2, 0, 1, 1, 1); imlib_filter_set(2, 0, 0, 1, 1, 1); imlib_filter_set(0, 2, 0, 1, 1, 1); imlib_filter_set(-1, -1, 0, 1, 1, 1); imlib_filter_set(-1, 1, 0, 1, 1, 1); imlib_filter_set(1, -1, 0, 1, 1, 1); imlib_filter_set(1, 1, 0, 1, 1, 1); break; case 2: /*\ Sharpen filter \ */ imlib_filter_set(0, 0, 0, 5, 5, 5); imlib_filter_set(-1, 0, 0, -1, -1, -1); imlib_filter_set(0, -1, 0, -1, -1, -1); imlib_filter_set(1, 0, 0, -1, -1, -1); imlib_filter_set(0, 1, 0, -1, -1, -1); break; case 3: /*\ Color blur filter \ */ imlib_filter_set(0, 0, 0, 3, 3, 3); imlib_filter_set(-1, -1, 0, 1, 0, 0); imlib_filter_set(1, -1, 0, 0, 1, 0); imlib_filter_set(0, 1, 0, 0, 0, 1); break; case 4: /*\ Emboss filter \ */ imlib_filter_set_red(-1, -1, 0, -1, -1, -1); imlib_filter_set_red(0, 0, 0, 1, 1, 1); imlib_filter_set_green(-1, -1, 0, -1, -1, -1); imlib_filter_set_green(0, 0, 0, 1, 1, 1); imlib_filter_set_blue(-1, -1, 0, -1, -1, -1); imlib_filter_set_blue(0, 0, 0, 1, 1, 1); imlib_filter_constants(0, 768, 768, 768); imlib_filter_divisors(0, 6, 6, 6); break; case 5: /*\ Grayscale filter \ */ imlib_filter_set_red(0, 0, 0, 80, 1, 1); imlib_filter_set_green(0, 0, 0, 1, 80, 1); imlib_filter_set_blue(0, 0, 0, 1, 1, 80); break; case 6: /*\ Saturation filter \ */ imlib_filter_set_red(0, 0, 0, 80, -1, -1); imlib_filter_set_green(0, 0, 0, -1, 80, -1); imlib_filter_set_blue(0, 0, 0, -1, -1, 80); break; case 7: /*\ Edge detection filter \ */ imlib_filter_set(-1, -1, 0, -1, -1, -1); imlib_filter_set(-1, 0, 0, -3, -3, -3); imlib_filter_set(-1, 1, 0, -1, -1, -1); imlib_filter_set(0, -1, 0, -3, -3, -3); imlib_filter_set(0, 0, 0, 16, 16, 16); imlib_filter_set(0, 1, 0, -3, -3, -3); imlib_filter_set(1, -1, 0, -1, -1, -1); imlib_filter_set(1, 0, 0, -3, -3, -3); imlib_filter_set(1, 1, 0, -1, -1, -1); imlib_filter_divisors(0, 3, 3, 3); } pixels = 0; imlib_render_image_on_drawable_at_size(0, 0, w, h); for (i = 0; i < w; i++) { imlib_image_filter(); imlib_render_image_on_drawable_at_size(0, 0, w, h); pixels += w * h; } imlib_free_filter(); } else if (interactive) { int wo, ho, px, py, first = 1; Imlib_Image im_bg, im_sh1, im_sh2, im_sh3, im_ic[13], im_tmp; /* Imlib_Border border; */ Imlib_Updates up = NULL; int x, y, i, j; XEvent ev; Imlib_Font fn = NULL; struct font_hdr { int type; struct font_hdr *next; char *name; int ref; XFontSet xfontset; int font_count; XFontStruct **font_struct; char **font_name; int ascent; int descent; int max_ascent; int max_descent; int max_width; struct font_hdr *ttf; } *f, *f1, *f2, *f3, *f4; /* "ARIAL/30" "COMIC/30" "IMPACT/30" "Prole/30" "Proteron/30" */ /* "TIMES/30" "badacid/30" "bajoran/30" "bigfish/30" */ imlib_add_path_to_font_path(PACKAGE_DATA_DIR "/data/fonts"); if (xfdtest) { printf("Font Cache test start\n"); f = imlib_load_font("notepad/10"); printf("imlib_load_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f, f->next, f->type, f->ref, f->name); imlib_context_set_font((Imlib_Font) f); printf ("\t\t ascent=%d, descent=%d, max_ascent=%d, max_descent=%d\n", imlib_get_font_ascent(), imlib_get_font_descent(), imlib_get_maximum_font_ascent(), imlib_get_maximum_font_descent()); imlib_free_font(); printf("imlib_free_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f, f->next, f->type, f->ref, f->name); printf("\n"); f = imlib_load_font("-*-fixed-*--14-*"); printf("imlib_load_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f, f->next, f->type, f->ref, f->name); imlib_context_set_font((Imlib_Font) f); printf ("\t\t ascent=%d, descent=%d, max_ascent=%d, max_descent=%d\n", imlib_get_font_ascent(), imlib_get_font_descent(), imlib_get_maximum_font_ascent(), imlib_get_maximum_font_descent()); imlib_free_font(); printf("imlib_free_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f, f->next, f->type, f->ref, f->name); printf("\n"); f1 = imlib_load_font("notepad/10"); printf("imlib_load_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f1, f1->next, f1->type, f1->ref, f1->name); f2 = imlib_load_font("-*-fixed-*--14-*"); printf("imlib_load_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f2, f2->next, f2->type, f2->ref, f2->name); f3 = imlib_load_font("notepad/10,-*-fixed-*--14-*"); printf("imlib_load_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f3, f3->next, f3->type, f3->ref, f3->name); f = f3->ttf; printf(" f->ttf: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f, f->next, f->type, f->ref, f->name); f4 = imlib_load_font("notepad/10,-*-fixed-*--14-*"); printf("imlib_load_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f4, f4->next, f4->type, f4->ref, f4->name); f = f4->ttf; printf(" f->ttf: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f, f->next, f->type, f->ref, f->name); printf("\n"); imlib_context_set_font((Imlib_Font) f4); imlib_free_font(); printf("imlib_free_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f4, f4->next, f4->type, f4->ref, f4->name); f = f4->ttf; printf(" f->ttf: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f, f->next, f->type, f->ref, f->name); imlib_context_set_font((Imlib_Font) f1); imlib_free_font(); printf("imlib_free_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f1, f1->next, f1->type, f1->ref, f1->name); imlib_context_set_font((Imlib_Font) f2); imlib_free_font(); printf("imlib_free_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f2, f2->next, f2->type, f2->ref, f2->name); imlib_context_set_font((Imlib_Font) f3); imlib_free_font(); printf("imlib_free_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f3, f3->next, f3->type, f3->ref, f3->name); f = f3->ttf; printf(" f->ttf: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f, f->next, f->type, f->ref, f->name); printf("\n"); imlib_flush_font_cache(); printf("imlib_flush_font_cache: \n"); printf("\n"); f1 = imlib_load_font("notepad/10,-*-fixed-*--14-*"); printf("imlib_load_font: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f1, f1->next, f1->type, f1->ref, f1->name); f = f1->ttf; printf(" f->ttf: f=%p, next=%p, type=%d, ref=%d, '%s'\n", f, f->next, f->type, f->ref, f->name); imlib_context_set_font((Imlib_Font) f1); printf ("\t\t ascent=%d, descent=%d, max_ascent=%d, max_descent=%d\n", imlib_get_font_ascent(), imlib_get_font_descent(), imlib_get_maximum_font_ascent(), imlib_get_maximum_font_descent()); printf("Font Cache test end\n"); } if (fon) { fn = imlib_load_font(fon); if (xfdtest) { int i; f = fn; if (fn && f->type & 2) for (i = 0; i < f->font_count; i++) printf("xfont%d: %s\n", i, f->font_name[i]); } imlib_context_set_font(fn); if (!fn) fon = NULL; } imlib_context_set_progress_function(NULL); imlib_context_set_progress_granularity(0); if (file) im_bg = imlib_load_image(file); else im_bg = imlib_load_image(PACKAGE_DATA_DIR "/data/images/bg.png"); imlib_context_set_image(im_bg); im_tmp = imlib_clone_image(); w = imlib_image_get_width(); h = imlib_image_get_height(); wo = w; ho = h; w *= 1; h *= 1; XResizeWindow(disp, win, w, h); XSync(disp, False); im = imlib_create_image(w, h); imlib_set_cache_size(4 * 1024 * 1024); i = 0; up = imlib_update_append_rect(up, 0, 0, w, h); x = -9999; y = -9999; while (1) { px = x; py = y; do { XNextEvent(disp, &ev); switch (ev.type) { case Expose: up = imlib_update_append_rect(up, ev.xexpose.x, ev.xexpose.y, ev.xexpose.width, ev.xexpose.height); break; case ButtonRelease: if (fon) { imlib_context_set_font(fn); imlib_free_font(); } exit(0); break; case MotionNotify: x = ev.xmotion.x; y = ev.xmotion.y; default: break; } } while (XPending(disp)); im_sh1 = imlib_load_image(PACKAGE_DATA_DIR "/data/images/sh1.png"); im_sh2 = imlib_load_image(PACKAGE_DATA_DIR "/data/images/sh2.png"); im_sh3 = imlib_load_image(PACKAGE_DATA_DIR "/data/images/sh3.png"); im_ic[0] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/audio.png"); im_ic[1] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/folder.png"); im_ic[2] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/mush.png"); im_ic[3] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/paper.png"); im_ic[4] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/mail.png"); im_ic[5] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/calc.png"); im_ic[6] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/cal.png"); im_ic[7] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/stop.png"); im_ic[8] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/globe.png"); im_ic[9] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/menu.png"); im_ic[10] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/tnt.png"); im_ic[11] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/bulb.png"); im_ic[12] = imlib_load_image(PACKAGE_DATA_DIR "/data/images/lock.png"); imlib_context_set_image(im); if (first) { imlib_blend_image_onto_image(im_bg, 0, 0, 0, w, h, 0, 0, w, h); first = 0; } else if (rotate) { double s, c; int x1, y1, x2, y2, w, h; w = imlib_image_get_width(); h = imlib_image_get_height(); s = sin(6.2831853 * (double)y / (double)h); c = cos(6.2831853 * (double)y / (double)h); x1 = (w - w * c + h * s) / 2; y1 = (h - h * c - w * s) / 2; x2 = (w + w * c - h * s) / 2; y2 = (h + h * c + w * s) / 2; imlib_context_set_blend(1); imlib_blend_image_onto_image_at_angle(im_bg, 0, 0, 0, imlib_image_get_width(), imlib_image_get_height (), x1, y1, x2, y2); up = imlib_update_append_rect(up, 0, 0, imlib_image_get_width(), imlib_image_get_height()); } /* if( bump_map_to_point ) imlib_apply_filter("bump_map_point(x=[],y=[],map=test_images/bulb.png);", &x, &y ); else imlib_apply_filter("bump_map(x=[],y=[],map=test_images/bulb.png);", &x, &y ); */ up = imlib_update_append_rect(up, 0, 0, imlib_image_get_width(), imlib_image_get_height()); { Imlib_Updates uu; imlib_context_set_cliprect(0, 0, 0, 0); imlib_context_set_color(255, 255, 255, 255); uu = imlib_image_draw_line(200, 200, x, y, 1); up = imlib_updates_append_updates(up, uu); /* test ellipses */ imlib_context_set_color(255, 255, 255, 255); imlib_image_draw_ellipse(50, 250, 30, 40); imlib_image_fill_ellipse(50, 300, 30, 40); imlib_image_draw_rectangle(120, 245, 70, 70); up = imlib_update_append_rect(up, 120, 245, 70, 70); imlib_image_draw_ellipse(160, 280, 50, 20); imlib_context_set_cliprect(120, 245, 70, 70); imlib_context_set_color(255, 55, 55, 255); imlib_image_draw_ellipse(160, 280, 50, 20); /* test line clipping */ imlib_context_set_cliprect(0, 0, 0, 0); imlib_image_draw_rectangle(50, 50, 100, 100); up = imlib_update_append_rect(up, 50, 50, 100, 100); imlib_context_set_color(255, 255, 255, 255); uu = imlib_image_draw_line(0, 0, 200, 200, 1); up = imlib_updates_append_updates(up, uu); uu = imlib_image_draw_line(305, 25, 20, 200, 1); up = imlib_updates_append_updates(up, uu); uu = imlib_image_draw_line(100, 5, 100, 205, 1); up = imlib_updates_append_updates(up, uu); uu = imlib_image_draw_line(275, 5, 20, 100, 1); up = imlib_updates_append_updates(up, uu); imlib_context_set_color(255, 55, 55, 255); imlib_context_set_cliprect(50, 50, 100, 100); uu = imlib_image_draw_line(0, 0, 200, 200, 1); up = imlib_updates_append_updates(up, uu); uu = imlib_image_draw_line(305, 25, 20, 200, 1); up = imlib_updates_append_updates(up, uu); uu = imlib_image_draw_line(100, 5, 100, 205, 1); up = imlib_updates_append_updates(up, uu); uu = imlib_image_draw_line(275, 5, 20, 100, 1); up = imlib_updates_append_updates(up, uu); /* test rectangle clipping */ imlib_context_set_color(255, 255, 255, 255); imlib_context_set_cliprect(0, 0, 0, 0); imlib_image_draw_rectangle(70, 90, 20, 20); imlib_image_draw_rectangle(115, 70, 60, 30); imlib_image_draw_rectangle(30, 120, 50, 50); imlib_context_set_color(255, 55, 55, 255); imlib_context_set_cliprect(50, 50, 100, 100); imlib_image_draw_rectangle(70, 90, 20, 20); up = imlib_update_append_rect(up, 70, 90, 20, 20); imlib_image_draw_rectangle(115, 70, 60, 30); up = imlib_update_append_rect(up, 115, 70, 60, 30); imlib_image_draw_rectangle(30, 120, 50, 50); up = imlib_update_append_rect(up, 30, 120, 50, 50); imlib_context_set_cliprect(0, 0, 0, 0); /* test polygons */ imlib_context_set_color(255, 0, 0, 128); imlib_image_fill_polygon(poly); imlib_context_set_color(255, 255, 255, 255); imlib_image_draw_polygon(poly2, 0); imlib_image_draw_polygon(poly3, 1); imlib_image_draw_rectangle(380, 260, 50, 50); imlib_context_set_color(255, 55, 55, 255); imlib_context_set_cliprect(380, 260, 50, 50); imlib_image_fill_polygon(poly3); imlib_context_set_cliprect(0, 0, 0, 0); } { static Imlib_Color_Range rg = NULL; if (!rg) { rg = imlib_create_color_range(); imlib_context_set_color_range(rg); imlib_context_set_color(255, 255, 255, 255); imlib_add_color_to_color_range(0); imlib_context_set_color(255, 255, 160, 255); imlib_add_color_to_color_range(1); imlib_context_set_color(255, 160, 120, 255); imlib_add_color_to_color_range(1); imlib_context_set_color(255, 80, 100, 128); imlib_add_color_to_color_range(1); imlib_context_set_color(32, 48, 80, 0); imlib_add_color_to_color_range(1); } imlib_context_set_operation(IMLIB_OP_RESHADE); imlib_image_fill_color_range_rectangle(60, 60, 256, 256, (double)x); up = imlib_update_append_rect(up, 60, 60, 256, 256); imlib_context_set_operation(IMLIB_OP_COPY); } if (xfdcachetest) { int l; int retw, reth, tx, ty, nx, ny; int secs, usecs, sece, usece; FILE *f; char buf[129]; f = fopen(xfdfname, "r"); if (!f) { printf("file %s can not be opened!\n", file); exit(-1); } tx = ty = 0; imlib_context_set_color(255, 255, 255, 255); gettimeofday(&timev, NULL); secs = (int)timev.tv_sec; usecs = (int)timev.tv_usec; l = xfdloop; while (l) { fseek(f, 0, SEEK_SET); while (fgets(buf, 128, f)) { if (buf[strlen(buf) - 1] == '\n') buf[strlen(buf) - 1] = '\0'; imlib_text_draw_with_return_metrics(tx, ty, buf, &retw, &reth, &nx, &ny); up = imlib_update_append_rect(up, tx, ty, retw, reth); ty += ny; if (ty > h) ty = 0; } l--; } gettimeofday(&timev, NULL); sece = (int)timev.tv_sec; usece = (int)timev.tv_usec; { double t1, t2; t1 = (double)secs + ((double)usecs / 1000000); t2 = (double)sece + ((double)usece / 1000000); sec = t2 - t1; } printf("%3.3f sec\n", sec); } else if (fon) { int retw, reth, tx, ty, nx, ny, cx, cy, cw, ch, cp; int cx2, cy2, cw2, ch2; if (!str) str = "This is a test string"; tx = ty = 50; for (i = 0; i < 16; i++) { int al; imlib_context_set_direction(textdir); if (textdir == IMLIB_TEXT_TO_ANGLE) { double an = (double)i / 10.0; imlib_context_set_angle(an); } al = (15 - i) * 16; if (al > 255) al = 255; imlib_context_set_color(255, 255, 255, al); imlib_text_draw_with_return_metrics(tx, ty, str, &retw, &reth, &nx, &ny); up = imlib_update_append_rect(up, tx, ty, retw, reth); switch (textdir) { case IMLIB_TEXT_TO_RIGHT: case IMLIB_TEXT_TO_LEFT: case IMLIB_TEXT_TO_ANGLE: ty += ny; break; case IMLIB_TEXT_TO_DOWN: case IMLIB_TEXT_TO_UP: tx += nx; break; } } cp = imlib_text_get_index_and_location(str, x - 50, y - 50, &cx, &cy, &cw, &ch); if (cp >= 0) { char tmp[16]; int len; len = mblen(str + cp, MB_CUR_MAX); if (len < 0) len = 1; strncpy(tmp, str + cp, len); tmp[len] = '\0'; printf("over char %s : cp=%d cx=%d cy=%d cw=%d ch=%d : ", tmp, cp, cx, cy, cw, ch); imlib_text_get_location_at_index(str, cp, &cx2, &cy2, &cw2, &ch2); printf("cx2=%d cy2=%d cw2=%d ch2=%d \n", cx2, cy2, cw2, ch2); } } imlib_context_set_blend(1); if ((px != x) || (py != y)) { for (j = 0; j < 32; j++) { for (i = 0; i < 32; i++) { int ic, iw, ih, ww, hh; ic = ((j * 32) + i) % 13; imlib_context_set_image(im_ic[ic]); iw = imlib_image_get_width(); ih = imlib_image_get_height(); ww = iw; hh = ih; up = imlib_update_append_rect(up, x + (i * iw * 2), y + (j * ih * 2), ww, hh); up = imlib_update_append_rect(up, px + (i * iw * 2), py + (j * ih * 2), ww, hh); imlib_context_set_image(im); imlib_blend_image_onto_image(im_ic[ic], 0, 0, 0, iw, ih, x + (i * iw * 2), y + (j * ih * 2), ww, hh); } } } /* imlib_apply_filter( "tint(x=200,y=200,w=300,h=100,alpha=100,red=155,green=25,blue=25);"\ "tint(green=20,red=20,blue=20,alpha=200,x=30,y=30);" \ "tint(green=40,red=40,blue=240,alpha=60,x=50,y=150,h=200);" ); */ imlib_blend_image_onto_image(im_sh1, 0, 0, 0, 50, 50, 0, 0, 50, 50); up = imlib_update_append_rect(up, 0, 0, 50, 50); imlib_blend_image_onto_image(im_sh2, 0, 0, 0, 50, 50, 50, 0, w - 50, 50); up = imlib_update_append_rect(up, 50, 0, w - 50, 50); imlib_blend_image_onto_image(im_sh3, 0, 0, 0, 50, 50, 0, 50, 50, h - 50); up = imlib_update_append_rect(up, 0, 50, 50, h - 50); up = imlib_updates_merge_for_rendering(up, w, h); imlib_context_set_blend(0); imlib_render_image_updates_on_drawable(up, 0, 0); if ((px != x) || (py != y)) { Imlib_Updates u; u = up; while (u) { int ux, uy, uw, uh; imlib_updates_get_coordinates(u, &ux, &uy, &uw, &uh); imlib_blend_image_onto_image(im_bg, 0, ux, uy, uw, uh, ux, uy, uw, uh); u = imlib_updates_get_next(u); } } imlib_updates_free(up); up = NULL; imlib_context_set_image(im_sh1); imlib_free_image(); imlib_context_set_image(im_sh1); imlib_free_image(); imlib_context_set_image(im_sh1); imlib_free_image(); imlib_context_set_image(im_ic[0]); imlib_free_image(); imlib_context_set_image(im_ic[1]); imlib_free_image(); imlib_context_set_image(im_ic[2]); imlib_free_image(); imlib_context_set_image(im_ic[3]); imlib_free_image(); } } else { printf("blast test\n"); pixels = 0; imlib_context_set_color_modifier(colormod); for (i = 0; i < w; i++) { imlib_render_image_on_drawable_at_size(0, 0, w, h); pixels += w * h; } } /** * Determine horse power of your video card driver */ gettimeofday(&timev, NULL); sec2 = (int)timev.tv_sec; /* and stores it so we can time outselves */ usec2 = (int)timev.tv_usec; /* we will use this to vary speed of rot */ printf("done\n"); { double t1, t2; t1 = (double)sec1 + ((double)usec1 / 1000000); t2 = (double)sec2 + ((double)usec2 / 1000000); sec = t2 - t1; } printf("%3.3f sec, %3.3f M pixels (%i)\n", sec, (double)pixels / 1000000, pixels); printf("%3.3f Mpixels / sec\n", (double)(pixels) / (sec * 1000000)); return 0; } imlib2-1.4.6/src/bin/imlib2_colorspace.c0000664000175000017500000001117212255265135014726 00000000000000#include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include "Imlib2.h" Display *disp; Window win; Visual *vis; Colormap cm; int depth; int main(int argc, char **argv) { int w, h, tw, th; Imlib_Image im_bg = NULL; XEvent ev; KeySym keysym; static char kbuf[20]; Imlib_Font font; Imlib_Color_Range range; const char *display_name = getenv("DISPLAY"); /** * First tests to determine which rendering task to perform */ if (!display_name) display_name = ":0"; disp = XOpenDisplay(display_name); if (!disp) { fprintf(stderr, "Can't open display %s\n", display_name); return 1; } vis = DefaultVisual(disp, DefaultScreen(disp)); depth = DefaultDepth(disp, DefaultScreen(disp)); cm = DefaultColormap(disp, DefaultScreen(disp)); win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 0, 0, 100, 100, 0, 0, 0); XSelectInput(disp, win, ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | PointerMotionMask | ExposureMask | KeyPressMask); /** * Start rendering */ imlib_set_font_cache_size(512 * 1024); imlib_add_path_to_font_path(PACKAGE_DATA_DIR "/data/fonts"); imlib_context_set_display(disp); imlib_context_set_visual(vis); imlib_context_set_colormap(cm); imlib_context_set_drawable(win); imlib_context_set_blend(0); imlib_context_set_color_modifier(NULL); imlib_context_set_blend(0); im_bg = imlib_create_image(600, 400); imlib_context_set_image(im_bg); w = imlib_image_get_width(); h = imlib_image_get_height(); imlib_context_set_color(128, 128, 255, 255); imlib_image_fill_rectangle(0, 0, w, h); XResizeWindow(disp, win, w, h); XMapWindow(disp, win); XSync(disp, False); while (1) { do { XNextEvent(disp, &ev); switch (ev.type) { case ButtonRelease: exit(0); break; case KeyPress: XLookupString(&ev.xkey, (char *)kbuf, sizeof(kbuf), &keysym, NULL); switch (*kbuf) { case 'q': exit(0); default: break; } break; default: break; } } while (XPending(disp)); imlib_context_set_image(im_bg); imlib_context_set_color(128, 128, 255, 255); imlib_image_fill_rectangle(0, 0, w, h); imlib_context_set_color(0, 0, 0, 255); imlib_image_draw_rectangle(20, 20, 560, 140); imlib_image_draw_rectangle(20, 220, 560, 140); font = imlib_load_font("notepad/15"); if (font) { char text[4096]; imlib_context_set_font(font); imlib_context_set_color(0, 0, 0, 255); sprintf(text, "RGBA range, 2 points, from red to magenta"); imlib_get_text_size(text, &tw, &th); imlib_text_draw(300 - tw / 2, 180 - th / 2, text); sprintf(text, "HSVA range, 2 points, from red to magenta"); imlib_get_text_size(text, &tw, &th); imlib_text_draw(300 - tw / 2, 380 - th / 2, text); imlib_free_font(); } /* Draw rectangle w/ RGBA gradient */ range = imlib_create_color_range(); imlib_context_set_color_range(range); imlib_context_set_color(255, 0, 0, 255); imlib_add_color_to_color_range(0); imlib_context_set_color(255, 0, 255, 255); imlib_add_color_to_color_range(20); imlib_image_fill_color_range_rectangle(21, 21, 558, 138, -90.0); imlib_free_color_range(); /* Draw rectangle w/ HSVA gradient */ range = imlib_create_color_range(); imlib_context_set_color_range(range); imlib_context_set_color_hsva(0, 1, 1, 255); imlib_add_color_to_color_range(0); imlib_context_set_color_hsva(300, 1, 1, 255); imlib_add_color_to_color_range(20); imlib_image_fill_hsva_color_range_rectangle(21, 221, 558, 138, -90.0); imlib_free_color_range(); imlib_render_image_on_drawable(0, 0); } return 0; } imlib2-1.4.6/src/Makefile.in0000664000175000017500000004453612255306302012471 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = Makefile.in SUBDIRS = lib bin modules all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/src/Makefile.am0000664000175000017500000000007512137523370012453 00000000000000MAINTAINERCLEANFILES = Makefile.in SUBDIRS = lib bin modules imlib2-1.4.6/src/lib/0000775000175000017500000000000012255306373011246 500000000000000imlib2-1.4.6/src/lib/file.c0000664000175000017500000001614612255265135012261 00000000000000#include "common.h" #include #include #ifdef __EMX__ #include #endif #include #include #include #include #include #include #include #include "file.h" char * __imlib_FileKey(const char *file) { char *newfile; newfile = malloc(strlen(file) + 1); if (!newfile) return NULL; newfile[0] = 0; { char *p1, *p2; int go; go = 0; p1 = (char *)file; p2 = newfile; while (p1[0]) { if (go) { p2[0] = p1[0]; p2++; } if ((p1[0] == ':') && (p1[1] != ':')) go = 1; if ((p1[0] == ':') && (p1[1] == ':')) p1++; p1++; } p2[0] = p1[0]; } if (newfile[0]) return newfile; else free(newfile); return NULL; } char * __imlib_FileRealFile(const char *file) { char *newfile; newfile = malloc(strlen(file) + 1); if (!newfile) return NULL; newfile[0] = 0; { char *p1, *p2; p1 = (char *)file; p2 = newfile; while (p1[0]) { if (p1[0] == ':') { if (p1[1] == ':') { p2[0] = ':'; p2++; p1++; } else { p2[0] = 0; return newfile; } } else { p2[0] = p1[0]; p2++; } p1++; } p2[0] = p1[0]; } return newfile; } char * __imlib_FileExtension(const char *file) { char *p; char *fl; fl = __imlib_FileRealFile(file); if (!fl) return strdup(""); p = strrchr(file, '.'); if (p) { char *ret; ret = strdup(p + 1); free(fl); return ret; } free(fl); return strdup(""); } int __imlib_FileExists(const char *s) { struct stat st; char *fl; if ((!s) || (!*s)) return 0; if (__imlib_IsRealFile(s)) fl = strdup(s); else fl = __imlib_FileRealFile(s); if (!fl) return 0; if (stat(fl, &st) < 0) { free(fl); return 0; } free(fl); return 1; } int __imlib_FileIsFile(const char *s) { struct stat st; char *fl; if ((!s) || (!*s)) return 0; if (__imlib_IsRealFile(s)) fl = strdup(s); else fl = __imlib_FileRealFile(s); if (!fl) return 0; if (stat(fl, &st) < 0) { free(fl); return 0; } if (S_ISREG(st.st_mode)) { free(fl); return 1; } free(fl); return 0; } int __imlib_FileIsDir(const char *s) { struct stat st; char *fl; if ((!s) || (!*s)) return 0; if (__imlib_IsRealFile(s)) fl = strdup(s); else fl = __imlib_FileRealFile(s); if (!fl) return 0; if (stat(fl, &st) < 0) { free(fl); return 0; } if (S_ISDIR(st.st_mode)) { free(fl); return 1; } free(fl); return 0; } int __imlib_FilePermissions(const char *s) { struct stat st; char *fl; if ((!s) || (!*s)) return 0; if (__imlib_IsRealFile(s)) fl = strdup(s); else fl = __imlib_FileRealFile(s); if (!fl) return 0; if (stat(fl, &st) < 0) { free(fl); return 0; } free(fl); return st.st_mode; } int __imlib_FileCanRead(const char *s) { char *fl; int val; if (__imlib_IsRealFile(s)) fl = strdup(s); else fl = __imlib_FileRealFile(s); if (!fl) return 0; if (!(__imlib_FilePermissions(fl) & (S_IRUSR | S_IRGRP | S_IROTH))) { free(fl); return 0; } val = (1 + access(fl, R_OK)); free(fl); return val; } char ** __imlib_FileDir(char *dir, int *num) { int i, dirlen; int done = 0; DIR *dirp; char **names; struct dirent *dp; if ((!dir) || (!*dir)) return (0); dirp = opendir(dir); if (!dirp) { *num = 0; return (NULL); } /* count # of entries in dir (worst case) */ for (dirlen = 0; (dp = readdir(dirp)); dirlen++); if (!dirlen) { closedir(dirp); *num = dirlen; return (NULL); } names = (char **)malloc(dirlen * sizeof(char *)); if (!names) return (NULL); rewinddir(dirp); for (i = 0; i < dirlen;) { dp = readdir(dirp); if (!dp) break; if ((strcmp(dp->d_name, ".")) && (strcmp(dp->d_name, ".."))) { names[i] = strdup(dp->d_name); i++; } } if (i < dirlen) dirlen = i; /* dir got shorter... */ closedir(dirp); *num = dirlen; /* do a simple bubble sort here to alphanumberic it */ while (!done) { done = 1; for (i = 0; i < dirlen - 1; i++) { if (strcmp(names[i], names[i + 1]) > 0) { char *tmp; tmp = names[i]; names[i] = names[i + 1]; names[i + 1] = tmp; done = 0; } } } return (names); } void __imlib_FileFreeDirList(char **l, int num) { if (!l) return; while (num--) if (l[num]) free(l[num]); free(l); return; } void __imlib_FileDel(char *s) { if ((!s) || (!*s)) return; unlink(s); return; } int __imlib_IsRealFile(const char *s) { struct stat st; return ((stat(s, &st) != -1) && (S_ISREG(st.st_mode))); } time_t __imlib_FileModDate(const char *s) { struct stat st; char *fl; if ((!s) || (!*s)) return 0; if (__imlib_IsRealFile(s)) fl = strdup(s); else fl = __imlib_FileRealFile(s); if (!fl) return 0; if (stat(fl, &st) < 0) { free(fl); return 0; } if (st.st_mtime > st.st_ctime) { free(fl); return st.st_mtime; } free(fl); return st.st_ctime; } char * __imlib_FileHomeDir(int uid) { static int usr_uid = -1; static char *usr_s = NULL; char *s; struct passwd *pwd; #ifndef __EMX__ s = getenv("HOME"); if (s) return strdup(s); if (usr_uid < 0) usr_uid = getuid(); if ((uid == usr_uid) && (usr_s)) { return (strdup(usr_s)); } pwd = getpwuid(uid); if (pwd) { s = strdup(pwd->pw_dir); if (uid == usr_uid) usr_s = strdup(s); return (s); } #else if ((s = getenv("HOME"))) return strdup(s); else if ((s = getenv("TMP"))) return strdup(s); #endif return NULL; } imlib2-1.4.6/src/lib/rotate.c0000664000175000017500000003752312255265152012641 00000000000000#include "common.h" #include "rotate.h" #include "blend.h" /*\ Linear interpolation functions \*/ /*\ Between two values \*/ #define INTERP(v1, v2, f) \ (((v1) << _ROTATE_PREC) + (((v2) - (v1)) * (f))) /*\ Between two colour bytes \*/ #define INTERP_VAL1(x_VAL, dest, l, r, x) \ x_VAL(dest) = (INTERP(x_VAL(l), x_VAL(r), (x)) >> _ROTATE_PREC) /*\ Alpha channel: between two values and two zeroes \*/ #define INTERP_VAL1_A0(dest, v1, v2, f1, f2) \ A_VAL(dest) = ((INTERP(A_VAL(v1), A_VAL(v2), (f1)) * \ (f2)) >> (2 * _ROTATE_PREC)) /*\ Between four values \*/ #define INTERP_VAL2(x_VAL, dest, ul, ur, ll, lr, x, y) \ x_VAL(dest) = (INTERP(INTERP(x_VAL(ul), x_VAL(ur), (x)), \ INTERP(x_VAL(ll), x_VAL(lr), (x)), \ (y)) >> (2 * _ROTATE_PREC)) /*\ Functions used in rotation routines. |*| The do { } while(0) construction is to make it one statement. \*/ /*\ Between four colours \*/ #define INTERP_ARGB(dest, src, sow, x, y) do { \ INTERP_VAL2(R_VAL, (dest), (src), (src) + 1, (src) + (sow), (src) + (sow) + 1, (x) & _ROTATE_PREC_BITS, (y) & _ROTATE_PREC_BITS); \ INTERP_VAL2(G_VAL, (dest), (src), (src) + 1, (src) + (sow), (src) + (sow) + 1, (x) & _ROTATE_PREC_BITS, (y) & _ROTATE_PREC_BITS); \ INTERP_VAL2(B_VAL, (dest), (src), (src) + 1, (src) + (sow), (src) + (sow) + 1, (x) & _ROTATE_PREC_BITS, (y) & _ROTATE_PREC_BITS); \ INTERP_VAL2(A_VAL, (dest), (src), (src) + 1, (src) + (sow), (src) + (sow) + 1, (x) & _ROTATE_PREC_BITS, (y) & _ROTATE_PREC_BITS); \ } while (0) /*\ Between two colours, alpha between two values and zeroes \*/ #define INTERP_RGB_A0(dest, v1, v2, f, f2) do { \ INTERP_VAL1(R_VAL, (dest), (v1), (v2), (f) & _ROTATE_PREC_BITS); \ INTERP_VAL1(G_VAL, (dest), (v1), (v2), (f) & _ROTATE_PREC_BITS); \ INTERP_VAL1(B_VAL, (dest), (v1), (v2), (f) & _ROTATE_PREC_BITS); \ INTERP_VAL1_A0(dest, (v1), (v2), (f) & _ROTATE_PREC_BITS, (f2) & _ROTATE_PREC_BITS); \ } while (0) /*\ One colour, alpha between one value and three zeroes \*/ #define INTERP_A000(dest, v, f1, f2) do { \ *(dest) = *(v); \ A_VAL(dest) = (A_VAL(dest) * \ ((f1) & _ROTATE_PREC_BITS) * ((f2) & _ROTATE_PREC_BITS)) >> (2 * _ROTATE_PREC); \ } while (0) /*\ Rotate by pixel sampling only, target inside source \*/ static void __imlib_RotateSampleInside(DATA32 * src, DATA32 * dest, int sow, int dow, int dw, int dh, int x, int y, int dxh, int dyh, int dxv, int dyv) { int i; if ((dw < 1) || (dh < 1)) return; while (1) { i = dw - 1; do { *dest = src[(x >> _ROTATE_PREC) + ((y >> _ROTATE_PREC) * sow)]; /*\ RIGHT; \ */ x += dxh; y += dyh; dest++; } while (--i >= 0); if (--dh <= 0) break; /*\ DOWN/LEFT; \ */ x += dxv - dw * dxh; y += dyv - dw * dyh; dest += (dow - dw); } } /*\ Same as last function, but with antialiasing \*/ static void __imlib_RotateAAInside(DATA32 * src, DATA32 * dest, int sow, int dow, int dw, int dh, int x, int y, int dxh, int dyh, int dxv, int dyv) { int i; if ((dw < 1) || (dh < 1)) return; while (1) { i = dw - 1; do { DATA32 *src_x_y = (src + (x >> _ROTATE_PREC) + ((y >> _ROTATE_PREC) * sow)); INTERP_ARGB(dest, src_x_y, sow, x, y); /*\ RIGHT; \ */ x += dxh; y += dyh; dest++; } while (--i >= 0); if (--dh <= 0) break; /*\ DOWN/LEFT; \ */ x += dxv - dw * dxh; y += dyv - dw * dyh; dest += (dow - dw); } } /*\ NOTE: To check if v is in [b .. t) ((v >= b) && (v < t)) |*| it's quicker to do ((unsigned)(v - b) < (t - b)) |*| as negative values, cast to unsigned, become large positive |*| values, and fall through the compare. |*| v in [0 .. t) is a special case: ((unsigned)v < t) |*| v in [-t .. 0) is also special, as its the same as ~v in [0 .. t) \*/ static int __check_inside_coords(int x, int y, int dxh, int dyh, int dxv, int dyv, int dw, int dh, int sw, int sh) { sw <<= _ROTATE_PREC; sh <<= _ROTATE_PREC; if (((unsigned)x >= (unsigned)sw) || ((unsigned)y >= (unsigned)sh)) return 0; x += dxh * dw; y += dyh * dw; if (((unsigned)x >= (unsigned)sw) || ((unsigned)y >= (unsigned)sh)) return 0; x += dxv * dh; y += dyv * dh; if (((unsigned)x >= (unsigned)sw) || ((unsigned)y >= (unsigned)sh)) return 0; x -= dxh * dw; y -= dyh * dw; if (((unsigned)x >= (unsigned)sw) || ((unsigned)y >= (unsigned)sh)) return 0; return 1; } /*\ These ones don't need the target to be inside the source \*/ void __imlib_RotateSample(DATA32 * src, DATA32 * dest, int sow, int sw, int sh, int dow, int dw, int dh, int x, int y, int dxh, int dyh, int dxv, int dyv) { int i; if ((dw < 1) || (dh < 1)) return; if (__check_inside_coords(x, y, dxh, dyh, dxv, dyv, dw, dh, sw, sh)) { __imlib_RotateSampleInside(src, dest, sow, dow, dw, dh, x, y, dxh, dyh, dxv, dyv); return; } sw <<= _ROTATE_PREC; sh <<= _ROTATE_PREC; while (1) { i = dw - 1; do { if (((unsigned)x < (unsigned)sw) && ((unsigned)y < (unsigned)sh)) *dest = src[(x >> _ROTATE_PREC) + ((y >> _ROTATE_PREC) * sow)]; else *dest = 0; /*\ RIGHT; \ */ x += dxh; y += dyh; dest++; } while (--i >= 0); if (--dh <= 0) break; /*\ DOWN/LEFT; \ */ x += dxv - dw * dxh; y += dyv - dw * dyh; dest += (dow - dw); } } /*\ With antialiasing. |*| NB: The function 'sees' a transparent border around the source, |*| with colour channels matching the edge, so there is no need to do |*| anything special, but remember to account for this when calculating |*| the bounding box. \*/ void __imlib_RotateAA(DATA32 * src, DATA32 * dest, int sow, int sw, int sh, int dow, int dw, int dh, int x, int y, int dxh, int dyh, int dxv, int dyv) { int i; if ((dw < 1) || (dh < 1)) return; if (__check_inside_coords(x, y, dxh, dyh, dxv, dyv, dw, dh, sw - 1, sh - 1)) { __imlib_RotateAAInside(src, dest, sow, dow, dw, dh, x, y, dxh, dyh, dxv, dyv); return; } sw--; sh--; sw <<= _ROTATE_PREC; sh <<= _ROTATE_PREC; while (1) { i = dw - 1; do { DATA32 *src_x_y = (src + (x >> _ROTATE_PREC) + ((y >> _ROTATE_PREC) * sow)); if ((unsigned)x < (unsigned)sw) { if ((unsigned)y < (unsigned)sh) { /*\ 12 * |*| 34 * \ */ INTERP_ARGB(dest, src_x_y, sow, x, y); } else if ((unsigned)(y - sh) < _ROTATE_PREC_MAX) { /*\ 12 * |*| .. * \ */ INTERP_RGB_A0(dest, src_x_y, src_x_y + 1, x, ~y); } else if ((unsigned)(~y) < _ROTATE_PREC_MAX) { /*\ .. * |*| 34 * \ */ INTERP_RGB_A0(dest, src_x_y + sow, src_x_y + sow + 1, x, y); } else *dest = 0; } else if ((unsigned)(x - sw) < (_ROTATE_PREC_MAX)) { if ((unsigned)y < (unsigned)sh) { /*\ 1. * |*| 3. * \ */ INTERP_RGB_A0(dest, src_x_y, src_x_y + sow, y, ~x); } else if ((unsigned)(y - sh) < _ROTATE_PREC_MAX) { /*\ 1. * |*| .. * \ */ INTERP_A000(dest, src_x_y, ~x, ~y); } else if ((unsigned)(~y) < _ROTATE_PREC_MAX) { /*\ .. * |*| 3. * \ */ INTERP_A000(dest, src_x_y + sow, ~x, y); } else *dest = 0; } else if ((unsigned)(~x) < _ROTATE_PREC_MAX) { if ((unsigned)y < (unsigned)sh) { /*\ .2 * |*| .4 * \ */ INTERP_RGB_A0(dest, src_x_y + 1, src_x_y + sow + 1, y, x); } else if ((unsigned)(y - sh) < _ROTATE_PREC_MAX) { /*\ .2 * |*| .. * \ */ INTERP_A000(dest, src_x_y + 1, x, ~y); } else if ((unsigned)(~y) < _ROTATE_PREC_MAX) { /*\ .. * |*| .4 * \ */ INTERP_A000(dest, src_x_y + sow + 1, x, y); } else *dest = 0; } else *dest = 0; /*\ RIGHT; \ */ x += dxh; y += dyh; dest++; } while (--i >= 0); if (--dh <= 0) break; /*\ DOWN/LEFT; \ */ x += dxv - dw * dxh; y += dyv - dw * dyh; dest += (dow - dw); } } /*\ Should this be in blend.c ?? \*/ #define LINESIZE 16 void __imlib_BlendImageToImageSkewed(ImlibImage * im_src, ImlibImage * im_dst, char aa, char blend, char merge_alpha, int ssx, int ssy, int ssw, int ssh, int ddx, int ddy, int hsx, int hsy, int vsx, int vsy, ImlibColorModifier * cm, ImlibOp op, int clx, int cly, int clw, int clh) { int x, y, dxh, dyh, dxv, dyv, i; double xy2; DATA32 *data, *src; #ifdef DO_MMX_ASM int do_mmx; #endif if ((ssw < 0) || (ssh < 0)) return; if ((!(im_src->data)) && (im_src->loader) && (im_src->loader->load)) im_src->loader->load(im_src, NULL, 0, 1); if (!im_src->data) return; if ((!(im_dst->data)) && (im_dst->loader) && (im_dst->loader->load)) im_dst->loader->load(im_dst, NULL, 0, 1); if (!im_dst->data) return; /*\ Complicated gonio. Works on paper.. * |*| Too bad it doesn't all fit into integer math.. * \ */ if (vsx | vsy) { xy2 = (double)(hsx * vsy - vsx * hsy) / _ROTATE_PREC_MAX; if (xy2 == 0.0) return; dxh = (double)(ssw * vsy) / xy2; dxv = (double)-(ssw * vsx) / xy2; dyh = (double)-(ssh * hsy) / xy2; dyv = (double)(ssh * hsx) / xy2; } else { xy2 = (double)(hsx * hsx + hsy * hsy) / _ROTATE_PREC_MAX; if (xy2 == 0.0) return; dxh = (double)(ssw * hsx) / xy2; dyh = (double)-(ssw * hsy) / xy2; dxv = -dyh; dyv = dxh; } x = -(ddx * dxh + ddy * dxv); y = -(ddx * dyh + ddy * dyv); if (ssx < 0) { x += ssx * _ROTATE_PREC_MAX; ssw += ssx; ssx = 0; } if (ssy < 0) { y += ssy * _ROTATE_PREC_MAX; ssh += ssy; ssy = 0; } if ((ssw + ssx) > im_src->w) ssw = im_src->w - ssx; if ((ssh + ssy) > im_src->h) ssh = im_src->h - ssy; src = im_src->data + ssx + ssy * im_src->w; data = malloc(im_dst->w * LINESIZE * sizeof(DATA32)); if (!data) return; if (aa) { /*\ Account for virtual transparent border \ */ x += _ROTATE_PREC_MAX; y += _ROTATE_PREC_MAX; } #ifdef DO_MMX_ASM do_mmx = __imlib_get_cpuid() & CPUID_MMX; #endif for (i = 0; i < im_dst->h; i += LINESIZE) { int x2, y2, w, h, l, r; h = MIN(LINESIZE, im_dst->h - i); x2 = x + h * dxv; y2 = y + h * dyv; w = ssw << _ROTATE_PREC; h = ssh << _ROTATE_PREC; if (aa) { /*\ Account for virtual transparent border \ */ w += 2 << _ROTATE_PREC; h += 2 << _ROTATE_PREC; } /*\ Pretty similar code \ */ if (dxh > 0) { if (dyh > 0) { l = MAX(-MAX(y, y2) / dyh, -MAX(x, x2) / dxh); r = MIN((h - MIN(y, y2)) / dyh, (w - MIN(x, x2)) / dxh); } else if (dyh < 0) { l = MAX(-MAX(x, x2) / dxh, (h - MIN(y, y2)) / dyh); r = MIN(-MAX(y, y2) / dyh, (w - MIN(x, x2)) / dxh); } else { l = -MAX(x, x2) / dxh; r = (w - MIN(x, x2)) / dxh; } } else if (dxh < 0) { if (dyh > 0) { l = MAX(-MAX(y, y2) / dyh, (w - MIN(x, x2)) / dxh); r = MIN(-MAX(x, x2) / dxh, (h - MIN(y, y2)) / dyh); } else if (dyh < 0) { l = MAX((h - MIN(y, y2)) / dyh, (w - MIN(x, x2)) / dxh); r = MIN(-MAX(y, y2) / dyh, -MAX(x, x2) / dxh); } else { l = (w - MIN(x, x2)) / dxh; r = -MAX(x, x2) / dxh; } } else { if (dyh > 0) { l = -MAX(y, y2) / dyh; r = (h - MIN(y, y2)) / dyh; } else if (dyh < 0) { l = (h - MIN(y, y2)) / dyh; r = -MAX(y, y2) / dyh; } else { l = 0; r = 0; } } l--; r += 2; /*\ Be paranoid about roundoff errors \ */ if (l < 0) l = 0; if (r > im_dst->w) r = im_dst->w; if (r <= l) { x = x2; y = y2; continue; } w = r - l; h = MIN(LINESIZE, im_dst->h - i); x += l * dxh; y += l * dyh; if (aa) { x -= _ROTATE_PREC_MAX; y -= _ROTATE_PREC_MAX; #ifdef DO_MMX_ASM if (do_mmx) __imlib_mmx_RotateAA(src, data, im_src->w, ssw, ssh, w, w, h, x, y, dxh, dyh, dxv, dyv); else #endif __imlib_RotateAA(src, data, im_src->w, ssw, ssh, w, w, h, x, y, dxh, dyh, dxv, dyv); } else { __imlib_RotateSample(src, data, im_src->w, ssw, ssh, w, w, h, x, y, dxh, dyh, dxv, dyv); } __imlib_BlendRGBAToData(data, w, h, im_dst->data, im_dst->w, im_dst->h, 0, 0, l, i, w, h, blend, merge_alpha, cm, op, 0); x = x2; y = y2; } free(data); } imlib2-1.4.6/src/lib/grad.c0000664000175000017500000003673512255265065012267 00000000000000#include "common.h" #include "colormod.h" #include "file.h" #include "loaderpath.h" #include #include "image.h" #include "blend.h" #include "grad.h" #include "color_helpers.h" ImlibRange * __imlib_CreateRange(void) { ImlibRange *rg = NULL; rg = malloc(sizeof(ImlibRange)); rg->color = NULL; return rg; } void __imlib_FreeRange(ImlibRange * rg) { ImlibRangeColor *p, *pp; p = rg->color; while (p) { pp = p; p = p->next; free(pp); } free(rg); } void __imlib_AddRangeColor(ImlibRange * rg, DATA8 r, DATA8 g, DATA8 b, DATA8 a, int dist) { ImlibRangeColor *p, *rc; if (dist < 1) dist = 1; if (!rg->color) dist = 0; rc = malloc(sizeof(ImlibRangeColor)); rc->red = r; rc->green = g; rc->blue = b; rc->alpha = a; rc->distance = 0; rc->next = NULL; p = rg->color; if (p) { while (p) { if (!p->next) { p->distance = dist; p->next = rc; p = NULL; } else p = p->next; } } else rg->color = rc; } DATA32 * __imlib_MapRange(ImlibRange * rg, int len) { ImlibRangeColor *p; DATA32 *map, *pmap, v, vv; int r, g, b, a, rr, gg, bb, aa, i, l, ll, v1, v2, inc, j; if (!rg->color) return NULL; if (!rg->color->next) return NULL; ll = 1; for (p = rg->color; p; p = p->next) ll += p->distance; map = malloc(len * sizeof(DATA32)); pmap = malloc(ll * sizeof(DATA32)); i = 0; for (p = rg->color; p; p = p->next) { if (p->next) { for (j = 0; j < p->distance; j++) { v1 = (j << 16) / p->distance; v2 = 65536 - v1; r = ((p->red * v2) + (p->next->red * v1)) >> 16; g = ((p->green * v2) + (p->next->green * v1)) >> 16; b = ((p->blue * v2) + (p->next->blue * v1)) >> 16; a = ((p->alpha * v2) + (p->next->alpha * v1)) >> 16; pmap[i++] = (a << 24) | (r << 16) | (g << 8) | b; } } else { r = p->red; g = p->green; b = p->blue; a = p->alpha; pmap[i++] = (a << 24) | (r << 16) | (g << 8) | b; } } inc = ((ll - 1) << 16) / (len - 1); l = 0; for (i = 0; i < len; i++) { v = pmap[l >> 16]; if ((l >> 16) < ll) vv = pmap[(l >> 16) + 1]; else vv = pmap[(l >> 16)]; v1 = l - ((l >> 16) << 16); v2 = 65536 - v1; b = ((v)) & 0xff; g = ((v) >> 8) & 0xff; r = ((v) >> 16) & 0xff; a = ((v) >> 24) & 0xff; bb = ((vv)) & 0xff; gg = ((vv) >> 8) & 0xff; rr = ((vv) >> 16) & 0xff; aa = ((vv) >> 24) & 0xff; r = ((r * v2) + (rr * v1)) >> 16; g = ((g * v2) + (gg * v1)) >> 16; b = ((b * v2) + (bb * v1)) >> 16; a = ((a * v2) + (aa * v1)) >> 16; map[i] = (a << 24) | (r << 16) | (g << 8) | b; l += inc; } free(pmap); return map; } DATA32 * __imlib_MapHsvaRange(ImlibRange * rg, int len) { ImlibRangeColor *p; DATA32 *map, *pmap, k, kk; int r, g, b, a, rr, gg, bb, aa, i, l, ll, inc, j; float h1, s1, v1, h2, s2, v2, h, s, v, k1, k2; if (!rg->color) return NULL; if (!rg->color->next) return NULL; ll = 1; for (p = rg->color; p; p = p->next) ll += p->distance; map = malloc(len * sizeof(DATA32)); pmap = malloc(ll * sizeof(DATA32)); i = 0; for (p = rg->color; p; p = p->next) { if (p->next) { for (j = 0; j < p->distance; j++) { k1 = (j << 16) / (float)p->distance; k2 = 65536 - k1; r = p->red; rr = p->next->red; g = p->green; gg = p->next->green; b = p->blue; bb = p->next->blue; __imlib_rgb_to_hsv(r, g, b, &h1, &s1, &v1); __imlib_rgb_to_hsv(rr, gg, bb, &h2, &s2, &v2); h = ((h1 * k2) + (h2 * k1)) / 65536.0; s = ((s1 * k2) + (s2 * k1)) / 65536.0; v = ((v1 * k2) + (v2 * k1)) / 65536.0; __imlib_hsv_to_rgb(h, s, v, &r, &g, &b); a = (unsigned long int)((p->alpha * k2) + (p->next->alpha * k1)) >> 16; pmap[i++] = (a << 24) | (r << 16) | (g << 8) | b; } } else { r = p->red; g = p->green; b = p->blue; a = p->alpha; pmap[i++] = (a << 24) | (r << 16) | (g << 8) | b; } } inc = ((ll - 1) << 16) / (len - 1); l = 0; for (i = 0; i < len; i++) { k = pmap[l >> 16]; if ((l >> 16) < ll) kk = pmap[(l >> 16) + 1]; else kk = pmap[(l >> 16)]; k1 = l - (float)((l >> 16) << 16); k2 = 65536 - k1; b = ((k)) & 0xff; g = ((k) >> 8) & 0xff; r = ((k) >> 16) & 0xff; a = ((k) >> 24) & 0xff; bb = ((kk)) & 0xff; gg = ((kk) >> 8) & 0xff; rr = ((kk) >> 16) & 0xff; aa = ((kk) >> 24) & 0xff; __imlib_rgb_to_hsv(r, g, b, &h1, &s1, &v1); __imlib_rgb_to_hsv(rr, gg, bb, &h2, &s2, &v2); h = ((h1 * k2) + (h2 * k1)) / 65536.0; s = ((s1 * k2) + (s2 * k1)) / 65536.0; v = ((v1 * k2) + (v2 * k1)) / 65536.0; __imlib_hsv_to_rgb(h, s, v, &r, &g, &b); a = (unsigned long int)((a * k2) + (aa * k1)) >> 16; map[i] = (a << 24) | (r << 16) | (g << 8) | b; l += inc; } free(pmap); return map; } void __imlib_DrawGradient(ImlibImage * im, int x, int y, int w, int h, ImlibRange * rg, double angle, ImlibOp op, int clx, int cly, int clw, int clh) { DATA32 *map, *p; int *hlut, *vlut, len = 0, xx, yy, xoff = 0, yoff = 0, ww, hh, jump; int tmp, i, divw, divh; DATA8 r, g, b, a; ww = w; hh = h; if (x < 0) { w += x; xoff = -x; x = 0; } if (w <= 0) return; if ((x + w) > im->w) w = (im->w - x); if (w <= 0) return; if (y < 0) { h += y; yoff = -y; y = 0; } if (h <= 0) return; if ((y + h) > im->h) h = (im->h - y); if (h <= 0) return; if (clw) { int px, py; CLIP_TO(clx, cly, clw, clh, 0, 0, im->w, im->h); px = x; py = y; CLIP_TO(x, y, w, h, clx, cly, clw, clh); if ((w < 1) || (h < 1)) return; xoff += (x - px); yoff += (y - py); } hlut = malloc(sizeof(int) * ww); vlut = malloc(sizeof(int) * hh); if (ww > hh) len = ww * 16; else len = hh * 16; map = __imlib_MapRange(rg, len); if (!map) return; xx = (int)(32 * sin(((angle + 180) * 2 * 3.141592654) / 360)); yy = -(int)(32 * cos(((angle + 180) * 2 * 3.141592654) / 360)); divw = ((ww - 1) << 5); divh = ((hh - 1) << 5); if (divw < 1) divw = 1; if (divh < 1) divh = 1; if (xx < 0) { for (i = 0; i < ww; i++) hlut[i] = (-xx * (ww - 1 - i) * len) / divw; } else { for (i = 0; i < ww; i++) hlut[i] = (xx * i * len) / divw; } if (yy < 0) { for (i = 0; i < hh; i++) vlut[i] = (-yy * (hh - 1 - i) * len) / divh; } else { for (i = 0; i < hh; i++) vlut[i] = (yy * i * len) / divh; } jump = im->w - w; p = im->data + (y * im->w) + x; switch (op) { case OP_COPY: if (IMAGE_HAS_ALPHA(im)) { __imlib_build_pow_lut(); for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND_DST_ALPHA(r, g, b, a, p); p++; } p += jump; } } else { for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND(r, g, b, a, p); p++; } p += jump; } } break; case OP_ADD: for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND_SUB(r, g, b, a, p); p++; } p += jump; } break; case OP_SUBTRACT: for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND_SUB(r, g, b, a, p); p++; } p += jump; } break; case OP_RESHADE: for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND_RE(r, g, b, a, p); p++; } p += jump; } break; default: break; } free(vlut); free(hlut); free(map); } void __imlib_DrawHsvaGradient(ImlibImage * im, int x, int y, int w, int h, ImlibRange * rg, double angle, ImlibOp op, int clx, int cly, int clw, int clh) { DATA32 *map, *p; int *hlut, *vlut, len = 0, xx, yy, xoff = 0, yoff = 0, ww, hh, jump; int tmp, i, divw, divh; DATA8 r, g, b, a; ww = w; hh = h; if (x < 0) { w += x; xoff = -x; x = 0; } if (w <= 0) return; if ((x + w) > im->w) w = (im->w - x); if (w <= 0) return; if (y < 0) { h += y; yoff = -y; y = 0; } if (h <= 0) return; if ((y + h) > im->h) h = (im->h - y); if (h <= 0) return; if (clw) { int px, py; CLIP_TO(clx, cly, clw, clh, 0, 0, im->w, im->h); px = x; py = y; CLIP_TO(x, y, w, h, clx, cly, clw, clh); if ((w < 1) || (h < 1)) return; xoff += (x - px); yoff += (y - py); } hlut = malloc(sizeof(int) * ww); vlut = malloc(sizeof(int) * hh); if (ww > hh) len = ww * 16; else len = hh * 16; map = __imlib_MapHsvaRange(rg, len); if (!map) return; xx = (int)(32 * sin(((angle + 180) * 2 * 3.141592654) / 360)); yy = -(int)(32 * cos(((angle + 180) * 2 * 3.141592654) / 360)); divw = ((ww - 1) << 5); divh = ((hh - 1) << 5); if (divw < 1) divw = 1; if (divh < 1) divh = 1; if (xx < 0) { for (i = 0; i < ww; i++) hlut[i] = (-xx * (ww - 1 - i) * len) / divw; } else { for (i = 0; i < ww; i++) hlut[i] = (xx * i * len) / divw; } if (yy < 0) { for (i = 0; i < hh; i++) vlut[i] = (-yy * (hh - 1 - i) * len) / divh; } else { for (i = 0; i < hh; i++) vlut[i] = (yy * i * len) / divh; } jump = im->w - w; p = im->data + (y * im->w) + x; switch (op) { case OP_COPY: if (IMAGE_HAS_ALPHA(im)) { __imlib_build_pow_lut(); for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND_DST_ALPHA(r, g, b, a, p); p++; } p += jump; } } else { for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND(r, g, b, a, p); p++; } p += jump; } } break; case OP_ADD: for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND_SUB(r, g, b, a, p); p++; } p += jump; } break; case OP_SUBTRACT: for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND_SUB(r, g, b, a, p); p++; } p += jump; } break; case OP_RESHADE: for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { i = vlut[yoff + yy] + hlut[xoff + xx]; if (i < 0) i = 0; else if (i >= len) i = len - 1; READ_RGBA(&(map[i]), r, g, b, a); BLEND_RE(r, g, b, a, p); p++; } p += jump; } break; default: break; } free(vlut); free(hlut); free(map); } imlib2-1.4.6/src/lib/blend.h0000664000175000017500000006407612255265135012440 00000000000000#ifndef __BLEND #define __BLEND 1 #ifndef WORDS_BIGENDIAN #define A_VAL(p) ((DATA8 *)(p))[3] #define R_VAL(p) ((DATA8 *)(p))[2] #define G_VAL(p) ((DATA8 *)(p))[1] #define B_VAL(p) ((DATA8 *)(p))[0] #else #define A_VAL(p) ((DATA8 *)(p))[0] #define R_VAL(p) ((DATA8 *)(p))[1] #define G_VAL(p) ((DATA8 *)(p))[2] #define B_VAL(p) ((DATA8 *)(p))[3] #endif /* FIXME: endian dependent */ #define READ_RGB(p, r, g, b) \ (r) = R_VAL(p); \ (g) = G_VAL(p); \ (b) = B_VAL(p); #define READ_ALPHA(p, a) \ (a) = A_VAL(p); #define READ_RGBA(p, r, g, b, a) \ (r) = R_VAL(p); \ (g) = G_VAL(p); \ (b) = B_VAL(p); \ (a) = A_VAL(p); #define WRITE_RGB(p, r, g, b) \ R_VAL(p) = (r); \ G_VAL(p) = (g); \ B_VAL(p) = (b); #define WRITE_RGB_PRESERVE_ALPHA(p, r, g, b) \ WRITE_RGB(p, r, g, b) #define WRITE_RGBA(p, r, g, b, a) \ R_VAL(p) = (r); \ G_VAL(p) = (g); \ B_VAL(p) = (b); \ A_VAL(p) = (a); #define INTERSECTS(x, y, w, h, xx, yy, ww, hh) \ ((x < (xx + ww)) && \ (y < (yy + hh)) && \ ((x + w) > xx) && \ ((y + h) > yy)) #define CLIP_TO(_x, _y, _w, _h, _cx, _cy, _cw, _ch) \ { \ if (INTERSECTS(_x, _y, _w, _h, _cx, _cy, _cw, _ch)) \ { \ if (_x < _cx) \ { \ _w += _x - _cx; \ _x = _cx; \ if (_w < 0) _w = 0; \ } \ if ((_x + _w) > (_cx + _cw)) \ _w = _cx + _cw - _x; \ if (_y < _cy) \ { \ _h += _y - _cy; \ _y = _cy; \ if (_h < 0) _h = 0; \ } \ if ((_y + _h) > (_cy + _ch)) \ _h = _cy + _ch - _y; \ } \ else \ { \ _w = 0; _h = 0; \ } \ } /* * 1) Basic Saturation - 8 bit unsigned * * The add, subtract, and reshade operations generate new color values that may * be out of range for an unsigned 8 bit quantity. Therefore, we will want to * saturate the values into the range [0, 255]. Any value < 0 will become 0, * and any value > 255 will become 255. Or simply: * * saturated = (value < 0) ? 0 : ((value > 255) ? 255 : value) * * Of course the above isn't the most efficient means of saturating. Sometimes * due to the nature of a calculation, we know we only need to saturate from * above (> 255) or just from below (< 0). Or simply: * * saturated = (value < 0) ? 0 : value * saturated = (value > 255) ? 255 : value * * 2) Alternate Forms of Saturation * * The methods of saturation described above use testing/branching operations, * which are not necessarily efficient on all platforms. There are other means * of performing saturation using just simple arithmetic operations * (+, -, >>, <<, ~). A discussion of these saturation techniques follows. * * A) Saturation in the range [0, 512), or "from above". * * Assuming we have an integral value in the range [0, 512), the following * formula evaluates to either 0, or 255: * * (value & 255) - ((value & 256) >> 8) * * This is easy to show. Notice that if the value is in the range [0, 256) * the 9th bit is 0, and we get (0 - 0), which is 0. And if the value is in * the range [256, 512) the 9th bit is 1, and we get (256 - 1), which is 255. * * Now, using the above information and the fact that assigning an integer to * an 8 bit unsigned value will truncate to the lower 8 bits of the integer, * the following properly saturates: * * 8bit_value = value | (value & 256) - ((value & 256) >> 8) * * To prove this to yourself, just think about what the lower 8 bits look like * in the ranges [0, 256) and [256, 512). In particular, notice that the value * in the range [0, 256) are unchanged, and values in the range [256, 512) * always give you 255. Just what we want! * * B) Saturation in the range (-256, 256), or "from below". * * Assuming we have an integral value in the range (-256, 256), the following * formula evaluates to either 0, or -1: * * ~(value >> 8) * * Here's why. If the value is in the range [0, 256), then shifting right by * 8 bits gives us all 0 bits, or 0. And thus inverting the bits gives all * 1 bits, which is -1. If the value is in the range (-256, 0), then the 9th * bit and higher bits are all 1. So, when we shift right by 8 bits (with * signed extension), we get a value with all 1 bits. Which when inverted is * all 0 bits, or 0. * * Now, using the above information the following properly saturates: * * 8bit_value = value & (~(value >> 8)) * * To prove this to yourself, noticed that values in the range (-256, 0) will * always be AND'd with 0, and thus map to 0. Further, values in the range * [0, 256) will always be AND'd with a value that is all 1 bits, and thus * be unchanged. Just what we want! * * C) Saturation in the range (-256, 512), or "from above and below". * * The short of it is the following works: * * 8bit_value = (tmp | ((tmp & 256) - ((tmp & 256) >> 8))) & (~(tmp >> 9)) * * We leave it to the reader to prove. Looks very similar to the techniques * used above, eh? :) */ /* Saturate values in the range [0, 512) */ #define SATURATE_UPPER(nc, v) \ tmp = (v); \ nc = (tmp | (-(tmp >> 8))); /* Saturate values in the range (-256, 256) */ #define SATURATE_LOWER(nc, v) \ tmp = (v); \ nc = tmp & (~(tmp >> 8)); /* Saturate values in the range (-256, 512) */ #define SATURATE_BOTH(nc, v) \ tmp = (v); \ nc = (tmp | (-(tmp >> 8))) & (~(tmp >> 9)); /* * 1) Operations * * There are 4 operations supported: * * Copy, Add, Subtract, and Reshade * * For each operation there are 3 different variations that can be made: * * a) Use "blend" or "copy" in the calculations? A "blend" uses the alpha * value of the source pixel to lighten the source pixel values. Where * as "copy" ignores the alpha value and uses the raw source pixel values. * b) Include source alpha in the calculation for new destination alpha? * If source alpha is not used, then destination alpha is preserved. * If source alpha is used, a "copy" sets the new alpha to the source * alpha, and a "blend" increases it by a factor given by the product * of the source alpha with one minus the destination alpha. * c) Should the source pixels be passed through a color modifier before the * calculations are performed? * * All together we have 4*2*2*2 = 32 combinations. * * 2) Copy operation * * The "copy" version of this operation copies the source image onto the * destination image. * * The "blend" version of this operation blends the source image color 'c' with * the destination image color 'cc' using 'a' (in the range [0, 1]) according * to the following formula. Also notice that saturation is not needed for * this calculation, the output is in the range [0, 255]: * * nc = c * alpha + (1 - alpha) * cc * = c * alpha - cc * alpha + cc * = (c - cc) * alpha + cc; * * A discussion of how we're calculating this value follows: * * We're using 'a', an integer, in the range [0, 255] for alpha (and for 'c' * and 'cc', BTW). Therefore, we need to slightly modify the equation to take * that into account. To get into the range [0, 255] we need to divide 'a' * by 255: * * nc = ((c - cc) * a) / 255 + cc * * Notice that it is faster to divide by 256 (bit shifting), however without a * fudge factor 'x' to balance things this isn't horribly accurate. So, let's * solve for 'x'. The equality is: * * ((c - cc) * a) / 256 + cc + x = ((c - cc) * a) / 255 + cc * * The 'cc' terms cancel, and multiply both sides by 255*256 to remove the * fractions: * * ((c - cc) * a) * 255 + 255 * 256 * x = ((c - cc) * a) * 256 * * Get the 'x' term alone: * * 255 * 256 * x = ((c - cc) * a) * * Divide both sides by 255 * 256 to solve for 'x': * * x = ((c - cc) * a) / (255 * 256) * * And putting 'x' back into the equation we get: * * nc = ((c - cc) * a) / 256 + cc + ((c - cc) * a) / (255 * 256) * * And if we let 'tmp' represent the value '(c - cc) * a', and do a little * regrouping we get: * * nc = tmp / 256 + tmp / (255 * 256) + cc * = (tmp + tmp / 255) / 256 + cc * * We'll be using integer arithmetic, and over the range of values tmp takes * (in [-255*255, 255*255]) the term tmp/(255*256) is pretty much the same as * tmp/(256*256). So we get: * * nc = (tmp + tmp / 256) / 256 + cc * * And because the division of the sum uses integer arithmetic, it always * rounds up/down even if that isn't the "best" choice. If we add .5 to the * sum, we can get standard rounding: Like so: * * nc = (tmp + tmp / 256 + 128) / 256 + cc * * 3) Add operation * * The "copy" version of this operation sums the source image pixel values * with the destination image pixel values, saturating at 255 (from above). * * The "blend" version of this operation sums the source image pixel values, * after taking into account alpha transparency (e.g. a percentage), with the * destination image pixel values, saturating at 255 (from above). * * 4) Subtract operation * * This operation is the same as the Add operation, except the source values * are subtracted from the destination values (instead of added). Further, * the result must be saturated at 0 (from below). * * 5) Reshade operation * * This operation uses the source image color values to lighten/darken color * values in the destination image using the following formula: * * nc = cc + ((c - middle_value) * 2 * alpha) * * Recall our pixel color and alpha values are in the range [0, 255]. So, the * "blend" version of this operation can be calculated as: * * nc = cc + ((c - 127) * 2 * (a / 255)) * * And in an integer arithmetic friendly form is: * * nc = cc + (((c - 127) * a) >> 7) * * The "copy" version of this operation treats alpha as 1.0 (or a/255), and in * integer arithmetic friendly form is: * * nc = cc + ((c - 127) << 1) * * Notice the color values created by this operation are in the range * (-256, 512), and thus must be saturated at 0 and 255 (from above and below). * * For all the operations, when the "blend" version involves computing new * destination alpha values via the use of some source alpha, we have that: * * nalpha = alpha + ((255 - alpha) * (a / 255)) * * We can use the previous argument for approximating division by 255, and * calculate this by: * * tmp = (255 - alpha) * a; * nalpha = alpha + ((tmp + (tmp >> 8) + 0x80) >> 8); * * This is again in the range [0, 255], so no saturation is needed. */ #define BLEND_COLOR(a, nc, c, cc) \ tmp = ((c) - (cc)) * (a); \ nc = (cc) + ((tmp + (tmp >> 8) + 0x80) >> 8); #define ADD_COLOR_WITH_ALPHA(a, nc, c, cc) \ tmp = (c) * (a); \ tmp = (cc) + ((tmp + (tmp >> 8) + 0x80) >> 8); \ nc = (tmp | (-(tmp >> 8))); #define ADD_COLOR(nc, c, cc) \ tmp = (cc) + (c); \ nc = (tmp | (-(tmp >> 8))); #define SUB_COLOR_WITH_ALPHA(a, nc, c, cc) \ tmp = (c) * (a); \ tmp = (cc) - ((tmp + (tmp >> 8) + 0x80) >> 8); \ nc = (tmp & (~(tmp >> 8))); #define SUB_COLOR(nc, c, cc) \ tmp = (cc) - (c); \ nc = (tmp & (~(tmp >> 8))); #define RESHADE_COLOR_WITH_ALPHA(a, nc, c, cc) \ tmp = (cc) + ((((c) - 127) * (a)) >> 7); \ nc = (tmp | (-(tmp >> 8))) & (~(tmp >> 9)); #define RESHADE_COLOR(nc, c, cc) \ tmp = (cc) + (((c) - 127) << 1); \ nc = (tmp | (-(tmp >> 8))) & (~(tmp >> 9)); extern int pow_lut_initialized; extern DATA8 pow_lut[256][256]; #define BLEND_DST_ALPHA(r1, g1, b1, a1, dest) \ { DATA8 _aa; \ _aa = pow_lut[a1][A_VAL(dest)]; \ BLEND_COLOR(a1, A_VAL(dest), 255, A_VAL(dest)); \ BLEND_COLOR(_aa, R_VAL(dest), r1, R_VAL(dest)); \ BLEND_COLOR(_aa, G_VAL(dest), g1, G_VAL(dest)); \ BLEND_COLOR(_aa, B_VAL(dest), b1, B_VAL(dest)); \ } #define BLEND(r1, g1, b1, a1, dest) \ BLEND_COLOR(a1, R_VAL(dest), r1, R_VAL(dest)); \ BLEND_COLOR(a1, G_VAL(dest), g1, G_VAL(dest)); \ BLEND_COLOR(a1, B_VAL(dest), b1, B_VAL(dest)); #define BLEND_ADD(r1, g1, b1, a1, dest) \ ADD_COLOR_WITH_ALPHA(a1, R_VAL(dest), r1, R_VAL(dest)); \ ADD_COLOR_WITH_ALPHA(a1, G_VAL(dest), g1, G_VAL(dest)); \ ADD_COLOR_WITH_ALPHA(a1, B_VAL(dest), b1, B_VAL(dest)); #define BLEND_SUB(r1, g1, b1, a1, dest) \ SUB_COLOR_WITH_ALPHA(a1, R_VAL(dest), r1, R_VAL(dest)); \ SUB_COLOR_WITH_ALPHA(a1, G_VAL(dest), g1, G_VAL(dest)); \ SUB_COLOR_WITH_ALPHA(a1, B_VAL(dest), b1, B_VAL(dest)); #define BLEND_RE(r1, g1, b1, a1, dest) \ RESHADE_COLOR_WITH_ALPHA(a1, R_VAL(dest), r1, R_VAL(dest)); \ RESHADE_COLOR_WITH_ALPHA(a1, G_VAL(dest), g1, G_VAL(dest)); \ RESHADE_COLOR_WITH_ALPHA(a1, B_VAL(dest), b1, B_VAL(dest)); enum _imlibop { OP_COPY, OP_ADD, OP_SUBTRACT, OP_RESHADE }; typedef enum _imlibop ImlibOp; typedef void (*ImlibBlendFunction)(DATA32*, int, DATA32*, int, int, int, ImlibColorModifier *); __hidden ImlibBlendFunction __imlib_GetBlendFunction(ImlibOp op, char merge_alpha, char blend, char rgb_src, ImlibColorModifier * cm); __hidden void __imlib_BlendImageToImage(ImlibImage *im_src, ImlibImage *im_dst, char aa, char blend, char merge_alpha, int ssx, int ssy, int ssw, int ssh, int ddx, int ddy, int ddw, int ddh, ImlibColorModifier *cm, ImlibOp op, int clx, int cly, int clw, int clh); __hidden void __imlib_BlendRGBAToData(DATA32 *src, int src_w, int src_h, DATA32 *dst, int dst_w, int dst_h, int sx, int sy, int dx, int dy, int w, int h, char blend, char merge_alpha, ImlibColorModifier *cm, ImlibOp op, char rgb_src); __hidden void __imlib_build_pow_lut(void); #ifdef DO_MMX_ASM void __imlib_mmx_blend_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_blend_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_copy_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_copy_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_copy_rgb_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_blend_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_blend_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_copy_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_copy_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_copy_rgb_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_blend_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_blend_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_copy_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_copy_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_copy_rgb_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_blend_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_blend_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_copy_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_copy_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_copy_rgb_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_blend_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_blend_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_blend_rgb_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_blend_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_copy_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_copy_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_copy_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_blend_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_blend_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_blend_rgb_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_blend_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_copy_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_copy_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_add_copy_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_blend_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_blend_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_blend_rgb_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_blend_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_copy_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_copy_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_subtract_copy_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_blend_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_blend_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_blend_rgb_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_blend_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_copy_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_copy_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_mmx_reshade_copy_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); #elif DO_AMD64_ASM void __imlib_amd64_blend_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_blend_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_copy_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_copy_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_copy_rgb_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_blend_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_blend_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_copy_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_copy_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_copy_rgb_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_blend_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_blend_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_copy_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_copy_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_copy_rgb_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_blend_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_blend_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_copy_rgba_to_rgb(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_copy_rgba_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_copy_rgb_to_rgba(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_blend_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_blend_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_blend_rgb_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_blend_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_copy_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_copy_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_copy_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_blend_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_blend_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_blend_rgb_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_blend_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_copy_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_copy_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_add_copy_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_blend_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_blend_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_blend_rgb_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_blend_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_copy_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_copy_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_subtract_copy_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_blend_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_blend_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_blend_rgb_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_blend_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_copy_rgba_to_rgb_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_copy_rgba_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); void __imlib_amd64_reshade_copy_rgb_to_rgba_cmod(DATA32 *src, int sw, DATA32 *dst, int dw, int w, int h, ImlibColorModifier *cm); #endif #endif imlib2-1.4.6/src/lib/amd64_blend.S0000664000175000017500000035170312255265113013376 00000000000000#include #include "asm.h" #ifdef DO_AMD64_ASM /*\ |*| AMD64 SSE2 assembly blending routines for Imlib2 |*| Written by John Slaten |*| Based on MMX routines written by Willem Monsuwe \*/ /*\ Some useful masks \*/ .data .align 16 m0X000000: .byte 0, 0, 0, 0, 0, 0, 255, 0 .byte 0, 0, 0, 0, 0, 0, 255, 0 m10000000: .byte 0, 0, 0, 0, 0, 0, 0, 1 .byte 0, 0, 0, 0, 0, 0, 0, 1 m00XXXXXX: .byte 255, 255, 255, 255, 255, 255, 0, 0 .byte 255, 255, 255, 255, 255, 255, 0, 0 mVX000000: .byte 0, 0, 0, 0, 0, 0, 255, 127 .byte 0, 0, 0, 0, 0, 0, 255, 127 mV0000000: .byte 0, 0, 0, 0, 0, 0, 0, 128 .byte 0, 0, 0, 0, 0, 0, 0, 128 mX000X000: .byte 0, 0, 0, 0, 0, 0, 255, 255 .byte 0, 0, 0, 0, 0, 0, 255, 255 m0XXX0XXX0XXX0XXX: .byte 255, 255, 255, 0, 255, 255, 255, 0 .byte 255, 255, 255, 0, 255, 255, 255, 0 m0XXX0XXX00000000: .byte 255, 255, 255, 0, 255, 255, 255, 0 .byte 0, 0, 0, 0, 0, 0, 0, 0 m0XXX000000000000: .byte 255, 255, 255, 0, 0, 0, 0, 0 .byte 0, 0, 0, 0, 0, 0, 0, 0 mX000X000X000X000: .byte 0, 0, 0, 255, 0, 0, 0, 255 .byte 0, 0, 0, 255, 0, 0, 0, 255 mX000X00000000000: .byte 0, 0, 0, 255, 0, 0, 0, 255 .byte 0, 0, 0, 255, 0, 0, 0, 255 mX000000000000000: .byte 0, 0, 0, 255, 0, 0, 0, 255 .byte 0, 0, 0, 255, 0, 0, 0, 255 m1000100010001000: .byte 0, 0, 0, 1, 0, 0, 0, 1 .byte 0, 0, 0, 1, 0, 0, 0, 1 m000V0V0V000V0V0V: .byte 127, 0, 127, 0, 127, 0, 0, 0 .byte 127, 0, 127, 0, 127, 0, 0, 0 mI0000000I0000000: .byte 0, 0, 0, 0, 0, 0, 0, 64 .byte 0, 0, 0, 0, 0, 0, 0, 64 m0VVV0VVV0VVV0VVV: .byte 127, 127, 127, 0, 127, 127, 127, 0 .byte 127, 127, 127, 0, 127, 127, 127, 0 c1: .word 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1 /*\ All functions have the same calling convention: |*| __imlib_amd64__rgba_to_rgb[A](void *src, int sw, void *dst, int dw, |*| int w, int h, ImlibColorModifier *cm) |*| AMD64 GCC passes paramters by register, so no aliases exist in this version. \*/ .text .align 16 FN_(imlib_amd64_blend_rgba_to_rgb) FN_(imlib_amd64_blend_rgba_to_rgba) FN_(imlib_amd64_copy_rgba_to_rgb) FN_(imlib_amd64_copy_rgba_to_rgba) FN_(imlib_amd64_copy_rgb_to_rgba) FN_(imlib_amd64_add_blend_rgba_to_rgb) FN_(imlib_amd64_add_blend_rgba_to_rgba) FN_(imlib_amd64_add_copy_rgba_to_rgb) FN_(imlib_amd64_add_copy_rgba_to_rgba) FN_(imlib_amd64_add_copy_rgb_to_rgba) FN_(imlib_amd64_subtract_blend_rgba_to_rgb) FN_(imlib_amd64_subtract_blend_rgba_to_rgba) FN_(imlib_amd64_subtract_copy_rgba_to_rgb) FN_(imlib_amd64_subtract_copy_rgba_to_rgba) FN_(imlib_amd64_subtract_copy_rgb_to_rgba) FN_(imlib_amd64_reshade_blend_rgba_to_rgb) FN_(imlib_amd64_reshade_blend_rgba_to_rgba) FN_(imlib_amd64_reshade_copy_rgba_to_rgb) FN_(imlib_amd64_reshade_copy_rgba_to_rgba) FN_(imlib_amd64_reshade_copy_rgb_to_rgba) .extern pow_lut /*\ SSE register use: |*| %xmm1 = Source value |*| %xmm2 = Destination value |*| %xmm3 = Alpha value |*| %xmm4 = 0 |*| %xmm5-%xmm7 = masks \*/ /*\ Variables: |*| %rsi = src |*| %rdi = dst |*| %r8d = w |*| %r9d = h |*| %r10d = sw |*| %r11d = dw \*/ #define ENTER \ pushq %rbp ; \ movq %rsp, %rbp ; \ pushq %rbx ; \ pushq %r13 ; \ pushq %r14 ; \ movq %rsi, %r10 ; \ movq %rcx, %r11 ; \ movq %rdi, %rsi ; \ movq %rdx, %rdi ; \ movq 16(%rbp), %r14 ; \ ; \ /* param sanity check */ ; \ testq %r8, %r8 ; \ jz 9f ; \ testq %r9, %r9 ; \ jz 9f #define LEAVE \ popq %r14 ; \ popq %r13 ; \ popq %rbx ; \ movq %rbp, %rsp ; \ popq %rbp ; \ ret PR_(imlib_amd64_blend_rgba_to_rgb): ENTER pxor %xmm4, %xmm4 movdqu c1(%rip), %xmm5 movdqu m00XXXXXX(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_blend_rgba_to_rgb) PR_(imlib_amd64_blend_rgba_to_rgba): ENTER pxor %xmm4, %xmm4 movdqu c1(%rip), %xmm5 xorq %rax, %rax movdqu mX000X000X000X000(%rip), %xmm6 movq pow_lut@GOTPCREL(%rip), %r13 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Load one pixel as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movd %eax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_blend_rgba_to_rgba) PR_(imlib_amd64_copy_rgba_to_rgb): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqu mX000X000X000X000(%rip), %xmm6 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (s & 0x00ffffff) | (d & 0xff000000) */ pand %xmm5, %xmm1 pand %xmm6, %xmm2 por %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_copy_rgba_to_rgb) PR_(imlib_amd64_copy_rgba_to_rgba): ENTER leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd %xmm1, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd %xmm1, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_copy_rgba_to_rgba) PR_(imlib_amd64_copy_rgb_to_rgba): ENTER movdqu mX000X000X000X000(%rip), %xmm5 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movd %xmm1, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movdqa %xmm1, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 /* d = s | 0xff000000 */ por %xmm5, %xmm1 movd %xmm1, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_copy_rgb_to_rgba) PR_(imlib_amd64_add_blend_rgba_to_rgb): ENTER pxor %xmm4, %xmm4 movdqu m00XXXXXX(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_blend_rgba_to_rgb) PR_(imlib_amd64_add_blend_rgba_to_rgba): ENTER pxor %xmm4, %xmm4 movdqu c1(%rip), %xmm5 xorq %rax, %rax movdqu mX000X000X000X000(%rip), %xmm6 movq pow_lut@GOTPCREL(%rip), %r13 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Load one pixel as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movd %eax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_blend_rgba_to_rgba) PR_(imlib_amd64_add_copy_rgba_to_rgb): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_copy_rgba_to_rgb) PR_(imlib_amd64_add_copy_rgba_to_rgba): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_copy_rgba_to_rgba) PR_(imlib_amd64_add_copy_rgb_to_rgba): ENTER movdqu mX000X000X000X000(%rip), %xmm5 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (d + s) | 0xff000000 */ paddusb %xmm1, %xmm2 por %xmm5, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_copy_rgb_to_rgba) PR_(imlib_amd64_subtract_blend_rgba_to_rgb): ENTER pxor %xmm4, %xmm4 movdqu m00XXXXXX(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_blend_rgba_to_rgb) PR_(imlib_amd64_subtract_blend_rgba_to_rgba): ENTER movq pow_lut@GOTPCREL(%rip), %r13 pxor %xmm4, %xmm4 movdqu c1(%rip), %xmm5 movdqu mX000X000X000X000(%rip), %xmm6 movdqu mX000X000(%rip), %xmm7 xorq %rax, %rax /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Load two pixels as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Load one pixel as 00, 00, src alpha, combined alpha * Combined alpha is derived from the pow_lut table in blend.c */ movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah movd %eax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_blend_rgba_to_rgba) PR_(imlib_amd64_subtract_copy_rgba_to_rgb): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_copy_rgba_to_rgb) PR_(imlib_amd64_subtract_copy_rgba_to_rgba): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqu mX000X000X000X000(%rip), %xmm6 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_copy_rgba_to_rgba) PR_(imlib_amd64_subtract_copy_rgb_to_rgba): ENTER movdqu mX000X000X000X000(%rip), %xmm5 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (d - s) | 0xff000000 */ psubusb %xmm1, %xmm2 por %xmm5, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_copy_rgb_to_rgba) PR_(imlib_amd64_reshade_blend_rgba_to_rgb): ENTER pxor %xmm4, %xmm4 movdqu m000V0V0V000V0V0V(%rip), %xmm6 movdqu m00XXXXXX(%rip), %xmm7 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_blend_rgba_to_rgb) PR_(imlib_amd64_reshade_blend_rgba_to_rgba): ENTER movq pow_lut@GOTPCREL(%rip), %r13 pxor %xmm4, %xmm4 movdqu c1(%rip), %xmm5 movdqu mX000X000X000X000(%rip), %xmm6 movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm7 movdqu m000V0V0V000V0V0V(%rip), %xmm8 xorq %rax, %rax /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f movq (%rsi, %rcx, 4), %xmm1 movq (%rdi, %rcx, 4), %xmm2 movzbq 7(%rdi, %rcx, 4), %rdx movb 7(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh shlq $32, %rax movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 movzbq 3(%rdi, %rcx, 4), %rdx movb 3(%rsi, %rcx, 4), %dh movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %eax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_blend_rgba_to_rgba) PR_(imlib_amd64_reshade_copy_rgba_to_rgb): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqu m0VVV0VVV0VVV0VVV(%rip), %xmm6 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_copy_rgba_to_rgb) PR_(imlib_amd64_reshade_copy_rgba_to_rgba): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqu m0VVV0VVV0VVV0VVV(%rip), %xmm6 movdqu mX000X000X000X000(%rip), %xmm7 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_copy_rgba_to_rgba) PR_(imlib_amd64_reshade_copy_rgb_to_rgba): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqu m0VVV0VVV0VVV0VVV(%rip), %xmm6 movdqu mX000X000X000X000(%rip), %xmm7 leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi subq $12, %rsi subq $12, %rdi negq %r8 0: movq %r8, %rcx /* if < 4 pixels left, goto end */ addq $3, %rcx jns 4f 1: /* 16 byte align dst ptr */ leaq (%rdi, %rcx, 4), %rdx test $0x0f, %rdx jz 1f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jz 4f jmp 1b 1: /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) /* test if 16 byte aligned src ptr */ leaq (%rsi, %rcx, 4), %rdx test $0x0f, %rdx jnz 3f 2: /* main loop, unrolled to work on 64 byte chunks */ /* aligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqa (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 2b jmp 4f 3: /* main loop, unrolled to work on 64 byte chunks */ /* unaligned src, aligned dst */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx jns 4f movdqu (%rsi, %rcx, 4), %xmm1 movdqa (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movdqa %xmm2, (%rdi, %rcx, 4) addq $4, %rcx js 3b 4: /* finish loop */ cmp $2, %rcx jg 5f movd (%rsi, %rcx, 4), %xmm1 movd (%rdi, %rcx, 4), %xmm2 movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = 0xff */ por %xmm7, %xmm2 movd %xmm2, (%rdi, %rcx, 4) incq %rcx jmp 4b 5: /* finish line */ leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_copy_rgb_to_rgba) #endif #ifdef __ELF__ .section .note.GNU-stack,"",@progbits #endif imlib2-1.4.6/src/lib/rend.c0000664000175000017500000004372312255265152012272 00000000000000#include "common.h" #ifdef BUILD_X11 #include #include #include #include "colormod.h" #include "image.h" #include "scale.h" #include "ximage.h" #include "context.h" #include "rgba.h" #include "color.h" #include "grab.h" #include "blend.h" #include "rend.h" #include "rotate.h" /* The maximum pixmap dimension is 65535. */ /* However, for now, use 46340 (46340^2 < 2^31) to avoid buffer overflow issues. */ #define X_MAX_DIM 46340 /* size of the lines per segment we scale / render at a time */ #define LINESIZE 16 DATA32 __imlib_RenderGetPixel(Display * d, Drawable w, Visual * v, Colormap cm, int depth, DATA8 r, DATA8 g, DATA8 b) { Context *ct; ct = __imlib_GetContext(d, v, cm, depth); if (ct->palette) { switch (ct->palette_type) { case 0: /* 332 */ return ct->palette[((r >> 0) & 0xe0) | ((g >> 3) & 0x1b) | ((b >> 6) & 0x02)]; break; case 1: /* 232 */ return ct->palette[((r >> 0) & 0xe0) | ((g >> 3) & 0x1b) | ((b >> 6) & 0x02)]; break; case 2: /* 222 */ return ct->palette[((r >> 0) & 0xe0) | ((g >> 3) & 0x1b) | ((b >> 6) & 0x02)]; break; case 3: /* 221 */ return ct->palette[((r >> 0) & 0xe0) | ((g >> 3) & 0x1b) | ((b >> 6) & 0x02)]; break; case 4: /* 121 */ return ct->palette[((r >> 0) & 0xe0) | ((g >> 3) & 0x1b) | ((b >> 6) & 0x02)]; break; case 5: /* 111 */ return ct->palette[((r >> 0) & 0xe0) | ((g >> 3) & 0x1b) | ((b >> 6) & 0x02)]; break; case 6: /* 1 */ return ct->palette[((r >> 0) & 0xe0) | ((g >> 3) & 0x1b) | ((b >> 6) & 0x02)]; break; case 7: /* 666 */ return ct->palette[((int)(((double)r / 255) * 5.0) * 36) + ((int)(((double)g / 255) * 5.0) * 6) + ((int)(((double)b / 255) * 5.0))]; break; default: return 0; } } else { unsigned int rm, gm, bm; int i, rshift = 0, gshift = 0, bshift = 0; DATA32 val; rm = v->red_mask; gm = v->green_mask; bm = v->blue_mask; if ((rm == 0xf800) && (gm == 0x7e0) && (bm == 0x1f)) /* 565 */ { return (((r << 8) & 0xf800) | ((g << 3) & 0x07e0) | ((b >> 3) & 0x001f)); } if ((rm == 0xff0000) && (gm == 0xff00) && (bm == 0xff)) /* 888 */ { return (((r << 16) & 0xff0000) | ((g << 8) & 0x00ff00) | ((r) & 0x0000ff)); } if ((rm == 0x7c00) && (gm == 0x3e0) && (bm == 0x1f)) /* 555 */ { return (((r << 7) & 0x7c00) | ((g << 2) & 0x03e0) | ((b >> 3) & 0x001f)); } for (i = 31; i >= 0; i--) { if (rm >= (1U << i)) { rshift = i - 7; break; } } for (i = 31; i >= 0; i--) { if (gm >= (1U << i)) { gshift = i - 7; break; } } for (i = 31; i >= 0; i--) { if (bm >= (1U << i)) { bshift = i - 7; break; } } if (rshift >= 0) val = ((r << rshift) & rm); else val = ((r >> (-rshift)) & rm); if (gshift >= 0) val |= ((g << gshift) & gm); else val |= ((g >> (-gshift)) & gm); if (bshift >= 0) val |= ((b << bshift) & bm); else val |= ((b >> (-bshift)) & bm); return val; } return 0; } static void __imlib_generic_render(DATA32 * src, int jump, int w, int h, int dx, int dy, XImage * xim, Visual * v, Context * ct) { int x, y, hh; unsigned int r, g, b, val; unsigned int rmask, gmask, bmask; int i, rshift, gshift, bshift; static const DATA8 _dither_88[8][8] = { {0, 32, 8, 40, 2, 34, 10, 42}, {48, 16, 56, 24, 50, 18, 58, 26}, {12, 44, 4, 36, 14, 46, 6, 38}, {60, 28, 52, 20, 62, 30, 54, 22}, {3, 35, 11, 43, 1, 33, 9, 41}, {51, 19, 59, 27, 49, 17, 57, 25}, {15, 47, 7, 39, 13, 45, 5, 37}, {63, 31, 55, 23, 61, 29, 53, 21} }; if (xim->depth == 1) { hh = dy + h; for (y = dy; y < hh; y++) { for (x = dx; x < w; x++) { r = R_VAL(src); g = G_VAL(src); b = B_VAL(src); val = (R_VAL(src) + G_VAL(src) + B_VAL(src)) / 12; if (val > _dither_88[x & 0x3][y & 0x3]) val = ct->palette[1]; else val = ct->palette[0]; XPutPixel(xim, x, y, val); src++; } } return; } rmask = xim->red_mask; gmask = xim->green_mask; bmask = xim->blue_mask; rshift = 0; gshift = 0; bshift = 0; for (i = 31; i >= 0; i--) { if (rmask >= (1U << i)) { rshift = i - 7; break; } } for (i = 31; i >= 0; i--) { if (gmask >= (1U << i)) { gshift = i - 7; break; } } for (i = 31; i >= 0; i--) { if (bmask >= (1U << i)) { bshift = i - 7; break; } } hh = dy + h; for (y = dy; y < hh; y++) { for (x = dx; x < w; x++) { r = R_VAL(src); if (rshift >= 0) val = ((r << rshift) & rmask); else val = ((r >> (-rshift)) & rmask); g = G_VAL(src); if (gshift >= 0) val |= ((g << gshift) & gmask); else val |= ((g >> (-gshift)) & gmask); b = B_VAL(src); if (bshift >= 0) val |= ((b << bshift) & bmask); else val |= ((b >> (-bshift)) & bmask); XPutPixel(xim, x, y, val); src++; } } } static Display *disp = NULL; static GC gc = NULL; static GC gcm = NULL; static int last_depth = 0; void __imlib_RenderDisconnect(Display * d) { if (d != disp) return; disp = NULL; gc = gcm = NULL; last_depth = 0; } void __imlib_RenderImage(Display * d, ImlibImage * im, Drawable w, Drawable m, Visual * v, Colormap cm, int depth, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, char antialias, char hiq, char blend, char dither_mask, int mat, ImlibColorModifier * cmod, ImlibOp op) { XImage *xim = NULL, *mxim = NULL; Context *ct; DATA32 *buf = NULL, *pointer = NULL, *back = NULL; int y, h, hh, jump; XGCValues gcv; ImlibScaleInfo *scaleinfo = NULL; int psx, psy, psw, psh; char shm = 0; ImlibRGBAFunction rgbaer; ImlibMaskFunction masker = NULL; ImlibBlendFunction blender = NULL; #ifdef DO_MMX_ASM int do_mmx; #endif blender = __imlib_GetBlendFunction(op, 1, 0, (!(im->flags & F_HAS_ALPHA)), NULL); /* dont do anything if we have a 0 widht or height image to render */ if ((dw == 0) || (dh == 0)) return; /* if the input rect size < 0 dont render either */ if ((sw <= 0) || (sh <= 0)) return; /* if the output is too big (8k arbitrary limit here) dont bother */ if ((abs(dw) > X_MAX_DIM) || (abs(dh) > X_MAX_DIM)) return; /* clip the source rect to be within the actual image */ psx = sx; psy = sy; psw = sw; psh = sh; CLIP(sx, sy, sw, sh, 0, 0, im->w, im->h); /* clip output coords to clipped input coords */ if (psx != sx) dx = (dx * sx) / psx; if (psy != sy) dy = (dy * sy) / psy; if (psw != sw) dw = (dw * sw) / psw; if (psh != sh) dh = (dh * sh) / psh; /* do a second check to see if we now have invalid coords */ /* dont do anything if we have a 0 widht or height image to render */ if ((dw == 0) || (dh == 0)) return; /* if the input rect size < 0 dont render either */ if ((sw <= 0) || (sh <= 0)) return; /* if the output is too big (8k arbitrary limit here) dont bother */ if ((abs(dw) > X_MAX_DIM) || (abs(dh) > X_MAX_DIM)) return; /* if we are scaling the image at all make a scaling buffer */ if (!((sw == dw) && (sh == dh))) { scaleinfo = __imlib_CalcScaleInfo(im, sw, sh, dw, dh, antialias); if (!scaleinfo) return; } /* Sign not needed anymore */ dw = abs(dw); dh = abs(dh); ct = __imlib_GetContext(d, v, cm, depth); __imlib_RGBASetupContext(ct); if ((blend) && (IMAGE_HAS_ALPHA(im))) { back = malloc(dw * dh * sizeof(DATA32)); if (!__imlib_GrabDrawableToRGBA (back, 0, 0, dw, dh, d, w, 0, v, cm, depth, dx, dy, dw, dh, 0, 1)) { free(back); back = NULL; } } /* get a new XImage - or get one from the cached list */ xim = __imlib_ProduceXImage(d, v, depth, dw, dh, &shm); if (!xim) { __imlib_FreeScaleInfo(scaleinfo); if (back) free(back); return; } if (m) { mxim = __imlib_ProduceXImage(d, v, 1, dw, dh, &shm); if (!mxim) { __imlib_ConsumeXImage(d, xim); __imlib_FreeScaleInfo(scaleinfo); if (back) free(back); return; } memset(mxim->data, 0, mxim->bytes_per_line * mxim->height); } /* if we are scaling the image at all make a scaling buffer */ if (scaleinfo) { /* allocate a buffer to render scaled RGBA data into */ buf = malloc(dw * LINESIZE * sizeof(DATA32)); if (!buf) { __imlib_ConsumeXImage(d, xim); if (m) __imlib_ConsumeXImage(d, mxim); __imlib_FreeScaleInfo(scaleinfo); if (back) free(back); return; } } /* setup h */ h = dh; /* scale in LINESIZE Y chunks and convert to depth */ /* Get rgba and mask functions for XImage rendering */ rgbaer = __imlib_GetRGBAFunction(xim->bits_per_pixel, v->red_mask, v->green_mask, v->blue_mask, hiq, ct->palette_type); if (m) masker = __imlib_GetMaskFunction(dither_mask); #ifdef DO_MMX_ASM do_mmx = __imlib_get_cpuid() & CPUID_MMX; #endif for (y = 0; y < dh; y += LINESIZE) { hh = LINESIZE; if (h < LINESIZE) hh = h; /* if we're scaling it */ if (scaleinfo) { /* scale the imagedata for this LINESIZE lines chunk of image data */ if (antialias) { #ifdef DO_MMX_ASM if (do_mmx) __imlib_Scale_mmx_AARGBA(scaleinfo, buf, ((sx * dw) / sw), ((sy * dh) / sh) + y, 0, 0, dw, hh, dw, im->w); else #endif if (IMAGE_HAS_ALPHA(im)) __imlib_ScaleAARGBA(scaleinfo, buf, ((sx * dw) / sw), ((sy * dh) / sh) + y, 0, 0, dw, hh, dw, im->w); else __imlib_ScaleAARGB(scaleinfo, buf, ((sx * dw) / sw), ((sy * dh) / sh) + y, 0, 0, dw, hh, dw, im->w); } else __imlib_ScaleSampleRGBA(scaleinfo, buf, ((sx * dw) / sw), ((sy * dh) / sh) + y, 0, 0, dw, hh, dw); jump = 0; pointer = buf; if (cmod) __imlib_DataCmodApply(buf, dw, hh, 0, NULL, cmod); } else { if (cmod) { if (!buf) buf = malloc(im->w * LINESIZE * sizeof(DATA32)); if (!buf) { __imlib_ConsumeXImage(d, xim); if (m) __imlib_ConsumeXImage(d, mxim); __imlib_FreeScaleInfo(scaleinfo); if (back) free(back); return; } memcpy(buf, im->data + ((y + sy) * im->w), im->w * hh * sizeof(DATA32)); __imlib_DataCmodApply(buf, im->w, hh, 0, NULL, cmod); pointer = buf + sx; jump = im->w - sw; } else { jump = im->w - sw; pointer = im->data + ((y + sy) * im->w) + sx; } } /* if we have a back buffer - we're blending to the bg */ if (back) { blender(pointer, jump + dw, back + (y * dw), dw, dw, hh, NULL); pointer = back + (y * dw); jump = 0; } /* once scaled... convert chunk to bit depth into XImage bufer */ if (rgbaer) rgbaer(pointer, jump, ((DATA8 *) xim->data) + (y * (xim->bytes_per_line)), xim->bytes_per_line, dw, hh, dx, dy + y); else __imlib_generic_render(pointer, jump, dw, hh, 0, y, xim, v, ct); if (m) masker(pointer, jump, ((DATA8 *) mxim->data) + (y * (mxim->bytes_per_line)), mxim->bytes_per_line, dw, hh, dx, dy + y, mat); h -= LINESIZE; } /* free up our buffers and poit tables */ if (buf) free(buf); if (scaleinfo) __imlib_FreeScaleInfo(scaleinfo); if (back) free(back); /* if we changed diplays or depth since last time... free old gc */ if ((gc) && ((last_depth != depth) || (disp != d))) { XFreeGC(disp, gc); gc = 0; } /* if we didn't have a gc... create it */ if (!gc) { disp = d; last_depth = depth; gcv.graphics_exposures = False; gc = XCreateGC(d, w, GCGraphicsExposures, &gcv); } if (m) { /* if we changed diplays since last time... free old gc */ if ((gcm) && (disp != d)) { XFreeGC(disp, gcm); gcm = 0; } if (!gcm) { gcv.graphics_exposures = False; gcm = XCreateGC(d, m, GCGraphicsExposures, &gcv); } /* write the mask */ if (shm) /* write shm XImage */ XShmPutImage(d, m, gcm, mxim, 0, 0, dx, dy, dw, dh, False); /* write regular XImage */ else XPutImage(d, m, gcm, mxim, 0, 0, dx, dy, dw, dh); } /* write the image */ if (shm) /* write shm XImage */ XShmPutImage(d, w, gc, xim, 0, 0, dx, dy, dw, dh, False); /* write regular XImage */ else XPutImage(d, w, gc, xim, 0, 0, dx, dy, dw, dh); /* free the XImage and put onto our free list */ /* wait for the write to be done */ if (shm) XSync(d, False); __imlib_ConsumeXImage(d, xim); if (m) __imlib_ConsumeXImage(d, mxim); } void __imlib_RenderImageSkewed(Display * d, ImlibImage * im, Drawable w, Drawable m, Visual * v, Colormap cm, int depth, int sx, int sy, int sw, int sh, int dx, int dy, int hsx, int hsy, int vsx, int vsy, char antialias, char hiq, char blend, char dither_mask, int mat, ImlibColorModifier * cmod, ImlibOp op) { int dx1, dy1, dx2, dy2, dw, dh, tsx, tsy; ImlibImage *back; dx1 = dx2 = dx; dy1 = dy2 = dy; if (hsx < 0) dx1 += hsx; else dx2 += hsx; if (hsy < 0) dy1 += hsy; else dy2 += hsy; tsx = vsx; tsy = vsy; if (!tsx && !tsy) { tsy = (hsx * im->h) / im->w; tsx = -(hsy * im->h) / im->w; } if (tsx < 0) dx1 += tsx; else dx2 += tsx; if (tsy < 0) dy1 += tsy; else dy2 += tsy; if ((dx2 < 0) || (dy2 < 0)) return; dw = dx2 - dx1; dh = dy2 - dy1; if ((dw <= 0) || (dh <= 0)) return; if (dx1 < 0) { dw += dx1; dx1 = 0; } if (dy1 < 0) { dh += dy1; dy1 = 0; } __imlib_GetContext(d, v, cm, depth); back = __imlib_CreateImage(dw, dh, NULL); back->data = calloc(dw * dh, sizeof(DATA32)); __imlib_GrabDrawableToRGBA(back->data, 0, 0, dw, dh, d, w, 0, v, cm, depth, dx1, dy1, dw, dh, 0, 1); __imlib_BlendImageToImageSkewed(im, back, antialias, 1, 0, sx, sy, sw, sh, dx - dx1, dy - dy1, hsx, hsy, vsx, vsy, cmod, op, 0, 0, 0, 0); __imlib_RenderImage(d, back, w, m, v, cm, depth, 0, 0, dw, dh, dx1, dy1, dw, dh, 0, hiq, 0, dither_mask, mat, 0, OP_COPY); __imlib_FreeImage(back); } #endif /* BUILD_X11 */ imlib2-1.4.6/src/lib/blend.c0000664000175000017500000017053212255265135012426 00000000000000#include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include "scale.h" #define ADD_COPY(r, g, b, dest) \ ADD_COLOR(R_VAL(dest), r, R_VAL(dest)); \ ADD_COLOR(G_VAL(dest), g, G_VAL(dest)); \ ADD_COLOR(B_VAL(dest), b, B_VAL(dest)); #define SUB_COPY(r, g, b, dest) \ SUB_COLOR(R_VAL(dest), r, R_VAL(dest)); \ SUB_COLOR(G_VAL(dest), g, G_VAL(dest)); \ SUB_COLOR(B_VAL(dest), b, B_VAL(dest)); #define RE_COPY(r, g, b, dest) \ RESHADE_COLOR(R_VAL(dest), r, R_VAL(dest)); \ RESHADE_COLOR(G_VAL(dest), g, G_VAL(dest)); \ RESHADE_COLOR(B_VAL(dest), b, B_VAL(dest)); int pow_lut_initialized = 0; DATA8 pow_lut[256][256]; void __imlib_build_pow_lut(void) { int i, j; if (pow_lut_initialized) return; pow_lut_initialized = 1; for (i = 0; i < 256; i++) { for (j = 0; j < 256; j++) /* pow_lut[i][j] = 255 * pow((double)i / 255, (double)j / 255); */ { int divisor; divisor = (i + (j * (255 - i)) / 255); if (divisor > 0) pow_lut[i][j] = (i * 255) / divisor; else pow_lut[i][j] = 0; } } } /* COPY OPS */ static void __imlib_BlendRGBAToRGB(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = A_VAL(src); switch (a) { case 0: break; case 255: *dst = (*dst & 0xff000000) | (*src & 0x00ffffff); break; default: BLEND(R_VAL(src), G_VAL(src), B_VAL(src), a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_BlendRGBAToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; DATA8 a, aa; aa = A_VAL(src); switch (aa) { case 0: break; case 255: *dst = *src; break; default: a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND(R_VAL(src), G_VAL(src), B_VAL(src), a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_CopyRGBAToRGB(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { *dst = (*dst & 0xff000000) | (*src & 0x00ffffff); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_CopyRGBToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { *dst = 0xff000000 | (*src & 0x00ffffff); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_CopyRGBAToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { *dst = *src; src++; dst++; } src += src_step; dst += dst_step; w = ww; } } /* ADD OPS */ static void __imlib_AddBlendRGBAToRGB(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = A_VAL(src); switch (a) { case 0: break; case 255: ADD_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); break; default: BLEND_ADD(R_VAL(src), G_VAL(src), B_VAL(src), a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddBlendRGBAToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; DATA8 a, aa; aa = A_VAL(src); switch (aa) { case 0: break; case 255: A_VAL(dst) = 0xff; ADD_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); break; default: a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND_ADD(R_VAL(src), G_VAL(src), B_VAL(src), a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddCopyRGBAToRGB(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; ADD_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddCopyRGBAToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = A_VAL(src); ADD_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddCopyRGBToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = 0xff; ADD_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } /* SUBTRACT OPS */ static void __imlib_SubBlendRGBAToRGB(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = A_VAL(src); switch (a) { case 0: break; case 255: SUB_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); break; default: BLEND_SUB(R_VAL(src), G_VAL(src), B_VAL(src), a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubBlendRGBAToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; DATA8 a, aa; aa = A_VAL(src); switch (aa) { case 0: break; case 255: A_VAL(dst) = 0xff; SUB_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); break; default: a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND_SUB(R_VAL(src), G_VAL(src), B_VAL(src), a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubCopyRGBAToRGB(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; SUB_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubCopyRGBAToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = A_VAL(src); SUB_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubCopyRGBToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = 0xff; SUB_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } /* RESHADE OPS */ static void __imlib_ReBlendRGBAToRGB(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = A_VAL(src); switch (a) { case 0: break; case 255: RE_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); break; default: BLEND_RE(R_VAL(src), G_VAL(src), B_VAL(src), a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReBlendRGBAToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; DATA8 a, aa; aa = A_VAL(src); switch (aa) { case 0: break; case 255: A_VAL(dst) = 0xff; RE_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); break; default: a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND_RE(R_VAL(src), G_VAL(src), B_VAL(src), a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReCopyRGBAToRGB(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; RE_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReCopyRGBAToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = A_VAL(src); RE_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReCopyRGBToRGBA(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = 0xff; RE_COPY(R_VAL(src), G_VAL(src), B_VAL(src), dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } /* WITH COLOMOD */ /* COPY OPS */ static void __imlib_BlendRGBAToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = amod[A_VAL(src)]; switch (a) { case 0: break; case 255: R_VAL(dst) = rmod[R_VAL(src)]; G_VAL(dst) = gmod[G_VAL(src)]; B_VAL(dst) = bmod[B_VAL(src)]; break; default: BLEND(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_BlendRGBAToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; DATA8 a, aa; aa = amod[A_VAL(src)]; switch (aa) { case 0: break; case 255: A_VAL(dst) = 0xff; R_VAL(dst) = rmod[R_VAL(src)]; G_VAL(dst) = gmod[G_VAL(src)]; B_VAL(dst) = bmod[B_VAL(src)]; break; default: a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_BlendRGBToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = pow_lut[am][A_VAL(dst)]; BLEND_COLOR(am, A_VAL(dst), 255, A_VAL(dst)) BLEND(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_BlendRGBToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; BLEND(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], am, dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_CopyRGBAToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { R_VAL(dst) = rmod[R_VAL(src)]; G_VAL(dst) = gmod[G_VAL(src)]; B_VAL(dst) = bmod[B_VAL(src)]; src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_CopyRGBToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { A_VAL(dst) = am; R_VAL(dst) = rmod[R_VAL(src)]; G_VAL(dst) = gmod[G_VAL(src)]; B_VAL(dst) = bmod[B_VAL(src)]; src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_CopyRGBAToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { A_VAL(dst) = amod[A_VAL(src)]; R_VAL(dst) = rmod[R_VAL(src)]; G_VAL(dst) = gmod[G_VAL(src)]; B_VAL(dst) = bmod[B_VAL(src)]; src++; dst++; } src += src_step; dst += dst_step; w = ww; } } /* ADD OPS */ static void __imlib_AddBlendRGBAToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = amod[A_VAL(src)]; switch (a) { case 0: break; case 255: ADD_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); break; default: BLEND_ADD(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddBlendRGBAToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; DATA8 a, aa; aa = amod[A_VAL(src)]; switch (aa) { case 0: break; case 255: A_VAL(dst) = 0xff; ADD_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); break; default: a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND_ADD(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddBlendRGBToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; BLEND_ADD(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], am, dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddBlendRGBToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = pow_lut[am][A_VAL(dst)]; BLEND_COLOR(am, A_VAL(dst), 255, A_VAL(dst)); BLEND_ADD(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddCopyRGBAToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; ADD_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddCopyRGBAToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = amod[A_VAL(src)]; ADD_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_AddCopyRGBToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = am; ADD_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } /* SUBTRACT OPS */ static void __imlib_SubBlendRGBAToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = amod[A_VAL(src)]; switch (a) { case 0: break; case 255: SUB_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); break; default: BLEND_SUB(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubBlendRGBAToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; DATA8 a, aa; aa = amod[A_VAL(src)]; switch (aa) { case 0: break; case 255: A_VAL(dst) = 0xff; SUB_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); break; default: a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND_SUB(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubBlendRGBToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; BLEND_SUB(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], am, dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubBlendRGBToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = pow_lut[am][A_VAL(dst)]; BLEND_COLOR(am, A_VAL(dst), 255, A_VAL(dst)); BLEND_SUB(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubCopyRGBAToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; SUB_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubCopyRGBAToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = amod[A_VAL(src)]; SUB_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_SubCopyRGBToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = am; SUB_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } /* RESHADE OPS */ static void __imlib_ReBlendRGBAToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = amod[A_VAL(src)]; switch (a) { case 0: break; case 255: RE_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); break; default: BLEND_RE(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); break; } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReBlendRGBAToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; DATA8 a, aa; aa = amod[A_VAL(src)]; switch (aa) { case 0: break; case 255: A_VAL(dst) = 0xff; RE_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); break; default: a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND_RE(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); } src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReBlendRGBToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; BLEND_RE(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], am, dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReBlendRGBToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; DATA8 a; a = pow_lut[am][A_VAL(dst)]; BLEND_COLOR(am, A_VAL(dst), 255, A_VAL(dst)); BLEND_RE(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], a, dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReCopyRGBAToRGBCmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; RE_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReCopyRGBAToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = amod[A_VAL(src)]; RE_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } static void __imlib_ReCopyRGBToRGBACmod(DATA32 * src, int srcw, DATA32 * dst, int dstw, int w, int h, ImlibColorModifier * cm) { int src_step = (srcw - w), dst_step = (dstw - w), ww = w; DATA8 *amod = cm->alpha_mapping, *rmod = cm->red_mapping, *gmod = cm->green_mapping, *bmod = cm->blue_mapping; DATA8 am = amod[255]; while (h--) { while (w--) { DATA32 tmp; A_VAL(dst) = am; RE_COPY(rmod[R_VAL(src)], gmod[G_VAL(src)], bmod[B_VAL(src)], dst); src++; dst++; } src += src_step; dst += dst_step; w = ww; } } /*\ Equivalent functions \*/ #define __imlib_CopyRGBToRGB __imlib_CopyRGBToRGBA #define __imlib_BlendRGBToRGB __imlib_CopyRGBToRGB #define __imlib_BlendRGBToRGBA __imlib_CopyRGBToRGBA #define __imlib_mmx_copy_rgb_to_rgb __imlib_mmx_copy_rgb_to_rgba #define __imlib_mmx_blend_rgb_to_rgb __imlib_mmx_copy_rgb_to_rgb #define __imlib_mmx_blend_rgb_to_rgba __imlib_mmx_copy_rgb_to_rgba #define __imlib_amd64_copy_rgb_to_rgb __imlib_amd64_copy_rgb_to_rgba #define __imlib_amd64_blend_rgb_to_rgb __imlib_amd64_copy_rgb_to_rgb #define __imlib_amd64_blend_rgb_to_rgba __imlib_amd64_copy_rgb_to_rgba #define __imlib_CopyRGBToRGBCmod __imlib_CopyRGBAToRGBCmod #define __imlib_mmx_copy_rgb_to_rgb_cmod __imlib_mmx_copy_rgba_to_rgb_cmod #define __imlib_amd64_copy_rgb_to_rgb_cmod __imlib_amd64_copy_rgba_to_rgb_cmod #define __imlib_AddCopyRGBToRGB __imlib_AddCopyRGBAToRGB #define __imlib_AddBlendRGBToRGB __imlib_AddCopyRGBToRGB #define __imlib_AddBlendRGBToRGBA __imlib_AddCopyRGBToRGBA #define __imlib_mmx_add_copy_rgb_to_rgb __imlib_mmx_add_copy_rgba_to_rgb #define __imlib_mmx_add_blend_rgb_to_rgb __imlib_mmx_add_copy_rgb_to_rgb #define __imlib_mmx_add_blend_rgb_to_rgba __imlib_mmx_add_copy_rgb_to_rgba #define __imlib_amd64_add_copy_rgb_to_rgb __imlib_amd64_add_copy_rgba_to_rgb #define __imlib_amd64_add_blend_rgb_to_rgb __imlib_amd64_add_copy_rgb_to_rgb #define __imlib_amd64_add_blend_rgb_to_rgba __imlib_amd64_add_copy_rgb_to_rgba #define __imlib_AddCopyRGBToRGBCmod __imlib_AddCopyRGBAToRGBCmod #define __imlib_mmx_add_copy_rgb_to_rgb_cmod __imlib_mmx_add_copy_rgb_to_rgba_cmod #define __imlib_amd64_add_copy_rgb_to_rgb_cmod __imlib_amd64_add_copy_rgb_to_rgba_cmod #define __imlib_SubCopyRGBToRGB __imlib_SubCopyRGBAToRGB #define __imlib_SubBlendRGBToRGB __imlib_SubCopyRGBToRGB #define __imlib_SubBlendRGBToRGBA __imlib_SubCopyRGBToRGBA #define __imlib_mmx_subtract_copy_rgb_to_rgba __imlib_mmx_subtract_copy_rgba_to_rgba #define __imlib_mmx_subtract_copy_rgb_to_rgb __imlib_mmx_subtract_copy_rgba_to_rgb #define __imlib_mmx_subtract_blend_rgb_to_rgb __imlib_mmx_subtract_copy_rgb_to_rgb #define __imlib_mmx_subtract_blend_rgb_to_rgba __imlib_mmx_subtract_copy_rgb_to_rgba #define __imlib_amd64_subtract_copy_rgb_to_rgb __imlib_amd64_subtract_copy_rgba_to_rgb #define __imlib_amd64_subtract_blend_rgb_to_rgb __imlib_amd64_subtract_copy_rgb_to_rgb #define __imlib_amd64_subtract_blend_rgb_to_rgba __imlib_amd64_subtract_copy_rgb_to_rgba #define __imlib_SubCopyRGBToRGBCmod __imlib_SubCopyRGBAToRGBCmod #define __imlib_mmx_subtract_copy_rgb_to_rgb_cmod __imlib_mmx_subtract_copy_rgb_to_rgba_cmod #define __imlib_amd64_subtract_copy_rgb_to_rgb_cmod __imlib_amd64_subtract_copy_rgb_to_rgba_cmod #define __imlib_ReCopyRGBToRGB __imlib_ReCopyRGBAToRGB #define __imlib_ReBlendRGBToRGB __imlib_ReCopyRGBToRGB #define __imlib_ReBlendRGBToRGBA __imlib_ReCopyRGBToRGBA #define __imlib_mmx_reshade_copy_rgb_to_rgba __imlib_mmx_reshade_copy_rgba_to_rgba #define __imlib_mmx_reshade_copy_rgb_to_rgb __imlib_mmx_reshade_copy_rgba_to_rgb #define __imlib_mmx_reshade_blend_rgb_to_rgb __imlib_mmx_reshade_copy_rgb_to_rgb #define __imlib_mmx_reshade_blend_rgb_to_rgba __imlib_mmx_reshade_copy_rgb_to_rgba #define __imlib_amd64_reshade_copy_rgb_to_rgb __imlib_amd64_reshade_copy_rgba_to_rgb #define __imlib_amd64_reshade_blend_rgb_to_rgb __imlib_amd64_reshade_copy_rgb_to_rgb #define __imlib_amd64_reshade_blend_rgb_to_rgba __imlib_amd64_reshade_copy_rgb_to_rgba #define __imlib_ReCopyRGBToRGBCmod __imlib_ReCopyRGBAToRGBCmod #define __imlib_mmx_reshade_copy_rgb_to_rgb_cmod __imlib_mmx_reshade_copy_rgb_to_rgba_cmod #define __imlib_amd64_reshade_copy_rgb_to_rgb_cmod __imlib_amd64_reshade_copy_rgb_to_rgba_cmod ImlibBlendFunction __imlib_GetBlendFunction(ImlibOp op, char blend, char merge_alpha, char rgb_src, ImlibColorModifier * cm) { /*\ [ mmx ][ operation ][ cmod ][ merge_alpha ][ rgb_src ][ blend ] \ */ static ImlibBlendFunction ibfuncs[][4][2][2][2][2] = { /*\ OP_COPY \ */ {{{{{__imlib_CopyRGBAToRGB, __imlib_BlendRGBAToRGB}, {__imlib_CopyRGBToRGB, __imlib_BlendRGBToRGB}}, {{__imlib_CopyRGBAToRGBA, __imlib_BlendRGBAToRGBA}, {__imlib_CopyRGBToRGBA, __imlib_BlendRGBToRGBA}}}, {{{__imlib_CopyRGBAToRGBCmod, __imlib_BlendRGBAToRGBCmod}, {__imlib_CopyRGBToRGBCmod, __imlib_BlendRGBToRGBCmod}}, {{__imlib_CopyRGBAToRGBACmod, __imlib_BlendRGBAToRGBACmod}, {__imlib_CopyRGBToRGBACmod, __imlib_BlendRGBToRGBACmod}}}}, /*\ OP_ADD \ */ {{{{__imlib_AddCopyRGBAToRGB, __imlib_AddBlendRGBAToRGB}, {__imlib_AddCopyRGBToRGB, __imlib_AddBlendRGBToRGB}}, {{__imlib_AddCopyRGBAToRGBA, __imlib_AddBlendRGBAToRGBA}, {__imlib_AddCopyRGBToRGBA, __imlib_AddBlendRGBToRGBA}}}, {{{__imlib_AddCopyRGBAToRGBCmod, __imlib_AddBlendRGBAToRGBCmod}, {__imlib_AddCopyRGBToRGBCmod, __imlib_AddBlendRGBToRGBCmod}}, {{__imlib_AddCopyRGBAToRGBACmod, __imlib_AddBlendRGBAToRGBACmod}, {__imlib_AddCopyRGBToRGBACmod, __imlib_AddBlendRGBToRGBACmod}}}}, /*\ OP_SUBTRACT \ */ {{{{__imlib_SubCopyRGBAToRGB, __imlib_SubBlendRGBAToRGB}, {__imlib_SubCopyRGBToRGB, __imlib_SubBlendRGBToRGB}}, {{__imlib_SubCopyRGBAToRGBA, __imlib_SubBlendRGBAToRGBA}, {__imlib_SubCopyRGBToRGBA, __imlib_SubBlendRGBToRGBA}}}, {{{__imlib_SubCopyRGBAToRGBCmod, __imlib_SubBlendRGBAToRGBCmod}, {__imlib_SubCopyRGBToRGBCmod, __imlib_SubBlendRGBToRGBCmod}}, {{__imlib_SubCopyRGBAToRGBACmod, __imlib_SubBlendRGBAToRGBACmod}, {__imlib_SubCopyRGBToRGBACmod, __imlib_SubBlendRGBToRGBACmod}}}}, /*\ OP_RESHADE \ */ {{{{__imlib_ReCopyRGBAToRGB, __imlib_ReBlendRGBAToRGB}, {__imlib_ReCopyRGBToRGB, __imlib_ReBlendRGBToRGB}}, {{__imlib_ReCopyRGBAToRGBA, __imlib_ReBlendRGBAToRGBA}, {__imlib_ReCopyRGBToRGBA, __imlib_ReBlendRGBToRGBA}}}, {{{__imlib_ReCopyRGBAToRGBCmod, __imlib_ReBlendRGBAToRGBCmod}, {__imlib_ReCopyRGBToRGBCmod, __imlib_ReBlendRGBToRGBCmod}}, {{__imlib_ReCopyRGBAToRGBACmod, __imlib_ReBlendRGBAToRGBACmod}, {__imlib_ReCopyRGBToRGBACmod, __imlib_ReBlendRGBToRGBACmod}}}}}, #ifdef DO_MMX_ASM /*\ OP_COPY \ */ {{{{{__imlib_mmx_copy_rgba_to_rgb, __imlib_mmx_blend_rgba_to_rgb}, {__imlib_mmx_copy_rgb_to_rgb, __imlib_mmx_blend_rgb_to_rgb}}, {{__imlib_mmx_copy_rgba_to_rgba, __imlib_BlendRGBAToRGBA /*__imlib_mmx_blend_rgba_to_rgba*/ }, {__imlib_mmx_copy_rgb_to_rgba, __imlib_mmx_blend_rgb_to_rgba}}}, {{{__imlib_mmx_copy_rgba_to_rgb_cmod, __imlib_mmx_blend_rgba_to_rgb_cmod}, {__imlib_mmx_copy_rgb_to_rgb_cmod, __imlib_mmx_blend_rgb_to_rgb_cmod}}, {{__imlib_mmx_copy_rgba_to_rgba_cmod, __imlib_BlendRGBAToRGBACmod /*__imlib_mmx_blend_rgba_to_rgba_cmod*/ }, {__imlib_mmx_copy_rgb_to_rgba_cmod, __imlib_BlendRGBToRGBACmod /*__imlib_mmx_blend_rgb_to_rgba_cmod*/ }}}}, /*\ OP_ADD \ */ {{{{__imlib_mmx_add_copy_rgba_to_rgb, __imlib_mmx_add_blend_rgba_to_rgb}, {__imlib_mmx_add_copy_rgb_to_rgb, __imlib_mmx_add_blend_rgb_to_rgb}}, {{__imlib_AddCopyRGBAToRGBA /*__imlib_mmx_add_copy_rgba_to_rgba*/ , __imlib_AddBlendRGBAToRGBA /*__imlib_mmx_add_blend_rgba_to_rgba*/ }, {__imlib_mmx_add_copy_rgb_to_rgba, __imlib_mmx_add_blend_rgb_to_rgba}}}, {{{__imlib_mmx_add_copy_rgba_to_rgb_cmod, __imlib_mmx_add_blend_rgba_to_rgb_cmod}, {__imlib_mmx_add_copy_rgb_to_rgb_cmod, __imlib_mmx_add_blend_rgb_to_rgb_cmod}}, {{__imlib_AddCopyRGBAToRGBACmod /*__imlib_mmx_add_copy_rgba_to_rgba_cmod*/ , __imlib_AddBlendRGBAToRGBACmod /*__imlib_mmx_add_blend_rgba_to_rgba_cmod*/ }, {__imlib_AddCopyRGBToRGBACmod /*__imlib_mmx_add_copy_rgb_to_rgba_cmod*/ , __imlib_AddBlendRGBToRGBACmod /*__imlib_mmx_add_blend_rgb_to_rgba_cmod*/ }}}}, /*\ OP_SUBTRACT \ */ {{{{__imlib_mmx_subtract_copy_rgba_to_rgb, __imlib_mmx_subtract_blend_rgba_to_rgb}, {__imlib_mmx_subtract_copy_rgb_to_rgb, __imlib_mmx_subtract_blend_rgb_to_rgb}}, {{__imlib_SubCopyRGBAToRGBA /*__imlib_mmx_subtract_copy_rgba_to_rgba*/ , __imlib_SubBlendRGBAToRGBA /*__imlib_mmx_subtract_blend_rgba_to_rgba*/ }, {__imlib_mmx_subtract_copy_rgb_to_rgba, __imlib_mmx_subtract_blend_rgb_to_rgba}}}, {{{__imlib_mmx_subtract_copy_rgba_to_rgb_cmod, __imlib_mmx_subtract_blend_rgba_to_rgb_cmod}, {__imlib_mmx_subtract_copy_rgb_to_rgb_cmod, __imlib_mmx_subtract_blend_rgb_to_rgb_cmod}}, {{__imlib_SubCopyRGBAToRGBACmod /*__imlib_mmx_subtract_copy_rgba_to_rgba_cmod*/ , __imlib_SubBlendRGBAToRGBACmod /*__imlib_mmx_subtract_blend_rgba_to_rgba_cmod*/ }, {__imlib_SubCopyRGBToRGBACmod /*__imlib_mmx_subtract_copy_rgb_to_rgba_cmod*/ , __imlib_SubBlendRGBToRGBACmod /*__imlib_mmx_subtract_blend_rgb_to_rgba_cmod*/ }}}}, /*\ OP_RESHADE \ */ {{{{__imlib_mmx_reshade_copy_rgba_to_rgb, __imlib_mmx_reshade_blend_rgba_to_rgb}, {__imlib_mmx_reshade_copy_rgb_to_rgb, __imlib_mmx_reshade_blend_rgb_to_rgb}}, {{__imlib_ReCopyRGBAToRGBA /*__imlib_mmx_reshade_copy_rgba_to_rgba*/ , __imlib_ReBlendRGBAToRGBA /*__imlib_mmx_reshade_blend_rgba_to_rgba*/ }, {__imlib_mmx_reshade_copy_rgb_to_rgba, __imlib_mmx_reshade_blend_rgb_to_rgba}}}, {{{__imlib_mmx_reshade_copy_rgba_to_rgb_cmod, __imlib_mmx_reshade_blend_rgba_to_rgb_cmod}, {__imlib_mmx_reshade_copy_rgb_to_rgb_cmod, __imlib_mmx_reshade_blend_rgb_to_rgb_cmod}}, {{__imlib_ReCopyRGBAToRGBACmod /*__imlib_mmx_reshade_copy_rgba_to_rgba_cmod*/ , __imlib_ReBlendRGBAToRGBACmod /*__imlib_mmx_reshade_blend_rgba_to_rgba_cmod*/ }, {__imlib_ReCopyRGBToRGBACmod /*__imlib_mmx_reshade_copy_rgb_to_rgba_cmod*/ , __imlib_ReBlendRGBToRGBACmod /*__imlib_mmx_reshade_blend_rgb_to_rgba_cmod*/ }}}}}, #elif DO_AMD64_ASM /*\ OP_COPY \ */ {{{{{__imlib_amd64_copy_rgba_to_rgb, __imlib_amd64_blend_rgba_to_rgb}, {__imlib_amd64_copy_rgb_to_rgb, __imlib_amd64_blend_rgb_to_rgb}}, {{__imlib_amd64_copy_rgba_to_rgba, __imlib_amd64_blend_rgba_to_rgba}, {__imlib_amd64_copy_rgb_to_rgba, __imlib_amd64_blend_rgb_to_rgba}}}, {{{__imlib_amd64_copy_rgba_to_rgb_cmod, __imlib_amd64_blend_rgba_to_rgb_cmod}, {__imlib_amd64_copy_rgb_to_rgb_cmod, __imlib_amd64_blend_rgb_to_rgb_cmod}}, {{__imlib_amd64_copy_rgba_to_rgba_cmod, __imlib_amd64_blend_rgba_to_rgba_cmod}, {__imlib_amd64_copy_rgb_to_rgba_cmod, __imlib_amd64_blend_rgb_to_rgba_cmod}}}}, /*\ OP_ADD \ */ {{{{__imlib_amd64_add_copy_rgba_to_rgb, __imlib_amd64_add_blend_rgba_to_rgb}, {__imlib_amd64_add_copy_rgb_to_rgb, __imlib_amd64_add_blend_rgb_to_rgb}}, {{__imlib_amd64_add_copy_rgba_to_rgba, __imlib_amd64_add_blend_rgba_to_rgba}, {__imlib_amd64_add_copy_rgb_to_rgba, __imlib_amd64_add_blend_rgb_to_rgba}}}, {{{__imlib_amd64_add_copy_rgba_to_rgb_cmod, __imlib_amd64_add_blend_rgba_to_rgb_cmod}, {__imlib_amd64_add_copy_rgb_to_rgb_cmod, __imlib_amd64_add_blend_rgb_to_rgb_cmod}}, {{__imlib_amd64_add_copy_rgba_to_rgba_cmod, __imlib_amd64_add_blend_rgba_to_rgba_cmod}, {__imlib_amd64_add_copy_rgb_to_rgba_cmod, __imlib_amd64_add_blend_rgb_to_rgba_cmod}}}}, /*\ OP_SUBTRACT \ */ {{{{__imlib_amd64_subtract_copy_rgba_to_rgb, __imlib_amd64_subtract_blend_rgba_to_rgb}, {__imlib_amd64_subtract_copy_rgb_to_rgb, __imlib_amd64_subtract_blend_rgb_to_rgb}}, {{__imlib_amd64_subtract_copy_rgba_to_rgba, __imlib_amd64_subtract_blend_rgba_to_rgba}, {__imlib_amd64_subtract_copy_rgb_to_rgba, __imlib_amd64_subtract_blend_rgb_to_rgba}}}, {{{__imlib_amd64_subtract_copy_rgba_to_rgb_cmod, __imlib_amd64_subtract_blend_rgba_to_rgb_cmod}, {__imlib_amd64_subtract_copy_rgb_to_rgb_cmod, __imlib_amd64_subtract_blend_rgb_to_rgb_cmod}}, {{__imlib_amd64_subtract_copy_rgba_to_rgba_cmod, __imlib_amd64_subtract_blend_rgba_to_rgba_cmod}, {__imlib_amd64_subtract_copy_rgb_to_rgba_cmod, __imlib_amd64_subtract_blend_rgb_to_rgba_cmod}}}}, /*\ OP_RESHADE \ */ {{{{__imlib_amd64_reshade_copy_rgba_to_rgb, __imlib_amd64_reshade_blend_rgba_to_rgb}, {__imlib_amd64_reshade_copy_rgb_to_rgb, __imlib_amd64_reshade_blend_rgb_to_rgb}}, {{__imlib_amd64_reshade_copy_rgba_to_rgba, __imlib_amd64_reshade_blend_rgba_to_rgba}, {__imlib_amd64_reshade_copy_rgb_to_rgba, __imlib_amd64_reshade_blend_rgb_to_rgba}}}, {{{__imlib_amd64_reshade_copy_rgba_to_rgb_cmod, __imlib_amd64_reshade_blend_rgba_to_rgb_cmod}, {__imlib_amd64_reshade_copy_rgb_to_rgb_cmod, __imlib_amd64_reshade_blend_rgb_to_rgb_cmod}}, {{__imlib_amd64_reshade_copy_rgba_to_rgba_cmod, __imlib_amd64_reshade_blend_rgba_to_rgba_cmod}, {__imlib_amd64_reshade_copy_rgb_to_rgba_cmod, __imlib_amd64_reshade_blend_rgb_to_rgba_cmod}}}}}, #endif }; int opi = (op == OP_COPY) ? 0 : (op == OP_ADD) ? 1 : (op == OP_SUBTRACT) ? 2 : (op == OP_RESHADE) ? 3 : -1; int do_mmx = 0; if (opi == -1) return NULL; #ifdef DO_MMX_ASM do_mmx = ! !(__imlib_get_cpuid() & CPUID_MMX); #elif DO_AMD64_ASM do_mmx = 1; // instruction set is always present #endif if (cm && rgb_src && (A_CMOD(cm, 0xff) == 0xff)) blend = 0; if (blend && cm && rgb_src && (A_CMOD(cm, 0xff) == 0)) return NULL; return ibfuncs[! !do_mmx][opi][! !cm][! !merge_alpha][! !rgb_src][! !blend]; } void __imlib_BlendRGBAToData(DATA32 * src, int src_w, int src_h, DATA32 * dst, int dst_w, int dst_h, int sx, int sy, int dx, int dy, int w, int h, char blend, char merge_alpha, ImlibColorModifier * cm, ImlibOp op, char rgb_src) { ImlibBlendFunction blender; if (sx < 0) { w += sx; dx -= sx; sx = 0; } if (sy < 0) { h += sy; dy -= sy; sy = 0; } if (dx < 0) { w += dx; sx -= dx; dx = 0; } if (dy < 0) { h += dy; sy -= dy; dy = 0; } if ((w <= 0) || (h <= 0)) return; if ((sx + w) > src_w) w = src_w - sx; if ((sy + h) > src_h) h = src_h - sy; if ((dx + w) > dst_w) w = dst_w - dx; if ((dy + h) > dst_h) h = dst_h - dy; if ((w <= 0) || (h <= 0)) return; __imlib_build_pow_lut(); blender = __imlib_GetBlendFunction(op, blend, merge_alpha, rgb_src, cm); if (blender) blender(src + (sy * src_w) + sx, src_w, dst + (dy * dst_w) + dx, dst_w, w, h, cm); } #define LINESIZE 16 void __imlib_BlendImageToImage(ImlibImage * im_src, ImlibImage * im_dst, char aa, char blend, char merge_alpha, int ssx, int ssy, int ssw, int ssh, int ddx, int ddy, int ddw, int ddh, ImlibColorModifier * cm, ImlibOp op, int clx, int cly, int clw, int clh) { char rgb_src = 0; if ((!(im_src->data)) && (im_src->loader) && (im_src->loader->load)) im_src->loader->load(im_src, NULL, 0, 1); if ((!(im_dst->data)) && (im_dst->loader) && (im_dst->loader->load)) im_dst->loader->load(im_dst, NULL, 0, 1); if (!im_src->data) return; if (!im_dst->data) return; if ((ssw == ddw) && (ssh == ddh)) { if (!IMAGE_HAS_ALPHA(im_dst)) merge_alpha = 0; if (!IMAGE_HAS_ALPHA(im_src)) { rgb_src = 1; if (merge_alpha) blend = 1; } if (clw) { int px, py; px = ddx; py = ddy; CLIP_TO(ddx, ddy, ddw, ddh, clx, cly, clw, clh); px = ddx - px; py = ddy - py; ssx += px; ssy += py; if ((ssw < 1) || (ssh < 1)) return; if ((ddw < 1) || (ddh < 1)) return; } __imlib_BlendRGBAToData(im_src->data, im_src->w, im_src->h, im_dst->data, im_dst->w, im_dst->h, ssx, ssy, ddx, ddy, ddw, ddh, blend, merge_alpha, cm, op, rgb_src); } else { ImlibScaleInfo *scaleinfo = NULL; DATA32 *buf = NULL; int sx, sy, sw, sh, dx, dy, dw, dh, dxx, dyy, y2, x2; int psx, psy, psw, psh; int y, h, hh; #ifdef DO_MMX_ASM int do_mmx; #endif sx = ssx; sy = ssy; sw = ssw; sh = ssh; dx = ddx; dy = ddy; dw = abs(ddw); dh = abs(ddh); /* don't do anything if we have a 0 width or height image to render */ /* if the input rect size < 0 don't render either */ if ((dw <= 0) || (dh <= 0) || (sw <= 0) || (sh <= 0)) return; /* clip the source rect to be within the actual image */ psx = sx; psy = sy; psw = sw; psh = sh; CLIP(sx, sy, sw, sh, 0, 0, im_src->w, im_src->h); if (psx != sx) dx += ((sx - psx) * abs(ddw)) / ssw; if (psy != sy) dy += ((sy - psy) * abs(ddh)) / ssh; if (psw != sw) dw = (dw * sw) / psw; if (psh != sh) dh = (dh * sh) / psh; if ((dw <= 0) || (dh <= 0) || (sw <= 0) || (sh <= 0)) { return; } /* clip output coords to clipped input coords */ psx = dx; psy = dy; psw = dw; psh = dh; x2 = sx; y2 = sy; CLIP(dx, dy, dw, dh, 0, 0, im_dst->w, im_dst->h); if ((dw <= 0) || (dh <= 0) || (sw <= 0) || (sh <= 0)) return; if (clw) { CLIP_TO(dx, dy, dw, dh, clx, cly, clw, clh); if ((dw < 1) || (dh < 1)) return; } if (psx != dx) sx += ((dx - psx) * ssw) / abs(ddw); if (psy != dy) sy += ((dy - psy) * ssh) / abs(ddh); if (psw != dw) sw = (sw * dw) / psw; if (psh != dh) sh = (sh * dh) / psh; dxx = dx - psx; dyy = dy - psy; dxx += (x2 * abs(ddw)) / ssw; dyy += (y2 * abs(ddh)) / ssh; if ((dw > 0) && (sw == 0)) sw = 1; if ((dh > 0) && (sh == 0)) sh = 1; /* do a second check to see if we now have invalid coords */ /* don't do anything if we have a 0 width or height image to render */ /* if the input rect size < 0 don't render either */ if ((dw <= 0) || (dh <= 0) || (sw <= 0) || (sh <= 0)) { return; } scaleinfo = __imlib_CalcScaleInfo(im_src, ssw, ssh, ddw, ddh, aa); if (!scaleinfo) return; /* if we are scaling the image at all make a scaling buffer */ /* allocate a buffer to render scaled RGBA data into */ buf = malloc(dw * LINESIZE * sizeof(DATA32)); if (!buf) { __imlib_FreeScaleInfo(scaleinfo); return; } /* setup h */ h = dh; if (!IMAGE_HAS_ALPHA(im_dst)) merge_alpha = 0; if (!IMAGE_HAS_ALPHA(im_src)) { rgb_src = 1; if (merge_alpha) blend = 1; } /* scale in LINESIZE Y chunks and convert to depth */ #ifdef DO_MMX_ASM do_mmx = __imlib_get_cpuid() & CPUID_MMX; #endif for (y = 0; y < dh; y += LINESIZE) { hh = LINESIZE; if (h < LINESIZE) hh = h; /* scale the imagedata for this LINESIZE lines chunk of image */ if (aa) { #ifdef DO_MMX_ASM if (do_mmx) __imlib_Scale_mmx_AARGBA(scaleinfo, buf, dxx, dyy + y, 0, 0, dw, hh, dw, im_src->w); else #endif if (IMAGE_HAS_ALPHA(im_src)) __imlib_ScaleAARGBA(scaleinfo, buf, dxx, dyy + y, 0, 0, dw, hh, dw, im_src->w); else __imlib_ScaleAARGB(scaleinfo, buf, dxx, dyy + y, 0, 0, dw, hh, dw, im_src->w); } else __imlib_ScaleSampleRGBA(scaleinfo, buf, dxx, dyy + y, 0, 0, dw, hh, dw); __imlib_BlendRGBAToData(buf, dw, hh, im_dst->data, im_dst->w, im_dst->h, 0, 0, dx, dy + y, dw, dh, blend, merge_alpha, cm, op, rgb_src); h -= LINESIZE; } /* free up our buffers and point tables */ free(buf); __imlib_FreeScaleInfo(scaleinfo); } } imlib2-1.4.6/src/lib/span.c0000664000175000017500000007260612255265135012306 00000000000000#include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include "span.h" #define ADD_COPY(r, g, b, dest) \ do { \ ADD_COLOR(R_VAL(dest), r, R_VAL(dest)); \ ADD_COLOR(G_VAL(dest), g, G_VAL(dest)); \ ADD_COLOR(B_VAL(dest), b, B_VAL(dest)); \ } while (0) #define SUB_COPY(r, g, b, dest) \ do { \ SUB_COLOR(R_VAL(dest), r, R_VAL(dest)); \ SUB_COLOR(G_VAL(dest), g, G_VAL(dest)); \ SUB_COLOR(B_VAL(dest), b, B_VAL(dest)); \ } while (0) #define RE_COPY(r, g, b, dest) \ do { \ RESHADE_COLOR(R_VAL(dest), r, R_VAL(dest)); \ RESHADE_COLOR(G_VAL(dest), g, G_VAL(dest)); \ RESHADE_COLOR(B_VAL(dest), b, B_VAL(dest)); \ } while (0) #define MULT(na, a0, a1, tmp) \ do { \ tmp = ((a0) * (a1)) + 0x80; \ na = (tmp + (tmp >> 8)) >> 8; \ } while (0) extern DATA8 pow_lut[256][256]; /* point drawing functions */ /* COPY OPS */ static void __imlib_CopyToRGBA(DATA32 color, DATA32 * dst) { *dst = color; } static void __imlib_CopyToRGB(DATA32 color, DATA32 * dst) { *dst = (*dst & 0xff000000) | (color & 0x00ffffff); } static void __imlib_BlendToRGB(DATA32 color, DATA32 * dst) { DATA32 tmp; BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); } static void __imlib_BlendToRGBA(DATA32 color, DATA32 * dst) { DATA32 tmp; DATA8 a; a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); } /* ADD OPS */ static void __imlib_AddCopyToRGBA(DATA32 color, DATA32 * dst) { DATA32 tmp; A_VAL(dst) = A_VAL(&color); ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } static void __imlib_AddCopyToRGB(DATA32 color, DATA32 * dst) { DATA32 tmp; ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } static void __imlib_AddBlendToRGB(DATA32 color, DATA32 * dst) { DATA32 tmp; BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); } static void __imlib_AddBlendToRGBA(DATA32 color, DATA32 * dst) { DATA32 tmp; DATA8 a; a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); } /* SUBTRACT OPS */ static void __imlib_SubCopyToRGBA(DATA32 color, DATA32 * dst) { DATA32 tmp; A_VAL(dst) = A_VAL(&color); SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } static void __imlib_SubCopyToRGB(DATA32 color, DATA32 * dst) { DATA32 tmp; SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } static void __imlib_SubBlendToRGB(DATA32 color, DATA32 * dst) { DATA32 tmp; BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); } static void __imlib_SubBlendToRGBA(DATA32 color, DATA32 * dst) { DATA32 tmp; DATA8 a; a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); } /* RESHADE OPS */ static void __imlib_ReCopyToRGBA(DATA32 color, DATA32 * dst) { DATA32 tmp; A_VAL(dst) = A_VAL(&color); RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } static void __imlib_ReCopyToRGB(DATA32 color, DATA32 * dst) { DATA32 tmp; RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } static void __imlib_ReBlendToRGB(DATA32 color, DATA32 * dst) { DATA32 tmp; BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); } static void __imlib_ReBlendToRGBA(DATA32 color, DATA32 * dst) { DATA32 tmp; DATA8 a; a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); } /* span drawing functions* */ /* COPY OPS */ static void __imlib_CopySpanToRGBA(DATA32 color, DATA32 * dst, int len) { while (len--) { *dst = color; dst++; } } static void __imlib_CopySpanToRGB(DATA32 color, DATA32 * dst, int len) { while (len--) { *dst = (*dst & 0xff000000) | (color & 0x00ffffff); dst++; } } static void __imlib_BlendSpanToRGB(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); dst++; } } static void __imlib_BlendSpanToRGBA(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; DATA8 a; a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); dst++; } } /* ADD OPS */ static void __imlib_AddCopySpanToRGBA(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; A_VAL(dst) = A_VAL(&color); ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); dst++; } } static void __imlib_AddCopySpanToRGB(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); dst++; } } static void __imlib_AddBlendSpanToRGB(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); dst++; } } static void __imlib_AddBlendSpanToRGBA(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; DATA8 a; a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); dst++; } } /* SUBTRACT OPS */ static void __imlib_SubCopySpanToRGBA(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; A_VAL(dst) = A_VAL(&color); SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); dst++; } } static void __imlib_SubCopySpanToRGB(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); dst++; } } static void __imlib_SubBlendSpanToRGB(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); dst++; } } static void __imlib_SubBlendSpanToRGBA(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; DATA8 a; a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); dst++; } } /* RESHADE OPS */ static void __imlib_ReCopySpanToRGBA(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; A_VAL(dst) = A_VAL(&color); RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); dst++; } } static void __imlib_ReCopySpanToRGB(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); dst++; } } static void __imlib_ReBlendSpanToRGB(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); dst++; } } static void __imlib_ReBlendSpanToRGBA(DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; DATA8 a; a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); dst++; } } /* shaped span drawing functions* */ /* COPY OPS */ static void __imlib_CopyShapedSpanToRGBA(DATA8 * src, DATA32 color, DATA32 * dst, int len) { DATA32 col = color; if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; switch (*src) { case 0: break; case 255: { *dst = color; break; } default: { MULT(A_VAL(&col), *src, A_VAL(&color), tmp); *dst = col; break; } } src++; dst++; } return; } while (len--) { switch (*src) { case 0: break; case 255: { *dst = color; break; } default: { A_VAL(&col) = *src; *dst = col; break; } } src++; dst++; } } static void __imlib_CopyShapedSpanToRGB(DATA8 * src, DATA32 color, DATA32 * dst, int len) { while (len--) { if (*src) *dst = (*dst & 0xff000000) | (color & 0x00ffffff); src++; dst++; } } static void __imlib_BlendShapedSpanToRGB(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; DATA8 a; switch (*src) { case 0: break; case 255: { BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); break; } default: { MULT(a, *src, A_VAL(&color), tmp); BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; switch (*src) { case 0: break; case 255: { *dst = (*dst & 0xff000000) | (color & 0x00ffffff); break; } default: { BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), *src, dst); break; } } src++; dst++; } } static void __imlib_BlendShapedSpanToRGBA(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; DATA8 a, aa; switch (*src) { case 0: break; case 255: { a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } default: { MULT(aa, *src, A_VAL(&color), tmp); a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; DATA8 a; switch (*src) { case 0: break; case 255: { *dst = color; break; } default: { a = pow_lut[*src][A_VAL(dst)]; BLEND_COLOR(*src, A_VAL(dst), 255, A_VAL(dst)); BLEND(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } } /* ADD OPS */ static void __imlib_AddCopyShapedSpanToRGBA(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; switch (*src) { case 0: break; case 255: { A_VAL(dst) = A_VAL(&color); ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } default: { MULT(A_VAL(dst), *src, A_VAL(&color), tmp); ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; if (*src) { A_VAL(dst) = *src; ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } src++; dst++; } } static void __imlib_AddCopyShapedSpanToRGB(DATA8 * src, DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; if (*src) { ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } src++; dst++; } } static void __imlib_AddBlendShapedSpanToRGB(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; DATA8 a; switch (*src) { case 0: break; case 255: { BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); break; } default: { MULT(a, *src, A_VAL(&color), tmp); BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; switch (*src) { case 0: break; case 255: { ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } default: { BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), *src, dst); break; } } src++; dst++; } } static void __imlib_AddBlendShapedSpanToRGBA(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; DATA8 a, aa; switch (*src) { case 0: break; case 255: { a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } default: { MULT(aa, *src, A_VAL(&color), tmp); a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; DATA8 a; switch (*src) { case 0: break; case 255: { A_VAL(dst) = 255; ADD_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } default: { a = pow_lut[*src][A_VAL(dst)]; BLEND_COLOR(*src, A_VAL(dst), 255, A_VAL(dst)); BLEND_ADD(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } } /* SUBTRACT OPS */ static void __imlib_SubCopyShapedSpanToRGBA(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; switch (*src) { case 0: break; case 255: { A_VAL(dst) = A_VAL(&color); SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } default: { MULT(A_VAL(dst), *src, A_VAL(&color), tmp); SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; if (*src) { A_VAL(dst) = *src; SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } src++; dst++; } } static void __imlib_SubCopyShapedSpanToRGB(DATA8 * src, DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; if (*src) { SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } src++; dst++; } } static void __imlib_SubBlendShapedSpanToRGB(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; DATA8 a; switch (*src) { case 0: break; case 255: { BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); break; } default: { MULT(a, *src, A_VAL(&color), tmp); BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; switch (*src) { case 0: break; case 255: { SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } default: { BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), *src, dst); break; } } src++; dst++; } } static void __imlib_SubBlendShapedSpanToRGBA(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; DATA8 a, aa; switch (*src) { case 0: break; case 255: { a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } default: { MULT(aa, *src, A_VAL(&color), tmp); a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; DATA8 a; switch (*src) { case 0: break; case 255: { A_VAL(dst) = 255; SUB_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } default: { a = pow_lut[*src][A_VAL(dst)]; BLEND_COLOR(*src, A_VAL(dst), 255, A_VAL(dst)); BLEND_SUB(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } } /* RESHADE OPS */ static void __imlib_ReCopyShapedSpanToRGBA(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; switch (*src) { case 0: break; case 255: { A_VAL(dst) = A_VAL(&color); RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } default: { MULT(A_VAL(dst), *src, A_VAL(&color), tmp); RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; if (*src) { A_VAL(dst) = *src; RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } src++; dst++; } } static void __imlib_ReCopyShapedSpanToRGB(DATA8 * src, DATA32 color, DATA32 * dst, int len) { while (len--) { DATA32 tmp; if (*src) { RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); } src++; dst++; } } static void __imlib_ReBlendShapedSpanToRGB(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; DATA8 a; switch (*src) { case 0: break; case 255: { BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), A_VAL(&color), dst); break; } default: { MULT(a, *src, A_VAL(&color), tmp); BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; switch (*src) { case 0: break; case 255: { RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } default: { BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), *src, dst); break; } } src++; dst++; } } static void __imlib_ReBlendShapedSpanToRGBA(DATA8 * src, DATA32 color, DATA32 * dst, int len) { if (A_VAL(&color) < 255) { while (len--) { DATA32 tmp; DATA8 a, aa; switch (*src) { case 0: break; case 255: { a = pow_lut[A_VAL(&color)][A_VAL(dst)]; BLEND_COLOR(A_VAL(&color), A_VAL(dst), 255, A_VAL(dst)); BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } default: { MULT(aa, *src, A_VAL(&color), tmp); a = pow_lut[aa][A_VAL(dst)]; BLEND_COLOR(aa, A_VAL(dst), 255, A_VAL(dst)); BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } return; } while (len--) { DATA32 tmp; DATA8 a; switch (*src) { case 0: break; case 255: { A_VAL(dst) = 255; RE_COPY(R_VAL(&color), G_VAL(&color), B_VAL(&color), dst); break; } default: { a = pow_lut[*src][A_VAL(dst)]; BLEND_COLOR(*src, A_VAL(dst), 255, A_VAL(dst)); BLEND_RE(R_VAL(&color), G_VAL(&color), B_VAL(&color), a, dst); break; } } src++; dst++; } } ImlibPointDrawFunction __imlib_GetPointDrawFunction(ImlibOp op, char dst_alpha, char blend) { /* [ operation ][ dst_alpha ][ blend ] */ static ImlibPointDrawFunction ptfuncs[4][2][2] = /* OP_COPY */ { {{__imlib_CopyToRGB, __imlib_BlendToRGB}, {__imlib_CopyToRGBA, __imlib_BlendToRGBA}}, /* OP_ADD */ {{__imlib_AddCopyToRGB, __imlib_AddBlendToRGB}, {__imlib_AddCopyToRGBA, __imlib_AddBlendToRGBA}}, /* OP_SUBTRACT */ {{__imlib_SubCopyToRGB, __imlib_SubBlendToRGB}, {__imlib_SubCopyToRGBA, __imlib_SubBlendToRGBA}}, /* OP_RESHADE */ {{__imlib_ReCopyToRGB, __imlib_ReBlendToRGB}, {__imlib_ReCopyToRGBA, __imlib_ReBlendToRGBA}}, }; int opi = (op == OP_COPY) ? 0 : (op == OP_ADD) ? 1 : (op == OP_SUBTRACT) ? 2 : (op == OP_RESHADE) ? 3 : -1; if (opi == -1) return NULL; return ptfuncs[opi][! !dst_alpha][! !blend]; } ImlibSpanDrawFunction __imlib_GetSpanDrawFunction(ImlibOp op, char dst_alpha, char blend) { static ImlibSpanDrawFunction spanfuncs[4][2][2] = /* OP_COPY */ { {{__imlib_CopySpanToRGB, __imlib_BlendSpanToRGB}, {__imlib_CopySpanToRGBA, __imlib_BlendSpanToRGBA}}, /* OP_ADD */ {{__imlib_AddCopySpanToRGB, __imlib_AddBlendSpanToRGB}, {__imlib_AddCopySpanToRGBA, __imlib_AddBlendSpanToRGBA}}, /* OP_SUBTRACT */ {{__imlib_SubCopySpanToRGB, __imlib_SubBlendSpanToRGB}, {__imlib_SubCopySpanToRGBA, __imlib_SubBlendSpanToRGBA}}, /* OP_RESHADE */ {{__imlib_ReCopySpanToRGB, __imlib_ReBlendSpanToRGB}, {__imlib_ReCopySpanToRGBA, __imlib_ReBlendSpanToRGBA}}, }; int opi = (op == OP_COPY) ? 0 : (op == OP_ADD) ? 1 : (op == OP_SUBTRACT) ? 2 : (op == OP_RESHADE) ? 3 : -1; if (opi == -1) return NULL; return spanfuncs[opi][! !dst_alpha][! !blend]; } ImlibShapedSpanDrawFunction __imlib_GetShapedSpanDrawFunction(ImlibOp op, char dst_alpha, char blend) { static ImlibShapedSpanDrawFunction shapedspanfuncs[4][2][2] = /* OP_COPY */ { {{__imlib_CopyShapedSpanToRGB, __imlib_BlendShapedSpanToRGB}, {__imlib_CopyShapedSpanToRGBA, __imlib_BlendShapedSpanToRGBA}}, /* OP_ADD */ {{__imlib_AddCopyShapedSpanToRGB, __imlib_AddBlendShapedSpanToRGB}, {__imlib_AddCopyShapedSpanToRGBA, __imlib_AddBlendShapedSpanToRGBA}}, /* OP_SUBTRACT */ {{__imlib_SubCopyShapedSpanToRGB, __imlib_SubBlendShapedSpanToRGB}, {__imlib_SubCopyShapedSpanToRGBA, __imlib_SubBlendShapedSpanToRGBA}}, /* OP_RESHADE */ {{__imlib_ReCopyShapedSpanToRGB, __imlib_ReBlendShapedSpanToRGB}, {__imlib_ReCopyShapedSpanToRGBA, __imlib_ReBlendShapedSpanToRGBA}}, }; int opi = (op == OP_COPY) ? 0 : (op == OP_ADD) ? 1 : (op == OP_SUBTRACT) ? 2 : (op == OP_RESHADE) ? 3 : -1; if (opi == -1) return NULL; return shapedspanfuncs[opi][! !dst_alpha][! !blend]; } imlib2-1.4.6/src/lib/draw.h0000664000175000017500000000132012255265113012264 00000000000000#ifndef __DRAW #define __DRAW 1 __hidden char __imlib_CreatePixmapsForImage(Display * d, Drawable w, Visual * v, int depth, Colormap cm, ImlibImage * im, Pixmap * p, Mask * m, int sx, int sy, int sw, int sh, int dw, int dh, char anitalias, char hiq, char dither_mask, int mat, ImlibColorModifier * cmod); #endif imlib2-1.4.6/src/lib/grab.h0000664000175000017500000000155012255265113012247 00000000000000#ifndef __GRAB #define __GRAB 1 __hidden char __imlib_GrabDrawableToRGBA(DATA32 * data, int ox, int oy, int ow, int oh, Display * d, Drawable p, Pixmap m, Visual * v, Colormap cm, int depth, int x, int y, int w, int h, char *domask, char grab); __hidden void __imlib_GrabXImageToRGBA(DATA32 * data, int ox, int oy, int ow, int oh, Display * d, XImage * xim, XImage * mxim, Visual * v, int depth, int x, int y, int w, int h, char grab); #endif imlib2-1.4.6/src/lib/context.h0000664000175000017500000000227412255265113013024 00000000000000#ifndef __CONTEXT #define __CONTEXT 1 typedef struct _context Context; struct _context { int last_use; Display *display; Visual *visual; Colormap colormap; int depth; Context *next; DATA8 *palette; DATA8 palette_type; void *r_dither; void *g_dither; void *b_dither; }; __hidden void __imlib_SetMaxContexts(int num); __hidden int __imlib_GetMaxContexts(void); __hidden void __imlib_FlushContexts(void); __hidden void __imlib_FreeContextForDisplay(Display * d); __hidden void __imlib_FreeContextForColormap(Display * d, Colormap cm); __hidden void __imlib_FreeContextForVisual(Display * d, Visual * v); __hidden Context *__imlib_FindContext(Display * d, Visual * v, Colormap c, int depth); __hidden Context *__imlib_NewContext(Display * d, Visual * v, Colormap c, int depth); __hidden Context *__imlib_GetContext(Display * d, Visual * v, Colormap c, int depth); #endif imlib2-1.4.6/src/lib/colormod.h0000664000175000017500000000436312255265030013155 00000000000000#ifndef __COLORMOD #define __COLORMOD 1 #include "common.h" #include #include #include #include #include #include #include #include "image.h" typedef struct _imlib_color_modifier ImlibColorModifier; struct _imlib_color_modifier { DATA8 red_mapping[256]; DATA8 green_mapping[256]; DATA8 blue_mapping[256]; DATA8 alpha_mapping[256]; DATABIG modification_count; }; #define CMOD_APPLY_RGB(cm, r, g, b) \ (r) = (cm)->red_mapping[(int)(r)]; \ (g) = (cm)->green_mapping[(int)(g)]; \ (b) = (cm)->blue_mapping[(int)(b)]; #define CMOD_APPLY_RGBA(cm, r, g, b, a) \ (r) = (cm)->red_mapping[(int)(r)]; \ (g) = (cm)->green_mapping[(int)(g)]; \ (b) = (cm)->blue_mapping[(int)(b)]; \ (a) = (cm)->alpha_mapping[(int)(a)]; #define CMOD_APPLY_R(cm, r) \ (r) = (cm)->red_mapping[(int)(r)]; #define CMOD_APPLY_G(cm, g) \ (g) = (cm)->green_mapping[(int)(g)]; #define CMOD_APPLY_B(cm, b) \ (b) = (cm)->blue_mapping[(int)(b)]; #define CMOD_APPLY_A(cm, a) \ (a) = (cm)->alpha_mapping[(int)(a)]; #define R_CMOD(cm, r) \ (cm)->red_mapping[(int)(r)] #define G_CMOD(cm, g) \ (cm)->green_mapping[(int)(g)] #define B_CMOD(cm, b) \ (cm)->blue_mapping[(int)(b)] #define A_CMOD(cm, a) \ (cm)->alpha_mapping[(int)(a)] __hidden ImlibColorModifier * __imlib_CreateCmod(void); __hidden void __imlib_FreeCmod(ImlibColorModifier *cm); __hidden void __imlib_CmodChanged(ImlibColorModifier *cm); __hidden void __imlib_CmodSetTables(ImlibColorModifier *cm, DATA8 *r, DATA8 *g, DATA8 *b, DATA8 *a); __hidden void __imlib_CmodReset(ImlibColorModifier *cm); __hidden void __imlib_DataCmodApply(DATA32 *data, int w, int h, int jump, ImlibImageFlags *fl, ImlibColorModifier *cm); __hidden void __imlib_CmodGetTables(ImlibColorModifier *cm, DATA8 *r, DATA8 *g, DATA8 *b, DATA8 *a); __hidden void __imlib_CmodModBrightness(ImlibColorModifier *cm, double v); __hidden void __imlib_CmodModContrast(ImlibColorModifier *cm, double v); __hidden void __imlib_CmodModGamma(ImlibColorModifier *cm, double v); #endif imlib2-1.4.6/src/lib/Makefile.in0000664000175000017500000007033012255306302013226 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/lib DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp $(include_HEADERS) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am__DEPENDENCIES_3 = amd64_blend.lo amd64_blend_cmod.lo am__DEPENDENCIES_4 = $(am__DEPENDENCIES_3) am__DEPENDENCIES_5 = asm_blend.lo asm_blend_cmod.lo asm_rgba.lo \ asm_rotate.lo asm_scale.lo am__DEPENDENCIES_6 = $(am__DEPENDENCIES_5) am_libImlib2_la_OBJECTS = api.lo blend.lo color.lo color_helpers.lo \ colormod.lo context.lo draw.lo dynamic_filters.lo ellipse.lo \ file.lo filter.lo font_draw.lo font_load.lo font_main.lo \ font_query.lo format.lo grab.lo grad.lo image.lo line.lo \ polygon.lo rectangle.lo rend.lo rgba.lo rgbadraw.lo rotate.lo \ scale.lo script.lo span.lo updates.lo ximage.lo am__EXTRA_libImlib2_la_SOURCES_DIST = amd64_blend.S amd64_blend_cmod.S \ asm_blend.S asm_blend_cmod.S asm_rgba.S asm_rotate.S \ asm_scale.S libImlib2_la_OBJECTS = $(am_libImlib2_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libImlib2_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libImlib2_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) LTCPPASCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CCASFLAGS) $(CCASFLAGS) AM_V_CPPAS = $(am__v_CPPAS_@AM_V@) am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@) am__v_CPPAS_0 = @echo " CPPAS " $@; am__v_CPPAS_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libImlib2_la_SOURCES) $(EXTRA_libImlib2_la_SOURCES) DIST_SOURCES = $(libImlib2_la_SOURCES) \ $(am__EXTRA_libImlib2_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(include_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.4 foreign MAINTAINERCLEANFILES = Makefile.in AM_CFLAGS = $(CWARNFLAGS) AM_CPPFLAGS = -DPACKAGE_LIB_DIR=\"$(libdir)\" \ -I$(top_builddir) \ $(X_CFLAGS) \ $(FREETYPE_CFLAGS) # Older automakes (<1.10) do not use INCLUDES when compiling .S files AM_CCASFLAGS = -I$(top_builddir) lib_LTLIBRARIES = libImlib2.la include_HEADERS = Imlib2.h libImlib2_la_SOURCES = \ api.c \ asm.h \ blend.c \ blend.h \ color.c \ color.h \ color_helpers.c \ color_helpers.h \ colormod.c \ colormod.h \ common.h \ context.c \ context.h \ draw.c \ draw.h \ dynamic_filters.c \ dynamic_filters.h \ ellipse.c \ file.c \ file.h \ filter.c \ filter.h \ font.h \ font_draw.c \ font_load.c \ font_main.c \ font_query.c \ format.c \ format.h \ grab.c \ grab.h \ grad.c \ grad.h \ image.c \ image.h \ line.c \ loaderpath.h \ polygon.c \ rectangle.c \ rend.c \ rend.h \ rgba.c \ rgba.h \ rgbadraw.c \ rgbadraw.h \ rotate.c \ rotate.h \ scale.c \ scale.h \ script.c \ script.h \ span.c \ span.h \ updates.c \ updates.h \ ximage.c \ ximage.h MMX_SRCS = \ asm_blend.S \ asm_blend_cmod.S \ asm_rgba.S \ asm_rotate.S \ asm_scale.S AMD64_SRCS = \ amd64_blend.S \ amd64_blend_cmod.S MMX_OBJS = $(MMX_SRCS:.S=.lo) AMD64_OBJS = $(AMD64_SRCS:.S=.lo) EXTRA_DIST = $(MMX_SRCS) $(AMD64_SRCS) asm_loadimmq.S MY_LIBS = -lXext -lX11 $(FREETYPE_LIBS) $(DLOPEN_LIBS) -lm @BUILD_AMD64_FALSE@@BUILD_MMX_FALSE@libImlib2_la_LIBADD = $(MY_LIBS) @BUILD_AMD64_TRUE@@BUILD_MMX_FALSE@libImlib2_la_LIBADD = $(AMD64_OBJS) $(MY_LIBS) @BUILD_MMX_TRUE@libImlib2_la_LIBADD = $(MMX_OBJS) $(MY_LIBS) @BUILD_AMD64_FALSE@@BUILD_MMX_FALSE@libImlib2_la_DEPENDENCIES = $(top_builddir)/config.h @BUILD_AMD64_TRUE@@BUILD_MMX_FALSE@libImlib2_la_DEPENDENCIES = $(top_builddir)/config.h $(AMD64_OBJS) @BUILD_MMX_TRUE@libImlib2_la_DEPENDENCIES = $(top_builddir)/config.h $(MMX_OBJS) @BUILD_AMD64_TRUE@@BUILD_MMX_FALSE@EXTRA_libImlib2_la_SOURCES = $(AMD64_SRCS) @BUILD_MMX_TRUE@EXTRA_libImlib2_la_SOURCES = $(MMX_SRCS) libImlib2_la_LDFLAGS = -version-info @lt_version@ all: all-am .SUFFIXES: .SUFFIXES: .S .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/lib/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libImlib2.la: $(libImlib2_la_OBJECTS) $(libImlib2_la_DEPENDENCIES) $(EXTRA_libImlib2_la_DEPENDENCIES) $(AM_V_CCLD)$(libImlib2_la_LINK) -rpath $(libdir) $(libImlib2_la_OBJECTS) $(libImlib2_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/amd64_blend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/amd64_blend_cmod.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/api.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_blend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_blend_cmod.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_rgba.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_rotate.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_scale.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/blend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_helpers.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/colormod.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/context.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/draw.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dynamic_filters.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ellipse.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font_draw.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font_load.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font_main.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font_query.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grab.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grad.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/image.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/line.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polygon.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rectangle.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rgba.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rgbadraw.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rotate.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scale.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/script.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/span.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/updates.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ximage.Plo@am__quote@ .S.o: @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ $< .S.obj: @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .S.lo: @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LTCPPASCOMPILE) -c -o $@ $< .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ done uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-includeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am \ install-includeHEADERS install-info install-info-am \ install-libLTLIBRARIES install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-includeHEADERS \ uninstall-libLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/src/lib/font_main.c0000664000175000017500000002251512255265065013313 00000000000000#include "config.h" #include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include #include FT_FREETYPE_H #include FT_GLYPH_H #include "font.h" #include #include #include #include "file.h" #include "updates.h" #include "rgbadraw.h" #include "rotate.h" FT_Library ft_lib; static int imlib_hash_gen(const char *key); static int imlib_list_alloc_error(void); static int _imlib_hash_alloc_error = 0; static int _imlib_list_alloc_error = 0; void imlib_font_init(void) { static int initialised = 0; int error; if (initialised) return; error = FT_Init_FreeType(&ft_lib); if (error) return; initialised = 1; } int imlib_font_ascent_get(ImlibFont * fn) { int val; int ret; val = (int)fn->ft.face->ascender; fn->ft.face->units_per_EM = 2048; /* nasy hack - need to have correct * val */ ret = (val * fn->ft.face->size->metrics.y_scale) / (fn->ft.face->units_per_EM * fn->ft.face->units_per_EM); return ret; } int imlib_font_descent_get(ImlibFont * fn) { int val; int ret; val = -(int)fn->ft.face->descender; fn->ft.face->units_per_EM = 2048; /* nasy hack - need to have correct * val */ ret = (val * fn->ft.face->size->metrics.y_scale) / (fn->ft.face->units_per_EM * fn->ft.face->units_per_EM); return ret; } int imlib_font_max_ascent_get(ImlibFont * fn) { int val; int ret; val = (int)fn->ft.face->bbox.yMax; fn->ft.face->units_per_EM = 2048; /* nasy hack - need to have correct * val */ ret = (val * fn->ft.face->size->metrics.y_scale) / (fn->ft.face->units_per_EM * fn->ft.face->units_per_EM); return ret; } int imlib_font_max_descent_get(ImlibFont * fn) { int val; int ret; val = (int)fn->ft.face->bbox.yMin; fn->ft.face->units_per_EM = 2048; /* nasy hack - need to have correct * val */ ret = (val * fn->ft.face->size->metrics.y_scale) / (fn->ft.face->units_per_EM * fn->ft.face->units_per_EM); return ret; } int imlib_font_get_line_advance(ImlibFont * fn) { int val; int ret; val = (int)fn->ft.face->height; fn->ft.face->units_per_EM = 2048; /* nasy hack - need to have correct * val */ ret = (val * fn->ft.face->size->metrics.y_scale) / (fn->ft.face->units_per_EM * fn->ft.face->units_per_EM); return ret; } int imlib_font_utf8_get_next(unsigned char *buf, int *iindex) { /* Reads UTF8 bytes from @buf, starting at *@index and returns the code * point of the next valid code point. @index is updated ready for the * next call. * * * Returns 0 to indicate an error (e.g. invalid UTF8) */ int index = *iindex, r; unsigned char d = buf[index++], d2, d3, d4; if (!d) return 0; if (d < 0x80) { *iindex = index; return d; } if ((d & 0xe0) == 0xc0) { /* 2 byte */ d2 = buf[index++]; if ((d2 & 0xc0) != 0x80) return 0; r = d & 0x1f; /* copy lower 5 */ r <<= 6; r |= (d2 & 0x3f); /* copy lower 6 */ } else if ((d & 0xf0) == 0xe0) { /* 3 byte */ d2 = buf[index++]; d3 = buf[index++]; if ((d2 & 0xc0) != 0x80 || (d3 & 0xc0) != 0x80) return 0; r = d & 0x0f; /* copy lower 4 */ r <<= 6; r |= (d2 & 0x3f); r <<= 6; r |= (d3 & 0x3f); } else { /* 4 byte */ d2 = buf[index++]; d3 = buf[index++]; d4 = buf[index++]; if ((d2 & 0xc0) != 0x80 || (d3 & 0xc0) != 0x80 || (d4 & 0xc0) != 0x80) return 0; r = d & 0x0f; /* copy lower 4 */ r <<= 6; r |= (d2 & 0x3f); r <<= 6; r |= (d3 & 0x3f); r <<= 6; r |= (d4 & 0x3f); } *iindex = index; return r; } /* TODO put this somewhere else */ void * imlib_object_list_prepend(void *in_list, void *in_item) { Imlib_Object_List *new_l; Imlib_Object_List *list, *item; list = in_list; item = in_item; new_l = item; new_l->prev = NULL; if (!list) { new_l->next = NULL; new_l->last = new_l; return new_l; } new_l->next = list; list->prev = new_l; new_l->last = list->last; list->last = NULL; return new_l; } void * imlib_object_list_remove(void *in_list, void *in_item) { Imlib_Object_List *return_l; Imlib_Object_List *list, *item; /* checkme */ if (!in_list) return in_list; list = in_list; item = in_item; if (!item) return list; if (item->next) item->next->prev = item->prev; if (item->prev) { item->prev->next = item->next; return_l = list; } else { return_l = item->next; if (return_l) return_l->last = list->last; } if (item == list->last) list->last = item->prev; item->next = NULL; item->prev = NULL; return return_l; } static int imlib_hash_gen(const char *key) { unsigned int hash_num = 0; const unsigned char *ptr; if (!key) return 0; for (ptr = (unsigned char *)key; *ptr; ptr++) hash_num ^= (int)(*ptr); hash_num &= 0xff; return (int)hash_num; } Imlib_Hash * imlib_hash_add(Imlib_Hash * hash, const char *key, const void *data) { int hash_num; Imlib_Hash_El *el; _imlib_hash_alloc_error = 0; if (!hash) { hash = calloc(1, sizeof(struct _Imlib_Hash)); if (!hash) { _imlib_hash_alloc_error = 1; return NULL; } } if (!(el = malloc(sizeof(struct _Imlib_Hash_El)))) { if (hash->population <= 0) { free(hash); hash = NULL; } _imlib_hash_alloc_error = 1; return hash; }; if (key) { el->key = strdup(key); if (!el->key) { free(el); _imlib_hash_alloc_error = 1; return hash; } hash_num = imlib_hash_gen(key); } else { el->key = NULL; hash_num = 0; } el->data = (void *)data; hash->buckets[hash_num] = imlib_object_list_prepend(hash->buckets[hash_num], el); if (imlib_list_alloc_error()) { _imlib_hash_alloc_error = 1; if (el->key) free(el->key); free(el); return hash; } hash->population++; return hash; } void * imlib_hash_find(Imlib_Hash * hash, const char *key) { int hash_num; Imlib_Hash_El *el; Imlib_Object_List *l; _imlib_hash_alloc_error = 0; if (!hash) return NULL; hash_num = imlib_hash_gen(key); for (l = hash->buckets[hash_num]; l; l = l->next) { el = (Imlib_Hash_El *) l; if (((el->key) && (key) && (!strcmp(el->key, key))) || ((!el->key) && (!key))) { if (l != hash->buckets[hash_num]) { /* FIXME: move to front of list without alloc */ hash->buckets[hash_num] = imlib_object_list_remove(hash->buckets[hash_num], el); hash->buckets[hash_num] = imlib_object_list_prepend(hash->buckets[hash_num], el); if (imlib_list_alloc_error()) { _imlib_hash_alloc_error = 1; return el->data; } } return el->data; } } return NULL; } static int imlib_hash_size(Imlib_Hash * hash) { if (!hash) return 0; return 256; } void imlib_hash_free(Imlib_Hash * hash) { int i, size; if (!hash) return; size = imlib_hash_size(hash); for (i = 0; i < size; i++) { while (hash->buckets[i]) { Imlib_Hash_El *el; el = (Imlib_Hash_El *) hash->buckets[i]; if (el->key) free(el->key); hash->buckets[i] = imlib_object_list_remove(hash->buckets[i], el); free(el); } } free(hash); } void imlib_hash_foreach(Imlib_Hash * hash, int (*func) (Imlib_Hash * hash, const char *key, void *data, void *fdata), const void *fdata) { int i, size; if (!hash) return; size = imlib_hash_size(hash); for (i = 0; i < size; i++) { Imlib_Object_List *l, *next_l; for (l = hash->buckets[i]; l;) { Imlib_Hash_El *el; next_l = l->next; el = (Imlib_Hash_El *) l; if (!func(hash, el->key, el->data, (void *)fdata)) return; l = next_l; } } } int imlib_list_alloc_error(void) { return _imlib_list_alloc_error; } imlib2-1.4.6/src/lib/filter.c0000664000175000017500000001342412255265065012625 00000000000000#include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include "filter.h" /*\ Create and return an empty filter struct \*/ ImlibFilter * __imlib_CreateFilter(int size) { ImlibFilter *fil; fil = malloc(sizeof(ImlibFilter)); if (size > 0) { fil->alpha.pixels = malloc(size * sizeof(ImlibFilterPixel)); fil->red.pixels = malloc(size * sizeof(ImlibFilterPixel)); fil->green.pixels = malloc(size * sizeof(ImlibFilterPixel)); fil->blue.pixels = malloc(size * sizeof(ImlibFilterPixel)); fil->alpha.size = size; fil->red.size = size; fil->green.size = size; fil->blue.size = size; } else { fil->alpha.pixels = 0; fil->red.pixels = 0; fil->green.pixels = 0; fil->blue.pixels = 0; fil->alpha.size = 0; fil->red.size = 0; fil->green.size = 0; fil->blue.size = 0; } fil->alpha.entries = 0; fil->red.entries = 0; fil->green.entries = 0; fil->blue.entries = 0; fil->alpha.div = 0; fil->red.div = 0; fil->green.div = 0; fil->blue.div = 0; fil->alpha.cons = 0; fil->red.cons = 0; fil->green.cons = 0; fil->blue.cons = 0; return fil; } /*\ Free a filter struct \*/ void __imlib_FreeFilter(ImlibFilter * fil) { free(fil->alpha.pixels); free(fil->red.pixels); free(fil->green.pixels); free(fil->blue.pixels); free(fil); } void __imlib_FilterSetColor(ImlibFilterColor * fil, int x, int y, int a, int r, int g, int b) { int i; ImlibFilterPixel *pix = fil->pixels; /*\ Look for an entry matching (x, y) \ */ for (i = fil->entries; --i >= 0;) { if ((pix[i].xoff == x) && (pix[i].yoff == y)) break; } /*\ If all zero, remove the found entry \ */ if (!(a | r | g | b)) { if (i >= 0) { while (i < fil->entries) { pix[i] = pix[i + 1]; } fil->entries--; } return; } /*\ No match, then make a new entry \ */ if (i < 0) i = fil->entries; if (i >= fil->size) { fil->size += 4; pix = realloc(pix, (fil->size * sizeof(ImlibFilterPixel))); if (!pix) return; fil->pixels = pix; } if (i >= fil->entries) fil->entries = i + 1; pix[i].xoff = x; pix[i].yoff = y; pix[i].a = a; pix[i].r = r; pix[i].g = g; pix[i].b = b; } /*\ Set the divisors manually \*/ void __imlib_FilterDivisors(ImlibFilter * fil, int a, int r, int g, int b) { fil->alpha.div = a; fil->red.div = r; fil->green.div = g; fil->blue.div = b; } /*\ Set the constants \*/ void __imlib_FilterConstants(ImlibFilter * fil, int a, int r, int g, int b) { fil->alpha.cons = a; fil->red.cons = r; fil->green.cons = g; fil->blue.cons = b; } static int __imlib_FilterCalcDiv(ImlibFilterColor * fil) { int i, ret; ImlibFilterPixel *pix; if (fil->div) return fil->div; ret = 0; pix = fil->pixels; for (i = fil->entries; --i >= 0;) { ret += pix->a + pix->r + pix->g + pix->b; pix++; } return ret; } static int __imlib_FilterGet(ImlibFilterColor * fil, DATA32 * data, int w, int h, int x, int y) { int i, off, ret; ImlibFilterPixel *pix; DATA32 *p; ret = fil->cons; pix = fil->pixels; for (i = fil->entries; --i >= 0;) { off = x + pix->xoff; if (off < 0) off = 0; if (off >= w) off = w - 1; p = data + off; off = y + pix->yoff; if (off < 0) off = 0; if (off >= h) off = h - 1; p += off * w; ret += A_VAL(p) * pix->a + R_VAL(p) * pix->r + G_VAL(p) * pix->g + B_VAL(p) * pix->b; pix++; } return ret; } /*\ Correct saturation from [-32768, 32767] to [0, 255] \*/ #define SATURATE(x) ((((x) | (!((x) >> 8) - 1)) & (~((x) >> 31))) & 0xff) /*\ Filter an image with the a, r, g, b filters in fil |*| NB: This is currently not very optimal, and could probably be improved \*/ void __imlib_FilterImage(ImlibImage * im, ImlibFilter * fil) { int x, y, a, r, g, b, ad, rd, gd, bd; DATA32 *data, *p1, *p2; data = malloc(im->w * im->h * sizeof(DATA32)); if (!data) return; ad = __imlib_FilterCalcDiv(&fil->alpha); rd = __imlib_FilterCalcDiv(&fil->red); gd = __imlib_FilterCalcDiv(&fil->green); bd = __imlib_FilterCalcDiv(&fil->blue); p1 = im->data; p2 = data; for (y = 0; y < im->h; y++) { for (x = 0; x < im->w; x++) { *p2 = *p1; if (ad) { a = __imlib_FilterGet(&fil->alpha, im->data, im->w, im->h, x, y); a /= ad; A_VAL(p2) = SATURATE(a); } if (rd) { r = __imlib_FilterGet(&fil->red, im->data, im->w, im->h, x, y); r /= rd; R_VAL(p2) = SATURATE(r); } if (gd) { g = __imlib_FilterGet(&fil->green, im->data, im->w, im->h, x, y); g /= gd; G_VAL(p2) = SATURATE(g); } if (bd) { b = __imlib_FilterGet(&fil->blue, im->data, im->w, im->h, x, y); b /= bd; B_VAL(p2) = SATURATE(b); } p1++; p2++; } } free(im->data); im->data = data; } imlib2-1.4.6/src/lib/asm_blend.S0000664000175000017500000004433612255265030013242 00000000000000#include #include "asm.h" #ifdef DO_MMX_ASM /*\ |*| MMX assembly blending routines for Imlib2 |*| Written by Willem Monsuwe |*| |*| Special (hairy) constructs are only commented on first use. \*/ /*\ All functions have the same calling convention: |*| __imlib_mmx__rgba_to_rgb[A](void *src, int sw, void *dst, int dw, |*| int w, int h, ImlibColorModifier *cm) \*/ #define src 8(%ebp) #define sw 12(%ebp) #define dst 16(%ebp) #define dw 20(%ebp) #define w 24(%ebp) #define h 28(%ebp) #define cm 32(%ebp) .text .align 8 FN_(imlib_mmx_blend_rgba_to_rgb) FN_(imlib_mmx_blend_rgba_to_rgba) FN_(imlib_mmx_copy_rgba_to_rgb) FN_(imlib_mmx_copy_rgba_to_rgba) FN_(imlib_mmx_copy_rgb_to_rgba) FN_(imlib_mmx_add_blend_rgba_to_rgb) FN_(imlib_mmx_add_blend_rgba_to_rgba) FN_(imlib_mmx_add_copy_rgba_to_rgb) FN_(imlib_mmx_add_copy_rgba_to_rgba) FN_(imlib_mmx_add_copy_rgb_to_rgba) FN_(imlib_mmx_subtract_blend_rgba_to_rgb) FN_(imlib_mmx_subtract_blend_rgba_to_rgba) FN_(imlib_mmx_subtract_copy_rgba_to_rgb) FN_(imlib_mmx_subtract_copy_rgba_to_rgba) FN_(imlib_mmx_subtract_copy_rgb_to_rgba) FN_(imlib_mmx_reshade_blend_rgba_to_rgb) FN_(imlib_mmx_reshade_blend_rgba_to_rgba) FN_(imlib_mmx_reshade_copy_rgba_to_rgb) FN_(imlib_mmx_reshade_copy_rgba_to_rgba) FN_(imlib_mmx_reshade_copy_rgb_to_rgba) #include "asm_loadimmq.S" /*\ MMX register use: |*| %mm1 = Source value |*| %mm2 = Destination value |*| %mm3 = Alpha value |*| %mm4 = 0 |*| %mm5-%mm6 = masks \*/ /*\ Common code \*/ /*\ Set MMX mode, save registers, load common parameters \*/ #define ENTER \ pushl %ebp ;\ movl %esp, %ebp ;\ pushl %ebx ;\ pushl %ecx ;\ pushl %edx ;\ pushl %edi ;\ pushl %esi ;\ movl h, %edx ;\ movl w, %ebx ;\ movl src, %esi ;\ movl dst, %edi ;\ leal (%esi, %ebx, 4), %esi ;\ leal (%edi, %ebx, 4), %edi ;\ negl %ebx ;\ jz 9f ;\ incl %edx ;\ decl %edx ;\ jz 9f ;\ decl %edx ;\ #define LOOP_START \ 8: ;\ movl %ebx, %ecx #define LOOP_END \ movl sw, %ecx ;\ leal (%esi, %ecx, 4), %esi ;\ movl dw, %ecx ;\ leal (%edi, %ecx, 4), %edi ;\ decl %edx ;\ jns 8b /*\ Unset MMX mode, reset registers, return \*/ #define LEAVE \ 9: ;\ emms ;\ popl %esi ;\ popl %edi ;\ popl %edx ;\ popl %ecx ;\ popl %ebx ;\ movl %ebp, %esp ;\ popl %ebp ;\ ret PR_(imlib_mmx_blend_rgba_to_rgb): ENTER pxor %mm4, %mm4 LOAD_IMMQ(c1, %mm5) CLEANUP_IMMQ_LOADS(1) LOOP_START 1: /*\ Load source and destination \*/ movd (%esi, %ecx, 4), %mm1 movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and unpack/copy to eight bytes |*| which are treated as four words. |*| Result ranges from [0, 0x7fff), and is mapped to |*| point value in [0.0, 1.0) by using the high word |*| of the 16->32 multiplications. |*| (Because we want the unsigned value we shift one bit, |*| and also shift the other factor to compensate.) |*| Magic to get the fourth byte: lhh \*/ movq %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make the alpha value that gets multiplied to the |*| alpha channels 0, so the resulting alpha value is |*| the destination alpha value. \*/ psrlq $16, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (a * ((s - d) + 0.5)) \*/ psubw %mm2, %mm1 psllw $1, %mm1 paddw %mm5, %mm1 /*\ Roundoff \*/ pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_blend_rgba_to_rgb) PR_(imlib_mmx_blend_rgba_to_rgba): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m0X000000, %mm5) LOAD_IMMQ(m00XXXXXX, %mm6) LOAD_IMMQ(c1, %mm7) CLEANUP_IMMQ_LOADS(3) LOOP_START 1: /*\ Load source and destination \*/ movd (%esi, %ecx, 4), %mm1 movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target, a = src + (255 - dest) \*/ movq %mm2, %mm3 pxor %mm6, %mm3 paddusb %mm1, %mm3 /*\ Unpack/copy to eight bytes \*/ punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ Separate alpha channel \*/ movq %mm1, %mm0 pand %mm5, %mm0 /*\ d = d + (a * ((s - d) + 0.5)) \*/ psubw %mm2, %mm1 psllw $1, %mm1 paddw %mm7, %mm1 /*\ Roundoff \*/ pmulhw %mm3, %mm1 /*\ Replace alpha channel with separated out version in mm0 and add \*/ pand %mm6, %mm1 por %mm0, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_blend_rgba_to_rgba) PR_(imlib_mmx_copy_rgba_to_rgb): ENTER LOAD_IMMQ(m0XXX0XXX, %mm5) LOAD_IMMQ(mX000X000, %mm6) CLEANUP_IMMQ_LOADS(2) /*\ Two at a time: last item is at %ecx = 0 \*/ subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 /*\ Clear alpha channel of source, get alpha of destination \*/ pand %mm5, %mm1 pand %mm6, %mm2 /*\ d = d | s, and save \*/ por %mm1, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 pand %mm5, %mm1 pand %mm6, %mm2 por %mm1, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_copy_rgba_to_rgb) PR_(imlib_mmx_copy_rgba_to_rgba): ENTER subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source, save destination \*/ movq (%esi, %ecx, 4), %mm1 movq %mm1, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd %mm1, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_copy_rgba_to_rgba) PR_(imlib_mmx_copy_rgb_to_rgba): ENTER LOAD_IMMQ(mX000X000, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source, save destination \*/ movq (%esi, %ecx, 4), %mm1 por %mm5, %mm1 movq %mm1, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 por %mm5, %mm1 movd %mm1, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_copy_rgb_to_rgba) PR_(imlib_mmx_add_blend_rgba_to_rgb): ENTER pxor %mm4, %mm4 LOOP_START 1: /*\ Load source and destination \*/ movd (%esi, %ecx, 4), %mm1 movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and unpack/copy to eight bytes \*/ movq %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_add_blend_rgba_to_rgb) PR_(imlib_mmx_add_blend_rgba_to_rgba): ENTER pxor %mm4, %mm4 LOAD_IMMQ(mVX000000, %mm5) LOAD_IMMQ(m00XXXXXX, %mm6) CLEANUP_IMMQ_LOADS(2) LOOP_START 1: /*\ Load source and destination \*/ movd (%esi, %ecx, 4), %mm1 movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target and unpack/copy to eight bytes \*/ movq %mm2, %mm3 pxor %mm6, %mm3 paddusb %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make the alpha value that gets multiplied to the |*| alpha channels 0x7fff, so the resulting alpha value is |*| the sum of the source and destination alpha values. \*/ por %mm5, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_add_blend_rgba_to_rgba) PR_(imlib_mmx_add_copy_rgba_to_rgb): ENTER LOAD_IMMQ(m0XXX0XXX, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 /*\ Clear alpha channel of source \*/ pand %mm5, %mm1 /*\ d = d + s, unsigned saturation, and save \*/ paddusb %mm1, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 pand %mm5, %mm1 paddusb %mm1, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_add_copy_rgba_to_rgb) PR_(imlib_mmx_add_copy_rgba_to_rgba): ENTER subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 /*\ d = d + s, unsigned saturation, and save \*/ paddusb %mm1, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 paddusb %mm1, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_add_copy_rgba_to_rgba) PR_(imlib_mmx_add_copy_rgb_to_rgba): ENTER LOAD_IMMQ(mX000X000, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 /*\ d = d + s, unsigned saturation, and save \*/ paddusb %mm1, %mm2 /*\ Make result alpha 0xff \*/ por %mm5, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 paddusb %mm1, %mm2 por %mm5, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_add_copy_rgb_to_rgba) PR_(imlib_mmx_subtract_blend_rgba_to_rgb): ENTER pxor %mm4, %mm4 LOOP_START 1: /*\ Load source and destination \*/ movd (%esi, %ecx, 4), %mm1 movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and unpack/copy to eight bytes \*/ movq %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d - (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 psubw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_subtract_blend_rgba_to_rgb) PR_(imlib_mmx_subtract_blend_rgba_to_rgba): ENTER pxor %mm4, %mm4 LOAD_IMMQ(mV0000000, %mm5) LOAD_IMMQ(m00XXXXXX, %mm6) CLEANUP_IMMQ_LOADS(2) LOOP_START 1: /*\ Load source and destination \*/ movd (%esi, %ecx, 4), %mm1 movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target and unpack/copy to eight bytes \*/ movq %mm2, %mm3 pxor %mm6, %mm3 paddusb %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make alpha value that gets multiplied with alpha channel |*| 0x8000, (-1.0), so that the alpha result is s + d \*/ psrlq $16, %mm3 por %mm5, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d - (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 psubw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_subtract_blend_rgba_to_rgba) PR_(imlib_mmx_subtract_copy_rgba_to_rgb): ENTER LOAD_IMMQ(m0XXX0XXX, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 /*\ Clear alpha channel of source \*/ pand %mm5, %mm1 /*\ d = d - s, unsigned saturation, and save \*/ psubusb %mm1, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 pand %mm5, %mm1 psubusb %mm1, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_subtract_copy_rgba_to_rgb) PR_(imlib_mmx_subtract_copy_rgba_to_rgba): ENTER LOAD_IMMQ(mX000X000, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 /*\ Negate destination alphas \*/ pxor %mm5, %mm2 /*\ d = d - s, unsigned saturation, and save \*/ psubusb %mm1, %mm2 /*\ Negate result alphas \*/ pxor %mm5, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 pxor %mm5, %mm2 psubusb %mm1, %mm2 pxor %mm5, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_subtract_copy_rgba_to_rgba) PR_(imlib_mmx_subtract_copy_rgb_to_rgba): ENTER LOAD_IMMQ(mX000X000, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 /*\ d = d - s, unsigned saturation, and save \*/ psubusb %mm1, %mm2 /*\ Make result alpha 0xff \*/ por %mm5, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 psubusb %mm1, %mm2 por %mm5, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_subtract_copy_rgb_to_rgba) PR_(imlib_mmx_reshade_blend_rgba_to_rgb): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m000V0V0V, %mm6) CLEANUP_IMMQ_LOADS(1) LOOP_START 1: /*\ Load source and destination \*/ movd (%esi, %ecx, 4), %mm1 movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and unpack/copy to eight bytes \*/ movq %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (2 * a * (s - 127)) \*/ psubw %mm6, %mm1 psllw $2, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_reshade_blend_rgba_to_rgb) PR_(imlib_mmx_reshade_blend_rgba_to_rgba): ENTER pxor %mm4, %mm4 LOAD_IMMQ(mI0000000, %mm5) LOAD_IMMQ(m000V0V0V, %mm6) LOAD_IMMQ(m00XXXXXX, %mm7) CLEANUP_IMMQ_LOADS(3) LOOP_START 1: /*\ Load source and destination \*/ movd (%esi, %ecx, 4), %mm1 movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target and unpack/copy to eight bytes \*/ movq %mm2, %mm3 pxor %mm7, %mm3 paddusb %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make the alpha value that gets multiplied to the |*| alpha channels 0x4000 (0.5), so the resulting alpha value is |*| the sum of the source and destination alpha values. \*/ psrlq $16, %mm3 por %mm5, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (2 * a * (s - 127)), (alpha channel: d = d + (2 * 0.5 * (s - 0)) ) \*/ psubw %mm6, %mm1 psllw $2, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_reshade_blend_rgba_to_rgba) PR_(imlib_mmx_reshade_copy_rgba_to_rgb): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m0XXX0XXX, %mm5) LOAD_IMMQ(m0VVV0VVV, %mm6) CLEANUP_IMMQ_LOADS(2) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 /*\ To take advantage of saturation and be able to do 8 bytes |*| at a time, we divide reshading into two separate steps: |*| adding values above 128, and subtracting values below 128 |*| These values go into %mm1 and %mm3 respectively |*| - %mm1 becomes (2 * (s - 127)) |*| - %mm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) \*/ movq %mm1, %mm3 psubusb %mm6, %mm1 paddusb %mm1, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 /*\ Clear alpha channel of s1 and s2 \*/ pand %mm5, %mm1 pand %mm5, %mm3 /*\ d = d + s1 - s2, unsigned saturation, and save \*/ paddusb %mm1, %mm2 psubusb %mm3, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 movq %mm1, %mm3 psubusb %mm6, %mm1 paddusb %mm1, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 pand %mm5, %mm1 pand %mm5, %mm3 paddusb %mm1, %mm2 psubusb %mm3, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_reshade_copy_rgba_to_rgb) PR_(imlib_mmx_reshade_copy_rgba_to_rgba): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m0XXX0XXX, %mm5) LOAD_IMMQ(m0VVV0VVV, %mm6) CLEANUP_IMMQ_LOADS(2) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 /*\ This time, the alpha channels have to be added. |*| For that, the alpha channel of %mm1 should remain |*| the same. This is done by subtracting 0 from the |*| alpha channel, and then doing the *2 via a separate |*| register, clearing its alpha channel first. \*/ movq %mm1, %mm3 psubusb %mm6, %mm1 movq %mm1, %mm0 pand %mm5, %mm0 paddusb %mm0, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 /*\ Clear alpha channel of s2 \*/ pand %mm5, %mm3 /*\ d = d + s1 - s2, unsigned saturation, and save \*/ paddusb %mm1, %mm2 psubusb %mm3, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 movq %mm1, %mm3 psubusb %mm6, %mm1 movq %mm1, %mm0 pand %mm5, %mm0 paddusb %mm0, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 pand %mm5, %mm3 paddusb %mm1, %mm2 psubusb %mm3, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_reshade_copy_rgba_to_rgba) PR_(imlib_mmx_reshade_copy_rgb_to_rgba): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m0XXX0XXX, %mm5) LOAD_IMMQ(m0VVV0VVV, %mm6) LOAD_IMMQ(mX000X000, %mm7) CLEANUP_IMMQ_LOADS(3) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ movq (%esi, %ecx, 4), %mm1 movq (%edi, %ecx, 4), %mm2 movq %mm1, %mm3 psubusb %mm6, %mm1 paddusb %mm1, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 /*\ d = d + s1 - s2, unsigned saturation, and save \*/ paddusb %mm1, %mm2 psubusb %mm3, %mm2 /*\ Make result alpha 0xff \*/ por %mm7, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: movd (%esi), %mm1 movd (%edi), %mm2 movq %mm1, %mm3 psubusb %mm6, %mm1 paddusb %mm1, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 paddusb %mm1, %mm2 psubusb %mm3, %mm2 por %mm7, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_reshade_copy_rgb_to_rgba) #endif #ifdef __ELF__ .section .note.GNU-stack,"",@progbits #endif imlib2-1.4.6/src/lib/script.h0000664000175000017500000000421012255265030012632 00000000000000#ifndef _DYN_FUNCTION_H_ #define _DYN_FUNCTION_H_ #include #ifndef BUILD_X11 # ifndef X_DISPLAY_MISSING # define X_DISPLAY_MISSING # endif #endif #include "Imlib2.h" #include #define VAR_CHAR 1 #define VAR_PTR 2 #define ASSIGN_DATA8( var, v ) if( strcmp( ptr->key, var ) == 0 ) v = (DATA8)atoi( (char *)ptr->data ) #define ASSIGN_INT(k, v) \ if (!strcmp((k), ptr->key)) { \ if (ptr->type == VAR_PTR) { \ (v) = (*(int *)ptr->data); \ } else if (ptr->type == VAR_CHAR) { \ (v) = strtol(ptr->data, 0, 0); \ } \ } #define ASSIGN_IMAGE(k, v) \ if (!strcmp((k), ptr->key)) { \ if (ptr->type == VAR_PTR) { \ (v) = ((Imlib_Image)ptr->data); \ } else if (ptr->type == VAR_CHAR) { \ if (!free_map) \ (v) = imlib_load_image(ptr->data); \ free_map = 1; \ } \ } typedef struct _imlib_function_param IFunctionParam; typedef struct _imlib_function_param *pIFunctionParam; struct _imlib_function_param { char *key; int type; void *data; pIFunctionParam next; }; typedef struct _imlib_function IFunction; typedef struct _imlib_function *pIFunction; struct _imlib_function { char *name; pIFunctionParam params; pIFunction next; }; typedef struct _imlib_variable { void *ptr; struct _imlib_variable *next; } IVariable; __hidden Imlib_Image __imlib_script_parse( Imlib_Image im, char *script, va_list ); __hidden IFunctionParam *__imlib_script_parse_parameters( Imlib_Image im, char *parameters ); __hidden Imlib_Image __imlib_script_parse_function( Imlib_Image im, char *function ); __hidden void __imlib_script_tidyup(void); __hidden void *__imlib_script_get_next_var(void); __hidden void __imlib_script_add_var( void *ptr ); #endif /* _FUNCTION_H_ */ imlib2-1.4.6/src/lib/rgba.c0000664000175000017500000072005712255265152012257 00000000000000#include "common.h" #ifdef BUILD_X11 #include #include "context.h" #include "rgba.h" #define IS_ALIGNED_128(val) (!((val) & 0x15)) #define IS_ALIGNED_64(val) (!((val) & 0x7)) #define IS_ALIGNED_32(val) (!((val) & 0x3)) #define IS_ALIGNED_16(val) (!((val) & 0x1)) #define IS_MULTIPLE_2(val) (!((val) & 0x1)) #define IS_MULTIPLE_4(val) (!((val) & 0x3)) /* for PPC / Motorola / SPARC, not x86, ALPHA */ /* dont uncomment this - i have this here for my own testing */ /*#define WORDS_BIGENDIAN*/ /* for data in ABGR memory model */ /* NOTES: */ /* x86: RGBA in byte order = ABGR when read as an int (in register/int) */ /* lookup table to see what color index to use */ static DATA8 *_dither_color_lut; static DATA8 _pal_type; /* using DATA32 - major speedup for aligned memory reads */ /* these data structs global rather than context-based for speed */ static DATA16 *_dither_r16; static DATA16 *_dither_g16; static DATA16 *_dither_b16; static DATA8 *_dither_r8; static DATA8 *_dither_g8; static DATA8 *_dither_b8; static DATA8 *_dither_666r; static DATA8 *_dither_666g; static DATA8 *_dither_666b; static int dither_a_init = 0; static DATA8 _dither_a1[8 * 8 * 256]; /* the famous dither matrix */ const DATA8 _dither_44[4][4] = { {0, 4, 1, 5}, {6, 2, 7, 3}, {1, 5, 0, 4}, {7, 3, 6, 2} }; const DATA8 _dither_88[8][8] = { {0, 32, 8, 40, 2, 34, 10, 42}, {48, 16, 56, 24, 50, 18, 58, 26}, {12, 44, 4, 36, 14, 46, 6, 38}, {60, 28, 52, 20, 62, 30, 54, 22}, {3, 35, 11, 43, 1, 33, 9, 41}, {51, 19, 59, 27, 49, 17, 57, 25}, {15, 47, 7, 39, 13, 45, 5, 37}, {63, 31, 55, 23, 61, 29, 53, 21} }; /* This dither table was generated by Raph Levien using patented * technology (US Patent 5,276,535). The dither table itself is in the * public domain. */ const DATA8 _dither_128128[128][128] = { {0, 41, 23, 5, 17, 39, 7, 15, 62, 23, 40, 51, 31, 47, 9, 32, 52, 27, 57, 25, 6, 61, 27, 52, 37, 7, 40, 63, 18, 36, 10, 42, 25, 62, 45, 34, 20, 42, 37, 14, 35, 29, 50, 10, 61, 2, 40, 8, 37, 12, 58, 22, 5, 41, 10, 39, 0, 60, 11, 46, 2, 55, 38, 17, 36, 59, 13, 54, 37, 56, 8, 29, 16, 13, 63, 22, 41, 55, 7, 20, 49, 14, 23, 55, 37, 23, 19, 36, 15, 49, 23, 63, 30, 14, 38, 27, 53, 13, 22, 41, 19, 31, 7, 19, 50, 30, 49, 16, 3, 32, 56, 40, 29, 34, 8, 48, 19, 45, 4, 51, 12, 46, 35, 49, 16, 42, 12, 62}, {30, 57, 36, 54, 47, 34, 52, 27, 43, 4, 28, 7, 17, 36, 62, 13, 44, 7, 18, 48, 33, 21, 44, 14, 30, 47, 12, 33, 5, 55, 31, 58, 13, 30, 4, 17, 52, 10, 60, 26, 46, 0, 39, 27, 42, 22, 47, 25, 60, 32, 9, 38, 48, 17, 59, 30, 49, 18, 34, 25, 51, 19, 5, 48, 21, 8, 28, 46, 1, 32, 41, 19, 54, 47, 37, 18, 28, 11, 44, 30, 39, 56, 2, 33, 8, 42, 61, 28, 58, 8, 46, 9, 41, 4, 58, 7, 21, 48, 59, 10, 52, 14, 42, 57, 12, 25, 7, 53, 42, 24, 11, 50, 17, 59, 42, 2, 36, 60, 32, 17, 63, 29, 21, 7, 59, 32, 24, 39}, {22, 8, 16, 32, 3, 25, 13, 57, 18, 45, 58, 39, 55, 20, 5, 42, 23, 34, 63, 1, 51, 10, 58, 4, 60, 23, 53, 27, 44, 21, 3, 48, 8, 50, 43, 54, 27, 32, 5, 55, 21, 58, 12, 53, 6, 36, 14, 50, 17, 29, 53, 15, 24, 52, 7, 36, 13, 42, 4, 53, 9, 35, 61, 26, 56, 32, 49, 15, 62, 23, 6, 60, 2, 31, 4, 48, 58, 38, 15, 61, 5, 25, 47, 28, 50, 15, 7, 40, 3, 32, 33, 52, 25, 50, 35, 42, 61, 3, 28, 36, 23, 63, 4, 33, 46, 62, 36, 23, 60, 6, 54, 28, 4, 37, 23, 55, 25, 8, 42, 54, 14, 6, 56, 38, 19, 52, 4, 46}, {48, 53, 43, 12, 45, 63, 30, 37, 9, 34, 21, 1, 25, 47, 29, 58, 3, 54, 15, 39, 29, 17, 38, 35, 20, 43, 1, 49, 15, 59, 29, 39, 22, 35, 16, 23, 1, 47, 39, 18, 8, 44, 25, 31, 57, 19, 63, 4, 45, 3, 42, 61, 1, 31, 45, 20, 57, 29, 62, 21, 32, 41, 14, 44, 3, 39, 5, 34, 10, 43, 51, 35, 23, 52, 40, 10, 21, 1, 53, 18, 51, 43, 12, 62, 18, 54, 26, 51, 20, 57, 14, 1, 62, 16, 11, 18, 32, 39, 17, 44, 1, 48, 26, 37, 18, 2, 51, 14, 28, 45, 35, 18, 57, 13, 47, 11, 51, 20, 2, 39, 31, 47, 25, 1, 50, 11, 60, 7}, {18, 28, 1, 56, 21, 10, 51, 2, 46, 54, 14, 61, 11, 50, 13, 38, 19, 31, 45, 9, 55, 24, 47, 5, 54, 9, 62, 11, 35, 8, 51, 14, 57, 6, 63, 40, 58, 14, 51, 28, 62, 34, 15, 48, 1, 41, 30, 35, 55, 21, 34, 11, 49, 37, 8, 52, 4, 23, 15, 43, 1, 58, 11, 23, 53, 16, 55, 26, 58, 18, 27, 12, 45, 14, 25, 63, 42, 33, 27, 35, 9, 31, 21, 38, 1, 44, 34, 12, 48, 38, 21, 44, 29, 47, 26, 53, 1, 46, 54, 8, 59, 29, 11, 55, 22, 41, 33, 20, 39, 1, 48, 9, 44, 32, 5, 62, 29, 44, 57, 23, 10, 58, 34, 43, 15, 37, 26, 33}, {51, 38, 59, 24, 35, 42, 19, 60, 5, 32, 41, 26, 43, 33, 7, 53, 48, 11, 59, 23, 42, 2, 61, 30, 16, 40, 32, 24, 56, 41, 19, 33, 37, 26, 47, 9, 31, 22, 2, 45, 9, 54, 4, 37, 21, 52, 11, 23, 7, 57, 16, 25, 55, 18, 63, 27, 46, 39, 56, 10, 50, 37, 29, 47, 19, 63, 24, 9, 46, 2, 39, 60, 9, 57, 30, 7, 49, 11, 59, 3, 45, 57, 5, 60, 29, 22, 5, 60, 30, 9, 59, 18, 40, 6, 57, 36, 30, 12, 24, 34, 15, 40, 52, 6, 49, 9, 58, 4, 63, 12, 26, 61, 22, 53, 38, 16, 35, 14, 28, 50, 42, 17, 5, 28, 62, 20, 54, 12}, {26, 6, 31, 15, 49, 6, 38, 27, 22, 49, 16, 56, 2, 62, 30, 21, 0, 36, 28, 6, 49, 32, 13, 52, 26, 50, 19, 46, 3, 26, 62, 0, 53, 12, 29, 3, 53, 41, 60, 24, 38, 13, 58, 16, 43, 9, 59, 39, 46, 28, 44, 40, 2, 33, 13, 41, 16, 6, 47, 31, 26, 17, 57, 6, 38, 0, 42, 36, 29, 52, 20, 31, 48, 0, 34, 56, 20, 36, 23, 54, 14, 41, 24, 37, 10, 55, 46, 25, 16, 45, 36, 4, 55, 23, 15, 8, 50, 62, 5, 56, 44, 20, 13, 28, 59, 31, 24, 47, 31, 52, 37, 17, 40, 0, 26, 49, 3, 60, 7, 33, 0, 61, 53, 40, 8, 45, 2, 41}, {16, 63, 43, 4, 61, 24, 56, 13, 53, 8, 36, 12, 24, 41, 16, 46, 60, 26, 52, 39, 14, 57, 21, 37, 0, 45, 7, 59, 38, 17, 43, 10, 45, 20, 61, 43, 19, 11, 33, 17, 50, 32, 23, 61, 28, 49, 26, 0, 18, 51, 5, 60, 22, 58, 29, 0, 59, 34, 19, 62, 3, 52, 7, 44, 30, 59, 13, 50, 15, 62, 7, 17, 38, 22, 44, 15, 40, 4, 47, 28, 33, 17, 49, 16, 51, 40, 10, 56, 0, 53, 13, 49, 28, 38, 60, 21, 43, 19, 37, 27, 3, 51, 34, 39, 0, 45, 15, 43, 10, 21, 3, 55, 8, 33, 59, 10, 41, 18, 52, 24, 46, 20, 30, 13, 58, 22, 36, 57}, {50, 34, 11, 47, 29, 17, 44, 0, 33, 63, 28, 46, 52, 5, 57, 10, 42, 18, 4, 63, 20, 8, 44, 10, 56, 34, 14, 29, 5, 54, 23, 59, 32, 49, 7, 34, 49, 27, 56, 0, 42, 7, 46, 3, 40, 6, 54, 32, 62, 13, 36, 10, 47, 8, 35, 49, 24, 51, 12, 40, 22, 35, 60, 12, 22, 51, 33, 4, 40, 25, 43, 55, 5, 54, 12, 61, 26, 51, 8, 62, 0, 53, 7, 63, 2, 32, 19, 34, 42, 24, 31, 63, 2, 10, 45, 33, 0, 48, 9, 61, 22, 47, 8, 62, 18, 56, 7, 54, 27, 57, 46, 30, 50, 19, 45, 30, 56, 36, 22, 47, 11, 38, 3, 51, 32, 48, 18, 9}, {0, 21, 40, 19, 52, 9, 37, 48, 20, 40, 3, 18, 27, 38, 35, 22, 31, 56, 13, 35, 46, 28, 60, 40, 27, 18, 61, 50, 41, 30, 7, 36, 2, 25, 16, 57, 5, 15, 47, 29, 55, 19, 30, 52, 15, 34, 20, 12, 43, 30, 20, 54, 25, 44, 53, 12, 38, 5, 55, 27, 48, 15, 33, 27, 45, 8, 19, 28, 56, 11, 33, 49, 18, 36, 29, 2, 45, 16, 39, 19, 31, 43, 27, 35, 20, 52, 26, 6, 61, 11, 41, 17, 29, 51, 20, 56, 25, 32, 41, 17, 53, 31, 25, 14, 42, 23, 35, 16, 38, 6, 34, 12, 15, 62, 6, 21, 13, 1, 63, 9, 55, 27, 43, 25, 14, 4, 31, 55}, {44, 29, 61, 2, 35, 58, 26, 15, 60, 10, 51, 59, 14, 55, 8, 50, 2, 44, 25, 51, 1, 33, 16, 4, 48, 36, 2, 21, 12, 57, 48, 13, 51, 55, 40, 28, 37, 62, 8, 39, 12, 63, 36, 10, 59, 24, 56, 47, 9, 50, 41, 1, 32, 17, 6, 21, 61, 30, 9, 43, 1, 54, 41, 2, 54, 37, 48, 61, 1, 46, 21, 3, 58, 24, 50, 32, 60, 10, 57, 25, 46, 12, 59, 4, 45, 13, 57, 47, 27, 39, 5, 58, 47, 14, 35, 4, 52, 13, 60, 6, 36, 10, 45, 55, 4, 50, 29, 2, 61, 50, 25, 58, 44, 24, 36, 42, 54, 28, 40, 32, 16, 56, 6, 62, 46, 39, 60, 23}, {7, 48, 14, 54, 23, 40, 4, 45, 30, 22, 42, 32, 1, 44, 20, 29, 58, 8, 37, 19, 41, 54, 24, 58, 9, 53, 25, 46, 34, 16, 23, 38, 27, 11, 18, 1, 52, 21, 35, 22, 48, 5, 25, 45, 18, 38, 2, 27, 35, 4, 57, 15, 62, 39, 57, 28, 42, 16, 36, 60, 24, 18, 10, 63, 20, 5, 16, 23, 37, 14, 59, 27, 41, 8, 13, 42, 21, 35, 6, 50, 3, 38, 15, 48, 30, 39, 17, 3, 49, 14, 53, 33, 24, 7, 61, 44, 11, 39, 23, 49, 19, 58, 1, 32, 36, 12, 60, 41, 20, 13, 41, 4, 39, 1, 48, 8, 18, 51, 14, 44, 5, 37, 21, 34, 1, 26, 10, 37}, {53, 36, 27, 9, 50, 12, 32, 55, 2, 57, 7, 17, 48, 34, 63, 15, 40, 26, 62, 11, 49, 6, 31, 39, 22, 42, 6, 63, 1, 39, 60, 4, 42, 61, 32, 45, 24, 44, 2, 60, 16, 41, 53, 1, 33, 61, 49, 17, 63, 23, 45, 26, 33, 3, 23, 46, 2, 50, 20, 4, 45, 34, 49, 30, 39, 58, 44, 31, 53, 34, 6, 52, 30, 47, 63, 1, 53, 22, 42, 31, 58, 23, 54, 22, 61, 8, 36, 59, 22, 35, 21, 1, 55, 40, 27, 16, 30, 54, 2, 29, 43, 16, 39, 63, 21, 46, 26, 10, 48, 32, 19, 53, 30, 56, 26, 60, 33, 4, 61, 23, 49, 59, 15, 53, 19, 58, 42, 16}, {20, 5, 59, 46, 25, 62, 7, 19, 43, 25, 37, 61, 11, 24, 4, 54, 12, 52, 3, 32, 17, 61, 12, 47, 15, 55, 18, 31, 53, 28, 9, 50, 21, 6, 55, 9, 58, 14, 54, 26, 33, 7, 31, 58, 13, 21, 8, 42, 29, 6, 37, 11, 48, 52, 14, 60, 11, 39, 56, 32, 14, 58, 7, 26, 17, 4, 42, 8, 11, 47, 19, 38, 10, 17, 26, 37, 9, 55, 28, 13, 18, 40, 6, 33, 1, 43, 25, 11, 51, 7, 62, 43, 18, 37, 3, 57, 45, 9, 38, 58, 5, 52, 27, 7, 17, 53, 5, 57, 37, 2, 63, 9, 22, 15, 11, 38, 25, 45, 35, 0, 28, 10, 41, 30, 50, 8, 31, 57}, {49, 33, 16, 38, 1, 42, 51, 34, 53, 14, 28, 49, 30, 56, 36, 23, 43, 20, 38, 56, 22, 45, 28, 0, 62, 35, 26, 44, 11, 19, 52, 35, 44, 15, 30, 38, 10, 31, 40, 4, 46, 50, 20, 40, 27, 44, 51, 14, 56, 53, 19, 59, 7, 29, 41, 19, 35, 25, 8, 52, 22, 44, 13, 53, 50, 32, 61, 24, 56, 25, 63, 0, 45, 57, 33, 59, 16, 46, 4, 62, 50, 11, 60, 37, 52, 19, 55, 29, 37, 46, 13, 26, 48, 10, 50, 34, 21, 63, 26, 13, 42, 33, 22, 55, 35, 28, 43, 15, 24, 51, 27, 34, 46, 49, 58, 3, 52, 9, 57, 19, 48, 55, 3, 35, 12, 45, 24, 3}, {41, 11, 56, 28, 18, 31, 22, 10, 37, 6, 47, 13, 3, 41, 9, 46, 0, 48, 29, 6, 34, 10, 55, 37, 20, 8, 49, 3, 41, 59, 14, 25, 0, 63, 19, 47, 27, 51, 17, 57, 23, 10, 61, 6, 54, 3, 38, 31, 0, 22, 34, 43, 20, 55, 31, 0, 49, 63, 29, 38, 3, 62, 28, 40, 0, 22, 14, 35, 2, 48, 15, 43, 23, 14, 3, 29, 49, 20, 39, 34, 0, 44, 29, 9, 15, 47, 5, 42, 0, 31, 58, 5, 31, 61, 23, 15, 0, 47, 19, 50, 24, 3, 59, 11, 44, 0, 31, 59, 6, 42, 17, 60, 0, 39, 20, 31, 43, 17, 29, 40, 12, 25, 60, 22, 52, 15, 63, 29}, {20, 52, 8, 44, 62, 4, 59, 49, 17, 63, 21, 39, 60, 18, 52, 27, 33, 59, 14, 51, 59, 43, 24, 5, 51, 30, 57, 17, 32, 5, 37, 56, 48, 34, 42, 3, 60, 5, 36, 13, 43, 37, 18, 34, 25, 12, 59, 24, 47, 36, 11, 50, 3, 38, 9, 58, 16, 5, 43, 18, 47, 10, 37, 18, 59, 46, 29, 52, 40, 12, 34, 28, 56, 36, 53, 7, 43, 8, 24, 52, 26, 17, 56, 43, 24, 32, 63, 20, 57, 16, 22, 52, 36, 8, 41, 56, 29, 32, 54, 7, 35, 57, 14, 48, 20, 62, 13, 39, 53, 29, 8, 45, 13, 29, 7, 61, 14, 54, 6, 63, 38, 32, 18, 43, 2, 39, 6, 47}, {0, 58, 23, 35, 13, 46, 12, 39, 0, 31, 55, 24, 5, 35, 15, 61, 17, 5, 39, 25, 18, 2, 50, 33, 41, 13, 39, 23, 62, 46, 29, 12, 22, 8, 56, 25, 20, 49, 32, 62, 0, 56, 11, 46, 63, 42, 9, 16, 55, 5, 60, 15, 62, 26, 45, 21, 36, 51, 13, 57, 31, 24, 55, 6, 35, 9, 57, 5, 20, 60, 7, 51, 5, 19, 40, 25, 61, 32, 56, 12, 36, 48, 21, 2, 58, 12, 39, 28, 9, 50, 40, 12, 44, 18, 25, 49, 6, 38, 11, 62, 18, 46, 30, 9, 40, 25, 49, 19, 10, 36, 55, 22, 33, 52, 41, 18, 37, 27, 49, 21, 2, 46, 7, 53, 33, 61, 27, 35}, {41, 31, 5, 39, 51, 26, 33, 57, 27, 41, 9, 44, 54, 29, 48, 7, 44, 36, 57, 10, 31, 63, 16, 45, 11, 60, 1, 47, 7, 20, 43, 3, 58, 36, 13, 52, 39, 7, 15, 28, 22, 48, 30, 21, 1, 29, 49, 44, 27, 17, 40, 30, 24, 42, 12, 53, 33, 7, 47, 20, 1, 42, 11, 49, 25, 43, 17, 32, 45, 27, 41, 21, 31, 62, 11, 49, 2, 15, 42, 5, 63, 7, 41, 27, 49, 6, 54, 23, 46, 34, 2, 28, 54, 3, 59, 12, 46, 17, 42, 28, 40, 1, 37, 51, 5, 55, 2, 34, 47, 16, 3, 62, 47, 5, 23, 56, 1, 44, 12, 34, 51, 16, 57, 11, 25, 17, 54, 13}, {60, 26, 55, 18, 3, 60, 20, 6, 52, 15, 50, 19, 32, 11, 23, 53, 26, 21, 1, 47, 42, 27, 8, 58, 21, 27, 53, 36, 26, 54, 31, 50, 17, 30, 45, 1, 29, 59, 44, 53, 41, 4, 35, 58, 51, 19, 32, 4, 52, 34, 48, 8, 51, 5, 56, 2, 25, 61, 27, 38, 54, 27, 62, 21, 51, 1, 39, 62, 10, 50, 1, 58, 13, 47, 38, 18, 35, 54, 22, 51, 30, 19, 59, 34, 14, 32, 44, 4, 60, 15, 52, 62, 20, 43, 30, 35, 21, 60, 4, 52, 12, 24, 61, 18, 30, 42, 23, 61, 25, 50, 27, 38, 11, 59, 12, 35, 50, 30, 59, 24, 8, 42, 28, 37, 48, 9, 44, 21}, {10, 47, 15, 50, 30, 43, 8, 45, 29, 2, 36, 59, 1, 58, 41, 3, 63, 31, 54, 20, 13, 55, 35, 38, 4, 44, 15, 9, 61, 2, 14, 38, 61, 10, 23, 54, 18, 12, 24, 2, 14, 55, 16, 8, 38, 14, 41, 60, 10, 23, 1, 58, 32, 17, 28, 37, 41, 15, 3, 60, 15, 33, 4, 36, 16, 59, 28, 14, 23, 55, 37, 18, 44, 28, 2, 57, 30, 10, 27, 46, 14, 38, 3, 53, 21, 61, 17, 35, 10, 41, 26, 7, 33, 9, 57, 1, 53, 37, 26, 20, 56, 48, 9, 33, 58, 16, 37, 7, 45, 1, 57, 15, 32, 26, 42, 23, 7, 20, 4, 54, 31, 62, 22, 1, 59, 30, 4, 51}, {36, 2, 38, 11, 24, 36, 54, 22, 62, 47, 25, 8, 28, 45, 16, 38, 12, 43, 9, 37, 49, 3, 23, 52, 18, 30, 50, 33, 19, 42, 49, 26, 6, 40, 47, 35, 63, 38, 50, 33, 60, 26, 36, 47, 24, 57, 6, 26, 39, 63, 19, 44, 14, 46, 61, 9, 50, 30, 45, 23, 10, 50, 44, 8, 31, 54, 6, 46, 36, 4, 30, 54, 8, 52, 22, 41, 4, 60, 40, 0, 58, 24, 45, 10, 37, 1, 48, 30, 56, 17, 38, 48, 24, 47, 19, 39, 14, 8, 45, 32, 2, 34, 27, 44, 4, 52, 11, 56, 31, 21, 40, 19, 44, 51, 2, 63, 46, 58, 36, 43, 14, 5, 50, 38, 14, 56, 40, 23}, {61, 46, 32, 63, 54, 1, 14, 34, 12, 40, 18, 49, 37, 10, 61, 30, 51, 24, 60, 7, 29, 40, 62, 11, 46, 58, 6, 56, 24, 10, 34, 52, 21, 59, 16, 3, 27, 5, 20, 46, 9, 40, 7, 62, 2, 30, 53, 15, 48, 10, 28, 35, 54, 6, 21, 34, 18, 55, 7, 40, 57, 19, 26, 60, 41, 13, 24, 51, 19, 61, 9, 25, 34, 15, 63, 11, 45, 17, 20, 47, 33, 8, 31, 62, 43, 26, 53, 7, 24, 59, 0, 13, 55, 4, 62, 27, 51, 31, 63, 15, 58, 7, 54, 14, 46, 22, 28, 43, 12, 63, 8, 54, 5, 17, 39, 33, 15, 10, 27, 17, 47, 34, 19, 45, 27, 12, 33, 17}, {5, 28, 21, 7, 17, 48, 42, 58, 23, 4, 63, 14, 55, 21, 34, 5, 19, 0, 45, 17, 52, 15, 25, 32, 0, 22, 40, 13, 45, 62, 18, 0, 43, 11, 33, 55, 30, 42, 57, 19, 51, 31, 22, 43, 18, 45, 34, 0, 43, 31, 56, 3, 23, 40, 59, 0, 44, 13, 48, 35, 2, 32, 46, 0, 21, 48, 35, 3, 40, 32, 43, 59, 0, 48, 33, 26, 53, 36, 55, 12, 51, 16, 55, 5, 18, 29, 11, 39, 51, 19, 45, 31, 42, 21, 35, 6, 22, 47, 10, 38, 23, 50, 20, 36, 0, 60, 38, 4, 50, 35, 48, 34, 24, 57, 9, 53, 28, 48, 61, 0, 56, 24, 53, 3, 63, 6, 42, 57}, {13, 53, 45, 40, 58, 27, 6, 16, 38, 51, 33, 30, 43, 2, 47, 56, 40, 50, 33, 57, 27, 5, 47, 42, 60, 36, 16, 54, 28, 4, 37, 57, 28, 51, 22, 8, 45, 14, 6, 39, 0, 54, 11, 59, 28, 12, 50, 21, 61, 13, 19, 38, 49, 11, 25, 37, 58, 29, 22, 63, 14, 56, 12, 53, 30, 63, 9, 57, 26, 12, 47, 16, 23, 39, 50, 6, 31, 2, 25, 6, 28, 41, 36, 22, 50, 57, 42, 3, 34, 8, 28, 61, 11, 50, 16, 54, 41, 0, 55, 43, 5, 29, 41, 63, 25, 16, 53, 18, 26, 10, 21, 0, 61, 30, 41, 22, 3, 38, 20, 39, 29, 8, 41, 16, 36, 52, 22, 19}, {55, 34, 0, 25, 10, 32, 56, 44, 28, 0, 57, 7, 26, 53, 23, 8, 13, 35, 22, 12, 36, 60, 20, 8, 14, 29, 48, 2, 41, 49, 23, 13, 39, 7, 48, 58, 25, 53, 34, 62, 28, 16, 48, 4, 37, 56, 27, 5, 36, 52, 46, 7, 62, 33, 52, 11, 17, 53, 5, 28, 41, 24, 38, 17, 5, 39, 20, 45, 15, 56, 5, 38, 60, 8, 14, 57, 21, 48, 62, 39, 59, 13, 1, 60, 9, 32, 16, 63, 44, 25, 52, 15, 36, 2, 60, 29, 12, 33, 25, 17, 59, 45, 13, 8, 49, 32, 6, 40, 59, 29, 45, 37, 13, 47, 6, 55, 30, 45, 9, 52, 13, 59, 25, 47, 32, 1, 49, 30}, {9, 39, 14, 61, 49, 37, 3, 20, 50, 13, 41, 19, 46, 17, 38, 59, 28, 62, 4, 44, 54, 1, 34, 51, 55, 7, 63, 32, 21, 8, 56, 31, 62, 19, 36, 1, 41, 17, 24, 12, 42, 35, 25, 52, 20, 8, 44, 59, 25, 2, 22, 42, 16, 29, 4, 46, 20, 36, 43, 9, 51, 8, 49, 26, 58, 33, 54, 1, 37, 29, 52, 20, 27, 45, 19, 35, 42, 16, 10, 32, 20, 49, 46, 27, 40, 4, 47, 22, 13, 55, 4, 47, 26, 44, 23, 40, 58, 19, 48, 13, 31, 2, 57, 34, 42, 19, 61, 32, 14, 55, 5, 51, 26, 19, 58, 16, 49, 14, 62, 5, 33, 44, 21, 7, 60, 26, 11, 41}, {62, 24, 47, 29, 8, 19, 53, 11, 60, 24, 32, 61, 4, 55, 31, 2, 49, 16, 39, 9, 31, 24, 43, 17, 26, 38, 11, 25, 58, 43, 12, 35, 3, 46, 15, 32, 63, 4, 49, 56, 2, 60, 10, 32, 63, 17, 39, 12, 55, 30, 57, 9, 48, 55, 39, 24, 60, 2, 58, 31, 19, 61, 34, 3, 42, 11, 22, 46, 7, 61, 10, 42, 3, 55, 32, 1, 58, 28, 44, 54, 4, 34, 23, 15, 56, 20, 37, 58, 6, 30, 38, 18, 63, 9, 32, 5, 51, 3, 62, 37, 52, 18, 39, 23, 3, 51, 9, 47, 1, 23, 43, 15, 60, 35, 11, 40, 1, 36, 31, 26, 57, 2, 37, 54, 18, 44, 58, 16}, {5, 51, 3, 33, 43, 62, 21, 42, 35, 9, 48, 15, 36, 10, 22, 42, 20, 46, 26, 56, 50, 12, 59, 3, 48, 19, 45, 53, 1, 27, 47, 17, 52, 24, 56, 11, 51, 21, 37, 30, 20, 46, 14, 41, 1, 47, 33, 7, 41, 17, 35, 27, 20, 1, 14, 54, 26, 33, 18, 47, 1, 44, 14, 59, 16, 52, 28, 18, 49, 31, 25, 34, 63, 13, 51, 24, 9, 50, 3, 23, 38, 63, 7, 52, 29, 46, 11, 33, 50, 22, 57, 36, 1, 57, 49, 17, 39, 28, 9, 35, 6, 27, 53, 15, 55, 30, 24, 58, 36, 41, 11, 52, 32, 3, 44, 25, 62, 23, 51, 15, 42, 22, 50, 10, 39, 4, 31, 35}, {46, 22, 57, 17, 12, 39, 26, 5, 31, 59, 1, 45, 27, 62, 52, 7, 58, 33, 6, 18, 39, 22, 33, 41, 57, 5, 35, 18, 40, 16, 60, 5, 29, 42, 7, 39, 27, 44, 9, 47, 8, 26, 54, 22, 51, 29, 24, 49, 15, 61, 4, 51, 31, 63, 43, 6, 50, 8, 39, 12, 53, 37, 23, 30, 40, 6, 62, 43, 14, 53, 2, 49, 7, 36, 17, 41, 61, 37, 18, 56, 11, 18, 44, 35, 2, 19, 61, 0, 41, 14, 8, 30, 43, 12, 24, 46, 14, 54, 42, 21, 44, 61, 10, 46, 37, 11, 44, 7, 18, 63, 20, 29, 7, 49, 28, 54, 8, 43, 4, 48, 18, 63, 12, 29, 48, 24, 59, 20}, {13, 36, 28, 54, 35, 2, 56, 46, 16, 49, 22, 40, 11, 34, 14, 43, 29, 12, 63, 48, 2, 61, 7, 15, 28, 30, 50, 9, 61, 33, 38, 23, 54, 13, 61, 33, 3, 59, 16, 35, 58, 40, 5, 38, 13, 57, 3, 58, 37, 21, 45, 12, 39, 7, 35, 30, 13, 56, 22, 62, 27, 6, 55, 10, 48, 21, 33, 2, 38, 23, 40, 20, 44, 29, 59, 4, 26, 12, 33, 47, 28, 53, 31, 13, 59, 41, 27, 49, 26, 54, 45, 16, 53, 21, 35, 7, 59, 26, 11, 56, 1, 24, 33, 4, 28, 62, 21, 49, 31, 2, 56, 39, 24, 58, 13, 17, 37, 21, 56, 10, 38, 0, 34, 55, 15, 43, 1, 52}, {42, 9, 50, 6, 25, 60, 14, 38, 10, 29, 53, 18, 57, 3, 25, 51, 0, 53, 25, 17, 29, 37, 52, 46, 0, 62, 14, 37, 4, 50, 10, 44, 0, 46, 20, 25, 50, 19, 55, 0, 23, 31, 62, 34, 11, 45, 19, 32, 0, 53, 10, 59, 23, 47, 18, 60, 42, 28, 37, 3, 50, 15, 35, 44, 0, 51, 27, 60, 9, 57, 16, 58, 11, 22, 46, 15, 53, 48, 7, 42, 0, 60, 5, 49, 24, 54, 9, 17, 39, 5, 34, 62, 3, 40, 60, 31, 0, 47, 29, 16, 49, 39, 59, 17, 50, 0, 40, 13, 53, 38, 16, 46, 0, 42, 34, 60, 2, 53, 29, 31, 58, 46, 27, 6, 61, 8, 37, 28}, {0, 63, 21, 40, 45, 18, 51, 23, 63, 34, 6, 43, 28, 38, 55, 19, 40, 35, 8, 41, 54, 10, 21, 32, 39, 23, 53, 26, 55, 28, 22, 63, 30, 34, 9, 48, 6, 38, 29, 43, 49, 6, 18, 52, 27, 61, 9, 43, 28, 42, 33, 26, 56, 3, 51, 23, 0, 48, 16, 45, 32, 25, 63, 20, 57, 17, 42, 12, 35, 47, 5, 31, 39, 56, 6, 30, 34, 21, 61, 25, 14, 40, 22, 38, 15, 6, 36, 56, 20, 60, 25, 12, 51, 27, 10, 56, 42, 20, 36, 63, 32, 6, 21, 41, 12, 34, 60, 26, 5, 48, 27, 10, 62, 19, 6, 47, 39, 14, 45, 7, 24, 17, 41, 32, 23, 51, 19, 56}, {45, 31, 15, 59, 4, 33, 7, 47, 0, 41, 13, 61, 4, 47, 9, 23, 60, 14, 57, 31, 4, 45, 59, 6, 58, 10, 44, 20, 8, 42, 15, 6, 55, 17, 58, 31, 53, 12, 61, 10, 15, 57, 43, 2, 23, 35, 48, 14, 54, 6, 18, 49, 15, 38, 11, 34, 62, 9, 21, 58, 11, 41, 4, 31, 38, 8, 29, 55, 19, 36, 27, 52, 0, 25, 50, 43, 1, 39, 8, 55, 35, 51, 10, 30, 45, 62, 29, 2, 46, 10, 32, 48, 18, 38, 5, 22, 33, 8, 51, 3, 14, 44, 54, 25, 57, 30, 18, 52, 33, 22, 59, 28, 36, 52, 32, 21, 26, 50, 5, 55, 35, 60, 14, 54, 4, 40, 16, 33}, {27, 3, 49, 10, 30, 40, 55, 27, 57, 24, 52, 21, 32, 17, 60, 30, 5, 44, 27, 49, 19, 34, 13, 24, 43, 36, 3, 49, 31, 59, 37, 48, 26, 41, 2, 41, 14, 36, 21, 32, 40, 26, 13, 49, 55, 5, 16, 40, 25, 60, 36, 1, 63, 29, 17, 44, 25, 40, 52, 5, 29, 47, 54, 13, 46, 24, 60, 4, 51, 22, 63, 14, 45, 18, 12, 62, 17, 57, 19, 42, 3, 26, 58, 48, 1, 21, 40, 52, 23, 37, 44, 1, 29, 58, 43, 50, 15, 61, 19, 45, 58, 28, 7, 48, 2, 46, 8, 42, 3, 55, 8, 50, 12, 4, 55, 10, 63, 33, 20, 40, 11, 3, 46, 20, 48, 26, 61, 11}, {44, 56, 24, 36, 53, 19, 12, 37, 16, 44, 7, 36, 49, 54, 11, 37, 48, 21, 15, 1, 62, 25, 47, 56, 16, 18, 51, 12, 40, 1, 24, 11, 52, 16, 23, 59, 28, 1, 45, 53, 4, 60, 37, 21, 39, 30, 63, 20, 52, 10, 30, 45, 8, 41, 54, 4, 57, 7, 34, 55, 36, 18, 23, 59, 2, 48, 11, 32, 44, 1, 41, 8, 33, 54, 38, 23, 30, 46, 6, 29, 62, 18, 32, 16, 55, 34, 14, 11, 61, 7, 55, 16, 53, 13, 23, 2, 55, 37, 26, 10, 33, 23, 36, 16, 38, 22, 56, 15, 24, 43, 35, 17, 44, 40, 25, 46, 16, 1, 57, 25, 49, 36, 28, 62, 9, 35, 7, 53}, {17, 38, 8, 61, 1, 50, 26, 62, 3, 31, 56, 15, 1, 26, 40, 2, 34, 51, 56, 36, 42, 9, 38, 2, 29, 60, 32, 57, 19, 62, 34, 47, 4, 57, 39, 7, 44, 63, 24, 18, 46, 28, 8, 54, 1, 34, 7, 46, 3, 37, 50, 23, 57, 21, 13, 46, 31, 20, 43, 15, 1, 61, 8, 33, 37, 17, 56, 26, 15, 49, 24, 59, 28, 3, 56, 9, 52, 32, 13, 49, 10, 43, 5, 45, 8, 25, 59, 42, 28, 33, 19, 40, 8, 63, 35, 47, 25, 4, 40, 52, 1, 60, 12, 53, 63, 9, 29, 60, 37, 19, 1, 62, 31, 20, 58, 12, 41, 30, 43, 9, 18, 52, 22, 1, 39, 30, 58, 21}, {13, 47, 29, 18, 43, 34, 5, 48, 20, 42, 10, 45, 30, 58, 20, 63, 24, 11, 6, 28, 54, 14, 22, 52, 41, 7, 26, 5, 45, 15, 53, 13, 35, 27, 18, 50, 12, 33, 5, 56, 10, 17, 45, 24, 59, 15, 50, 26, 56, 13, 19, 5, 32, 52, 27, 36, 2, 61, 12, 26, 49, 40, 27, 52, 13, 50, 6, 39, 61, 34, 10, 37, 48, 20, 41, 27, 2, 36, 59, 24, 54, 33, 63, 20, 38, 50, 3, 17, 52, 4, 58, 27, 45, 21, 32, 11, 48, 17, 57, 20, 46, 38, 25, 43, 4, 34, 51, 6, 13, 45, 57, 26, 6, 48, 2, 35, 53, 23, 61, 34, 59, 6, 42, 56, 13, 51, 2, 41}, {32, 5, 55, 23, 58, 14, 22, 52, 29, 15, 61, 25, 51, 8, 43, 13, 53, 41, 46, 20, 3, 33, 63, 11, 48, 21, 54, 38, 28, 3, 30, 43, 21, 62, 9, 31, 55, 22, 51, 29, 37, 62, 32, 12, 42, 29, 41, 9, 33, 44, 62, 28, 43, 1, 59, 19, 48, 30, 51, 39, 24, 4, 58, 19, 42, 29, 22, 43, 3, 18, 53, 5, 13, 50, 16, 60, 45, 21, 7, 40, 15, 0, 26, 53, 13, 31, 43, 24, 47, 31, 15, 49, 2, 41, 6, 59, 29, 42, 9, 30, 14, 7, 49, 18, 31, 47, 20, 39, 49, 32, 11, 41, 54, 15, 61, 18, 7, 38, 4, 13, 44, 28, 15, 32, 45, 19, 27, 49}, {63, 34, 11, 39, 2, 45, 37, 8, 59, 39, 33, 4, 36, 17, 48, 5, 29, 18, 32, 61, 39, 50, 5, 27, 35, 0, 46, 12, 22, 49, 60, 6, 54, 0, 38, 49, 2, 42, 15, 40, 0, 47, 20, 51, 3, 57, 18, 61, 22, 0, 39, 16, 55, 12, 35, 8, 41, 22, 6, 59, 16, 45, 10, 36, 0, 62, 9, 54, 30, 58, 21, 43, 63, 31, 7, 35, 12, 48, 58, 28, 47, 37, 41, 9, 57, 20, 61, 0, 36, 11, 57, 35, 23, 52, 37, 18, 0, 62, 22, 55, 35, 62, 27, 54, 0, 15, 61, 28, 2, 59, 22, 9, 37, 27, 33, 51, 29, 48, 19, 50, 25, 37, 10, 57, 5, 37, 60, 8}, {20, 25, 46, 52, 31, 60, 12, 55, 0, 19, 11, 46, 62, 35, 23, 38, 57, 0, 55, 10, 16, 30, 58, 44, 17, 59, 29, 63, 42, 8, 36, 20, 33, 46, 16, 61, 25, 35, 8, 54, 26, 7, 58, 22, 34, 6, 47, 14, 53, 31, 48, 9, 37, 25, 49, 63, 16, 55, 45, 14, 34, 63, 21, 53, 25, 33, 46, 16, 35, 7, 46, 29, 0, 39, 25, 55, 22, 34, 18, 4, 56, 11, 23, 51, 28, 6, 39, 14, 62, 44, 19, 8, 60, 12, 56, 28, 50, 34, 39, 5, 51, 3, 41, 12, 57, 35, 10, 53, 25, 17, 52, 30, 47, 0, 43, 14, 5, 57, 31, 55, 0, 63, 47, 23, 54, 24, 14, 43}, {0, 57, 16, 6, 26, 19, 35, 28, 49, 42, 54, 26, 21, 1, 59, 27, 9, 47, 26, 44, 50, 22, 13, 40, 8, 37, 10, 34, 17, 56, 25, 58, 13, 27, 44, 9, 20, 58, 31, 17, 60, 36, 10, 41, 53, 25, 36, 39, 4, 24, 58, 17, 60, 4, 22, 38, 10, 32, 0, 50, 31, 7, 28, 47, 12, 57, 5, 26, 52, 23, 14, 40, 57, 17, 47, 5, 53, 1, 44, 31, 19, 60, 46, 2, 35, 48, 30, 54, 22, 5, 51, 39, 25, 31, 4, 43, 14, 9, 45, 16, 24, 44, 19, 29, 40, 23, 44, 7, 38, 42, 4, 63, 12, 54, 23, 59, 22, 42, 8, 15, 40, 21, 8, 34, 3, 41, 30, 50}, {39, 10, 48, 33, 41, 54, 5, 47, 23, 13, 32, 7, 52, 44, 14, 39, 58, 18, 35, 6, 37, 2, 60, 24, 55, 19, 53, 2, 51, 32, 1, 41, 51, 4, 40, 29, 47, 3, 52, 44, 13, 49, 28, 16, 1, 62, 11, 27, 52, 35, 5, 42, 29, 47, 14, 56, 28, 53, 26, 38, 9, 56, 40, 3, 38, 15, 41, 60, 1, 37, 50, 25, 11, 28, 61, 19, 42, 62, 10, 52, 39, 6, 32, 14, 58, 17, 7, 26, 42, 34, 27, 10, 54, 40, 20, 63, 26, 53, 21, 61, 32, 7, 59, 48, 3, 56, 18, 31, 58, 14, 49, 21, 36, 16, 45, 9, 36, 24, 62, 45, 27, 31, 53, 17, 49, 12, 62, 18}, {28, 59, 21, 58, 2, 16, 38, 9, 62, 3, 56, 41, 10, 31, 50, 4, 32, 52, 12, 63, 23, 46, 33, 31, 4, 48, 25, 43, 14, 23, 47, 11, 22, 55, 14, 60, 23, 37, 11, 39, 23, 2, 45, 56, 31, 43, 19, 55, 16, 46, 21, 51, 11, 33, 44, 2, 41, 18, 5, 52, 23, 44, 17, 60, 27, 49, 11, 32, 44, 10, 54, 2, 56, 33, 8, 38, 13, 29, 36, 16, 24, 63, 27, 51, 21, 43, 56, 12, 49, 3, 59, 48, 1, 15, 46, 7, 36, 2, 47, 11, 50, 27, 37, 13, 33, 8, 51, 46, 1, 34, 28, 40, 3, 33, 60, 29, 47, 1, 35, 11, 59, 42, 2, 60, 26, 46, 6, 35}, {4, 43, 9, 29, 36, 63, 24, 44, 20, 50, 30, 17, 60, 22, 16, 43, 25, 3, 42, 19, 51, 15, 8, 54, 42, 15, 61, 5, 39, 57, 18, 61, 31, 48, 34, 2, 50, 19, 57, 5, 63, 33, 19, 38, 13, 27, 48, 7, 32, 61, 2, 26, 58, 6, 24, 50, 13, 61, 42, 20, 62, 2, 35, 20, 51, 4, 62, 18, 23, 58, 20, 31, 43, 15, 51, 45, 26, 50, 4, 55, 45, 3, 35, 9, 38, 1, 32, 61, 20, 45, 17, 33, 24, 57, 29, 51, 22, 58, 38, 30, 15, 1, 54, 21, 63, 43, 26, 12, 24, 56, 8, 60, 50, 19, 5, 52, 13, 54, 17, 50, 4, 16, 36, 12, 32, 56, 22, 54}, {51, 25, 40, 53, 12, 49, 15, 57, 34, 7, 38, 47, 2, 36, 55, 8, 61, 30, 56, 7, 28, 59, 48, 11, 27, 35, 21, 45, 28, 36, 9, 38, 6, 16, 24, 63, 10, 32, 28, 43, 21, 53, 5, 60, 8, 57, 3, 45, 11, 37, 15, 54, 40, 20, 62, 36, 27, 34, 11, 48, 30, 15, 54, 8, 30, 42, 22, 34, 48, 13, 35, 63, 4, 37, 22, 2, 59, 9, 41, 23, 13, 41, 49, 18, 59, 24, 40, 5, 37, 30, 9, 61, 44, 6, 37, 11, 33, 17, 5, 55, 41, 60, 23, 39, 17, 5, 30, 62, 41, 16, 46, 25, 11, 56, 39, 26, 20, 38, 29, 39, 22, 52, 44, 20, 48, 1, 38, 14}, {15, 33, 2, 18, 44, 6, 27, 0, 32, 61, 25, 12, 58, 28, 40, 20, 47, 13, 34, 43, 38, 1, 23, 62, 40, 0, 51, 10, 63, 3, 52, 26, 44, 30, 45, 6, 41, 54, 0, 51, 12, 30, 46, 24, 49, 22, 40, 33, 63, 23, 43, 30, 9, 47, 0, 17, 54, 7, 57, 3, 37, 47, 24, 46, 13, 55, 7, 52, 2, 42, 6, 26, 49, 18, 60, 34, 16, 57, 33, 20, 61, 30, 8, 54, 14, 46, 12, 53, 16, 55, 38, 13, 22, 53, 18, 59, 46, 27, 43, 19, 32, 10, 45, 6, 49, 36, 52, 2, 20, 55, 6, 39, 32, 15, 44, 3, 58, 10, 63, 6, 56, 30, 7, 58, 9, 40, 19, 63}, {10, 47, 61, 23, 55, 31, 52, 42, 17, 45, 4, 51, 27, 6, 15, 53, 0, 49, 26, 10, 56, 18, 36, 6, 20, 58, 32, 30, 13, 49, 19, 56, 0, 59, 12, 53, 27, 17, 38, 25, 48, 9, 15, 36, 14, 30, 59, 17, 0, 50, 8, 58, 18, 56, 31, 45, 21, 41, 29, 19, 60, 6, 32, 59, 0, 36, 29, 39, 19, 59, 46, 12, 55, 30, 10, 47, 24, 3, 28, 48, 0, 55, 44, 27, 33, 4, 63, 29, 49, 0, 26, 50, 34, 2, 42, 14, 0, 62, 9, 56, 3, 52, 28, 34, 58, 9, 20, 48, 37, 32, 22, 53, 0, 62, 27, 49, 34, 46, 21, 33, 41, 14, 25, 37, 53, 29, 31, 45}, {56, 28, 7, 37, 11, 36, 20, 9, 54, 14, 39, 19, 34, 63, 45, 37, 24, 17, 60, 31, 21, 45, 53, 29, 47, 15, 7, 55, 40, 23, 34, 14, 42, 20, 37, 35, 15, 59, 7, 62, 34, 40, 59, 1, 51, 42, 10, 28, 54, 21, 35, 5, 38, 13, 36, 4, 59, 12, 39, 53, 15, 43, 9, 21, 39, 62, 16, 56, 25, 9, 32, 38, 0, 41, 14, 51, 40, 53, 43, 11, 37, 17, 5, 22, 57, 39, 19, 7, 42, 21, 60, 10, 31, 63, 25, 52, 30, 49, 36, 25, 48, 17, 61, 14, 22, 42, 29, 13, 60, 11, 47, 18, 35, 41, 7, 23, 4, 16, 51, 11, 0, 48, 61, 3, 17, 50, 5, 24}, {0, 42, 21, 49, 60, 3, 57, 40, 29, 48, 23, 56, 42, 11, 22, 5, 59, 39, 4, 50, 3, 41, 12, 57, 25, 50, 44, 18, 4, 46, 7, 62, 33, 50, 4, 56, 21, 32, 43, 18, 3, 23, 55, 34, 20, 4, 53, 38, 12, 46, 29, 52, 25, 61, 23, 51, 26, 46, 1, 34, 25, 57, 28, 51, 26, 11, 50, 3, 44, 28, 53, 21, 57, 27, 62, 6, 31, 19, 8, 63, 26, 59, 36, 47, 15, 29, 50, 25, 35, 47, 18, 41, 4, 48, 8, 40, 12, 23, 6, 44, 13, 40, 1, 31, 55, 0, 61, 43, 4, 50, 26, 58, 9, 53, 24, 61, 42, 55, 31, 43, 57, 20, 34, 27, 43, 8, 59, 39}, {18, 51, 30, 13, 26, 16, 46, 22, 2, 59, 8, 30, 1, 48, 33, 51, 29, 9, 46, 16, 62, 14, 33, 2, 38, 9, 27, 60, 37, 26, 53, 17, 28, 10, 24, 46, 2, 49, 8, 57, 29, 45, 6, 26, 62, 44, 18, 25, 61, 3, 42, 14, 49, 10, 43, 6, 17, 32, 63, 10, 49, 4, 40, 14, 45, 33, 22, 37, 12, 61, 5, 17, 43, 7, 23, 37, 15, 58, 49, 13, 39, 21, 10, 52, 1, 62, 9, 56, 12, 2, 58, 28, 36, 16, 56, 28, 56, 35, 20, 63, 24, 37, 51, 8, 45, 25, 16, 33, 27, 38, 2, 44, 13, 30, 17, 36, 12, 26, 5, 18, 28, 47, 13, 60, 23, 45, 13, 33}, {55, 4, 62, 34, 52, 38, 7, 63, 32, 37, 13, 53, 25, 62, 18, 12, 55, 41, 27, 35, 24, 49, 31, 52, 17, 63, 34, 1, 56, 12, 41, 2, 48, 58, 39, 16, 61, 27, 41, 52, 13, 19, 50, 39, 11, 31, 57, 6, 32, 40, 20, 55, 1, 28, 33, 57, 48, 8, 37, 22, 44, 18, 53, 1, 61, 5, 54, 16, 47, 36, 50, 24, 55, 34, 48, 45, 1, 30, 33, 46, 2, 50, 32, 42, 25, 34, 43, 21, 38, 52, 23, 45, 14, 54, 21, 4, 44, 16, 53, 29, 10, 47, 19, 57, 12, 54, 39, 10, 51, 15, 63, 21, 57, 40, 51, 1, 48, 57, 37, 62, 2, 38, 9, 52, 1, 35, 58, 22}, {36, 46, 10, 42, 1, 27, 43, 15, 50, 21, 45, 16, 41, 3, 35, 44, 20, 1, 57, 11, 55, 7, 43, 8, 22, 42, 13, 46, 21, 39, 31, 60, 22, 5, 29, 44, 11, 35, 20, 4, 36, 58, 32, 15, 47, 2, 36, 48, 16, 60, 8, 35, 44, 63, 16, 2, 40, 26, 55, 14, 58, 35, 24, 31, 19, 42, 31, 58, 1, 29, 10, 40, 2, 19, 12, 54, 22, 61, 7, 24, 56, 5, 28, 16, 54, 3, 15, 58, 6, 30, 8, 62, 1, 43, 31, 47, 7, 59, 1, 38, 58, 4, 34, 27, 38, 5, 31, 59, 7, 46, 30, 3, 34, 6, 28, 59, 20, 8, 32, 15, 53, 24, 55, 31, 19, 49, 11, 26}, {2, 24, 16, 58, 19, 55, 5, 35, 10, 61, 4, 28, 57, 24, 58, 7, 31, 47, 22, 38, 19, 28, 61, 36, 54, 5, 59, 29, 6, 52, 15, 11, 43, 36, 8, 54, 52, 1, 62, 25, 47, 9, 1, 60, 28, 53, 24, 14, 46, 27, 51, 22, 12, 24, 38, 53, 20, 11, 51, 3, 29, 7, 48, 63, 8, 49, 9, 21, 52, 14, 63, 32, 46, 60, 35, 4, 41, 16, 52, 35, 18, 42, 59, 7, 36, 61, 45, 27, 33, 51, 19, 39, 34, 11, 61, 18, 33, 41, 28, 15, 54, 22, 42, 3, 49, 21, 47, 18, 36, 23, 55, 19, 48, 24, 45, 10, 33, 44, 50, 40, 7, 35, 15, 41, 63, 6, 40, 54}, {62, 41, 32, 8, 47, 28, 60, 24, 44, 30, 38, 49, 9, 33, 14, 40, 50, 14, 60, 2, 54, 40, 0, 20, 25, 39, 16, 49, 24, 35, 57, 47, 19, 61, 33, 18, 23, 37, 13, 55, 31, 43, 22, 41, 17, 8, 42, 58, 0, 37, 5, 56, 31, 54, 7, 30, 60, 33, 42, 17, 59, 39, 12, 27, 38, 17, 35, 41, 27, 45, 20, 7, 25, 15, 29, 58, 27, 47, 11, 40, 14, 54, 23, 46, 19, 31, 11, 40, 13, 49, 5, 58, 24, 51, 26, 6, 50, 20, 49, 9, 32, 46, 17, 60, 14, 63, 24, 1, 57, 41, 9, 43, 14, 62, 16, 52, 3, 27, 14, 22, 61, 45, 4, 28, 9, 47, 29, 17}, {5, 50, 12, 53, 38, 18, 11, 51, 0, 55, 17, 6, 47, 54, 19, 63, 5, 26, 34, 45, 13, 30, 47, 58, 10, 48, 32, 3, 62, 9, 26, 0, 25, 14, 50, 3, 47, 30, 42, 16, 6, 63, 12, 49, 33, 55, 21, 10, 34, 63, 18, 41, 3, 47, 19, 43, 0, 49, 8, 28, 46, 20, 52, 0, 56, 24, 60, 3, 59, 5, 39, 57, 48, 52, 9, 38, 3, 21, 26, 60, 0, 32, 12, 38, 4, 48, 53, 0, 60, 15, 29, 44, 18, 10, 38, 57, 13, 60, 2, 26, 62, 7, 50, 29, 35, 8, 40, 53, 28, 12, 60, 33, 38, 5, 37, 29, 60, 39, 56, 0, 30, 18, 50, 34, 59, 25, 14, 44}, {20, 31, 60, 22, 3, 49, 33, 25, 40, 13, 34, 59, 22, 36, 0, 28, 37, 56, 8, 18, 51, 16, 4, 45, 27, 12, 53, 42, 18, 44, 51, 31, 55, 40, 28, 58, 7, 60, 10, 51, 27, 37, 24, 56, 5, 26, 44, 29, 50, 23, 45, 11, 34, 15, 59, 27, 13, 23, 62, 37, 4, 57, 15, 32, 42, 6, 47, 11, 30, 43, 23, 13, 0, 36, 18, 44, 63, 51, 37, 29, 49, 20, 57, 27, 62, 9, 24, 35, 23, 53, 37, 3, 42, 55, 0, 36, 23, 39, 31, 43, 17, 37, 24, 11, 52, 43, 19, 32, 5, 50, 26, 0, 56, 21, 54, 11, 19, 6, 47, 25, 59, 42, 12, 54, 21, 3, 38, 57}, {48, 0, 35, 27, 44, 14, 59, 7, 57, 46, 26, 2, 42, 12, 52, 43, 10, 27, 53, 42, 32, 62, 37, 21, 34, 61, 7, 23, 36, 4, 38, 12, 41, 5, 17, 45, 22, 27, 39, 21, 59, 0, 45, 18, 39, 62, 3, 38, 14, 7, 54, 26, 61, 39, 9, 52, 45, 36, 18, 50, 10, 34, 44, 22, 50, 14, 36, 55, 17, 34, 53, 62, 33, 26, 56, 6, 31, 12, 6, 53, 9, 44, 2, 50, 20, 40, 55, 17, 47, 7, 26, 63, 22, 32, 48, 16, 46, 8, 52, 12, 57, 41, 0, 56, 25, 3, 61, 14, 45, 35, 18, 44, 12, 46, 23, 42, 32, 51, 35, 10, 17, 36, 23, 1, 45, 52, 32, 10}, {37, 15, 43, 8, 63, 39, 21, 31, 16, 37, 19, 62, 30, 46, 17, 60, 21, 48, 1, 23, 6, 25, 11, 56, 1, 40, 30, 58, 15, 54, 21, 59, 9, 63, 35, 56, 11, 51, 2, 46, 34, 14, 53, 7, 30, 11, 51, 19, 60, 40, 30, 1, 24, 50, 20, 32, 3, 56, 5, 25, 31, 13, 61, 2, 29, 60, 25, 20, 51, 2, 27, 8, 18, 42, 10, 45, 21, 34, 43, 17, 62, 29, 41, 14, 34, 6, 30, 43, 2, 57, 33, 13, 45, 12, 27, 62, 4, 55, 21, 35, 5, 27, 45, 33, 16, 47, 30, 54, 22, 10, 51, 27, 63, 7, 49, 1, 58, 22, 15, 43, 53, 7, 57, 39, 27, 12, 61, 24}, {56, 51, 26, 56, 19, 2, 41, 54, 5, 52, 9, 48, 6, 23, 39, 4, 32, 15, 63, 35, 59, 49, 43, 15, 52, 19, 50, 9, 46, 33, 1, 29, 48, 20, 32, 1, 38, 33, 19, 54, 9, 32, 24, 48, 58, 35, 16, 48, 4, 52, 13, 57, 33, 5, 45, 59, 15, 29, 41, 55, 47, 39, 23, 53, 9, 40, 4, 57, 10, 44, 48, 40, 50, 14, 61, 24, 55, 1, 59, 22, 33, 8, 51, 25, 58, 46, 11, 59, 20, 41, 17, 51, 6, 56, 35, 25, 42, 30, 15, 58, 48, 18, 61, 9, 58, 39, 13, 2, 37, 59, 40, 2, 31, 16, 34, 41, 8, 30, 62, 3, 29, 48, 33, 5, 63, 16, 41, 7}, {22, 4, 46, 11, 33, 51, 29, 10, 62, 24, 43, 27, 15, 58, 50, 25, 54, 44, 9, 38, 18, 3, 29, 57, 32, 5, 26, 43, 17, 61, 24, 52, 8, 42, 23, 53, 15, 61, 7, 28, 57, 43, 4, 40, 20, 2, 43, 25, 32, 35, 21, 43, 17, 48, 10, 22, 38, 54, 11, 21, 1, 58, 16, 30, 48, 18, 46, 32, 38, 13, 22, 4, 59, 35, 2, 51, 30, 39, 15, 47, 4, 56, 13, 37, 1, 28, 16, 52, 32, 9, 61, 29, 38, 19, 3, 52, 10, 48, 1, 32, 11, 40, 20, 36, 6, 22, 49, 29, 55, 6, 20, 56, 36, 52, 19, 60, 26, 46, 18, 54, 40, 13, 20, 46, 35, 19, 49, 29}, {61, 17, 34, 53, 23, 6, 48, 35, 20, 40, 1, 56, 36, 29, 11, 34, 7, 41, 14, 30, 55, 20, 46, 8, 24, 38, 63, 2, 37, 10, 45, 14, 34, 49, 6, 13, 44, 25, 49, 41, 21, 12, 61, 15, 54, 29, 63, 12, 56, 8, 49, 2, 62, 36, 28, 61, 0, 25, 41, 63, 35, 8, 44, 6, 37, 62, 7, 21, 63, 28, 55, 31, 16, 24, 41, 19, 9, 57, 27, 36, 18, 42, 31, 62, 22, 55, 38, 4, 27, 47, 1, 40, 14, 54, 43, 20, 60, 23, 38, 63, 25, 51, 2, 53, 26, 63, 10, 42, 17, 34, 47, 25, 13, 5, 44, 11, 55, 2, 38, 27, 6, 60, 52, 25, 9, 55, 1, 40}, {8, 30, 58, 3, 42, 61, 17, 38, 13, 59, 32, 10, 54, 3, 51, 20, 61, 26, 57, 2, 46, 33, 12, 60, 41, 13, 48, 29, 55, 20, 39, 27, 57, 18, 62, 29, 55, 2, 31, 16, 37, 50, 26, 36, 6, 46, 9, 41, 27, 57, 23, 39, 26, 6, 51, 12, 31, 46, 7, 16, 27, 52, 19, 56, 26, 12, 33, 53, 1, 41, 8, 57, 46, 7, 54, 32, 47, 5, 49, 11, 60, 23, 5, 48, 10, 43, 19, 63, 35, 24, 49, 21, 59, 5, 31, 37, 14, 44, 7, 42, 6, 30, 46, 13, 44, 32, 19, 50, 4, 58, 8, 30, 62, 38, 28, 53, 21, 36, 13, 50, 21, 33, 15, 2, 44, 31, 14, 47}, {37, 13, 39, 16, 28, 9, 57, 0, 25, 49, 21, 45, 18, 47, 12, 42, 0, 49, 22, 39, 16, 53, 25, 36, 0, 52, 22, 16, 6, 60, 4, 51, 0, 26, 37, 47, 10, 36, 63, 5, 57, 0, 18, 59, 23, 33, 51, 19, 0, 44, 15, 11, 54, 17, 42, 35, 53, 18, 58, 33, 49, 4, 34, 42, 0, 50, 43, 25, 16, 49, 34, 20, 37, 28, 12, 63, 16, 38, 25, 44, 0, 40, 52, 17, 35, 3, 50, 14, 8, 53, 11, 36, 25, 45, 9, 62, 0, 54, 28, 17, 50, 55, 15, 24, 57, 0, 53, 34, 23, 41, 15, 45, 0, 49, 16, 4, 48, 9, 63, 45, 0, 42, 58, 37, 61, 22, 54, 26}, {0, 50, 21, 47, 54, 36, 27, 45, 52, 4, 34, 15, 63, 29, 37, 59, 17, 31, 6, 61, 28, 5, 48, 18, 59, 27, 34, 56, 44, 31, 35, 12, 41, 59, 16, 3, 40, 20, 50, 22, 30, 40, 52, 10, 45, 3, 59, 22, 37, 61, 29, 46, 31, 58, 2, 22, 9, 43, 3, 39, 14, 61, 24, 54, 15, 29, 11, 60, 39, 17, 5, 61, 0, 44, 50, 3, 31, 14, 58, 21, 54, 28, 15, 45, 60, 26, 33, 58, 44, 22, 60, 2, 57, 34, 49, 27, 18, 34, 21, 59, 29, 4, 36, 41, 8, 39, 28, 11, 62, 26, 53, 20, 35, 24, 59, 32, 29, 39, 24, 31, 57, 23, 11, 28, 5, 36, 11, 59}, {44, 32, 63, 5, 20, 12, 41, 7, 30, 61, 42, 8, 39, 5, 33, 8, 24, 53, 45, 11, 37, 58, 7, 44, 10, 50, 3, 40, 8, 22, 53, 19, 46, 9, 33, 52, 24, 58, 8, 44, 13, 47, 8, 34, 38, 30, 14, 47, 7, 34, 4, 55, 9, 19, 40, 49, 56, 26, 60, 21, 30, 45, 10, 19, 40, 58, 23, 36, 3, 52, 45, 23, 54, 13, 22, 42, 53, 45, 7, 33, 10, 36, 57, 6, 29, 12, 41, 0, 30, 15, 41, 30, 17, 7, 16, 53, 40, 56, 2, 39, 12, 61, 10, 52, 31, 60, 16, 45, 1, 37, 7, 61, 40, 10, 43, 17, 58, 7, 54, 14, 4, 51, 39, 49, 18, 56, 42, 20}, {14, 6, 24, 36, 56, 49, 22, 60, 18, 14, 23, 51, 26, 57, 21, 52, 41, 14, 35, 50, 19, 31, 40, 23, 33, 14, 63, 17, 32, 47, 7, 62, 23, 30, 56, 11, 42, 27, 14, 60, 35, 19, 28, 61, 17, 55, 25, 39, 53, 17, 42, 21, 38, 63, 25, 5, 14, 36, 12, 50, 1, 37, 59, 32, 2, 51, 6, 56, 27, 32, 11, 30, 38, 26, 60, 8, 26, 19, 62, 39, 50, 2, 21, 39, 53, 23, 56, 19, 49, 39, 5, 46, 55, 23, 42, 4, 31, 11, 47, 26, 45, 22, 48, 18, 21, 5, 48, 25, 57, 14, 47, 30, 3, 56, 12, 50, 1, 42, 19, 47, 35, 17, 8, 30, 45, 25, 4, 51}, {28, 58, 43, 1, 31, 8, 33, 2, 44, 55, 32, 1, 60, 12, 46, 27, 4, 62, 23, 1, 56, 13, 62, 2, 54, 36, 25, 51, 1, 57, 26, 42, 3, 49, 17, 38, 1, 48, 31, 4, 54, 3, 50, 24, 1, 49, 5, 63, 13, 27, 52, 1, 48, 13, 45, 33, 52, 30, 46, 20, 55, 28, 6, 48, 24, 38, 20, 47, 14, 62, 48, 9, 58, 4, 36, 30, 56, 1, 34, 12, 18, 63, 25, 48, 4, 16, 37, 7, 62, 10, 52, 28, 13, 50, 36, 63, 24, 51, 15, 58, 8, 33, 1, 38, 56, 35, 42, 9, 33, 51, 22, 18, 48, 32, 27, 37, 23, 61, 33, 11, 59, 29, 62, 1, 53, 10, 60, 33}, {12, 39, 17, 52, 26, 46, 53, 38, 25, 11, 48, 36, 16, 43, 2, 35, 55, 17, 39, 29, 43, 9, 28, 45, 20, 5, 46, 12, 42, 28, 13, 52, 36, 6, 60, 22, 54, 17, 62, 39, 25, 42, 15, 55, 44, 20, 31, 10, 35, 57, 24, 32, 29, 6, 59, 18, 7, 62, 3, 41, 10, 44, 16, 54, 13, 62, 31, 9, 41, 1, 21, 43, 18, 47, 15, 40, 11, 49, 28, 55, 46, 30, 8, 43, 32, 61, 28, 47, 25, 34, 21, 61, 32, 1, 20, 9, 46, 6, 35, 19, 41, 54, 27, 63, 14, 3, 51, 20, 62, 2, 38, 55, 8, 21, 63, 6, 46, 9, 26, 51, 3, 24, 43, 34, 16, 41, 18, 48}, {62, 23, 55, 9, 15, 62, 19, 13, 58, 40, 6, 30, 54, 19, 50, 31, 10, 44, 6, 59, 21, 47, 51, 15, 60, 39, 30, 54, 21, 61, 19, 33, 14, 29, 43, 11, 34, 45, 7, 21, 10, 56, 36, 6, 38, 11, 58, 42, 2, 47, 11, 60, 50, 16, 41, 28, 38, 23, 47, 17, 35, 63, 22, 33, 42, 5, 45, 17, 53, 35, 25, 56, 33, 6, 51, 19, 60, 23, 43, 15, 5, 40, 58, 13, 51, 1, 45, 11, 54, 3, 43, 8, 37, 48, 59, 29, 39, 21, 61, 43, 3, 31, 10, 44, 24, 29, 60, 12, 28, 40, 11, 25, 43, 52, 14, 41, 16, 57, 44, 20, 40, 55, 12, 21, 57, 27, 35, 2}, {37, 6, 31, 42, 40, 4, 29, 50, 0, 20, 63, 28, 9, 58, 14, 24, 63, 26, 48, 16, 34, 4, 32, 38, 23, 11, 58, 4, 37, 9, 45, 5, 63, 48, 26, 57, 2, 28, 32, 51, 46, 29, 13, 62, 27, 46, 28, 18, 50, 15, 40, 4, 19, 34, 54, 0, 53, 9, 26, 58, 28, 5, 49, 0, 57, 27, 19, 60, 29, 8, 59, 12, 37, 63, 24, 46, 3, 37, 6, 52, 26, 32, 20, 36, 9, 22, 59, 18, 35, 51, 14, 57, 17, 24, 12, 44, 56, 0, 30, 13, 59, 20, 49, 17, 54, 43, 6, 34, 46, 17, 58, 36, 0, 34, 29, 54, 25, 2, 36, 15, 60, 6, 37, 46, 4, 50, 9, 45}, {19, 59, 48, 3, 24, 60, 44, 22, 34, 51, 15, 45, 41, 5, 33, 47, 0, 37, 12, 55, 25, 54, 8, 57, 0, 47, 18, 34, 49, 15, 55, 24, 40, 20, 8, 35, 53, 13, 41, 18, 0, 59, 22, 33, 4, 52, 8, 60, 24, 36, 31, 56, 45, 26, 10, 43, 15, 56, 36, 4, 51, 14, 39, 30, 12, 55, 36, 2, 39, 49, 4, 44, 17, 0, 32, 13, 53, 35, 59, 17, 62, 0, 55, 24, 52, 38, 31, 6, 42, 19, 29, 40, 4, 54, 33, 5, 16, 27, 52, 37, 23, 55, 7, 37, 0, 39, 23, 49, 4, 53, 31, 15, 59, 10, 50, 4, 60, 34, 48, 7, 31, 49, 27, 14, 62, 22, 53, 29}, {46, 21, 14, 51, 36, 17, 7, 57, 10, 32, 3, 37, 22, 60, 39, 18, 56, 20, 42, 3, 36, 10, 44, 26, 41, 29, 53, 27, 2, 39, 30, 52, 0, 59, 15, 48, 23, 61, 6, 58, 37, 12, 40, 49, 16, 39, 20, 44, 0, 62, 8, 21, 3, 59, 23, 32, 49, 31, 12, 44, 22, 59, 18, 50, 24, 7, 43, 52, 15, 23, 41, 26, 51, 28, 55, 39, 21, 27, 10, 42, 12, 45, 27, 47, 3, 15, 63, 26, 55, 0, 60, 26, 45, 18, 62, 38, 58, 49, 8, 47, 4, 33, 46, 29, 57, 13, 56, 16, 59, 21, 5, 47, 23, 39, 18, 44, 13, 22, 28, 53, 19, 0, 58, 32, 41, 7, 26, 13}, {0, 56, 34, 28, 11, 55, 31, 47, 26, 41, 56, 13, 53, 28, 11, 49, 7, 52, 32, 61, 50, 22, 63, 17, 13, 56, 7, 19, 43, 62, 10, 21, 37, 32, 43, 4, 38, 19, 44, 25, 31, 54, 5, 23, 61, 30, 53, 12, 35, 22, 43, 53, 37, 48, 7, 62, 20, 2, 61, 41, 8, 34, 47, 9, 63, 34, 28, 10, 55, 33, 14, 57, 7, 47, 9, 61, 4, 49, 31, 50, 21, 38, 8, 16, 57, 44, 33, 5, 49, 36, 12, 50, 7, 34, 10, 25, 2, 22, 36, 15, 26, 61, 18, 9, 22, 46, 32, 8, 27, 37, 44, 30, 55, 3, 62, 24, 38, 56, 5, 45, 38, 24, 43, 10, 19, 54, 39, 61}, {41, 30, 8, 63, 43, 23, 38, 3, 62, 19, 8, 49, 25, 1, 58, 30, 23, 40, 9, 28, 18, 40, 6, 38, 49, 22, 35, 59, 8, 27, 50, 5, 56, 17, 11, 50, 30, 9, 55, 2, 51, 19, 34, 47, 9, 41, 6, 26, 48, 57, 14, 28, 17, 12, 39, 13, 37, 46, 25, 19, 54, 27, 1, 37, 16, 45, 20, 60, 1, 48, 20, 38, 31, 22, 42, 15, 19, 44, 1, 61, 6, 34, 56, 40, 29, 10, 20, 46, 13, 22, 41, 23, 59, 42, 30, 51, 45, 13, 63, 53, 42, 12, 51, 38, 62, 2, 26, 41, 50, 1, 61, 10, 19, 42, 31, 8, 49, 32, 12, 63, 9, 52, 16, 56, 36, 2, 31, 16}, {52, 5, 47, 20, 1, 53, 12, 50, 16, 35, 43, 21, 33, 43, 16, 44, 3, 59, 14, 46, 1, 30, 60, 33, 2, 45, 12, 42, 31, 47, 14, 33, 46, 25, 55, 27, 60, 36, 16, 42, 14, 46, 26, 1, 55, 15, 63, 32, 2, 38, 5, 47, 33, 61, 30, 52, 4, 57, 6, 38, 11, 43, 61, 24, 52, 3, 31, 22, 42, 10, 62, 3, 59, 11, 35, 57, 33, 54, 24, 14, 29, 48, 18, 2, 60, 41, 53, 24, 32, 62, 3, 53, 15, 1, 55, 17, 32, 40, 6, 31, 1, 40, 28, 5, 35, 52, 19, 63, 13, 33, 17, 41, 52, 26, 15, 57, 1, 20, 42, 17, 35, 27, 48, 5, 25, 50, 44, 11}, {35, 25, 38, 57, 33, 17, 40, 6, 59, 27, 54, 5, 61, 10, 52, 26, 36, 19, 51, 35, 57, 48, 11, 20, 54, 25, 61, 16, 1, 58, 24, 61, 3, 39, 7, 47, 1, 22, 49, 28, 63, 10, 58, 32, 17, 36, 45, 19, 51, 29, 59, 10, 50, 1, 23, 42, 18, 29, 51, 21, 56, 32, 14, 5, 40, 58, 47, 13, 54, 35, 29, 45, 18, 52, 26, 2, 38, 8, 46, 36, 58, 11, 52, 35, 17, 28, 1, 58, 9, 39, 17, 28, 37, 48, 20, 9, 57, 24, 50, 19, 58, 16, 48, 25, 43, 11, 35, 6, 45, 24, 56, 4, 36, 7, 47, 35, 52, 28, 59, 30, 2, 61, 21, 33, 63, 12, 18, 59}, {3, 49, 15, 10, 27, 61, 25, 45, 30, 0, 14, 47, 31, 38, 17, 62, 7, 55, 27, 4, 15, 24, 42, 52, 10, 34, 5, 51, 36, 18, 41, 11, 35, 21, 62, 13, 33, 57, 8, 35, 5, 40, 21, 43, 52, 3, 24, 56, 11, 16, 33, 25, 41, 20, 55, 8, 60, 35, 15, 48, 2, 57, 30, 49, 18, 25, 6, 39, 17, 57, 7, 25, 43, 5, 49, 16, 62, 22, 55, 4, 25, 43, 23, 7, 50, 11, 37, 48, 14, 51, 33, 57, 7, 27, 39, 46, 4, 29, 11, 43, 34, 56, 7, 60, 20, 54, 30, 57, 22, 49, 9, 33, 54, 14, 63, 23, 6, 43, 10, 40, 50, 13, 44, 8, 38, 33, 46, 23}, {55, 39, 22, 50, 44, 4, 36, 9, 52, 23, 37, 59, 21, 2, 46, 13, 31, 41, 11, 45, 62, 29, 6, 37, 19, 48, 30, 23, 44, 7, 53, 28, 54, 16, 41, 29, 44, 18, 52, 24, 60, 15, 48, 7, 27, 59, 9, 34, 42, 54, 7, 63, 4, 46, 31, 27, 45, 0, 40, 26, 34, 17, 37, 10, 53, 29, 36, 50, 2, 27, 51, 11, 61, 37, 23, 41, 30, 7, 18, 50, 39, 14, 63, 32, 45, 61, 19, 30, 25, 44, 2, 47, 23, 63, 11, 34, 59, 37, 60, 3, 22, 14, 44, 30, 15, 0, 47, 15, 3, 38, 61, 20, 27, 45, 11, 39, 51, 16, 55, 3, 22, 54, 29, 58, 1, 57, 6, 29}, {9, 17, 60, 2, 34, 56, 20, 62, 39, 12, 49, 6, 29, 56, 34, 48, 0, 58, 22, 38, 18, 43, 56, 0, 63, 14, 55, 3, 59, 31, 15, 45, 0, 49, 6, 58, 3, 38, 12, 45, 0, 37, 29, 57, 13, 39, 30, 49, 0, 23, 44, 36, 16, 57, 13, 54, 11, 24, 63, 9, 53, 7, 62, 42, 0, 59, 15, 23, 63, 34, 40, 16, 32, 0, 53, 12, 48, 28, 59, 33, 0, 53, 9, 27, 3, 22, 54, 5, 56, 9, 61, 13, 42, 14, 52, 19, 0, 21, 47, 27, 53, 36, 3, 50, 39, 58, 25, 40, 53, 28, 12, 50, 0, 59, 32, 2, 21, 34, 26, 46, 37, 7, 18, 47, 24, 14, 53, 42}, {61, 32, 13, 54, 29, 7, 46, 13, 28, 57, 18, 41, 53, 15, 9, 39, 24, 49, 33, 3, 53, 9, 26, 32, 40, 28, 46, 39, 25, 9, 56, 21, 63, 37, 26, 22, 51, 27, 17, 56, 31, 53, 4, 43, 22, 46, 12, 18, 60, 40, 20, 26, 50, 21, 39, 5, 49, 33, 16, 44, 22, 46, 20, 32, 24, 45, 8, 43, 12, 46, 4, 48, 56, 20, 29, 58, 3, 40, 10, 42, 31, 21, 47, 41, 56, 38, 15, 42, 36, 27, 20, 33, 55, 3, 26, 44, 31, 54, 12, 35, 9, 63, 28, 10, 21, 32, 9, 60, 17, 8, 43, 29, 40, 16, 36, 48, 60, 7, 57, 14, 62, 31, 42, 15, 36, 40, 20, 26}, {0, 37, 47, 23, 41, 18, 32, 48, 1, 35, 8, 25, 4, 26, 63, 20, 54, 8, 16, 61, 35, 23, 51, 15, 58, 7, 12, 20, 50, 34, 42, 4, 38, 10, 32, 47, 8, 60, 41, 20, 9, 25, 50, 19, 62, 1, 37, 56, 28, 8, 53, 11, 3, 58, 34, 43, 19, 60, 38, 4, 58, 31, 3, 51, 11, 55, 38, 30, 21, 58, 19, 26, 9, 44, 36, 13, 46, 20, 62, 24, 13, 60, 5, 28, 12, 34, 7, 59, 0, 53, 45, 6, 38, 30, 50, 7, 62, 16, 41, 5, 46, 18, 55, 42, 51, 5, 45, 23, 34, 48, 19, 58, 5, 25, 54, 19, 13, 41, 28, 21, 0, 49, 10, 60, 4, 51, 9, 45}, {19, 28, 6, 58, 10, 51, 4, 22, 55, 42, 60, 45, 34, 51, 42, 5, 30, 45, 27, 40, 13, 47, 4, 49, 21, 38, 60, 29, 2, 57, 17, 27, 52, 19, 61, 14, 30, 34, 2, 44, 63, 33, 11, 35, 16, 51, 25, 6, 14, 47, 31, 61, 37, 29, 18, 8, 52, 2, 28, 54, 13, 41, 15, 62, 35, 18, 2, 60, 6, 33, 41, 61, 31, 6, 56, 17, 34, 50, 6, 52, 44, 35, 16, 51, 59, 24, 48, 18, 31, 40, 16, 49, 21, 60, 17, 39, 10, 49, 32, 57, 24, 39, 1, 25, 18, 62, 37, 12, 56, 1, 37, 11, 52, 44, 9, 30, 47, 4, 51, 40, 55, 25, 34, 27, 56, 30, 32, 54}, {63, 40, 49, 15, 43, 26, 63, 38, 16, 20, 30, 12, 57, 14, 19, 60, 36, 12, 59, 2, 57, 17, 42, 31, 1, 44, 16, 35, 47, 11, 32, 48, 13, 43, 1, 39, 51, 12, 57, 23, 6, 40, 53, 3, 55, 31, 39, 60, 35, 44, 5, 15, 45, 1, 62, 41, 26, 14, 47, 22, 36, 27, 50, 9, 26, 47, 52, 28, 54, 16, 1, 13, 51, 39, 23, 63, 1, 30, 15, 26, 2, 57, 19, 37, 1, 44, 21, 50, 13, 63, 8, 24, 56, 1, 35, 25, 58, 20, 2, 28, 14, 51, 33, 59, 13, 30, 4, 49, 31, 24, 63, 26, 33, 3, 58, 38, 62, 24, 32, 8, 17, 45, 5, 48, 18, 3, 43, 11}, {21, 4, 24, 34, 59, 1, 37, 11, 53, 5, 47, 2, 22, 40, 32, 1, 24, 50, 21, 29, 38, 25, 63, 8, 55, 24, 53, 6, 62, 23, 59, 3, 54, 20, 58, 24, 5, 46, 15, 38, 48, 14, 27, 42, 23, 7, 46, 10, 17, 58, 25, 52, 23, 32, 49, 12, 55, 30, 40, 7, 59, 1, 56, 21, 39, 4, 23, 15, 37, 46, 55, 42, 21, 4, 48, 8, 45, 54, 37, 55, 32, 8, 46, 10, 30, 54, 4, 41, 25, 29, 36, 48, 11, 43, 14, 47, 5, 43, 53, 36, 61, 10, 45, 6, 41, 54, 27, 43, 16, 55, 6, 46, 18, 42, 23, 15, 1, 45, 12, 60, 37, 22, 62, 12, 39, 59, 16, 52}, {47, 35, 56, 7, 19, 46, 31, 50, 33, 24, 61, 35, 50, 7, 53, 44, 55, 6, 46, 10, 52, 5, 21, 43, 36, 10, 18, 41, 26, 37, 8, 29, 40, 36, 9, 49, 34, 26, 61, 21, 7, 59, 18, 62, 29, 54, 20, 32, 51, 0, 40, 10, 55, 6, 20, 36, 9, 61, 5, 51, 44, 19, 33, 43, 13, 57, 40, 63, 8, 24, 29, 10, 60, 34, 27, 40, 25, 18, 10, 42, 21, 49, 26, 62, 38, 12, 33, 61, 5, 57, 2, 19, 54, 28, 62, 22, 38, 31, 16, 7, 22, 47, 29, 17, 35, 8, 20, 51, 2, 40, 22, 50, 13, 61, 28, 53, 35, 20, 56, 30, 2, 53, 14, 41, 23, 34, 8, 31}, {12, 2, 42, 29, 52, 13, 21, 8, 55, 14, 41, 17, 28, 58, 23, 11, 17, 36, 31, 62, 17, 34, 50, 14, 28, 61, 33, 52, 2, 51, 17, 45, 7, 25, 62, 30, 18, 55, 0, 42, 30, 35, 45, 1, 12, 48, 3, 63, 21, 36, 30, 48, 19, 59, 43, 27, 46, 17, 34, 25, 12, 29, 53, 6, 48, 31, 11, 34, 49, 3, 36, 50, 19, 47, 14, 61, 11, 36, 58, 4, 60, 14, 39, 22, 6, 52, 15, 35, 17, 46, 31, 42, 9, 34, 3, 52, 12, 60, 26, 56, 40, 2, 53, 23, 57, 38, 62, 14, 36, 59, 10, 31, 39, 6, 49, 9, 41, 26, 5, 48, 43, 27, 33, 58, 1, 50, 25, 57}, {61, 37, 15, 61, 3, 39, 58, 43, 26, 0, 44, 10, 47, 3, 37, 63, 28, 43, 13, 39, 3, 57, 30, 59, 0, 48, 5, 43, 13, 22, 60, 33, 55, 15, 42, 4, 52, 10, 45, 13, 54, 4, 24, 49, 37, 26, 41, 14, 42, 9, 61, 13, 38, 23, 3, 53, 0, 58, 21, 42, 63, 10, 17, 61, 25, 0, 58, 28, 17, 44, 57, 12, 27, 0, 55, 5, 52, 28, 23, 47, 29, 0, 43, 17, 58, 28, 47, 23, 55, 10, 58, 23, 51, 40, 18, 33, 45, 0, 49, 8, 32, 61, 19, 48, 0, 26, 7, 47, 29, 18, 44, 0, 56, 34, 20, 59, 15, 51, 37, 18, 10, 52, 7, 20, 46, 9, 38, 17}, {6, 27, 48, 23, 45, 29, 5, 18, 38, 62, 27, 56, 20, 32, 15, 9, 48, 0, 54, 22, 45, 20, 7, 41, 23, 39, 19, 27, 58, 31, 44, 0, 12, 50, 23, 56, 20, 39, 32, 59, 16, 52, 33, 9, 57, 22, 6, 58, 28, 50, 24, 2, 56, 35, 16, 45, 32, 38, 15, 54, 2, 38, 46, 22, 35, 45, 20, 5, 52, 25, 7, 35, 59, 32, 22, 43, 38, 3, 51, 16, 34, 53, 32, 50, 3, 40, 8, 43, 0, 39, 27, 4, 14, 61, 8, 55, 15, 41, 20, 44, 27, 13, 39, 11, 46, 42, 54, 33, 4, 52, 23, 61, 14, 25, 43, 2, 33, 11, 63, 29, 61, 17, 40, 55, 22, 62, 28, 44}, {20, 54, 8, 56, 35, 10, 63, 31, 52, 12, 48, 6, 59, 41, 52, 33, 19, 58, 25, 49, 11, 37, 47, 12, 54, 15, 56, 35, 7, 47, 16, 53, 28, 34, 5, 37, 28, 8, 48, 3, 28, 38, 18, 61, 16, 43, 53, 32, 4, 17, 47, 27, 44, 8, 63, 10, 25, 49, 6, 37, 24, 52, 32, 3, 50, 12, 41, 56, 38, 14, 62, 20, 40, 16, 53, 31, 18, 63, 41, 9, 59, 7, 13, 25, 57, 20, 63, 26, 53, 18, 48, 62, 30, 46, 21, 25, 58, 29, 36, 4, 55, 34, 6, 60, 31, 16, 21, 12, 58, 38, 9, 29, 47, 7, 52, 30, 57, 44, 22, 0, 35, 45, 3, 31, 14, 36, 0, 51}, {42, 14, 33, 24, 16, 49, 40, 2, 22, 33, 16, 36, 25, 1, 21, 61, 38, 8, 33, 4, 62, 26, 29, 60, 6, 46, 30, 11, 63, 4, 36, 40, 19, 57, 46, 11, 41, 63, 22, 25, 58, 10, 46, 2, 34, 27, 11, 38, 56, 34, 12, 53, 18, 33, 41, 51, 13, 28, 60, 20, 47, 14, 29, 59, 16, 62, 8, 22, 32, 47, 9, 49, 2, 44, 7, 12, 45, 6, 20, 27, 45, 24, 62, 42, 36, 11, 33, 15, 37, 7, 32, 10, 37, 1, 35, 50, 6, 11, 63, 24, 52, 15, 50, 24, 3, 37, 56, 27, 34, 22, 49, 16, 36, 62, 17, 39, 4, 15, 54, 24, 50, 8, 58, 26, 49, 54, 11, 30}, {4, 59, 41, 1, 53, 12, 25, 45, 59, 7, 51, 39, 54, 14, 46, 4, 27, 53, 16, 44, 18, 51, 1, 32, 25, 2, 50, 40, 20, 54, 24, 9, 62, 2, 27, 60, 1, 17, 36, 50, 6, 40, 30, 55, 41, 19, 49, 1, 21, 60, 40, 5, 62, 1, 22, 30, 57, 4, 43, 31, 1, 55, 40, 7, 27, 37, 30, 54, 1, 19, 42, 30, 56, 26, 62, 49, 24, 57, 37, 56, 2, 39, 16, 5, 30, 55, 3, 49, 60, 23, 56, 44, 17, 52, 13, 42, 28, 48, 18, 45, 9, 37, 21, 41, 58, 10, 48, 1, 63, 5, 41, 57, 2, 24, 12, 48, 27, 42, 32, 46, 13, 38, 19, 34, 5, 41, 25, 60}, {39, 28, 21, 46, 32, 57, 36, 9, 19, 42, 4, 29, 11, 43, 30, 49, 13, 42, 35, 56, 9, 39, 15, 52, 36, 61, 18, 26, 45, 14, 31, 48, 21, 43, 14, 33, 49, 54, 14, 44, 21, 62, 13, 23, 8, 62, 15, 51, 44, 7, 30, 37, 20, 42, 56, 7, 39, 18, 50, 11, 61, 9, 19, 43, 57, 2, 48, 11, 39, 60, 28, 4, 37, 17, 35, 1, 33, 11, 31, 14, 48, 19, 35, 51, 46, 21, 44, 29, 12, 41, 2, 22, 58, 26, 54, 4, 59, 38, 2, 33, 57, 1, 63, 13, 28, 51, 15, 40, 18, 45, 8, 30, 43, 37, 54, 19, 8, 59, 21, 6, 60, 29, 55, 10, 63, 15, 47, 17}, {3, 50, 10, 62, 18, 5, 27, 49, 60, 23, 55, 18, 62, 24, 56, 10, 59, 28, 2, 23, 34, 59, 43, 20, 10, 42, 8, 49, 1, 37, 57, 6, 51, 29, 53, 7, 23, 31, 5, 32, 51, 0, 35, 54, 45, 31, 5, 26, 36, 24, 55, 15, 48, 29, 14, 48, 26, 60, 21, 41, 36, 26, 50, 33, 14, 44, 17, 24, 52, 15, 46, 23, 54, 6, 47, 21, 60, 50, 4, 53, 29, 61, 8, 23, 1, 60, 19, 6, 53, 16, 47, 34, 6, 39, 16, 31, 12, 20, 53, 22, 30, 43, 25, 46, 35, 6, 44, 32, 53, 26, 55, 19, 11, 59, 5, 33, 51, 1, 35, 53, 25, 3, 42, 23, 44, 32, 7, 53}, {22, 44, 37, 6, 26, 51, 38, 0, 34, 13, 31, 46, 3, 37, 6, 19, 40, 21, 47, 63, 12, 5, 29, 55, 22, 58, 34, 28, 60, 22, 11, 41, 17, 38, 9, 44, 59, 39, 56, 19, 11, 47, 25, 15, 3, 39, 57, 17, 61, 11, 46, 3, 58, 9, 54, 35, 2, 34, 8, 45, 15, 56, 5, 23, 53, 33, 63, 35, 4, 59, 10, 51, 13, 61, 29, 41, 15, 25, 43, 19, 40, 10, 54, 33, 41, 12, 38, 51, 31, 26, 61, 9, 30, 45, 24, 62, 49, 40, 10, 61, 14, 49, 5, 17, 54, 20, 60, 23, 3, 13, 35, 50, 32, 23, 46, 27, 38, 63, 16, 12, 39, 48, 18, 51, 1, 27, 56, 35}, {63, 15, 30, 55, 43, 14, 57, 17, 53, 44, 7, 48, 26, 50, 32, 60, 0, 53, 14, 31, 50, 24, 46, 0, 38, 13, 4, 52, 16, 45, 30, 59, 0, 25, 55, 35, 16, 10, 26, 42, 58, 29, 60, 38, 50, 22, 28, 47, 0, 50, 28, 19, 33, 39, 11, 44, 16, 52, 24, 59, 3, 38, 27, 51, 0, 21, 7, 42, 26, 34, 21, 40, 33, 18, 39, 3, 54, 38, 8, 59, 0, 44, 27, 15, 58, 28, 57, 9, 43, 0, 36, 50, 20, 59, 8, 34, 0, 27, 47, 7, 36, 19, 56, 32, 0, 38, 11, 29, 62, 47, 6, 61, 0, 41, 14, 56, 10, 23, 45, 31, 57, 8, 36, 13, 58, 38, 11, 19}, {0, 34, 12, 47, 21, 2, 40, 30, 11, 25, 61, 20, 40, 15, 35, 22, 45, 36, 7, 41, 17, 57, 9, 48, 32, 62, 44, 24, 35, 3, 54, 13, 33, 63, 19, 4, 48, 22, 62, 2, 37, 8, 33, 6, 20, 52, 9, 32, 43, 13, 39, 63, 25, 4, 49, 23, 62, 32, 9, 30, 48, 18, 63, 12, 46, 29, 58, 13, 48, 8, 57, 31, 0, 51, 9, 58, 12, 22, 47, 29, 35, 22, 49, 5, 46, 4, 34, 20, 63, 24, 56, 11, 41, 3, 51, 19, 56, 35, 17, 58, 28, 42, 9, 45, 59, 26, 51, 42, 17, 36, 25, 15, 53, 21, 44, 3, 30, 55, 5, 50, 21, 28, 61, 32, 6, 49, 28, 46}, {58, 42, 60, 4, 31, 59, 22, 63, 35, 38, 9, 54, 1, 57, 8, 51, 16, 58, 27, 53, 3, 38, 30, 15, 27, 6, 19, 56, 10, 50, 21, 36, 47, 5, 43, 28, 51, 32, 13, 46, 18, 54, 16, 43, 63, 12, 36, 59, 22, 34, 5, 52, 17, 59, 27, 41, 0, 19, 55, 37, 13, 43, 6, 34, 41, 10, 36, 55, 19, 44, 3, 16, 58, 27, 49, 25, 32, 62, 17, 55, 13, 63, 18, 52, 25, 37, 17, 48, 13, 32, 5, 46, 28, 37, 14, 43, 25, 5, 51, 39, 3, 52, 33, 22, 8, 40, 12, 4, 57, 9, 46, 39, 28, 58, 13, 62, 17, 42, 19, 36, 0, 47, 16, 43, 24, 21, 54, 13}, {25, 9, 23, 50, 36, 8, 45, 14, 3, 51, 16, 28, 44, 12, 42, 29, 4, 26, 10, 47, 22, 61, 18, 54, 51, 39, 46, 13, 41, 26, 58, 7, 18, 39, 12, 57, 15, 1, 52, 27, 41, 23, 48, 1, 27, 45, 18, 2, 57, 26, 55, 8, 43, 31, 6, 58, 14, 51, 40, 5, 61, 31, 24, 54, 17, 60, 22, 1, 39, 30, 53, 45, 36, 13, 43, 5, 45, 2, 37, 6, 34, 42, 2, 39, 10, 62, 7, 54, 40, 18, 60, 15, 52, 21, 63, 8, 55, 46, 15, 30, 23, 13, 62, 16, 50, 24, 58, 31, 48, 21, 34, 2, 49, 7, 31, 37, 26, 48, 9, 61, 40, 11, 52, 2, 60, 40, 4, 37}, {52, 28, 39, 16, 54, 19, 29, 55, 42, 20, 58, 33, 24, 63, 18, 55, 39, 62, 43, 34, 12, 40, 6, 35, 2, 25, 8, 62, 34, 1, 31, 42, 61, 27, 53, 24, 40, 61, 34, 8, 59, 4, 30, 56, 40, 6, 53, 42, 10, 48, 16, 37, 12, 46, 21, 36, 47, 11, 28, 45, 22, 10, 57, 2, 49, 31, 14, 44, 61, 11, 25, 6, 23, 63, 18, 36, 28, 56, 20, 51, 11, 48, 27, 56, 32, 22, 45, 30, 2, 42, 27, 39, 1, 44, 23, 31, 38, 22, 11, 61, 43, 54, 4, 47, 35, 2, 44, 16, 28, 54, 12, 62, 18, 43, 10, 52, 1, 58, 33, 15, 29, 56, 20, 34, 9, 30, 48, 17}, {46, 2, 56, 11, 41, 1, 49, 6, 27, 47, 2, 48, 5, 32, 37, 3, 13, 19, 32, 1, 55, 28, 60, 17, 43, 59, 32, 20, 49, 16, 55, 23, 14, 46, 2, 36, 6, 30, 20, 49, 12, 47, 35, 14, 21, 60, 29, 14, 35, 24, 46, 1, 56, 29, 53, 8, 33, 23, 56, 1, 35, 46, 20, 39, 26, 4, 53, 28, 17, 38, 60, 34, 48, 9, 55, 15, 46, 7, 41, 31, 60, 24, 16, 36, 1, 59, 19, 52, 35, 6, 55, 11, 59, 33, 7, 57, 4, 29, 48, 1, 19, 26, 37, 30, 18, 63, 37, 6, 59, 1, 40, 24, 56, 33, 46, 22, 35, 7, 24, 53, 39, 5, 26, 45, 55, 18, 62, 7}, {20, 60, 29, 34, 20, 62, 33, 52, 10, 36, 13, 60, 41, 21, 50, 27, 56, 49, 8, 51, 21, 45, 11, 48, 8, 23, 53, 3, 29, 44, 5, 52, 9, 32, 50, 17, 43, 56, 3, 38, 24, 10, 62, 25, 51, 9, 33, 49, 61, 7, 30, 62, 22, 19, 2, 42, 63, 5, 49, 18, 60, 15, 52, 7, 43, 56, 23, 50, 5, 50, 2, 20, 41, 30, 1, 52, 22, 61, 14, 26, 3, 43, 53, 7, 47, 28, 11, 14, 23, 58, 33, 25, 47, 13, 50, 17, 40, 54, 34, 60, 41, 6, 59, 14, 50, 7, 25, 55, 20, 42, 51, 8, 27, 4, 16, 60, 28, 50, 44, 3, 22, 49, 63, 12, 33, 1, 43, 31}, {36, 5, 46, 8, 44, 24, 13, 39, 25, 57, 31, 18, 8, 52, 10, 45, 6, 30, 36, 24, 63, 4, 33, 26, 57, 40, 15, 56, 37, 12, 40, 25, 37, 58, 11, 63, 21, 45, 16, 60, 31, 53, 18, 33, 3, 45, 23, 0, 20, 54, 40, 15, 50, 38, 60, 16, 25, 42, 29, 38, 7, 41, 25, 62, 18, 33, 8, 35, 42, 16, 32, 56, 12, 39, 59, 19, 34, 9, 49, 38, 57, 12, 21, 50, 14, 40, 61, 44, 50, 9, 49, 19, 3, 29, 35, 62, 12, 24, 7, 18, 52, 32, 10, 46, 21, 41, 32, 11, 36, 29, 14, 34, 60, 38, 54, 11, 41, 14, 19, 57, 32, 16, 7, 41, 51, 25, 14, 57}, {53, 18, 26, 50, 15, 58, 4, 63, 17, 43, 7, 40, 61, 35, 15, 41, 23, 60, 16, 38, 14, 42, 19, 50, 0, 31, 10, 46, 27, 63, 18, 60, 0, 20, 29, 39, 8, 26, 37, 5, 42, 0, 44, 39, 57, 17, 58, 41, 28, 37, 4, 32, 9, 44, 12, 31, 54, 10, 59, 14, 27, 53, 12, 36, 0, 47, 13, 63, 21, 58, 10, 24, 50, 27, 4, 26, 44, 53, 31, 0, 18, 42, 29, 33, 57, 4, 32, 26, 0, 38, 16, 61, 41, 53, 20, 0, 42, 44, 49, 27, 10, 56, 39, 0, 57, 15, 53, 49, 3, 61, 22, 47, 17, 5, 49, 26, 2, 63, 39, 10, 47, 27, 37, 23, 4, 59, 38, 10}, {23, 39, 61, 3, 37, 28, 48, 31, 0, 34, 51, 23, 2, 26, 58, 0, 53, 11, 46, 1, 57, 29, 52, 14, 37, 61, 21, 35, 2, 49, 7, 34, 47, 55, 4, 33, 54, 13, 58, 52, 19, 50, 22, 7, 13, 29, 36, 11, 51, 17, 60, 25, 55, 4, 34, 51, 0, 35, 20, 48, 32, 3, 51, 30, 59, 28, 40, 3, 46, 29, 54, 43, 7, 62, 47, 11, 39, 4, 23, 46, 55, 8, 63, 5, 25, 37, 18, 46, 21, 56, 31, 5, 36, 8, 45, 58, 26, 15, 2, 36, 47, 21, 29, 44, 25, 34, 3, 27, 43, 10, 52, 0, 45, 30, 24, 36, 43, 18, 34, 59, 0, 52, 61, 15, 44, 19, 30, 49}, {0, 27, 12, 43, 54, 9, 22, 53, 21, 46, 15, 55, 29, 47, 20, 33, 39, 28, 59, 35, 9, 44, 5, 24, 47, 7, 52, 17, 56, 22, 30, 42, 14, 26, 45, 18, 49, 1, 24, 34, 11, 27, 55, 32, 61, 47, 2, 56, 6, 44, 13, 47, 36, 27, 58, 22, 16, 47, 40, 4, 57, 38, 21, 45, 16, 9, 56, 26, 11, 38, 0, 22, 36, 17, 33, 57, 16, 30, 62, 15, 35, 40, 20, 45, 59, 10, 54, 8, 63, 13, 52, 27, 22, 57, 28, 12, 32, 51, 55, 22, 63, 4, 16, 54, 12, 62, 45, 19, 58, 13, 32, 40, 20, 56, 7, 57, 9, 54, 6, 29, 42, 21, 8, 55, 35, 47, 6, 41}, {56, 33, 58, 32, 19, 35, 42, 6, 59, 11, 38, 5, 49, 12, 62, 7, 52, 17, 5, 25, 54, 20, 61, 31, 54, 27, 41, 11, 44, 5, 59, 12, 36, 51, 10, 61, 28, 41, 48, 9, 43, 63, 5, 40, 20, 8, 49, 26, 34, 21, 58, 1, 18, 45, 7, 39, 61, 26, 8, 50, 23, 10, 63, 5, 55, 37, 19, 49, 52, 15, 59, 47, 13, 54, 1, 25, 42, 58, 10, 48, 3, 27, 50, 1, 17, 48, 34, 41, 16, 40, 2, 45, 10, 39, 17, 61, 5, 38, 19, 9, 41, 31, 60, 38, 5, 23, 36, 8, 30, 55, 24, 63, 12, 48, 14, 51, 31, 20, 45, 25, 12, 50, 32, 2, 28, 11, 62, 14}, {44, 16, 7, 48, 1, 62, 16, 50, 27, 33, 61, 25, 17, 44, 31, 14, 22, 43, 32, 48, 18, 40, 8, 36, 3, 16, 33, 62, 23, 38, 25, 53, 2, 21, 41, 6, 22, 15, 59, 29, 16, 37, 26, 15, 52, 42, 23, 15, 54, 39, 10, 30, 53, 11, 49, 24, 2, 43, 55, 17, 34, 44, 15, 31, 24, 44, 2, 32, 7, 35, 25, 5, 40, 45, 29, 51, 6, 21, 37, 52, 24, 60, 13, 31, 53, 23, 2, 28, 49, 24, 31, 60, 20, 51, 1, 34, 48, 14, 59, 33, 50, 1, 18, 33, 48, 60, 17, 51, 39, 6, 38, 2, 35, 29, 40, 23, 1, 62, 15, 53, 37, 17, 46, 57, 40, 51, 24, 22}, {5, 37, 52, 24, 45, 13, 40, 3, 45, 9, 19, 42, 56, 4, 37, 46, 56, 2, 63, 11, 51, 1, 49, 13, 59, 45, 39, 1, 48, 15, 58, 9, 46, 31, 54, 35, 57, 38, 3, 46, 56, 4, 47, 57, 1, 30, 38, 63, 3, 46, 28, 63, 41, 14, 33, 62, 19, 32, 13, 28, 61, 1, 53, 42, 11, 60, 22, 62, 27, 42, 61, 31, 19, 8, 61, 12, 32, 55, 2, 18, 33, 12, 43, 36, 9, 62, 30, 55, 6, 58, 35, 7, 43, 29, 54, 23, 43, 30, 3, 25, 11, 45, 52, 28, 7, 14, 42, 1, 22, 50, 16, 53, 19, 59, 4, 46, 33, 41, 4, 35, 58, 5, 26, 13, 20, 2, 34, 54}, {30, 63, 21, 10, 26, 55, 29, 59, 23, 39, 53, 1, 36, 24, 59, 27, 10, 34, 23, 38, 30, 60, 22, 42, 28, 19, 9, 57, 30, 19, 43, 33, 13, 63, 3, 19, 11, 50, 31, 20, 14, 34, 10, 35, 17, 59, 7, 31, 19, 25, 50, 5, 20, 57, 29, 6, 52, 41, 4, 46, 20, 37, 26, 17, 49, 6, 39, 18, 53, 14, 3, 49, 57, 23, 34, 48, 14, 41, 28, 38, 56, 6, 58, 25, 39, 19, 43, 15, 37, 11, 47, 18, 53, 4, 37, 9, 62, 21, 53, 40, 57, 24, 13, 40, 56, 26, 47, 31, 59, 25, 45, 27, 10, 43, 21, 61, 13, 27, 48, 9, 23, 43, 31, 62, 38, 59, 9, 47}, {25, 4, 40, 60, 34, 6, 18, 36, 8, 57, 12, 30, 49, 14, 6, 54, 41, 16, 50, 6, 43, 15, 34, 4, 53, 24, 50, 35, 4, 51, 7, 55, 28, 24, 39, 44, 60, 7, 25, 62, 42, 53, 24, 61, 28, 45, 52, 12, 48, 37, 9, 35, 43, 3, 37, 48, 12, 58, 30, 52, 9, 59, 6, 57, 33, 29, 48, 4, 37, 45, 20, 34, 10, 39, 0, 60, 22, 45, 8, 63, 21, 42, 14, 49, 3, 56, 11, 46, 21, 61, 0, 42, 25, 13, 63, 17, 36, 8, 46, 16, 6, 35, 63, 0, 21, 37, 4, 57, 9, 34, 5, 61, 48, 32, 8, 37, 54, 17, 56, 30, 60, 0, 50, 16, 7, 29, 42, 17}, {32, 50, 15, 48, 2, 43, 52, 25, 47, 16, 32, 63, 21, 52, 40, 19, 0, 61, 29, 58, 20, 56, 26, 46, 12, 55, 6, 22, 62, 32, 17, 40, 0, 49, 34, 8, 27, 32, 48, 0, 21, 39, 5, 44, 12, 6, 22, 40, 0, 57, 16, 60, 23, 17, 54, 22, 36, 15, 24, 39, 19, 34, 47, 23, 0, 54, 13, 51, 24, 9, 55, 16, 52, 27, 44, 20, 4, 54, 26, 49, 0, 30, 46, 16, 29, 51, 34, 4, 52, 28, 33, 15, 57, 39, 26, 49, 0, 56, 27, 31, 48, 20, 43, 29, 53, 11, 46, 19, 41, 13, 55, 18, 0, 57, 26, 51, 2, 44, 6, 38, 14, 40, 22, 45, 36, 53, 3, 57}, {44, 12, 37, 28, 22, 57, 11, 38, 0, 51, 9, 41, 4, 29, 11, 47, 33, 45, 12, 26, 3, 36, 9, 63, 31, 16, 38, 44, 14, 47, 25, 61, 20, 58, 15, 47, 17, 57, 13, 36, 9, 51, 18, 29, 50, 36, 54, 20, 61, 27, 32, 13, 53, 44, 9, 27, 0, 63, 45, 2, 56, 10, 14, 43, 41, 28, 58, 11, 35, 60, 30, 41, 6, 63, 11, 51, 37, 32, 15, 10, 35, 53, 5, 61, 22, 7, 26, 59, 23, 9, 44, 48, 21, 3, 51, 32, 24, 41, 12, 61, 2, 55, 9, 15, 35, 58, 28, 15, 62, 30, 37, 23, 42, 29, 11, 17, 35, 24, 63, 20, 52, 28, 8, 55, 11, 23, 47, 19}, {0, 56, 8, 53, 14, 31, 61, 20, 55, 28, 62, 18, 35, 60, 25, 57, 7, 23, 39, 54, 47, 17, 43, 0, 40, 59, 29, 2, 56, 10, 37, 5, 43, 11, 29, 52, 1, 23, 54, 41, 59, 30, 55, 1, 62, 15, 33, 4, 43, 10, 47, 39, 1, 31, 40, 60, 49, 33, 7, 55, 26, 50, 31, 61, 8, 18, 21, 32, 44, 1, 25, 47, 18, 36, 30, 23, 59, 7, 40, 59, 27, 19, 38, 32, 44, 54, 40, 17, 38, 60, 27, 6, 35, 55, 10, 14, 44, 5, 50, 17, 38, 26, 42, 50, 18, 3, 44, 52, 2, 49, 7, 52, 15, 46, 62, 39, 55, 10, 31, 48, 3, 58, 33, 18, 61, 34, 13, 59}, {39, 27, 63, 20, 35, 41, 4, 45, 26, 5, 38, 13, 44, 2, 50, 17, 37, 52, 2, 13, 28, 58, 24, 51, 21, 8, 34, 48, 27, 42, 18, 51, 31, 56, 5, 36, 38, 44, 4, 17, 26, 11, 38, 23, 42, 8, 56, 39, 24, 51, 5, 56, 21, 59, 14, 6, 18, 42, 22, 35, 16, 37, 3, 25, 39, 46, 63, 5, 50, 17, 58, 8, 55, 3, 50, 12, 43, 17, 47, 2, 51, 9, 62, 12, 1, 35, 13, 50, 1, 37, 12, 51, 19, 29, 46, 59, 22, 58, 33, 45, 22, 60, 10, 32, 61, 39, 8, 33, 25, 36, 20, 60, 38, 4, 21, 5, 28, 45, 12, 18, 42, 11, 49, 1, 27, 40, 6, 30}, {24, 16, 42, 1, 50, 10, 48, 17, 33, 43, 24, 48, 21, 55, 31, 42, 10, 21, 63, 35, 49, 6, 33, 13, 41, 53, 10, 20, 60, 6, 53, 26, 12, 41, 22, 60, 14, 28, 63, 33, 49, 3, 45, 16, 48, 26, 14, 46, 18, 30, 35, 26, 8, 50, 29, 51, 25, 57, 12, 47, 53, 9, 62, 20, 54, 2, 36, 15, 40, 28, 33, 13, 38, 24, 46, 1, 29, 56, 33, 20, 44, 24, 41, 26, 57, 20, 63, 8, 30, 55, 5, 41, 62, 8, 34, 2, 37, 10, 19, 6, 37, 1, 53, 23, 5, 27, 58, 22, 43, 12, 50, 26, 9, 34, 54, 32, 49, 1, 59, 37, 22, 46, 25, 36, 51, 15, 54, 46}, {52, 7, 45, 33, 26, 58, 14, 60, 7, 54, 3, 58, 8, 34, 14, 5, 59, 30, 18, 44, 8, 22, 48, 62, 3, 26, 55, 38, 23, 16, 39, 1, 62, 24, 49, 9, 53, 19, 46, 7, 19, 60, 31, 58, 2, 34, 53, 7, 59, 2, 62, 42, 46, 19, 36, 11, 44, 4, 38, 28, 1, 43, 32, 51, 12, 29, 56, 22, 52, 2, 62, 49, 22, 60, 14, 35, 63, 5, 25, 57, 14, 53, 4, 46, 18, 31, 42, 22, 47, 20, 58, 31, 16, 43, 23, 54, 30, 42, 52, 57, 29, 49, 30, 13, 45, 48, 16, 55, 6, 63, 1, 44, 14, 58, 19, 47, 15, 24, 51, 34, 6, 55, 5, 63, 20, 41, 21, 9}, {30, 62, 18, 55, 5, 23, 39, 29, 49, 30, 15, 36, 28, 46, 60, 25, 39, 46, 4, 32, 61, 40, 15, 30, 36, 45, 14, 2, 49, 33, 57, 45, 18, 32, 3, 45, 30, 2, 35, 52, 40, 27, 13, 21, 38, 63, 20, 28, 37, 23, 16, 10, 13, 55, 2, 62, 21, 32, 60, 17, 58, 23, 5, 40, 16, 48, 7, 45, 10, 26, 43, 19, 6, 31, 52, 21, 39, 16, 48, 9, 37, 28, 36, 55, 7, 48, 3, 59, 15, 45, 25, 1, 53, 13, 47, 7, 62, 15, 4, 25, 12, 41, 18, 60, 38, 11, 34, 19, 39, 31, 29, 56, 23, 42, 3, 27, 60, 41, 8, 16, 61, 29, 43, 9, 32, 2, 60, 34}, {3, 38, 13, 37, 52, 44, 2, 19, 12, 42, 63, 19, 40, 1, 20, 50, 12, 55, 15, 56, 27, 1, 54, 11, 57, 18, 32, 63, 44, 4, 29, 13, 37, 61, 35, 16, 42, 57, 12, 22, 6, 55, 43, 10, 50, 5, 44, 11, 48, 52, 34, 58, 28, 41, 38, 30, 7, 52, 11, 49, 30, 14, 45, 27, 59, 34, 21, 38, 32, 58, 11, 36, 56, 42, 9, 41, 3, 54, 31, 42, 0, 60, 16, 11, 39, 24, 52, 33, 6, 36, 10, 40, 32, 60, 26, 20, 39, 28, 47, 34, 63, 8, 54, 3, 24, 56, 0, 51, 13, 47, 16, 40, 7, 35, 52, 11, 36, 4, 57, 30, 39, 13, 18, 50, 58, 28, 12, 48}, {57, 24, 49, 21, 10, 31, 61, 36, 56, 0, 22, 53, 11, 56, 32, 7, 36, 27, 41, 9, 46, 19, 34, 42, 25, 7, 50, 9, 28, 21, 54, 8, 50, 7, 27, 59, 10, 25, 48, 62, 37, 0, 33, 58, 25, 18, 32, 61, 0, 15, 45, 5, 50, 3, 23, 55, 47, 17, 40, 6, 60, 34, 53, 8, 41, 0, 61, 13, 54, 4, 46, 28, 0, 17, 48, 27, 58, 13, 23, 61, 33, 21, 50, 30, 62, 8, 14, 29, 56, 27, 61, 49, 17, 2, 44, 11, 51, 0, 59, 17, 40, 20, 32, 47, 36, 21, 42, 28, 60, 4, 54, 10, 59, 17, 30, 62, 21, 43, 26, 48, 0, 56, 36, 25, 8, 44, 39, 17}, {10, 42, 4, 59, 27, 47, 8, 23, 51, 32, 45, 6, 37, 26, 48, 43, 62, 0, 21, 53, 38, 12, 51, 5, 60, 47, 24, 37, 59, 15, 35, 47, 22, 55, 0, 50, 21, 40, 6, 29, 15, 52, 24, 8, 41, 55, 13, 29, 40, 56, 24, 31, 19, 33, 61, 15, 0, 35, 24, 42, 21, 2, 19, 57, 24, 15, 30, 50, 20, 25, 40, 16, 57, 34, 61, 8, 29, 45, 6, 49, 11, 47, 2, 44, 19, 57, 38, 50, 12, 42, 21, 4, 35, 52, 28, 56, 23, 36, 13, 45, 4, 52, 27, 14, 6, 62, 9, 45, 21, 37, 25, 46, 33, 49, 0, 44, 7, 53, 13, 19, 53, 31, 3, 47, 15, 56, 22, 51}, {35, 28, 53, 32, 1, 16, 54, 40, 9, 17, 25, 58, 14, 59, 3, 22, 16, 51, 31, 5, 23, 58, 28, 17, 35, 20, 0, 42, 11, 52, 3, 31, 41, 17, 43, 13, 32, 54, 18, 60, 32, 45, 17, 49, 2, 36, 51, 22, 7, 36, 9, 63, 48, 12, 46, 26, 43, 28, 63, 13, 48, 37, 51, 33, 5, 47, 55, 9, 42, 63, 7, 51, 24, 12, 37, 19, 55, 34, 18, 38, 15, 28, 54, 34, 5, 43, 22, 0, 48, 14, 54, 24, 58, 9, 38, 5, 32, 55, 21, 30, 49, 9, 59, 43, 30, 51, 35, 26, 7, 53, 2, 22, 14, 27, 57, 18, 38, 24, 33, 45, 10, 41, 20, 60, 37, 5, 32, 0}, {63, 19, 15, 40, 62, 35, 14, 28, 46, 61, 4, 49, 35, 10, 29, 54, 33, 8, 45, 62, 37, 1, 43, 55, 10, 52, 61, 30, 19, 40, 25, 62, 11, 38, 27, 58, 36, 3, 46, 8, 39, 4, 62, 28, 47, 20, 4, 54, 47, 27, 43, 1, 21, 38, 8, 58, 10, 54, 4, 56, 9, 26, 12, 39, 60, 27, 18, 37, 1, 31, 35, 5, 45, 50, 2, 43, 26, 1, 59, 23, 56, 40, 7, 26, 58, 17, 32, 63, 25, 39, 7, 31, 45, 19, 63, 15, 48, 8, 37, 61, 16, 34, 1, 56, 18, 3, 15, 58, 49, 32, 63, 41, 55, 5, 40, 22, 50, 6, 59, 2, 63, 23, 52, 11, 26, 61, 44, 23}, {11, 56, 46, 6, 22, 43, 58, 3, 34, 21, 38, 30, 18, 44, 52, 13, 41, 57, 17, 28, 14, 49, 25, 7, 33, 39, 26, 6, 56, 48, 1, 20, 56, 5, 46, 9, 19, 51, 30, 25, 56, 21, 35, 14, 57, 42, 16, 33, 10, 57, 17, 59, 41, 25, 53, 37, 20, 40, 30, 18, 31, 62, 44, 22, 3, 44, 11, 48, 23, 53, 18, 60, 29, 22, 62, 15, 53, 47, 10, 41, 3, 19, 52, 36, 13, 46, 10, 35, 3, 61, 41, 16, 1, 50, 26, 42, 18, 46, 2, 25, 54, 20, 39, 23, 47, 31, 41, 12, 38, 17, 8, 19, 31, 48, 12, 61, 9, 54, 29, 35, 15, 38, 6, 43, 34, 14, 7, 47}, {39, 2, 33, 26, 53, 8, 18, 50, 41, 12, 53, 1, 63, 24, 19, 39, 2, 24, 47, 10, 60, 38, 19, 63, 48, 4, 15, 45, 32, 14, 60, 36, 29, 53, 23, 63, 34, 12, 61, 1, 43, 11, 53, 30, 1, 26, 60, 45, 23, 39, 3, 29, 12, 50, 4, 16, 51, 3, 45, 36, 50, 1, 16, 54, 35, 14, 57, 30, 58, 9, 46, 14, 41, 10, 32, 38, 4, 30, 21, 51, 32, 63, 25, 1, 60, 27, 53, 18, 51, 22, 28, 55, 34, 12, 40, 3, 60, 29, 57, 41, 6, 44, 11, 53, 8, 61, 24, 57, 1, 28, 44, 59, 36, 3, 34, 25, 41, 31, 16, 44, 22, 47, 28, 58, 1, 49, 54, 29}, {58, 25, 50, 13, 38, 30, 60, 24, 6, 57, 27, 42, 9, 45, 6, 61, 30, 50, 4, 34, 29, 3, 46, 13, 22, 42, 58, 28, 9, 39, 23, 44, 7, 15, 44, 2, 40, 15, 47, 41, 23, 37, 7, 59, 38, 11, 34, 6, 62, 14, 52, 35, 55, 19, 32, 61, 33, 24, 57, 6, 22, 59, 29, 7, 49, 25, 40, 3, 17, 39, 27, 52, 0, 55, 16, 57, 24, 61, 36, 6, 29, 12, 48, 39, 20, 44, 6, 40, 33, 5, 48, 10, 57, 36, 22, 51, 33, 9, 24, 12, 62, 29, 50, 35, 14, 43, 5, 33, 47, 52, 13, 23, 10, 51, 56, 16, 46, 1, 49, 4, 61, 9, 52, 18, 31, 21, 36, 17}, {19, 42, 9, 48, 2, 44, 11, 37, 48, 20, 33, 16, 55, 35, 49, 15, 37, 20, 59, 16, 53, 22, 56, 31, 50, 11, 34, 54, 16, 51, 4, 49, 33, 53, 21, 28, 56, 24, 31, 9, 52, 16, 48, 24, 44, 13, 51, 20, 31, 49, 18, 6, 34, 2, 44, 14, 47, 8, 15, 43, 13, 41, 33, 52, 20, 61, 7, 51, 34, 62, 4, 20, 36, 33, 43, 8, 46, 13, 53, 17, 45, 42, 9, 31, 52, 11, 30, 56, 13, 59, 17, 44, 27, 6, 62, 11, 43, 17, 49, 38, 26, 2, 16, 27, 58, 21, 54, 18, 26, 5, 35, 61, 43, 27, 7, 39, 14, 58, 37, 55, 20, 33, 13, 40, 62, 10, 55, 5}, {51, 14, 61, 29, 59, 20, 55, 31, 0, 49, 11, 60, 3, 26, 22, 56, 0, 40, 12, 43, 41, 8, 36, 0, 17, 57, 24, 2, 46, 26, 61, 18, 0, 38, 12, 59, 6, 49, 3, 57, 19, 63, 5, 33, 18, 54, 28, 56, 0, 43, 26, 46, 63, 27, 56, 22, 27, 54, 38, 28, 63, 24, 10, 45, 0, 31, 42, 21, 12, 25, 44, 49, 59, 6, 26, 50, 3, 34, 27, 59, 0, 35, 62, 16, 4, 58, 47, 0, 43, 24, 37, 2, 54, 20, 46, 31, 0, 56, 34, 5, 55, 45, 60, 37, 0, 40, 10, 38, 63, 46, 15, 20, 0, 53, 21, 62, 30, 11, 24, 27, 40, 0, 57, 26, 3, 45, 27, 35} }; /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB565 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB565 conversion */ #define WRITE1_RGBA_RGB565(src, dest) \ *dest = ((*src >> 8) & 0xf800) | \ ((*src >> 5) & 0x7e0) | \ ((*src >> 3) & 0x1f); dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB565(src, dest) \ { \ *((DATA32 *)dest) = ((src[1] >> 8) & 0xf800) | \ ((src[1] >> 5) & 0x7e0) | \ ((src[1] >> 3) & 0x1f) | \ ((src[0] << 8) & 0xf8000000) | \ ((src[0] << 11) & 0x7e00000) | \ ((src[0] << 13) & 0x1f0000); \ dest += 2; src += 2; \ } #else #define WRITE2_RGBA_RGB565(src, dest) \ { \ *((DATA32 *)dest) = ((src[0] >> 8) & 0xf800) | \ ((src[0] >> 5) & 0x7e0) | \ ((src[0] >> 3) & 0x1f) | \ ((src[1] << 8) & 0xf8000000) | \ ((src[1] << 11) & 0x7e00000) | \ ((src[1] << 13) & 0x1f0000); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB565 conversion */ #define DITHER_RGBA_565_LUT_R(num) \ (_dither_r16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 16 ) & 0xff)]) #define DITHER_RGBA_565_LUT_G(num) \ (_dither_g16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 8 ) & 0xff)]) #define DITHER_RGBA_565_LUT_B(num) \ (_dither_b16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 0 ) & 0xff)]) #define WRITE1_RGBA_RGB565_DITHER(src, dest) \ *dest = (DITHER_RGBA_565_LUT_R(0)) | \ (DITHER_RGBA_565_LUT_G(0)) | \ (DITHER_RGBA_565_LUT_B(0)); dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB565_DITHER(src, dest) \ { \ *((DATA32 *)dest) = ((DITHER_RGBA_565_LUT_R(1))) | \ ((DITHER_RGBA_565_LUT_G(1))) | \ ((DITHER_RGBA_565_LUT_B(1))) | \ ((DITHER_RGBA_565_LUT_R(0) << 16)) | \ ((DITHER_RGBA_565_LUT_G(0) << 16)) | \ ((DITHER_RGBA_565_LUT_B(0) << 16)); \ dest += 2; src += 2; \ } #else #define WRITE2_RGBA_RGB565_DITHER(src, dest) \ { \ *((DATA32 *)dest) = ((DITHER_RGBA_565_LUT_R(0))) | \ ((DITHER_RGBA_565_LUT_G(0))) | \ ((DITHER_RGBA_565_LUT_B(0))) | \ ((DITHER_RGBA_565_LUT_R(1) << 16)) | \ ((DITHER_RGBA_565_LUT_G(1) << 16)) | \ ((DITHER_RGBA_565_LUT_B(1) << 16)); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* MACROS for plain RGBA -> BGR565 conversion */ #define WRITE1_RGBA_BGR565(src, dest) \ *dest = ((*src << 8) & 0xf800) | \ ((*src >> 5) & 0x7e0) | \ ((*src >> 19)& 0x1f); dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_BGR565(src, dest) \ { \ *((DATA32 *)dest) = ((src[1] << 8) & 0xf800) | \ ((src[1] >> 5) & 0x7e0) | \ ((src[1] >> 19)& 0x1f) | \ ((src[0] << 24) & 0xf8000000) | \ ((src[0] << 11) & 0x7e00000) | \ ((src[0] >> 3) & 0x1f0000); \ dest += 2; src += 2; \ } #else #define WRITE2_RGBA_BGR565(src, dest) \ { \ *((DATA32 *)dest) = ((src[0] << 8) & 0xf800) | \ ((src[0] >> 5) & 0x7e0) | \ ((src[0] >> 19)& 0x1f) | \ ((src[1] << 24) & 0xf8000000) | \ ((src[1] << 11) & 0x7e00000) | \ ((src[1] >> 3) & 0x1f0000); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> BGR565 conversion */ #define DITHER_RGBA_BGR565_LUT_R(num) \ (_dither_r16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 0 ) & 0xff)]) #define DITHER_RGBA_BGR565_LUT_G(num) \ (_dither_g16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 8 ) & 0xff)]) #define DITHER_RGBA_BGR565_LUT_B(num) \ (_dither_b16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 16) & 0xff)]) #define WRITE1_RGBA_BGR565_DITHER(src, dest) \ *dest = (DITHER_RGBA_BGR565_LUT_R(0)) | \ (DITHER_RGBA_BGR565_LUT_G(0)) | \ (DITHER_RGBA_BGR565_LUT_B(0)); dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_BGR565_DITHER(src, dest) \ { \ *((DATA32 *)dest) = ((DITHER_RGBA_BGR565_LUT_R(1))) | \ ((DITHER_RGBA_BGR565_LUT_G(1))) | \ ((DITHER_RGBA_BGR565_LUT_B(1))) | \ ((DITHER_RGBA_BGR565_LUT_R(0) << 16)) | \ ((DITHER_RGBA_BGR565_LUT_G(0) << 16)) | \ ((DITHER_RGBA_BGR565_LUT_B(0) << 16)); \ dest += 2; src += 2; \ } #else #define WRITE2_RGBA_BGR565_DITHER(src, dest) \ { \ *((DATA32 *)dest) = ((DITHER_RGBA_BGR565_LUT_R(0))) | \ ((DITHER_RGBA_BGR565_LUT_G(0))) | \ ((DITHER_RGBA_BGR565_LUT_B(0))) | \ ((DITHER_RGBA_BGR565_LUT_R(1) << 16)) | \ ((DITHER_RGBA_BGR565_LUT_G(1) << 16)) | \ ((DITHER_RGBA_BGR565_LUT_B(1) << 16)); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB555 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB555 conversion */ #define WRITE1_RGBA_RGB555(src, dest) \ *dest = ((*src >> 9) & 0x7c00) | \ ((*src >> 6) & 0x3e0) | \ ((*src >> 3) & 0x1f); dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB555(src, dest) \ { \ *((DATA32 *)dest) = ((src[1] >> 9) & 0x7c00) | \ ((src[1] >> 6) & 0x3e0) | \ ((src[1] >> 3) & 0x1f) | \ ((src[0] << 7) & 0x7c000000) | \ ((src[0] << 10) & 0x3e00000) | \ ((src[0] << 13) & 0x1f0000); \ dest += 2; src += 2; \ } #else #define WRITE2_RGBA_RGB555(src, dest) \ { \ *((DATA32 *)dest) = ((src[0] >> 9) & 0x7c00) | \ ((src[0] >> 6) & 0x3e0) | \ ((src[0] >> 3) & 0x1f) | \ ((src[1] << 7) & 0x7c000000) | \ ((src[1] << 10) & 0x3e00000) | \ ((src[1] << 13) & 0x1f0000); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB555 conversion */ #define DITHER_RGBA_555_LUT_R(num) \ (_dither_r16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 16 ) & 0xff)]) #define DITHER_RGBA_555_LUT_G(num) \ (_dither_g16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 8 ) & 0xff)]) #define DITHER_RGBA_555_LUT_B(num) \ (_dither_b16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 0 ) & 0xff)]) #define WRITE1_RGBA_RGB555_DITHER(src, dest) \ *dest = (DITHER_RGBA_555_LUT_R(0)) | \ (DITHER_RGBA_555_LUT_G(0)) | \ (DITHER_RGBA_555_LUT_B(0)); dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB555_DITHER(src, dest) \ { \ *((DATA32 *)dest) = ((DITHER_RGBA_555_LUT_R(1))) | \ ((DITHER_RGBA_555_LUT_G(1))) | \ ((DITHER_RGBA_555_LUT_B(1))) | \ ((DITHER_RGBA_555_LUT_R(0) << 16)) | \ ((DITHER_RGBA_555_LUT_G(0) << 16)) | \ ((DITHER_RGBA_555_LUT_B(0) << 16)); \ dest += 2; src += 2; \ } #else #define WRITE2_RGBA_RGB555_DITHER(src, dest) \ { \ *((DATA32 *)dest) = ((DITHER_RGBA_555_LUT_R(0))) | \ ((DITHER_RGBA_555_LUT_G(0))) | \ ((DITHER_RGBA_555_LUT_B(0))) | \ ((DITHER_RGBA_555_LUT_R(1) << 16)) | \ ((DITHER_RGBA_555_LUT_G(1) << 16)) | \ ((DITHER_RGBA_555_LUT_B(1) << 16)); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* MACROS for plain RGBA -> BGR555 conversion */ #define WRITE1_RGBA_BGR555(src, dest) \ *dest = ((*src << 7) & 0x7c00) | \ ((*src >> 6) & 0x3e0) | \ ((*src >> 19)& 0x1f); dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_BGR555(src, dest) \ { \ *((DATA32 *)dest) = ((src[1] << 7) & 0x7c00) | \ ((src[1] >> 6) & 0x3e0) | \ ((src[1] >> 19)& 0x1f) | \ ((src[0] << 23) & 0x7c000000) | \ ((src[0] << 10) & 0x3e00000) | \ ((src[0] >> 3) & 0x1f0000); \ dest += 2; src += 2; \ } #else #define WRITE2_RGBA_BGR555(src, dest) \ { \ *((DATA32 *)dest) = ((src[0] << 7) & 0x7c00) | \ ((src[0] >> 6) & 0x3e0) | \ ((src[0] >> 19)& 0x1f) | \ ((src[1] << 23) & 0x7c000000) | \ ((src[1] << 10) & 0x3e00000) | \ ((src[1] >> 3) & 0x1f0000); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> BGR555 conversion */ #define DITHER_RGBA_BGR555_LUT_R(num) \ (_dither_r16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 0 ) & 0xff)]) #define DITHER_RGBA_BGR555_LUT_G(num) \ (_dither_g16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 8 ) & 0xff)]) #define DITHER_RGBA_BGR555_LUT_B(num) \ (_dither_b16[(((x + num) & 0x3) << 10) | ((y & 0x3) << 8) | ((src[num] >> 16 ) & 0xff)]) #define WRITE1_RGBA_BGR555_DITHER(src, dest) \ *dest = (DITHER_RGBA_BGR555_LUT_R(0)) | \ (DITHER_RGBA_BGR555_LUT_G(0)) | \ (DITHER_RGBA_BGR555_LUT_B(0)); dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_BGR555_DITHER(src, dest) \ { \ *((DATA32 *)dest) = ((DITHER_RGBA_BGR555_LUT_R(1))) | \ ((DITHER_RGBA_BGR555_LUT_G(1))) | \ ((DITHER_RGBA_BGR555_LUT_B(1))) | \ ((DITHER_RGBA_BGR555_LUT_R(0) << 16)) | \ ((DITHER_RGBA_BGR555_LUT_G(0) << 16)) | \ ((DITHER_RGBA_BGR555_LUT_B(0) << 16)); \ dest += 2; src += 2; \ } #else #define WRITE2_RGBA_BGR555_DITHER(src, dest) \ { \ *((DATA32 *)dest) = ((DITHER_RGBA_BGR555_LUT_R(0))) | \ ((DITHER_RGBA_BGR555_LUT_G(0))) | \ ((DITHER_RGBA_BGR555_LUT_B(0))) | \ ((DITHER_RGBA_BGR555_LUT_R(1) << 16)) | \ ((DITHER_RGBA_BGR555_LUT_G(1) << 16)) | \ ((DITHER_RGBA_BGR555_LUT_B(1) << 16)); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB332 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB332 conversion */ #define WRITE1_RGBA_RGB332(src, dest) \ *dest = _dither_color_lut[((*src >> 6) & 0x03) | \ ((*src >> 11) & 0x1c) | \ ((*src >> 16) & 0xe0)]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB332(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[1] >> 6) & 0x03) | \ ((src[1] >> 11) & 0x1c) | \ ((src[1] >> 16) & 0xe0)]) | \ (_dither_color_lut[((src[0] >> 6) & 0x03) | \ ((src[0] >> 11) & 0x1c) | \ ((src[0] >> 16) & 0xe0)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB332(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[3] >> 6) & 0x03) | \ ((src[3] >> 11) & 0x1c) | \ ((src[3] >> 16) & 0xe0)]) | \ (_dither_color_lut[((src[2] >> 6) & 0x03) | \ ((src[2] >> 11) & 0x1c) | \ ((src[2] >> 16) & 0xe0)] << 8) | \ (_dither_color_lut[((src[1] >> 6) & 0x03) | \ ((src[1] >> 11) & 0x1c) | \ ((src[1] >> 16) & 0xe0)] << 16) | \ (_dither_color_lut[((src[0] >> 6) & 0x03) | \ ((src[0] >> 11) & 0x1c) | \ ((src[0] >> 16) & 0xe0)] << 24); \ dest += 4; src += 4; \ } #else #define WRITE2_RGBA_RGB332(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[0] >> 6) & 0x03) | \ ((src[0] >> 11) & 0x1c) | \ ((src[0] >> 16) & 0xe0)]) | \ (_dither_color_lut[((src[1] >> 6) & 0x03) | \ ((src[1] >> 11) & 0x1c) | \ ((src[1] >> 16) & 0xe0)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB332(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[0] >> 6) & 0x03) | \ ((src[0] >> 11) & 0x1c) | \ ((src[0] >> 16) & 0xe0)]) | \ (_dither_color_lut[((src[1] >> 6) & 0x03) | \ ((src[1] >> 11) & 0x1c) | \ ((src[1] >> 16) & 0xe0)] << 8) | \ (_dither_color_lut[((src[2] >> 6) & 0x03) | \ ((src[2] >> 11) & 0x1c) | \ ((src[2] >> 16) & 0xe0)] << 16) | \ (_dither_color_lut[((src[3] >> 6) & 0x03) | \ ((src[3] >> 11) & 0x1c) | \ ((src[3] >> 16) & 0xe0)] << 24); \ dest += 4; src += 4; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB332 conversion */ #define DITHER_RGBA_332_LUT_R(num) \ (_dither_r8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 16) & 0xff)]) #define DITHER_RGBA_332_LUT_G(num) \ (_dither_g8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 8) & 0xff)]) #define DITHER_RGBA_332_LUT_B(num) \ (_dither_b8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 0) & 0xff)]) #define WRITE1_RGBA_RGB332_DITHER(src, dest) \ *dest = _dither_color_lut[(DITHER_RGBA_332_LUT_R(0)) | \ (DITHER_RGBA_332_LUT_G(0)) | \ (DITHER_RGBA_332_LUT_B(0))]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE4_RGBA_RGB332_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_332_LUT_R(3))) | \ ((DITHER_RGBA_332_LUT_G(3))) | \ ((DITHER_RGBA_332_LUT_B(3)))]) | \ (_dither_color_lut[((DITHER_RGBA_332_LUT_R(2))) | \ ((DITHER_RGBA_332_LUT_G(2))) | \ ((DITHER_RGBA_332_LUT_B(2)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_332_LUT_R(1))) | \ ((DITHER_RGBA_332_LUT_G(1))) | \ ((DITHER_RGBA_332_LUT_B(1)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_332_LUT_R(0))) | \ ((DITHER_RGBA_332_LUT_G(0))) | \ ((DITHER_RGBA_332_LUT_B(0)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB332_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_332_LUT_R(1))) | \ ((DITHER_RGBA_332_LUT_G(1))) | \ ((DITHER_RGBA_332_LUT_B(1)))]) | \ (_dither_color_lut[((DITHER_RGBA_332_LUT_R(0))) | \ ((DITHER_RGBA_332_LUT_G(0))) | \ ((DITHER_RGBA_332_LUT_B(0)))] << 8); \ dest += 2; src += 2; \ } #else #define WRITE4_RGBA_RGB332_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_332_LUT_R(0))) | \ ((DITHER_RGBA_332_LUT_G(0))) | \ ((DITHER_RGBA_332_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_332_LUT_R(1))) | \ ((DITHER_RGBA_332_LUT_G(1))) | \ ((DITHER_RGBA_332_LUT_B(1)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_332_LUT_R(2))) | \ ((DITHER_RGBA_332_LUT_G(2))) | \ ((DITHER_RGBA_332_LUT_B(2)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_332_LUT_R(3))) | \ ((DITHER_RGBA_332_LUT_G(3))) | \ ((DITHER_RGBA_332_LUT_B(3)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB332_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_332_LUT_R(0))) | \ ((DITHER_RGBA_332_LUT_G(0))) | \ ((DITHER_RGBA_332_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_332_LUT_R(1))) | \ ((DITHER_RGBA_332_LUT_G(1))) | \ ((DITHER_RGBA_332_LUT_B(1)))] << 8); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB666 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB666 conversion */ #define WRITE1_RGBA_RGB666(src, dest) \ { \ *dest = _dither_color_lut[(_dither_666r[(*src >> 16) & 0xff] ) + \ (_dither_666g[(*src >> 8 ) & 0xff] ) + \ (_dither_666b[(*src ) & 0xff] )]; dest++; src++; \ } #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB666(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[(_dither_666r[(src[1] >> 16) & 0xff] ) + \ (_dither_666g[(src[1] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[1] ) & 0xff] )]) | \ (_dither_color_lut[(_dither_666r[(src[0] >> 16) & 0xff] ) + \ (_dither_666g[(src[0] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[0] ) & 0xff] )] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB666(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[(_dither_666r[(src[3] >> 16) & 0xff] ) + \ (_dither_666g[(src[3] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[3] ) & 0xff] )]) | \ (_dither_color_lut[(_dither_666r[(src[2] >> 16) & 0xff] ) + \ (_dither_666g[(src[2] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[2] ) & 0xff] )] << 8) | \ (_dither_color_lut[(_dither_666r[(src[1] >> 16) & 0xff] ) + \ (_dither_666g[(src[1] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[1] ) & 0xff] )] << 16) | \ (_dither_color_lut[(_dither_666r[(src[0] >> 16) & 0xff] ) + \ (_dither_666g[(src[0] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[0] ) & 0xff] )] << 24); \ dest += 4; src += 4; \ } #else #define WRITE2_RGBA_RGB666(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[(_dither_666r[(src[0] >> 16) & 0xff] ) + \ (_dither_666g[(src[0] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[0] ) & 0xff] )]) | \ (_dither_color_lut[(_dither_666r[(src[1] >> 16) & 0xff] ) + \ (_dither_666g[(src[1] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[1] ) & 0xff] )] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB666(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[(_dither_666r[(src[0] >> 16) & 0xff] ) + \ (_dither_666g[(src[0] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[0] ) & 0xff] )]) | \ (_dither_color_lut[(_dither_666r[(src[1] >> 16) & 0xff] ) + \ (_dither_666g[(src[1] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[1] ) & 0xff] )] << 8) | \ (_dither_color_lut[(_dither_666r[(src[2] >> 16) & 0xff] ) + \ (_dither_666g[(src[2] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[2] ) & 0xff] )] << 16) | \ (_dither_color_lut[(_dither_666r[(src[3] >> 16) & 0xff] ) + \ (_dither_666g[(src[3] >> 8 ) & 0xff] ) + \ (_dither_666b[(src[3] ) & 0xff] )] << 24); \ dest += 4; src += 4; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB666 conversion */ #define DITHER_RGBA_666_LUT_R(num) \ (_dither_r8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 16) & 0xff)]) #define DITHER_RGBA_666_LUT_G(num) \ (_dither_g8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 8) & 0xff)]) #define DITHER_RGBA_666_LUT_B(num) \ (_dither_b8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 0) & 0xff)]) #define WRITE1_RGBA_RGB666_DITHER(src, dest) \ { \ int _dith; \ int _r[1], _g[1], _b[1]; \ _dith = (_dither_128128[(x + 0) & 0x7f][y & 0x7f] << 2) | 7; \ _r[0] = ((((src[0] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[0] = ((((src[0] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[0] = ((((src[0] ) & 0xff) * 5) + _dith) >> 8; \ *((DATA8 *)dest) = \ (_dither_color_lut[(_r[0] * 36) + (_g[0] * 6) + _b[0]]) \ ; \ dest += 1; src += 1; \ } #ifdef WORDS_BIGENDIAN #define WRITE4_RGBA_RGB666_DITHER(src, dest) \ { \ int _dith; \ int _r[4], _g[4], _b[4]; \ _dith = (_dither_128128[(x + 0) & 0x7f][y & 0x7f] << 2) | 7; \ _r[0] = ((((src[0] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[0] = ((((src[0] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[0] = ((((src[0] ) & 0xff) * 5) + _dith) >> 8; \ _dith = (_dither_128128[(x + 1) & 0x7f][y & 0x7f] << 2) | 7; \ _r[1] = ((((src[1] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[1] = ((((src[1] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[1] = ((((src[1] ) & 0xff) * 5) + _dith) >> 8; \ _dith = (_dither_128128[(x + 2) & 0x7f][y & 0x7f] << 2) | 7; \ _r[2] = ((((src[2] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[2] = ((((src[2] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[2] = ((((src[2] ) & 0xff) * 5) + _dith) >> 8; \ _dith = (_dither_128128[(x + 3) & 0x7f][y & 0x7f] << 2) | 7; \ _r[3] = ((((src[3] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[3] = ((((src[3] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[3] = ((((src[3] ) & 0xff) * 5) + _dith) >> 8; \ *((DATA32 *)dest) = \ (_dither_color_lut[(_r[3] * 36) + (_g[3] * 6) + _b[3]]) | \ (_dither_color_lut[(_r[2] * 36) + (_g[2] * 6) + _b[2]] << 8) | \ (_dither_color_lut[(_r[1] * 36) + (_g[1] * 6) + _b[1]] << 16) | \ (_dither_color_lut[(_r[0] * 36) + (_g[0] * 6) + _b[0]] << 24) \ ; \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB666_DITHER(src, dest) \ { \ int _dith; \ int _r[2], _g[2], _b[2]; \ _dith = (_dither_128128[(x + 0) & 0x7f][y & 0x7f] << 2) | 7; \ _r[0] = ((((src[0] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[0] = ((((src[0] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[0] = ((((src[0] ) & 0xff) * 5) + _dith) >> 8; \ _dith = (_dither_128128[(x + 1) & 0x7f][y & 0x7f] << 2) | 7; \ _r[1] = ((((src[1] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[1] = ((((src[1] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[1] = ((((src[1] ) & 0xff) * 5) + _dith) >> 8; \ *((DATA16 *)dest) = \ (_dither_color_lut[(_r[1] * 36) + (_g[1] * 6) + _b[1]]) | \ (_dither_color_lut[(_r[0] * 36) + (_g[0] * 6) + _b[0]] << 8) \ ; \ dest += 2; src += 2; \ } #else #if 0 /* OOOOOOLD code for 666 - the 666 dithering uses the 128x128 dither mask :) */ #define WRITE4_RGBA_RGB666_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_666_LUT_R(0))) + \ ((DITHER_RGBA_666_LUT_G(0))) + \ ((DITHER_RGBA_666_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_666_LUT_R(1))) + \ ((DITHER_RGBA_666_LUT_G(1))) + \ ((DITHER_RGBA_666_LUT_B(1)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_666_LUT_R(2))) + \ ((DITHER_RGBA_666_LUT_G(2))) + \ ((DITHER_RGBA_666_LUT_B(2)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_666_LUT_R(3))) + \ ((DITHER_RGBA_666_LUT_G(3))) + \ ((DITHER_RGBA_666_LUT_B(3)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB666_DITHER(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((DITHER_RGBA_666_LUT_R(0))) + \ ((DITHER_RGBA_666_LUT_G(0))) + \ ((DITHER_RGBA_666_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_666_LUT_R(1))) + \ ((DITHER_RGBA_666_LUT_G(1))) + \ ((DITHER_RGBA_666_LUT_B(1)))] << 8); \ dest += 2; src += 2; \ } #else #define WRITE4_RGBA_RGB666_DITHER(src, dest) \ { \ int _dith; \ int _r[4], _g[4], _b[4]; \ _dith = (_dither_128128[(x + 0) & 0x7f][y & 0x7f] << 2) | 7; \ _r[0] = ((((src[0] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[0] = ((((src[0] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[0] = ((((src[0] ) & 0xff) * 5) + _dith) >> 8; \ _dith = (_dither_128128[(x + 1) & 0x7f][y & 0x7f] << 2) | 7; \ _r[1] = ((((src[1] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[1] = ((((src[1] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[1] = ((((src[1] ) & 0xff) * 5) + _dith) >> 8; \ _dith = (_dither_128128[(x + 2) & 0x7f][y & 0x7f] << 2) | 7; \ _r[2] = ((((src[2] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[2] = ((((src[2] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[2] = ((((src[2] ) & 0xff) * 5) + _dith) >> 8; \ _dith = (_dither_128128[(x + 3) & 0x7f][y & 0x7f] << 2) | 7; \ _r[3] = ((((src[3] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[3] = ((((src[3] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[3] = ((((src[3] ) & 0xff) * 5) + _dith) >> 8; \ *((DATA32 *)dest) = \ (_dither_color_lut[(_r[0] * 36) + (_g[0] * 6) + _b[0]]) | \ (_dither_color_lut[(_r[1] * 36) + (_g[1] * 6) + _b[1]] << 8) | \ (_dither_color_lut[(_r[2] * 36) + (_g[2] * 6) + _b[2]] << 16) | \ (_dither_color_lut[(_r[3] * 36) + (_g[3] * 6) + _b[3]] << 24) \ ; \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB666_DITHER(src, dest) \ { \ int _dith; \ int _r[2], _g[2], _b[2]; \ _dith = (_dither_128128[(x + 0) & 0x7f][y & 0x7f] << 2) | 7; \ _r[0] = ((((src[0] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[0] = ((((src[0] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[0] = ((((src[0] ) & 0xff) * 5) + _dith) >> 8; \ _dith = (_dither_128128[(x + 1) & 0x7f][y & 0x7f] << 2) | 7; \ _r[1] = ((((src[1] >> 16) & 0xff) * 5) + _dith) >> 8; \ _g[1] = ((((src[1] >> 8 ) & 0xff) * 5) + (262 - _dith)) >> 8; \ _b[1] = ((((src[1] ) & 0xff) * 5) + _dith) >> 8; \ *((DATA16 *)dest) = \ (_dither_color_lut[(_r[0] * 36) + (_g[0] * 6) + _b[0]]) | \ (_dither_color_lut[(_r[1] * 36) + (_g[1] * 6) + _b[1]] << 8) \ ; \ dest += 2; src += 2; \ } #endif #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB232 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB232 conversion */ #define RGB232_BSHIFT >> 6 #define RGB232_GSHIFT >> 11 #define RGB232_RSHIFT >> 17 #define RGB232_BMASK & 0x03 #define RGB232_GMASK & 0x1c #define RGB232_RMASK & 0x60 #define WRITE1_RGBA_RGB232(src, dest) \ *dest = _dither_color_lut[((*src RGB232_BSHIFT) RGB232_BMASK) | \ ((*src RGB232_GSHIFT) RGB232_GMASK) | \ ((*src RGB232_RSHIFT) RGB232_RMASK)]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB232(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[1] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[1] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[1] RGB232_RSHIFT) RGB232_RMASK)]) | \ (_dither_color_lut[((src[0] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[0] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[0] RGB232_RSHIFT) RGB232_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB232(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[3] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[3] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[3] RGB232_RSHIFT) RGB232_RMASK)]) | \ (_dither_color_lut[((src[2] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[2] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[2] RGB232_RSHIFT) RGB232_RMASK)] << 8) | \ (_dither_color_lut[((src[1] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[1] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[1] RGB232_RSHIFT) RGB232_RMASK)] << 16) | \ (_dither_color_lut[((src[0] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[0] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[0] RGB232_RSHIFT) RGB232_RMASK)] << 24); \ dest += 4; src += 4; \ } #else #define WRITE2_RGBA_RGB232(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[0] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[0] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[0] RGB232_RSHIFT) RGB232_RMASK)]) | \ (_dither_color_lut[((src[1] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[1] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[1] RGB232_RSHIFT) RGB232_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB232(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[0] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[0] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[0] RGB232_RSHIFT) RGB232_RMASK)]) | \ (_dither_color_lut[((src[1] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[1] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[1] RGB232_RSHIFT) RGB232_RMASK)] << 8) | \ (_dither_color_lut[((src[2] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[2] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[2] RGB232_RSHIFT) RGB232_RMASK)] << 16) | \ (_dither_color_lut[((src[3] RGB232_BSHIFT) RGB232_BMASK) | \ ((src[3] RGB232_GSHIFT) RGB232_GMASK) | \ ((src[3] RGB232_RSHIFT) RGB232_RMASK)] << 24); \ dest += 4; src += 4; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB232 conversion */ #define DITHER_RGBA_232_LUT_R(num) \ (_dither_r8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 16) & 0xff)]) #define DITHER_RGBA_232_LUT_G(num) \ (_dither_g8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 8) & 0xff)]) #define DITHER_RGBA_232_LUT_B(num) \ (_dither_b8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 0) & 0xff)]) #define WRITE1_RGBA_RGB232_DITHER(src, dest) \ *dest = _dither_color_lut[(DITHER_RGBA_232_LUT_R(0)) | \ (DITHER_RGBA_232_LUT_G(0)) | \ (DITHER_RGBA_232_LUT_B(0))]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE4_RGBA_RGB232_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_232_LUT_R(3))) | \ ((DITHER_RGBA_232_LUT_G(3))) | \ ((DITHER_RGBA_232_LUT_B(3)))]) | \ (_dither_color_lut[((DITHER_RGBA_232_LUT_R(2))) | \ ((DITHER_RGBA_232_LUT_G(2))) | \ ((DITHER_RGBA_232_LUT_B(2)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_232_LUT_R(1))) | \ ((DITHER_RGBA_232_LUT_G(1))) | \ ((DITHER_RGBA_232_LUT_B(1)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_232_LUT_R(0))) | \ ((DITHER_RGBA_232_LUT_G(0))) | \ ((DITHER_RGBA_232_LUT_B(0)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB232_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_232_LUT_R(1))) | \ ((DITHER_RGBA_232_LUT_G(1))) | \ ((DITHER_RGBA_232_LUT_B(1)))]) | \ (_dither_color_lut[((DITHER_RGBA_232_LUT_R(0))) | \ ((DITHER_RGBA_232_LUT_G(0))) | \ ((DITHER_RGBA_232_LUT_B(0)))] << 8); \ dest += 2; src += 2; \ } #else #define WRITE4_RGBA_RGB232_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_232_LUT_R(0))) | \ ((DITHER_RGBA_232_LUT_G(0))) | \ ((DITHER_RGBA_232_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_232_LUT_R(1))) | \ ((DITHER_RGBA_232_LUT_G(1))) | \ ((DITHER_RGBA_232_LUT_B(1)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_232_LUT_R(2))) | \ ((DITHER_RGBA_232_LUT_G(2))) | \ ((DITHER_RGBA_232_LUT_B(2)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_232_LUT_R(3))) | \ ((DITHER_RGBA_232_LUT_G(3))) | \ ((DITHER_RGBA_232_LUT_B(3)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB232_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_232_LUT_R(0))) | \ ((DITHER_RGBA_232_LUT_G(0))) | \ ((DITHER_RGBA_232_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_232_LUT_R(1))) | \ ((DITHER_RGBA_232_LUT_G(1))) | \ ((DITHER_RGBA_232_LUT_B(1)))] << 8); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB222 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB222 conversion */ #define RGB222_BSHIFT >> 6 #define RGB222_GSHIFT >> 12 #define RGB222_RSHIFT >> 18 #define RGB222_BMASK & 0x03 #define RGB222_GMASK & 0x0c #define RGB222_RMASK & 0x30 #define WRITE1_RGBA_RGB222(src, dest) \ *dest = _dither_color_lut[((*src RGB222_BSHIFT) RGB222_BMASK) | \ ((*src RGB222_GSHIFT) RGB222_GMASK) | \ ((*src RGB222_RSHIFT) RGB222_RMASK)]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB222(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[1] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[1] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[1] RGB222_RSHIFT) RGB222_RMASK)]) | \ (_dither_color_lut[((src[0] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[0] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[0] RGB222_RSHIFT) RGB222_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB222(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[3] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[3] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[3] RGB222_RSHIFT) RGB222_RMASK)]) | \ (_dither_color_lut[((src[2] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[2] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[2] RGB222_RSHIFT) RGB222_RMASK)] << 8) | \ (_dither_color_lut[((src[1] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[1] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[1] RGB222_RSHIFT) RGB222_RMASK)] << 16) | \ (_dither_color_lut[((src[0] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[0] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[0] RGB222_RSHIFT) RGB222_RMASK)] << 24); \ dest += 4; src += 4; \ } #else #define WRITE2_RGBA_RGB222(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[0] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[0] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[0] RGB222_RSHIFT) RGB222_RMASK)]) | \ (_dither_color_lut[((src[1] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[1] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[1] RGB222_RSHIFT) RGB222_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB222(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[0] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[0] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[0] RGB222_RSHIFT) RGB222_RMASK)]) | \ (_dither_color_lut[((src[1] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[1] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[1] RGB222_RSHIFT) RGB222_RMASK)] << 8) | \ (_dither_color_lut[((src[2] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[2] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[2] RGB222_RSHIFT) RGB222_RMASK)] << 16) | \ (_dither_color_lut[((src[3] RGB222_BSHIFT) RGB222_BMASK) | \ ((src[3] RGB222_GSHIFT) RGB222_GMASK) | \ ((src[3] RGB222_RSHIFT) RGB222_RMASK)] << 24); \ dest += 4; src += 4; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB222 conversion */ #define DITHER_RGBA_222_LUT_R(num) \ (_dither_r8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 16) & 0xff)]) #define DITHER_RGBA_222_LUT_G(num) \ (_dither_g8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 8) & 0xff)]) #define DITHER_RGBA_222_LUT_B(num) \ (_dither_b8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 0) & 0xff)]) #define WRITE1_RGBA_RGB222_DITHER(src, dest) \ *dest = _dither_color_lut[(DITHER_RGBA_222_LUT_R(0)) | \ (DITHER_RGBA_222_LUT_G(0)) | \ (DITHER_RGBA_222_LUT_B(0))]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE4_RGBA_RGB222_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_222_LUT_R(3))) | \ ((DITHER_RGBA_222_LUT_G(3))) | \ ((DITHER_RGBA_222_LUT_B(3)))]) | \ (_dither_color_lut[((DITHER_RGBA_222_LUT_R(2))) | \ ((DITHER_RGBA_222_LUT_G(2))) | \ ((DITHER_RGBA_222_LUT_B(2)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_222_LUT_R(1))) | \ ((DITHER_RGBA_222_LUT_G(1))) | \ ((DITHER_RGBA_222_LUT_B(1)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_222_LUT_R(0))) | \ ((DITHER_RGBA_222_LUT_G(0))) | \ ((DITHER_RGBA_222_LUT_B(0)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB222_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_222_LUT_R(1))) | \ ((DITHER_RGBA_222_LUT_G(1))) | \ ((DITHER_RGBA_222_LUT_B(1)))]) | \ (_dither_color_lut[((DITHER_RGBA_222_LUT_R(0))) | \ ((DITHER_RGBA_222_LUT_G(0))) | \ ((DITHER_RGBA_222_LUT_B(0)))] << 8); \ dest += 2; src += 2; \ } #else #define WRITE4_RGBA_RGB222_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_222_LUT_R(0))) | \ ((DITHER_RGBA_222_LUT_G(0))) | \ ((DITHER_RGBA_222_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_222_LUT_R(1))) | \ ((DITHER_RGBA_222_LUT_G(1))) | \ ((DITHER_RGBA_222_LUT_B(1)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_222_LUT_R(2))) | \ ((DITHER_RGBA_222_LUT_G(2))) | \ ((DITHER_RGBA_222_LUT_B(2)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_222_LUT_R(3))) | \ ((DITHER_RGBA_222_LUT_G(3))) | \ ((DITHER_RGBA_222_LUT_B(3)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB222_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_222_LUT_R(0))) | \ ((DITHER_RGBA_222_LUT_G(0))) | \ ((DITHER_RGBA_222_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_222_LUT_R(1))) | \ ((DITHER_RGBA_222_LUT_G(1))) | \ ((DITHER_RGBA_222_LUT_B(1)))] << 8); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB221 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB221 conversion */ #define RGB221_BSHIFT >> 7 #define RGB221_GSHIFT >> 13 #define RGB221_RSHIFT >> 19 #define RGB221_BMASK & 0x01 #define RGB221_GMASK & 0x06 #define RGB221_RMASK & 0x18 #define WRITE1_RGBA_RGB221(src, dest) \ *dest = _dither_color_lut[((*src RGB221_BSHIFT) RGB221_BMASK) | \ ((*src RGB221_GSHIFT) RGB221_GMASK) | \ ((*src RGB221_RSHIFT) RGB221_RMASK)]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB221(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[1] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[1] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[1] RGB221_RSHIFT) RGB221_RMASK)]) | \ (_dither_color_lut[((src[0] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[0] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[0] RGB221_RSHIFT) RGB221_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB221(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[3] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[3] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[3] RGB221_RSHIFT) RGB221_RMASK)]) | \ (_dither_color_lut[((src[2] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[2] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[2] RGB221_RSHIFT) RGB221_RMASK)] << 8) | \ (_dither_color_lut[((src[1] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[1] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[1] RGB221_RSHIFT) RGB221_RMASK)] << 16) | \ (_dither_color_lut[((src[0] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[0] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[0] RGB221_RSHIFT) RGB221_RMASK)] << 24); \ dest += 4; src += 4; \ } #else #define WRITE2_RGBA_RGB221(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[0] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[0] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[0] RGB221_RSHIFT) RGB221_RMASK)]) | \ (_dither_color_lut[((src[1] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[1] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[1] RGB221_RSHIFT) RGB221_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB221(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[0] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[0] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[0] RGB221_RSHIFT) RGB221_RMASK)]) | \ (_dither_color_lut[((src[1] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[1] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[1] RGB221_RSHIFT) RGB221_RMASK)] << 8) | \ (_dither_color_lut[((src[2] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[2] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[2] RGB221_RSHIFT) RGB221_RMASK)] << 16) | \ (_dither_color_lut[((src[3] RGB221_BSHIFT) RGB221_BMASK) | \ ((src[3] RGB221_GSHIFT) RGB221_GMASK) | \ ((src[3] RGB221_RSHIFT) RGB221_RMASK)] << 24); \ dest += 4; src += 4; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB221 conversion */ #define DITHER_RGBA_221_LUT_R(num) \ (_dither_r8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 16) & 0xff)]) #define DITHER_RGBA_221_LUT_G(num) \ (_dither_g8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 8) & 0xff)]) #define DITHER_RGBA_221_LUT_B(num) \ (_dither_b8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 0) & 0xff)]) #define WRITE1_RGBA_RGB221_DITHER(src, dest) \ *dest = _dither_color_lut[(DITHER_RGBA_221_LUT_R(0)) | \ (DITHER_RGBA_221_LUT_G(0)) | \ (DITHER_RGBA_221_LUT_B(0))]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE4_RGBA_RGB221_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_221_LUT_R(3))) | \ ((DITHER_RGBA_221_LUT_G(3))) | \ ((DITHER_RGBA_221_LUT_B(3)))]) | \ (_dither_color_lut[((DITHER_RGBA_221_LUT_R(2))) | \ ((DITHER_RGBA_221_LUT_G(2))) | \ ((DITHER_RGBA_221_LUT_B(2)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_221_LUT_R(1))) | \ ((DITHER_RGBA_221_LUT_G(1))) | \ ((DITHER_RGBA_221_LUT_B(1)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_221_LUT_R(0))) | \ ((DITHER_RGBA_221_LUT_G(0))) | \ ((DITHER_RGBA_221_LUT_B(0)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB221_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_221_LUT_R(1))) | \ ((DITHER_RGBA_221_LUT_G(1))) | \ ((DITHER_RGBA_221_LUT_B(1)))]) | \ (_dither_color_lut[((DITHER_RGBA_221_LUT_R(0))) | \ ((DITHER_RGBA_221_LUT_G(0))) | \ ((DITHER_RGBA_221_LUT_B(0)))] << 8); \ dest += 2; src += 2; \ } #else #define WRITE4_RGBA_RGB221_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_221_LUT_R(0))) | \ ((DITHER_RGBA_221_LUT_G(0))) | \ ((DITHER_RGBA_221_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_221_LUT_R(1))) | \ ((DITHER_RGBA_221_LUT_G(1))) | \ ((DITHER_RGBA_221_LUT_B(1)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_221_LUT_R(2))) | \ ((DITHER_RGBA_221_LUT_G(2))) | \ ((DITHER_RGBA_221_LUT_B(2)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_221_LUT_R(3))) | \ ((DITHER_RGBA_221_LUT_G(3))) | \ ((DITHER_RGBA_221_LUT_B(3)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB221_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_221_LUT_R(0))) | \ ((DITHER_RGBA_221_LUT_G(0))) | \ ((DITHER_RGBA_221_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_221_LUT_R(1))) | \ ((DITHER_RGBA_221_LUT_G(1))) | \ ((DITHER_RGBA_221_LUT_B(1)))] << 8); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB121 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB121 conversion */ #define RGB121_BSHIFT >> 7 #define RGB121_GSHIFT >> 13 #define RGB121_RSHIFT >> 20 #define RGB121_BMASK & 0x01 #define RGB121_GMASK & 0x06 #define RGB121_RMASK & 0x08 #define WRITE1_RGBA_RGB121(src, dest) \ *dest = _dither_color_lut[((*src RGB121_BSHIFT) RGB121_BMASK) | \ ((*src RGB121_GSHIFT) RGB121_GMASK) | \ ((*src RGB121_RSHIFT) RGB121_RMASK)]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB121(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[1] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[1] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[1] RGB121_RSHIFT) RGB121_RMASK)]) | \ (_dither_color_lut[((src[0] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[0] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[0] RGB121_RSHIFT) RGB121_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB121(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[3] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[3] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[3] RGB121_RSHIFT) RGB121_RMASK)]) | \ (_dither_color_lut[((src[2] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[2] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[2] RGB121_RSHIFT) RGB121_RMASK)] << 8) | \ (_dither_color_lut[((src[1] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[1] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[1] RGB121_RSHIFT) RGB121_RMASK)] << 16) | \ (_dither_color_lut[((src[0] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[0] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[0] RGB121_RSHIFT) RGB121_RMASK)] << 24); \ dest += 4; src += 4; \ } #else #define WRITE2_RGBA_RGB121(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[0] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[0] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[0] RGB121_RSHIFT) RGB121_RMASK)]) | \ (_dither_color_lut[((src[1] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[1] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[1] RGB121_RSHIFT) RGB121_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB121(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[0] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[0] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[0] RGB121_RSHIFT) RGB121_RMASK)]) | \ (_dither_color_lut[((src[1] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[1] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[1] RGB121_RSHIFT) RGB121_RMASK)] << 8) | \ (_dither_color_lut[((src[2] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[2] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[2] RGB121_RSHIFT) RGB121_RMASK)] << 16) | \ (_dither_color_lut[((src[3] RGB121_BSHIFT) RGB121_BMASK) | \ ((src[3] RGB121_GSHIFT) RGB121_GMASK) | \ ((src[3] RGB121_RSHIFT) RGB121_RMASK)] << 24); \ dest += 4; src += 4; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB121 conversion */ #define DITHER_RGBA_121_LUT_R(num) \ (_dither_r8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 16) & 0xff)]) #define DITHER_RGBA_121_LUT_G(num) \ (_dither_g8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 8) & 0xff)]) #define DITHER_RGBA_121_LUT_B(num) \ (_dither_b8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 0) & 0xff)]) #define WRITE1_RGBA_RGB121_DITHER(src, dest) \ *dest = _dither_color_lut[(DITHER_RGBA_121_LUT_R(0)) | \ (DITHER_RGBA_121_LUT_G(0)) | \ (DITHER_RGBA_121_LUT_B(0))]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE4_RGBA_RGB121_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_121_LUT_R(3))) | \ ((DITHER_RGBA_121_LUT_G(3))) | \ ((DITHER_RGBA_121_LUT_B(3)))]) | \ (_dither_color_lut[((DITHER_RGBA_121_LUT_R(2))) | \ ((DITHER_RGBA_121_LUT_G(2))) | \ ((DITHER_RGBA_121_LUT_B(2)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_121_LUT_R(1))) | \ ((DITHER_RGBA_121_LUT_G(1))) | \ ((DITHER_RGBA_121_LUT_B(1)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_121_LUT_R(0))) | \ ((DITHER_RGBA_121_LUT_G(0))) | \ ((DITHER_RGBA_121_LUT_B(0)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB121_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_121_LUT_R(1))) | \ ((DITHER_RGBA_121_LUT_G(1))) | \ ((DITHER_RGBA_121_LUT_B(1)))]) | \ (_dither_color_lut[((DITHER_RGBA_121_LUT_R(0))) | \ ((DITHER_RGBA_121_LUT_G(0))) | \ ((DITHER_RGBA_121_LUT_B(0)))] << 8); \ dest += 2; src += 2; \ } #else #define WRITE4_RGBA_RGB121_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_121_LUT_R(0))) | \ ((DITHER_RGBA_121_LUT_G(0))) | \ ((DITHER_RGBA_121_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_121_LUT_R(1))) | \ ((DITHER_RGBA_121_LUT_G(1))) | \ ((DITHER_RGBA_121_LUT_B(1)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_121_LUT_R(2))) | \ ((DITHER_RGBA_121_LUT_G(2))) | \ ((DITHER_RGBA_121_LUT_B(2)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_121_LUT_R(3))) | \ ((DITHER_RGBA_121_LUT_G(3))) | \ ((DITHER_RGBA_121_LUT_B(3)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB121_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_121_LUT_R(0))) | \ ((DITHER_RGBA_121_LUT_G(0))) | \ ((DITHER_RGBA_121_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_121_LUT_R(1))) | \ ((DITHER_RGBA_121_LUT_G(1))) | \ ((DITHER_RGBA_121_LUT_B(1)))] << 8); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB111 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB111 conversion */ #define RGB111_BSHIFT >> 7 #define RGB111_GSHIFT >> 14 #define RGB111_RSHIFT >> 21 #define RGB111_BMASK & 0x01 #define RGB111_GMASK & 0x02 #define RGB111_RMASK & 0x04 #define WRITE1_RGBA_RGB111(src, dest) \ *dest = _dither_color_lut[((*src RGB111_BSHIFT) RGB111_BMASK) | \ ((*src RGB111_GSHIFT) RGB111_GMASK) | \ ((*src RGB111_RSHIFT) RGB111_RMASK)]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE2_RGBA_RGB111(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[1] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[1] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[1] RGB111_RSHIFT) RGB111_RMASK)]) | \ (_dither_color_lut[((src[0] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[0] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[0] RGB111_RSHIFT) RGB111_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB111(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[3] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[3] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[3] RGB111_RSHIFT) RGB111_RMASK)]) | \ (_dither_color_lut[((src[2] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[2] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[2] RGB111_RSHIFT) RGB111_RMASK)] << 8) | \ (_dither_color_lut[((src[1] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[1] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[1] RGB111_RSHIFT) RGB111_RMASK)] << 16) | \ (_dither_color_lut[((src[0] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[0] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[0] RGB111_RSHIFT) RGB111_RMASK)] << 24); \ dest += 4; src += 4; \ } #else #define WRITE2_RGBA_RGB111(src, dest) \ { \ *((DATA16 *)dest) = (_dither_color_lut[((src[0] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[0] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[0] RGB111_RSHIFT) RGB111_RMASK)]) | \ (_dither_color_lut[((src[1] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[1] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[1] RGB111_RSHIFT) RGB111_RMASK)] << 8); \ dest += 2; src += 2; \ } #define WRITE4_RGBA_RGB111(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((src[0] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[0] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[0] RGB111_RSHIFT) RGB111_RMASK)]) | \ (_dither_color_lut[((src[1] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[1] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[1] RGB111_RSHIFT) RGB111_RMASK)] << 8) | \ (_dither_color_lut[((src[2] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[2] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[2] RGB111_RSHIFT) RGB111_RMASK)] << 16) | \ (_dither_color_lut[((src[3] RGB111_BSHIFT) RGB111_BMASK) | \ ((src[3] RGB111_GSHIFT) RGB111_GMASK) | \ ((src[3] RGB111_RSHIFT) RGB111_RMASK)] << 24); \ dest += 4; src += 4; \ } #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB111 conversion */ #define DITHER_RGBA_111_LUT_R(num) \ (_dither_r8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 16) & 0xff)]) #define DITHER_RGBA_111_LUT_G(num) \ (_dither_g8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 8) & 0xff)]) #define DITHER_RGBA_111_LUT_B(num) \ (_dither_b8[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 0) & 0xff)]) #define WRITE1_RGBA_RGB111_DITHER(src, dest) \ *dest = _dither_color_lut[(DITHER_RGBA_111_LUT_R(0)) | \ (DITHER_RGBA_111_LUT_G(0)) | \ (DITHER_RGBA_111_LUT_B(0))]; dest++; src++ #ifdef WORDS_BIGENDIAN #define WRITE4_RGBA_RGB111_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_111_LUT_R(3))) | \ ((DITHER_RGBA_111_LUT_G(3))) | \ ((DITHER_RGBA_111_LUT_B(3)))]) | \ (_dither_color_lut[((DITHER_RGBA_111_LUT_R(2))) | \ ((DITHER_RGBA_111_LUT_G(2))) | \ ((DITHER_RGBA_111_LUT_B(2)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_111_LUT_R(1))) | \ ((DITHER_RGBA_111_LUT_G(1))) | \ ((DITHER_RGBA_111_LUT_B(1)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_111_LUT_R(0))) | \ ((DITHER_RGBA_111_LUT_G(0))) | \ ((DITHER_RGBA_111_LUT_B(0)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB111_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_111_LUT_R(1))) | \ ((DITHER_RGBA_111_LUT_G(1))) | \ ((DITHER_RGBA_111_LUT_B(1)))]) | \ (_dither_color_lut[((DITHER_RGBA_111_LUT_R(0))) | \ ((DITHER_RGBA_111_LUT_G(0))) | \ ((DITHER_RGBA_111_LUT_B(0)))] << 8); \ dest += 2; src += 2; \ } #else #define WRITE4_RGBA_RGB111_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_111_LUT_R(0))) | \ ((DITHER_RGBA_111_LUT_G(0))) | \ ((DITHER_RGBA_111_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_111_LUT_R(1))) | \ ((DITHER_RGBA_111_LUT_G(1))) | \ ((DITHER_RGBA_111_LUT_B(1)))] << 8) | \ (_dither_color_lut[((DITHER_RGBA_111_LUT_R(2))) | \ ((DITHER_RGBA_111_LUT_G(2))) | \ ((DITHER_RGBA_111_LUT_B(2)))] << 16) | \ (_dither_color_lut[((DITHER_RGBA_111_LUT_R(3))) | \ ((DITHER_RGBA_111_LUT_G(3))) | \ ((DITHER_RGBA_111_LUT_B(3)))] << 24); \ dest += 4; src += 4; \ } #define WRITE2_RGBA_RGB111_DITHER(src, dest) \ { \ *((DATA32 *)dest) = (_dither_color_lut[((DITHER_RGBA_111_LUT_R(0))) | \ ((DITHER_RGBA_111_LUT_G(0))) | \ ((DITHER_RGBA_111_LUT_B(0)))]) | \ (_dither_color_lut[((DITHER_RGBA_111_LUT_R(1))) | \ ((DITHER_RGBA_111_LUT_G(1))) | \ ((DITHER_RGBA_111_LUT_B(1)))] << 8); \ dest += 2; src += 2; \ } #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB1 (mono B&W) */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB1 conversion */ #define WRITE1_RGBA_RGB1(src, dest) \ *dest = _dither_color_lut[((((*src >> 0) & 0xff) + \ ((*src >> 8) & 0xff) + \ ((*src >> 16) & 0xff)) / 3) >> 7]; dest++; src++ /*****************************************************************************/ /* MACROS for dithered RGBA -> RGB1 conversion */ #define DITHER_RGBA_1_LUT(num) \ (_dither_r8[(((x + num) & 0x7) << DM_BS1) | \ ((y & 0x7) << DM_BS2) | \ ((((*src >> 0) & 0xff) + \ ((*src >> 8) & 0xff) + \ ((*src >> 16) & 0xff)) / 3)]) #define WRITE1_RGBA_RGB1_DITHER(src, dest) \ *dest = _dither_color_lut[(DITHER_RGBA_1_LUT(0))]; dest++; src++ /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> A1 (mono B&W - alpha mas) */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> A1 conversion */ #if 0 /* Old fixed-threshold macros - Remove? */ #ifdef WORDS_BIGENDIAN #define WRITE1_RGBA_A1(src, dest) \ *dest |= ((*src & 0x80000000) >> (24 + (x & 0x7))); \ if ((x & 0x7) == 0x7) dest++; \ src++ #else #define WRITE1_RGBA_A1(src, dest) \ *dest |= ((*src & 0x80000000) >> (31 - (x & 0x7))); \ if ((x & 0x7) == 0x7) dest++; \ src++ #endif #else #ifdef WORDS_BIGENDIAN #define WRITE1_RGBA_A1(src, dest, threshold) \ if ((*src >> 24) >= threshold) \ *dest |= (1 << (7 - (x & 0x7))); \ if ((x & 0x7) == 0x7) dest++; \ src++ #else #define WRITE1_RGBA_A1(src, dest, threshold) \ if ((*src >> 24) >= threshold) \ *dest |= (1 << (x & 0x7)); \ if ((x & 0x7) == 0x7) dest++; \ src++ #endif #endif /*****************************************************************************/ /* MACROS for dithered RGBA -> A1 conversion */ /* FIXME: Mask alpha threshold is not handled (thus the default 128 is used) */ #define DITHER_RGBA_A1_LUT(num) \ (_dither_a1[(((x + num) & 0x7) << DM_BS1) | ((y & 0x7) << DM_BS2) | ((src[num] >> 24))]) #ifdef WORDS_BIGENDIAN #define WRITE1_RGBA_A1_DITHER(src, dest, threshold) \ *dest |= (DITHER_RGBA_A1_LUT(0)) << (7 - (x & 0x7)); \ if ((x & 0x7) == 0x7) dest++; \ src++; #else #define WRITE1_RGBA_A1_DITHER(src, dest, threshold) \ *dest |= (DITHER_RGBA_A1_LUT(0)) << (0 + (x & 0x7)); \ if ((x & 0x7) == 0x7) dest++; \ src++; #endif /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB8888 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB8888 conversion */ #define WRITE1_RGBA_RGB8888(src, dest) \ *dest = *src; dest++; src++; #define WRITE1_RGBA_BGR8888(src, dest) \ *dest = (((*src) >> 16) & 0x0000ff) | \ (((*src) ) & 0x00ff00) | \ (((*src) << 16) & 0xff0000); dest++; src++; /*****************************************************************************/ /* Actual rendering routines */ /* RGBA -> RGB888 */ /*****************************************************************************/ /*****************************************************************************/ /* MACROS for plain RGBA -> RGB888 conversion */ #define WRITE1_RGBA_RGB888(src, dest) \ *dest = ((*src >> 0) & 0xff); dest++; \ *dest = ((*src >> 8) & 0xff); dest++; \ *dest = ((*src >> 16) & 0xff); dest++; src++; #define WRITE1_RGBA_BGR888(src, dest) \ *dest = ((*src >> 16) & 0xff); dest++; \ *dest = ((*src >> 8) & 0xff); dest++; \ *dest = ((*src >> 0) & 0xff); dest++; src++; void __imlib_RGBASetupContext(Context * ct) { _dither_color_lut = ct->palette; _pal_type = ct->palette_type; if ((ct->depth == 16) || (ct->depth == 15)) { _dither_r16 = (DATA16 *) ct->r_dither; _dither_g16 = (DATA16 *) ct->g_dither; _dither_b16 = (DATA16 *) ct->b_dither; } else if (ct->depth <= 8) { switch (_pal_type) { case 0: case 1: case 2: case 3: case 4: case 5: case 7: _dither_r8 = (DATA8 *) ct->r_dither; _dither_g8 = (DATA8 *) ct->g_dither; _dither_b8 = (DATA8 *) ct->b_dither; break; case 6: _dither_r8 = (DATA8 *) ct->r_dither; break; default: break; } } _dither_r8 = (DATA8 *) ct->r_dither; } /* Palette mode stuff */ void __imlib_RGBA_init(void *rd, void *gd, void *bd, int depth, DATA8 palette_type) { DATA16 *rd16, *gd16, *bd16; DATA8 *rd8, *gd8, *bd8; int i, x, y; if (!dither_a_init) { for (y = 0; y < 8; y++) { for (x = 0; x < 8; x++) { for (i = 0; i < 256; i++) { int pi; pi = (i * (256 - 128)) / 255; if ((_dither_88[x][y] < ((pi & 0x7f) >> 1)) && (pi < (256 - 128))) _dither_a1[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 128) >> 7) & 0x01); else _dither_a1[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 7) & 0x01); } } } dither_a_init = 1; } if (!rd || !gd || !bd) return; switch (depth) { case 16: rd16 = (DATA16 *) rd; gd16 = (DATA16 *) gd; bd16 = (DATA16 *) bd; for (y = 0; y < 4; y++) { for (x = 0; x < 4; x++) { for (i = 0; i < 256; i++) { if ((_dither_44[x][y] < (i & 0x7)) && (i < (256 - 8))) rd16[(x << 10) | (y << 8) | i] = ((i + 8) & 0xf8) << 8; else rd16[(x << 10) | (y << 8) | i] = (i & 0xf8) << 8; if ((_dither_44[x][y] < ((i & 0x3) << 1)) && (i < (256 - 4))) gd16[(x << 10) | (y << 8) | i] = (((i + 4) & 0xfc) << 8) >> 5; else gd16[(x << 10) | (y << 8) | i] = ((i & 0xfc) << 8) >> 5; if ((_dither_44[x][y] < (i & 0x7)) && (i < (256 - 8))) bd16[(x << 10) | (y << 8) | i] = (((i + 8) & 0xf8) << 16) >> 19; else bd16[(x << 10) | (y << 8) | i] = ((i & 0xf8) << 16) >> 19; } } } break; case 15: rd16 = (DATA16 *) rd; gd16 = (DATA16 *) gd; bd16 = (DATA16 *) bd; for (y = 0; y < 4; y++) { for (x = 0; x < 4; x++) { for (i = 0; i < 256; i++) { if ((_dither_44[x][y] < (i & 0x7)) && (i < (256 - 8))) rd16[(x << 10) | (y << 8) | i] = (((i + 8) & 0xf8) << 8) >> 1; else rd16[(x << 10) | (y << 8) | i] = ((i & 0xf8) << 8) >> 1; if ((_dither_44[x][y] < (i & 0x7)) && (i < (256 - 8))) gd16[(x << 10) | (y << 8) | i] = (((i + 8) & 0xf8) << 8) >> 6; else gd16[(x << 10) | (y << 8) | i] = ((i & 0xf8) << 8) >> 6; if ((_dither_44[x][y] < (i & 0x7)) && (i < (256 - 8))) bd16[(x << 10) | (y << 8) | i] = (((i + 8) & 0xf8) << 16) >> 19; else bd16[(x << 10) | (y << 8) | i] = ((i & 0xf8) << 16) >> 19; } } } break; default: rd8 = (DATA8 *) rd; gd8 = (DATA8 *) gd; bd8 = (DATA8 *) bd; switch (palette_type) { case 0: for (y = 0; y < DM_Y; y++) { for (x = 0; x < DM_X; x++) { for (i = 0; i < 256; i++) { int pi; pi = (i * (256 - 32)) / 255; if ((_dither_88[x][y] < ((pi & 0x1f) << 1)) && (pi < (256 - 32))) rd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi + 32) & 0xe0); else rd8[(x << DM_BS1) | (y << DM_BS2) | i] = (pi & 0xe0); pi = (i * (256 - 32)) / 255; if ((_dither_88[x][y] < ((pi & 0x1f) << 1)) && (pi < (256 - 32))) gd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 32) >> 3) & 0x1c); else gd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 3) & 0x1c); pi = (i * (256 - 64)) / 255; if ((_dither_88[x][y] < (pi & 0x3f)) && (pi < (256 - 64))) bd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 64) >> 6) & 0x03); else bd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 6) & 0x03); } } } break; case 7: /* 666 8 bit 216 color rgb cube */ if (!_dither_666r) { _dither_666r = malloc(256 * sizeof(DATA8)); _dither_666g = malloc(256 * sizeof(DATA8)); _dither_666b = malloc(256 * sizeof(DATA8)); } for (y = 0; y < 256; y++) { _dither_666r[y] = (DATA8) (((y * 6) >> 8) * 6 * 6); _dither_666g[y] = (DATA8) (((y * 6) >> 8) * 6); _dither_666b[y] = (DATA8) (((y * 6) >> 8)); } for (y = 0; y < DM_Y; y++) { for (x = 0; x < DM_X; x++) { for (i = 0; i < 256; i++) { double pi; pi = 64.0 * (((double)i - (_dither_666b[i] * (256.0 / 6.0))) / (256.0 / 6.0)); if ((_dither_88[x][y] < (DATA8) pi) && ((double)i < (256 - (256.0 / 6.0)))) { rd8[(x << DM_BS1) | (y << DM_BS2) | i] = (_dither_666b[i] + 1) * 6 * 6; gd8[(x << DM_BS1) | (y << DM_BS2) | i] = (_dither_666b[i] + 1) * 6; bd8[(x << DM_BS1) | (y << DM_BS2) | i] = (_dither_666b[i] + 1); } else { rd8[(x << DM_BS1) | (y << DM_BS2) | i] = (_dither_666b[i]) * 6 * 6; gd8[(x << DM_BS1) | (y << DM_BS2) | i] = (_dither_666b[i]) * 6; bd8[(x << DM_BS1) | (y << DM_BS2) | i] = (_dither_666b[i]); } } } } break; case 1: for (y = 0; y < DM_Y; y++) { for (x = 0; x < DM_X; x++) { for (i = 0; i < 256; i++) { int pi; pi = (i * (256 - 64)) / 255; if ((_dither_88[x][y] < (pi & 0x3f)) && (pi < (256 - 64))) rd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 64) >> 1) & 0x60); else rd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 1) & 0x60); pi = (i * (256 - 32)) / 255; if ((_dither_88[x][y] < ((pi & 0x1f) << 1)) && (pi < (256 - 32))) gd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 32) >> 3) & 0x1c); else gd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 3) & 0x1c); pi = (i * (256 - 64)) / 255; if ((_dither_88[x][y] < (pi & 0x3f)) && (pi < (256 - 64))) bd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 64) >> 6) & 0x03); else bd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 6) & 0x03); } } } break; case 2: for (y = 0; y < DM_Y; y++) { for (x = 0; x < DM_X; x++) { for (i = 0; i < 256; i++) { int pi; pi = (i * (256 - 64)) / 255; if ((_dither_88[x][y] < (pi & 0x3f)) && (pi < (256 - 64))) rd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 64) >> 2) & 0x30); else rd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 2) & 0x30); pi = (i * (256 - 64)) / 255; if ((_dither_88[x][y] < (pi & 0x3f)) && (pi < (256 - 64))) gd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 64) >> 4) & 0x0c); else gd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 4) & 0x0c); pi = (i * (256 - 64)) / 255; if ((_dither_88[x][y] < (pi & 0x3f)) && (pi < (256 - 64))) bd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 64) >> 6) & 0x03); else bd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 6) & 0x03); } } } break; case 3: for (y = 0; y < DM_Y; y++) { for (x = 0; x < DM_X; x++) { for (i = 0; i < 256; i++) { int pi; pi = (i * (256 - 64)) / 255; if ((_dither_88[x][y] < (pi & 0x3f)) && (pi < (256 - 64))) rd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 64) >> 3) & 0x18); else rd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 3) & 0x18); pi = (i * (256 - 64)) / 255; if ((_dither_88[x][y] < (pi & 0x3f)) && (pi < (256 - 64))) gd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 64) >> 5) & 0x06); else gd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 5) & 0x06); pi = (i * (256 - 128)) / 255; if ((_dither_88[x][y] < ((pi & 0x7f) >> 1)) && (pi < (256 - 128))) bd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 128) >> 7) & 0x01); else bd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 7) & 0x01); } } } break; case 4: for (y = 0; y < DM_Y; y++) { for (x = 0; x < DM_X; x++) { for (i = 0; i < 256; i++) { int pi; pi = (i * (256 - 128)) / 255; if ((_dither_88[x][y] < ((pi & 0x7f) >> 1)) && (pi < (256 - 128))) rd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 128) >> 4) & 0x08); else rd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 4) & 0x08); pi = (i * (256 - 64)) / 255; if ((_dither_88[x][y] < (pi & 0x3f)) && (pi < (256 - 64))) gd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 64) >> 5) & 0x06); else gd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 5) & 0x06); pi = (i * (256 - 128)) / 255; if ((_dither_88[x][y] < ((pi & 0x7f) >> 1)) && (pi < (256 - 128))) bd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 128) >> 7) & 0x01); else bd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 7) & 0x01); } } } break; case 5: for (y = 0; y < DM_Y; y++) { for (x = 0; x < DM_X; x++) { for (i = 0; i < 256; i++) { int pi; pi = (i * (256 - 128)) / 255; if ((_dither_88[x][y] < ((pi & 0x7f) >> 1)) && (pi < (256 - 128))) rd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 128) >> 5) & 0x04); else rd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 5) & 0x04); pi = (i * (256 - 128)) / 255; if ((_dither_88[x][y] < ((pi & 0x7f) >> 1)) && (pi < (256 - 128))) gd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 128) >> 6) & 0x02); else gd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 6) & 0x02); pi = (i * (256 - 128)) / 255; if ((_dither_88[x][y] < ((pi & 0x7f) >> 1)) && (pi < (256 - 128))) bd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 128) >> 7) & 0x01); else bd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 7) & 0x01); } } } break; case 6: for (y = 0; y < DM_Y; y++) { for (x = 0; x < DM_X; x++) { for (i = 0; i < 256; i++) { int pi; pi = (i * (256 - 128)) / 255; if ((_dither_88[x][y] < ((pi & 0x7f) >> 1)) && (pi < (256 - 128))) rd8[(x << DM_BS1) | (y << DM_BS2) | i] = (((pi + 128) >> 7) & 0x01); else rd8[(x << DM_BS1) | (y << DM_BS2) | i] = ((pi >> 7) & 0x01); } } } break; default: break; } break; } } static void __imlib_RGBA_to_RGB565_fast(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int x, y, w, h; DATA16 *dest = (DATA16 *) dst; int dest_jump = (dow / sizeof(DATA16)) - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_2(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 2) WRITE2_RGBA_RGB565(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 2) WRITE2_RGBA_RGB565(src, dest); WRITE1_RGBA_RGB565(src, dest); src += src_jump; dest += dest_jump; } } } else { if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { WRITE1_RGBA_RGB565(src, dest); for (x = 0; x < w; x += 2) WRITE2_RGBA_RGB565(src, dest); WRITE1_RGBA_RGB565(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { WRITE1_RGBA_RGB565(src, dest); for (x = 0; x < w; x += 2) WRITE2_RGBA_RGB565(src, dest); src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB565_dither(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int x, y, w, h; DATA16 *dest = (DATA16 *) dst; int dest_jump = (dow / sizeof(DATA16)) - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_2(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 2) WRITE2_RGBA_RGB565_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 2) WRITE2_RGBA_RGB565_DITHER(src, dest); WRITE1_RGBA_RGB565_DITHER(src, dest); src += src_jump; dest += dest_jump; } } } else { if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { x = dx - 1; WRITE1_RGBA_RGB565_DITHER(src, dest); for (x = dx; x < w; x += 2) WRITE2_RGBA_RGB565_DITHER(src, dest); WRITE1_RGBA_RGB565_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { x = dx - 1; WRITE1_RGBA_RGB565_DITHER(src, dest); for (x = dx; x < w; x += 2) WRITE2_RGBA_RGB565_DITHER(src, dest); src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_BGR565_fast(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int x, y, w, h; DATA16 *dest = (DATA16 *) dst; int dest_jump = (dow / sizeof(DATA16)) - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_2(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 2) WRITE2_RGBA_BGR565(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 2) WRITE2_RGBA_BGR565(src, dest); WRITE1_RGBA_BGR565(src, dest); src += src_jump; dest += dest_jump; } } } else { if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { WRITE1_RGBA_BGR565(src, dest); for (x = 0; x < w; x += 2) WRITE2_RGBA_BGR565(src, dest); WRITE1_RGBA_BGR565(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { WRITE1_RGBA_BGR565(src, dest); for (x = 0; x < w; x += 2) WRITE2_RGBA_BGR565(src, dest); src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_BGR565_dither(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int x, y, w, h; DATA16 *dest = (DATA16 *) dst; int dest_jump = (dow / sizeof(DATA16)) - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_2(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 2) WRITE2_RGBA_BGR565_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 2) WRITE2_RGBA_BGR565_DITHER(src, dest); WRITE1_RGBA_BGR565_DITHER(src, dest); src += src_jump; dest += dest_jump; } } } else { if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { x = dx - 1; WRITE1_RGBA_BGR565_DITHER(src, dest); for (x = dx; x < w; x += 2) WRITE2_RGBA_BGR565_DITHER(src, dest); WRITE1_RGBA_BGR565_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { x = dx - 1; WRITE1_RGBA_BGR565_DITHER(src, dest); for (x = dx; x < w; x += 2) WRITE2_RGBA_BGR565_DITHER(src, dest); src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB555_fast(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int x, y, w, h; DATA16 *dest = (DATA16 *) dst; int dest_jump = (dow / sizeof(DATA16)) - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_2(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 2) WRITE2_RGBA_RGB555(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 2) WRITE2_RGBA_RGB555(src, dest); WRITE1_RGBA_RGB555(src, dest); src += src_jump; dest += dest_jump; } } } else { if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { WRITE1_RGBA_RGB555(src, dest); for (x = 0; x < w; x += 2) WRITE2_RGBA_RGB555(src, dest); WRITE1_RGBA_RGB555(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { WRITE1_RGBA_RGB555(src, dest); for (x = 0; x < w; x += 2) WRITE2_RGBA_RGB555(src, dest); src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB555_dither(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int x, y, w, h; DATA16 *dest = (DATA16 *) dst; int dest_jump = (dow / sizeof(DATA16)) - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_2(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 2) WRITE2_RGBA_RGB555_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 2) WRITE2_RGBA_RGB555_DITHER(src, dest); WRITE1_RGBA_RGB555_DITHER(src, dest); src += src_jump; dest += dest_jump; } } } else { if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { x = dx - 1; WRITE1_RGBA_RGB555_DITHER(src, dest); for (x = dx; x < w; x += 2) WRITE2_RGBA_RGB555_DITHER(src, dest); WRITE1_RGBA_RGB555_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = dy; y < h; y++) { x = dx - 1; WRITE1_RGBA_RGB555_DITHER(src, dest); for (x = dx; x < w; x += 2) WRITE2_RGBA_RGB555_DITHER(src, dest); src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_BGR555_fast(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int x, y, w, h; DATA16 *dest = (DATA16 *) dst; int dest_jump = (dow / sizeof(DATA16)) - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_2(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 2) WRITE2_RGBA_BGR555(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 2) WRITE2_RGBA_BGR555(src, dest); WRITE1_RGBA_BGR555(src, dest); src += src_jump; dest += dest_jump; } } } else { if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { WRITE1_RGBA_BGR555(src, dest); for (x = 0; x < w; x += 2) WRITE2_RGBA_BGR555(src, dest); WRITE1_RGBA_BGR555(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = 0; y < h; y++) { WRITE1_RGBA_BGR555(src, dest); for (x = 0; x < w; x += 2) WRITE2_RGBA_BGR555(src, dest); src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_BGR555_dither(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int x, y, w, h; DATA16 *dest = (DATA16 *) dst; int dest_jump = (dow / sizeof(DATA16)) - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_2(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 2) WRITE2_RGBA_BGR555_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 2) WRITE2_RGBA_BGR555_DITHER(src, dest); WRITE1_RGBA_BGR555_DITHER(src, dest); src += src_jump; dest += dest_jump; } } } else { if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { x = dx - 1; WRITE1_RGBA_BGR555_DITHER(src, dest); for (x = dx; x < w; x += 2) WRITE2_RGBA_BGR555_DITHER(src, dest); WRITE1_RGBA_BGR555_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w--; for (y = dy; y < h; y++) { x = dx - 1; WRITE1_RGBA_BGR555_DITHER(src, dest); for (x = dx; x < w; x += 2) WRITE2_RGBA_BGR555_DITHER(src, dest); src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB332_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB332(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB332(src, dest); WRITE2_RGBA_RGB332(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB332(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB332(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = 0; y < h; y++) { for (x = 0; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB332(src, dest); } if (x < w) { if (IS_MULTIPLE_4((width - x))) { for (; x < w; x += 4) WRITE4_RGBA_RGB332(src, dest); src += src_jump; dest += dest_jump; } else if (IS_MULTIPLE_2((width - x))) { w = width - 2 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB332(src, dest); WRITE2_RGBA_RGB332(src, dest); src += src_jump; dest += dest_jump; } else { w = width - 3 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB332(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB332(src, dest); } src += src_jump; dest += dest_jump; } } } } } static void __imlib_RGBA_to_RGB332_dither(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB332_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB332_DITHER(src, dest); WRITE2_RGBA_RGB332_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB332_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB332_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = dy; y < h; y++) { w = width + dx; for (x = dx; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB332_DITHER(src, dest); } if (x < w) { w = (width + dx) - (3 + x); for (; x < w; x += 4) WRITE4_RGBA_RGB332_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB332_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB666_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB666(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB666(src, dest); WRITE2_RGBA_RGB666(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB666(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB666(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = 0; y < h; y++) { for (x = 0; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB666(src, dest); } if (x < w) { if (IS_MULTIPLE_4((width - x))) { for (; x < w; x += 4) WRITE4_RGBA_RGB666(src, dest); src += src_jump; dest += dest_jump; } else if (IS_MULTIPLE_2((width - x))) { w = width - 2 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB666(src, dest); WRITE2_RGBA_RGB666(src, dest); src += src_jump; dest += dest_jump; } else { w = width - 3 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB666(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB666(src, dest); } src += src_jump; dest += dest_jump; } } } } } static void __imlib_RGBA_to_RGB666_dither(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB666_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB666_DITHER(src, dest); WRITE2_RGBA_RGB666_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB666_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB666_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = dy; y < h; y++) { w = width + dx; for (x = dx; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB666_DITHER(src, dest); } if (x < w) { w = (width + dx) - (3 + x); for (; x < w; x += 4) WRITE4_RGBA_RGB666_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB666_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB232_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB232(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB232(src, dest); WRITE2_RGBA_RGB232(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB232(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB232(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = 0; y < h; y++) { for (x = 0; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB232(src, dest); } if (x < w) { if (IS_MULTIPLE_4((width - x))) { for (; x < w; x += 4) WRITE4_RGBA_RGB232(src, dest); src += src_jump; dest += dest_jump; } else if (IS_MULTIPLE_2((width - x))) { w = width - 2 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB232(src, dest); WRITE2_RGBA_RGB232(src, dest); src += src_jump; dest += dest_jump; } else { w = width - 3 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB232(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB232(src, dest); } src += src_jump; dest += dest_jump; } } } } } static void __imlib_RGBA_to_RGB232_dither(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB232_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB232_DITHER(src, dest); WRITE2_RGBA_RGB232_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB232_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB232_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = dy; y < h; y++) { w = width + dx; for (x = dx; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB232_DITHER(src, dest); } if (x < w) { w = (width + dx) - (3 + x); for (; x < w; x += 4) WRITE4_RGBA_RGB232_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB232_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB222_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB222(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB222(src, dest); WRITE2_RGBA_RGB222(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB222(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB222(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = 0; y < h; y++) { for (x = 0; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB222(src, dest); } if (x < w) { if (IS_MULTIPLE_4((width - x))) { for (; x < w; x += 4) WRITE4_RGBA_RGB222(src, dest); src += src_jump; dest += dest_jump; } else if (IS_MULTIPLE_2((width - x))) { w = width - 2 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB222(src, dest); WRITE2_RGBA_RGB222(src, dest); src += src_jump; dest += dest_jump; } else { w = width - 3 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB222(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB222(src, dest); } src += src_jump; dest += dest_jump; } } } } } static void __imlib_RGBA_to_RGB222_dither(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB222_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB222_DITHER(src, dest); WRITE2_RGBA_RGB222_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB222_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB222_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = dy; y < h; y++) { w = width + dx; for (x = dx; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB222_DITHER(src, dest); } if (x < w) { w = (width + dx) - (3 + x); for (; x < w; x += 4) WRITE4_RGBA_RGB222_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB222_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB221_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB221(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB221(src, dest); WRITE2_RGBA_RGB221(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB221(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB221(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = 0; y < h; y++) { for (x = 0; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB221(src, dest); } if (x < w) { if (IS_MULTIPLE_4((width - x))) { for (; x < w; x += 4) WRITE4_RGBA_RGB221(src, dest); src += src_jump; dest += dest_jump; } else if (IS_MULTIPLE_2((width - x))) { w = width - 2 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB221(src, dest); WRITE2_RGBA_RGB221(src, dest); src += src_jump; dest += dest_jump; } else { w = width - 3 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB221(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB221(src, dest); } src += src_jump; dest += dest_jump; } } } } } static void __imlib_RGBA_to_RGB221_dither(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB221_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB221_DITHER(src, dest); WRITE2_RGBA_RGB221_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB221_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB221_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = dy; y < h; y++) { w = width + dx; for (x = dx; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB221_DITHER(src, dest); } if (x < w) { w = (width + dx) - (3 + x); for (; x < w; x += 4) WRITE4_RGBA_RGB221_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB221_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB121_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB121(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB121(src, dest); WRITE2_RGBA_RGB121(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB121(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB121(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = 0; y < h; y++) { for (x = 0; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB121(src, dest); } if (x < w) { if (IS_MULTIPLE_4((width - x))) { for (; x < w; x += 4) WRITE4_RGBA_RGB121(src, dest); src += src_jump; dest += dest_jump; } else if (IS_MULTIPLE_2((width - x))) { w = width - 2 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB121(src, dest); WRITE2_RGBA_RGB121(src, dest); src += src_jump; dest += dest_jump; } else { w = width - 3 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB121(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB121(src, dest); } src += src_jump; dest += dest_jump; } } } } } static void __imlib_RGBA_to_RGB121_dither(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB121_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB121_DITHER(src, dest); WRITE2_RGBA_RGB121_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB121_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB121_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = dy; y < h; y++) { w = width + dx; for (x = dx; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB121_DITHER(src, dest); } if (x < w) { w = (width + dx) - (3 + x); for (; x < w; x += 4) WRITE4_RGBA_RGB121_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB121_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB111_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width; h = height; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB111(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB111(src, dest); WRITE2_RGBA_RGB111(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = 0; y < h; y++) { for (x = 0; x < w; x += 4) WRITE4_RGBA_RGB111(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB111(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = 0; y < h; y++) { for (x = 0; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB111(src, dest); } if (x < w) { if (IS_MULTIPLE_4((width - x))) { for (; x < w; x += 4) WRITE4_RGBA_RGB111(src, dest); src += src_jump; dest += dest_jump; } else if (IS_MULTIPLE_2((width - x))) { w = width - 2 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB111(src, dest); WRITE2_RGBA_RGB111(src, dest); src += src_jump; dest += dest_jump; } else { w = width - 3 - x; for (; x < w; x += 4) WRITE4_RGBA_RGB111(src, dest); for (; x < width; x++) { WRITE1_RGBA_RGB111(src, dest); } src += src_jump; dest += dest_jump; } } } } } static void __imlib_RGBA_to_RGB111_dither(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width + dx; h = height + dy; if (IS_ALIGNED_32((unsigned long)dest)) { if (IS_MULTIPLE_4(width)) { for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB111_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else if (IS_MULTIPLE_2(width)) { w -= 2; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB111_DITHER(src, dest); WRITE2_RGBA_RGB111_DITHER(src, dest); src += src_jump; dest += dest_jump; } } else { w -= 3; for (y = dy; y < h; y++) { for (x = dx; x < w; x += 4) WRITE4_RGBA_RGB111_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB111_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } else { for (y = dy; y < h; y++) { w = width + dx; for (x = dx; ((x < w) && (!(IS_ALIGNED_32((unsigned long)dest)))); x++) { WRITE1_RGBA_RGB111_DITHER(src, dest); } if (x < w) { w = (width + dx) - (3 + x); for (; x < w; x += 4) WRITE4_RGBA_RGB111_DITHER(src, dest); for (; x < (width + dx); x++) { WRITE1_RGBA_RGB111_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } } } static void __imlib_RGBA_to_RGB1_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width; h = height; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { WRITE1_RGBA_RGB1(src, dest); } src += src_jump; dest += dest_jump; } } static void __imlib_RGBA_to_RGB1_dither(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - width; w = width + dx; h = height + dy; for (y = dy; y < h; y++) { for (x = dx; x < w; x++) { WRITE1_RGBA_RGB1_DITHER(src, dest); } src += src_jump; dest += dest_jump; } } static void __imlib_RGBA_to_A1_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy, int threshold) { int x, y, w, h; int dest_jump = dow - (width >> 3); w = width; h = height; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { WRITE1_RGBA_A1(src, dest, (DATA32) threshold); } src += src_jump; dest += dest_jump; } } static void __imlib_RGBA_to_A1_dither(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy, int threshold) { int x, y, w, h; int dest_jump = dow - (width >> 3); w = width + dx; h = height + dy; for (y = dy; y < h; y++) { for (x = dx; x < w; x++) { WRITE1_RGBA_A1_DITHER(src, dest, threshold); } src += src_jump; dest += dest_jump; } } static void __imlib_RGBA_to_RGB8888_fast(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int y, w, h; DATA32 *dest = (DATA32 *) dst; int dest_jump = (dow / sizeof(DATA32)) - width; w = width; h = height; if ((src_jump > 0) || (dest_jump > 0)) { for (y = h; y > 0; y--) { memcpy(dest, src, w * sizeof(DATA32)); src += src_jump + w; dest += dest_jump + w; } } else memcpy(dest, src, h * w * sizeof(DATA32)); } #if 0 /* Unused */ static void __imlib_RGBA_to_BGR8888_fast(DATA32 * src, int src_jump, DATA8 * dst, int dow, int width, int height, int dx, int dy) { int x, y, w, h; DATA32 *dest = (DATA32 *) dst; int dest_jump = (dow / sizeof(DATA32)) - width; w = width; h = height; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { WRITE1_RGBA_BGR8888(src, dest); } src += src_jump; dest += dest_jump; } } #endif static void __imlib_RGBA_to_RGB888_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - (width * 3); w = width; h = height; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { WRITE1_RGBA_RGB888(src, dest); } src += src_jump; dest += dest_jump; } } #if 0 /* Unused */ static void __imlib_RGBA_to_BGR888_fast(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { int x, y, w, h; int dest_jump = dow - (width * 3); w = width; h = height; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { WRITE1_RGBA_BGR888(src, dest); } src += src_jump; dest += dest_jump; } } #endif #if 0 /* Unused */ static void __imlib_RGBA_to_Nothing(DATA32 * src, int src_jump, DATA8 * dest, int dow, int width, int height, int dx, int dy) { /*\ Nothing: Dummy function \ */ } #endif ImlibRGBAFunction __imlib_GetRGBAFunction(int depth, unsigned long rm, unsigned long gm, unsigned long bm, char hiq, DATA8 palette_type) { if (depth == 16) { if (hiq) { if ((rm == 0xf800) && (gm == 0x7e0) && (bm == 0x1f)) return __imlib_RGBA_to_RGB565_dither; if ((rm == 0x7c00) && (gm == 0x3e0) && (bm == 0x1f)) return __imlib_RGBA_to_RGB555_dither; if ((bm == 0xf800) && (gm == 0x7e0) && (rm == 0x1f)) return __imlib_RGBA_to_BGR565_dither; if ((bm == 0x7c00) && (gm == 0x3e0) && (rm == 0x1f)) return __imlib_RGBA_to_BGR555_dither; } else { #ifdef DO_MMX_ASM if (__imlib_get_cpuid() && CPUID_MMX) { if ((rm == 0xf800) && (gm == 0x7e0) && (bm == 0x1f)) return __imlib_mmx_rgb565_fast; if ((rm == 0x7c00) && (gm == 0x3e0) && (bm == 0x1f)) return __imlib_mmx_rgb555_fast; if ((bm == 0xf800) && (gm == 0x7e0) && (rm == 0x1f)) return __imlib_mmx_bgr565_fast; if ((bm == 0x7c00) && (gm == 0x3e0) && (rm == 0x1f)) return __imlib_mmx_bgr555_fast; } else #endif { if ((rm == 0xf800) && (gm == 0x7e0) && (bm == 0x1f)) return __imlib_RGBA_to_RGB565_fast; if ((rm == 0x7c00) && (gm == 0x3e0) && (bm == 0x1f)) return __imlib_RGBA_to_RGB555_fast; if ((bm == 0xf800) && (gm == 0x7e0) && (rm == 0x1f)) return __imlib_RGBA_to_BGR565_fast; if ((bm == 0x7c00) && (gm == 0x3e0) && (rm == 0x1f)) return __imlib_RGBA_to_BGR555_fast; } } return NULL; } else if (depth == 32) { if ((rm == 0xff0000) && (gm == 0xff00) && (bm == 0xff)) return __imlib_RGBA_to_RGB8888_fast; return NULL; } else if (depth == 24) { if ((rm == 0xff0000) && (gm == 0xff00) && (bm == 0xff)) return __imlib_RGBA_to_RGB888_fast; return NULL; } else if (depth == 8) { if (hiq) { if (palette_type == 0) return __imlib_RGBA_to_RGB332_dither; if (palette_type == 1) return __imlib_RGBA_to_RGB232_dither; if (palette_type == 2) return __imlib_RGBA_to_RGB222_dither; if (palette_type == 3) return __imlib_RGBA_to_RGB221_dither; if (palette_type == 4) return __imlib_RGBA_to_RGB121_dither; if (palette_type == 5) return __imlib_RGBA_to_RGB111_dither; if (palette_type == 6) return __imlib_RGBA_to_RGB1_dither; if (palette_type == 7) return __imlib_RGBA_to_RGB666_dither; } else { if (palette_type == 0) return __imlib_RGBA_to_RGB332_fast; if (palette_type == 1) return __imlib_RGBA_to_RGB232_fast; if (palette_type == 2) return __imlib_RGBA_to_RGB222_fast; if (palette_type == 3) return __imlib_RGBA_to_RGB221_fast; if (palette_type == 4) return __imlib_RGBA_to_RGB121_fast; if (palette_type == 5) return __imlib_RGBA_to_RGB111_fast; if (palette_type == 6) return __imlib_RGBA_to_RGB1_fast; if (palette_type == 7) return __imlib_RGBA_to_RGB666_fast; } } return NULL; } ImlibMaskFunction __imlib_GetMaskFunction(char hiq) { return hiq ? &__imlib_RGBA_to_A1_dither : &__imlib_RGBA_to_A1_fast; } #endif /* BUILD_X11 */ imlib2-1.4.6/src/lib/color.c0000664000175000017500000004453112255265135012457 00000000000000#include "common.h" #ifdef BUILD_X11 #include #include #include "color.h" DATA8 _pal_type = 0; DATA16 _max_colors = 256; int __imlib_XActualDepth(Display * d, Visual * v) { XVisualInfo xvi, *xvir; int depth = 0, num; xvi.visual = v; xvi.visualid = XVisualIDFromVisual(v); xvir = XGetVisualInfo(d, VisualIDMask, &xvi, &num); if (xvir) { depth = xvir[0].depth; if ((depth == 16) && ((xvir->red_mask | xvir->green_mask | xvir->blue_mask) == 0x7fff)) depth = 15; XFree(xvir); } return depth; } Visual * __imlib_BestVisual(Display * d, int screen, int *depth_return) { XVisualInfo xvi, *xvir; int j, i, num, maxd = 0; Visual *v = NULL; const int visprefs[] = { PseudoColor, TrueColor, DirectColor, StaticColor, GrayScale, StaticGray }; xvi.screen = screen; maxd = 0; for (j = 0; j < 6; j++) { xvi.class = visprefs[j]; xvir = XGetVisualInfo(d, VisualScreenMask | VisualClassMask, &xvi, &num); if (xvir) { for (i = 0; i < num; i++) { if ((xvir[i].depth > 1) && (xvir[i].depth >= maxd) && (xvi.class == PseudoColor)) { maxd = xvir[i].depth; v = xvir[i].visual; } else if ((xvir[i].depth > maxd) && (xvir[i].depth <= 24)) { maxd = xvir[i].depth; v = xvir[i].visual; } } XFree(xvir); } } if (depth_return) *depth_return = maxd; return v; } DATA8 * __imlib_AllocColorTable(Display * d, Colormap cmap, DATA8 * type_return, Visual * v) { DATA8 *color_lut = NULL; if (v->bits_per_rgb > 1) { if ((_max_colors >= 256) && (color_lut = __imlib_AllocColors332(d, cmap, v))) { *type_return = _pal_type; return color_lut; } if ((_max_colors >= 216) && (color_lut = __imlib_AllocColors666(d, cmap, v))) { *type_return = _pal_type; return color_lut; } if ((_max_colors >= 128) && (color_lut = __imlib_AllocColors232(d, cmap, v))) { *type_return = _pal_type; return color_lut; } if ((_max_colors >= 64) && (color_lut = __imlib_AllocColors222(d, cmap, v))) { *type_return = _pal_type; return color_lut; } if ((_max_colors >= 32) && (color_lut = __imlib_AllocColors221(d, cmap, v))) { *type_return = _pal_type; return color_lut; } if ((_max_colors >= 16) && (color_lut = __imlib_AllocColors121(d, cmap, v))) { *type_return = _pal_type; return color_lut; } } if ((_max_colors >= 8) && (color_lut = __imlib_AllocColors111(d, cmap, v))) { *type_return = _pal_type; return color_lut; } color_lut = __imlib_AllocColors1(d, cmap, v); *type_return = _pal_type; return color_lut; } DATA8 * __imlib_AllocColors332(Display * d, Colormap cmap, Visual * v) { int r, g, b, i; DATA8 *color_lut; int sig_mask = 0; for (i = 0; i < v->bits_per_rgb; i++) sig_mask |= (0x1 << i); sig_mask <<= (16 - v->bits_per_rgb); i = 0; color_lut = malloc(256 * sizeof(DATA8)); for (r = 0; r < 8; r++) { for (g = 0; g < 8; g++) { for (b = 0; b < 4; b++) { XColor xcl; XColor xcl_in; int val; Status ret; val = (r << 6) | (r << 3) | (r); xcl.red = (unsigned short)((val << 7) | (val >> 2)); val = (g << 6) | (g << 3) | (g); xcl.green = (unsigned short)((val << 7) | (val >> 2)); val = (b << 6) | (b << 4) | (b << 2) | (b); xcl.blue = (unsigned short)((val << 8) | (val)); xcl_in = xcl; ret = XAllocColor(d, cmap, &xcl); if ((ret == Success) || ((xcl_in.red & sig_mask) != (xcl.red & sig_mask)) || ((xcl_in.green & sig_mask) != (xcl.green & sig_mask)) || ((xcl_in.blue & sig_mask) != (xcl.blue & sig_mask))) { unsigned long pixels[256]; int j; if (i > 0) { for (j = 0; j < i; j++) pixels[j] = (unsigned long)color_lut[j]; XFreeColors(d, cmap, pixels, i, 0); } free(color_lut); return NULL; } color_lut[i] = xcl.pixel; i++; } } } _pal_type = 0; return color_lut; } DATA8 * __imlib_AllocColors666(Display * d, Colormap cmap, Visual * v) { int r, g, b, i; DATA8 *color_lut; int sig_mask = 0; for (i = 0; i < v->bits_per_rgb; i++) sig_mask |= (0x1 << i); sig_mask <<= (16 - v->bits_per_rgb); i = 0; color_lut = malloc(256 * sizeof(DATA8)); for (r = 0; r < 6; r++) { for (g = 0; g < 6; g++) { for (b = 0; b < 6; b++) { XColor xcl; XColor xcl_in; int val; Status ret; val = (int)((((double)r) / 5.0) * 65535); xcl.red = (unsigned short)(val); val = (int)((((double)g) / 5.0) * 65535); xcl.green = (unsigned short)(val); val = (int)((((double)b) / 5.0) * 65535); xcl.blue = (unsigned short)(val); xcl_in = xcl; ret = XAllocColor(d, cmap, &xcl); if ((ret == Success) || ((xcl_in.red & sig_mask) != (xcl.red & sig_mask)) || ((xcl_in.green & sig_mask) != (xcl.green & sig_mask)) || ((xcl_in.blue & sig_mask) != (xcl.blue & sig_mask))) { unsigned long pixels[256]; int j; if (i > 0) { for (j = 0; j < i; j++) pixels[j] = (unsigned long)color_lut[j]; XFreeColors(d, cmap, pixels, i, 0); } free(color_lut); return NULL; } color_lut[i] = xcl.pixel; i++; } } } _pal_type = 7; return color_lut; } DATA8 * __imlib_AllocColors232(Display * d, Colormap cmap, Visual * v) { int r, g, b, i; DATA8 *color_lut; int sig_mask = 0; for (i = 0; i < v->bits_per_rgb; i++) sig_mask |= (0x1 << i); sig_mask <<= (16 - v->bits_per_rgb); i = 0; color_lut = malloc(128 * sizeof(DATA8)); for (r = 0; r < 4; r++) { for (g = 0; g < 8; g++) { for (b = 0; b < 4; b++) { XColor xcl; XColor xcl_in; int val; Status ret; val = (r << 6) | (r << 4) | (r << 2) | (r); xcl.red = (unsigned short)((val << 8) | (val)); val = (g << 6) | (g << 3) | (g); xcl.green = (unsigned short)((val << 7) | (val >> 2)); val = (b << 6) | (b << 4) | (b << 2) | (b); xcl.blue = (unsigned short)((val << 8) | (val)); xcl_in = xcl; ret = XAllocColor(d, cmap, &xcl); if ((ret == Success) || ((xcl_in.red & sig_mask) != (xcl.red & sig_mask)) || ((xcl_in.green & sig_mask) != (xcl.green & sig_mask)) || ((xcl_in.blue & sig_mask) != (xcl.blue & sig_mask))) { unsigned long pixels[256]; int j; if (i > 0) { for (j = 0; j < i; j++) pixels[j] = (unsigned long)color_lut[j]; XFreeColors(d, cmap, pixels, i, 0); } free(color_lut); return NULL; } color_lut[i] = xcl.pixel; i++; } } } _pal_type = 1; return color_lut; } DATA8 * __imlib_AllocColors222(Display * d, Colormap cmap, Visual * v) { int r, g, b, i; DATA8 *color_lut; int sig_mask = 0; for (i = 0; i < v->bits_per_rgb; i++) sig_mask |= (0x1 << i); sig_mask <<= (16 - v->bits_per_rgb); i = 0; color_lut = malloc(64 * sizeof(DATA8)); for (r = 0; r < 4; r++) { for (g = 0; g < 4; g++) { for (b = 0; b < 4; b++) { XColor xcl; XColor xcl_in; int val; Status ret; val = (r << 6) | (r << 4) | (r << 2) | (r); xcl.red = (unsigned short)((val << 8) | (val)); val = (g << 6) | (g << 4) | (g << 2) | (g); xcl.green = (unsigned short)((val << 8) | (val)); val = (b << 6) | (b << 4) | (b << 2) | (b); xcl.blue = (unsigned short)((val << 8) | (val)); xcl_in = xcl; ret = XAllocColor(d, cmap, &xcl); if ((ret == Success) || ((xcl_in.red & sig_mask) != (xcl.red & sig_mask)) || ((xcl_in.green & sig_mask) != (xcl.green & sig_mask)) || ((xcl_in.blue & sig_mask) != (xcl.blue & sig_mask))) { unsigned long pixels[256]; int j; if (i > 0) { for (j = 0; j < i; j++) pixels[j] = (unsigned long)color_lut[j]; XFreeColors(d, cmap, pixels, i, 0); } free(color_lut); return NULL; } color_lut[i] = xcl.pixel; i++; } } } _pal_type = 2; return color_lut; } DATA8 * __imlib_AllocColors221(Display * d, Colormap cmap, Visual * v) { int r, g, b, i; DATA8 *color_lut; int sig_mask = 0; for (i = 0; i < v->bits_per_rgb; i++) sig_mask |= (0x1 << i); sig_mask <<= (16 - v->bits_per_rgb); i = 0; color_lut = malloc(32 * sizeof(DATA8)); for (r = 0; r < 4; r++) { for (g = 0; g < 4; g++) { for (b = 0; b < 2; b++) { XColor xcl; XColor xcl_in; int val; Status ret; val = (r << 6) | (r << 4) | (r << 2) | (r); xcl.red = (unsigned short)((val << 8) | (val)); val = (g << 6) | (g << 4) | (g << 2) | (g); xcl.green = (unsigned short)((val << 8) | (val)); val = (b << 7) | (b << 6) | (b << 5) | (b << 4) | (b << 3) | (b << 2) | (b << 1) | (b); xcl.blue = (unsigned short)((val << 8) | (val)); xcl_in = xcl; ret = XAllocColor(d, cmap, &xcl); if ((ret == Success) || ((xcl_in.red & sig_mask) != (xcl.red & sig_mask)) || ((xcl_in.green & sig_mask) != (xcl.green & sig_mask)) || ((xcl_in.blue & sig_mask) != (xcl.blue & sig_mask))) { unsigned long pixels[256]; int j; if (i > 0) { for (j = 0; j < i; j++) pixels[j] = (unsigned long)color_lut[j]; XFreeColors(d, cmap, pixels, i, 0); } free(color_lut); return NULL; } color_lut[i] = xcl.pixel; i++; } } } _pal_type = 3; return color_lut; } DATA8 * __imlib_AllocColors121(Display * d, Colormap cmap, Visual * v) { int r, g, b, i; DATA8 *color_lut; int sig_mask = 0; for (i = 0; i < v->bits_per_rgb; i++) sig_mask |= (0x1 << i); sig_mask <<= (16 - v->bits_per_rgb); i = 0; color_lut = malloc(16 * sizeof(DATA8)); for (r = 0; r < 2; r++) { for (g = 0; g < 4; g++) { for (b = 0; b < 2; b++) { XColor xcl; XColor xcl_in; int val; Status ret; val = (r << 7) | (r << 6) | (r << 5) | (r << 4) | (r << 3) | (r << 2) | (r << 1) | (r); xcl.red = (unsigned short)((val << 8) | (val)); val = (g << 6) | (g << 4) | (g << 2) | (g); xcl.green = (unsigned short)((val << 8) | (val)); val = (b << 7) | (b << 6) | (b << 5) | (b << 4) | (b << 3) | (b << 2) | (b << 1) | (b); xcl.blue = (unsigned short)((val << 8) | (val)); xcl_in = xcl; ret = XAllocColor(d, cmap, &xcl); if ((ret == Success) || ((xcl_in.red & sig_mask) != (xcl.red & sig_mask)) || ((xcl_in.green & sig_mask) != (xcl.green & sig_mask)) || ((xcl_in.blue & sig_mask) != (xcl.blue & sig_mask))) { unsigned long pixels[256]; int j; if (i > 0) { for (j = 0; j < i; j++) pixels[j] = (unsigned long)color_lut[j]; XFreeColors(d, cmap, pixels, i, 0); } free(color_lut); return NULL; } color_lut[i] = xcl.pixel; i++; } } } _pal_type = 4; return color_lut; } DATA8 * __imlib_AllocColors111(Display * d, Colormap cmap, Visual * v) { int r, g, b, i; DATA8 *color_lut; int sig_mask = 0; for (i = 0; i < v->bits_per_rgb; i++) sig_mask |= (0x1 << i); sig_mask <<= (16 - v->bits_per_rgb); i = 0; color_lut = malloc(8 * sizeof(DATA8)); for (r = 0; r < 2; r++) { for (g = 0; g < 2; g++) { for (b = 0; b < 2; b++) { XColor xcl; XColor xcl_in; int val; Status ret; val = (r << 7) | (r << 6) | (r << 5) | (r << 4) | (r << 3) | (r << 2) | (r << 1) | (r); xcl.red = (unsigned short)((val << 8) | (val)); val = (g << 7) | (g << 6) | (g << 5) | (g << 4) | (g << 3) | (g << 2) | (g << 1) | (g); xcl.green = (unsigned short)((val << 8) | (val)); val = (b << 7) | (b << 6) | (b << 5) | (b << 4) | (b << 3) | (b << 2) | (b << 1) | (b); xcl.blue = (unsigned short)((val << 8) | (val)); xcl_in = xcl; ret = XAllocColor(d, cmap, &xcl); if ((ret == Success) || ((xcl_in.red & sig_mask) != (xcl.red & sig_mask)) || ((xcl_in.green & sig_mask) != (xcl.green & sig_mask)) || ((xcl_in.blue & sig_mask) != (xcl.blue & sig_mask))) { unsigned long pixels[256]; int j; if (i > 0) { for (j = 0; j < i; j++) pixels[j] = (unsigned long)color_lut[j]; XFreeColors(d, cmap, pixels, i, 0); } free(color_lut); return NULL; } color_lut[i] = xcl.pixel; i++; } } } _pal_type = 5; return color_lut; } DATA8 * __imlib_AllocColors1(Display * d, Colormap cmap, Visual * v) { XColor xcl; DATA8 *color_lut; color_lut = malloc(2 * sizeof(DATA8)); xcl.red = (unsigned short)(0x0000); xcl.green = (unsigned short)(0x0000); xcl.blue = (unsigned short)(0x0000); XAllocColor(d, cmap, &xcl); color_lut[0] = xcl.pixel; xcl.red = (unsigned short)(0xffff); xcl.green = (unsigned short)(0xffff); xcl.blue = (unsigned short)(0xffff); XAllocColor(d, cmap, &xcl); color_lut[1] = xcl.pixel; _pal_type = 6; return color_lut; } #endif /* BUILD_X11 */ imlib2-1.4.6/src/lib/rgba.h0000664000175000017500000000263412255265113012253 00000000000000#ifndef __RGBA #define __RGBA 1 #define DM_BS1 (8 + 3) #define DM_BS2 (8) #define DM_X (8) #define DM_Y (8) __hidden void __imlib_RGBASetupContext(Context * ct); __hidden void __imlib_RGBA_init(void *rd, void *gd, void *bd, int depth, DATA8 palette_type); typedef void (*ImlibRGBAFunction) (DATA32 *, int, DATA8 *, int, int, int, int, int); typedef void (*ImlibMaskFunction) (DATA32 *, int, DATA8 *, int, int, int, int, int, int); __hidden ImlibRGBAFunction __imlib_GetRGBAFunction(int depth, unsigned long rm, unsigned long gm, unsigned long bm, char hiq, DATA8 palette_type); __hidden ImlibMaskFunction __imlib_GetMaskFunction(char hiq); #ifdef DO_MMX_ASM void __imlib_mmx_rgb555_fast(DATA32 *, int, DATA8 *, int, int, int, int, int); void __imlib_mmx_bgr555_fast(DATA32 *, int, DATA8 *, int, int, int, int, int); void __imlib_mmx_rgb565_fast(DATA32 *, int, DATA8 *, int, int, int, int, int); void __imlib_mmx_bgr565_fast(DATA32 *, int, DATA8 *, int, int, int, int, int); #endif #endif imlib2-1.4.6/src/lib/image.c0000664000175000017500000010742312255265135012423 00000000000000#include "common.h" #include #include #include #include #include #include #include #ifdef BUILD_X11 #include #endif #include "image.h" #include "file.h" #include "loaderpath.h" #include "Imlib2.h" static ImlibImage *images = NULL; #ifdef BUILD_X11 static ImlibImagePixmap *pixmaps = NULL; #endif static ImlibLoader *loaders = NULL; static int cache_size = 4096 * 1024; /* attach a string key'd data and/or int value to an image that cna be */ /* looked up later by its string key */ void __imlib_AttachTag(ImlibImage * im, const char *key, int val, void *data, ImlibDataDestructorFunction destructor) { ImlibImageTag *t; /* no string key? abort */ if (!key) return; /* if a tag of that name already exists - remove it and free it */ if ((t = __imlib_RemoveTag(im, key))) __imlib_FreeTag(im, t); /* allocate the struct */ t = malloc(sizeof(ImlibImageTag)); /* fill it int */ t->key = strdup(key); t->val = val; t->data = data; t->destructor = destructor; t->next = im->tags; /* prepend it to the list of tags */ im->tags = t; } /* look up a tage by its key on the image it was attached to */ ImlibImageTag * __imlib_GetTag(ImlibImage * im, const char *key) { ImlibImageTag *t; t = im->tags; while (t) { if (!strcmp(t->key, key)) return t; t = t->next; } /* no tag found - return NULL */ return NULL; } /* remove a tag by looking it up by its key and removing it from */ /* the list of keys */ ImlibImageTag * __imlib_RemoveTag(ImlibImage * im, const char *key) { ImlibImageTag *t, *tt; tt = NULL; t = im->tags; while (t) { if (!strcmp(t->key, key)) { if (tt) tt->next = t->next; else im->tags = t->next; return t; } tt = t; t = t->next; } /* no tag found - NULL */ return NULL; } /* free the data struct for the tag and if a destructor function was */ /* provided call it on the data member */ void __imlib_FreeTag(ImlibImage * im, ImlibImageTag * t) { free(t->key); if (t->destructor) t->destructor(im, t->data); free(t); } /* free all the tags attached to an image */ void __imlib_FreeAllTags(ImlibImage * im) { ImlibImageTag *t, *tt; t = im->tags; while (t) { tt = t; t = t->next; __imlib_FreeTag(im, tt); } } /* set the cache size */ void __imlib_SetCacheSize(int size) { cache_size = size; __imlib_CleanupImageCache(); #ifdef BUILD_X11 __imlib_CleanupImagePixmapCache(); #endif } /* return the cache size */ int __imlib_GetCacheSize(void) { return cache_size; } /* create an image data struct and fill it in */ ImlibImage * __imlib_ProduceImage(void) { ImlibImage *im; im = calloc(1, sizeof(ImlibImage)); im->data = NULL; im->file = NULL; im->real_file = NULL; im->key = NULL; im->flags = F_FORMAT_IRRELEVANT | F_BORDER_IRRELEVANT | F_ALPHA_IRRELEVANT; im->loader = NULL; im->next = NULL; im->tags = NULL; return im; } /* free an image struct */ void __imlib_ConsumeImage(ImlibImage * im) { #ifdef BUILD_X11 ImlibImagePixmap *ip; #endif __imlib_FreeAllTags(im); if (im->file) free(im->file); if (im->real_file) free(im->real_file); if (im->key) free(im->key); if ((IMAGE_FREE_DATA(im)) && (im->data)) free(im->data); if (im->format) free(im->format); free(im); #ifdef BUILD_X11 ip = pixmaps; while (ip) { if (ip->image == im) { ip->image = NULL; ip->dirty = 1; } ip = ip->next; } #endif } ImlibImage * __imlib_FindCachedImage(const char *file) { ImlibImage *im, *previous_im; im = images; previous_im = NULL; /* go through the images list */ while (im) { /* if the filenames match and it's valid */ if ((!strcmp(file, im->file)) && (IMAGE_IS_VALID(im))) { /* move the image to the head of the pixmap list */ if (previous_im) { previous_im->next = im->next; im->next = images; images = im; } /* return it */ return im; } previous_im = im; im = im->next; } return NULL; } /* add an image to the cache of images (at the start) */ void __imlib_AddImageToCache(ImlibImage * im) { im->next = images; images = im; } /* remove (unlink) an image from the cache of images */ void __imlib_RemoveImageFromCache(ImlibImage * im) { ImlibImage *current_im, *previous_im; current_im = images; previous_im = NULL; while (current_im) { if (im == current_im) { if (previous_im) previous_im->next = im->next; else images = im->next; return; } previous_im = current_im; current_im = current_im->next; } } /* work out how much we have floaitng aroudn in our speculative cache */ /* (images and pixmaps that have 0 reference counts) */ int __imlib_CurrentCacheSize(void) { ImlibImage *im; #ifdef BUILD_X11 ImlibImagePixmap *ip; #endif int current_cache = 0; /* go through the image cache */ im = images; while (im) { /* mayaswell clean out stuff thats invalid that we dont need anymore */ if (im->references == 0) { if (!(IMAGE_IS_VALID(im))) { ImlibImage *tmp_im; tmp_im = im; im = im->next; __imlib_RemoveImageFromCache(tmp_im); __imlib_ConsumeImage(tmp_im); #ifdef BUILD_X11 ip = pixmaps; while (ip) { if (ip->image == tmp_im) { ip->image = NULL; ip->dirty = 1; } ip = ip->next; } #endif continue; } /* it's valid but has 0 ref's - append to cache size count */ else current_cache += im->w * im->h * sizeof(DATA32); } im = im->next; } #ifdef BUILD_X11 /* go through the pixmaps */ ip = pixmaps; while (ip) { /* if the pixmap has 0 references */ if (ip->references == 0) { /* if the image is invalid */ if ((ip->dirty) || ((ip->image) && (!(IMAGE_IS_VALID(ip->image))))) { ImlibImagePixmap *tmp_ip; tmp_ip = ip; ip = ip->next; __imlib_RemoveImagePixmapFromCache(tmp_ip); __imlib_ConsumeImagePixmap(tmp_ip); continue; } else { /* add the pixmap data size to the cache size */ if (ip->pixmap) { if (ip->depth < 8) current_cache += ip->w * ip->h * (ip->depth / 8); else if (ip->depth == 8) current_cache += ip->w * ip->h; else if (ip->depth <= 16) current_cache += ip->w * ip->h * 2; else if (ip->depth <= 32) current_cache += ip->w * ip->h * 4; } /* if theres a mask add it too */ if (ip->mask) current_cache += ip->w * ip->h / 8; } } ip = ip->next; } #endif return current_cache; } /* clean out images fromthe cache if the cache is overgrown */ void __imlib_CleanupImageCache(void) { ImlibImage *im, *im_last; int current_cache; char operation = 1; current_cache = __imlib_CurrentCacheSize(); im_last = NULL; im = images; /* remove 0 ref count invalid (dirty) images */ while (im) { im_last = im; im = im->next; if ((im_last->references <= 0) && (!(IMAGE_IS_VALID(im_last)))) { __imlib_RemoveImageFromCache(im_last); __imlib_ConsumeImage(im_last); } } /* while the cache size of 0 ref coutn data is bigger than the set value */ /* clean out the oldest members of the imaeg cache */ while ((current_cache > cache_size) && (operation)) { im_last = NULL; operation = 0; im = images; while (im) { if (im->references <= 0) im_last = im; im = im->next; } if (im_last) { __imlib_RemoveImageFromCache(im_last); __imlib_ConsumeImage(im_last); operation = 1; } if (operation) current_cache = __imlib_CurrentCacheSize(); } } #ifdef BUILD_X11 /* create a pixmap cache data struct */ ImlibImagePixmap * __imlib_ProduceImagePixmap(void) { ImlibImagePixmap *ip; ip = calloc(1, sizeof(ImlibImagePixmap)); ip->display = NULL; ip->visual = NULL; ip->image = NULL; ip->next = NULL; ip->file = NULL; return ip; } /* free a pixmap cache data struct and the pixmaps in it */ void __imlib_ConsumeImagePixmap(ImlibImagePixmap * ip) { #ifdef DEBUG_CACHE fprintf(stderr, "[Imlib2] Deleting pixmap. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n", ip->references, ip->pixmap, ip->mask); #endif if (ip->pixmap) XFreePixmap(ip->display, ip->pixmap); if (ip->mask) XFreePixmap(ip->display, ip->mask); if (ip->file) free(ip->file); free(ip); } ImlibImagePixmap * __imlib_FindCachedImagePixmap(ImlibImage * im, int w, int h, Display * d, Visual * v, int depth, int sx, int sy, int sw, int sh, Colormap cm, char aa, char hiq, char dmask, DATABIG modification_count) { ImlibImagePixmap *ip, *previous_ip; ip = pixmaps; previous_ip = NULL; /* go through the pixmap list */ while (ip) { /* if all the pixmap attributes match */ if ((ip->w == w) && (ip->h == h) && (ip->depth == depth) && (!ip->dirty) && (ip->visual == v) && (ip->display == d) && (ip->source_x == sx) && (ip->source_x == sy) && (ip->source_w == sw) && (ip->source_h == sh) && (ip->colormap == cm) && (ip->antialias == aa) && (ip->modification_count == modification_count) && (ip->dither_mask == dmask) && (ip->border.left == im->border.left) && (ip->border.right == im->border.right) && (ip->border.top == im->border.top) && (ip->border.bottom == im->border.bottom) && (((im->file) && (ip->file) && !strcmp(im->file, ip->file)) || ((!im->file) && (!ip->file) && (im == ip->image)))) { /* move the pixmap to the head of the pixmap list */ if (previous_ip) { previous_ip->next = ip->next; ip->next = pixmaps; pixmaps = ip; } /* return it */ return ip; } previous_ip = ip; ip = ip->next; } return NULL; } ImlibImagePixmap * __imlib_FindCachedImagePixmapByID(Display * d, Pixmap p) { ImlibImagePixmap *ip; ip = pixmaps; /* go through the pixmap list */ while (ip) { /* if all the pixmap attributes match */ if ((ip->pixmap == p) && (ip->display == d)) return ip; ip = ip->next; } return NULL; } /* add a pixmap cahce struct to the pixmap cache (at the start of course */ void __imlib_AddImagePixmapToCache(ImlibImagePixmap * ip) { ip->next = pixmaps; pixmaps = ip; } /* remove a pixmap cache struct from the pixmap cache */ void __imlib_RemoveImagePixmapFromCache(ImlibImagePixmap * ip) { ImlibImagePixmap *current_ip, *previous_ip; current_ip = pixmaps; previous_ip = NULL; while (current_ip) { if (ip == current_ip) { if (previous_ip) previous_ip->next = ip->next; else pixmaps = ip->next; return; } previous_ip = current_ip; current_ip = current_ip->next; } } /* clean out 0 reference count & dirty pixmaps from the cache */ void __imlib_CleanupImagePixmapCache(void) { ImlibImagePixmap *ip, *ip_last; int current_cache; char operation = 0; current_cache = __imlib_CurrentCacheSize(); ip_last = NULL; ip = pixmaps; while (ip) { ip_last = ip; ip = ip->next; if ((ip_last->references <= 0) && (ip_last->dirty)) { __imlib_RemoveImagePixmapFromCache(ip_last); __imlib_ConsumeImagePixmap(ip_last); } } while ((current_cache > cache_size) && (operation)) { ip_last = NULL; operation = 0; ip = pixmaps; while (ip) { if (ip->references <= 0) ip_last = ip; ip = ip->next; } if (ip_last) { __imlib_RemoveImagePixmapFromCache(ip_last); __imlib_ConsumeImagePixmap(ip_last); operation = 1; } if (operation) current_cache = __imlib_CurrentCacheSize(); } } #endif /* try dlopen()ing the file if we succeed finish filling out the malloced */ /* loader struct and return it */ ImlibLoader * __imlib_ProduceLoader(char *file) { ImlibLoader *l; void (*l_formats) (ImlibLoader * l); l = malloc(sizeof(ImlibLoader)); l->num_formats = 0; l->formats = NULL; l->handle = dlopen(file, RTLD_NOW | RTLD_LOCAL); if (!l->handle) { free(l); return NULL; } l->load = dlsym(l->handle, "load"); l->save = dlsym(l->handle, "save"); l_formats = dlsym(l->handle, "formats"); /* each loader must provide formats() and at least load() or save() */ if (!l_formats || (!l->load && !l->save)) { dlclose(l->handle); free(l); return NULL; } l_formats(l); l->file = strdup(file); l->next = NULL; return l; } /* list all the filenames of loaders in the system loaders dir and the user */ /* loader dir */ char ** __imlib_ListLoaders(int *num_ret) { char **list = NULL, **l, *s; int num, i, pi = 0; *num_ret = 0; /* same for system loader path */ s = (char *)malloc(sizeof(SYS_LOADERS_PATH) + 8 + 1); sprintf(s, SYS_LOADERS_PATH "/loaders"); #ifndef __EMX__ l = __imlib_FileDir(s, &num); #else l = __imlib_FileDir(__XOS2RedirRoot(s), &num); #endif if (num > 0) { *num_ret += num; list = realloc(list, sizeof(char *) * *num_ret); for (i = 0; i < num; i++) { s = (char *)realloc(s, sizeof(SYS_LOADERS_PATH) + 9 + strlen(l[i]) + 1); sprintf(s, SYS_LOADERS_PATH "/loaders/%s", l[i]); #ifndef __EMX__ list[pi + i] = strdup(s); #else list[pi + i] = strdup(__XOS2RedirRoot(s)); #endif } __imlib_FileFreeDirList(l, num); } free(s); /* List currently contains *everything in there* we need to weed out * the .so, .la, .a versions of the same loader or whatever else. * dlopen can take an extension-less name and do the Right Thing * with it, so that's what we'll give it. */ list = __imlib_TrimLoaderList(list, num_ret); return list; } char ** __imlib_TrimLoaderList(char **list, int *num) { int i, n, size = 0; char **ret = NULL; if (!list) return NULL; if (*num == 0) return list; n = *num; for (i = 0; i < n; i++) { char *ext; if (!list[i]) continue; ext = strrchr(list[i], '.'); if ((ext) && ( #ifdef __CYGWIN__ (!strcasecmp(ext, ".dll")) || #endif (!strcasecmp(ext, ".so")))) { /* Don't add the same loader multiple times... */ if (!__imlib_ItemInList(ret, size, list[i])) { ret = realloc(ret, sizeof(char *) * (size + 1)); ret[size++] = strdup(list[i]); } } if (list[i]) free(list[i]); } free(list); *num = size; return ret; } int __imlib_ItemInList(char **list, int size, char *item) { int i; if (!size) return 0; if (!list) return 0; if (!item) return 0; for (i = 0; i < size; i++) { if (!strcmp(list[i], item)) return 1; } return 0; } /* fre the struct for a loader and close its dlopen'd handle */ void __imlib_ConsumeLoader(ImlibLoader * l) { if (l->file) free(l->file); if (l->handle) dlclose(l->handle); if (l->formats) { int i; for (i = 0; i < l->num_formats; i++) free(l->formats[i]); free(l->formats); } free(l); } void __imlib_RescanLoaders(void) { static time_t last_scan_time = 0; static time_t last_modified_system_time = 0; static int scanned = 0; time_t current_time; char do_reload = 0; /* dont stat the dir and rescan if we checked in the last 5 seconds */ current_time = time(NULL); if ((current_time - last_scan_time) < 5) return; /* ok - was the system loaders dir contents modified ? */ last_scan_time = current_time; #ifndef __EMX__ if (__imlib_FileIsDir(SYS_LOADERS_PATH "/loaders/")) #else if (__imlib_FileIsDir(__XOS2RedirRoot(SYS_LOADERS_PATH "/loaders/"))) #endif { #ifndef __EMX__ current_time = __imlib_FileModDate(SYS_LOADERS_PATH "/loaders/"); #else current_time = __imlib_FileModDate(__XOS2RedirRoot(SYS_LOADERS_PATH "/loaders/")); #endif if ((current_time > last_modified_system_time) || (!scanned)) { /* yup - set the "do_reload" flag */ do_reload = 1; last_modified_system_time = current_time; } } /* if we dont ned to reload the loaders - get out now */ if (!do_reload) return; __imlib_RemoveAllLoaders(); __imlib_LoadAllLoaders(); scanned = 1; } /* remove all loaders int eh list we have cached so we can re-load them */ void __imlib_RemoveAllLoaders(void) { ImlibLoader *l, *il; l = loaders; while (l) { il = l; l = l->next; __imlib_ConsumeLoader(il); } loaders = NULL; } /* find all the loaders we can find and load them up to see what they can */ /* load / save */ void __imlib_LoadAllLoaders(void) { int i, num; char **list; /* list all the loaders imlib can find */ list = __imlib_ListLoaders(&num); /* no loaders? well don't load anything */ if (!list) return; /* go through the list of filenames for loader .so's and load them */ /* (or try) and if it succeeds, append to our loader list */ for (i = num - 1; i >= 0; i--) { ImlibLoader *l; l = __imlib_ProduceLoader(list[i]); if (l) { l->next = loaders; loaders = l; } if (list[i]) free(list[i]); } free(list); } ImlibLoader * __imlib_FindBestLoaderForFile(const char *file, int for_save) { char *extension, *lower, *rfile; ImlibLoader *l = NULL; /* use the file extension for a "best guess" as to what loader to try */ /* first at any rate */ rfile = __imlib_FileRealFile(file); extension = __imlib_FileExtension(rfile); free(rfile); /* change the extensiont o all lower case as all "types" are listed as */ /* lower case strings from the loader that represent all the possible */ /* extensions that file format could have */ lower = extension; while (*lower) { *lower = tolower(*lower); lower++; } if (!extension) return NULL; /* go through the loaders - first loader that claims to handle that */ /* image type (extension wise) wins as a first guess to use - NOTE */ /* this is an OPTIMISATION - it is possible the file has no extension */ /* or has an unrecognised one but still is loadable by a loader. */ /* if thkis initial loader failes to load the load mechanism will */ /* systematically go from most recently used to least recently used */ /* loader until one succeeds - or none are left and all have failed */ /* and only if all fail does the laod fail. the lao9der that does */ /* succeed gets it way to the head of the list so it's going */ /* to be used first next time in this search mechanims - this */ /* assumes you tend to laod a few image types and ones generally */ /* of the same format */ l = loaders; while (l) { int i; /* go through all the formats that loader supports */ for (i = 0; i < l->num_formats; i++) { /* does it match ? */ if (!strcmp(l->formats[i], extension)) { /* does it provide the function we need? */ if ((for_save && l->save) || (!for_save && l->load)) { /* free the memory allocated for the extension */ free(extension); /* return the loader */ return l; } } } l = l->next; } /* free the memory allocated for the extension */ free(extension); /* return the loader */ return l; } ImlibLoader * __imlib_FindBestLoaderForFileFormat(const char *file, char *format, int for_save) { char *extension, *lower; ImlibLoader *l = NULL; /* if the format is provided ("png" "jpg" etc.) use that */ if (format) extension = strdup(format); /* otherwise us the extension */ else { extension = __imlib_FileExtension(file); /* change the extension to all lower case as all "types" are listed as */ /* lower case strings from the loader that represent all the possible */ /* extensions that file format could have */ if (extension) { lower = extension; while (*lower) { *lower = tolower(*lower); lower++; } } } if (!extension) return NULL; /* look through the loaders one by one to see if one matches that format */ l = loaders; while (l) { int i; /* go through all the formats that loader supports */ for (i = 0; i < l->num_formats; i++) { /* does it match ? */ if (!strcmp(l->formats[i], extension)) { /* does it provide the function we need? */ if ((for_save && l->save) || (!for_save && l->load)) { /* free the memory allocated for the extension */ free(extension); /* return the loader */ return l; } } } l = l->next; } /* free the memory allocated for the extension */ free(extension); /* return the loader */ return l; } /* set or unset the alpha flag on the umage (alpha = 1 / 0 ) */ void __imlib_SetImageAlphaFlag(ImlibImage * im, char alpha) { if (alpha) SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); } /* create a new image struct from data passed that is wize w x h then return */ /* a pointer to that image sturct */ ImlibImage * __imlib_CreateImage(int w, int h, DATA32 * data) { ImlibImage *im; im = __imlib_ProduceImage(); im->w = w; im->h = h; im->data = data; im->references = 1; SET_FLAG(im->flags, F_UNCACHEABLE); return im; } ImlibImage * __imlib_LoadImage(const char *file, ImlibProgressFunction progress, char progress_granularity, char immediate_load, char dont_cache, ImlibLoadError * er) { ImlibImage *im; ImlibLoader *best_loader; char loader_ret = 0; if (!file) return NULL; if (file[0] == 0) return NULL; /* see if we already have the image cached */ im = __imlib_FindCachedImage(file); /* if we found a cached image and we should always check that it is */ /* accurate to the disk conents if they changed since we last loaded */ /* and that it is still a valid image */ if ((im) && (IMAGE_IS_VALID(im))) { if (IMAGE_ALWAYS_CHECK_DISK(im)) { time_t current_modified_time; current_modified_time = __imlib_FileModDate(file); /* if the file on disk is newer than the cached one */ if (current_modified_time != im->moddate) { /* invalidate image */ SET_FLAG(im->flags, F_INVALID); } else { /* image is ok to re-use - program is just being stupid loading */ /* the same data twice */ im->references++; return im; } } else { im->references++; return im; } } /* either image in cache is invalid or we dont even have it in cache */ /* so produce a new one and load an image into that */ im = __imlib_ProduceImage(); im->file = strdup(file); if (__imlib_IsRealFile(file)) { im->real_file = strdup(im->file); im->key = NULL; } else { im->real_file = __imlib_FileRealFile(file); im->key = __imlib_FileKey(file); } im->moddate = __imlib_FileModDate(file); /* ok - just check all our loaders are up to date */ __imlib_RescanLoaders(); /* take a guess by extension on the best loader to use */ best_loader = __imlib_FindBestLoaderForFile(im->real_file, 0); errno = 0; if (best_loader) loader_ret = best_loader->load(im, progress, progress_granularity, immediate_load); /* width is still 0 - the loader didn't manage to do anything */ if (im->w == 0) { ImlibLoader *l, *previous_l = NULL; errno = 0; l = loaders; /* run through all loaders and try load until one succeeds */ while ((l) && (im->w == 0)) { /* if its not the best loader that already failed - try load */ if (l != best_loader) loader_ret = l->load(im, progress, progress_granularity, immediate_load); /* if it failed - advance */ if (im->w == 0) { previous_l = l; l = l->next; } } /* if we have a loader then its the loader that succeeded */ /* move the successful loader to the head of the list */ /* as long as it's not already at the head of the list */ if ((l) && (previous_l)) { im->loader = l; previous_l->next = l->next; l->next = loaders; loaders = l; } if (im->w > 0) im->loader = l; } else im->loader = best_loader; /* all loaders have been tried and they all failed. free the skeleton */ /* image struct we had and return NULL */ if (im->w == 0) { /* if the caller wants an error return */ if (er) { /* set to a default fo no error */ *er = IMLIB_LOAD_ERROR_NONE; /* if the errno is set */ if (errno != 0) { /* default to unknown error */ *er = IMLIB_LOAD_ERROR_UNKNOWN; /* standrad fopen() type errors translated */ if (errno == EEXIST) *er = IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST; else if (errno == EISDIR) *er = IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY; else if (errno == EISDIR) *er = IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY; else if (errno == EACCES) *er = IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_READ; else if (errno == ENAMETOOLONG) *er = IMLIB_LOAD_ERROR_PATH_TOO_LONG; else if (errno == ENOENT) *er = IMLIB_LOAD_ERROR_PATH_COMPONENT_NON_EXISTANT; else if (errno == ENOTDIR) *er = IMLIB_LOAD_ERROR_PATH_COMPONENT_NOT_DIRECTORY; else if (errno == EFAULT) *er = IMLIB_LOAD_ERROR_PATH_POINTS_OUTSIDE_ADDRESS_SPACE; else if (errno == ELOOP) *er = IMLIB_LOAD_ERROR_TOO_MANY_SYMBOLIC_LINKS; else if (errno == ENOMEM) *er = IMLIB_LOAD_ERROR_OUT_OF_MEMORY; else if (errno == EMFILE) *er = IMLIB_LOAD_ERROR_OUT_OF_FILE_DESCRIPTORS; if (*er != IMLIB_LOAD_ERROR_UNKNOWN) { /* free the stuct we created */ __imlib_ConsumeImage(im); return NULL; } } errno = 0; } __imlib_ConsumeImage(im); return NULL; } /* the load succeeded - make sure the image is referenced then add */ /* it to our cache if dont_cache isn't set */ im->references = 1; if (loader_ret == 2) dont_cache = 1; if (!dont_cache) __imlib_AddImageToCache(im); else SET_FLAG(im->flags, F_UNCACHEABLE); return im; } #ifdef BUILD_X11 /* find an imagepixmap cache entry by the display and pixmap id */ ImlibImagePixmap * __imlib_FindImlibImagePixmapByID(Display * d, Pixmap p) { ImlibImagePixmap *ip; ip = pixmaps; /* go through the pixmap list */ while (ip) { /* if all the pixmap ID & Display match */ if ((ip->pixmap == p) && (ip->display == d)) { #ifdef DEBUG_CACHE fprintf(stderr, "[Imlib2] Match found. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n", ip->references, ip->pixmap, ip->mask); #endif return ip; } ip = ip->next; } return NULL; } #endif /* free and image - if its uncachable and refcoutn is 0 - free it in reality */ void __imlib_FreeImage(ImlibImage * im) { /* if the refcount is positive */ if (im->references >= 0) { /* reduce a reference from the count */ im->references--; /* if its uncachchable ... */ if (IMAGE_IS_UNCACHEABLE(im)) { /* and we're down to no references for the image then free it */ if (im->references == 0) __imlib_ConsumeImage(im); } /* otherwise clean up our cache if the image becoem 0 ref count */ else if (im->references == 0) __imlib_CleanupImageCache(); } } #ifdef BUILD_X11 /* free a cached pixmap */ void __imlib_FreePixmap(Display * d, Pixmap p) { ImlibImagePixmap *ip; /* find the pixmap in the cache by display and id */ ip = __imlib_FindImlibImagePixmapByID(d, p); if (ip) { /* if tis positive reference count */ if (ip->references > 0) { /* dereference it by one */ ip->references--; #ifdef DEBUG_CACHE fprintf(stderr, "[Imlib2] Reference count is now %d for pixmap 0x%08x\n", ip->references, ip->pixmap); #endif /* if it becaume 0 reference count - clean the cache up */ if (ip->references == 0) __imlib_CleanupImagePixmapCache(); } } else { #ifdef DEBUG_CACHE fprintf(stderr, "[Imlib2] Pixmap 0x%08x not found. Freeing.\n", p); #endif XFreePixmap(d, p); } } /* mark all pixmaps generated from this image as dirty so the cache code */ /* wont pick up on them again since they are now invalid since the original */ /* data they were generated from has changed */ void __imlib_DirtyPixmapsForImage(ImlibImage * im) { ImlibImagePixmap *ip; ip = pixmaps; /* go through the pixmap list */ while (ip) { /* if image matches */ if (ip->image == im) ip->dirty = 1; ip = ip->next; } __imlib_CleanupImagePixmapCache(); } #endif /* dirty and image by settings its invalid flag */ void __imlib_DirtyImage(ImlibImage * im) { SET_FLAG(im->flags, F_INVALID); /* and dirty all pixmaps generated from it */ __imlib_DirtyPixmapsForImage(im); } void __imlib_SaveImage(ImlibImage * im, const char *file, ImlibProgressFunction progress, char progress_granularity, ImlibLoadError * er) { ImlibLoader *l; char e, *pfile; if (!file) { if (er) *er = IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST; return; } /* ok - just check all our loaders are up to date */ __imlib_RescanLoaders(); /* set the filename to the saved one */ pfile = im->file; im->file = strdup(file); if (im->real_file) free(im->real_file); im->real_file = strdup(im->file); /* find the laoder for the format - if its null use the extension */ l = __imlib_FindBestLoaderForFileFormat(im->real_file, im->format, 1); /* no loader - abort */ if (!l) { if (er) *er = IMLIB_LOAD_ERROR_NO_LOADER_FOR_FILE_FORMAT; /* set the filename back to the laoder image filename */ free(im->file); im->file = pfile; return; } /* if they want an error returned - assume none by default */ if (er) *er = IMLIB_LOAD_ERROR_NONE; /* call the saver */ e = l->save(im, progress, progress_granularity); /* set the filename back to the laoder image filename */ free(im->file); im->file = pfile; /* if there's an error return and the save faile (e = 0) figure it out */ if ((er) && (e == 0)) { *er = IMLIB_LOAD_ERROR_UNKNOWN; if (errno == EEXIST) *er = IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST; else if (errno == EISDIR) *er = IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY; else if (errno == EISDIR) *er = IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY; else if (errno == EACCES) *er = IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_WRITE; else if (errno == ENAMETOOLONG) *er = IMLIB_LOAD_ERROR_PATH_TOO_LONG; else if (errno == ENOENT) *er = IMLIB_LOAD_ERROR_PATH_COMPONENT_NON_EXISTANT; else if (errno == ENOTDIR) *er = IMLIB_LOAD_ERROR_PATH_COMPONENT_NOT_DIRECTORY; else if (errno == EFAULT) *er = IMLIB_LOAD_ERROR_PATH_POINTS_OUTSIDE_ADDRESS_SPACE; else if (errno == ELOOP) *er = IMLIB_LOAD_ERROR_TOO_MANY_SYMBOLIC_LINKS; else if (errno == ENOMEM) *er = IMLIB_LOAD_ERROR_OUT_OF_MEMORY; else if (errno == EMFILE) *er = IMLIB_LOAD_ERROR_OUT_OF_FILE_DESCRIPTORS; else if (errno == ENOSPC) *er = IMLIB_LOAD_ERROR_OUT_OF_DISK_SPACE; else if (errno == EROFS) *er = IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_WRITE; } } imlib2-1.4.6/src/lib/format.h0000664000175000017500000000005312137523370012622 00000000000000#ifndef __FORMAT #define __FORMAT 1 #endif imlib2-1.4.6/src/lib/Imlib2.h0000664000175000017500000006146212255265135012466 00000000000000#ifndef __IMLIB_API_H # define __IMLIB_API_H 1 # ifdef EAPI # undef EAPI # endif # ifdef WIN32 # ifdef BUILDING_DLL # define EAPI __declspec(dllexport) # else # define EAPI __declspec(dllimport) # endif # else # ifdef __GNUC__ # if __GNUC__ >= 4 # define EAPI __attribute__ ((visibility("default"))) # else # define EAPI # endif # else # define EAPI # endif # endif # ifndef X_DISPLAY_MISSING # include # endif /* Data types to use */ # ifndef DATA64 # define DATA64 unsigned long long # define DATA32 unsigned int # define DATA16 unsigned short # define DATA8 unsigned char # endif /* opaque data types */ typedef void *Imlib_Context; typedef void *Imlib_Image; typedef void *Imlib_Color_Modifier; typedef void *Imlib_Updates; typedef void *Imlib_Font; typedef void *Imlib_Color_Range; typedef void *Imlib_Filter; typedef struct _imlib_border Imlib_Border; typedef struct _imlib_color Imlib_Color; typedef void *ImlibPolygon; /* blending operations */ enum _imlib_operation { IMLIB_OP_COPY, IMLIB_OP_ADD, IMLIB_OP_SUBTRACT, IMLIB_OP_RESHADE }; enum _imlib_text_direction { IMLIB_TEXT_TO_RIGHT = 0, IMLIB_TEXT_TO_LEFT = 1, IMLIB_TEXT_TO_DOWN = 2, IMLIB_TEXT_TO_UP = 3, IMLIB_TEXT_TO_ANGLE = 4 }; enum _imlib_load_error { IMLIB_LOAD_ERROR_NONE, IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST, IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY, IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_READ, IMLIB_LOAD_ERROR_NO_LOADER_FOR_FILE_FORMAT, IMLIB_LOAD_ERROR_PATH_TOO_LONG, IMLIB_LOAD_ERROR_PATH_COMPONENT_NON_EXISTANT, IMLIB_LOAD_ERROR_PATH_COMPONENT_NOT_DIRECTORY, IMLIB_LOAD_ERROR_PATH_POINTS_OUTSIDE_ADDRESS_SPACE, IMLIB_LOAD_ERROR_TOO_MANY_SYMBOLIC_LINKS, IMLIB_LOAD_ERROR_OUT_OF_MEMORY, IMLIB_LOAD_ERROR_OUT_OF_FILE_DESCRIPTORS, IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_WRITE, IMLIB_LOAD_ERROR_OUT_OF_DISK_SPACE, IMLIB_LOAD_ERROR_UNKNOWN }; /* Encodings known to Imlib2 (so far) */ enum _imlib_TTF_encoding { IMLIB_TTF_ENCODING_ISO_8859_1, IMLIB_TTF_ENCODING_ISO_8859_2, IMLIB_TTF_ENCODING_ISO_8859_3, IMLIB_TTF_ENCODING_ISO_8859_4, IMLIB_TTF_ENCODING_ISO_8859_5 }; typedef enum _imlib_operation Imlib_Operation; typedef enum _imlib_load_error Imlib_Load_Error; typedef enum _imlib_load_error ImlibLoadError; typedef enum _imlib_text_direction Imlib_Text_Direction; typedef enum _imlib_TTF_encoding Imlib_TTF_Encoding; struct _imlib_border { int left, right, top, bottom; }; struct _imlib_color { int alpha, red, green, blue; }; /* Progressive loading callbacks */ typedef int (*Imlib_Progress_Function) (Imlib_Image im, char percent, int update_x, int update_y, int update_w, int update_h); typedef void (*Imlib_Data_Destructor_Function) (Imlib_Image im, void *data); # ifdef __cplusplus extern "C" { # endif /* context handling */ EAPI Imlib_Context imlib_context_new(void); EAPI void imlib_context_free(Imlib_Context context); EAPI void imlib_context_push(Imlib_Context context); EAPI void imlib_context_pop(void); EAPI Imlib_Context imlib_context_get(void); /* context setting */ # ifndef X_DISPLAY_MISSING EAPI void imlib_context_set_display(Display * display); EAPI void imlib_context_disconnect_display(void); EAPI void imlib_context_set_visual(Visual * visual); EAPI void imlib_context_set_colormap(Colormap colormap); EAPI void imlib_context_set_drawable(Drawable drawable); EAPI void imlib_context_set_mask(Pixmap mask); # endif EAPI void imlib_context_set_dither_mask(char dither_mask); EAPI void imlib_context_set_mask_alpha_threshold(int mask_alpha_threshold); EAPI void imlib_context_set_anti_alias(char anti_alias); EAPI void imlib_context_set_dither(char dither); EAPI void imlib_context_set_blend(char blend); EAPI void imlib_context_set_color_modifier(Imlib_Color_Modifier color_modifier); EAPI void imlib_context_set_operation(Imlib_Operation operation); EAPI void imlib_context_set_font(Imlib_Font font); EAPI void imlib_context_set_direction(Imlib_Text_Direction direction); EAPI void imlib_context_set_angle(double angle); EAPI void imlib_context_set_color(int red, int green, int blue, int alpha); EAPI void imlib_context_set_color_hsva(float hue, float saturation, float value, int alpha); EAPI void imlib_context_set_color_hlsa(float hue, float lightness, float saturation, int alpha); EAPI void imlib_context_set_color_cmya(int cyan, int magenta, int yellow, int alpha); EAPI void imlib_context_set_color_range(Imlib_Color_Range color_range); EAPI void imlib_context_set_progress_function(Imlib_Progress_Function progress_function); EAPI void imlib_context_set_progress_granularity(char progress_granularity); EAPI void imlib_context_set_image(Imlib_Image image); EAPI void imlib_context_set_cliprect(int x, int y, int w, int h); EAPI void imlib_context_set_TTF_encoding(Imlib_TTF_Encoding encoding); /* context getting */ # ifndef X_DISPLAY_MISSING EAPI Display *imlib_context_get_display(void); EAPI Visual *imlib_context_get_visual(void); EAPI Colormap imlib_context_get_colormap(void); EAPI Drawable imlib_context_get_drawable(void); EAPI Pixmap imlib_context_get_mask(void); # endif EAPI char imlib_context_get_dither_mask(void); EAPI char imlib_context_get_anti_alias(void); EAPI int imlib_context_get_mask_alpha_threshold(void); EAPI char imlib_context_get_dither(void); EAPI char imlib_context_get_blend(void); EAPI Imlib_Color_Modifier imlib_context_get_color_modifier(void); EAPI Imlib_Operation imlib_context_get_operation(void); EAPI Imlib_Font imlib_context_get_font(void); EAPI double imlib_context_get_angle(void); EAPI Imlib_Text_Direction imlib_context_get_direction(void); EAPI void imlib_context_get_color(int *red, int *green, int *blue, int *alpha); EAPI void imlib_context_get_color_hsva(float *hue, float *saturation, float *value, int *alpha); EAPI void imlib_context_get_color_hlsa(float *hue, float *lightness, float *saturation, int *alpha); EAPI void imlib_context_get_color_cmya(int *cyan, int *magenta, int *yellow, int *alpha); EAPI Imlib_Color *imlib_context_get_imlib_color(void); EAPI Imlib_Color_Range imlib_context_get_color_range(void); EAPI Imlib_Progress_Function imlib_context_get_progress_function(void); EAPI char imlib_context_get_progress_granularity(void); EAPI Imlib_Image imlib_context_get_image(void); EAPI void imlib_context_get_cliprect(int *x, int *y, int *w, int *h); EAPI Imlib_TTF_Encoding imlib_context_get_TTF_encoding(void); EAPI int imlib_get_cache_size(void); EAPI void imlib_set_cache_size(int bytes); EAPI int imlib_get_color_usage(void); EAPI void imlib_set_color_usage(int max); EAPI void imlib_flush_loaders(void); # ifndef X_DISPLAY_MISSING EAPI int imlib_get_visual_depth(Display * display, Visual * visual); EAPI Visual *imlib_get_best_visual(Display * display, int screen, int *depth_return); # endif EAPI Imlib_Image imlib_load_image(const char *file); EAPI Imlib_Image imlib_load_image_immediately(const char *file); EAPI Imlib_Image imlib_load_image_without_cache(const char *file); EAPI Imlib_Image imlib_load_image_immediately_without_cache(const char *file); EAPI Imlib_Image imlib_load_image_with_error_return(const char *file, Imlib_Load_Error * error_return); EAPI void imlib_free_image(void); EAPI void imlib_free_image_and_decache(void); /* query/modify image parameters */ EAPI int imlib_image_get_width(void); EAPI int imlib_image_get_height(void); EAPI const char *imlib_image_get_filename(void); EAPI DATA32 *imlib_image_get_data(void); EAPI DATA32 *imlib_image_get_data_for_reading_only(void); EAPI void imlib_image_put_back_data(DATA32 * data); EAPI char imlib_image_has_alpha(void); EAPI void imlib_image_set_changes_on_disk(void); EAPI void imlib_image_get_border(Imlib_Border * border); EAPI void imlib_image_set_border(Imlib_Border * border); EAPI void imlib_image_set_format(const char *format); EAPI void imlib_image_set_irrelevant_format(char irrelevant); EAPI void imlib_image_set_irrelevant_border(char irrelevant); EAPI void imlib_image_set_irrelevant_alpha(char irrelevant); EAPI char *imlib_image_format(void); EAPI void imlib_image_set_has_alpha(char has_alpha); EAPI void imlib_image_query_pixel(int x, int y, Imlib_Color * color_return); EAPI void imlib_image_query_pixel_hsva(int x, int y, float *hue, float *saturation, float *value, int *alpha); EAPI void imlib_image_query_pixel_hlsa(int x, int y, float *hue, float *lightness, float *saturation, int *alpha); EAPI void imlib_image_query_pixel_cmya(int x, int y, int *cyan, int *magenta, int *yellow, int *alpha); /* rendering functions */ # ifndef X_DISPLAY_MISSING EAPI void imlib_render_pixmaps_for_whole_image(Pixmap * pixmap_return, Pixmap * mask_return); EAPI void imlib_render_pixmaps_for_whole_image_at_size(Pixmap * pixmap_return, Pixmap * mask_return, int width, int height); EAPI void imlib_free_pixmap_and_mask(Pixmap pixmap); EAPI void imlib_render_image_on_drawable(int x, int y); EAPI void imlib_render_image_on_drawable_at_size(int x, int y, int width, int height); EAPI void imlib_render_image_part_on_drawable_at_size(int source_x, int source_y, int source_width, int source_height, int x, int y, int width, int height); EAPI DATA32 imlib_render_get_pixel_color(void); # endif EAPI void imlib_blend_image_onto_image(Imlib_Image source_image, char merge_alpha, int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int destination_width, int destination_height); /* creation functions */ EAPI Imlib_Image imlib_create_image(int width, int height); EAPI Imlib_Image imlib_create_image_using_data(int width, int height, DATA32 * data); EAPI Imlib_Image imlib_create_image_using_copied_data(int width, int height, DATA32 * data); # ifndef X_DISPLAY_MISSING EAPI Imlib_Image imlib_create_image_from_drawable(Pixmap mask, int x, int y, int width, int height, char need_to_grab_x); EAPI Imlib_Image imlib_create_image_from_ximage(XImage *image, XImage *mask, int x, int y, int width, int height, char need_to_grab_x); EAPI Imlib_Image imlib_create_scaled_image_from_drawable(Pixmap mask, int source_x, int source_y, int source_width, int source_height, int destination_width, int destination_height, char need_to_grab_x, char get_mask_from_shape); EAPI char imlib_copy_drawable_to_image(Pixmap mask, int x, int y, int width, int height, int destination_x, int destination_y, char need_to_grab_x); # endif EAPI Imlib_Image imlib_clone_image(void); EAPI Imlib_Image imlib_create_cropped_image(int x, int y, int width, int height); EAPI Imlib_Image imlib_create_cropped_scaled_image(int source_x, int source_y, int source_width, int source_height, int destination_width, int destination_height); /* imlib updates. lists of rectangles for storing required update draws */ EAPI Imlib_Updates imlib_updates_clone(Imlib_Updates updates); EAPI Imlib_Updates imlib_update_append_rect(Imlib_Updates updates, int x, int y, int w, int h); EAPI Imlib_Updates imlib_updates_merge(Imlib_Updates updates, int w, int h); EAPI Imlib_Updates imlib_updates_merge_for_rendering(Imlib_Updates updates, int w, int h); EAPI void imlib_updates_free(Imlib_Updates updates); EAPI Imlib_Updates imlib_updates_get_next(Imlib_Updates updates); EAPI void imlib_updates_get_coordinates(Imlib_Updates updates, int *x_return, int *y_return, int *width_return, int *height_return); EAPI void imlib_updates_set_coordinates(Imlib_Updates updates, int x, int y, int width, int height); EAPI void imlib_render_image_updates_on_drawable(Imlib_Updates updates, int x, int y); EAPI Imlib_Updates imlib_updates_init(void); EAPI Imlib_Updates imlib_updates_append_updates(Imlib_Updates updates, Imlib_Updates appended_updates); /* image modification */ EAPI void imlib_image_flip_horizontal(void); EAPI void imlib_image_flip_vertical(void); EAPI void imlib_image_flip_diagonal(void); EAPI void imlib_image_orientate(int orientation); EAPI void imlib_image_blur(int radius); EAPI void imlib_image_sharpen(int radius); EAPI void imlib_image_tile_horizontal(void); EAPI void imlib_image_tile_vertical(void); EAPI void imlib_image_tile(void); /* fonts and text */ EAPI Imlib_Font imlib_load_font(const char *font_name); EAPI void imlib_free_font(void); /* NB! The four functions below are deprecated. */ EAPI int imlib_insert_font_into_fallback_chain(Imlib_Font font, Imlib_Font fallback_font); EAPI void imlib_remove_font_from_fallback_chain(Imlib_Font fallback_font); EAPI Imlib_Font imlib_get_prev_font_in_fallback_chain(Imlib_Font fn); EAPI Imlib_Font imlib_get_next_font_in_fallback_chain(Imlib_Font fn); /* NB! The four functions above are deprecated. */ EAPI void imlib_text_draw(int x, int y, const char *text); EAPI void imlib_text_draw_with_return_metrics(int x, int y, const char *text, int *width_return, int *height_return, int *horizontal_advance_return, int *vertical_advance_return); EAPI void imlib_get_text_size(const char *text, int *width_return, int *height_return); EAPI void imlib_get_text_advance(const char *text, int *horizontal_advance_return, int *vertical_advance_return); EAPI int imlib_get_text_inset(const char *text); EAPI void imlib_add_path_to_font_path(const char *path); EAPI void imlib_remove_path_from_font_path(const char *path); EAPI char **imlib_list_font_path(int *number_return); EAPI int imlib_text_get_index_and_location(const char *text, int x, int y, int *char_x_return, int *char_y_return, int *char_width_return, int *char_height_return); EAPI void imlib_text_get_location_at_index(const char *text, int index, int *char_x_return, int *char_y_return, int *char_width_return, int *char_height_return); EAPI char **imlib_list_fonts(int *number_return); EAPI void imlib_free_font_list(char **font_list, int number); EAPI int imlib_get_font_cache_size(void); EAPI void imlib_set_font_cache_size(int bytes); EAPI void imlib_flush_font_cache(void); EAPI int imlib_get_font_ascent(void); EAPI int imlib_get_font_descent(void); EAPI int imlib_get_maximum_font_ascent(void); EAPI int imlib_get_maximum_font_descent(void); /* color modifiers */ EAPI Imlib_Color_Modifier imlib_create_color_modifier(void); EAPI void imlib_free_color_modifier(void); EAPI void imlib_modify_color_modifier_gamma(double gamma_value); EAPI void imlib_modify_color_modifier_brightness(double brightness_value); EAPI void imlib_modify_color_modifier_contrast(double contrast_value); EAPI void imlib_set_color_modifier_tables(DATA8 * red_table, DATA8 * green_table, DATA8 * blue_table, DATA8 * alpha_table); EAPI void imlib_get_color_modifier_tables(DATA8 * red_table, DATA8 * green_table, DATA8 * blue_table, DATA8 * alpha_table); EAPI void imlib_reset_color_modifier(void); EAPI void imlib_apply_color_modifier(void); EAPI void imlib_apply_color_modifier_to_rectangle(int x, int y, int width, int height); /* drawing on images */ EAPI Imlib_Updates imlib_image_draw_pixel(int x, int y, char make_updates); EAPI Imlib_Updates imlib_image_draw_line(int x1, int y1, int x2, int y2, char make_updates); EAPI void imlib_image_draw_rectangle(int x, int y, int width, int height); EAPI void imlib_image_fill_rectangle(int x, int y, int width, int height); EAPI void imlib_image_copy_alpha_to_image(Imlib_Image image_source, int x, int y); EAPI void imlib_image_copy_alpha_rectangle_to_image(Imlib_Image image_source, int x, int y, int width, int height, int destination_x, int destination_y); EAPI void imlib_image_scroll_rect(int x, int y, int width, int height, int delta_x, int delta_y); EAPI void imlib_image_copy_rect(int x, int y, int width, int height, int new_x, int new_y); /* polygons */ EAPI ImlibPolygon imlib_polygon_new(void); EAPI void imlib_polygon_free(ImlibPolygon poly); EAPI void imlib_polygon_add_point(ImlibPolygon poly, int x, int y); EAPI void imlib_image_draw_polygon(ImlibPolygon poly, unsigned char closed); EAPI void imlib_image_fill_polygon(ImlibPolygon poly); EAPI void imlib_polygon_get_bounds(ImlibPolygon poly, int *px1, int *py1, int *px2, int *py2); EAPI unsigned char imlib_polygon_contains_point(ImlibPolygon poly, int x, int y); /* ellipses */ EAPI void imlib_image_draw_ellipse(int xc, int yc, int a, int b); EAPI void imlib_image_fill_ellipse(int xc, int yc, int a, int b); /* color ranges */ EAPI Imlib_Color_Range imlib_create_color_range(void); EAPI void imlib_free_color_range(void); EAPI void imlib_add_color_to_color_range(int distance_away); EAPI void imlib_image_fill_color_range_rectangle(int x, int y, int width, int height, double angle); EAPI void imlib_image_fill_hsva_color_range_rectangle(int x, int y, int width, int height, double angle); /* image data */ EAPI void imlib_image_attach_data_value(const char *key, void *data, int value, Imlib_Data_Destructor_Function destructor_function); EAPI void *imlib_image_get_attached_data(const char *key); EAPI int imlib_image_get_attached_value(const char *key); EAPI void imlib_image_remove_attached_data_value(const char *key); EAPI void imlib_image_remove_and_free_attached_data_value(const char *key); /* saving */ EAPI void imlib_save_image(const char *filename); EAPI void imlib_save_image_with_error_return(const char *filename, Imlib_Load_Error * error_return); /* FIXME: */ /* need to add arbitrary rotation routines */ /* rotation/skewing */ EAPI Imlib_Image imlib_create_rotated_image(double angle); /* rotation from buffer to context (without copying)*/ EAPI void imlib_rotate_image_from_buffer(double angle, Imlib_Image source_image); EAPI void imlib_blend_image_onto_image_at_angle(Imlib_Image source_image, char merge_alpha, int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int angle_x, int angle_y); EAPI void imlib_blend_image_onto_image_skewed(Imlib_Image source_image, char merge_alpha, int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int h_angle_x, int h_angle_y, int v_angle_x, int v_angle_y); # ifndef X_DISPLAY_MISSING EAPI void imlib_render_image_on_drawable_skewed(int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int h_angle_x, int h_angle_y, int v_angle_x, int v_angle_y); EAPI void imlib_render_image_on_drawable_at_angle(int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int angle_x, int angle_y); # endif /* image filters */ EAPI void imlib_image_filter(void); EAPI Imlib_Filter imlib_create_filter(int initsize); EAPI void imlib_context_set_filter(Imlib_Filter filter); EAPI Imlib_Filter imlib_context_get_filter(void); EAPI void imlib_free_filter(void); EAPI void imlib_filter_set(int xoff, int yoff, int a, int r, int g, int b); EAPI void imlib_filter_set_alpha(int xoff, int yoff, int a, int r, int g, int b); EAPI void imlib_filter_set_red(int xoff, int yoff, int a, int r, int g, int b); EAPI void imlib_filter_set_green(int xoff, int yoff, int a, int r, int g, int b); EAPI void imlib_filter_set_blue(int xoff, int yoff, int a, int r, int g, int b); EAPI void imlib_filter_constants(int a, int r, int g, int b); EAPI void imlib_filter_divisors(int a, int r, int g, int b); EAPI void imlib_apply_filter(char *script, ...); EAPI void imlib_image_clear(void); EAPI void imlib_image_clear_color(int r, int g, int b, int a); # ifdef __cplusplus } # endif #endif imlib2-1.4.6/src/lib/color.h0000664000175000017500000000265712255265113012463 00000000000000#ifndef __COLOR #define __COLOR 1 #ifdef BUILD_X11 extern DATA16 _max_colors; __hidden int __imlib_XActualDepth(Display * d, Visual * v); __hidden Visual *__imlib_BestVisual(Display * d, int screen, int *depth_return); __hidden DATA8 *__imlib_AllocColorTable(Display * d, Colormap cmap, DATA8 * type_return, Visual * v); __hidden DATA8 *__imlib_AllocColors332(Display * d, Colormap cmap, Visual * v); __hidden DATA8 *__imlib_AllocColors666(Display * d, Colormap cmap, Visual * v); __hidden DATA8 *__imlib_AllocColors232(Display * d, Colormap cmap, Visual * v); __hidden DATA8 *__imlib_AllocColors222(Display * d, Colormap cmap, Visual * v); __hidden DATA8 *__imlib_AllocColors221(Display * d, Colormap cmap, Visual * v); __hidden DATA8 *__imlib_AllocColors121(Display * d, Colormap cmap, Visual * v); __hidden DATA8 *__imlib_AllocColors111(Display * d, Colormap cmap, Visual * v); __hidden DATA8 *__imlib_AllocColors1(Display * d, Colormap cmap, Visual * v); #endif #endif imlib2-1.4.6/src/lib/ximage.c0000664000175000017500000002433212255265152012607 00000000000000#include "common.h" #ifdef BUILD_X11 #include #include #include #include #include #include "ximage.h" /* global flags */ signed char x_does_shm = -1; /* static private variables */ static int list_num = 0; static XImage **list_xim = NULL; static XShmSegmentInfo **list_si = NULL; static Display **list_d = NULL; static char *list_used = NULL; static int list_mem_use = 0; static int list_max_mem = 1024 * 1024 * 1024; static int list_max_count = 0; /* temporary X error catcher we use later */ static char _x_err = 0; /* the function we use for catching the error */ static int TmpXError(Display * d, XErrorEvent * ev) { _x_err = 1; return 0; } void __imlib_ShmCheck(Display * d) { /* if its there set x_does_shm flag */ if (XShmQueryExtension(d)) x_does_shm = 2; /* 2: __imlib_ShmGetXImage tests first XShmAttach */ /* clear the flag - no shm at all */ else x_does_shm = 0; } XImage * __imlib_ShmGetXImage(Display * d, Visual * v, Drawable draw, int depth, int x, int y, int w, int h, XShmSegmentInfo * si) { XImage *xim; /* try create an shm image */ xim = XShmCreateImage(d, v, depth, ZPixmap, NULL, si, w, h); if (!xim) return NULL; /* get an shm id of this image */ si->shmid = shmget(IPC_PRIVATE, xim->bytes_per_line * xim->height, IPC_CREAT | 0666); /* if the get succeeds */ if (si->shmid != -1) { /* set the params for the shm segment */ si->readOnly = False; si->shmaddr = xim->data = shmat(si->shmid, 0, 0); /* get the shm addr for this data chunk */ if (xim->data != (char *)-1) { XErrorHandler ph = NULL; if (x_does_shm == 2) { /* setup a temporary error handler */ _x_err = 0; XSync(d, False); ph = XSetErrorHandler(TmpXError); } /* ask X to attach to the shared mem segment */ XShmAttach(d, si); if (draw != None) XShmGetImage(d, draw, xim, x, y, 0xffffffff); if (x_does_shm == 2) { /* wait for X to reply and do this */ XSync(d, False); /* reset the error handler */ XSetErrorHandler(ph); x_does_shm = 1; } /* if we attached without an error we're set */ if (_x_err == 0) return xim; /* attach by X failed... must be remote client */ /* flag shm forever to not work - remote */ x_does_shm = 0; /* detach */ shmdt(si->shmaddr); } /* get failed - out of shm id's or shm segment too big ? */ /* remove the shm id we created */ shmctl(si->shmid, IPC_RMID, 0); } /* couldnt create SHM image ? */ /* destroy previous image */ XDestroyImage(xim); return NULL; } void __imlib_ShmDetach(Display * d, XShmSegmentInfo * si) { XSync(d, False); XShmDetach(d, si); shmdt(si->shmaddr); shmctl(si->shmid, IPC_RMID, 0); } /* "safe" realloc allowing handling of out-of-memory situations */ static void * _safe_realloc(void *ptr, size_t size, int *err) { void *ptr_new; ptr_new = realloc(ptr, size); if (!ptr_new) { *err = 1; return ptr; } return ptr_new; } void __imlib_SetMaxXImageCount(Display * d, int num) { list_max_count = num; __imlib_FlushXImage(d); } int __imlib_GetMaxXImageCount(Display * d) { return list_max_count; } void __imlib_SetMaxXImageTotalSize(Display * d, int num) { list_max_mem = num; __imlib_FlushXImage(d); } int __imlib_GetMaxXImageTotalSize(Display * d) { return list_max_mem; } void __imlib_FlushXImage(Display * d) { int i; XImage *xim; char did_free = 1; while (((list_mem_use > list_max_mem) || (list_num > list_max_count)) && (did_free)) { did_free = 0; for (i = 0; i < list_num; i++) { if (list_used[i] == 0) { int j; xim = list_xim[i]; list_mem_use -= xim->bytes_per_line * xim->height; if (list_si[i]) { __imlib_ShmDetach(d, list_si[i]); free(list_si[i]); } XDestroyImage(xim); list_num--; for (j = i; j < list_num; j++) { list_xim[j] = list_xim[j + 1]; list_si[j] = list_si[j + 1]; list_used[j] = list_used[j + 1]; list_d[j] = list_d[j + 1]; } if (list_num == 0) { if (list_xim) free(list_xim); if (list_si) free(list_si); if (list_used) free(list_used); if (list_d) free(list_d); list_xim = NULL; list_si = NULL; list_used = NULL; list_d = NULL; } else { list_xim = realloc(list_xim, sizeof(XImage *) * list_num); list_si = realloc(list_si, sizeof(XShmSegmentInfo *) * list_num); list_used = realloc(list_used, sizeof(char) * list_num); list_d = realloc(list_d, sizeof(Display *) * list_num); } did_free = 1; } } } } /* free (consume == opposite of produce) the XImage (mark as unused) */ void __imlib_ConsumeXImage(Display * d, XImage * xim) { int i; /* march through the XImage list */ for (i = 0; i < list_num; i++) { /* find a match */ if (list_xim[i] == xim) { /* we have a match = mark as unused */ list_used[i] = 0; /* flush the XImage list to get rud of stuff we dont want */ __imlib_FlushXImage(d); /* return */ return; } } } /* create a new XImage or find it on our list of currently available ones so */ /* we dont need to create a new one */ XImage * __imlib_ProduceXImage(Display * d, Visual * v, int depth, int w, int h, char *shared) { XImage *xim; int i, err; /* if we havent check the shm extension before - see if its there */ if (x_does_shm < 0) __imlib_ShmCheck(d); /* find a cached XImage (to avoid server to & fro) that is big enough */ /* for our needs and the right depth */ *shared = 0; /* go thru the current image list */ for (i = 0; i < list_num; i++) { int depth_ok = 0; /* if the image has the same depth, width and height - recycle it */ /* as long as its not used */ if (list_xim[i]->depth == depth) depth_ok = 1; if (depth_ok && (list_xim[i]->width >= w) && (list_xim[i]->height >= h) && /* (list_d[i] == d) && */ (!list_used[i])) { /* mark it as used */ list_used[i] = 1; /* if its shared set shared flag */ if (list_si[i]) *shared = 1; /* return it */ return list_xim[i]; } } /* can't find a usable XImage on the cache - create one */ /* add the new XImage to the XImage cache */ list_num++; err = 0; list_xim = _safe_realloc(list_xim, sizeof(XImage *) * list_num, &err); list_si = _safe_realloc(list_si, sizeof(XShmSegmentInfo *) * list_num, &err); list_used = _safe_realloc(list_used, sizeof(char) * list_num, &err); list_d = _safe_realloc(list_d, sizeof(Display *) * list_num, &err); if (err) { /* failed to allocate memory */ list_num--; return NULL; } list_si[list_num - 1] = malloc(sizeof(XShmSegmentInfo)); if (!list_si[list_num - 1]) { /* failed to allocate memory */ list_num--; return NULL; } /* work on making a shared image */ xim = NULL; /* if the server does shm */ if (x_does_shm) { xim = __imlib_ShmGetXImage(d, v, None, depth, 0, 0, w, h, list_si[list_num - 1]); } /* ok if xim == NULL it all failed - fall back to XImages */ if (xim) { *shared = 1; } else { /* get rid of out shm info struct */ free(list_si[list_num - 1]); /* flag it as NULL ot indicate a normal XImage */ list_si[list_num - 1] = NULL; /* create a normal ximage */ xim = XCreateImage(d, v, depth, ZPixmap, 0, NULL, w, h, 32, 0); /* allocate data for it */ if (xim) xim->data = malloc(xim->bytes_per_line * xim->height); if (!xim || !xim->data) { /* failed to create XImage or allocate data memory */ if (xim) XDestroyImage(xim); list_num--; return NULL; } } /* add xim to our list */ list_xim[list_num - 1] = xim; /* incriment our memory count */ list_mem_use += xim->bytes_per_line * xim->height; /* mark image as used */ list_used[list_num - 1] = 1; /* remember what display that XImage was for */ list_d[list_num - 1] = d; /* flush unused images from the image list */ __imlib_FlushXImage(d); /* set the byte order of the XImage to the byte_order of the Xclient */ /* (rather than the Xserver) */ #ifdef WORDS_BIGENDIAN xim->byte_order = MSBFirst; #else xim->byte_order = LSBFirst; #endif /* return out image */ return xim; } #endif /* BUILD_X11 */ imlib2-1.4.6/src/lib/file.h0000664000175000017500000000167012255265123012257 00000000000000#ifndef __FILE #define __FILE 1 __hidden char *__imlib_FileKey(const char *file); __hidden char *__imlib_FileRealFile(const char *file); __hidden char *__imlib_FileExtension(const char *file); __hidden int __imlib_FileExists(const char *s); __hidden int __imlib_FileIsFile(const char *s); __hidden int __imlib_FileIsDir(const char *s); __hidden char **__imlib_FileDir(char *dir, int *num); __hidden void __imlib_FileFreeDirList(char **l, int num); __hidden void __imlib_FileDel(char *s); __hidden time_t __imlib_FileModDate(const char *s); __hidden char *__imlib_FileHomeDir(int uid); __hidden int __imlib_FilePermissions(const char *s); __hidden int __imlib_FileCanRead(const char *s); __hidden int __imlib_IsRealFile(const char *s); #endif imlib2-1.4.6/src/lib/loaderpath.h0000664000175000017500000000010712137523370013455 00000000000000#include "config.h" #define SYS_LOADERS_PATH PACKAGE_LIB_DIR"/imlib2" imlib2-1.4.6/src/lib/common.h0000664000175000017500000000216112255265065012631 00000000000000#ifndef __COMMON #define __COMMON 1 #include "config.h" #include #include #include #include #include #include #ifdef WITH_DMALLOC # include #endif #ifdef __EMX__ #include #endif #if defined(__GNUC__) && (__GNUC__ >= 4) #define __hidden __attribute__((visibility("hidden"))) #else #define __hidden #endif #define DATABIG unsigned long long #define DATA64 unsigned long long #define DATA32 unsigned int #define DATA16 unsigned short #define DATA8 unsigned char #ifdef DO_MMX_ASM __hidden int __imlib_get_cpuid(void); #define CPUID_MMX (1 << 23) #define CPUID_XMM (1 << 25) #endif #define CLIP(x, y, w, h, xx, yy, ww, hh) \ if (x < (xx)) {w += (x - (xx)); x = (xx);} \ if (y < (yy)) {h += (y - (yy)); y = (yy);} \ if ((x + w) > ((xx) + (ww))) {w = (ww) - (x - xx);} \ if ((y + h) > ((yy) + (hh))) {h = (hh) - (y - yy);} #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define round(x) ((x)>=0?(int)((x)+0.5):(int)((x)-0.5)) #ifdef __EMX__ extern char *__XOS2RedirRoot(const char *); #endif #endif imlib2-1.4.6/src/lib/rotate.h0000664000175000017500000000221112255265030012623 00000000000000#ifndef __ROTATE #define __ROTATE 1 #include "image.h" #include "colormod.h" #include "blend.h" /*\ Calc precision \*/ #define _ROTATE_PREC 12 #define _ROTATE_PREC_MAX (1 << _ROTATE_PREC) #define _ROTATE_PREC_BITS (_ROTATE_PREC_MAX - 1) __hidden void __imlib_RotateSample(DATA32 *src, DATA32 *dest, int sow, int sw, int sh, int dow, int dw, int dh, int x, int y, int dxh, int dyh, int dxv, int dyv); __hidden void __imlib_RotateAA(DATA32 *src, DATA32 *dest, int sow, int sw, int sh, int dow, int dw, int dh, int x, int y, int dx, int dy, int dxv, int dyv); __hidden void __imlib_BlendImageToImageSkewed(ImlibImage *im_src, ImlibImage *im_dst, char aa, char blend, char merge_alpha, int ssx, int ssy, int ssw, int ssh, int ddx, int ddy, int hsx, int hsy, int vsx, int vsy, ImlibColorModifier *cm, ImlibOp op, int clx, int cly, int clw, int clh); #ifdef DO_MMX_ASM __hidden void __imlib_mmx_RotateAA(DATA32 *src, DATA32 *dest, int sow, int sw, int sh, int dow, int dw, int dh, int x, int y, int dx, int dy, int dxv, int dyv); #endif #endif imlib2-1.4.6/src/lib/polygon.c0000664000175000017500000015764012255265152013035 00000000000000#include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include "span.h" #include "updates.h" #include "rgbadraw.h" ImlibPoly __imlib_polygon_new() { ImlibPoly poly; poly = malloc(sizeof(_ImlibPoly)); if (!poly) return NULL; memset(poly, 0, sizeof(_ImlibPoly)); return poly; } void __imlib_polygon_add_point(ImlibPoly poly, int x, int y) { if (!poly->points) { poly->points = (ImlibPoint *) malloc(sizeof(ImlibPoint)); if (!poly->points) return; poly->pointcount++; poly->lx = poly->rx = x; poly->ty = poly->by = y; } else { poly->pointcount++; poly->points = (ImlibPoint *) realloc(poly->points, (poly->pointcount * sizeof(ImlibPoint))); if (!poly->points) { poly->pointcount = 0; return; } if (x < poly->lx) poly->lx = x; if (poly->rx < x) poly->rx = x; if (y < poly->ty) poly->ty = y; if (poly->by < y) poly->by = y; } poly->points[poly->pointcount - 1].x = x; poly->points[poly->pointcount - 1].y = y; } void __imlib_polygon_free(ImlibPoly poly) { if (poly->points) free(poly->points); free(poly); } #define TRUE 1 #define FALSE 0 /* Check if p lies on segment [ s1, s2 ] given that it lies on the line defined by s1 and s2. */ #define __imlib_point_inside_segment(p_x, p_y, s1_x, s1_y, s2_x,s2_y) \ (s1_y != s2_y) ? (p_y <= MAX(s1_y, s2_y) && p_y >= MIN(s1_y, s2_y)) : (p_x <= MAX(s1_x, s2_x) && p_x >= MIN(s1_x, s2_x)) #define __imlib_point_on_segment(p_x, p_y, s1_x, s1_y, s2_x, s2_y) \ __imlib_segments_intersect(p_x, p_y, p_x, p_y, s1_x, s1_y, s2_x, s2_y) void __imlib_polygon_get_bounds(ImlibPoly poly, int *px1, int *py1, int *px2, int *py2) { if (!poly || !poly->points || (poly->pointcount < 1)) return; if (px1) *px1 = poly->lx; if (py1) *py1 = poly->ty; if (px2) *px2 = poly->rx; if (py2) *py2 = poly->by; } static double __imlib_point_delta_from_line(int p_x, int p_y, int s1_x, int s1_y, int s2_x, int s2_y) { if (s2_x - s1_x == 0.0) return p_x - s1_x; else { double m = (double)(s2_y - s1_y) / (double)(s2_x - s1_x); return (p_y - s1_y - (double)(p_x - s1_x) * m); } } static unsigned char __imlib_segments_intersect(int r1_x, int r1_y, int r2_x, int r2_y, int s1_x, int s1_y, int s2_x, int s2_y) { double testS1R = __imlib_point_delta_from_line(s1_x, s1_y, r1_x, r1_y, r2_x, r2_y); double testS2R = __imlib_point_delta_from_line(s2_x, s2_y, r1_x, r1_y, r2_x, r2_y); double testR1S = __imlib_point_delta_from_line(r1_x, r1_y, s1_x, s1_y, s2_x, s2_y); double testR2S = __imlib_point_delta_from_line(r2_x, r2_y, s1_x, s1_y, s2_x, s2_y); /* check if segments are collinear */ if (testS1R == 0.0 && testS2R == 0.0) { if (__imlib_point_inside_segment(s1_x, s1_y, r1_x, r1_y, r2_x, r2_y) || __imlib_point_inside_segment(s2_x, s2_y, r1_x, r1_y, r2_x, r2_y) || __imlib_point_inside_segment(r1_x, r1_y, s1_x, s1_y, s2_x, s2_y) || __imlib_point_inside_segment(r2_x, r2_y, s1_x, s1_y, s2_x, s2_y)) return TRUE; else return FALSE; } if (testS1R * testS2R <= 0.0 && testR1S * testR2S <= 0.0) return TRUE; else return FALSE; } unsigned char __imlib_polygon_contains_point(ImlibPoly poly, int x, int y) { int count = 0; int start = 0; int ysave = 0; /* initial value arbitrary */ int cx, nx, out_x, out_y, i, n; int curr_x, curr_y, next_x, next_y; /* find a vertex of poly that does not lie on the test line */ while (start < poly->pointcount && poly->points[start].y == y) start++; /* if one doesn't exist we will use point on segment test * and can start with vertex 0 anyway */ cx = start % poly->pointcount; out_x = poly->points[0].x; out_y = y; for (i = 1; i < poly->pointcount; i++) { out_x = MAX(out_x, poly->points[i].x); } out_x++; /* out now guaranteed to be outside poly */ for (n = 0; n < poly->pointcount; n++) { nx = (cx + 1) % poly->pointcount; curr_x = poly->points[cx].x; curr_y = poly->points[cx].y; next_x = poly->points[nx].x; next_y = poly->points[nx].y; if (__imlib_point_on_segment(x, y, curr_x, curr_y, next_x, next_y)) return TRUE; /* ignore horizontal segments from this point on */ if (poly->points[cx].y != poly->points[nx].y) { if (__imlib_segments_intersect (curr_x, curr_y, next_x, next_y, x, y, out_x, out_y)) { count++; if (__imlib_point_on_segment (next_x, next_y, x, y, out_x, out_y)) { /* current seg intersects test seg @ 2nd vtx * reset ysave */ ysave = curr_y; } if (__imlib_point_on_segment (curr_x, curr_y, x, y, out_x, out_y) && ((ysave < y) != (next_y < y))) { /* current seg xsects test seg @ 1st vtx and * ysave on opposite side of test line from * curr seg 2nd vtx; * decrement hits (2-1) for odd parity */ count--; } } } cx = nx; } return (count % 2 == 1); } /** Polygon Drawing and Filling **/ #define STEEP_EDGE 0 #define SHALLOW_EDGE 1 #define HORZ_EDGE 2 typedef struct _PolyEdge PolyEdge; typedef struct _IndexedValue IndexedValue; struct _PolyEdge { int type; int xx; int dxx, dyy; ImlibPoint *v0, *v1; int index; }; struct _IndexedValue { int val; int index; }; static int poly_value_sorter(const void *a, const void *b) { IndexedValue *p, *q; p = (IndexedValue *) a; q = (IndexedValue *) b; if (p->val <= q->val) return -1; return 1; } static int poly_edge_sorter(const void *a, const void *b) { PolyEdge *p, *q; p = (PolyEdge *) a; q = (PolyEdge *) b; if (p->xx < q->xx) return -1; if (p->xx > q->xx) return 1; if (p->dxx <= q->dxx) return -1; return 1; } /* general macros */ #define DEL_EDGE(j) \ do { \ int m; \ for (m = 0; (m < nactive_edges) && (edge[m].index != (j)); m++); \ \ if (m < nactive_edges) \ { \ if (edge[m].type == HORZ_EDGE) nactive_horz_edges--; \ nactive_edges--; \ memmove(edge + m, edge + m + 1, \ (nactive_edges - m) * sizeof(PolyEdge)); \ } \ } while (0) #define DEL_HORZ_EDGES() \ do { \ int m = 0; \ \ while (m < nactive_edges) \ { \ if (edge[m].type == HORZ_EDGE) \ { \ nactive_edges--; \ memmove(edge + m, edge + m + 1, \ (nactive_edges - m) * sizeof(PolyEdge)); \ m--; \ } \ m++; \ } \ nactive_horz_edges = 0; \ } while (0) #define ADD_EDGE(i) \ do { \ int m; \ \ for (m = 0; (m < nactive_edges) && (edge[m].index != i); m++); \ \ if ((m == nactive_edges) && (i < nvertices) && \ (nactive_edges < nvertices)) \ { \ ImlibPoint *v0, *v1, *w; \ PolyEdge *ne; \ int dx, dy; \ \ if (i < (nvertices - 1)) m = i + 1; \ else m = 0; \ \ v0 = (poly->points) + i; \ v1 = (poly->points) + m; \ if ((v1->y) < (v0->y)) \ { \ w = v0; \ v0 = v1; \ v1 = w; \ } \ \ dx = (v1->x) - (v0->x); \ dy = (v1->y) - (v0->y); \ ne = edge + nactive_edges; \ ne->index = i; \ if (dy == 0) \ { \ ne->type = HORZ_EDGE; \ ne->dxx = 0; \ if ((v1->x) < (v0->x)) \ { \ w = v0; \ v0 = v1; \ v1 = w; \ } \ ne->xx = (v0->x) << 16; \ nactive_horz_edges++; \ } \ else \ { \ ne->type = STEEP_EDGE; \ ne->dxx = ((dx << 16) / dy); \ ne->xx = ((ne->dxx) * (y - (v0->y))) + ((v0->x) << 16); \ if ((dy < dx) || (dy < (-dx))) \ { \ ne->type = SHALLOW_EDGE; \ ne->dyy = ((dy << 16) / dx); \ } \ } \ ne->v0 = v0; \ ne->v1 = v1; \ nactive_edges++; \ } \ } while (0) #define GET_EDGE_RANGE(e, elx, erx) \ do { \ switch(e->type) \ { \ case SHALLOW_EDGE: \ elx = (e->xx - (2 * e->dxx)) >> 16; \ erx = (e->xx + (2 * e->dxx)) >> 16; \ if (e->dxx < 0) \ { lx = elx; elx = erx; erx = lx; } \ break; \ default: \ case STEEP_EDGE: \ lx = (e->xx >> 16); \ elx = erx = lx; \ break; \ case HORZ_EDGE: \ elx = e->v0->x; \ erx = e->v1->x; \ break; \ } \ } while (0) #define CLIP_SPAN(lx, rx, clx, clrx) \ do { \ if (lx < (clx)) lx = (clx); \ if (rx > (clrx)) rx = (clrx); \ } while (0) #define BLEND_ALPHA(dst, a, tmp) \ do { \ if (*dst) \ { \ tmp = ((a) * (255 - (*(dst)))) + 0x80; \ *(dst) += ((tmp + (tmp >> 8)) >> 8); \ } \ else \ *(dst) = (a); \ } while (0) /* initializing macro used in drawing/filling functions */ #define INIT_POLY() \ do { \ sfunc = __imlib_GetShapedSpanDrawFunction(op, dst_alpha, blend); \ if (!sfunc) return; \ \ nvertices = poly->pointcount; \ if (nvertices < 1) return; \ \ clrx = clx + clw - 1; \ clby = cly + clh - 1; \ \ CLIP_SPAN(clx, clrx, poly->lx, a_a + poly->rx); \ if (clrx < clx) return; \ \ CLIP_SPAN(cly, clby, poly->ty, poly->by); \ if (clby < cly) return; \ \ clw = clrx - clx + 1; \ clh = clby - cly + 1; \ \ edge = (PolyEdge *)malloc(nvertices * sizeof(PolyEdge)); \ if (!edge) return; \ \ ysort = (IndexedValue *)malloc(nvertices * sizeof(IndexedValue)); \ if (!ysort) { free(edge); return; } \ \ s0 = (DATA8 *)malloc(clw * sizeof(DATA8)); \ if (!s0) { free(edge); free(ysort); return; } \ \ s1 = (DATA8 *)malloc(clw * sizeof(DATA8)); \ if (!s1) { free(edge); free(ysort); free(s0); return; } \ \ memset(s0,0,clw); \ \ k = 0; \ while (k < nvertices) \ { \ ysort[k].val = poly->points[k].y; \ ysort[k].index = k; \ k++; \ } \ \ qsort(ysort, nvertices, sizeof(IndexedValue), poly_value_sorter); \ \ s0 -= clx; \ s1 -= clx; \ \ x0 = clx; \ x1 = clrx; \ \ nx0 = clrx + 1; \ nx1 = clx - 1; \ \ if (cly > poly->ty) \ ty = cly - 1; \ else \ ty = cly; \ by = clby; \ \ p = dst + (dstw * ty); \ k = 0; \ nactive_edges = 0; \ nactive_horz_edges = 0; \ y = ty; \ } while (0) #define DE_INIT_POLY() \ do { \ free(edge); \ free(ysort); \ s0 += clx; \ free(s0); \ s1 += clx; \ free(s1); \ } while (0) /** Polygon Drawing **/ /* aliased drawing */ /* draws the poly-line defined by the sequence of vertices */ static void __imlib_Polygon_DrawToData(ImlibPoly poly, char close, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibShapedSpanDrawFunction sfunc; IndexedValue *ysort; PolyEdge *edge; int k, a_a = 0; int nactive_edges, nactive_horz_edges, nvertices; int clrx, clby, ty, by, y; int x0, x1, nx0, nx1; DATA32 *p; DATA8 *s0, *s1, *ps; INIT_POLY(); while (y <= by) { int j; while ((k < nvertices) && (poly->points[ysort[k].index].y <= y)) { int i = ysort[k].index; j = i - 1; if (close && (i == 0)) j = nvertices - 1; if (j >= 0) { if (poly->points[j].y < y) DEL_EDGE(j); else ADD_EDGE(j); } j = i + 1; if (close && (i == (nvertices - 1))) j = 0; if (j < nvertices) { if (poly->points[j].y < y) DEL_EDGE(i); else ADD_EDGE(i); } k++; } /* not really needed, but... */ qsort(edge, nactive_edges, sizeof(PolyEdge), poly_edge_sorter); /* clear alpha buffer */ if (x0 <= x1) memset(s1 + x0, 0, x1 - x0 + 1); x0 = nx0; x1 = nx1; nx0 = clrx + 1; nx1 = clx - 1; /* draw to alpha buffer */ j = 0; while (j < nactive_edges) { int lx, rx; int e_lx, e_rx; PolyEdge *e; e = edge + j; GET_EDGE_RANGE(e, e_lx, e_rx); if ((e_lx < e->v0->x) && (e->dxx > 0)) e_lx = e->v0->x; if ((e_rx > e->v0->x) && (e->dxx < 0)) e_rx = e->v0->x; /* draw edge */ switch (e->type) { case STEEP_EDGE: { lx = e_lx; lx += (e->xx - (lx << 16)) >> 15; if (IN_SEGMENT(lx, clx, clw)) { *(s0 + lx) = 255; if (lx < x0) x0 = lx; if (lx > x1) x1 = lx; } if ((e->v1->y == (y + 1)) && (y < clby)) { lx = e->v1->x; if (IN_SEGMENT(lx, clx, clw)) { *(s1 + lx) = 255; if (lx < nx0) nx0 = lx; if (lx > nx1) nx1 = lx; } } break; } case SHALLOW_EDGE: { int x, ey, eyy; if (e->dyy > 0) x = e_lx; else x = e_rx; eyy = ((e->v0->y) << 16) + (x - (e->v0->x)) * (e->dyy); ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; if (e->dyy > 0) { if (x < x0) x0 = x; while (ey <= y) { if ((ey == y) && IN_SEGMENT(x, clx, clw)) *(s0 + x) = 255; eyy += e->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x++; } if (x > x1) x1 = x; if (((y + 1) == e->v1->y) && (y < clby)) { if (x < nx0) nx0 = x; rx = e->v1->x; while ((ey == (y + 1)) && (x <= rx)) { if (IN_SEGMENT(x, clx, clw)) *(s1 + x) = 255; eyy += e->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x++; } if (x > nx1) nx1 = x; } break; } if (x > x1) x1 = x; while (ey <= y) { if ((ey == y) && IN_SEGMENT(x, clx, clw)) *(s0 + x) = 255; eyy -= e->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x--; } if (x < x0) x0 = x; if (((y + 1) == e->v1->y) && (y < clby)) { if (x > nx1) nx1 = x; lx = e->v1->x; while ((ey == (y + 1)) && (x >= lx)) { if (IN_SEGMENT(x, clx, clw)) *(s1 + x) = 255; eyy -= e->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x--; } if (x < nx0) nx0 = x; } break; } case HORZ_EDGE: { lx = e_lx; rx = e_rx; CLIP_SPAN(lx, rx, clx, clrx); if (lx <= rx) { memset(s0 + lx, 255, rx - lx + 1); if (lx < x0) x0 = lx; if (rx > x1) x1 = rx; } break; } default: break; } e->xx += e->dxx; j++; } if (nactive_horz_edges > 0) DEL_HORZ_EDGES(); /* draw alpha buffer to dst */ CLIP_SPAN(x0, x1, clx, clrx); if ((x0 <= x1) && (y >= cly)) sfunc(s0 + x0, color, p + x0, x1 - x0 + 1); /* exchange alpha buffers */ ps = s0; s0 = s1; s1 = ps; y++; p += dstw; } DE_INIT_POLY(); } /* anti-aliased drawing */ static void __imlib_Polygon_DrawToData_AA(ImlibPoly poly, char close, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibShapedSpanDrawFunction sfunc; IndexedValue *ysort; PolyEdge *edge; int k, a_a = 1; int nactive_edges, nactive_horz_edges, nvertices; int clrx, clby, ty, by, y, yy, prev_y, prev_yy; int x0, x1, nx0, nx1; DATA32 *p; DATA8 *s0, *s1, *ps; INIT_POLY(); yy = y << 16; prev_y = y - 1; prev_yy = prev_y << 16; while (y <= by) { int j; while ((k < nvertices) && (poly->points[ysort[k].index].y <= y)) { int i = ysort[k].index; j = i - 1; if (close && (i == 0)) j = nvertices - 1; if (j >= 0) { if (poly->points[j].y < y) DEL_EDGE(j); else ADD_EDGE(j); } j = i + 1; if (close && (i == (nvertices - 1))) j = 0; if (j < nvertices) { if (poly->points[j].y <= y) DEL_EDGE(i); else ADD_EDGE(i); } k++; } /* not really needed, but... */ qsort(edge, nactive_edges, sizeof(PolyEdge), poly_edge_sorter); /* clear alpha buffer */ if (x0 <= x1) memset(s1 + x0, 0, x1 - x0 + 1); x0 = nx0; x1 = nx1; nx0 = clrx + 1; nx1 = clx - 1; /* draw to alpha buffer */ j = 0; while (j < nactive_edges) { int lx, rx; int e_lx, e_rx; PolyEdge *e; e = edge + j; GET_EDGE_RANGE(e, e_lx, e_rx); if ((e_lx < e->v0->x) && (e->dxx > 0)) e_lx = e->v0->x; if ((e_rx > e->v0->x) && (e->dxx < 0)) e_rx = e->v0->x; /* draw aa edge */ switch (e->type) { case STEEP_EDGE: { DATA32 tmp; DATA8 aa; aa = (e->xx - (e_lx << 16)) >> 8; rx = e_lx + 1; if (IN_SEGMENT(rx, clx, clw)) { ps = s0 + rx; BLEND_ALPHA(ps, aa, tmp); if (rx > x1) x1 = rx; } if (IN_SEGMENT(e_lx, clx, clw)) { aa = 255 - aa; ps = s0 + e_lx; BLEND_ALPHA(ps, aa, tmp); if (e_lx < x0) x0 = e_lx; } if ((e->v1->y == (y + 1)) && (y < clby)) { lx = (e->xx + e->dxx) >> 16; aa = ((e->xx + e->dxx - (lx << 16)) >> 8); rx = lx + 1; if (IN_SEGMENT(rx, clx, clw)) { ps = s1 + rx; BLEND_ALPHA(ps, aa, tmp); if (rx > nx1) nx1 = rx; } if (IN_SEGMENT(lx, clx, clw)) { aa = 255 - aa; ps = s1 + lx; BLEND_ALPHA(ps, aa, tmp); if (lx < nx0) nx0 = lx; } } break; } case SHALLOW_EDGE: { int x, ey, eyy; if (e->dyy > 0) x = e_lx; else x = e_rx; eyy = ((e->v0->y) << 16) + (x - (e->v0->x)) * (e->dyy); ey = eyy >> 16; if (e->dyy > 0) { if (x < x0) x0 = x; while (ey < y) { DATA32 tmp; DATA8 aa; if ((ey == prev_y) && IN_SEGMENT(x, clx, clw)) { aa = ((eyy - prev_yy) >> 8); ps = s0 + x; BLEND_ALPHA(ps, aa, tmp); } eyy += e->dyy; ey = eyy >> 16; x++; } lx = x; while (ey == y) { DATA32 tmp; DATA8 aa; if (IN_SEGMENT(x, clx, clw)) { aa = 255 - ((eyy - yy) >> 8); ps = s0 + x; BLEND_ALPHA(ps, aa, tmp); } eyy += e->dyy; ey = eyy >> 16; x++; } if (x > x1) x1 = x; if (((y + 1) == e->v1->y) && (y < clby)) { x = lx; if (x < nx0) nx0 = x; rx = e->v1->x; eyy = ((e->v0->y) << 16) + (x - (e->v0->x)) * (e->dyy); ey = eyy >> 16; while ((ey == y) && (x <= rx)) { DATA32 tmp; DATA8 aa; if (IN_SEGMENT(x, clx, clw)) { aa = ((eyy - yy) >> 8); ps = s1 + x; BLEND_ALPHA(ps, aa, tmp); } eyy += e->dyy; ey = eyy >> 16; x++; } if (x > nx1) nx1 = x; } break; } if (x > x1) x1 = x; while (ey < y) { DATA32 tmp; DATA8 aa; if ((ey == prev_y) && IN_SEGMENT(x, clx, clw)) { aa = ((eyy - prev_yy) >> 8); ps = s0 + x; BLEND_ALPHA(ps, aa, tmp); } eyy -= e->dyy; ey = eyy >> 16; x--; } rx = x; while (ey == y) { DATA32 tmp; DATA8 aa; if (IN_SEGMENT(x, clx, clw)) { aa = 255 - ((eyy - yy) >> 8); ps = s0 + x; BLEND_ALPHA(ps, aa, tmp); } eyy -= e->dyy; ey = eyy >> 16; x--; } if (x < x0) x0 = x; if (((y + 1) == e->v1->y) && (y < clby)) { x = rx; if (x > nx1) nx1 = x; lx = e->v1->x; eyy = ((e->v0->y) << 16) + (x - (e->v0->x)) * (e->dyy); ey = eyy >> 16; while ((ey == y) && (x >= lx)) { DATA32 tmp; DATA8 aa; if (IN_SEGMENT(x, clx, clw)) { aa = ((eyy - yy) >> 8); ps = s1 + x; BLEND_ALPHA(ps, aa, tmp); } eyy -= e->dyy; ey = eyy >> 16; x--; } if (x < nx0) nx0 = x; } break; } case HORZ_EDGE: { lx = e_lx; rx = e_rx; CLIP_SPAN(lx, rx, clx, clrx); if (lx <= rx) { memset(s0 + lx, 255, rx - lx + 1); if (lx < x0) x0 = lx; if (rx > x1) x1 = rx; } break; } default: break; } e->xx += e->dxx; j++; } if (nactive_horz_edges > 0) DEL_HORZ_EDGES(); /* draw alpha buffer to dst */ CLIP_SPAN(x0, x1, clx, clrx); if ((x0 <= x1) && (y >= cly)) sfunc(s0 + x0, color, p + x0, x1 - x0 + 1); /* exchange alpha buffers */ ps = s0; s0 = s1; s1 = ps; prev_yy = yy; prev_y = y; y++; yy = y << 16; p += dstw; } DE_INIT_POLY(); } void __imlib_Polygon_DrawToImage(ImlibPoly poly, char close, DATA32 color, ImlibImage * im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias) { if ((!poly) || (!poly->points) || (poly->pointcount < 1) || (clw < 0)) return; if (blend && (!A_VAL(&color))) return; if (poly->pointcount == 1) { (void)__imlib_Point_DrawToImage(poly->points[0].x, poly->points[0].y, color, im, clx, cly, clw, clh, op, blend, 0); return; } if (poly->pointcount == 2) { (void)__imlib_Line_DrawToImage(poly->points[0].x, poly->points[0].y, poly->points[1].x, poly->points[1].y, color, im, clx, cly, clw, clh, op, blend, anti_alias, 0); return; } if (clw == 0) { clw = im->w; clx = 0; clh = im->h; cly = 0; } CLIP_RECT_TO_RECT(clx, cly, clw, clh, 0, 0, im->w, im->h); if ((clw < 1) || (clh < 1)) return; if (blend && IMAGE_HAS_ALPHA(im)) __imlib_build_pow_lut(); if (anti_alias) __imlib_Polygon_DrawToData_AA(poly, close, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); else __imlib_Polygon_DrawToData(poly, close, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); } /** Polygon Filling **/ /* aliased filling */ static void __imlib_Polygon_FillToData(ImlibPoly poly, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibShapedSpanDrawFunction sfunc; IndexedValue *ysort; PolyEdge *edge; int k, a_a = 0; int nactive_edges, nactive_horz_edges, nvertices; int clrx, clby, ty, by, y; int x0, x1, nx0, nx1; DATA32 *p; DATA8 *s0, *s1, *ps; INIT_POLY(); while (y <= by) { int j; while ((k < nvertices) && (poly->points[ysort[k].index].y <= y)) { int i = ysort[k].index; if (i > 0) j = i - 1; else j = nvertices - 1; if (poly->points[j].y < y) DEL_EDGE(j); else ADD_EDGE(j); if (i < (nvertices - 1)) j = i + 1; else j = 0; if (poly->points[j].y < y) DEL_EDGE(i); else ADD_EDGE(i); k++; } qsort(edge, nactive_edges, sizeof(PolyEdge), poly_edge_sorter); /* clear alpha buffer */ if (x0 <= x1) memset(s1 + x0, 0, x1 - x0 + 1); x0 = nx0; x1 = nx1; nx0 = clrx + 1; nx1 = clx - 1; /* draw to alpha buffer */ j = 0; while (j < nactive_edges) { int lx, rx; int le_lx, le_rx; int re_lx, re_rx; PolyEdge *le, *re; if (j < (nactive_edges - 1)) { le = edge + j; re = le + 1; } else if (j > 0) { le = edge + (j - 1); le->xx -= le->dxx; re = le + 1; } else { re = le = edge; } GET_EDGE_RANGE(le, le_lx, le_rx); if ((le_lx < le->v0->x) && (le->dxx > 0)) le_lx = le->v0->x; GET_EDGE_RANGE(re, re_lx, re_rx); if ((re_rx > re->v0->x) && (re->dxx < 0)) re_rx = re->v0->x; /* draw left edge */ switch (le->type) { case STEEP_EDGE: { le_rx += (le->xx - (le_rx << 16)) >> 15; if (le_rx < x0) x0 = le_rx; if ((le->v1->y == (y + 1)) && (y < clby)) { lx = le->v1->x; if (IN_SEGMENT(lx, clx, clw)) { *(s1 + lx) = 255; if (lx < nx0) nx0 = lx; } } break; } case SHALLOW_EDGE: { int x, ey, eyy; x = le_lx; eyy = ((le->v0->y) << 16) + (x - (le->v0->x)) * (le->dyy); ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; if (le->dyy > 0) { while (ey < y) { eyy += le->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x++; } le_rx = x; if (x < x0) x0 = x; if (((y + 1) == le->v1->y) && (y < clby)) { if (x < nx0) nx0 = x; rx = le->v1->x; while ((ey <= (y + 1)) && (x <= rx)) { if ((ey == (y + 1)) && IN_SEGMENT(x, clx, clw)) *(s1 + x) = 255; eyy += le->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x++; } if (x > nx1) nx1 = x; } break; } while (ey > y) { eyy += le->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x++; } le_rx = x; if (x < x0) x0 = x; break; } case HORZ_EDGE: { lx = le_lx; rx = le_rx; CLIP_SPAN(lx, rx, clx, clrx); if (lx <= rx) { memset(s0 + lx, 255, rx - lx + 1); if (lx < x0) x0 = lx; } le_rx++; break; } default: break; } /* draw right edge */ switch (re->type) { case STEEP_EDGE: { re_lx += (re->xx - (re_lx << 16)) >> 15; if (re_lx > x1) x1 = re_lx; if ((re->v1->y == (y + 1)) && (y < clby)) { rx = re->v1->x; if (IN_SEGMENT(rx, clx, clw)) { *(s1 + rx) = 255; if (rx > nx1) nx1 = rx; } } break; } case SHALLOW_EDGE: { int x, ey, eyy; x = re_rx; eyy = ((re->v0->y) << 16) + (x - (re->v0->x)) * (re->dyy); ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; if (re->dyy > 0) { while (ey > y) { eyy -= re->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x--; } re_lx = x; if (x > x1) x1 = x; break; } while (ey < y) { eyy -= re->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x--; } re_lx = x; if (x > x1) x1 = x; if (((y + 1) == re->v1->y) && (y < clby)) { if (x > nx1) nx1 = x; lx = re->v1->x; while ((ey <= (y + 1)) && (x >= lx)) { if ((ey == (y + 1)) && IN_SEGMENT(x, clx, clw)) *(s1 + x) = 255; eyy -= re->dyy; ey = eyy >> 16; ey += (eyy - (ey << 16)) >> 15; x--; } if (x < nx0) nx0 = x; } break; } case HORZ_EDGE: { lx = re_lx; rx = re_rx; CLIP_SPAN(lx, rx, clx, clrx); if (lx <= rx) { memset(s0 + lx, 255, rx - lx + 1); if (rx > x1) x1 = rx; } re_lx--; break; } default: break; } /* draw span between edges */ lx = le_rx; rx = re_lx; CLIP_SPAN(lx, rx, clx, clrx); if ((lx <= rx) && (y >= cly)) memset(s0 + lx, 255, rx - lx + 1); le->xx += le->dxx; if (le != re) re->xx += re->dxx; j += 2; } if (nactive_horz_edges > 0) DEL_HORZ_EDGES(); /* draw alpha buffer to dst */ CLIP_SPAN(x0, x1, clx, clrx); if ((x0 <= x1) && (y >= cly)) sfunc(s0 + x0, color, p + x0, x1 - x0 + 1); /* exchange alpha buffers */ ps = s0; s0 = s1; s1 = ps; y++; p += dstw; } DE_INIT_POLY(); } /* anti-aliased filling */ static void __imlib_Polygon_FillToData_AA(ImlibPoly poly, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibShapedSpanDrawFunction sfunc; IndexedValue *ysort; PolyEdge *edge; int k, a_a = 1; int nactive_edges, nactive_horz_edges, nvertices; int clrx, clby, ty, by, y, yy, prev_y, prev_yy; int x0, x1, nx0, nx1; DATA32 *p; DATA8 *s0, *s1, *ps; INIT_POLY(); yy = y << 16; prev_y = y - 1; prev_yy = prev_y << 16; while (y <= by) { int j; while ((k < nvertices) && (poly->points[ysort[k].index].y <= y)) { int i = ysort[k].index; if (i > 0) j = i - 1; else j = nvertices - 1; if (poly->points[j].y < y) DEL_EDGE(j); else ADD_EDGE(j); if (i < (nvertices - 1)) j = i + 1; else j = 0; if (poly->points[j].y < y) DEL_EDGE(i); else ADD_EDGE(i); k++; } qsort(edge, nactive_edges, sizeof(PolyEdge), poly_edge_sorter); /* clear alpha buffer */ if (x0 <= x1) memset(s1 + x0, 0, x1 - x0 + 1); x0 = nx0; x1 = nx1; nx0 = clrx + 1; nx1 = clx - 1; /* draw to alpha buffer */ j = 0; while (j < nactive_edges) { int lx, rx; int le_lx, le_rx; int re_lx, re_rx; PolyEdge *le, *re; if (j < (nactive_edges - 1)) { le = edge + j; re = le + 1; } else if (j > 0) { le = edge + (j - 1); le->xx -= le->dxx; re = le + 1; } else { re = le = edge; } GET_EDGE_RANGE(le, le_lx, le_rx); if ((le_lx < le->v0->x) && (le->dxx > 0)) le_lx = le->v0->x; GET_EDGE_RANGE(re, re_lx, re_rx); if ((re_rx > re->v0->x) && (re->dxx < 0)) re_rx = re->v0->x; /* draw left aa edge */ switch (le->type) { case STEEP_EDGE: { DATA32 tmp; DATA8 aa; if (le_lx < x0) x0 = le_lx; le_rx = le_lx + 1; if (IN_SEGMENT(le_lx, clx, clw)) { aa = 255 - ((le->xx - (le_lx << 16)) >> 8); ps = s0 + le_lx; BLEND_ALPHA(ps, aa, tmp); } if ((le->v1->y == (y + 1)) && (y < clby)) { lx = (le->xx + le->dxx) >> 16; if (IN_SEGMENT(lx, clx, clw)) { aa = 255 - ((le->xx + le->dxx - (lx << 16)) >> 8); ps = s1 + lx; BLEND_ALPHA(ps, aa, tmp); if (lx < nx0) nx0 = lx; } } break; } case SHALLOW_EDGE: { int x, ey, eyy; if (le_lx < x0) x0 = le_lx; x = le_lx; eyy = ((le->v0->y) << 16) + (x - (le->v0->x)) * (le->dyy); ey = eyy >> 16; if (le->dyy > 0) { while (ey < y) { DATA32 tmp; DATA8 aa; if ((ey == prev_y) && IN_SEGMENT(x, clx, clw)) { aa = ((eyy - prev_yy) >> 8); ps = s0 + x; BLEND_ALPHA(ps, aa, tmp); } eyy += le->dyy; ey = eyy >> 16; x++; } le_rx = x; if (((y + 1) == le->v1->y) && (y < clby)) { if (x < nx0) nx0 = x; rx = le->v1->x; while ((ey == y) && (x <= rx)) { DATA32 tmp; DATA8 aa; if (IN_SEGMENT(x, clx, clw)) { aa = ((eyy - yy) >> 8); ps = s1 + x; BLEND_ALPHA(ps, aa, tmp); } eyy += le->dyy; ey = eyy >> 16; x++; } } break; } while (ey >= y) { DATA32 tmp; DATA8 aa; if ((ey == y) && IN_SEGMENT(x, clx, clw)) { aa = 255 - ((eyy - yy) >> 8); ps = s0 + x; BLEND_ALPHA(ps, aa, tmp); } eyy += le->dyy; ey = eyy >> 16; x++; } le_rx = x; break; } case HORZ_EDGE: { lx = le_lx; rx = le_rx; CLIP_SPAN(lx, rx, clx, clrx); if (lx <= rx) { memset(s0 + lx, 255, rx - lx + 1); if (lx < x0) x0 = lx; } le_rx++; break; } default: break; } /* draw right aa edge */ switch (re->type) { case STEEP_EDGE: { DATA32 tmp; DATA8 aa; rx = re_lx + 1; if (rx > x1) x1 = rx; if (IN_SEGMENT(rx, clx, clw)) { aa = (re->xx - (re_lx << 16)) >> 8; ps = s0 + rx; BLEND_ALPHA(ps, aa, tmp); } if ((re->v1->y == (y + 1)) && (y < clby)) { lx = (re->xx + re->dxx) >> 16; rx = lx + 1; if (IN_SEGMENT(rx, clx, clw)) { aa = ((re->xx + re->dxx - (lx << 16)) >> 8); ps = s1 + rx; BLEND_ALPHA(ps, aa, tmp); if (rx > nx1) nx1 = rx; } } break; } case SHALLOW_EDGE: { int x, ey, eyy; if (re_rx > x1) x1 = re_rx; x = re_rx; eyy = ((re->v0->y) << 16) + (x - (re->v0->x)) * (re->dyy); ey = eyy >> 16; if (re->dyy > 0) { while (ey >= y) { DATA32 tmp; DATA8 aa; if ((ey == y) && IN_SEGMENT(x, clx, clw)) { aa = 255 - ((eyy - yy) >> 8); ps = s0 + x; BLEND_ALPHA(ps, aa, tmp); } eyy -= re->dyy; ey = eyy >> 16; x--; } re_lx = x; break; } while (ey < y) { DATA32 tmp; DATA8 aa; if ((ey == prev_y) && IN_SEGMENT(x, clx, clw)) { aa = ((eyy - prev_yy) >> 8); ps = s0 + x; BLEND_ALPHA(ps, aa, tmp); } eyy -= re->dyy; ey = eyy >> 16; x--; } re_lx = x; if (((y + 1) == re->v1->y) && (y < clby)) { if (x > nx1) nx1 = x; lx = re->v1->x; while ((ey == y) && (x >= lx)) { DATA32 tmp; DATA8 aa; if (IN_SEGMENT(x, clx, clw)) { aa = ((eyy - yy) >> 8); ps = s1 + x; BLEND_ALPHA(ps, aa, tmp); } eyy -= re->dyy; ey = eyy >> 16; x--; } } break; } case HORZ_EDGE: { lx = re_lx; rx = re_rx; CLIP_SPAN(lx, rx, clx, clrx); if (lx <= rx) { memset(s0 + lx, 255, rx - lx + 1); if (rx > x1) x1 = rx; } re_lx--; break; } default: break; } /* draw span between edges */ lx = le_rx; rx = re_lx; CLIP_SPAN(lx, rx, clx, clrx); if ((lx <= rx) && (y >= cly)) memset(s0 + lx, 255, rx - lx + 1); le->xx += le->dxx; if (le != re) re->xx += re->dxx; j += 2; } if (nactive_horz_edges > 0) DEL_HORZ_EDGES(); /* draw alpha buffer to dst */ CLIP_SPAN(x0, x1, clx, clrx); if ((x0 <= x1) && (y >= cly)) sfunc(s0 + x0, color, p + x0, x1 - x0 + 1); /* exchange alpha buffers */ ps = s0; s0 = s1; s1 = ps; prev_yy = yy; prev_y = y; y++; yy = y << 16; p += dstw; } DE_INIT_POLY(); } void __imlib_Polygon_FillToImage(ImlibPoly poly, DATA32 color, ImlibImage * im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias) { if ((!poly) || (!poly->points) || (poly->pointcount < 1) || (clw < 0)) return; if (blend && (!A_VAL(&color))) return; if (poly->pointcount == 1) { (void)__imlib_Point_DrawToImage(poly->points[0].x, poly->points[0].y, color, im, clx, cly, clw, clh, op, blend, 0); return; } if (poly->pointcount == 2) { (void)__imlib_Line_DrawToImage(poly->points[0].x, poly->points[0].y, poly->points[1].x, poly->points[1].y, color, im, clx, cly, clw, clh, op, blend, anti_alias, 0); return; } if (clw == 0) { clw = im->w; clx = 0; clh = im->h; cly = 0; } CLIP_RECT_TO_RECT(clx, cly, clw, clh, 0, 0, im->w, im->h); if ((clw < 1) || (clh < 1)) return; if (blend && IMAGE_HAS_ALPHA(im)) __imlib_build_pow_lut(); if (anti_alias) __imlib_Polygon_FillToData_AA(poly, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); else __imlib_Polygon_FillToData(poly, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); } imlib2-1.4.6/src/lib/rectangle.c0000664000175000017500000001100312255265065013273 00000000000000#include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include "span.h" #include "updates.h" #include "rgbadraw.h" static void __imlib_Rectangle_DrawToData(int x, int y, int rw, int rh, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibPointDrawFunction pfunc; ImlibSpanDrawFunction sfunc; int x0, y0, x1, y1, len; DATA32 *p; if (A_VAL(&color) == 0xff) blend = 0; sfunc = __imlib_GetSpanDrawFunction(op, dst_alpha, blend); pfunc = __imlib_GetPointDrawFunction(op, dst_alpha, blend); if (!pfunc || !sfunc) return; dst += (dstw * cly) + clx; x -= clx; y -= cly; x0 = x; x1 = x + rw - 1; if (x0 < 0) x0 = 0; if (x1 >= clw) x1 = clw - 1; if (y >= 0) { p = dst + (dstw * y) + x0; len = x1 - x0 + 1; sfunc(color, p, len); } if ((y + rh) <= clh) { p = dst + (dstw * (y + rh - 1)) + x0; len = x1 - x0 + 1; sfunc(color, p, len); } y0 = y + 1; y1 = y + rh - 2; if (y0 < 0) y0 = 0; if (y1 >= clh) y1 = clh - 1; len = y1 - y0 + 1; if (len <= 0) return; y1 = len; if (x >= 0) { p = dst + (dstw * y0) + x; while (len--) { pfunc(color, p); p += dstw; } } if ((x + rw) <= clw) { len = y1; p = dst + (dstw * y0) + x + rw - 1; while (len--) { pfunc(color, p); p += dstw; } } } static void __imlib_Rectangle_FillToData(int x, int y, int rw, int rh, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibSpanDrawFunction sfunc; DATA32 *p; if (A_VAL(&color) == 0xff) blend = 0; sfunc = __imlib_GetSpanDrawFunction(op, dst_alpha, blend); if (!sfunc) return; dst += (dstw * cly) + clx; x -= clx; y -= cly; CLIP_RECT_TO_RECT(x, y, rw, rh, 0, 0, clw, clh); if ((rw < 1) || (rh < 1)) return; p = dst + (dstw * y) + x; while (rh--) { sfunc(color, p, rw); p += dstw; } } void __imlib_Rectangle_DrawToImage(int x, int y, int w, int h, DATA32 color, ImlibImage * im, int clx, int cly, int clw, int clh, ImlibOp op, char blend) { if ((w < 1) || (h < 1) || (clw < 0)) return; if ((w == 1) || (h == 1)) { (void)__imlib_Line_DrawToImage(x, y, x + w - 1, y + h - 1, color, im, clx, cly, clw, clh, op, blend, 0, 0); return; } if (blend && (!A_VAL(&color))) return; if (clw == 0) { clw = im->w; clx = 0; clh = im->h; cly = 0; } CLIP_RECT_TO_RECT(clx, cly, clw, clh, 0, 0, im->w, im->h); if ((clw < 1) || (clh < 1)) return; CLIP_RECT_TO_RECT(clx, cly, clw, clh, x, y, w, h); if ((clw < 1) || (clh < 1)) return; if (blend && IMAGE_HAS_ALPHA(im)) __imlib_build_pow_lut(); __imlib_Rectangle_DrawToData(x, y, w, h, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); } void __imlib_Rectangle_FillToImage(int x, int y, int w, int h, DATA32 color, ImlibImage * im, int clx, int cly, int clw, int clh, ImlibOp op, char blend) { if ((w < 1) || (h < 1) || (clw < 0)) return; if ((w == 1) || (h == 1)) { (void)__imlib_Line_DrawToImage(x, y, x + w - 1, y + h - 1, color, im, clx, cly, clw, clh, op, blend, 0, 0); return; } if (blend && (!A_VAL(&color))) return; if (clw == 0) { clw = im->w; clx = 0; clh = im->h; cly = 0; } CLIP_RECT_TO_RECT(clx, cly, clw, clh, 0, 0, im->w, im->h); if ((clw < 1) || (clh < 1)) return; CLIP_RECT_TO_RECT(clx, cly, clw, clh, x, y, w, h); if ((clw < 1) || (clh < 1)) return; if (blend && IMAGE_HAS_ALPHA(im)) __imlib_build_pow_lut(); __imlib_Rectangle_FillToData(x, y, w, h, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); } imlib2-1.4.6/src/lib/amd64_blend_cmod.S0000664000175000017500000123750512255265113014404 00000000000000#include #include "asm.h" #ifdef DO_AMD64_ASM /*\ |*| AMD64 SSE2 assembly blending routines for Imlib2 |*| Written by John Slaten |*| Based on MMX routines written by Willem Monsuwe \*/ /*\ Some useful masks \*/ .data .align 16 m0X000000: .byte 0, 0, 0, 0, 0, 0, 255, 0 .byte 0, 0, 0, 0, 0, 0, 255, 0 m10000000: .byte 0, 0, 0, 0, 0, 0, 0, 1 .byte 0, 0, 0, 0, 0, 0, 0, 1 m00XXXXXX: .byte 255, 255, 255, 255, 255, 255, 0, 0 .byte 255, 255, 255, 255, 255, 255, 0, 0 mVX000000: .byte 0, 0, 0, 0, 0, 0, 255, 127 .byte 0, 0, 0, 0, 0, 0, 255, 127 mV0000000: .byte 0, 0, 0, 0, 0, 0, 0, 128 .byte 0, 0, 0, 0, 0, 0, 0, 128 mX000X000: .byte 0, 0, 0, 0, 0, 0, 255, 255 .byte 0, 0, 0, 0, 0, 0, 255, 255 m0XXX0XXX0XXX0XXX: .byte 255, 255, 255, 0, 255, 255, 255, 0 .byte 255, 255, 255, 0, 255, 255, 255, 0 m0XXX0XXX00000000: .byte 255, 255, 255, 0, 255, 255, 255, 0 .byte 0, 0, 0, 0, 0, 0, 0, 0 m0XXX000000000000: .byte 255, 255, 255, 0, 0, 0, 0, 0 .byte 0, 0, 0, 0, 0, 0, 0, 0 mX000X000X000X000: .byte 0, 0, 0, 255, 0, 0, 0, 255 .byte 0, 0, 0, 255, 0, 0, 0, 255 mX000X00000000000: .byte 0, 0, 0, 255, 0, 0, 0, 255 .byte 0, 0, 0, 255, 0, 0, 0, 255 mX000000000000000: .byte 0, 0, 0, 255, 0, 0, 0, 255 .byte 0, 0, 0, 255, 0, 0, 0, 255 m1000100010001000: .byte 0, 0, 0, 1, 0, 0, 0, 1 .byte 0, 0, 0, 1, 0, 0, 0, 1 m000V0V0V000V0V0V: .byte 127, 0, 127, 0, 127, 0, 0, 0 .byte 127, 0, 127, 0, 127, 0, 0, 0 mI0000000I0000000: .byte 0, 0, 0, 0, 0, 0, 0, 64 .byte 0, 0, 0, 0, 0, 0, 0, 64 m0VVV0VVV0VVV0VVV: .byte 127, 127, 127, 0, 127, 127, 127, 0 .byte 127, 127, 127, 0, 127, 127, 127, 0 c1: .word 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1 /*\ All functions have the same calling convention: |*| __imlib_amd64__rgba_to_rgb[A](void *src, int sw, void *dst, int dw, |*| int w, int h, ImlibColorModifier *cm) |*| AMD64 GCC passes paramters by register, so no aliases exist in this version. \*/ .text .align 16 FN_(imlib_amd64_blend_rgba_to_rgb_cmod) FN_(imlib_amd64_blend_rgba_to_rgba_cmod) FN_(imlib_amd64_blend_rgb_to_rgba_cmod) FN_(imlib_amd64_blend_rgb_to_rgb_cmod) FN_(imlib_amd64_copy_rgba_to_rgb_cmod) FN_(imlib_amd64_copy_rgba_to_rgba_cmod) FN_(imlib_amd64_copy_rgb_to_rgba_cmod) FN_(imlib_amd64_add_blend_rgba_to_rgb_cmod) FN_(imlib_amd64_add_blend_rgba_to_rgba_cmod) FN_(imlib_amd64_add_blend_rgb_to_rgba_cmod) FN_(imlib_amd64_add_blend_rgb_to_rgb_cmod) FN_(imlib_amd64_add_copy_rgba_to_rgb_cmod) FN_(imlib_amd64_add_copy_rgba_to_rgba_cmod) FN_(imlib_amd64_add_copy_rgb_to_rgba_cmod) FN_(imlib_amd64_subtract_blend_rgba_to_rgb_cmod) FN_(imlib_amd64_subtract_blend_rgba_to_rgba_cmod) FN_(imlib_amd64_subtract_blend_rgb_to_rgba_cmod) FN_(imlib_amd64_subtract_blend_rgb_to_rgb_cmod) FN_(imlib_amd64_subtract_copy_rgba_to_rgb_cmod) FN_(imlib_amd64_subtract_copy_rgba_to_rgba_cmod) FN_(imlib_amd64_subtract_copy_rgb_to_rgba_cmod) FN_(imlib_amd64_reshade_blend_rgba_to_rgb_cmod) FN_(imlib_amd64_reshade_blend_rgba_to_rgba_cmod) FN_(imlib_amd64_reshade_blend_rgb_to_rgba_cmod) FN_(imlib_amd64_reshade_blend_rgb_to_rgb_cmod) FN_(imlib_amd64_reshade_copy_rgba_to_rgb_cmod) FN_(imlib_amd64_reshade_copy_rgba_to_rgba_cmod) FN_(imlib_amd64_reshade_copy_rgb_to_rgba_cmod) .extern pow_lut /*\ SSE register use: |*| %xmm1 = Source value |*| %xmm2 = Destination value |*| %xmm3 = Alpha value |*| %xmm4 = 0 |*| %xmm5-%xmm7 = masks \*/ /*\ Variables: |*| %rsi = src |*| %rdi = dst |*| %r8d = w |*| %r9d = h |*| %r10d = sw |*| %r11d = dw \*/ #define ENTER \ pushq %rbp ; \ movq %rsp, %rbp ; \ pushq %rbx ; \ pushq %r13 ; \ pushq %r14 ; \ movq %rsi, %r10 ; \ movq %rcx, %r11 ; \ movq %rdi, %rsi ; \ movq %rdx, %rdi ; \ movq 16(%rbp), %r14 ; \ ; \ /* param sanity check */ ; \ testq %r8, %r8 ; \ jz 9f ; \ testq %r9, %r9 ; \ jz 9f #define LEAVE \ popq %r14 ; \ popq %r13 ; \ popq %rbx ; \ movq %rbp, %rsp ; \ popq %rbp ; \ ret PR_(imlib_amd64_blend_rgba_to_rgb_cmod): ENTER pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 movdqa m00XXXXXX(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_blend_rgba_to_rgb_cmod) PR_(imlib_amd64_blend_rgba_to_rgba_cmod): ENTER pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 xorq %rax, %rax movdqa mX000X000X000X000(%rip), %xmm6 movq pow_lut@GOTPCREL(%rip), %r13 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ roll $16, %edx andl $0x0000ff00, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah movd %eax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_blend_rgba_to_rgba_cmod) PR_(imlib_amd64_blend_rgb_to_rgba_cmod): ENTER pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 xorq %rax, %rax movdqa mX000X000X000X000(%rip), %xmm6 movq pow_lut@GOTPCREL(%rip), %r13 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ roll $16, %edx andl $0x0000ff00, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah movd %eax, %xmm3 /* override source alpha to 255 */ por %xmm6, %xmm1 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* unpack source and dest */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* repack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_blend_rgb_to_rgba_cmod) PR_(imlib_amd64_blend_rgb_to_rgb_cmod): ENTER pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 movdqa m00XXXXXX(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * ((s - d) + 0.5)) */ psubw %xmm2, %xmm1 psllw $1, %xmm1 paddw %xmm5, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_blend_rgb_to_rgb_cmod) PR_(imlib_amd64_copy_rgba_to_rgb_cmod): ENTER movq mX000X000X000X000(%rip), %r13 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = 0 */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movzbq %al, %rbx movzbq 0x000(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $16, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq (%rdi, %rcx, 4), %rax andq %r13, %rax orq %rax, %rdx movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = 0 */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movzbq %al, %rbx movzbq 0x000(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $16, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq (%rdi, %rcx, 4), %rax andq %r13, %rax orq %rax, %rdx movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = 0 */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movzbq %al, %rbx movzbq 0x000(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $16, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq (%rdi, %rcx, 4), %rax andq %r13, %rax orq %rax, %rdx movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = 0 */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movzbq %al, %rbx movzbq 0x000(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $16, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq (%rdi, %rcx, 4), %rax andq %r13, %rax orq %rax, %rdx movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = 0 */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movzbq %al, %rbx movzbq 0x000(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $16, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq (%rdi, %rcx, 4), %rax andq %r13, %rax orq %rax, %rdx movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = 0 */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movzbq %al, %rbx movzbq 0x000(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $16, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq (%rdi, %rcx, 4), %rax andq %r13, %rax orq %rax, %rdx movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = 0 */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movzbq %al, %rbx movzbq 0x000(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $16, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq (%rdi, %rcx, 4), %rax andq %r13, %rax orq %rax, %rdx movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = 0 */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movzbq %al, %rbx movzbq 0x000(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $16, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq (%rdi, %rcx, 4), %rax andq %r13, %rax orq %rax, %rdx movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = 0 */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movzbq %al, %rbx movzbq 0x000(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movl (%rdi, %rcx, 4), %eax andq %r13, %rax orq %rax, %rdx movl %edx, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_copy_rgba_to_rgb_cmod) PR_(imlib_amd64_copy_rgba_to_rgba_cmod): ENTER /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movl %edx, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_copy_rgba_to_rgba_cmod) PR_(imlib_amd64_copy_rgb_to_rgba_cmod): ENTER /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movq %rdx, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movl %edx, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_copy_rgb_to_rgba_cmod) PR_(imlib_amd64_add_blend_rgba_to_rgb_cmod): ENTER pxor %xmm4, %xmm4 movdqa m00XXXXXX(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_blend_rgba_to_rgb_cmod) PR_(imlib_amd64_add_blend_rgba_to_rgba_cmod): ENTER pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 xorq %rax, %rax movdqa mX000X000X000X000(%rip), %xmm6 movq pow_lut@GOTPCREL(%rip), %r13 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ roll $16, %edx andl $0x0000ff00, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah movd %eax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_blend_rgba_to_rgba_cmod) PR_(imlib_amd64_add_blend_rgb_to_rgba_cmod): ENTER pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 xorq %rax, %rax movdqa mX000X000X000X000(%rip), %xmm6 movq pow_lut@GOTPCREL(%rip), %r13 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ roll $16, %edx andl $0x0000ff00, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah movd %eax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 por %xmm6, %xmm1 pand %xmm6, %xmm0 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (s * ca) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_blend_rgb_to_rgba_cmod) PR_(imlib_amd64_add_blend_rgb_to_rgb_cmod): ENTER pxor %xmm4, %xmm4 movdqa m00XXXXXX(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (a * s) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_blend_rgb_to_rgb_cmod) PR_(imlib_amd64_add_copy_rgba_to_rgb_cmod): ENTER movdqa m0XXX0XXX0XXX0XXX(%rip), %xmm5 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = d + (s & 0x00ffffff) */ pand %xmm5, %xmm1 paddusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_copy_rgba_to_rgb_cmod) PR_(imlib_amd64_add_copy_rgba_to_rgba_cmod): ENTER movdqa m0XXX0XXX0XXX0XXX(%rip), %xmm5 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (d & 0x00ffffff) + s */ pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_copy_rgba_to_rgba_cmod) PR_(imlib_amd64_add_copy_rgb_to_rgba_cmod): ENTER movdqa m0XXX0XXX0XXX0XXX(%rip), %xmm5 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 pand %xmm5, %xmm2 paddusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_add_copy_rgb_to_rgba_cmod) PR_(imlib_amd64_subtract_blend_rgba_to_rgb_cmod): ENTER pxor %xmm4, %xmm4 movdqa m00XXXXXX(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_blend_rgba_to_rgb_cmod) PR_(imlib_amd64_subtract_blend_rgba_to_rgba_cmod): ENTER movq pow_lut@GOTPCREL(%rip), %r13 pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 movdqa mX000X000X000X000(%rip), %xmm6 movdqa mX000X000(%rip), %xmm7 xorq %rax, %rax /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ roll $16, %edx andl $0x0000ff00, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah movd %eax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_blend_rgba_to_rgba_cmod) PR_(imlib_amd64_subtract_blend_rgb_to_rgba_cmod): ENTER movq pow_lut@GOTPCREL(%rip), %r13 pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 movdqa mX000X000X000X000(%rip), %xmm6 movdqa mX000X000(%rip), %xmm7 xorq %rax, %rax /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah rolq $32, %rax movd %rax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending */ roll $16, %edx andl $0x0000ff00, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah movd %eax, %xmm3 /* unpack alpha to src alpha, combined alpha x 3 */ punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 /* src alpha = 255 - dst alpha */ movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 /* unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - ((s * a) ^ 0xff000000) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 pxor %xmm7, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_blend_rgb_to_rgba_cmod) PR_(imlib_amd64_subtract_blend_rgb_to_rgb_cmod): ENTER pxor %xmm4, %xmm4 movdqa m00XXXXXX(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Get alpha from source and unpack to words * Result ranges is [0, 0x7fff], and is mapped to * point values in [0.0, 1.0) by using the high word * of the 32 bit multiplication result. * Because we want the unsigned value, we shift right one * here and also shift left the other factors to compensate. */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero out the alpha channel of the source to leave the * destination alpha unchanged. */ pand %xmm6, %xmm3 /* Unpack src and dst to words */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d - (s * a) */ psllw $1, %xmm1 pmulhw %xmm3, %xmm1 psubsw %xmm1, %xmm2 /* pack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_blend_rgb_to_rgb_cmod) PR_(imlib_amd64_subtract_copy_rgba_to_rgb_cmod): ENTER movdqa m0XXX0XXX0XXX0XXX(%rip), %xmm5 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = d - (s & 0x00ffffff) */ pand %xmm5, %xmm1 psubusb %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_copy_rgba_to_rgb_cmod) PR_(imlib_amd64_subtract_copy_rgba_to_rgba_cmod): ENTER movdqa m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqa mX000X000X000X000(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = d - s, d alpha = s alpha */ psubusb %xmm1, %xmm2 pand %xmm6, %xmm1 pand %xmm5, %xmm2 por %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_copy_rgba_to_rgba_cmod) PR_(imlib_amd64_subtract_copy_rgb_to_rgba_cmod): ENTER movdqa m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqa mX000X000X000X000(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d - s) */ psubusb %xmm1, %xmm2 /* Preserve source alpha */ pand %xmm5, %xmm2 pand %xmm6, %xmm1 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d - s) */ psubusb %xmm1, %xmm2 /* Preserve source alpha */ pand %xmm5, %xmm2 pand %xmm6, %xmm1 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d - s) */ psubusb %xmm1, %xmm2 /* Preserve source alpha */ pand %xmm5, %xmm2 pand %xmm6, %xmm1 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d - s) */ psubusb %xmm1, %xmm2 /* Preserve source alpha */ pand %xmm5, %xmm2 pand %xmm6, %xmm1 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d - s) */ psubusb %xmm1, %xmm2 /* Preserve source alpha */ pand %xmm5, %xmm2 pand %xmm6, %xmm1 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d - s) */ psubusb %xmm1, %xmm2 /* Preserve source alpha */ pand %xmm5, %xmm2 pand %xmm6, %xmm1 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d - s) */ psubusb %xmm1, %xmm2 /* Preserve source alpha */ pand %xmm5, %xmm2 pand %xmm6, %xmm1 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* d = (d - s) */ psubusb %xmm1, %xmm2 /* Preserve source alpha */ pand %xmm5, %xmm2 pand %xmm6, %xmm1 por %xmm1, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* d = (d - s) */ psubusb %xmm1, %xmm2 /* Preserve source alpha */ pand %xmm5, %xmm2 pand %xmm6, %xmm1 por %xmm1, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_subtract_copy_rgb_to_rgba_cmod) PR_(imlib_amd64_reshade_blend_rgba_to_rgb_cmod): ENTER pxor %xmm4, %xmm4 movdqa m000V0V0V000V0V0V(%rip), %xmm6 movdqa m00XXXXXX(%rip), %xmm7 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_blend_rgba_to_rgb_cmod) PR_(imlib_amd64_reshade_blend_rgba_to_rgba_cmod): ENTER movq pow_lut@GOTPCREL(%rip), %r13 pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 movdqa mX000X000X000X000(%rip), %xmm6 movdqa m0XXX0XXX0XXX0XXX(%rip), %xmm7 movdqa m000V0V0V000V0V0V(%rip), %xmm8 xorq %rax, %rax /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ roll $16, %edx andl $0x0000ff00, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %eax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_blend_rgba_to_rgba_cmod) PR_(imlib_amd64_reshade_blend_rgb_to_rgb_cmod): ENTER pxor %xmm4, %xmm4 movdqa m000V0V0V000V0V0V(%rip), %xmm6 movdqa m00XXXXXX(%rip), %xmm7 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Unpack alpha */ movq %xmm1, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0xFF, %xmm3, %xmm3 pshuflw $0xFF, %xmm3, %xmm3 psrlw $1, %xmm3 /* Zero blending alpha */ pand %xmm7, %xmm3 /* Unpack src and dst */ punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 /* d = d + (2 * a * (s - 127)) */ psubw %xmm6, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 /* Repack new pixels */ packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_blend_rgb_to_rgb_cmod) PR_(imlib_amd64_reshade_blend_rgb_to_rgba_cmod): ENTER movq pow_lut@GOTPCREL(%rip), %r13 pxor %xmm4, %xmm4 movdqa c1(%rip), %xmm5 movdqa mX000X000X000X000(%rip), %xmm6 movdqa m0XXX0XXX0XXX0XXX(%rip), %xmm7 movdqa m000V0V0V000V0V0V(%rip), %xmm8 xorq %rax, %rax /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ movq %rdx, %rax andl $0xff000000, %edx roll $16, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movl %eax, %edx andl $0xff000000, %edx roll $16, %edx movb 7(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah rolq $32, %rax movd %rax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* Convert the cmod alpha to the pow_lut alpha that will be used * for blending, specialized for reshade by shifting the source alpha * right by one */ roll $16, %edx andl $0x0000ff00, %edx movb 3(%rdi, %rcx, 4), %dl movb (%r13, %rdx), %al movb %dh, %ah shrb $1, %ah movd %eax, %xmm3 punpcklbw %xmm3, %xmm3 pshufhw $0x40, %xmm3, %xmm3 pshuflw $0x40, %xmm3, %xmm3 psrlw $1, %xmm3 movdqa %xmm2, %xmm0 pand %xmm6, %xmm0 por %xmm6, %xmm1 psubusb %xmm0, %xmm1 punpcklbw %xmm4, %xmm1 punpcklbw %xmm4, %xmm2 psubw %xmm8, %xmm1 psllw $2, %xmm1 pmulhw %xmm3, %xmm1 paddsw %xmm1, %xmm2 packuswb %xmm4, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_blend_rgb_to_rgba_cmod) PR_(imlib_amd64_reshade_copy_rgba_to_rgb_cmod): ENTER movdqa m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqa m0VVV0VVV0VVV0VVV(%rip), %xmm6 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* To take advantage of saturation and be able to do 8 bytes * at a time, we divide reshading into two separate steps: * adding values above 128, and subtracting values below 128 * These values go into %mm1 and %mm3 respectively * - %xmm1 becomes (2 * (s - 127)) * - %xmm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* dest alpha should not be changed in this func */ pand %xmm5, %xmm1 pand %xmm5, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_copy_rgba_to_rgb_cmod) PR_(imlib_amd64_reshade_copy_rgba_to_rgba_cmod): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqu m0VVV0VVV0VVV0VVV(%rip), %xmm6 movdqu mX000X000X000X000(%rip), %xmm7 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod */ movq (%rsi, %rcx, 4), %rax rorq $56, %rax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod */ movl (%rsi, %rcx, 4), %eax ror $24, %eax movzbq %al, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx rol $8, %eax movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_copy_rgba_to_rgba_cmod) PR_(imlib_amd64_reshade_copy_rgb_to_rgba_cmod): ENTER movdqu m0XXX0XXX0XXX0XXX(%rip), %xmm5 movdqu m0VVV0VVV0VVV0VVV(%rip), %xmm6 movdqu mX000X000X000X000(%rip), %xmm7 /* Move right to left across each line, */ /* processing in two pixel chunks */ leaq (%rsi, %r8, 4), %rsi leaq (%rdi, %r8, 4), %rdi /* Last instruction is %rcx = 0 */ subq $4, %rsi subq $4, %rdi negq %r8 0: movq %r8, %rcx incq %rcx /* prefetch a couple cache lines ahead */ prefetchnta (%rsi, %rcx, 4) prefetcht0 (%rdi, %rcx, 4) prefetchnta 64(%rsi, %rcx, 4) prefetcht0 64(%rdi, %rcx, 4) jz 2f /* one pixel line */ 1: /* main loop, unrolled to work on 64 byte chunks */ prefetchnta 128(%rsi, %rcx, 4) prefetcht0 128(%rdi, %rcx, 4) /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx jz 2f jns 3f /* Grab 2 pixels from src, with colormod, with a = amod[255] */ movq (%rsi, %rcx, 4), %rax rorq $48, %rax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shlq $8, %rdx movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl shlq $8, %rdx movl $0x000000FF, %ebx movb 0x300(%r14, %rbx), %dl shlq $8, %rdx rolq $16, %rax movb %al, %bl movb 0x000(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x100(%r14, %rbx), %dl shlq $8, %rdx rolq $8, %rax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %rdx, %xmm1 movq (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movq %xmm2, (%rdi, %rcx, 4) incq %rcx incq %rcx js 1b jnz 3f 2: /* Grab 1 pixel from src, with colormod, with a = amod[255] */ movl (%rsi, %rcx, 4), %eax ror $16, %eax movq $0x000000FF, %rbx movzbq 0x300(%r14, %rbx), %rdx shl $8, %edx movb %al, %bl movb 0x000(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x100(%r14, %rbx), %dl shl $8, %edx rol $8, %eax movb %al, %bl movb 0x200(%r14, %rbx), %dl movd %edx, %xmm1 movd (%rdi, %rcx, 4), %xmm2 /* This time, dest alpha = src alpha, so src alpha is saved in %xmm0 */ movdqa %xmm1, %xmm3 psubusb %xmm6, %xmm1 movdqa %xmm1, %xmm0 paddusb %xmm1, %xmm1 paddusb %xmm6, %xmm3 pxor %xmm5, %xmm3 paddusb %xmm3, %xmm3 /* d = d + s1 - s2, unsigned saturation */ paddusb %xmm1, %xmm2 psubusb %xmm3, %xmm2 /* d alpha = s alpha */ pand %xmm5, %xmm2 pand %xmm7, %xmm0 por %xmm0, %xmm2 movd %xmm2, (%rdi, %rcx, 4) 3: leaq (%rsi, %r10, 4), %rsi leaq (%rdi, %r11, 4), %rdi decq %r9 jnz 0b 9: LEAVE SIZE(imlib_amd64_reshade_copy_rgb_to_rgba_cmod) #endif #ifdef __ELF__ .section .note.GNU-stack,"",@progbits #endif imlib2-1.4.6/src/lib/color_helpers.h0000664000175000017500000000114712255265030014174 00000000000000#ifndef __COLOR_HELPERS #define __COLOR_HELPERS 1 #include #include #include #include #include #include "common.h" __hidden void __imlib_rgb_to_hsv(int r, int g, int b, float *hue, float *saturation, float *value); __hidden void __imlib_hsv_to_rgb(float hue, float saturation, float value, int *r, int *g, int *b); __hidden void __imlib_rgb_to_hls(int r, int g, int b, float *hue, float *lightness, float *saturation); __hidden void __imlib_hls_to_rgb(float hue, float lightness, float saturation, int *r, int *g, int *b); #endif imlib2-1.4.6/src/lib/Makefile.am0000664000175000017500000000365712255265152013234 00000000000000AUTOMAKE_OPTIONS = 1.4 foreign MAINTAINERCLEANFILES = Makefile.in AM_CFLAGS = $(CWARNFLAGS) AM_CPPFLAGS = -DPACKAGE_LIB_DIR=\"$(libdir)\" \ -I$(top_builddir) \ $(X_CFLAGS) \ $(FREETYPE_CFLAGS) # Older automakes (<1.10) do not use INCLUDES when compiling .S files AM_CCASFLAGS = -I$(top_builddir) lib_LTLIBRARIES = libImlib2.la include_HEADERS = Imlib2.h libImlib2_la_SOURCES = \ api.c \ asm.h \ blend.c \ blend.h \ color.c \ color.h \ color_helpers.c \ color_helpers.h \ colormod.c \ colormod.h \ common.h \ context.c \ context.h \ draw.c \ draw.h \ dynamic_filters.c \ dynamic_filters.h \ ellipse.c \ file.c \ file.h \ filter.c \ filter.h \ font.h \ font_draw.c \ font_load.c \ font_main.c \ font_query.c \ format.c \ format.h \ grab.c \ grab.h \ grad.c \ grad.h \ image.c \ image.h \ line.c \ loaderpath.h \ polygon.c \ rectangle.c \ rend.c \ rend.h \ rgba.c \ rgba.h \ rgbadraw.c \ rgbadraw.h \ rotate.c \ rotate.h \ scale.c \ scale.h \ script.c \ script.h \ span.c \ span.h \ updates.c \ updates.h \ ximage.c \ ximage.h MMX_SRCS = \ asm_blend.S \ asm_blend_cmod.S \ asm_rgba.S \ asm_rotate.S \ asm_scale.S AMD64_SRCS = \ amd64_blend.S \ amd64_blend_cmod.S MMX_OBJS = $(MMX_SRCS:.S=.lo) AMD64_OBJS = $(AMD64_SRCS:.S=.lo) EXTRA_DIST = $(MMX_SRCS) $(AMD64_SRCS) asm_loadimmq.S MY_LIBS = -lXext -lX11 $(FREETYPE_LIBS) $(DLOPEN_LIBS) -lm if BUILD_MMX libImlib2_la_LIBADD = $(MMX_OBJS) $(MY_LIBS) libImlib2_la_DEPENDENCIES = $(top_builddir)/config.h $(MMX_OBJS) EXTRA_libImlib2_la_SOURCES = $(MMX_SRCS) else if BUILD_AMD64 libImlib2_la_LIBADD = $(AMD64_OBJS) $(MY_LIBS) libImlib2_la_DEPENDENCIES = $(top_builddir)/config.h $(AMD64_OBJS) EXTRA_libImlib2_la_SOURCES = $(AMD64_SRCS) else libImlib2_la_LIBADD = $(MY_LIBS) libImlib2_la_DEPENDENCIES = $(top_builddir)/config.h endif endif libImlib2_la_LDFLAGS = -version-info @lt_version@ imlib2-1.4.6/src/lib/filter.h0000664000175000017500000000176412255265030012626 00000000000000#ifndef __FILTER #define __FILTER 1 typedef struct _imlib_filter ImlibFilter; typedef struct _imlib_filter_color ImlibFilterColor; typedef struct _imlib_filter_pixel ImlibFilterPixel; struct _imlib_filter_pixel { int xoff, yoff; int a, r, g, b; }; struct _imlib_filter_color { int size, entries; int div, cons; ImlibFilterPixel *pixels; }; struct _imlib_filter { ImlibFilterColor alpha, red, green, blue; }; __hidden ImlibFilter * __imlib_CreateFilter(int size); __hidden void __imlib_FreeFilter(ImlibFilter *fil); __hidden void __imlib_FilterSet(ImlibFilterColor *fil, int x, int y, int a, int r, int g, int b); __hidden void __imlib_FilterSetColor(ImlibFilterColor * fil, int x, int y, int a, int r, int g, int b); __hidden void __imlib_FilterDivisors(ImlibFilter *fil, int a, int r, int g, int b); __hidden void __imlib_FilterConstants(ImlibFilter *fil, int a, int r, int g, int b); __hidden void __imlib_FilterImage(ImlibImage *im, ImlibFilter *fil); #endif imlib2-1.4.6/src/lib/ellipse.c0000664000175000017500000004167012255265152012776 00000000000000#include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include "span.h" #include "updates.h" #include "rgbadraw.h" static void __imlib_Ellipse_DrawToData(int xc, int yc, int a, int b, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibPointDrawFunction pfunc; int xx, yy, x, y, prev_x, prev_y, ty, by, lx, rx; DATA32 a2, b2, *tp, *bp; DATA64 dx, dy; if (A_VAL(&color) == 0xff) blend = 0; pfunc = __imlib_GetPointDrawFunction(op, dst_alpha, blend); if (!pfunc) return; xc -= clx; yc -= cly; dst += (dstw * cly) + clx; a2 = a * a; b2 = b * b; yy = b << 16; prev_y = b; dx = a2 * b; dy = 0; ty = yc - b - 1; by = yc + b; lx = xc - 1; rx = xc; tp = dst + (dstw * ty) + lx; bp = dst + (dstw * by) + lx; while (dy < dx) { int len; y = yy >> 16; y += ((yy - (y << 16)) >> 15); if (prev_y != y) { prev_y = y; dx -= a2; ty++; by--; tp += dstw; bp -= dstw; } len = rx - lx; if (IN_RANGE(lx, ty, clw, clh)) pfunc(color, tp); if (IN_RANGE(rx, ty, clw, clh)) pfunc(color, tp + len); if (IN_RANGE(lx, by, clw, clh)) pfunc(color, bp); if (IN_RANGE(rx, by, clw, clh)) pfunc(color, bp + len); dy += b2; yy -= ((dy << 16) / dx); lx--; rx++; tp--; bp--; if ((lx < 0) && (rx > clw)) return; if ((ty > clh) || (by < 0)) return; } xx = yy; prev_x = xx >> 16; dx = dy; ty++; by--; tp += dstw; bp -= dstw; while (ty < yc) { int len; x = xx >> 16; x += ((xx - (x << 16)) >> 15); if (prev_x != x) { prev_x = x; dy += b2; lx--; rx++; tp--; bp--; } len = rx - lx; if (IN_RANGE(lx, ty, clw, clh)) pfunc(color, tp); if (IN_RANGE(rx, ty, clw, clh)) pfunc(color, tp + len); if (IN_RANGE(lx, by, clw, clh)) pfunc(color, bp); if (IN_RANGE(rx, by, clw, clh)) pfunc(color, bp + len); dx -= a2; xx += ((dx << 16) / dy); ty++; by--; tp += dstw; bp -= dstw; if ((lx < 0) && (rx > clw)) return; if ((ty > clh) || (by < 0)) return; } } static void __imlib_Ellipse_DrawToData_AA(int xc, int yc, int a, int b, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibPointDrawFunction pfunc; int xx, yy, x, y, prev_x, prev_y, ty, by, lx, rx; DATA32 a2, b2, col0, col1, *tp, *bp; DATA64 dx, dy; DATA8 ca = A_VAL(&color); pfunc = __imlib_GetPointDrawFunction(op, dst_alpha, blend); if (!pfunc) return; xc -= clx; yc -= cly; dst += (dstw * cly) + clx; col0 = col1 = color; a2 = a * a; b2 = b * b; yy = b << 16; prev_y = b; dx = a2 * b; dy = 0; ty = yc - b - 2; by = yc + b + 1; lx = xc - 1; rx = xc; tp = dst + (dstw * ty) + lx; bp = dst + (dstw * by) + lx; while (dy < dx) { int len; DATA32 tmp; y = yy >> 16; if (prev_y != y) { prev_y = y; dx -= a2; ty++; by--; tp += dstw; bp -= dstw; } A_VAL(&col1) = (yy - (y << 16)) >> 8; A_VAL(&col0) = 255 - A_VAL(&col1); if (ca < 255) { MULT(A_VAL(&col0), ca, A_VAL(&col0), tmp); MULT(A_VAL(&col1), ca, A_VAL(&col1), tmp); } len = rx - lx; if (IN_RANGE(lx, ty, clw, clh)) pfunc(col1, tp); if (IN_RANGE(lx, ty + 1, clw, clh)) pfunc(col0, tp + dstw); if (IN_RANGE(rx, ty + 1, clw, clh)) pfunc(col0, tp + dstw + len); if (IN_RANGE(rx, ty, clw, clh)) pfunc(col1, tp + len); if (IN_RANGE(lx, by, clw, clh)) pfunc(col1, bp); if (IN_RANGE(lx, by - 1, clw, clh)) pfunc(col0, bp - dstw); if (IN_RANGE(rx, by - 1, clw, clh)) pfunc(col0, bp - dstw + len); if (IN_RANGE(rx, by, clw, clh)) pfunc(col1, bp + len); dy += b2; yy -= ((dy << 16) / dx); lx--; rx++; tp--; bp--; if ((lx < 0) && (rx > clw)) return; if ((ty > clh) || (by < 0)) return; } y = yy >> 16; xx = yy; prev_x = y; dx = dy; ty++; by--; tp += dstw; bp -= dstw; while (ty < yc) { int len; DATA32 tmp; x = xx >> 16; if (prev_x != x) { prev_x = x; dy += b2; lx--; rx++; tp--; bp--; } A_VAL(&col1) = (xx - (x << 16)) >> 8; A_VAL(&col0) = 255 - A_VAL(&col1); if (ca < 255) { MULT(A_VAL(&col0), ca, A_VAL(&col0), tmp); MULT(A_VAL(&col1), ca, A_VAL(&col1), tmp); } len = rx - lx; if (IN_RANGE(lx, ty, clw, clh)) pfunc(col1, tp); if (IN_RANGE(lx + 1, ty, clw, clh) && (x != y)) pfunc(col0, tp + 1); if (IN_RANGE(rx - 1, ty, clw, clh) && (x != y)) pfunc(col0, tp + len - 1); if (IN_RANGE(rx, ty, clw, clh)) pfunc(col1, tp + len); if (IN_RANGE(lx, by, clw, clh)) pfunc(col1, bp); if (IN_RANGE(lx + 1, by, clw, clh) && (x != y)) pfunc(col0, bp + 1); if (IN_RANGE(rx - 1, by, clw, clh) && (x != y)) pfunc(col0, bp + len - 1); if (IN_RANGE(rx, by, clw, clh)) pfunc(col1, bp + len); dx -= a2; xx += ((dx << 16) / dy); ty++; by--; tp += dstw; bp -= dstw; if ((lx < 0) && (rx > clw)) return; if ((ty > clh) || (by < 0)) return; } } static void __imlib_Ellipse_FillToData(int xc, int yc, int a, int b, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibPointDrawFunction pfunc; ImlibSpanDrawFunction sfunc; int xx, yy, x, y, prev_x, prev_y, ty, by, lx, rx; DATA32 a2, b2, *tp, *bp; DATA64 dx, dy; if (A_VAL(&color) == 0xff) blend = 0; pfunc = __imlib_GetPointDrawFunction(op, dst_alpha, blend); sfunc = __imlib_GetSpanDrawFunction(op, dst_alpha, blend); if ((!sfunc) || (!pfunc)) return; xc -= clx; yc -= cly; dst += (dstw * cly) + clx; a2 = a * a; b2 = b * b; yy = b << 16; prev_y = b; dx = a2 * b; dy = 0; ty = yc - b - 1; by = yc + b; lx = xc - 1; rx = xc; tp = dst + (dstw * ty) + lx; bp = dst + (dstw * by) + lx; while (dy < dx) { int len; DATA32 *tpp, *bpp; y = yy >> 16; y += ((yy - (y << 16)) >> 15); if (prev_y != y) { prev_y = y; dx -= a2; ty++; by--; tp += dstw; bp -= dstw; tpp = tp + 1; bpp = bp + 1; len = rx; if (len > clw) len = clw; len -= (lx + 1); if (lx < -1) { len += (lx + 1); tpp -= (lx + 1); bpp -= (lx + 1); } if (((unsigned)ty < (unsigned)clh) && (len > 0)) sfunc(color, tpp, len); if (((unsigned)by < (unsigned)clh) && (len > 0)) sfunc(color, bpp, len); } len = rx - lx; if (IN_RANGE(lx, ty, clw, clh)) pfunc(color, tp); if (IN_RANGE(rx, ty, clw, clh)) pfunc(color, tp + len); if (IN_RANGE(lx, by, clw, clh)) pfunc(color, bp); if (IN_RANGE(rx, by, clw, clh)) pfunc(color, bp + len); dy += b2; yy -= ((dy << 16) / dx); lx--; rx++; tp--; bp--; if ((ty > clh) || (by < 0)) return; } xx = yy; prev_x = xx >> 16; dx = dy; ty++; by--; tp += dstw; bp -= dstw; while (ty < yc) { int len; DATA32 *tpp, *bpp; x = xx >> 16; x += ((xx - (x << 16)) >> 15); if (prev_x != x) { prev_x = x; dy += b2; lx--; rx++; tp--; bp--; } tpp = tp; bpp = bp; len = rx + 1; if (len > clw) len = clw; len -= lx; if (lx < 0) { len += lx; tpp -= lx; bpp -= lx; } if (((unsigned)ty < (unsigned)clh) && (len > 0)) sfunc(color, tpp, len); if (((unsigned)by < (unsigned)clh) && (len > 0)) sfunc(color, bpp, len); dx -= a2; xx += ((dx << 16) / dy); ty++; by--; tp += dstw; bp -= dstw; if ((ty > clh) || (by < 0)) return; } } static void __imlib_Ellipse_FillToData_AA(int xc, int yc, int a, int b, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, ImlibOp op, char dst_alpha, char blend) { ImlibPointDrawFunction pfunc; ImlibSpanDrawFunction sfunc; int xx, yy, x, y, prev_x, prev_y, ty, by, lx, rx; DATA32 a2, b2, col1, *tp, *bp; DATA64 dx, dy; DATA8 ca = A_VAL(&color); pfunc = __imlib_GetPointDrawFunction(op, dst_alpha, blend); if (ca == 0xff) blend = 0; sfunc = __imlib_GetSpanDrawFunction(op, dst_alpha, blend); if ((!pfunc) || (!sfunc)) return; xc -= clx; yc -= cly; dst += (dstw * cly) + clx; col1 = color; a2 = a * a; b2 = b * b; yy = b << 16; prev_y = b; dx = a2 * b; dy = 0; ty = yc - b - 2; by = yc + b + 1; lx = xc - 1; rx = xc; tp = dst + (dstw * ty) + lx; bp = dst + (dstw * by) + lx; while (dy < dx) { int len; DATA32 tmp, *tpp, *bpp; y = yy >> 16; if (prev_y != y) { prev_y = y; dx -= a2; ty++; by--; tp += dstw; bp -= dstw; tpp = tp + 1; bpp = bp + 1; len = rx; if (len > clw) len = clw; len -= (lx + 1); if (lx < -1) { len += (lx + 1); tpp -= (lx + 1); bpp -= (lx + 1); } if (((unsigned)ty < (unsigned)clh) && (len > 0)) sfunc(color, tpp, len); if (((unsigned)by < (unsigned)clh) && (len > 0)) sfunc(color, bpp, len); } A_VAL(&col1) = ((yy - (y << 16)) >> 8); if (ca < 255) MULT(A_VAL(&col1), ca, A_VAL(&col1), tmp); len = rx - lx; if (IN_RANGE(lx, ty, clw, clh)) pfunc(col1, tp); if (IN_RANGE(rx, ty, clw, clh)) pfunc(col1, tp + len); if (IN_RANGE(lx, by, clw, clh)) pfunc(col1, bp); if (IN_RANGE(rx, by, clw, clh)) pfunc(col1, bp + len); dy += b2; yy -= ((dy << 16) / dx); lx--; rx++; tp--; bp--; if ((ty > clh) || (by < 0)) return; } y = yy >> 16; xx = yy; prev_x = y; dx = dy; ty++; by--; tp += dstw; bp -= dstw; while (ty < yc) { int len; DATA32 tmp, *tpp, *bpp; x = xx >> 16; if (prev_x != x) { prev_x = x; dy += b2; lx--; rx++; tp--; bp--; } tpp = tp + 1; bpp = bp + 1; len = rx; if (len > clw) len = clw; len -= (lx + 1); if (lx < -1) { len += (lx + 1); tpp -= (lx + 1); bpp -= (lx + 1); } if (((unsigned)ty < (unsigned)clh) && (len > 0)) sfunc(color, tpp, len); if (((unsigned)by < (unsigned)clh) && (len > 0)) sfunc(color, bpp, len); A_VAL(&col1) = ((xx - (x << 16)) >> 8); if (ca < 255) MULT(A_VAL(&col1), ca, A_VAL(&col1), tmp); len = rx - lx; if (IN_RANGE(lx, ty, clw, clh)) pfunc(col1, tp); if (IN_RANGE(rx, ty, clw, clh)) pfunc(col1, tp + len); if (IN_RANGE(lx, by, clw, clh)) pfunc(col1, bp); if (IN_RANGE(rx, by, clw, clh)) pfunc(col1, bp + len); dx -= a2; xx += ((dx << 16) / dy); ty++; by--; tp += dstw; bp -= dstw; if ((ty > clh) || (by < 0)) return; } } void __imlib_Ellipse_DrawToImage(int xc, int yc, int a, int b, DATA32 color, ImlibImage * im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias) { int x, y, w, h; if ((a == 0) || (b == 0)) { (void)__imlib_Line_DrawToImage(xc - a, yc - b, xc + a, yc + b, color, im, clx, cly, clw, clh, op, blend, anti_alias, 0); return; } if (blend && (!A_VAL(&color))) return; if (clw < 0) return; if (clw == 0) { clw = im->w; clx = 0; clh = im->h; cly = 0; } CLIP_RECT_TO_RECT(clx, cly, clw, clh, 0, 0, im->w, im->h); if ((clw < 1) || (clh < 1)) return; if (a < 0) a = -a; if (b < 0) b = -b; if (a > 65535) a = 65535; if (b > 65535) b = 65535; w = 2 * (a + 1); h = 2 * (b + 1); x = xc - a - 1; y = yc - b - 1; if (anti_alias) { w += 2; h += 2; x--; y--; } CLIP_RECT_TO_RECT(x, y, w, h, clx, cly, clw, clh); if ((w < 1) || (h < 1)) return; if (blend && IMAGE_HAS_ALPHA(im)) __imlib_build_pow_lut(); if (anti_alias) __imlib_Ellipse_DrawToData_AA(xc, yc, a, b, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); else __imlib_Ellipse_DrawToData(xc, yc, a, b, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); } void __imlib_Ellipse_FillToImage(int xc, int yc, int a, int b, DATA32 color, ImlibImage * im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias) { int x, y, w, h; if ((a == 0) || (b == 0)) { (void)__imlib_Line_DrawToImage(xc - a, yc - b, xc + a, yc + b, color, im, clx, cly, clw, clh, op, blend, anti_alias, 0); return; } if (blend && (!A_VAL(&color))) return; if (clw < 0) return; if (clw == 0) { clw = im->w; clx = 0; clh = im->h; cly = 0; } CLIP_RECT_TO_RECT(clx, cly, clw, clh, 0, 0, im->w, im->h); if ((clw < 1) || (clh < 1)) return; if (a < 0) a = -a; if (b < 0) b = -b; if (a > 65535) a = 65535; if (b > 65535) b = 65535; w = 2 * (a + 1); h = 2 * (b + 1); x = xc - a - 1; y = yc - b - 1; if (anti_alias) { w += 2; h += 2; x--; y--; } CLIP_RECT_TO_RECT(x, y, w, h, clx, cly, clw, clh); if ((w < 1) || (h < 1)) return; if (blend && IMAGE_HAS_ALPHA(im)) __imlib_build_pow_lut(); if (anti_alias) __imlib_Ellipse_FillToData_AA(xc, yc, a, b, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); else __imlib_Ellipse_FillToData(xc, yc, a, b, color, im->data, im->w, clx, cly, clw, clh, op, IMAGE_HAS_ALPHA(im), blend); } imlib2-1.4.6/src/lib/font_load.c0000664000175000017500000002704712255265152013310 00000000000000#include "config.h" #include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include #include FT_FREETYPE_H #include FT_GLYPH_H #include "font.h" #include #include #include #include "file.h" #include "updates.h" #include "rgbadraw.h" #include "rotate.h" extern FT_Library ft_lib; static int font_cache_usage = 0; static int font_cache = 0; static char **fpath = NULL; static int fpath_num = 0; static Imlib_Object_List *fonts = NULL; static ImlibFont *imlib_font_load(const char *name, int faceidx, int size); static int font_modify_cache_cb(Imlib_Hash * hash, const char *key, void *data, void *fdata); static int font_flush_free_glyph_cb(Imlib_Hash * hash, const char *key, void *data, void *fdata); /* FIXME now! listdir() from evas_object_text.c */ /* separate fontname and size, find font file, start imlib_font_load() then */ ImlibFont * imlib_font_load_joined(const char *fontname) { int j, k, size, faceidx, namelen; char *name, *file = NULL, *tmp; ImlibFont *fn; /* split font name (in format name[:faceidx]/size) */ for (j = strlen(fontname) - 1; (j >= 0) && (fontname[j] != '/'); j--) ; /* no "/" in font after the first char */ if (j <= 0) return NULL; /* get size */ size = atoi(&(fontname[j + 1])); /* split font faceidx index (in format name[:faceidx]/size) */ faceidx = 0; for (k = j - 1; k > 0; k--) { if (fontname[k] >= '0' && fontname[k] <= '9') continue; if (fontname[k] != ':') break; faceidx = atoi(&(fontname[k + 1])); if (faceidx < 0) faceidx = 0; j = k; break; } namelen = j; /* split name in front off */ name = malloc(namelen + 1); memcpy(name, fontname, namelen); name[namelen] = 0; /* find file if it exists */ tmp = malloc(namelen + 4 + 1); if (!tmp) goto done; sprintf(tmp, "%s.ttf", name); if (__imlib_FileIsFile(tmp)) file = strdup(tmp); else { sprintf(tmp, "%s.TTF", name); if (__imlib_FileIsFile(tmp)) file = strdup(tmp); else { sprintf(tmp, "%s", name); if (__imlib_FileIsFile(tmp)) file = strdup(tmp); } } free(tmp); if (!file) { for (j = 0; (j < fpath_num) && (!file); j++) { tmp = malloc(strlen(fpath[j]) + 1 + namelen + 4 + 1); if (!tmp) goto done; sprintf(tmp, "%s/%s.ttf", fpath[j], name); if (__imlib_FileIsFile(tmp)) file = strdup(tmp); else { sprintf(tmp, "%s/%s.TTF", fpath[j], name); if (__imlib_FileIsFile(tmp)) file = strdup(tmp); else { sprintf(tmp, "%s/%s", fpath[j], name); if (__imlib_FileIsFile(tmp)) file = strdup(tmp); } } free(tmp); } } done: free(name); /* didn't find a file? abort */ if (!file) return NULL; fn = imlib_font_load(file, faceidx, size); free(file); return fn; } static ImlibFont * imlib_font_load(const char *name, int faceidx, int size) { int error; ImlibFont *fn; char *file; fn = imlib_font_find(name, size); if (fn) return fn; imlib_font_init(); fn = malloc(sizeof(ImlibFont)); file = (char *)name; error = FT_New_Face(ft_lib, file, faceidx, &(fn->ft.face)); if (error) { free(fn); return NULL; } error = FT_Set_Char_Size(fn->ft.face, 0, (size * 64), 96, 96); if (error) error = FT_Set_Pixel_Sizes(fn->ft.face, 0, size); if (error) { int i; int chosen_size = 0; int chosen_width = 0; for (i = 0; i < fn->ft.face->num_fixed_sizes; i++) { int s; int d, cd; s = fn->ft.face->available_sizes[i].height; cd = chosen_size - size; if (cd < 0) cd = -cd; d = s - size; if (d < 0) d = -d; if (d < cd) { chosen_width = fn->ft.face->available_sizes[i].width; chosen_size = s; } if (d == 0) break; } error = FT_Set_Pixel_Sizes(fn->ft.face, chosen_width, chosen_size); if (error) { /* couldn't choose the size anyway... what now? */ } } error = FT_Select_Charmap(fn->ft.face, ft_encoding_unicode); if (error) { } fn->file = strdup(file); fn->name = strdup(file); fn->size = size; fn->glyphs = NULL; fn->usage = 0; fn->references = 1; fn->fallback_prev = NULL; fn->fallback_next = NULL; fonts = imlib_object_list_prepend(fonts, fn); return fn; } void imlib_font_free(ImlibFont * fn) { fn->references--; if (fn->references == 0) { imlib_font_modify_cache_by(fn, 1); imlib_font_flush(); } } int imlib_font_insert_into_fallback_chain_imp(ImlibFont * fn, ImlibFont * fallback) { /* avoid infinite recursion */ if (fn == fallback) return 1; /* now remove the given fallback font from any chain it's already in */ imlib_font_remove_from_fallback_chain_imp(fallback); /* insert fallback into fn's font chain */ ImlibFont *tmp = fn->fallback_next; fn->fallback_next = fallback; fallback->fallback_prev = fn; fallback->fallback_next = tmp; if (tmp) tmp->fallback_prev = fallback; return 0; } void imlib_font_remove_from_fallback_chain_imp(ImlibFont * fn) { /* if fn has a previous font in its font chain, then make its fallback_next fn's fallback_next since fn is going away */ if (fn->fallback_prev) fn->fallback_prev->fallback_next = fn->fallback_next; fn->fallback_prev = NULL; fn->fallback_next = NULL; } static int font_modify_cache_cb(Imlib_Hash * hash, const char *key, void *data, void *fdata) { int *dir; Imlib_Font_Glyph *fg; fg = data; dir = fdata; font_cache_usage += (*dir) * ((fg->glyph_out->bitmap.width * fg->glyph_out->bitmap.rows) + sizeof(Imlib_Font_Glyph) + sizeof(Imlib_Object_List) + 400); /* fudge values */ return 1; } void imlib_font_modify_cache_by(ImlibFont * fn, int dir) { int sz_name = 0, sz_file = 0, sz_hash = 0; if (fn->name) sz_name = strlen(fn->name); if (fn->file) sz_file = strlen(fn->file); if (fn->glyphs) sz_hash = sizeof(Imlib_Hash); imlib_hash_foreach(fn->glyphs, font_modify_cache_cb, &dir); font_cache_usage += dir * (sizeof(ImlibFont) + sz_name + sz_file + sz_hash + sizeof(FT_FaceRec) + 16384); /* fudge values */ } int imlib_font_cache_get(void) { return font_cache; } void imlib_font_cache_set(int size) { font_cache = size; imlib_font_flush(); } void imlib_font_flush(void) { if (font_cache_usage < font_cache) return; while (font_cache_usage > font_cache) imlib_font_flush_last(); } static int font_flush_free_glyph_cb(Imlib_Hash * hash, const char *key, void *data, void *fdata) { Imlib_Font_Glyph *fg; fg = data; FT_Done_Glyph(fg->glyph); free(fg); return 1; } void imlib_font_flush_last(void) { Imlib_Object_List *l; ImlibFont *fn = NULL; for (l = fonts; l; l = l->next) { ImlibFont *fn_tmp; fn_tmp = (ImlibFont *) l; if (fn_tmp->references == 0) fn = fn_tmp; } if (!fn) return; fonts = imlib_object_list_remove(fonts, fn); imlib_font_modify_cache_by(fn, -1); imlib_hash_foreach(fn->glyphs, font_flush_free_glyph_cb, NULL); imlib_hash_free(fn->glyphs); if (fn->file) free(fn->file); if (fn->name) free(fn->name); FT_Done_Face(fn->ft.face); free(fn); } ImlibFont * imlib_font_find(const char *name, int size) { Imlib_Object_List *l; for (l = fonts; l; l = l->next) { ImlibFont *fn; fn = (ImlibFont *) l; if ((fn->size == size) && (!strcmp(name, fn->name))) { if (fn->references == 0) imlib_font_modify_cache_by(fn, -1); fn->references++; fonts = imlib_object_list_remove(fonts, fn); fonts = imlib_object_list_prepend(fonts, fn); return fn; } } return NULL; } /* font pathes */ void imlib_font_add_font_path(const char *path) { fpath_num++; if (!fpath) fpath = malloc(sizeof(char *)); else fpath = realloc(fpath, (fpath_num * sizeof(char *))); fpath[fpath_num - 1] = strdup(path); } void imlib_font_del_font_path(const char *path) { int i, j; for (i = 0; i < fpath_num; i++) { if (!strcmp(path, fpath[i])) { if (fpath[i]) free(fpath[i]); fpath_num--; for (j = i; j < fpath_num; j++) fpath[j] = fpath[j + 1]; if (fpath_num > 0) fpath = realloc(fpath, fpath_num * sizeof(char *)); else { free(fpath); fpath = NULL; } } } } int imlib_font_path_exists(const char *path) { int i; for (i = 0; i < fpath_num; i++) { if (!strcmp(path, fpath[i])) return 1; } return 0; } char ** imlib_font_list_font_path(int *num_ret) { *num_ret = fpath_num; return fpath; } /* fonts list */ char ** imlib_font_list_fonts(int *num_ret) { int i, j, d, l = 0; char **list = NULL, **dir, *path; FT_Error error; char *p; imlib_font_init(); for (i = 0; i < fpath_num; i++) { dir = __imlib_FileDir(fpath[i], &d); if (dir) { for (j = 0; j < d; j++) { path = malloc(strlen(fpath[i]) + strlen(dir[j]) + 2); sprintf(path, "%s/%s", fpath[i], dir[j]); /* trim .ttf if it is there */ if ((p = strrchr(dir[j], '.'))) *p = '\0'; if (!__imlib_ItemInList(list, l, dir[j])) { if (__imlib_FileIsFile(path)) { FT_Face f; error = FT_New_Face(ft_lib, path, 0, &f); if (!error) { FT_Done_Face(f); l++; if (list) list = realloc(list, sizeof(char *) * l); else list = malloc(sizeof(char *)); list[l - 1] = strdup(dir[j]); } free(dir[j]); } } free(path); } free(dir); } } *num_ret = l; return list; } imlib2-1.4.6/src/lib/format.c0000664000175000017500000000002412165477120012615 00000000000000#include "format.h" imlib2-1.4.6/src/lib/draw.c0000664000175000017500000000520312255265113012263 00000000000000#include "common.h" #ifdef BUILD_X11 #include #include #include "colormod.h" #include "image.h" #include "blend.h" #include "rend.h" #include "draw.h" char __imlib_CreatePixmapsForImage(Display * d, Drawable w, Visual * v, int depth, Colormap cm, ImlibImage * im, Pixmap * p, Mask * m, int sx, int sy, int sw, int sh, int dw, int dh, char antialias, char hiq, char dither_mask, int mat, ImlibColorModifier * cmod) { ImlibImagePixmap *ip = NULL; Pixmap pmap = 0; Pixmap mask = 0; long long mod_count = 0; if (cmod) mod_count = cmod->modification_count; ip = __imlib_FindCachedImagePixmap(im, dw, dh, d, v, depth, sx, sy, sw, sh, cm, antialias, hiq, dither_mask, mod_count); if (ip) { if (p) *p = ip->pixmap; if (m) *m = ip->mask; ip->references++; #ifdef DEBUG_CACHE fprintf(stderr, "[Imlib2] Match found in cache. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n", ip->references, ip->pixmap, ip->mask); #endif return 2; } if (p) { pmap = XCreatePixmap(d, w, dw, dh, depth); *p = pmap; } if (m) { if (IMAGE_HAS_ALPHA(im)) mask = XCreatePixmap(d, w, dw, dh, 1); *m = mask; } __imlib_RenderImage(d, im, pmap, mask, v, cm, depth, sx, sy, sw, sh, 0, 0, dw, dh, antialias, hiq, 0, dither_mask, mat, cmod, OP_COPY); ip = __imlib_ProduceImagePixmap(); ip->visual = v; ip->depth = depth; ip->image = im; if (im->file) ip->file = strdup(im->file); ip->border.left = im->border.left; ip->border.right = im->border.right; ip->border.top = im->border.top; ip->border.bottom = im->border.bottom; ip->colormap = cm; ip->display = d; ip->w = dw; ip->h = dh; ip->source_x = sx; ip->source_y = sy; ip->source_w = sw; ip->source_h = sh; ip->antialias = antialias; ip->modification_count = mod_count; ip->dither_mask = dither_mask; ip->hi_quality = hiq; ip->references = 1; ip->pixmap = pmap; ip->mask = mask; __imlib_AddImagePixmapToCache(ip); #ifdef DEBUG_CACHE fprintf(stderr, "[Imlib2] Created pixmap. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n", ip->references, ip->pixmap, ip->mask); #endif return 1; } #endif /* BUILD_X11 */ imlib2-1.4.6/src/lib/asm.h0000664000175000017500000000101312255265053012111 00000000000000#ifndef __ASM_H #define __ASM_H #ifdef __EMX__ /* Due to strange behaviour of as.exe we use this macros */ /* For all OS/2 coders - please use PGCC to compile this code */ # define PR_(sym) ___##sym #else # define PR_(sym) __##sym #endif #if defined(__GNUC__) && (__GNUC__ >= 4) # define HIDDEN_(sym) .hidden PR_(sym) #else # define HIDDEN_(sym) #endif #define FN_(sym) \ .global PR_(sym); \ HIDDEN_(sym); \ .type PR_(sym),@function; #define SIZE(sym) \ .size PR_(sym),.-PR_(sym); \ .align 8; #endif /* __ASM_H */ imlib2-1.4.6/src/lib/updates.c0000664000175000017500000001144412165477120013002 00000000000000#include "common.h" #include "updates.h" enum _t_used { T_UNUSED = 0, T_USED = 1 }; struct _tile { enum _t_used used; }; #define TBITS 5 #define TB TBITS #define TM ((1 << TBITS) - 1) #define TS (1 << TBITS) #define T(x, y) t[((y) * tw) + (x)] ImlibUpdate * __imlib_MergeUpdate(ImlibUpdate * u, int w, int h, int hgapmax) { ImlibUpdate *nu = NULL, *uu; struct _tile *t; int tw, th, x, y, i; int *gaps = NULL; /* if theres no rects to process.. return NULL */ if (!u) return NULL; tw = w >> TB; if (w & TM) tw++; th = h >> TB; if (h & TM) th++; t = malloc(tw * th * sizeof(struct _tile)); /* fill in tiles to be all not used */ for (i = 0, y = 0; y < th; y++) { for (x = 0; x < tw; x++) t[i++].used = T_UNUSED; } /* fill in all tiles */ for (uu = u; uu; uu = uu->next) { CLIP(uu->x, uu->y, uu->w, uu->h, 0, 0, w, h); for (y = uu->y >> TB; y <= ((uu->y + uu->h - 1) >> TB); y++) { for (x = uu->x >> TB; x <= ((uu->x + uu->w - 1) >> TB); x++) T(x, y).used = T_USED; } } /* scan each line - if > hgapmax gaps between tiles, then fill smallest */ gaps = malloc(tw * sizeof(int)); for (y = 0; y < th; y++) { int hgaps = 0, start = -1, min; char have = 1, gap = 0; for (x = 0; x < tw; x++) gaps[x] = 0; for (x = 0; x < tw; x++) { if ((have) && (T(x, y).used == T_UNUSED)) { start = x; gap = 1; have = 0; } else if ((!have) && (gap) && (T(x, y).used & T_USED)) { gap = 0; hgaps++; have = 1; gaps[start] = x - start; } else if (T(x, y).used & T_USED) have = 1; } while (hgaps > hgapmax) { start = -1; min = tw; for (x = 0; x < tw; x++) { if ((gaps[x] > 0) && (gaps[x] < min)) { start = x; min = gaps[x]; } } if (start >= 0) { gaps[start] = 0; for (x = start; T(x, y).used == T_UNUSED; T(x++, y).used = T_USED); hgaps--; } } } free(gaps); /* coalesce tiles into larger blocks and make new rect list */ for (y = 0; y < th; y++) { for (x = 0; x < tw; x++) { if (T(x, y).used & T_USED) { int xx, yy, ww, hh, ok; for (xx = x + 1, ww = 1; (T(xx, y).used & T_USED) && (xx < tw); xx++, ww++); for (yy = y + 1, hh = 1, ok = 1; (yy < th) && (ok); yy++, hh++) { for (xx = x; xx < (x + ww); xx++) { if (!(T(xx, yy).used & T_USED)) { ok = 0; xx = x + ww; hh--; } } } for (yy = y; yy < (y + hh); yy++) { for (xx = x; xx < (x + ww); xx++) T(xx, yy).used = T_UNUSED; } nu = __imlib_AddUpdate(nu, (x << TB), (y << TB), (ww << TB), (hh << TB)); } } } free(t); __imlib_FreeUpdates(u); return nu; } ImlibUpdate * __imlib_AddUpdate(ImlibUpdate * u, int x, int y, int w, int h) { ImlibUpdate *nu; if ((w < 1) || (h < 1) || ((x + w) < 1) || ((y + h) < 1)) return u; nu = malloc(sizeof(ImlibUpdate)); nu->x = x; nu->y = y; nu->w = w; nu->h = h; nu->next = u; return nu; } void __imlib_FreeUpdates(ImlibUpdate * u) { ImlibUpdate *uu; uu = u; while (uu) { u = uu; uu = uu->next; free(u); } } ImlibUpdate * __imlib_DupUpdates(ImlibUpdate * u) { ImlibUpdate *uu, *cu, *pu, *ru; if (!u) return NULL; uu = malloc(sizeof(ImlibUpdate)); memcpy(uu, u, sizeof(ImlibUpdate)); cu = u->next; pu = u; ru = uu; while (cu) { uu = malloc(sizeof(ImlibUpdate)); memcpy(uu, u, sizeof(ImlibUpdate)); pu->next = uu; pu = cu; cu = cu->next; } return ru; } imlib2-1.4.6/src/lib/script.c0000664000175000017500000002013712255265135012641 00000000000000#include "common.h" #include #include #include #include #include #include #include #include #include #include #include #ifdef BUILD_X11 #include #else #define X_DISPLAY_MISSING #endif #include "image.h" #include "file.h" #include "dynamic_filters.h" #include "script.h" #include "loaderpath.h" /* #define FDEBUG 1 */ #ifdef FDEBUG #define D( str ) printf( "DEBUG: %s\n", str ) #else #define D( str ) #endif IVariable *vars, *current_var, *curtail; static int __imlib_find_string(const char *haystack, const char *needle) { if (strstr(haystack, needle)) return (strstr(haystack, needle) - haystack); return 0; } static char * __imlib_stripwhitespace(char *str) { int i, strt = 0, in_quote = 0, str_len; char *tmpstr = NULL; str_len = strlen(str); tmpstr = calloc(str_len + 1, sizeof(char)); for (i = 0; i < str_len; i++) { if (str[i] == '\"') in_quote = (in_quote == 0 ? 1 : 0); if (in_quote || !isspace(*(str + i))) tmpstr[strt++] = str[i]; } strcpy(str, tmpstr); free(tmpstr); return str; } static char * __imlib_copystr(char *str, int start, int end) { int i = 0; char *rstr = calloc(1024, sizeof(char)); if (start <= end && end < (int)strlen(str)) { for (i = start; i <= end; i++) rstr[i - start] = str[i]; return rstr; } return NULL; } static void __imlib_script_tidyup_params(IFunctionParam * param) { if (param->next) { __imlib_script_tidyup_params(param->next); } free(param->key); if (param->type == VAR_CHAR) free(param->data); free(param); } static void __imlib_script_delete_variable(IVariable * var) { if (var->next) __imlib_script_delete_variable(var->next); free(var); } void __imlib_script_tidyup(void) { __imlib_script_delete_variable(vars); } void * __imlib_script_get_next_var(void) { if (current_var) current_var = current_var->next; if (current_var) return current_var->ptr; else return NULL; } void __imlib_script_add_var(void *ptr) { curtail->next = malloc(sizeof(IVariable)); curtail = curtail->next; curtail->ptr = ptr; curtail->next = NULL; } IFunctionParam * __imlib_script_parse_parameters(Imlib_Image im, char *parameters) { int i = 0, in_quote = 0, depth = 0, start = 0, value_start = 0; int param_len; char *value = NULL; IFunctionParam *rootptr, *ptr; D("(--) ===> Entering __imlib_script_parse_parameters()"); rootptr = malloc(sizeof(IFunctionParam)); rootptr->key = strdup("NO-KEY"); rootptr->type = VAR_CHAR; rootptr->data = strdup("NO-VALUE"); rootptr->next = NULL; ptr = rootptr; param_len = strlen(parameters); for (i = 0; i <= param_len; i++) { if (parameters[i] == '\"') in_quote = (in_quote == 0 ? 1 : 0); if (!in_quote && parameters[i] == '(') depth++; if (!in_quote && parameters[i] == ')') depth--; if (!in_quote && parameters[i] == '=' && depth == 0) value_start = i + 1; if (!in_quote && (parameters[i] == ',' || i == param_len) && depth == 0) { ptr->next = malloc(sizeof(IFunctionParam)); ptr = ptr->next; ptr->key = __imlib_copystr(parameters, start, value_start - 2); value = __imlib_copystr(parameters, value_start, i - 1); #ifdef FDEBUG printf("DEBUG: (--) --> Variable \"%s\" = \"%s\"\n", ptr->key, value); #endif if (__imlib_find_string(value, "(") < __imlib_find_string(value, "\"")) { D("(--) Found a function"); ptr->data = __imlib_script_parse_function(im, value); ptr->type = VAR_PTR; free(value); } else { if (strcmp(value, "[]") == 0) { ptr->data = __imlib_script_get_next_var(); if (!ptr->data) { D("EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEK"); } /* printf( "Using pointer variable %p\n", ptr->data ); */ ptr->type = VAR_PTR; free(value); } else { ptr->data = value; ptr->type = VAR_CHAR; } } ptr->next = NULL; start = i + 1; } } D("(--) <=== Leaving __imlib_script_parse_parameters()"); return rootptr; } Imlib_Image __imlib_script_parse_function(Imlib_Image im, char *function) { char *funcname, *funcparams; IFunctionParam *params; ImlibExternalFilter *filter = NULL; Imlib_Image retval; D("(--) ===> Entering __imlib_script_parse_function()"); funcname = __imlib_copystr(function, 0, __imlib_find_string(function, "(") - 1); funcparams = __imlib_copystr(function, __imlib_find_string(function, "(") + 1, strlen(function) - 2); #ifdef FDEBUG printf("DEBUG: (?\?) = function <%s>( \"%s\" )\n", funcname, funcparams); #endif params = __imlib_script_parse_parameters(im, funcparams); /* excute the filter */ filter = __imlib_get_dynamic_filter(funcname); if (filter) { #ifdef FDEBUG printf("DEBUG: (--) Executing Filter \"%s\".\n", funcname); #endif retval = filter->exec_filter(funcname, im, params); } else { #ifdef FDEBUG printf ("DEBUG: (!!) Can't find filter \"%s\", returning given image.\n", funcname); #endif retval = im; } D("Get Here"); /* clean up params */ free(funcname); free(funcparams); __imlib_script_tidyup_params(params); D("(--) <=== Leaving __imlib_script_parse_function()"); return retval; } Imlib_Image __imlib_script_parse(Imlib_Image im, char *script, va_list param_list) { int i = 0, in_quote = 0, start = 0, depth = 0; int script_len; char *scriptbuf = NULL, *function; D("(--) Script Parser Start."); if (script && script[0] != 0) { vars = malloc(sizeof(IVariable)); vars->ptr = NULL; vars->next = NULL; curtail = vars; current_var = vars; /* gather up variable from the command line */ D("(--) String Whitespace from script."); scriptbuf = __imlib_stripwhitespace(strdup(script)); i = __imlib_find_string(scriptbuf + start, "=[]") - 1; while (i > 0) { __imlib_script_add_var(va_arg(param_list, void *)); start = start + i + 2; i = __imlib_find_string(scriptbuf + start, "=[]") - 1; i = (i == 0 ? 0 : i); D("(?\?) Found pointer variable"); } start = 0; i = 0; script_len = strlen(scriptbuf); for (i = 0; i < script_len; i++) { if (script[i] == '\"') in_quote = (in_quote == 0 ? 1 : 0); if (!in_quote && script[i] == '(') depth++; if (!in_quote && script[i] == ')') depth--; if (!in_quote && (script[i] == ';') && depth == 0) { function = __imlib_copystr(scriptbuf, start, i - 1); im = __imlib_script_parse_function(im, function); imlib_context_set_image(im); start = i + 1; free(function); } } D("(--) Cleaning up parameter list"); __imlib_script_tidyup(); D("(--) Script Parser Successful."); free(scriptbuf); return im; } else { D("(!!) Script Parser Failed."); return NULL; } } imlib2-1.4.6/src/lib/line.c0000664000175000017500000005467312255265152012277 00000000000000#include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include "span.h" #include "updates.h" #include "rgbadraw.h" #define EXCHANGE_POINTS(x0, y0, x1, y1) \ do { \ int _tmp = y0; \ \ y0 = y1; \ y1 = _tmp; \ \ _tmp = x0; \ x0 = x1; \ x1 = _tmp; \ } while (0) ImlibUpdate * __imlib_Point_DrawToImage(int x, int y, DATA32 color, ImlibImage * im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char make_updates) { ImlibPointDrawFunction pfunc; if (blend && (!A_VAL(&color))) return NULL; if (!IN_RANGE(x, y, im->w, im->h)) return NULL; if (clw == 0) { clw = im->w; clx = 0; clh = im->h; cly = 0; } if (!IN_RECT(x, y, clx, cly, clw, clh)) return NULL; if (A_VAL(&color) == 0xff) blend = 0; if (blend && IMAGE_HAS_ALPHA(im)) __imlib_build_pow_lut(); pfunc = __imlib_GetPointDrawFunction(op, IMAGE_HAS_ALPHA(im), blend); if (pfunc) pfunc(color, im->data + (im->w * y) + x); if (make_updates) return __imlib_AddUpdate(NULL, x, y, 1, 1); return NULL; } static int __imlib_SimpleLine_DrawToData(int x0, int y0, int x1, int y1, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, int *cl_x0, int *cl_y0, int *cl_x1, int *cl_y1, ImlibOp op, char dst_alpha, char blend) { ImlibPointDrawFunction pfunc; ImlibSpanDrawFunction sfunc; int dx, dy, len, lx, ty, rx, by; DATA32 *p; if (A_VAL(&color) == 0xff) blend = 0; if (y0 > y1) EXCHANGE_POINTS(x0, y0, x1, y1); dx = x1 - x0; dy = y1 - y0; lx = clx; rx = clx + clw - 1; ty = cly; by = cly + clh - 1; if ((x0 < lx) && (x1 < lx)) return 0; if ((x0 > rx) && (x1 > rx)) return 0; if ((y0 > by) || (y1 < ty)) return 0; if (dy == 0) { sfunc = __imlib_GetSpanDrawFunction(op, dst_alpha, blend); if (!sfunc) return 0; if (dx < 0) { int tmp = x1; x1 = x0; x0 = tmp; } if (x0 < lx) x0 = lx; if (x1 > rx) x1 = rx; len = x1 - x0 + 1; p = dst + (dstw * y0) + x0; sfunc(color, p, len); *cl_x0 = x0; *cl_y0 = y0; *cl_x1 = x1; *cl_y1 = y1; return 1; } pfunc = __imlib_GetPointDrawFunction(op, dst_alpha, blend); if (!pfunc) return 0; if (dx == 0) { if (y0 < ty) y0 = ty; if (y1 > by) y1 = by; len = y1 - y0 + 1; p = dst + (dstw * y0) + x0; while (len--) { pfunc(color, p); p += dstw; } *cl_x0 = x0; *cl_y0 = y0; *cl_x1 = x1; *cl_y1 = y1; return 1; } if ((dy == dx) || (dy == -dx)) { int p0_in, p1_in; p0_in = (IN_RECT(x0, y0, clx, cly, clw, clh) ? 1 : 0); p1_in = (IN_RECT(x1, y1, clx, cly, clw, clh) ? 1 : 0); if (dx > 0) { if (!p0_in) { x0 = x0 + (ty - y0); y0 = ty; if (x0 > rx) return 0; if (x0 < lx) { y0 = y0 + (lx - x0); x0 = lx; if ((y0 < ty) || (y0 > by)) return 0; } } if (!p1_in) { x1 = x0 + (by - y0); y1 = by; if (x1 < lx) return 0; if (x1 > rx) { y1 = y0 + (rx - x0); x1 = rx; if ((y1 < ty) || (y1 > by)) return 0; } } } else { if (!p0_in) { x0 = x0 - (ty - y0); y0 = ty; if (x0 < lx) return 0; if (x0 > rx) { y0 = y0 - (rx - x0); x0 = rx; if ((y0 < ty) || (y0 > by)) return 0; } } if (!p1_in) { x1 = x0 - (by - y0); y1 = by; if (x1 > rx) return 0; if (x1 < lx) { y1 = y0 - (lx - x0); x1 = lx; if ((y1 < ty) || (y1 > by)) return 0; } } } len = y1 - y0 + 1; p = dst + (dstw * y0) + x0; if (dx > 0) dstw++; else dstw--; while (len--) { pfunc(color, p); p += dstw; } } *cl_x0 = x0; *cl_y0 = y0; *cl_x1 = x1; *cl_y1 = y1; return 1; } #define SETUP_LINE_SHALLOW() \ do { \ if (x0 > x1) \ { \ EXCHANGE_POINTS(x0, y0, x1, y1); \ dx = -dx; \ dy = -dy; \ } \ \ px = x0; \ py = y0; \ \ p0_in = (IN_RANGE(x0 ,y0 , clw, clh) ? 1 : 0); \ p1_in = (IN_RANGE(x1 ,y1 , clw, clh) ? 1 : 0); \ \ dely = 1; \ dh = dstw; \ if (dy < 0) \ { \ dely = -1; \ dh = -dstw; \ } \ \ dyy = (dy << 16) / dx; \ \ if (!p0_in) \ { \ dxx = (dx << 16) / dy; \ if (px < 0) \ { \ x = -px; px = 0; \ yy = x * dyy; \ y = yy >> 16; \ if (!a_a) \ y += (yy - (y << 16)) >> 15; \ py += y; \ if ((dely > 0) && (py >= clh)) \ return 0; \ else if ((dely < 0) && (py < -1)) \ return 0; \ } \ \ y = 0; \ if ((dely > 0) && (py < -1)) \ y = (-1 - py); \ else if ((dely < 0) && (py >= clh)) \ y = (clh - 1 - py); \ \ xx = y * dxx; \ x = xx >> 16; \ if (!a_a) \ x += (xx - (x << 16)) >> 15; \ px += x; \ if (px >= clw) return 0; \ \ yy = x * dyy; \ y = yy >> 16; \ if (!a_a) \ y += (yy - (y << 16)) >> 15; \ py += y; \ if ((dely > 0) && (py >= clh)) \ return 0; \ else if ((dely < 0) && (py < -1)) \ return 0; \ } \ \ p = dst + (dstw * py) + px; \ \ x = px - x0; \ yy = x * dyy; \ prev_y = (yy >> 16); \ \ rx = MIN(x1 + 1, clw); \ by = clh - 1; \ } while (0) #define SETUP_LINE_STEEP() \ do { \ if (y0 > y1) \ { \ EXCHANGE_POINTS(x0, y0, x1, y1); \ dx = -dx; \ dy = -dy; \ } \ \ px = x0; \ py = y0; \ \ p0_in = (IN_RANGE(x0 ,y0 , clw, clh) ? 1 : 0); \ p1_in = (IN_RANGE(x1 ,y1 , clw, clh) ? 1 : 0); \ \ delx = 1; \ if (dx < 0) \ delx = -1; \ \ dxx = (dx << 16) / dy; \ \ if (!p0_in) \ { \ dyy = (dy << 16) / dx; \ \ if (py < 0) \ { \ y = -py; py = 0; \ xx = y * dxx; \ x = xx >> 16; \ if (!a_a) \ x += (xx - (x << 16)) >> 15; \ px += x; \ if ((delx > 0) && (px >= clw)) \ return 0; \ else if ((delx < 0) && (px < -1)) \ return 0; \ } \ \ x = 0; \ if ((delx > 0) && (px < -1)) \ x = (-1 - px); \ else if ((delx < 0) && (px >= clw)) \ x = (clw - 1 - px); \ \ yy = x * dyy; \ y = yy >> 16; \ if (!a_a) \ y += (yy - (y << 16)) >> 15; \ py += y; \ if (py >= clh) return 0; \ \ xx = y * dxx; \ x = xx >> 16; \ if (!a_a) \ x += (xx - (x << 16)) >> 15; \ px += x; \ if ((delx > 0) && (px >= clw)) \ return 0; \ else if ((delx < 0) && (px < -1)) \ return 0; \ } \ \ p = dst + (dstw * py) + px; \ \ y = py - y0; \ xx = y * dxx; \ prev_x = (xx >> 16); \ \ by = MIN(y1 + 1, clh); \ rx = clw - 1; \ } while (0) static int __imlib_Line_DrawToData(int x0, int y0, int x1, int y1, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, int *cl_x0, int *cl_y0, int *cl_x1, int *cl_y1, ImlibOp op, char dst_alpha, char blend) { ImlibPointDrawFunction pfunc; int px, py, x, y, prev_x, prev_y; int dx, dy, rx, by, p0_in, p1_in, dh, a_a = 0; int delx, dely, xx, yy, dxx, dyy; DATA32 *p; dx = x1 - x0; dy = y1 - y0; if ((dx == 0) || (dy == 0) || (dx == dy) || (dx == -dy)) return __imlib_SimpleLine_DrawToData(x0, y0, x1, y1, color, dst, dstw, clx, cly, clw, clh, cl_x0, cl_y0, cl_x1, cl_y1, op, dst_alpha, blend); if (A_VAL(&color) == 0xff) blend = 0; pfunc = __imlib_GetPointDrawFunction(op, dst_alpha, blend); if (!pfunc) return 0; dst += (dstw * cly) + clx; x0 -= clx; y0 -= cly; x1 -= clx; y1 -= cly; /* shallow: x-parametric */ if (abs(dy) < abs(dx)) { SETUP_LINE_SHALLOW(); *cl_x0 = px + clx; *cl_y0 = py + cly; while (px < rx) { y = (yy >> 16); y += ((yy - (y << 16)) >> 15); if (prev_y != y) { prev_y = y; p += dh; py += dely; } if (!p1_in) { if ((py < 0) && (dely < 0)) break; if ((py > by) && (dely > 0)) break; } if (IN_RANGE(px, py, clw, clh)) pfunc(color, p); yy += dyy; px++; p++; } *cl_x1 = px + clx; *cl_y1 = py + cly; return 1; } /* steep: y-parametric */ SETUP_LINE_STEEP(); *cl_x0 = px + clx; *cl_y0 = py + cly; while (py < by) { x = (xx >> 16); x += ((xx - (x << 16)) >> 15); if (prev_x != x) { prev_x = x; px += delx; p += delx; } if (!p1_in) { if ((px < 0) && (delx < 0)) break; if ((px > rx) && (delx > 0)) break; } if (IN_RANGE(px, py, clw, clh)) pfunc(color, p); xx += dxx; py++; p += dstw; } *cl_x1 = px + clx; *cl_y1 = py + cly; return 1; } static int __imlib_Line_DrawToData_AA(int x0, int y0, int x1, int y1, DATA32 color, DATA32 * dst, int dstw, int clx, int cly, int clw, int clh, int *cl_x0, int *cl_y0, int *cl_x1, int *cl_y1, ImlibOp op, char dst_alpha, char blend) { ImlibPointDrawFunction pfunc; int px, py, x, y, prev_x, prev_y; int dx, dy, rx, by, p0_in, p1_in, dh, a_a = 1; int delx, dely, xx, yy, dxx, dyy; DATA32 *p; DATA8 ca = A_VAL(&color); dx = x1 - x0; dy = y1 - y0; if ((dx == 0) || (dy == 0) || (dx == dy) || (dx == -dy)) return __imlib_SimpleLine_DrawToData(x0, y0, x1, y1, color, dst, dstw, clx, cly, clw, clh, cl_x0, cl_y0, cl_x1, cl_y1, op, dst_alpha, blend); pfunc = __imlib_GetPointDrawFunction(op, dst_alpha, blend); if (!pfunc) return 0; dst += (dstw * cly) + clx; x0 -= clx; y0 -= cly; x1 -= clx; y1 -= cly; /* shallow: x-parametric */ if (abs(dy) < abs(dx)) { SETUP_LINE_SHALLOW(); *cl_x0 = px + clx; *cl_y0 = py + cly; while (px < rx) { DATA32 tmp; DATA8 aa; y = (yy >> 16); if (prev_y != y) { prev_y = y; p += dh; py += dely; } if (!p1_in) { if ((py < -1) && (dely < 0)) break; if ((py > by) && (dely > 0)) break; } if ((unsigned)(px) < (unsigned)clw) { aa = (yy - (y << 16)) >> 8; A_VAL(&color) = 255 - aa; if (ca < 255) MULT(A_VAL(&color), ca, A_VAL(&color), tmp); if ((unsigned)(py) < (unsigned)clh) pfunc(color, p); if ((unsigned)(py + 1) < (unsigned)clh) { A_VAL(&color) = aa; if (ca < 255) MULT(A_VAL(&color), ca, A_VAL(&color), tmp); pfunc(color, p + dstw); } } yy += dyy; px++; p++; } *cl_x1 = px + clx; *cl_y1 = py + cly; return 1; } /* steep: y-parametric */ SETUP_LINE_STEEP(); *cl_x0 = px + clx; *cl_y0 = py + cly; while (py < by) { DATA32 tmp; DATA8 aa; x = (xx >> 16); if (prev_x != x) { prev_x = x; px += delx; p += delx; } if (!p1_in) { if ((px < -1) && (delx < 0)) break; if ((px > rx) && (delx > 0)) break; } if ((unsigned)(py) < (unsigned)clh) { aa = (xx - (x << 16)) >> 8; A_VAL(&color) = 255 - aa; if (ca < 255) MULT(A_VAL(&color), ca, A_VAL(&color), tmp); if ((unsigned)(px) < (unsigned)clw) pfunc(color, p); if ((unsigned)(px + 1) < (unsigned)clw) { A_VAL(&color) = aa; if (ca < 255) MULT(A_VAL(&color), ca, A_VAL(&color), tmp); pfunc(color, p + 1); } } xx += dxx; py++; p += dstw; } *cl_x1 = px + clx; *cl_y1 = py + cly; return 1; } ImlibUpdate * __imlib_Line_DrawToImage(int x0, int y0, int x1, int y1, DATA32 color, ImlibImage * im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias, char make_updates) { int cl_x0, cl_y0, cl_x1, cl_y1, drew; if ((x0 == x1) && (y0 == y1)) return __imlib_Point_DrawToImage(x0, y0, color, im, clx, cly, clw, clh, op, blend, make_updates); if (blend && (!A_VAL(&color))) return NULL; if (clw < 0) return NULL; if (clw == 0) { clw = im->w; clx = 0; clh = im->h; cly = 0; } CLIP_RECT_TO_RECT(clx, cly, clw, clh, 0, 0, im->w, im->h); if ((clw < 1) || (clh < 1)) return NULL; if ((x0 < clx) && (x1 < clx)) return NULL; if ((x0 >= (clx + clw)) && (x1 >= (clx + clw))) return NULL; if ((y0 < cly) && (y1 < cly)) return NULL; if ((y0 >= (cly + clh)) && (y1 >= (cly + clh))) return NULL; if (blend && IMAGE_HAS_ALPHA(im)) __imlib_build_pow_lut(); if (anti_alias) drew = __imlib_Line_DrawToData_AA(x0, y0, x1, y1, color, im->data, im->w, clx, cly, clw, clh, &cl_x0, &cl_y0, &cl_x1, &cl_y1, op, IMAGE_HAS_ALPHA(im), blend); else drew = __imlib_Line_DrawToData(x0, y0, x1, y1, color, im->data, im->w, clx, cly, clw, clh, &cl_x0, &cl_y0, &cl_x1, &cl_y1, op, IMAGE_HAS_ALPHA(im), blend); if (drew && make_updates) { int mi, ma, dx, dy, w, h; mi = MIN(cl_x0, cl_x1); ma = MAX(cl_x0, cl_x1); cl_x0 = mi; cl_x1 = ma; dx = cl_x1 - cl_x0; mi = MIN(cl_y0, cl_y1); ma = MAX(cl_y0, cl_y1); cl_y0 = mi; cl_y1 = ma; dy = cl_y1 - cl_y0; w = dx + 1; h = dy + 1; if (anti_alias) { if (((cl_x1 + 1) < (clx + clw)) && (dy > dx)) w++; if (((cl_y1 + 1) < (cly + clh)) && (dx > dy)) h++; } CLIP_RECT_TO_RECT(cl_x0, cl_y0, w, h, clx, cly, clw, clh); if ((w < 1) || (h < 1)) return NULL; return __imlib_AddUpdate(NULL, cl_x0, cl_y0, w, h); } return NULL; } imlib2-1.4.6/src/lib/rgbadraw.h0000664000175000017500000001012512255265152013126 00000000000000#ifndef __RGBADRAW #define __RGBADRAW 1 #define IN_SEGMENT(x, sx, sw) \ ((unsigned)((x) - (sx)) < (unsigned)(sw)) #define IN_RANGE(x, y, w, h) \ ( ((unsigned)(x) < (unsigned)(w)) && ((unsigned)(y) < (unsigned)(h)) ) #define IN_RECT(x, y, rx, ry, rw, rh) \ ( ((unsigned)((x) - (rx)) < (unsigned)(rw)) && \ ((unsigned)((y) - (ry)) < (unsigned)(rh)) ) #define CLIP_RECT_TO_RECT(x, y, w, h, rx, ry, rw, rh) \ { \ int _t0, _t1; \ \ _t0 = MAX(x, (rx)); \ _t1 = MIN(x + w, (rx) + (rw)); \ x = _t0; \ w = _t1 - _t0; \ _t0 = MAX(y, (ry)); \ _t1 = MIN(y + h, (ry) + (rh)); \ y = _t0; \ h = _t1 - _t0; \ } #define DIV_255(a, x, tmp) \ do { \ tmp = (x) + 0x80; \ a = (tmp + (tmp >> 8)) >> 8; \ } while (0) #define MULT(na, a0, a1, tmp) \ DIV_255(na, (a0) * (a1), tmp) typedef struct _imlib_point ImlibPoint; struct _imlib_point { int x, y; }; typedef struct _imlib_rectangle Imlib_Rectangle; struct _imlib_rectangle { int x, y, w, h; }; typedef struct _imlib_polygon _ImlibPoly; typedef _ImlibPoly *ImlibPoly; struct _imlib_polygon { ImlibPoint *points; int pointcount; int lx, rx; int ty, by; }; /* image related operations: in rgbadraw.c */ __hidden void __imlib_FlipImageHoriz(ImlibImage * im); __hidden void __imlib_FlipImageVert(ImlibImage * im); __hidden void __imlib_FlipImageBoth(ImlibImage * im); __hidden void __imlib_FlipImageDiagonal(ImlibImage * im, int direction); __hidden void __imlib_BlurImage(ImlibImage * im, int rad); __hidden void __imlib_SharpenImage(ImlibImage * im, int rad); __hidden void __imlib_TileImageHoriz(ImlibImage * im); __hidden void __imlib_TileImageVert(ImlibImage * im); __hidden void __imlib_copy_alpha_data(ImlibImage * src, ImlibImage * dst, int x, int y, int w, int h, int nx, int ny); __hidden void __imlib_copy_image_data(ImlibImage * im, int x, int y, int w, int h, int nx, int ny); /* point and line drawing: in line.c */ __hidden ImlibUpdate * __imlib_Point_DrawToImage(int x, int y, DATA32 color, ImlibImage *im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char make_updates); __hidden ImlibUpdate * __imlib_Line_DrawToImage(int x0, int y0, int x1, int y1, DATA32 color, ImlibImage *im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias, char make_updates); /* rectangle drawing and filling: in rectangle.c */ __hidden void __imlib_Rectangle_DrawToImage(int xc, int yc, int w, int h, DATA32 color, ImlibImage *im, int clx, int cly, int clw, int clh, ImlibOp op, char blend); __hidden void __imlib_Rectangle_FillToImage(int xc, int yc, int w, int h, DATA32 color, ImlibImage *im, int clx, int cly, int clw, int clh, ImlibOp op, char blend); /* ellipse drawing and filling: in ellipse.c */ __hidden void __imlib_Ellipse_DrawToImage(int xc, int yc, int a, int b, DATA32 color, ImlibImage *im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias); __hidden void __imlib_Ellipse_FillToImage(int xc, int yc, int a, int b, DATA32 color, ImlibImage *im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias); /* polygon handling functions: in polygon.c */ __hidden ImlibPoly __imlib_polygon_new(void); __hidden void __imlib_polygon_free(ImlibPoly poly); __hidden void __imlib_polygon_add_point(ImlibPoly poly, int x, int y); __hidden unsigned char __imlib_polygon_contains_point(ImlibPoly poly, int x, int y); __hidden void __imlib_polygon_get_bounds(ImlibPoly poly, int *px1, int *py1, int *px2, int *py2); /* polygon drawing and filling: in polygon.c */ __hidden void __imlib_Polygon_DrawToImage(ImlibPoly poly, char closed, DATA32 color, ImlibImage *im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias); __hidden void __imlib_Polygon_FillToImage(ImlibPoly poly, DATA32 color, ImlibImage *im, int clx, int cly, int clw, int clh, ImlibOp op, char blend, char anti_alias); #endif imlib2-1.4.6/src/lib/scale.h0000664000175000017500000000150512255265030012421 00000000000000#ifndef __SCALE #define __SCALE 1 typedef struct _imlib_scale_info ImlibScaleInfo; __hidden ImlibScaleInfo * __imlib_CalcScaleInfo(ImlibImage *im, int sw, int sh, int dw, int dh, char aa); __hidden ImlibScaleInfo * __imlib_FreeScaleInfo(ImlibScaleInfo *isi); __hidden void __imlib_ScaleSampleRGBA(ImlibScaleInfo *isi, DATA32 *dest, int dxx, int dyy, int dx, int dy, int dw, int dh, int dow); __hidden void __imlib_ScaleAARGBA(ImlibScaleInfo *isi, DATA32 *dest, int dxx, int dyy, int dx, int dy, int dw, int dh, int dow, int sow); __hidden void __imlib_ScaleAARGB(ImlibScaleInfo *isi, DATA32 *dest, int dxx, int dyy, int dx, int dy, int dw, int dh, int dow, int sow); __hidden void __imlib_Scale_mmx_AARGBA(ImlibScaleInfo *isi, DATA32 *dest, int dxx, int dyy, int dx, int dy, int dw, int dh, int dow, int sow); #endif imlib2-1.4.6/src/lib/font_query.c0000664000175000017500000002120112255265152013520 00000000000000#include "config.h" #include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include #include FT_FREETYPE_H #include FT_GLYPH_H #include "font.h" #include #include #include #include "file.h" #include "updates.h" #include "rgbadraw.h" #include "rotate.h" extern FT_Library ft_lib; /* string extents */ void imlib_font_query_size(ImlibFont * fn, const char *text, int *w, int *h) { int use_kerning; int pen_x /*, pen_y */ ; int start_x, end_x; int chr; FT_UInt prev_index; start_x = 0; end_x = 0; pen_x = 0; /* pen_y = 0; */ use_kerning = FT_HAS_KERNING(fn->ft.face); prev_index = 0; for (chr = 0; text[chr];) { FT_UInt index; Imlib_Font_Glyph *fg; ImlibFont *fn_in_chain; int chr_x, /*chr_y, */ chr_w; int gl; gl = imlib_font_utf8_get_next((unsigned char *)text, &chr); if (gl == 0) break; fn_in_chain = imlib_font_find_glyph(fn, gl, &index); if ((use_kerning) && (prev_index) && (index)) { FT_Vector delta; FT_Get_Kerning(fn_in_chain->ft.face, prev_index, index, ft_kerning_default, &delta); pen_x += delta.x << 2; } fg = imlib_font_cache_glyph_get(fn_in_chain, index); if (!fg) continue; chr_x = (pen_x >> 8) + fg->glyph_out->left; /* chr_y = (pen_y >> 8) + fg->glyph_out->top; */ chr_w = fg->glyph_out->bitmap.width; if (pen_x == 0) start_x = chr_x; if ((chr_x + chr_w) > end_x) end_x = chr_x + chr_w; pen_x += fg->glyph->advance.x >> 8; prev_index = index; } if (w) *w = (pen_x >> 8) - start_x; if (h) *h = imlib_font_max_ascent_get(fn) - imlib_font_max_descent_get(fn); /* TODO: compute this inside the loop since we now may be dealing with multiple fonts */ } /* text x inset */ int imlib_font_query_inset(ImlibFont * fn, const char *text) { FT_UInt index; Imlib_Font_Glyph *fg; ImlibFont *fn_in_chain; int chr; int gl; chr = 0; if (!text[0]) return 0; gl = imlib_font_utf8_get_next((unsigned char *)text, &chr); if (gl == 0) return 0; fn_in_chain = imlib_font_find_glyph(fn, gl, &index); fg = imlib_font_cache_glyph_get(fn_in_chain, index); if (!fg) return 0; return -fg->glyph_out->left; } /* h & v advance */ void imlib_font_query_advance(ImlibFont * fn, const char *text, int *h_adv, int *v_adv) { int use_kerning; int pen_x; int start_x; int chr; FT_UInt prev_index; start_x = 0; pen_x = 0; use_kerning = FT_HAS_KERNING(fn->ft.face); prev_index = 0; for (chr = 0; text[chr];) { FT_UInt index; Imlib_Font_Glyph *fg; ImlibFont *fn_in_chain; int gl; gl = imlib_font_utf8_get_next((unsigned char *)text, &chr); if (gl == 0) break; fn_in_chain = imlib_font_find_glyph(fn, gl, &index); if ((use_kerning) && (prev_index) && (index)) { FT_Vector delta; FT_Get_Kerning(fn_in_chain->ft.face, prev_index, index, ft_kerning_default, &delta); pen_x += delta.x << 2; } fg = imlib_font_cache_glyph_get(fn_in_chain, index); if (!fg) continue; pen_x += fg->glyph->advance.x >> 8; prev_index = index; } if (v_adv) *v_adv = imlib_font_get_line_advance(fn); /* TODO: compute this in the loop since we may be dealing with multiple fonts */ if (h_adv) *h_adv = (pen_x >> 8) - start_x; } /* x y w h for char at char pos */ int imlib_font_query_char_coords(ImlibFont * fn, const char *text, int pos, int *cx, int *cy, int *cw, int *ch) { int use_kerning; int pen_x; int prev_chr_end; int chr; int asc, desc; FT_UInt prev_index; pen_x = 0; use_kerning = FT_HAS_KERNING(fn->ft.face); prev_index = 0; prev_chr_end = 0; asc = imlib_font_max_ascent_get(fn); desc = imlib_font_max_descent_get(fn); for (chr = 0; text[chr];) { int pchr; FT_UInt index; Imlib_Font_Glyph *fg; ImlibFont *fn_in_chain; int chr_x, chr_w; int gl, kern; FT_Vector delta; pchr = chr; gl = imlib_font_utf8_get_next((unsigned char *)text, &chr); if (gl == 0) break; fn_in_chain = imlib_font_find_glyph(fn, gl, &index); kern = 0; if ((use_kerning) && (prev_index) && (index)) { FT_Get_Kerning(fn_in_chain->ft.face, prev_index, index, ft_kerning_default, &delta); kern = delta.x << 2; pen_x += kern; } fg = imlib_font_cache_glyph_get(fn_in_chain, index); if (!fg) continue; if (kern < 0) kern = 0; chr_x = ((pen_x - kern) >> 8) + fg->glyph_out->left; chr_w = fg->glyph_out->bitmap.width + (kern >> 8); if (text[chr]) { int advw; advw = ((fg->glyph->advance.x + (kern << 8)) >> 16); if (chr_w < advw) chr_w = advw; } if (chr_x > prev_chr_end) { chr_w += (chr_x - prev_chr_end); chr_x = prev_chr_end; } if (pchr == pos) { if (cx) *cx = chr_x; if (cy) *cy = -asc; if (cw) *cw = chr_w; if (ch) *ch = asc + desc; return 1; } prev_chr_end = chr_x + chr_w; pen_x += fg->glyph->advance.x >> 8; prev_index = index; } return 0; } /* char pos of text at xy pos */ int imlib_font_query_text_at_pos(ImlibFont * fn, const char *text, int x, int y, int *cx, int *cy, int *cw, int *ch) { int use_kerning; int pen_x; int prev_chr_end; int chr; int asc, desc; FT_UInt prev_index; pen_x = 0; use_kerning = FT_HAS_KERNING(fn->ft.face); prev_index = 0; prev_chr_end = 0; asc = imlib_font_max_ascent_get(fn); desc = imlib_font_max_descent_get(fn); for (chr = 0; text[chr];) { int pchr; FT_UInt index; Imlib_Font_Glyph *fg; ImlibFont *fn_in_chain; int chr_x, chr_w; int gl, kern; FT_Vector delta; pchr = chr; gl = imlib_font_utf8_get_next((unsigned char *)text, &chr); if (gl == 0) break; fn_in_chain = imlib_font_find_glyph(fn, gl, &index); kern = 0; if ((use_kerning) && (prev_index) && (index)) { FT_Get_Kerning(fn_in_chain->ft.face, prev_index, index, ft_kerning_default, &delta); kern = delta.x << 2; pen_x += kern; } fg = imlib_font_cache_glyph_get(fn_in_chain, index); if (!fg) continue; if (kern < 0) kern = 0; chr_x = ((pen_x - kern) >> 8) + fg->glyph_out->left; chr_w = fg->glyph_out->bitmap.width + (kern >> 8); if (text[chr]) { int advw; advw = ((fg->glyph->advance.x + (kern << 8)) >> 16); if (chr_w < advw) chr_w = advw; } if (chr_x > prev_chr_end) { chr_w += (chr_x - prev_chr_end); chr_x = prev_chr_end; } if ((x >= chr_x) && (x <= (chr_x + chr_w)) && (y > -asc) && (y < desc)) { if (cx) *cx = chr_x; if (cy) *cy = -asc; if (cw) *cw = chr_w; if (ch) *ch = asc + desc; return pchr; } prev_chr_end = chr_x + chr_w; pen_x += fg->glyph->advance.x >> 8; prev_index = index; } return -1; } imlib2-1.4.6/src/lib/dynamic_filters.h0000664000175000017500000000201212255265152014505 00000000000000#ifndef _DYNAMIC_FILTERS_H_ #define _DYNAMIC_FILTERS_H_ #include "script.h" struct imlib_filter_info { char *name; char *author; char *description; char **filters; int num_filters; }; typedef struct _imlib_external_filter ImlibExternalFilter; typedef struct _imlib_external_filter *pImlibExternalFilter; struct _imlib_external_filter { char *name; char *author; char *description; int num_filters; char *filename; void *handle; char **filters; void (*init_filter)( struct imlib_filter_info *info ); void (*deinit_filter)(void); void *(*exec_filter)( char *filter, void *im, pIFunctionParam params ); pImlibExternalFilter next; }; __hidden void __imlib_dynamic_filters_init(void); __hidden void __imlib_dynamic_filters_deinit(void); __hidden pImlibExternalFilter __imlib_get_dynamic_filter( char *name ); __hidden char **__imlib_ListFilters(int *num_ret); __hidden pImlibExternalFilter __imlib_LoadFilter( char *file ); #endif imlib2-1.4.6/src/lib/color_helpers.c0000664000175000017500000001041512255265135014173 00000000000000#include "color_helpers.h" /* * Color space conversion helper routines * Convert between rgb and hsv and between rgb and hls */ void __imlib_rgb_to_hsv(int r, int g, int b, float *h, float *s, float *v) { float min, max, delta; min = (((r < g) ? r : g) < b) ? ((r < g) ? r : g) : b; max = (((r > g) ? r : g) > b) ? ((r > g) ? r : g) : b; *v = max / 255.0; delta = (max - min); if (delta == 0) { *h = 0.0; *s = 0.0; return; } *s = delta / max; if (r == max) *h = (g - b) / delta; else if (g == max) *h = 2.0 + (b - r) / delta; else *h = 4.0 + (r - g) / delta; *h *= 60.0; if (*h < 0) *h += 360.0; } void __imlib_hsv_to_rgb(float h, float s, float v, int *r, int *g, int *b) { float f, vf; int i, p, q, t, vv; vf = 255.0 * v; vv = (int)round(vf); if (s == 0.0) { *r = *g = *b = vv; return; } h /= 60.0; i = floor(h); f = h - (float)i; p = (int)round(vf * (1.0 - s)); q = (int)round(vf * (1.0 - (s * f))); t = (int)round(vf * (1.0 - s * (1.0 - f))); switch (i % 6) { case 0: *r = vv; *g = t; *b = p; break; case 1: *r = q; *g = vv; *b = p; break; case 2: *r = p; *g = vv; *b = t; break; case 3: *r = p; *g = q; *b = vv; break; case 4: *r = t; *g = p; *b = vv; break; case 5: default: *r = vv; *g = p; *b = q; break; } } void __imlib_rgb_to_hls(int r, int g, int b, float *hue, float *lightness, float *saturation) { int f; float i, j, k, max, min, d; i = ((float)r) / 255.0; j = ((float)g) / 255.0; k = ((float)b) / 255.0; f = 0; max = min = i; if (j > max) { max = j; f = 1; } else min = j; if (k > max) { max = k; f = 2; } else if (k < min) min = k; d = max - min; *lightness = (max + min) / 2.0; if (d == 0) { *saturation = 0; *hue = 0; } else { if (*lightness < 0.5) *saturation = d / (max + min); else *saturation = d / (2 - max - min); switch (f) { case 0: *hue = (j - k) / d; break; case 1: *hue = 2 + (k - i) / d; break; case 2: *hue = 4 + (i - j) / d; break; } *hue *= 60.0; if (*hue < 0) *hue += 360.0; } } void __imlib_hls_to_rgb(float hue, float lightness, float saturation, int *r, int *g, int *b) { float m1, m2, m21, h; if (saturation == 0) *r = *g = *b = (int)(lightness * 255.0); else { if (lightness <= 0.5) m2 = lightness * (1 + saturation); else m2 = lightness + saturation + lightness * saturation; m1 = 2 * lightness - m2; m21 = m2 - m1; h = hue + 120; if (h > 360) h -= 360; else if (h < 0) h += 360; if (h < 60) *r = (int)(255.0 * (m1 + m21 * h / 60.0)); else if (h < 180) *r = (int)(255.0 * m2); else if (h < 240) *r = (int)(255.0 * (m1 + m21 * (240.0 - h) / 60.0)); else *r = (int)(255.0 * m1); h = hue; if (h > 360) h -= 360; else if (h < 0) h += 360; if (h < 60) *g = (int)(255.0 * (m1 + m21 * h / 60.0)); else if (h < 180) *g = (int)(255.0 * m2); else if (h < 240) *g = (int)(255.0 * (m1 + m21 * (240.0 - h) / 60.0)); else *g = (int)(255.0 * m1); h = hue - 120; if (h > 360) h -= 360; else if (h < 0) h += 360; if (h < 60) *b = (int)(255.0 * (m1 + m21 * h / 60.0)); else if (h < 180) *b = (int)(255.0 * m2); else if (h < 240) *b = (int)(255.0 * (m1 + m21 * (240.0 - h) / 60.0)); else *b = (int)(255.0 * m1); } } imlib2-1.4.6/src/lib/grad.h0000664000175000017500000000176112255265030012253 00000000000000#ifndef __GRAD #define __GRAD 1 typedef struct _imlib_range ImlibRange; typedef struct _imlib_range_color ImlibRangeColor; struct _imlib_range_color { DATA8 red, green, blue, alpha; int distance; ImlibRangeColor *next; }; struct _imlib_range { ImlibRangeColor *color; }; __hidden ImlibRange *__imlib_CreateRange(void); __hidden void __imlib_FreeRange(ImlibRange *rg); __hidden void __imlib_AddRangeColor(ImlibRange *rg, DATA8 r, DATA8 g, DATA8 b, DATA8 a, int dist); __hidden DATA32 *__imlib_MapRange(ImlibRange *rg, int len); __hidden DATA32 *__imlib_MapHsvaRange(ImlibRange *rg, int len); __hidden void __imlib_DrawGradient(ImlibImage *im, int x, int y, int w, int h, ImlibRange *rg, double angle, ImlibOp op, int clx, int cly, int clw, int clh); __hidden void __imlib_DrawHsvaGradient(ImlibImage *im, int x, int y, int w, int h, ImlibRange *rg, double angle, ImlibOp op, int clx, int cly, int clw, int clh); #endif imlib2-1.4.6/src/lib/asm_blend_cmod.S0000664000175000017500000007353412255265030014246 00000000000000#include #include "asm.h" #ifdef DO_MMX_ASM /*\ |*| MMX assembly blending routines, with colour modding, for Imlib2 |*| Written by Willem Monsuwe |*| |*| Special (hairy) constructs are only commented on first use. \*/ /*\ All functions have the same calling convention: |*| PR_(imlib_mmx__rgba_to_rgb[A]_cmod(void *src, int sw, void *dst, int dw, |*| int w, int h, ImlibColorModifier *cm) \*/ #define src 8(%ebp) #define sw 12(%ebp) #define dst 16(%ebp) #define dw 20(%ebp) #define w 24(%ebp) #define h 28(%ebp) #define cm 32(%ebp) /*\ Cmod tables, from %ebx \*/ #define rmap(x) (%ebx, x) #define gmap(x) 0x100(%ebx, x) #define bmap(x) 0x200(%ebx, x) #define amap(x) 0x300(%ebx, x) #define amap_ff 0x3ff(%ebx) .text .align 8 FN_(imlib_mmx_blend_rgba_to_rgb_cmod) FN_(imlib_mmx_blend_rgba_to_rgba_cmod) FN_(imlib_mmx_blend_rgb_to_rgb_cmod) FN_(imlib_mmx_blend_rgb_to_rgba_cmod) FN_(imlib_mmx_copy_rgba_to_rgb_cmod) FN_(imlib_mmx_copy_rgba_to_rgba_cmod) FN_(imlib_mmx_copy_rgb_to_rgba_cmod) FN_(imlib_mmx_add_blend_rgba_to_rgb_cmod) FN_(imlib_mmx_add_blend_rgba_to_rgba_cmod) FN_(imlib_mmx_add_blend_rgb_to_rgb_cmod) FN_(imlib_mmx_add_blend_rgb_to_rgba_cmod) FN_(imlib_mmx_add_copy_rgba_to_rgb_cmod) FN_(imlib_mmx_add_copy_rgba_to_rgba_cmod) FN_(imlib_mmx_add_copy_rgb_to_rgba_cmod) FN_(imlib_mmx_subtract_blend_rgba_to_rgb_cmod) FN_(imlib_mmx_subtract_blend_rgba_to_rgba_cmod) FN_(imlib_mmx_subtract_blend_rgb_to_rgb_cmod) FN_(imlib_mmx_subtract_blend_rgb_to_rgba_cmod) FN_(imlib_mmx_subtract_copy_rgba_to_rgb_cmod) FN_(imlib_mmx_subtract_copy_rgba_to_rgba_cmod) FN_(imlib_mmx_subtract_copy_rgb_to_rgba_cmod) FN_(imlib_mmx_reshade_blend_rgba_to_rgb_cmod) FN_(imlib_mmx_reshade_blend_rgba_to_rgba_cmod) FN_(imlib_mmx_reshade_blend_rgb_to_rgb_cmod) FN_(imlib_mmx_reshade_blend_rgb_to_rgba_cmod) FN_(imlib_mmx_reshade_copy_rgba_to_rgb_cmod) FN_(imlib_mmx_reshade_copy_rgba_to_rgba_cmod) FN_(imlib_mmx_reshade_copy_rgb_to_rgba_cmod) #include "asm_loadimmq.S" /*\ MMX register use: |*| %mm1 = Source value |*| %mm2 = Destination value |*| %mm3 = Alpha value |*| %mm4 = 0 |*| %mm5-%mm6 = masks \*/ /*\ Common code \*/ /*\ Set MMX mode, save registers, load common parameters \*/ #define ENTER \ pushl %ebp ;\ movl %esp, %ebp ;\ pushl %ebx ;\ pushl %ecx ;\ pushl %edx ;\ pushl %edi ;\ pushl %esi ;\ movl cm, %ebx ;\ movl src, %esi ;\ movl dst, %edi ;\ movl w, %ecx ;\ leal (%esi, %ecx, 4), %esi ;\ leal (%edi, %ecx, 4), %edi ;\ negl %ecx ;\ jz 9f ;\ movl h, %edx ;\ decl %edx ;\ jz 9f ;\ #define LOOP_START \ 8: ;\ movl w, %ecx ;\ negl %ecx #define LOOP_END \ movl sw, %ecx ;\ leal (%esi, %ecx, 4), %esi ;\ movl dw, %ecx ;\ leal (%edi, %ecx, 4), %edi ;\ decl %edx ;\ jns 8b /*\ Unset MMX mode, reset registers, return \*/ #define LEAVE \ 9: ;\ emms ;\ popl %esi ;\ popl %edi ;\ popl %edx ;\ popl %ecx ;\ popl %ebx ;\ movl %ebp, %esp ;\ popl %ebp ;\ ret /*\ Load one value, colourmod it, and put it in %mm1 \*/ #define LOAD1_CMOD \ movzbl 3(%esi, %ecx, 4), %eax ;\ movzbl amap(%eax), %eax ;\ movd %eax, %mm1 ;\ movzbl 2(%esi, %ecx, 4), %eax ;\ psllq $8, %mm1 ;\ movzbl rmap(%eax), %eax ;\ movd %eax, %mm0 ;\ movzbl 1(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl gmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl (%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl bmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ por %mm0, %mm1 /*\ Load two values, colourmod them, and put them in %mm1 \*/ #define LOAD2_CMOD \ movzbl 7(%esi, %ecx, 4), %eax ;\ movzbl amap(%eax), %eax ;\ movd %eax, %mm1 ;\ movzbl 6(%esi, %ecx, 4), %eax ;\ psllq $8, %mm1 ;\ movzbl rmap(%eax), %eax ;\ movd %eax, %mm0 ;\ movzbl 5(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl gmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl 4(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl bmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl 3(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl amap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl 2(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl rmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl 1(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl gmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl (%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl bmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ por %mm0, %mm1 /*\ Load one value, alpha 0xff, colourmod it, and put it in %mm1 \*/ #define LOAD1_CMOD_AFF \ movzbl amap_ff, %eax ;\ movd %eax, %mm1 ;\ movzbl 2(%esi, %ecx, 4), %eax ;\ psllq $8, %mm1 ;\ movzbl rmap(%eax), %eax ;\ movd %eax, %mm0 ;\ movzbl 1(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl gmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl (%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl bmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ por %mm0, %mm1 /*\ Load two values, alpha 0xff, colourmod them, and put them in %mm1 \*/ #define LOAD2_CMOD_AFF \ movzbl amap_ff, %eax ;\ movd %eax, %mm1 ;\ movzbl 6(%esi, %ecx, 4), %eax ;\ psllq $8, %mm1 ;\ movzbl rmap(%eax), %eax ;\ movd %eax, %mm0 ;\ movzbl 5(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl gmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl 4(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl bmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ por %mm0, %mm1 ;\ movzbl amap_ff, %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl 2(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl rmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl 1(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl gmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl (%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl bmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ por %mm0, %mm1 /*\ Load one value, colourmod it, alpha 0, and put it in %mm1 \*/ #define LOAD1_CMOD_A00 \ movzbl 2(%esi, %ecx, 4), %eax ;\ movzbl rmap(%eax), %eax ;\ movd %eax, %mm1 ;\ movzbl 1(%esi, %ecx, 4), %eax ;\ psllq $8, %mm1 ;\ movzbl gmap(%eax), %eax ;\ movd %eax, %mm0 ;\ movzbl (%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl bmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ por %mm0, %mm1 /*\ Load two values, colourmod them, alpha 0, and put them in %mm1 \*/ #define LOAD2_CMOD_A00 \ movzbl 6(%esi, %ecx, 4), %eax ;\ movzbl rmap(%eax), %eax ;\ movd %eax, %mm1 ;\ movzbl 5(%esi, %ecx, 4), %eax ;\ psllq $8, %mm1 ;\ movzbl gmap(%eax), %eax ;\ movd %eax, %mm0 ;\ movzbl 4(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl bmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl 2(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl rmap(%eax), %eax ;\ psllq $16, %mm1 ;\ movd %eax, %mm0 ;\ movzbl 1(%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl gmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ movzbl (%esi, %ecx, 4), %eax ;\ por %mm0, %mm1 ;\ movzbl bmap(%eax), %eax ;\ psllq $8, %mm1 ;\ movd %eax, %mm0 ;\ por %mm0, %mm1 PR_(imlib_mmx_blend_rgba_to_rgb_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(c1, %mm5) CLEANUP_IMMQ_LOADS(1) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and unpack/copy to eight bytes |*| which are treated as four words. |*| Result ranges from [0, 0x7fff), and is mapped to |*| point value in [0.0, 1.0) by using the high word |*| of the 16->32 multiplications. |*| (Because we want the unsigned value we shift one bit, |*| and also shift the other factor to compensate.) |*| Magic to get the fourth byte: lhh \*/ movq %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make the alpha value that gets multiplied to the |*| alpha channels 0, so the resulting alpha value is |*| the destination alpha value. \*/ psrlq $16, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (a * ((s - d) + 0.5)) \*/ psubw %mm2, %mm1 psllw $1, %mm1 paddw %mm5, %mm1 /*\ Roundoff \*/ pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_blend_rgba_to_rgb_cmod) PR_(imlib_mmx_blend_rgba_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m0X000000, %mm5) LOAD_IMMQ(m00XXXXXX, %mm6) LOAD_IMMQ(c1, %mm7) CLEANUP_IMMQ_LOADS(3) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target, a = src + (255 - dest) \*/ movq %mm2, %mm3 pxor %mm6, %mm3 paddusb %mm1, %mm3 /*\ Unpack/copy to eight bytes \*/ punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ Separate alpha channel \*/ movq %mm1, %mm0 pand %mm5, %mm0 /*\ d = d + (a * ((s - d) + 0.5)) \*/ psubw %mm2, %mm1 psllw $1, %mm1 paddw %mm7, %mm1 /*\ Roundoff \*/ pmulhw %mm3, %mm1 /*\ Replace alpha channel with separated out version in mm0 and add \*/ pand %mm6, %mm1 por %mm0, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_blend_rgba_to_rgba_cmod) PR_(imlib_mmx_blend_rgb_to_rgb_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(c1, %mm5) CLEANUP_IMMQ_LOADS(1) /*\ Load alpha beforehand, as it's always amap(0xff) \*/ movzbl amap_ff, %eax movd %eax, %mm3 punpcklbw %mm3, %mm3 punpcklwd %mm3, %mm3 punpckldq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD_A00 movd (%edi, %ecx, 4), %mm2 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (a * ((s - d) + 0.5)) \*/ psubw %mm2, %mm1 psllw $1, %mm1 paddw %mm5, %mm1 /*\ Roundoff \*/ pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_blend_rgb_to_rgb_cmod) PR_(imlib_mmx_blend_rgb_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m0X000000, %mm5) LOAD_IMMQ(m00XXXXXX, %mm6) LOAD_IMMQ(c1, %mm7) CLEANUP_IMMQ_LOADS(3) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD_AFF movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target, a = src + (255 - dest) \*/ movq %mm2, %mm3 pxor %mm6, %mm3 paddusb %mm1, %mm3 /*\ Unpack/copy to eight bytes \*/ punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ Separate alpha channel \*/ movq %mm1, %mm0 pand %mm5, %mm0 /*\ d = d + (a * ((s - d) + 0.5)) \*/ psubw %mm2, %mm1 psllw $1, %mm1 paddw %mm7, %mm1 /*\ Roundoff \*/ pmulhw %mm3, %mm1 /*\ Replace alpha channel with separated out version in mm0 and add \*/ pand %mm6, %mm1 por %mm0, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_blend_rgb_to_rgba_cmod) PR_(imlib_mmx_copy_rgba_to_rgb_cmod): ENTER LOOP_START 1: movzbl (%esi, %ecx, 4), %eax movzbl bmap(%eax), %eax movb %al, (%edi, %ecx, 4) movzbl 1(%esi, %ecx, 4), %eax movzbl gmap(%eax), %eax movb %al, 1(%edi, %ecx, 4) movzbl 2(%esi, %ecx, 4), %eax movzbl rmap(%eax), %eax movb %al, 2(%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_copy_rgba_to_rgb_cmod) PR_(imlib_mmx_copy_rgba_to_rgba_cmod): ENTER LOOP_START 1: movzbl (%esi, %ecx, 4), %eax movzbl bmap(%eax), %eax movb %al, (%edi, %ecx, 4) movzbl 1(%esi, %ecx, 4), %eax movzbl gmap(%eax), %eax movb %al, 1(%edi, %ecx, 4) movzbl 2(%esi, %ecx, 4), %eax movzbl rmap(%eax), %eax movb %al, 2(%edi, %ecx, 4) movzbl 3(%esi, %ecx, 4), %eax movzbl amap(%eax), %eax movb %al, 3(%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_copy_rgba_to_rgba_cmod) PR_(imlib_mmx_copy_rgb_to_rgba_cmod): ENTER LOOP_START 1: movzbl (%esi, %ecx, 4), %eax movzbl bmap(%eax), %eax movb %al, (%edi, %ecx, 4) movzbl 1(%esi, %ecx, 4), %eax movzbl gmap(%eax), %eax movb %al, 1(%edi, %ecx, 4) movzbl 2(%esi, %ecx, 4), %eax movzbl rmap(%eax), %eax movb %al, 2(%edi, %ecx, 4) movb $0xff, 3(%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_copy_rgb_to_rgba_cmod) PR_(imlib_mmx_add_blend_rgba_to_rgb_cmod): ENTER pxor %mm4, %mm4 LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and unpack/copy to eight bytes \*/ movq %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_add_blend_rgba_to_rgb_cmod) PR_(imlib_mmx_add_blend_rgba_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(mVX000000, %mm5) LOAD_IMMQ(m00XXXXXX, %mm6) CLEANUP_IMMQ_LOADS(2) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target and unpack/copy to eight bytes \*/ movq %mm2, %mm3 pxor %mm6, %mm3 paddusb %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make the alpha value that gets multiplied to the |*| alpha channels 0x7fff, so the resulting alpha value is |*| the sum of the source and destination alpha values. \*/ por %mm5, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_add_blend_rgba_to_rgba_cmod) PR_(imlib_mmx_add_blend_rgb_to_rgb_cmod): ENTER pxor %mm4, %mm4 /*\ Load alpha beforehand, as it's always amap(0xff) \*/ movzbl amap_ff, %eax movd %eax, %mm3 punpcklbw %mm3, %mm3 punpcklwd %mm3, %mm3 punpckldq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD_A00 movd (%edi, %ecx, 4), %mm2 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_add_blend_rgb_to_rgb_cmod) PR_(imlib_mmx_add_blend_rgb_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(mVX000000, %mm5) LOAD_IMMQ(m00XXXXXX, %mm6) CLEANUP_IMMQ_LOADS(2) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD_AFF movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target and unpack/copy to eight bytes \*/ movq %mm2, %mm3 pxor %mm6, %mm3 paddusb %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make the alpha value that gets multiplied to the |*| alpha channels 0x7fff, so the resulting alpha value is |*| the sum of the source and destination alpha values. \*/ por %mm5, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_add_blend_rgb_to_rgba_cmod) PR_(imlib_mmx_add_copy_rgba_to_rgb_cmod): ENTER LOAD_IMMQ(m0XXX0XXX, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ LOAD2_CMOD movq (%edi, %ecx, 4), %mm2 /*\ Clear alpha channel of source \*/ pand %mm5, %mm1 /*\ d = d + s, unsigned saturation, and save \*/ paddusb %mm1, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: LOAD1_CMOD movd (%edi), %mm2 pand %mm5, %mm1 paddusb %mm1, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_add_copy_rgba_to_rgb_cmod) PR_(imlib_mmx_add_copy_rgba_to_rgba_cmod): ENTER subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ LOAD2_CMOD movq (%edi, %ecx, 4), %mm2 /*\ d = d + s, unsigned saturation, and save \*/ paddusb %mm1, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: LOAD1_CMOD movd (%edi), %mm2 paddusb %mm1, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_add_copy_rgba_to_rgba_cmod) PR_(imlib_mmx_add_copy_rgb_to_rgba_cmod): ENTER subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ LOAD2_CMOD_AFF movq (%edi, %ecx, 4), %mm2 /*\ d = d + s, unsigned saturation, and save \*/ paddusb %mm1, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: LOAD1_CMOD_AFF movd (%edi), %mm2 paddusb %mm1, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_add_copy_rgb_to_rgba_cmod) PR_(imlib_mmx_subtract_blend_rgba_to_rgb_cmod): ENTER pxor %mm4, %mm4 LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and unpack/copy to eight bytes \*/ movq %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d - (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 psubw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_subtract_blend_rgba_to_rgb_cmod) PR_(imlib_mmx_subtract_blend_rgba_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(mV0000000, %mm5) LOAD_IMMQ(m00XXXXXX, %mm6) CLEANUP_IMMQ_LOADS(2) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target and unpack/copy to eight bytes \*/ movq %mm2, %mm3 pxor %mm6, %mm3 paddusb %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make alpha value that gets multiplied with alpha channel |*| 0x8000, (-1.0), so that the alpha result is s + d \*/ psrlq $16, %mm3 por %mm5, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d - (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 psubw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_subtract_blend_rgba_to_rgba_cmod) PR_(imlib_mmx_subtract_blend_rgb_to_rgb_cmod): ENTER pxor %mm4, %mm4 /*\ Load alpha beforehand, as it's always amap(0xff) \*/ movzbl amap_ff, %eax movd %eax, %mm3 punpcklbw %mm3, %mm3 punpcklwd %mm3, %mm3 punpckldq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD_A00 movd (%edi, %ecx, 4), %mm2 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d - (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 psubw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_subtract_blend_rgb_to_rgb_cmod) PR_(imlib_mmx_subtract_blend_rgb_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(mV0000000, %mm5) LOAD_IMMQ(m00XXXXXX, %mm6) CLEANUP_IMMQ_LOADS(2) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD_AFF movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target and unpack/copy to eight bytes \*/ movq %mm2, %mm3 pxor %mm6, %mm3 paddusb %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make alpha value that gets multiplied with alpha channel |*| 0x8000, (-1.0), so that the alpha result is s + d \*/ psrlq $16, %mm3 por %mm5, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d - (a * s) \*/ psllw $1, %mm1 pmulhw %mm3, %mm1 psubw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_subtract_blend_rgb_to_rgba_cmod) PR_(imlib_mmx_subtract_copy_rgba_to_rgb_cmod): ENTER LOAD_IMMQ(m0XXX0XXX, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ LOAD2_CMOD movq (%edi, %ecx, 4), %mm2 /*\ Clear alpha channel of source \*/ pand %mm5, %mm1 /*\ d = d - s, unsigned saturation, and save \*/ psubusb %mm1, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: LOAD1_CMOD movd (%edi), %mm2 pand %mm5, %mm1 psubusb %mm1, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_subtract_copy_rgba_to_rgb_cmod) PR_(imlib_mmx_subtract_copy_rgba_to_rgba_cmod): ENTER LOAD_IMMQ(mX000X000, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ LOAD2_CMOD movq (%edi, %ecx, 4), %mm2 /*\ Negate destination alphas \*/ pxor %mm5, %mm2 /*\ d = d - s, unsigned saturation, and save \*/ psubusb %mm1, %mm2 /*\ Negate result alphas \*/ pxor %mm5, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: LOAD1_CMOD movd (%edi), %mm2 pxor %mm5, %mm2 psubusb %mm1, %mm2 pxor %mm5, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_subtract_copy_rgba_to_rgba_cmod) PR_(imlib_mmx_subtract_copy_rgb_to_rgba_cmod): ENTER LOAD_IMMQ(mX000X000, %mm5) CLEANUP_IMMQ_LOADS(1) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ LOAD2_CMOD_AFF movq (%edi, %ecx, 4), %mm2 pxor %mm5, %mm2 /*\ d = d - s, unsigned saturation, and save \*/ psubusb %mm1, %mm2 pxor %mm5, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: LOAD1_CMOD_AFF movd (%edi), %mm2 pxor %mm5, %mm2 psubusb %mm1, %mm2 pxor %mm5, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_subtract_copy_rgb_to_rgba_cmod) PR_(imlib_mmx_reshade_blend_rgba_to_rgb_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m000V0V0V, %mm6) CLEANUP_IMMQ_LOADS(1) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and unpack/copy to eight bytes \*/ movq %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (2 * a * (s - 127)) \*/ psubw %mm6, %mm1 psllw $2, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_reshade_blend_rgba_to_rgb_cmod) PR_(imlib_mmx_reshade_blend_rgba_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(mI0000000, %mm5) LOAD_IMMQ(m000V0V0V, %mm6) LOAD_IMMQ(m00XXXXXX, %mm7) CLEANUP_IMMQ_LOADS(3) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target and unpack/copy to eight bytes \*/ movq %mm2, %mm3 pxor %mm7, %mm3 paddusb %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make the alpha value that gets multiplied to the |*| alpha channels 0x4000 (0.5), so the resulting alpha value is |*| the sum of the source and destination alpha values. \*/ psrlq $16, %mm3 por %mm5, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (2 * a * (s - 127)), (alpha channel: d = d + (2 * 0.5 * (s - 0)) ) \*/ psubw %mm6, %mm1 psllw $2, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_reshade_blend_rgba_to_rgba_cmod) PR_(imlib_mmx_reshade_blend_rgb_to_rgb_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m000V0V0V, %mm6) CLEANUP_IMMQ_LOADS(1) /*\ Load alpha beforehand, as it's always amap(0xff) \*/ movzbl amap_ff, %eax movd %eax, %mm3 punpcklbw %mm3, %mm3 punpcklwd %mm3, %mm3 punpckldq %mm3, %mm3 psrlw $1, %mm3 psrlq $16, %mm3 LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD_A00 movd (%edi, %ecx, 4), %mm2 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (2 * a * (s - 127)) \*/ psubw %mm6, %mm1 psllw $2, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_reshade_blend_rgb_to_rgb_cmod) PR_(imlib_mmx_reshade_blend_rgb_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(mI0000000, %mm5) LOAD_IMMQ(m000V0V0V, %mm6) LOAD_IMMQ(m00XXXXXX, %mm7) CLEANUP_IMMQ_LOADS(3) LOOP_START 1: /*\ Load source and destination \*/ LOAD1_CMOD_AFF movd (%edi, %ecx, 4), %mm2 /*\ Get alpha from source and target and unpack/copy to eight bytes \*/ movq %mm2, %mm3 pxor %mm7, %mm3 paddusb %mm1, %mm3 punpcklbw %mm3, %mm3 punpckhwd %mm3, %mm3 punpckhdq %mm3, %mm3 psrlw $1, %mm3 /*\ Make the alpha value that gets multiplied to the |*| alpha channels 0x4000 (0.5), so the resulting alpha value is |*| the sum of the source and destination alpha values. \*/ psrlq $16, %mm3 por %mm5, %mm3 /*\ Unpack source and destination, bytes to words \*/ punpcklbw %mm4, %mm1 punpcklbw %mm4, %mm2 /*\ d = d + (2 * a * (s - 127)), (alpha channel: d = d + (2 * 0.5 * (s - 0)) ) \*/ psubw %mm6, %mm1 psllw $2, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm2 /*\ Pack into lower 4 bytes and save \*/ packuswb %mm4, %mm2 movd %mm2, (%edi, %ecx, 4) incl %ecx js 1b LOOP_END LEAVE SIZE(imlib_mmx_reshade_blend_rgb_to_rgba_cmod) PR_(imlib_mmx_reshade_copy_rgba_to_rgb_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m0XXX0XXX, %mm5) LOAD_IMMQ(m0VVV0VVV, %mm6) CLEANUP_IMMQ_LOADS(2) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ LOAD2_CMOD movq (%edi, %ecx, 4), %mm2 /*\ To take advantage of saturation and be able to do 8 bytes |*| at a time, we divide reshading into two separate steps: |*| adding values above 128, and subtracting values below 128 |*| These values go into %mm1 and %mm3 respectively |*| - %mm1 becomes (2 * (s - 127)) |*| - %mm3 becomes (2 * (255 - (127 + s))) = (2 * (128 - s)) \*/ movq %mm1, %mm3 psubusb %mm6, %mm1 paddusb %mm1, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 /*\ Clear alpha channel of s1 and s2 \*/ pand %mm5, %mm1 pand %mm5, %mm3 /*\ d = d + s1 - s2, unsigned saturation, and save \*/ paddusb %mm1, %mm2 psubusb %mm3, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: LOAD1_CMOD movd (%edi), %mm2 movq %mm1, %mm3 psubusb %mm6, %mm1 paddusb %mm1, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 pand %mm5, %mm1 pand %mm5, %mm3 paddusb %mm1, %mm2 psubusb %mm3, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_reshade_copy_rgba_to_rgb_cmod) PR_(imlib_mmx_reshade_copy_rgba_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m0XXX0XXX, %mm5) LOAD_IMMQ(m0VVV0VVV, %mm6) CLEANUP_IMMQ_LOADS(2) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ LOAD2_CMOD movq (%edi, %ecx, 4), %mm2 /*\ This time, the alpha channels have to be added. |*| For that, the alpha channel of %mm1 should remain |*| the same. This is done by subtracting 0 from the |*| alpha channel, and then doing the *2 via a separate |*| register, clearing its alpha channel first. \*/ movq %mm1, %mm3 psubusb %mm6, %mm1 movq %mm1, %mm0 pand %mm5, %mm0 paddusb %mm0, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 /*\ Clear alpha channel of s2 \*/ pand %mm5, %mm3 /*\ d = d + s1 - s2, unsigned saturation, and save \*/ paddusb %mm1, %mm2 psubusb %mm3, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: LOAD1_CMOD movd (%edi), %mm2 movq %mm1, %mm3 psubusb %mm6, %mm1 movq %mm1, %mm0 pand %mm5, %mm0 paddusb %mm0, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 pand %mm5, %mm3 paddusb %mm1, %mm2 psubusb %mm3, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_reshade_copy_rgba_to_rgba_cmod) PR_(imlib_mmx_reshade_copy_rgb_to_rgba_cmod): ENTER pxor %mm4, %mm4 LOAD_IMMQ(m0XXX0XXX, %mm5) LOAD_IMMQ(m0VVV0VVV, %mm6) CLEANUP_IMMQ_LOADS(2) subl $4, %esi subl $4, %edi LOOP_START incl %ecx jz 2f 1: /*\ Load source and destination \*/ LOAD2_CMOD_AFF movq (%edi, %ecx, 4), %mm2 movq %mm1, %mm3 psubusb %mm6, %mm1 movq %mm1, %mm0 pand %mm5, %mm0 paddusb %mm0, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 /*\ Clear alpha channel of s2 \*/ pand %mm5, %mm3 /*\ d = d + s1 - s2, unsigned saturation, and save \*/ paddusb %mm1, %mm2 psubusb %mm3, %mm2 movq %mm2, (%edi, %ecx, 4) addl $2, %ecx js 1b jnz 3f 2: LOAD1_CMOD_AFF movd (%edi), %mm2 movq %mm1, %mm3 psubusb %mm6, %mm1 movq %mm1, %mm0 pand %mm5, %mm0 paddusb %mm0, %mm1 paddusb %mm6, %mm3 pxor %mm5, %mm3 paddusb %mm3, %mm3 pand %mm5, %mm3 paddusb %mm1, %mm2 psubusb %mm3, %mm2 movd %mm2, (%edi) 3: LOOP_END LEAVE SIZE(imlib_mmx_reshade_copy_rgb_to_rgba_cmod) #endif #ifdef __ELF__ .section .note.GNU-stack,"",@progbits #endif imlib2-1.4.6/src/lib/asm_rotate.S0000664000175000017500000001735012255265135013456 00000000000000#include #include "asm.h" #ifdef DO_MMX_ASM /*\ |*| MMX assembly rotation routine for Imlib2 |*| Written by Willem Monsuwe \*/ .text .align 8 FN_(imlib_mmx_RotateAA) /*\ Prototype: __imlib_mmx_RotateAA(DATA32 *src, DATA32 *dest, int sow, int sw, |*| int sh, int dow, int dw, int dh, int x, int y, |*| int dxh, int dyh, int dxv, int dyv) \*/ #define src 8(%ebp) #define dest 12(%ebp) #define sow 16(%ebp) #define sw 20(%ebp) #define sh 24(%ebp) #define dow 28(%ebp) #define dw 32(%ebp) #define dh 36(%ebp) #define x 40(%ebp) #define y 44(%ebp) #define dxh 48(%ebp) #define dyh 52(%ebp) #define dxv 56(%ebp) #define dyv 60(%ebp) /*\ Local variables \*/ #define j -4(%ebp) #define dly -8(%ebp) #define dlx -12(%ebp) #define sht -16(%ebp) #define swt -20(%ebp) #define m0fffh -24(%ebp) #define m0fff -28(%ebp) #define mulsow -32(%ebp) PR_(imlib_mmx_RotateAA): pushl %ebp movl %esp, %ebp subl $40, %esp pushl %ebx pushl %ecx pushl %edx pushl %edi pushl %esi /*\ Check (dw > 0) && (dh > 0) \*/ cmpl $0, dw jle .rotate_leave cmpl $0, dh jle .rotate_leave pxor %mm7, %mm7 movl sow, %eax sall $16, %eax orl $1, %eax movl %eax, mulsow movl $0x0fff, %eax movl %eax, m0fff movl %eax, m0fffh /*\ mm6 = x, y \*/ movq x, %mm6 /*\ edi = dest + dw \*/ movl dest, %edi movl dw, %eax leal (%edi, %eax, 4), %edi /*\ dlx = dxv - dw * dxh \*/ movl dw, %eax imull dxh, %eax negl %eax addl dxv, %eax movl %eax, dlx /*\ dly = dyv - dw * dyh \*/ movl dw, %eax imull dyh, %eax negl %eax addl dyv, %eax movl %eax, dly /*\ j = dh \*/ movl dh, %eax movl %eax, j /*\ Check if all coordinates will be inside the source \*/ /*\ x < sw \*/ movl sw, %edx movl x, %ecx cmpl %edx, %ecx jae .rotate_outside /*\ x + dxh * dw < sw \*/ movl dxh, %ebx imull dw, %ebx addl %ebx, %ecx cmpl %edx, %ecx jae .rotate_outside /*\ x + dxh * dw + dxv * dh < sw \*/ movl dxv, %eax imull dh, %eax subl %eax, %ecx cmpl %edx, %ecx jae .rotate_outside /*\ x + dxv * dh < sw \*/ subl %ebx, %ecx cmpl %edx, %ecx jae .rotate_outside /*\ y < sh \*/ movl sh, %edx movl y, %ecx cmpl %edx, %ecx jae .rotate_outside /*\ y + dyh * dw < sh \*/ movl dyh, %ebx imull dw, %ebx addl %ebx, %ecx cmpl %edx, %ecx jae .rotate_outside /*\ y + dyh * dw + dyv * dh < sh \*/ movl dyv, %eax imull dh, %eax addl %eax, %ecx cmpl %edx, %ecx jae .rotate_outside /*\ y + dyv * dh < sh \*/ subl %ebx, %ecx cmpl %edx, %ecx jae .rotate_outside .rotate_inside: movl sow, %ebx movl src, %edx .inside_loop_y: /*\ i = -dw \*/ movl dw, %ecx negl %ecx .inside_loop_x: /*\ esi = src + x >> 12 + (y >> 12) * sow \*/ movq %mm6, %mm0 psrad $12, %mm0 packssdw %mm0, %mm0 pmaddwd mulsow, %mm0 movd %mm0, %eax leal (%edx, %eax, 4), %esi /*\ x and y \*/ movq %mm6, %mm0 pand m0fff, %mm0 movq %mm0, %mm1 /*\ mm0 = x & 0xfff \*/ punpcklwd %mm0, %mm0 punpckldq %mm0, %mm0 /*\ mm1 = y & 0xfff \*/ punpckhwd %mm1, %mm1 punpckldq %mm1, %mm1 /*\ Load and unpack four pixels in parallel |*| %mm2 = ptr[0], %mm3 = ptr[1] |*| %mm4 = ptr[sow], %mm5 = ptr[sow + 1] \*/ movq (%esi), %mm2 movq (%esi, %ebx, 4), %mm4 movq %mm2, %mm3 movq %mm4, %mm5 punpcklbw %mm7, %mm2 punpcklbw %mm7, %mm4 punpckhbw %mm7, %mm3 punpckhbw %mm7, %mm5 /*\ X interpolation: r = l + (r - l) * xap \*/ psubw %mm2, %mm3 psubw %mm4, %mm5 psllw $4, %mm3 psllw $4, %mm5 pmulhw %mm0, %mm3 pmulhw %mm0, %mm5 paddw %mm2, %mm3 paddw %mm4, %mm5 /*\ Y interpolation: d = u + (d - u) * yap \*/ psubw %mm3, %mm5 psllw $4, %mm5 pmulhw %mm1, %mm5 paddw %mm3, %mm5 packuswb %mm5, %mm5 movd %mm5, (%edi, %ecx, 4) paddd dxh, %mm6 incl %ecx jnz .inside_loop_x paddd dlx, %mm6 movl dow, %ecx leal (%edi, %ecx, 4), %edi decl j jnz .inside_loop_y jmp .rotate_leave .rotate_outside: movl sw, %eax decl %eax sall $12, %eax movl %eax, swt movl sh, %eax decl %eax sall $12, %eax movl %eax, sht movl sow, %ebx movl src, %edx .outside_loop_y: /*\ i = -dw \*/ movl dw, %ecx negl %ecx .outside_loop_x: /*\ esi = src + x >> 12 + (y >> 12) * sow \*/ movq %mm6, %mm0 psrad $12, %mm0 packssdw %mm0, %mm0 pmaddwd mulsow, %mm0 movd %mm0, %eax leal (%edx, %eax, 4), %esi /*\ x & 0xfff and y & 0xfff \*/ movq %mm6, %mm0 pand m0fff, %mm0 movq %mm0, %mm1 /*\ x < swt \*/ movq %mm6, %mm2 psrlq $32, %mm2 movd %mm6, %eax cmpl swt, %eax jae 2f /*\ y < sht \*/ movd %mm2, %eax cmpl sht, %eax jae 1f /*\ 1234 \*/ .interp_argb: /*\ Unpack x and y \*/ punpcklwd %mm0, %mm0 punpckldq %mm0, %mm0 punpckhwd %mm1, %mm1 punpckldq %mm1, %mm1 /*\ Load and unpack four pixels in parallel |*| %mm2 = ptr[0], %mm3 = ptr[1] |*| %mm4 = ptr[sow], %mm5 = ptr[sow + 1] \*/ movq (%esi), %mm2 movq (%esi, %ebx, 4), %mm4 movq %mm2, %mm3 movq %mm4, %mm5 punpcklbw %mm7, %mm2 punpcklbw %mm7, %mm4 punpckhbw %mm7, %mm3 punpckhbw %mm7, %mm5 /*\ X interpolation: r = l + (r - l) * xap \*/ psubw %mm2, %mm3 psubw %mm4, %mm5 psllw $4, %mm3 psllw $4, %mm5 pmulhw %mm0, %mm3 pmulhw %mm0, %mm5 paddw %mm2, %mm3 paddw %mm4, %mm5 /*\ Y interpolation: d = u + (d - u) * yap \*/ psubw %mm3, %mm5 psllw $4, %mm5 pmulhw %mm1, %mm5 paddw %mm3, %mm5 packuswb %mm5, %mm5 movd %mm5, (%edi, %ecx, 4) jmp .outside_il_end 1: /*\ (-y-1) < 4096 \*/ notl %eax cmpl $4095, %eax ja 1f /*\ ..34 \*/ pxor m0fff, %mm1 movd (%esi, %ebx, 4), %mm2 movd 4(%esi, %ebx, 4), %mm4 .interp_rgb_a0: /*\ Unpack x and y \*/ punpcklwd %mm0, %mm0 punpckldq %mm0, %mm0 punpckhwd %mm1, %mm1 /*\ Unpack two pixels \*/ punpcklbw %mm7, %mm2 punpcklbw %mm7, %mm4 /*\ Interpolate \*/ psubw %mm2, %mm4 psllw $4, %mm4 pmulhw %mm0, %mm4 paddw %mm2, %mm4 /*\ Separate out alpha, multiply with mm1, and subtract \*/ movq %mm4, %mm2 psllq $48, %mm1 psllw $4, %mm4 pmulhw %mm1, %mm4 psubw %mm4, %mm2 packuswb %mm2, %mm2 movd %mm2, (%edi, %ecx, 4) jmp .outside_il_end 1: /*\ (y - sht) < 4096 \*/ notl %eax subl sht, %eax cmpl $4095, %eax ja .outside_il_0 /*\ 12.. \*/ movd (%esi), %mm2 movd 4(%esi), %mm4 jmp .interp_rgb_a0 2: /*\ Switch x and y \*/ psrlq $32, %mm0 psllq $32, %mm1 /*\ -x-1 < 4096 \*/ notl %eax cmpl $4095, %eax ja 2f pxor m0fff, %mm1 /*\ y < sht \*/ movd %mm2, %eax cmpl sht, %eax jae 1f /*\ .2.4 \*/ movd 4(%esi), %mm2 movd 4(%esi, %ebx, 4), %mm4 jmp .interp_rgb_a0 1: /*\ (-y-1) < 4096 \*/ notl %eax cmpl $4095, %eax ja 1f /*\ ...4 \*/ movd 4(%esi, %ebx, 4), %mm2 .interp_a000: /*\ Separate out alpha, multiply with mm0 and mm1 \*/ pxor m0fff, %mm1 punpcklbw %mm7, %mm2 movq %mm2, %mm3 psllq $2, %mm0 psrlq $30, %mm1 pmulhw %mm0, %mm1 pxor m0fff, %mm1 psllq $48, %mm1 psllw $4, %mm3 pmulhw %mm1, %mm3 psubw %mm3, %mm2 packuswb %mm2, %mm2 movd %mm2, (%edi, %ecx, 4) jmp .outside_il_end 1: /*\ (y - sht) < 4096 \*/ notl %eax subl sht, %eax cmpl $4095, %eax ja .outside_il_0 /*\ .2.. \*/ pxor m0fff, %mm0 movd 4(%esi), %mm2 jmp .interp_a000 2: /*\ (x - swt) < 4096 \*/ notl %eax subl swt, %eax cmpl $4095, %eax ja .outside_il_0 /*\ y < sht \*/ movd %mm2, %eax cmpl sht, %eax jae 1f /*\ 1.3. \*/ movd (%esi), %mm2 movd (%esi, %ebx, 4), %mm4 jmp .interp_rgb_a0 1: /*\ (-y-1) < 4096 \*/ notl %eax cmpl $4095, %eax ja 1f /*\ ..3. \*/ movd (%esi, %ebx, 4), %mm2 jmp .interp_a000 1: /*\ (y - sht) < 4096 \*/ notl %eax subl sht, %eax cmpl $4095, %eax ja .outside_il_0 /*\ 1... \*/ pxor m0fff, %mm0 movd (%esi), %mm2 jmp .interp_a000 .outside_il_0: movl $0, %eax movl %eax, (%edi, %ecx, 4) .outside_il_end: paddd dxh, %mm6 incl %ecx jnz .outside_loop_x paddd dlx, %mm6 movl dow, %ecx leal (%edi, %ecx, 4), %edi decl j jnz .outside_loop_y .rotate_leave: emms popl %esi popl %edi popl %edx popl %ecx popl %ebx movl %ebp, %esp popl %ebp ret SIZE(imlib_mmx_RotateAA) #endif #ifdef __ELF__ .section .note.GNU-stack,"",@progbits #endif imlib2-1.4.6/src/lib/asm_loadimmq.S0000664000175000017500000000516312255265015013757 00000000000000/*\ constants and macros for x86 assembly files. \*/ /*\ Constants for asm_blend.S and asm_blend_cmod.S \*/ /* m0X000000: .byte 0, 0, 0, 0, 0, 0, 255, 0 */ #define m0X000000_H 0x00FF0000 #define m0X000000_L 0x00000000 /* m10000000: .byte 0, 0, 0, 0, 0, 0, 0, 1 */ #define m10000000_H 0x01000000 #define m10000000_L 0x00000000 /* m00XXXXXX: .byte 255, 255, 255, 255, 255, 255, 0, 0 */ #define m00XXXXXX_H 0x0000FFFF #define m00XXXXXX_L 0xFFFFFFFF /* mVX000000: .byte 0, 0, 0, 0, 0, 0, 255, 127 */ #define mVX000000_H 0x7FFF0000 #define mVX000000_L 0x00000000 /* mV0000000: .byte 0, 0, 0, 0, 0, 0, 0, 128 */ #define mV0000000_H 0x80000000 #define mV0000000_L 0x00000000 /* m0XXX0XXX: .byte 255, 255, 255, 0, 255, 255, 255, 0 */ #define m0XXX0XXX_H 0x00FFFFFF #define m0XXX0XXX_L 0x00FFFFFF /* mX000X000: .byte 0, 0, 0, 255, 0, 0, 0, 255 */ #define mX000X000_H 0xFF000000 #define mX000X000_L 0xFF000000 /* m10001000: .byte 0, 0, 0, 1, 0, 0, 0, 1 */ #define m10001000_H 0x01000000 #define m10001000_L 0x01000000 /* m000V0V0V: .byte 127, 0, 127, 0, 127, 0, 0, 0 */ #define m000V0V0V_H 0x0000007F #define m000V0V0V_L 0x007F007F /* mI0000000: .byte 0, 0, 0, 0, 0, 0, 0, 64 */ #define mI0000000_H 0x40000000 #define mI0000000_L 0x00000000 /* m0VVV0VVV: .byte 127, 127, 127, 0, 127, 127, 127, 0 */ #define m0VVV0VVV_H 0x007F7F7F #define m0VVV0VVV_L 0x007F7F7F /* c1: .word 0x1, 0x1, 0x1, 0x1 */ #define c1_H 0x00010001 #define c1_L 0x00010001 /*\ Constants for asm_rgba.S \*/ /* m_rb: .long 0x00f800f8, 0x00f800f8 */ #define m_rb_H 0x00f800f8 #define m_rb_L 0x00f800f8 /* m_r: .long 0xf800f800, 0xf800f800 */ #define m_r_H 0xf800f800 #define m_r_L 0xf800f800 /* m_g6: .long 0x0000fc00, 0x0000fc00 */ #define m_g6_H 0x0000fc00 #define m_g6_L 0x0000fc00 /* m_g5: .long 0x0000f800, 0x0000f800 */ #define m_g5_H 0x0000f800 #define m_g5_L 0x0000f800 /*\ Multiply constants to fake two shifts at once \*/ /* mul_rgb565: .long 0x20000004, 0x20000004 */ #define mul_rgb565_H 0x20000004 #define mul_rgb565_L 0x20000004 /* mul_bgr565: .long 0x00042000, 0x00042000 */ #define mul_bgr565_H 0x00042000 #define mul_bgr565_L 0x00042000 /* mul_rgb555: .long 0x20000008, 0x20000008 */ #define mul_rgb555_H 0x20000008 #define mul_rgb555_L 0x20000008 /* mul_bgr555: .long 0x00082000, 0x00082000 */ #define mul_bgr555_H 0x00082000 #define mul_bgr555_L 0x00082000 /*\ Load an 8-byte constant to an mmx register \*/ #define LOAD_IMMQ(mask, reg) \ pushl $mask##_H ;\ pushl $mask##_L ;\ movq (%esp), reg #define CLEANUP_IMMQ_LOADS(num_loaded) \ addl $ num_loaded * 8, %esp imlib2-1.4.6/src/lib/colormod.c0000664000175000017500000001345012255265015013150 00000000000000#include "common.h" #include "colormod.h" #include "file.h" #include "loaderpath.h" #include #include "image.h" #include "blend.h" static DATABIG mod_count = 0; ImlibColorModifier * __imlib_CreateCmod(void) { ImlibColorModifier *cm; int i; cm = malloc(sizeof(ImlibColorModifier)); cm->modification_count = mod_count; for (i = 0; i < 256; i++) { cm->red_mapping[i] = (DATA8) i; cm->green_mapping[i] = (DATA8) i; cm->blue_mapping[i] = (DATA8) i; cm->alpha_mapping[i] = (DATA8) i; } return cm; } void __imlib_FreeCmod(ImlibColorModifier * cm) { free(cm); } void __imlib_CmodChanged(ImlibColorModifier * cm) { mod_count++; cm->modification_count = mod_count; } void __imlib_CmodSetTables(ImlibColorModifier * cm, DATA8 * r, DATA8 * g, DATA8 * b, DATA8 * a) { int i; for (i = 0; i < 256; i++) { if (r) cm->red_mapping[i] = r[i]; if (g) cm->green_mapping[i] = g[i]; if (b) cm->blue_mapping[i] = b[i]; if (a) cm->alpha_mapping[i] = a[i]; } __imlib_CmodChanged(cm); } void __imlib_CmodReset(ImlibColorModifier * cm) { int i; for (i = 0; i < 256; i++) { cm->red_mapping[i] = (DATA8) i; cm->green_mapping[i] = (DATA8) i; cm->blue_mapping[i] = (DATA8) i; cm->alpha_mapping[i] = (DATA8) i; } __imlib_CmodChanged(cm); } void __imlib_DataCmodApply(DATA32 * data, int w, int h, int jump, ImlibImageFlags * fl, ImlibColorModifier * cm) { int x, y; DATA32 *p; /* We might be adding alpha */ if (fl && !(*fl & F_HAS_ALPHA)) { p = data; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { R_VAL(p) = R_CMOD(cm, R_VAL(p)); G_VAL(p) = G_CMOD(cm, G_VAL(p)); B_VAL(p) = B_CMOD(cm, B_VAL(p)); p++; } p += jump; } return; } p = data; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { R_VAL(p) = R_CMOD(cm, R_VAL(p)); G_VAL(p) = G_CMOD(cm, G_VAL(p)); B_VAL(p) = B_CMOD(cm, B_VAL(p)); A_VAL(p) = A_CMOD(cm, A_VAL(p)); p++; } p += jump; } } void __imlib_CmodGetTables(ImlibColorModifier * cm, DATA8 * r, DATA8 * g, DATA8 * b, DATA8 * a) { if (r) memcpy(r, cm->red_mapping, (256 * sizeof(DATA8))); if (g) memcpy(g, cm->green_mapping, (256 * sizeof(DATA8))); if (b) memcpy(b, cm->blue_mapping, (256 * sizeof(DATA8))); if (a) memcpy(a, cm->alpha_mapping, (256 * sizeof(DATA8))); } void __imlib_CmodModBrightness(ImlibColorModifier * cm, double v) { int i, val, val2; val = (int)(v * 255); for (i = 0; i < 256; i++) { val2 = (int)cm->red_mapping[i] + val; if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->red_mapping[i] = (DATA8) val2; val2 = (int)cm->green_mapping[i] + val; if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->green_mapping[i] = (DATA8) val2; val2 = (int)cm->blue_mapping[i] + val; if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->blue_mapping[i] = (DATA8) val2; val2 = (int)cm->alpha_mapping[i] + val; if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->alpha_mapping[i] = (DATA8) val2; } } void __imlib_CmodModContrast(ImlibColorModifier * cm, double v) { int i, val2; for (i = 0; i < 256; i++) { val2 = (int)(((double)cm->red_mapping[i] - 127) * v) + 127; if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->red_mapping[i] = (DATA8) val2; val2 = (int)(((double)cm->green_mapping[i] - 127) * v) + 127; if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->green_mapping[i] = (DATA8) val2; val2 = (int)(((double)cm->blue_mapping[i] - 127) * v) + 127; if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->blue_mapping[i] = (DATA8) val2; val2 = (int)(((double)cm->alpha_mapping[i] - 127) * v) + 127; if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->alpha_mapping[i] = (DATA8) val2; } } void __imlib_CmodModGamma(ImlibColorModifier * cm, double v) { int i, val2; if (v < 0.01) v = 0.01; for (i = 0; i < 256; i++) { val2 = (int)(pow(((double)cm->red_mapping[i] / 255), (1 / v)) * 255); if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->red_mapping[i] = (DATA8) val2; val2 = (int)(pow(((double)cm->green_mapping[i] / 255), (1 / v)) * 255); if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->green_mapping[i] = (DATA8) val2; val2 = (int)(pow(((double)cm->blue_mapping[i] / 255), (1 / v)) * 255); if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->blue_mapping[i] = (DATA8) val2; val2 = (int)(pow(((double)cm->alpha_mapping[i] / 255), (1 / v)) * 255); if (val2 < 0) val2 = 0; if (val2 > 255) val2 = 255; cm->alpha_mapping[i] = (DATA8) val2; } } #if 0 void __imlib_ImageCmodApply(ImlibImage * im, ImlibColorModifier * cm) { __imlib_DataCmodApply(im->data, im->w, im->h, 0, cm); } #endif imlib2-1.4.6/src/lib/scale.c0000664000175000017500000015502112255265135012425 00000000000000#include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include "scale.h" #include /*\ NB: If you change this, don't forget asm_scale.S \*/ struct _imlib_scale_info { int *xpoints; DATA32 **ypoints; int *xapoints, *yapoints; int xup_yup; DATA32 *pix_assert; }; #define RGBA_COMPOSE(r, g, b, a) ((a) << 24) | ((r) << 16) | ((g) << 8) | (b) #define INV_XAP (256 - xapoints[x]) #define XAP (xapoints[x]) #define INV_YAP (256 - yapoints[dyy + y]) #define YAP (yapoints[dyy + y]) static DATA32 ** __imlib_CalcYPoints(DATA32 * src, int sw, int sh, int dh, int b1, int b2) { DATA32 **p; int i, j = 0; int val, inc, rv = 0; if (dh < 0) { dh = -dh; rv = 1; } p = malloc((dh + 1) * sizeof(DATA32 *)); if (dh < (b1 + b2)) { if (dh < b1) { b1 = dh; b2 = 0; } else b2 = dh - b1; } val = 0; inc = 1 << 16; for (i = 0; i < b1; i++) { p[j++] = src + ((val >> 16) * sw); val += inc; } if (dh > (b1 + b2)) { val = (b1 << 16); inc = ((sh - b1 - b2) << 16) / (dh - b1 - b2); for (i = 0; i < (dh - b1 - b2); i++) { p[j++] = src + ((val >> 16) * sw); val += inc; } } val = (sh - b2) << 16; inc = 1 << 16; for (i = 0; i <= b2; i++) { p[j++] = src + ((val >> 16) * sw); val += inc; } if (rv) for (i = dh / 2; --i >= 0;) { DATA32 *tmp = p[i]; p[i] = p[dh - i - 1]; p[dh - i - 1] = tmp; } return p; } static int * __imlib_CalcXPoints(int sw, int dw, int b1, int b2) { int *p, i, j = 0; int val, inc, rv = 0; if (dw < 0) { dw = -dw; rv = 1; } p = malloc((dw + 1) * sizeof(int)); if (dw < (b1 + b2)) { if (dw < b1) { b1 = dw; b2 = 0; } else b2 = dw - b1; } val = 0; inc = 1 << 16; for (i = 0; i < b1; i++) { p[j++] = (val >> 16); val += inc; } if (dw > (b1 + b2)) { val = (b1 << 16); inc = ((sw - b1 - b2) << 16) / (dw - b1 - b2); for (i = 0; i < (dw - b1 - b2); i++) { p[j++] = (val >> 16); val += inc; } } val = (sw - b2) << 16; inc = 1 << 16; for (i = 0; i <= b2; i++) { p[j++] = (val >> 16); val += inc; } if (rv) for (i = dw / 2; --i >= 0;) { int tmp = p[i]; p[i] = p[dw - i - 1]; p[dw - i - 1] = tmp; } return p; } static int * __imlib_CalcApoints(int s, int d, int b1, int b2, int up) { int *p, i, j = 0, rv = 0; if (d < 0) { rv = 1; d = -d; } p = malloc(d * sizeof(int)); if (d < (b1 + b2)) { if (d < b1) { b1 = d; b2 = 0; } else b2 = d - b1; } /* scaling up */ if (up) { int val, inc; for (i = 0; i < b1; i++) p[j++] = 0; if (d > (b1 + b2)) { int ss, dd; ss = s - b1 - b2; dd = d - b1 - b2; val = 0; inc = (ss << 16) / dd; for (i = 0; i < dd; i++) { p[j++] = (val >> 8) - ((val >> 8) & 0xffffff00); if (((val >> 16) + b1) >= (s - 1)) p[j - 1] = 0; val += inc; } } for (i = 0; i < b2; i++) p[j++] = 0; } /* scaling down */ else { int val, inc; for (i = 0; i < b1; i++) p[j++] = (1 << (16 + 14)) + (1 << 14); if (d > (b1 + b2)) { int ss, dd, ap, Cp; ss = s - b1 - b2; dd = d - b1 - b2; val = 0; inc = (ss << 16) / dd; Cp = ((dd << 14) / ss) + 1; for (i = 0; i < dd; i++) { ap = ((0x100 - ((val >> 8) & 0xff)) * Cp) >> 8; p[j] = ap | (Cp << 16); j++; val += inc; } } for (i = 0; i < b2; i++) p[j++] = (1 << (16 + 14)) + (1 << 14); } if (rv) { for (i = d / 2; --i >= 0;) { int tmp = p[i]; p[i] = p[d - i - 1]; p[d - i - 1] = tmp; } } return p; } ImlibScaleInfo * __imlib_FreeScaleInfo(ImlibScaleInfo * isi) { if (isi) { free(isi->xpoints); free(isi->ypoints); free(isi->xapoints); free(isi->yapoints); free(isi); } return NULL; } ImlibScaleInfo * __imlib_CalcScaleInfo(ImlibImage * im, int sw, int sh, int dw, int dh, char aa) { ImlibScaleInfo *isi; int scw, sch; scw = dw * im->w / sw; sch = dh * im->h / sh; isi = malloc(sizeof(ImlibScaleInfo)); if (!isi) return NULL; memset(isi, 0, sizeof(ImlibScaleInfo)); isi->pix_assert = im->data + im->w * im->h; isi->xup_yup = (abs(dw) >= sw) + ((abs(dh) >= sh) << 1); isi->xpoints = __imlib_CalcXPoints(im->w, scw, im->border.left, im->border.right); if (!isi->xpoints) return __imlib_FreeScaleInfo(isi); isi->ypoints = __imlib_CalcYPoints(im->data, im->w, im->h, sch, im->border.top, im->border.bottom); if (!isi->ypoints) return __imlib_FreeScaleInfo(isi); if (aa) { isi->xapoints = __imlib_CalcApoints(im->w, scw, im->border.left, im->border.right, isi->xup_yup & 1); if (!isi->xapoints) return __imlib_FreeScaleInfo(isi); isi->yapoints = __imlib_CalcApoints(im->h, sch, im->border.top, im->border.bottom, isi->xup_yup & 2); if (!isi->yapoints) return __imlib_FreeScaleInfo(isi); } return isi; } /* scale by pixel sampling only */ void __imlib_ScaleSampleRGBA(ImlibScaleInfo * isi, DATA32 * dest, int dxx, int dyy, int dx, int dy, int dw, int dh, int dow) { DATA32 *sptr, *dptr; int x, y, end; DATA32 **ypoints = isi->ypoints; int *xpoints = isi->xpoints; /* whats the last pixel on the line so we stop there */ end = dxx + dw; /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { /* get the pointer to the start of the destination scanline */ dptr = dest + dx + ((y + dy) * dow); /* calculate the source line we'll scan from */ sptr = ypoints[dyy + y]; /* go thru the scanline and copy across */ for (x = dxx; x < end; x++) *dptr++ = sptr[xpoints[x]]; } } /* FIXME: NEED to optimise ScaleAARGBA - currently its "ok" but needs work*/ /* scale by area sampling */ void __imlib_ScaleAARGBA(ImlibScaleInfo * isi, DATA32 * dest, int dxx, int dyy, int dx, int dy, int dw, int dh, int dow, int sow) { DATA32 *sptr, *dptr; int x, y, end; DATA32 **ypoints = isi->ypoints; int *xpoints = isi->xpoints; int *xapoints = isi->xapoints; int *yapoints = isi->yapoints; end = dxx + dw; /* scaling up both ways */ if (isi->xup_yup == 3) { /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { /* calculate the source line we'll scan from */ dptr = dest + dx + ((y + dy) * dow); sptr = ypoints[dyy + y]; if (YAP > 0) { for (x = dxx; x < end; x++) { int r, g, b, a; int rr, gg, bb, aa; DATA32 *pix; if (XAP > 0) { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_XAP; g = G_VAL(pix) * INV_XAP; b = B_VAL(pix) * INV_XAP; a = A_VAL(pix) * INV_XAP; pix++; r += R_VAL(pix) * XAP; g += G_VAL(pix) * XAP; b += B_VAL(pix) * XAP; a += A_VAL(pix) * XAP; pix += sow; rr = R_VAL(pix) * XAP; gg = G_VAL(pix) * XAP; bb = B_VAL(pix) * XAP; aa = A_VAL(pix) * XAP; pix--; rr += R_VAL(pix) * INV_XAP; gg += G_VAL(pix) * INV_XAP; bb += B_VAL(pix) * INV_XAP; aa += A_VAL(pix) * INV_XAP; r = ((rr * YAP) + (r * INV_YAP)) >> 16; g = ((gg * YAP) + (g * INV_YAP)) >> 16; b = ((bb * YAP) + (b * INV_YAP)) >> 16; a = ((aa * YAP) + (a * INV_YAP)) >> 16; *dptr++ = RGBA_COMPOSE(r, g, b, a); } else { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_YAP; g = G_VAL(pix) * INV_YAP; b = B_VAL(pix) * INV_YAP; a = A_VAL(pix) * INV_YAP; pix += sow; r += R_VAL(pix) * YAP; g += G_VAL(pix) * YAP; b += B_VAL(pix) * YAP; a += A_VAL(pix) * YAP; r >>= 8; g >>= 8; b >>= 8; a >>= 8; *dptr++ = RGBA_COMPOSE(r, g, b, a); } } } else { for (x = dxx; x < end; x++) { int r, g, b, a; DATA32 *pix; if (XAP > 0) { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_XAP; g = G_VAL(pix) * INV_XAP; b = B_VAL(pix) * INV_XAP; a = A_VAL(pix) * INV_XAP; pix++; r += R_VAL(pix) * XAP; g += G_VAL(pix) * XAP; b += B_VAL(pix) * XAP; a += A_VAL(pix) * XAP; r >>= 8; g >>= 8; b >>= 8; a >>= 8; *dptr++ = RGBA_COMPOSE(r, g, b, a); } else *dptr++ = sptr[xpoints[x]]; } } } } /* if we're scaling down vertically */ else if (isi->xup_yup == 1) #ifndef OLD_SCALE_DOWN { /*\ 'Correct' version, with math units prepared for MMXification \ */ int Cy, j; DATA32 *pix; int r, g, b, a, rr, gg, bb, aa; int yap; /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { Cy = YAP >> 16; yap = YAP & 0xffff; dptr = dest + dx + ((y + dy) * dow); for (x = dxx; x < end; x++) { pix = ypoints[dyy + y] + xpoints[x]; r = (R_VAL(pix) * yap) >> 10; g = (G_VAL(pix) * yap) >> 10; b = (B_VAL(pix) * yap) >> 10; a = (A_VAL(pix) * yap) >> 10; for (j = (1 << 14) - yap; j > Cy; j -= Cy) { pix += sow; r += (R_VAL(pix) * Cy) >> 10; g += (G_VAL(pix) * Cy) >> 10; b += (B_VAL(pix) * Cy) >> 10; a += (A_VAL(pix) * Cy) >> 10; } if (j > 0) { pix += sow; r += (R_VAL(pix) * j) >> 10; g += (G_VAL(pix) * j) >> 10; b += (B_VAL(pix) * j) >> 10; a += (A_VAL(pix) * j) >> 10; } assert(pix < isi->pix_assert); if (XAP > 0) { pix = ypoints[dyy + y] + xpoints[x] + 1; rr = (R_VAL(pix) * yap) >> 10; gg = (G_VAL(pix) * yap) >> 10; bb = (B_VAL(pix) * yap) >> 10; aa = (A_VAL(pix) * yap) >> 10; for (j = (1 << 14) - yap; j > Cy; j -= Cy) { pix += sow; rr += (R_VAL(pix) * Cy) >> 10; gg += (G_VAL(pix) * Cy) >> 10; bb += (B_VAL(pix) * Cy) >> 10; aa += (A_VAL(pix) * Cy) >> 10; } if (j > 0) { pix += sow; rr += (R_VAL(pix) * j) >> 10; gg += (G_VAL(pix) * j) >> 10; bb += (B_VAL(pix) * j) >> 10; aa += (A_VAL(pix) * j) >> 10; } assert(pix < isi->pix_assert); r = r * INV_XAP; g = g * INV_XAP; b = b * INV_XAP; a = a * INV_XAP; r = (r + ((rr * XAP))) >> 12; g = (g + ((gg * XAP))) >> 12; b = (b + ((bb * XAP))) >> 12; a = (a + ((aa * XAP))) >> 12; } else { r >>= 4; g >>= 4; b >>= 4; a >>= 4; } *dptr = RGBA_COMPOSE(r, g, b, a); dptr++; } } } #else { /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { int yap; /* calculate the source line we'll scan from */ dptr = dest + dx + ((y + dy) * dow); sptr = ypoints[dyy + y]; yap = (ypoints[dyy + y + 1] - ypoints[dyy + y]) / sow; if (yap > 1) { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0, a = 0; int rr = 0, gg = 0, bb = 0, aa = 0; DATA32 *pix; if (XAP > 0) { pix = sptr + xpoints[x]; for (j = 0; j < yap; j++) { r += R_VAL(pix); g += G_VAL(pix); b += B_VAL(pix); a += A_VAL(pix); rr += R_VAL(pix + 1); gg += G_VAL(pix + 1); bb += B_VAL(pix + 1); aa += A_VAL(pix + 1); pix += sow; } r = r * INV_XAP / yap; g = g * INV_XAP / yap; b = b * INV_XAP / yap; a = a * INV_XAP / yap; r = (r + ((rr * XAP) / yap)) >> 8; g = (g + ((gg * XAP) / yap)) >> 8; b = (b + ((bb * XAP) / yap)) >> 8; a = (a + ((aa * XAP) / yap)) >> 8; *dptr++ = RGBA_COMPOSE(r, g, b, a); } else { pix = sptr + xpoints[x]; for (j = 0; j < yap; j++) { r += R_VAL(pix); g += G_VAL(pix); b += B_VAL(pix); a += A_VAL(pix); pix += sow; } r /= yap; g /= yap; b /= yap; a /= yap; *dptr++ = RGBA_COMPOSE(r, g, b, a); } } } else { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0, a = 0; int count; DATA32 *pix; if (XAP > 0) { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_XAP; g = G_VAL(pix) * INV_XAP; b = B_VAL(pix) * INV_XAP; a = A_VAL(pix) * INV_XAP; pix++; r += R_VAL(pix) * XAP; g += G_VAL(pix) * XAP; b += B_VAL(pix) * XAP; a += A_VAL(pix) * XAP; r >>= 8; g >>= 8; b >>= 8; a >>= 8; *dptr++ = RGBA_COMPOSE(r, g, b, a); } else *dptr++ = sptr[xpoints[x]]; } } } } #endif /* if we're scaling down horizontally */ else if (isi->xup_yup == 2) #ifndef OLD_SCALE_DOWN { /*\ 'Correct' version, with math units prepared for MMXification \ */ int Cx, j; DATA32 *pix; int r, g, b, a, rr, gg, bb, aa; int xap; /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { dptr = dest + dx + ((y + dy) * dow); for (x = dxx; x < end; x++) { Cx = XAP >> 16; xap = XAP & 0xffff; pix = ypoints[dyy + y] + xpoints[x]; r = (R_VAL(pix) * xap) >> 10; g = (G_VAL(pix) * xap) >> 10; b = (B_VAL(pix) * xap) >> 10; a = (A_VAL(pix) * xap) >> 10; for (j = (1 << 14) - xap; j > Cx; j -= Cx) { pix++; r += (R_VAL(pix) * Cx) >> 10; g += (G_VAL(pix) * Cx) >> 10; b += (B_VAL(pix) * Cx) >> 10; a += (A_VAL(pix) * Cx) >> 10; } if (j > 0) { pix++; r += (R_VAL(pix) * j) >> 10; g += (G_VAL(pix) * j) >> 10; b += (B_VAL(pix) * j) >> 10; a += (A_VAL(pix) * j) >> 10; } assert(pix < isi->pix_assert); if (YAP > 0) { pix = ypoints[dyy + y] + xpoints[x] + sow; rr = (R_VAL(pix) * xap) >> 10; gg = (G_VAL(pix) * xap) >> 10; bb = (B_VAL(pix) * xap) >> 10; aa = (A_VAL(pix) * xap) >> 10; for (j = (1 << 14) - xap; j > Cx; j -= Cx) { pix++; rr += (R_VAL(pix) * Cx) >> 10; gg += (G_VAL(pix) * Cx) >> 10; bb += (B_VAL(pix) * Cx) >> 10; aa += (A_VAL(pix) * Cx) >> 10; } if (j > 0) { pix++; rr += (R_VAL(pix) * j) >> 10; gg += (G_VAL(pix) * j) >> 10; bb += (B_VAL(pix) * j) >> 10; aa += (A_VAL(pix) * j) >> 10; } assert(pix < isi->pix_assert); r = r * INV_YAP; g = g * INV_YAP; b = b * INV_YAP; a = a * INV_YAP; r = (r + ((rr * YAP))) >> 12; g = (g + ((gg * YAP))) >> 12; b = (b + ((bb * YAP))) >> 12; a = (a + ((aa * YAP))) >> 12; } else { r >>= 4; g >>= 4; b >>= 4; a >>= 4; } *dptr = RGBA_COMPOSE(r, g, b, a); dptr++; } } } #else { /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { /* calculate the source line we'll scan from */ dptr = dest + dx + ((y + dy) * dow); sptr = ypoints[dyy + y]; if (YAP > 0) { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0, a = 0; int rr = 0, gg = 0, bb = 0, aa = 0; int xap; DATA32 *pix; xap = xpoints[x + 1] - xpoints[x]; if (xap > 1) { pix = ypoints[dyy + y] + xpoints[x]; for (i = 0; i < xap; i++) { r += R_VAL(pix + i); g += G_VAL(pix + i); b += B_VAL(pix + i); a += A_VAL(pix + i); } r = r * INV_YAP / xap; g = g * INV_YAP / xap; b = b * INV_YAP / xap; a = a * INV_YAP / xap; pix = ypoints[dyy + y] + xpoints[x] + sow; for (i = 0; i < xap; i++) { rr += R_VAL(pix + i); gg += G_VAL(pix + i); bb += B_VAL(pix + i); aa += A_VAL(pix + i); } r = (r + ((rr * YAP) / xap)) >> 8; g = (g + ((gg * YAP) / xap)) >> 8; b = (b + ((bb * YAP) / xap)) >> 8; a = (a + ((aa * YAP) / xap)) >> 8; *dptr++ = RGBA_COMPOSE(r, g, b, a); } else { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_YAP; g = G_VAL(pix) * INV_YAP; b = B_VAL(pix) * INV_YAP; a = A_VAL(pix) * INV_YAP; pix += sow; r += R_VAL(pix) * YAP; g += G_VAL(pix) * YAP; b += B_VAL(pix) * YAP; a += A_VAL(pix) * YAP; r >>= 8; g >>= 8; b >>= 8; a >>= 8; *dptr++ = RGBA_COMPOSE(r, g, b, a); } } } else { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0, a = 0; int xap; DATA32 *pix; xap = xpoints[x + 1] - xpoints[x]; if (xap > 1) { pix = ypoints[dyy + y] + xpoints[x]; for (i = 0; i < xap; i++) { r += R_VAL(pix + i); g += G_VAL(pix + i); b += B_VAL(pix + i); a += A_VAL(pix + i); } r /= xap; g /= xap; b /= xap; a /= xap; *dptr++ = RGBA_COMPOSE(r, g, b, a); } else *dptr++ = sptr[xpoints[x]]; } } } } #endif /* if we're scaling down horizontally & vertically */ else #ifndef OLD_SCALE_DOWN { /*\ 'Correct' version, with math units prepared for MMXification: * |*| The operation 'b = (b * c) >> 16' translates to pmulhw, * |*| so the operation 'b = (b * c) >> d' would translate to * |*| psllw (16 - d), %mmb; pmulh %mmc, %mmb * \ */ int Cx, Cy, i, j; DATA32 *pix; int a, r, g, b, ax, rx, gx, bx; int xap, yap; for (y = 0; y < dh; y++) { Cy = YAP >> 16; yap = YAP & 0xffff; dptr = dest + dx + ((y + dy) * dow); for (x = dxx; x < end; x++) { Cx = XAP >> 16; xap = XAP & 0xffff; sptr = ypoints[dyy + y] + xpoints[x]; pix = sptr; sptr += sow; rx = (R_VAL(pix) * xap) >> 9; gx = (G_VAL(pix) * xap) >> 9; bx = (B_VAL(pix) * xap) >> 9; ax = (A_VAL(pix) * xap) >> 9; pix++; for (i = (1 << 14) - xap; i > Cx; i -= Cx) { rx += (R_VAL(pix) * Cx) >> 9; gx += (G_VAL(pix) * Cx) >> 9; bx += (B_VAL(pix) * Cx) >> 9; ax += (A_VAL(pix) * Cx) >> 9; pix++; } if (i > 0) { rx += (R_VAL(pix) * i) >> 9; gx += (G_VAL(pix) * i) >> 9; bx += (B_VAL(pix) * i) >> 9; ax += (A_VAL(pix) * i) >> 9; } r = (rx * yap) >> 14; g = (gx * yap) >> 14; b = (bx * yap) >> 14; a = (ax * yap) >> 14; for (j = (1 << 14) - yap; j > Cy; j -= Cy) { pix = sptr; sptr += sow; rx = (R_VAL(pix) * xap) >> 9; gx = (G_VAL(pix) * xap) >> 9; bx = (B_VAL(pix) * xap) >> 9; ax = (A_VAL(pix) * xap) >> 9; pix++; for (i = (1 << 14) - xap; i > Cx; i -= Cx) { rx += (R_VAL(pix) * Cx) >> 9; gx += (G_VAL(pix) * Cx) >> 9; bx += (B_VAL(pix) * Cx) >> 9; ax += (A_VAL(pix) * Cx) >> 9; pix++; } if (i > 0) { rx += (R_VAL(pix) * i) >> 9; gx += (G_VAL(pix) * i) >> 9; bx += (B_VAL(pix) * i) >> 9; ax += (A_VAL(pix) * i) >> 9; } r += (rx * Cy) >> 14; g += (gx * Cy) >> 14; b += (bx * Cy) >> 14; a += (ax * Cy) >> 14; } if (j > 0) { pix = sptr; sptr += sow; rx = (R_VAL(pix) * xap) >> 9; gx = (G_VAL(pix) * xap) >> 9; bx = (B_VAL(pix) * xap) >> 9; ax = (A_VAL(pix) * xap) >> 9; pix++; for (i = (1 << 14) - xap; i > Cx; i -= Cx) { rx += (R_VAL(pix) * Cx) >> 9; gx += (G_VAL(pix) * Cx) >> 9; bx += (B_VAL(pix) * Cx) >> 9; ax += (A_VAL(pix) * Cx) >> 9; pix++; } if (i > 0) { rx += (R_VAL(pix) * i) >> 9; gx += (G_VAL(pix) * i) >> 9; bx += (B_VAL(pix) * i) >> 9; ax += (A_VAL(pix) * i) >> 9; } r += (rx * j) >> 14; g += (gx * j) >> 14; b += (bx * j) >> 14; a += (ax * j) >> 14; } R_VAL(dptr) = r >> 5; G_VAL(dptr) = g >> 5; B_VAL(dptr) = b >> 5; A_VAL(dptr) = a >> 5; dptr++; } } } #else { int count; DATA32 *pix; int a, r, g, b; /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { int yap = (ypoints[dyy + y + 1] - ypoints[dyy + y]) / sow; /* calculate the source line we'll scan from */ dptr = dest + dx + ((y + dy) * dow); sptr = ypoints[dyy + y]; for (x = dxx; x < end; x++) { int xap = xpoints[x + 1] - xpoints[x]; if ((xap > 1) || (yap > 1)) { r = 0; g = 0; b = 0; pix = ypoints[dyy + y] + xpoints[x]; for (j = yap; --j >= 0;) { for (i = xap; --i >= 0;) { r += R_VAL(pix + i); g += G_VAL(pix + i); b += B_VAL(pix + i); a += A_VAL(pix + i); } pix += sow; } count = xap * yap; R_VAL(dptr) = r / count; G_VAL(dptr) = g / count; B_VAL(dptr) = b / count; A_VAL(dptr) = a / count; dptr++; } else *dptr++ = sptr[xpoints[x]]; } } } #endif } /* scale by area sampling - IGNORE the ALPHA byte*/ void __imlib_ScaleAARGB(ImlibScaleInfo * isi, DATA32 * dest, int dxx, int dyy, int dx, int dy, int dw, int dh, int dow, int sow) { DATA32 *sptr, *dptr; int x, y, end; DATA32 **ypoints = isi->ypoints; int *xpoints = isi->xpoints; int *xapoints = isi->xapoints; int *yapoints = isi->yapoints; end = dxx + dw; /* scaling up both ways */ if (isi->xup_yup == 3) { /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { /* calculate the source line we'll scan from */ dptr = dest + dx + ((y + dy) * dow); sptr = ypoints[dyy + y]; if (YAP > 0) { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0; int rr = 0, gg = 0, bb = 0; DATA32 *pix; if (XAP > 0) { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_XAP; g = G_VAL(pix) * INV_XAP; b = B_VAL(pix) * INV_XAP; pix++; r += R_VAL(pix) * XAP; g += G_VAL(pix) * XAP; b += B_VAL(pix) * XAP; pix += sow; rr = R_VAL(pix) * XAP; gg = G_VAL(pix) * XAP; bb = B_VAL(pix) * XAP; pix--; rr += R_VAL(pix) * INV_XAP; gg += G_VAL(pix) * INV_XAP; bb += B_VAL(pix) * INV_XAP; r = ((rr * YAP) + (r * INV_YAP)) >> 16; g = ((gg * YAP) + (g * INV_YAP)) >> 16; b = ((bb * YAP) + (b * INV_YAP)) >> 16; *dptr++ = RGBA_COMPOSE(r, g, b, 0xff); } else { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_YAP; g = G_VAL(pix) * INV_YAP; b = B_VAL(pix) * INV_YAP; pix += sow; r += R_VAL(pix) * YAP; g += G_VAL(pix) * YAP; b += B_VAL(pix) * YAP; r >>= 8; g >>= 8; b >>= 8; *dptr++ = RGBA_COMPOSE(r, g, b, 0xff); } } } else { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0; DATA32 *pix; if (XAP > 0) { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_XAP; g = G_VAL(pix) * INV_XAP; b = B_VAL(pix) * INV_XAP; pix++; r += R_VAL(pix) * XAP; g += G_VAL(pix) * XAP; b += B_VAL(pix) * XAP; r >>= 8; g >>= 8; b >>= 8; *dptr++ = RGBA_COMPOSE(r, g, b, 0xff); } else *dptr++ = sptr[xpoints[x]]; } } } } /* if we're scaling down vertically */ else if (isi->xup_yup == 1) #ifndef OLD_SCALE_DOWN { /*\ 'Correct' version, with math units prepared for MMXification \ */ int Cy, j; DATA32 *pix; int r, g, b, rr, gg, bb; int yap; /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { Cy = YAP >> 16; yap = YAP & 0xffff; dptr = dest + dx + ((y + dy) * dow); for (x = dxx; x < end; x++) { pix = ypoints[dyy + y] + xpoints[x]; r = (R_VAL(pix) * yap) >> 10; g = (G_VAL(pix) * yap) >> 10; b = (B_VAL(pix) * yap) >> 10; pix += sow; for (j = (1 << 14) - yap; j > Cy; j -= Cy) { r += (R_VAL(pix) * Cy) >> 10; g += (G_VAL(pix) * Cy) >> 10; b += (B_VAL(pix) * Cy) >> 10; pix += sow; } if (j > 0) { r += (R_VAL(pix) * j) >> 10; g += (G_VAL(pix) * j) >> 10; b += (B_VAL(pix) * j) >> 10; } if (XAP > 0) { pix = ypoints[dyy + y] + xpoints[x] + 1; rr = (R_VAL(pix) * yap) >> 10; gg = (G_VAL(pix) * yap) >> 10; bb = (B_VAL(pix) * yap) >> 10; pix += sow; for (j = (1 << 14) - yap; j > Cy; j -= Cy) { rr += (R_VAL(pix) * Cy) >> 10; gg += (G_VAL(pix) * Cy) >> 10; bb += (B_VAL(pix) * Cy) >> 10; pix += sow; } if (j > 0) { rr += (R_VAL(pix) * j) >> 10; gg += (G_VAL(pix) * j) >> 10; bb += (B_VAL(pix) * j) >> 10; } r = r * INV_XAP; g = g * INV_XAP; b = b * INV_XAP; r = (r + ((rr * XAP))) >> 12; g = (g + ((gg * XAP))) >> 12; b = (b + ((bb * XAP))) >> 12; } else { r >>= 4; g >>= 4; b >>= 4; } *dptr = RGBA_COMPOSE(r, g, b, 0xff); dptr++; } } } #else { /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { int yap; /* calculate the source line we'll scan from */ dptr = dest + dx + ((y + dy) * dow); sptr = ypoints[dyy + y]; yap = (ypoints[dyy + y + 1] - ypoints[dyy + y]) / sow; if (yap > 1) { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0; int rr = 0, gg = 0, bb = 0; DATA32 *pix; if (XAP > 0) { pix = sptr + xpoints[x]; for (j = 0; j < yap; j++) { r += R_VAL(pix); g += G_VAL(pix); b += B_VAL(pix); rr += R_VAL(pix + 1); gg += G_VAL(pix + 1); bb += B_VAL(pix + 1); pix += sow; } r = r * INV_XAP / yap; g = g * INV_XAP / yap; b = b * INV_XAP / yap; r = (r + ((rr * XAP) / yap)) >> 8; g = (g + ((gg * XAP) / yap)) >> 8; b = (b + ((bb * XAP) / yap)) >> 8; *dptr++ = RGBA_COMPOSE(r, g, b, 0xff); } else { pix = sptr + xpoints[x]; for (j = 0; j < yap; j++) { r += R_VAL(pix); g += G_VAL(pix); b += B_VAL(pix); pix += sow; } r /= yap; g /= yap; b /= yap; *dptr++ = RGBA_COMPOSE(r, g, b, 0xff); } } } else { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0; DATA32 *pix; if (XAP > 0) { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_XAP; g = G_VAL(pix) * INV_XAP; b = B_VAL(pix) * INV_XAP; pix++; r += R_VAL(pix) * XAP; g += G_VAL(pix) * XAP; b += B_VAL(pix) * XAP; r >>= 8; g >>= 8; b >>= 8; *dptr++ = RGBA_COMPOSE(r, g, b, 0xff); } else *dptr++ = sptr[xpoints[x]]; } } } } #endif /* if we're scaling down horizontally */ else if (isi->xup_yup == 2) #ifndef OLD_SCALE_DOWN { /*\ 'Correct' version, with math units prepared for MMXification \ */ int Cx, j; DATA32 *pix; int r, g, b, rr, gg, bb; int xap; /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { dptr = dest + dx + ((y + dy) * dow); for (x = dxx; x < end; x++) { Cx = XAP >> 16; xap = XAP & 0xffff; pix = ypoints[dyy + y] + xpoints[x]; r = (R_VAL(pix) * xap) >> 10; g = (G_VAL(pix) * xap) >> 10; b = (B_VAL(pix) * xap) >> 10; pix++; for (j = (1 << 14) - xap; j > Cx; j -= Cx) { r += (R_VAL(pix) * Cx) >> 10; g += (G_VAL(pix) * Cx) >> 10; b += (B_VAL(pix) * Cx) >> 10; pix++; } if (j > 0) { r += (R_VAL(pix) * j) >> 10; g += (G_VAL(pix) * j) >> 10; b += (B_VAL(pix) * j) >> 10; } if (YAP > 0) { pix = ypoints[dyy + y] + xpoints[x] + sow; rr = (R_VAL(pix) * xap) >> 10; gg = (G_VAL(pix) * xap) >> 10; bb = (B_VAL(pix) * xap) >> 10; pix++; for (j = (1 << 14) - xap; j > Cx; j -= Cx) { rr += (R_VAL(pix) * Cx) >> 10; gg += (G_VAL(pix) * Cx) >> 10; bb += (B_VAL(pix) * Cx) >> 10; pix++; } if (j > 0) { rr += (R_VAL(pix) * j) >> 10; gg += (G_VAL(pix) * j) >> 10; bb += (B_VAL(pix) * j) >> 10; } r = r * INV_YAP; g = g * INV_YAP; b = b * INV_YAP; r = (r + ((rr * YAP))) >> 12; g = (g + ((gg * YAP))) >> 12; b = (b + ((bb * YAP))) >> 12; } else { r >>= 4; g >>= 4; b >>= 4; } *dptr = RGBA_COMPOSE(r, g, b, 0xff); dptr++; } } } #else { /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { /* calculate the source line we'll scan from */ dptr = dest + dx + ((y + dy) * dow); sptr = ypoints[dyy + y]; if (YAP > 0) { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0; int rr = 0, gg = 0, bb = 0; int xap; DATA32 *pix; xap = xpoints[x + 1] - xpoints[x]; if (xap > 1) { pix = ypoints[dyy + y] + xpoints[x]; for (i = 0; i < xap; i++) { r += R_VAL(pix + i); g += G_VAL(pix + i); b += B_VAL(pix + i); } r = r * INV_YAP / xap; g = g * INV_YAP / xap; b = b * INV_YAP / xap; pix = ypoints[dyy + y] + xpoints[x] + sow; for (i = 0; i < xap; i++) { rr += R_VAL(pix + i); gg += G_VAL(pix + i); bb += B_VAL(pix + i); } r = (r + ((rr * YAP) / xap)) >> 8; g = (g + ((gg * YAP) / xap)) >> 8; b = (b + ((bb * YAP) / xap)) >> 8; *dptr++ = RGBA_COMPOSE(r, g, b, 0xff); } else { pix = ypoints[dyy + y] + xpoints[x]; r = R_VAL(pix) * INV_YAP; g = G_VAL(pix) * INV_YAP; b = B_VAL(pix) * INV_YAP; pix += sow; r += R_VAL(pix) * YAP; g += G_VAL(pix) * YAP; b += B_VAL(pix) * YAP; r >>= 8; g >>= 8; b >>= 8; *dptr++ = RGBA_COMPOSE(r, g, b, 0xff); } } } else { for (x = dxx; x < end; x++) { int r = 0, g = 0, b = 0; int xap; DATA32 *pix; xap = xpoints[x + 1] - xpoints[x]; if (xap > 1) { pix = ypoints[dyy + y] + xpoints[x]; for (i = 0; i < xap; i++) { r += R_VAL(pix + i); g += G_VAL(pix + i); b += B_VAL(pix + i); } r /= xap; g /= xap; b /= xap; *dptr++ = RGBA_COMPOSE(r, g, b, 0xff); } else *dptr++ = sptr[xpoints[x]]; } } } } #endif /* fully optimized (i think) - only change of algorithm can help */ /* if we're scaling down horizontally & vertically */ else #ifndef OLD_SCALE_DOWN { /*\ 'Correct' version, with math units prepared for MMXification \ */ int Cx, Cy, i, j; DATA32 *pix; int r, g, b, rx, gx, bx; int xap, yap; for (y = 0; y < dh; y++) { Cy = YAP >> 16; yap = YAP & 0xffff; dptr = dest + dx + ((y + dy) * dow); for (x = dxx; x < end; x++) { Cx = XAP >> 16; xap = XAP & 0xffff; sptr = ypoints[dyy + y] + xpoints[x]; pix = sptr; sptr += sow; rx = (R_VAL(pix) * xap) >> 9; gx = (G_VAL(pix) * xap) >> 9; bx = (B_VAL(pix) * xap) >> 9; pix++; for (i = (1 << 14) - xap; i > Cx; i -= Cx) { rx += (R_VAL(pix) * Cx) >> 9; gx += (G_VAL(pix) * Cx) >> 9; bx += (B_VAL(pix) * Cx) >> 9; pix++; } if (i > 0) { rx += (R_VAL(pix) * i) >> 9; gx += (G_VAL(pix) * i) >> 9; bx += (B_VAL(pix) * i) >> 9; } r = (rx * yap) >> 14; g = (gx * yap) >> 14; b = (bx * yap) >> 14; for (j = (1 << 14) - yap; j > Cy; j -= Cy) { pix = sptr; sptr += sow; rx = (R_VAL(pix) * xap) >> 9; gx = (G_VAL(pix) * xap) >> 9; bx = (B_VAL(pix) * xap) >> 9; pix++; for (i = (1 << 14) - xap; i > Cx; i -= Cx) { rx += (R_VAL(pix) * Cx) >> 9; gx += (G_VAL(pix) * Cx) >> 9; bx += (B_VAL(pix) * Cx) >> 9; pix++; } if (i > 0) { rx += (R_VAL(pix) * i) >> 9; gx += (G_VAL(pix) * i) >> 9; bx += (B_VAL(pix) * i) >> 9; } r += (rx * Cy) >> 14; g += (gx * Cy) >> 14; b += (bx * Cy) >> 14; } if (j > 0) { pix = sptr; sptr += sow; rx = (R_VAL(pix) * xap) >> 9; gx = (G_VAL(pix) * xap) >> 9; bx = (B_VAL(pix) * xap) >> 9; pix++; for (i = (1 << 14) - xap; i > Cx; i -= Cx) { rx += (R_VAL(pix) * Cx) >> 9; gx += (G_VAL(pix) * Cx) >> 9; bx += (B_VAL(pix) * Cx) >> 9; pix++; } if (i > 0) { rx += (R_VAL(pix) * i) >> 9; gx += (G_VAL(pix) * i) >> 9; bx += (B_VAL(pix) * i) >> 9; } r += (rx * j) >> 14; g += (gx * j) >> 14; b += (bx * j) >> 14; } R_VAL(dptr) = r >> 5; G_VAL(dptr) = g >> 5; B_VAL(dptr) = b >> 5; dptr++; } } } #else { int count; DATA32 *pix; int r, g, b; /* go through every scanline in the output buffer */ for (y = 0; y < dh; y++) { int yap = (ypoints[dyy + y + 1] - ypoints[dyy + y]) / sow; /* calculate the source line we'll scan from */ dptr = dest + dx + ((y + dy) * dow); sptr = ypoints[dyy + y]; for (x = dxx; x < end; x++) { int xap = xpoints[x + 1] - xpoints[x]; if ((xap > 1) || (yap > 1)) { r = 0; g = 0; b = 0; pix = sptr + xpoints[x]; for (j = yap; --j >= 0;) { for (i = xap; --i >= 0;) { r += R_VAL(pix + i); g += G_VAL(pix + i); b += B_VAL(pix + i); } pix += sow; } count = xap * yap; R_VAL(dptr) = r / count; G_VAL(dptr) = g / count; B_VAL(dptr) = b / count; dptr++; } else *dptr++ = sptr[xpoints[x]]; } } } #endif } imlib2-1.4.6/src/lib/updates.h0000664000175000017500000000066312255265030013003 00000000000000#ifndef __UPDATES #define __UPDATES 1 typedef struct _imlibupdate ImlibUpdate; struct _imlibupdate { int x, y, w, h; ImlibUpdate *next; }; __hidden ImlibUpdate *__imlib_AddUpdate(ImlibUpdate *u, int x, int y, int w, int h); __hidden ImlibUpdate *__imlib_MergeUpdate(ImlibUpdate *u, int w, int h, int hgapmax); __hidden void __imlib_FreeUpdates(ImlibUpdate *u); __hidden ImlibUpdate *__imlib_DupUpdates(ImlibUpdate *u); #endif imlib2-1.4.6/src/lib/asm_rgba.S0000664000175000017500000001147412255265030013066 00000000000000#include #include "asm.h" #ifdef DO_MMX_ASM /*\ |*| MMX assembly rgba rendering routines for Imlib2 |*| Written by Willem Monsuwe |*| |*| Special (hairy) constructs are only commented on first use. \*/ /*\ All functions have the same calling convention: |*| __imlib_mmx_rgbXXX(void *src, int sjmp, void *dst, int dw, |*| int w, int h, int dx, int dy) \*/ #define src 8(%ebp) #define sjmp 12(%ebp) #define dst 16(%ebp) #define dw 20(%ebp) #define w 24(%ebp) #define h 28(%ebp) #define dx 32(%ebp) #define dy 36(%ebp) .text .align 8 FN_(imlib_mmx_rgb565_fast) FN_(imlib_mmx_bgr565_fast) FN_(imlib_mmx_rgb555_fast) FN_(imlib_mmx_bgr555_fast) FN_(imlib_get_cpuid) #include "asm_loadimmq.S" /*\ Common code \*/ /*\ Save registers, load common parameters \*/ #define ENTER \ pushl %ebp; \ movl %esp, %ebp; \ pushl %ebx; \ pushl %ecx; \ pushl %edx; \ pushl %edi; \ pushl %esi; \ movl src, %esi; \ movl dst, %edi; \ movl w, %ebx; \ movl h, %edx; \ addl %ebx, sjmp #define LOOP_START \ testl %edx, %edx; \ jz 4f; \ testl %ebx, %ebx; \ jz 4f; \ 0: \ movl %ebx, %ecx #define LOOP_END \ 3: \ movl sjmp, %ecx; \ leal (%esi, %ecx, 4), %esi; \ addl dw, %edi; \ decl %edx; \ jnz 0b; \ 4: /*\ Unset MMX mode, reset registers, return \*/ #define LEAVE \ emms; \ popl %esi; \ popl %edi; \ popl %edx; \ popl %ecx; \ popl %ebx; \ movl %ebp, %esp; \ popl %ebp; \ ret PR_(imlib_mmx_bgr565_fast): LOAD_IMMQ(mul_bgr565, %mm7) /*\ This constant is the only difference \*/ CLEANUP_IMMQ_LOADS(1) jmp .rgb565_fast_entry SIZE(imlib_mmx_bgr565_fast) PR_(imlib_mmx_rgb565_fast): LOAD_IMMQ(mul_rgb565, %mm7) CLEANUP_IMMQ_LOADS(1) .rgb565_fast_entry: ENTER LOAD_IMMQ(m_rb, %mm5) LOAD_IMMQ(m_g6, %mm6) CLEANUP_IMMQ_LOADS(2) LOOP_START test $1, %ecx jz 1f decl %ecx movd (%esi, %ecx, 4), %mm0 movq %mm0, %mm1 pand %mm5, %mm0 pand %mm6, %mm1 pmaddwd %mm7, %mm0 por %mm1, %mm0 psrad $5, %mm0 movd %mm0, %eax movw %ax, (%edi, %ecx, 2) jz 3f 1: test $2, %ecx jz 2f subl $2, %ecx movq (%esi, %ecx, 4), %mm0 movq %mm0, %mm1 pand %mm5, %mm0 pand %mm6, %mm1 pmaddwd %mm7, %mm0 por %mm1, %mm0 pslld $11, %mm0 psrad $16, %mm0 packssdw %mm0, %mm0 movd %mm0, (%edi, %ecx, 2) jz 3f 2: subl $4, %ecx movq (%esi, %ecx, 4), %mm0 movq 8(%esi, %ecx, 4), %mm2 movq %mm0, %mm1 /*\ a r g b (2x) \*/ movq %mm2, %mm3 pand %mm5, %mm0 /*\ 0 rrrrr000 0 bbbbb000 (2 x) \*/ pand %mm5, %mm2 pand %mm6, %mm1 /*\ 0 0 gggggg00 00000000 (2 x) \*/ pand %mm6, %mm3 pmaddwd %mm7, %mm0 /*\ 0 000rrrrr 000000bb bbb00000 (2 x) \*/ pmaddwd %mm7, %mm2 por %mm1, %mm0 /*\ 0 000rrrrr ggggggbb bbb00000 (2 x) \*/ por %mm3, %mm2 pslld $11, %mm0 /*\ rrrrrggg gggbbbbb 0 0 (2 x) \*/ pslld $11, %mm2 psrad $16, %mm0 /*\ x x rrrrrggg gggbbbbb (2 x) \*/ psrad $16, %mm2 packssdw %mm2, %mm0 /*\ rrrrrggg gggbbbbb (4 x) \*/ movq %mm0, (%edi, %ecx, 2) jnz 2b LOOP_END LEAVE SIZE(imlib_mmx_rgb565_fast) PR_(imlib_mmx_bgr555_fast): LOAD_IMMQ(mul_bgr555, %mm7) /*\ This constant is the only difference \*/ CLEANUP_IMMQ_LOADS(1) jmp .rgb555_fast_entry SIZE(imlib_mmx_bgr555_fast) PR_(imlib_mmx_rgb555_fast): LOAD_IMMQ(mul_rgb555, %mm7) CLEANUP_IMMQ_LOADS(1) .rgb555_fast_entry: ENTER LOAD_IMMQ(m_rb, %mm5) LOAD_IMMQ(m_g5, %mm6) CLEANUP_IMMQ_LOADS(2) LOOP_START test $1, %ecx jz 1f decl %ecx movd (%esi, %ecx, 4), %mm0 movq %mm0, %mm1 pand %mm5, %mm0 pand %mm6, %mm1 pmaddwd %mm7, %mm0 por %mm1, %mm0 psrad $5, %mm0 movd %mm0, %eax movw %ax, (%edi, %ecx, 2) jz 3f 1: test $2, %ecx jz 2f subl $2, %ecx movq (%esi, %ecx, 4), %mm0 movq %mm0, %mm1 pand %mm5, %mm0 pand %mm6, %mm1 pmaddwd %mm7, %mm0 por %mm1, %mm0 psrld $6, %mm0 packssdw %mm0, %mm0 movd %mm0, (%edi, %ecx, 2) jz 3f 2: subl $4, %ecx movq (%esi, %ecx, 4), %mm0 movq 8(%esi, %ecx, 4), %mm2 movq %mm0, %mm1 /*\ a r g b (2x) \*/ movq %mm2, %mm3 pand %mm5, %mm0 /*\ 0 rrrrr000 0 bbbbb000 (2 x) \*/ pand %mm5, %mm2 pand %mm6, %mm1 /*\ 0 0 ggggg000 00000000 (2 x) \*/ pand %mm6, %mm3 pmaddwd %mm7, %mm0 /*\ 0 000rrrrr 00000bbb bb000000 (2 x) \*/ pmaddwd %mm7, %mm2 por %mm1, %mm0 /*\ 0 000rrrrr gggggbbb bb000000 (2 x) \*/ por %mm3, %mm2 psrld $6, %mm0 /*\ 0 0 0rrrrrgg gggbbbbb (2 x) \*/ psrld $6, %mm2 packssdw %mm2, %mm0 /*\ 0rrrrrgg gggbbbbb (4 x) \*/ movq %mm0, (%edi, %ecx, 2) jnz 2b LOOP_END LEAVE SIZE(imlib_mmx_rgb555_fast) PR_(imlib_get_cpuid): pushl %ebx pushl %edx pushf popl %eax movl %eax, %ebx xorl $0x200000, %eax pushl %eax popf pushf popl %eax xorl %ebx, %eax andl $0x200000, %eax jz 1f xorl %eax, %eax cpuid testl %eax, %eax jz 1f movl $1, %eax cpuid and $0x00000f00, %eax and $0xfffff0ff, %edx orl %edx, %eax 1: popl %edx popl %ebx ret SIZE(imlib_get_cpuid) #endif #ifdef __ELF__ .section .note.GNU-stack,"",@progbits #endif imlib2-1.4.6/src/lib/context.c0000664000175000017500000001203412255265135013016 00000000000000#include "common.h" #ifdef BUILD_X11 #include #include "image.h" #include "context.h" #include "color.h" #include "rgba.h" static Context *context = NULL; static int max_context_count = 128; static int context_counter = 0; void __imlib_SetMaxContexts(int num) { max_context_count = num; __imlib_FlushContexts(); } int __imlib_GetMaxContexts(void) { return max_context_count; } void __imlib_FlushContexts(void) { Context *ct, *pct, *ctt; ct = context; pct = NULL; while (ct) { ctt = ct; ct = ct->next; /* it hasn't been referenced in the last max_context_count references */ /* thus old and getrid of it */ if (ctt->last_use < (context_counter - max_context_count)) { if (pct) context = ctt->next; else pct->next = ctt->next; if (ctt->palette) { int i, num[] = { 256, 128, 64, 32, 16, 8, 1 }; unsigned long pixels[256]; for (i = 0; i < num[ctt->palette_type]; i++) pixels[i] = (unsigned long)ctt->palette[i]; XFreeColors(ctt->display, ctt->colormap, pixels, num[ctt->palette_type], 0); free(ctt->palette); free(ctt->r_dither); free(ctt->g_dither); free(ctt->b_dither); } else if (ctt->r_dither) { free(ctt->r_dither); free(ctt->g_dither); free(ctt->b_dither); } free(ctt); } else pct = ctt; } } void __imlib_FreeContextForDisplay(Display * d) { Context *ct; ct = context; while (ct) { if (ct->display == d) ct->last_use = -(max_context_count * 2); ct = ct->next; } __imlib_FlushContexts(); } void __imlib_FreeContextForColormap(Display * d, Colormap cm) { Context *ct; ct = context; while (ct) { if ((ct->display == d) && (ct->colormap == cm)) ct->last_use = -(max_context_count * 2); ct = ct->next; } __imlib_FlushContexts(); } void __imlib_FreeContextForVisual(Display * d, Visual * v) { Context *ct; ct = context; while (ct) { if ((ct->display == d) && (ct->visual == v)) ct->last_use = -(max_context_count * 2); ct = ct->next; } __imlib_FlushContexts(); } Context * __imlib_FindContext(Display * d, Visual * v, Colormap c, int depth) { Context *ct, *pct; pct = NULL; ct = context; while (ct) { if ((ct->display == d) && (ct->visual == v) && (ct->colormap == c) && (ct->depth == depth)) { if (pct) { pct->next = ct->next; ct->next = context; context = ct; } return ct; } pct = ct; ct = ct->next; } return NULL; } Context * __imlib_NewContext(Display * d, Visual * v, Colormap c, int depth) { Context *ct; context_counter++; ct = malloc(sizeof(Context)); ct->last_use = context_counter; ct->display = d; ct->visual = v; ct->colormap = c; ct->depth = depth; ct->next = NULL; if (depth <= 8) { ct->palette = __imlib_AllocColorTable(d, c, &(ct->palette_type), v); ct->r_dither = malloc(sizeof(DATA8) * DM_X * DM_Y * 256); ct->g_dither = malloc(sizeof(DATA8) * DM_X * DM_Y * 256); ct->b_dither = malloc(sizeof(DATA8) * DM_X * DM_Y * 256); __imlib_RGBA_init((void *)ct->r_dither, (void *)ct->g_dither, (void *)ct->b_dither, depth, ct->palette_type); } else { ct->palette = NULL; ct->palette_type = 0; if ((depth > 8) && (depth <= 16)) { ct->r_dither = malloc(sizeof(DATA16) * 4 * 4 * 256); ct->g_dither = malloc(sizeof(DATA16) * 4 * 4 * 256); ct->b_dither = malloc(sizeof(DATA16) * 4 * 4 * 256); __imlib_RGBA_init((void *)ct->r_dither, (void *)ct->g_dither, (void *)ct->b_dither, depth, 0); } else { ct->r_dither = NULL; ct->g_dither = NULL; ct->b_dither = NULL; __imlib_RGBA_init((void *)ct->r_dither, (void *)ct->g_dither, (void *)ct->b_dither, depth, 0); } } return ct; } Context * __imlib_GetContext(Display * d, Visual * v, Colormap c, int depth) { Context *ct; ct = __imlib_FindContext(d, v, c, depth); if (ct) { ct->last_use = context_counter; return ct; } ct = __imlib_NewContext(d, v, c, depth); ct->next = context; context = ct; __imlib_FlushContexts(); return ct; } #endif /* BUILD_X11 */ imlib2-1.4.6/src/lib/font_draw.c0000664000175000017500000003117112255265065013322 00000000000000#include "config.h" #include "common.h" #include "colormod.h" #include "image.h" #include "blend.h" #include #include FT_FREETYPE_H #include FT_GLYPH_H #include "font.h" #include #include #include #include "file.h" #include "updates.h" #include "rgbadraw.h" #include "rotate.h" extern FT_Library ft_lib; Imlib_Font_Glyph * imlib_font_cache_glyph_get(ImlibFont * fn, FT_UInt index) { Imlib_Font_Glyph *fg; char key[6]; FT_Error error; key[0] = ((index) & 0x7f) + 1; key[1] = ((index >> 7) & 0x7f) + 1; key[2] = ((index >> 14) & 0x7f) + 1; key[3] = ((index >> 21) & 0x7f) + 1; key[4] = ((index >> 28) & 0x0f) + 1; key[5] = 0; fg = imlib_hash_find(fn->glyphs, key); if (fg) return fg; error = FT_Load_Glyph(fn->ft.face, index, FT_LOAD_NO_BITMAP); if (error) return NULL; fg = malloc(sizeof(struct _Imlib_Font_Glyph)); if (!fg) return NULL; memset(fg, 0, (sizeof(struct _Imlib_Font_Glyph))); error = FT_Get_Glyph(fn->ft.face->glyph, &(fg->glyph)); if (error) { free(fg); return NULL; } if (fg->glyph->format != ft_glyph_format_bitmap) { error = FT_Glyph_To_Bitmap(&(fg->glyph), ft_render_mode_normal, 0, 1); if (error) { FT_Done_Glyph(fg->glyph); free(fg); return NULL; } } fg->glyph_out = (FT_BitmapGlyph) fg->glyph; fn->glyphs = imlib_hash_add(fn->glyphs, key, fg); return fg; } void imlib_render_str(ImlibImage * im, ImlibFont * fn, int drx, int dry, const char *text, DATA8 r, DATA8 g, DATA8 b, DATA8 a, char dir, double angle, int *retw, int *reth, int blur, int *nextx, int *nexty, ImlibOp op, int clx, int cly, int clw, int clh) { int w, h, ascent; ImlibImage *im2; DATA32 *data, col; int nx, ny; imlib_font_query_advance(fn, text, &w, NULL); h = imlib_font_max_ascent_get(fn) - imlib_font_max_descent_get(fn); data = malloc(w * h * sizeof(DATA32)); if (!data) return; memset(data, 0, w * h * sizeof(DATA32)); /* TODO check if this is the right way of rendering. Esp for huge sizes */ im2 = __imlib_CreateImage(w, h, data); if (!im2) { free(data); return; } SET_FLAG(im2->flags, F_HAS_ALPHA); /* TODO check for endianess */ col = (a << 24) | (r << 16) | (g << 8) | b; ascent = imlib_font_max_ascent_get(fn); imlib_font_draw(im2, col, fn, 0, ascent, text, &nx, &ny, 0, 0, w, h); /* OK, now we have small ImlibImage with text rendered, * have to blend it on im */ if (blur > 0) __imlib_BlurImage(im2, blur); switch (dir) { case 0: /* to right */ angle = 0.0; break; case 1: /* to left */ angle = 0.0; __imlib_FlipImageBoth(im2); break; case 2: /* to down */ angle = 0.0; __imlib_FlipImageDiagonal(im2, 1); break; case 3: /* to up */ angle = 0.0; __imlib_FlipImageDiagonal(im2, 2); break; default: break; } if (angle == 0.0) { __imlib_BlendImageToImage(im2, im, 0, 1, IMAGE_HAS_ALPHA(im), 0, 0, im2->w, im2->h, drx, dry, im2->w, im2->h, NULL, op, clx, cly, clw, clh); } else { int xx, yy; double sa, ca; sa = sin(angle); ca = cos(angle); xx = drx; yy = dry; if (sa > 0.0) xx += sa * im2->h; else yy -= sa * im2->w; if (ca < 0.0) { xx -= ca * im2->w; yy -= ca * im2->h; } __imlib_BlendImageToImageSkewed(im2, im, 1, 1, IMAGE_HAS_ALPHA(im), 0, 0, im2->w, im2->h, xx, yy, (w * ca), (w * sa), 0, 0, NULL, op, clx, cly, clw, clh); } __imlib_FreeImage(im2); /* finally deal with return values */ switch (dir) { case 0: case 1: if (retw) *retw = w; if (reth) *reth = h; if (nextx) *nextx = nx; if (nexty) *nexty = ny; break; case 2: case 3: if (retw) *retw = h; if (reth) *reth = w; if (nextx) *nextx = ny; if (nexty) *nexty = nx; break; case 4: { double sa, ca; double x1, x2, xt; double y1, y2, yt; sa = sin(angle); ca = cos(angle); x1 = x2 = 0.0; xt = ca * w; if (xt < x1) x1 = xt; if (xt > x2) x2 = xt; xt = -(sa * h); if (xt < x1) x1 = xt; if (xt > x2) x2 = xt; xt = ca * w - sa * h; if (xt < x1) x1 = xt; if (xt > x2) x2 = xt; w = (int)(x2 - x1); y1 = y2 = 0.0; yt = sa * w; if (yt < y1) y1 = yt; if (yt > y2) y2 = yt; yt = ca * h; if (yt < y1) y1 = yt; if (yt > y2) y2 = yt; yt = sa * w + ca * h; if (yt < y1) y1 = yt; if (yt > y2) y2 = yt; h = (int)(y2 - y1); } if (retw) *retw = w; if (reth) *reth = h; if (nextx) *nextx = nx; if (nexty) *nexty = ny; break; default: break; } /* TODO this function is purely my art -- check once more */ } /* * This function returns the first font in the fallback chain to contain * the requested glyph. * The glyph index is returned in ret_index * If the glyph is not found, then the given font pointer is returned and * ret_index will be set to 0 */ ImlibFont * imlib_font_find_glyph(ImlibFont * first_fn, int gl, unsigned int *ret_index) { ImlibFont *fn = first_fn; do { int index = FT_Get_Char_Index(fn->ft.face, gl); if (index <= 0) fn = fn->fallback_next; else { (*ret_index) = index; return fn; } } while (fn); (*ret_index) = 0; return first_fn; } void imlib_font_draw(ImlibImage * dst, DATA32 col, ImlibFont * fn, int x, int y, const char *text, int *nextx, int *nexty, int clx, int cly, int clw, int clh) { int use_kerning; int pen_x, pen_y; int chr; FT_UInt prev_index; int ext_x, ext_y, ext_w, ext_h; DATA32 *im; int im_w, im_h; int lut[256]; int ii; im = dst->data; im_w = dst->w; im_h = dst->h; ext_x = 0; ext_y = 0; ext_w = im_w; ext_h = im_h; if (clw) { ext_x = clx; ext_y = cly; ext_w = clw; ext_h = clh; } if (ext_x < 0) { ext_w += ext_x; ext_x = 0; } if (ext_y < 0) { ext_h += ext_y; ext_y = 0; } if ((ext_x + ext_w) > im_w) ext_w = im_w - ext_x; if ((ext_y + ext_h) > im_h) ext_h = im_h - ext_y; if (ext_w <= 0) return; if (ext_h <= 0) return; for (ii = 0; ii < 256; ii++) { lut[ii] = (col & 0x00ffffff); /* TODO check endianess */ lut[ii] |= ((((ii + 1) * (col >> 24)) >> 8) << 24); } pen_x = x << 8; pen_y = y << 8; use_kerning = FT_HAS_KERNING(fn->ft.face); prev_index = 0; for (chr = 0; text[chr];) { FT_UInt index; Imlib_Font_Glyph *fg; ImlibFont *fn_in_chain; int chr_x, chr_y; int gl; gl = imlib_font_utf8_get_next((unsigned char *)text, &chr); if (gl == 0) break; fn_in_chain = imlib_font_find_glyph(fn, gl, &index); if ((use_kerning) && (prev_index) && (index)) { FT_Vector delta; FT_Get_Kerning(fn_in_chain->ft.face, prev_index, index, ft_kerning_default, &delta); pen_x += delta.x << 2; } fg = imlib_font_cache_glyph_get(fn_in_chain, index); if (!fg) continue; chr_x = (pen_x + (fg->glyph_out->left << 8)) >> 8; chr_y = (pen_y + (fg->glyph_out->top << 8)) >> 8; if (chr_x < (ext_x + ext_w)) { DATA8 *data; int i, j, w, h; data = fg->glyph_out->bitmap.buffer; j = fg->glyph_out->bitmap.pitch; w = fg->glyph_out->bitmap.width; if (j < w) j = w; h = fg->glyph_out->bitmap.rows; if ((fg->glyph_out->bitmap.pixel_mode == ft_pixel_mode_grays) && (fg->glyph_out->bitmap.num_grays == 256)) { if ((j > 0) && (chr_x + w > ext_x)) { for (i = 0; i < h; i++) { int dx, dy; int in_x, in_w; in_x = 0; in_w = 0; dx = chr_x; dy = y - (chr_y - i - y); if ((dx < (ext_x + ext_w)) && (dy >= (ext_y)) && (dy < (ext_y + ext_h))) { if (dx + w > (ext_x + ext_w)) in_w += (dx + w) - (ext_x + ext_w); if (dx < ext_x) { in_w += ext_x - dx; in_x = ext_x - dx; dx = ext_x; } if (in_w < w) { DATA8 *src_ptr; DATA32 *dst_ptr; DATA32 *dst_end_ptr; src_ptr = data + (i * j) + in_x; dst_ptr = im + (dy * im_w) + dx; dst_end_ptr = dst_ptr + w - in_w; while (dst_ptr < dst_end_ptr) { /* FIXME Oops! change this op */ if (!*dst_ptr) *dst_ptr = lut[(unsigned char)*src_ptr]; else if (*src_ptr) { /* very rare case - I've never seen symbols * overlapped by kerning */ int tmp; tmp = (*dst_ptr >> 24) + (lut [(unsigned char)*src_ptr] >> 24); tmp = (tmp > 256) ? 256 : tmp; *dst_ptr &= 0x00ffffff; *dst_ptr |= (tmp << 24); } dst_ptr++; src_ptr++; } } } } } } } else break; pen_x += fg->glyph->advance.x >> 8; prev_index = index; } if (nextx) *nextx = (pen_x >> 8) - x; if (nexty) *nexty = imlib_font_get_line_advance(fn); } imlib2-1.4.6/src/lib/image.h0000664000175000017500000001562512255265135012432 00000000000000#ifndef __IMAGE # define __IMAGE 1 # include "common.h" # ifdef BUILD_X11 # include # else # define X_DISPLAY_MISSING # endif # include # include # ifndef RTLD_LOCAL # define RTLD_LOCAL 0 # warning "your crap box doesn't define RTLD_LOCAL !?" # endif typedef struct _imlibimage ImlibImage; # ifdef BUILD_X11 typedef struct _imlibimagepixmap ImlibImagePixmap; # endif typedef struct _imlibborder ImlibBorder; typedef struct _imlibloader ImlibLoader; typedef struct _imlibimagetag ImlibImageTag; typedef int (*ImlibProgressFunction)(ImlibImage *im, char percent, int update_x, int update_y, int update_w, int update_h); typedef void (*ImlibDataDestructorFunction)(ImlibImage *im, void *data); enum _iflags { F_NONE = 0, F_HAS_ALPHA = (1 << 0), F_UNLOADED = (1 << 1), F_UNCACHEABLE = (1 << 2), F_ALWAYS_CHECK_DISK = (1 << 3), F_INVALID = (1 << 4), F_DONT_FREE_DATA = (1 << 5), F_FORMAT_IRRELEVANT = (1 << 6), F_BORDER_IRRELEVANT = (1 << 7), F_ALPHA_IRRELEVANT = (1 << 8) }; typedef enum _iflags ImlibImageFlags; struct _imlibborder { int left, right, top, bottom; }; struct _imlibimagetag { char *key; int val; void *data; void (*destructor)(ImlibImage *im, void *data); ImlibImageTag *next; }; struct _imlibimage { char *file; int w, h; DATA32 *data; ImlibImageFlags flags; time_t moddate; ImlibBorder border; int references; ImlibLoader *loader; char *format; ImlibImage *next; ImlibImageTag *tags; char *real_file; char *key; }; # ifdef BUILD_X11 struct _imlibimagepixmap { int w, h; Pixmap pixmap, mask; Display *display; Visual *visual; int depth; int source_x, source_y, source_w, source_h; Colormap colormap; char antialias, hi_quality, dither_mask; ImlibBorder border; ImlibImage *image; char *file; char dirty; int references; DATABIG modification_count; ImlibImagePixmap *next; }; # endif struct _imlibloader { char *file; int num_formats; char **formats; void *handle; char (*load)(ImlibImage *im, ImlibProgressFunction progress, char progress_granularity, char immediate_load); char (*save)(ImlibImage *im, ImlibProgressFunction progress, char progress_granularity); ImlibLoader *next; }; EAPI void __imlib_AttachTag(ImlibImage *im, const char *key, int val, void *data, ImlibDataDestructorFunction destructor); EAPI ImlibImageTag *__imlib_GetTag(ImlibImage *im, const char *key); __hidden ImlibImageTag *__imlib_RemoveTag(ImlibImage *im, const char *key); __hidden void __imlib_FreeTag(ImlibImage *im, ImlibImageTag *t); __hidden void __imlib_FreeAllTags(ImlibImage *im); __hidden void __imlib_SetCacheSize(int size); __hidden int __imlib_GetCacheSize(void); __hidden ImlibImage *__imlib_ProduceImage(void); __hidden void __imlib_ConsumeImage(ImlibImage *im); __hidden ImlibImage *__imlib_FindCachedImage(const char *file); __hidden void __imlib_AddImageToCache(ImlibImage *im); __hidden void __imlib_RemoveImageFromCache(ImlibImage *im); __hidden int __imlib_CurrentCacheSize(void); __hidden void __imlib_CleanupImageCache(void); # ifdef BUILD_X11 __hidden ImlibImagePixmap *__imlib_ProduceImagePixmap(void); __hidden void __imlib_ConsumeImagePixmap(ImlibImagePixmap *ip); __hidden ImlibImagePixmap *__imlib_FindCachedImagePixmap(ImlibImage *im, int w, int h, Display *d, Visual *v, int depth, int sx, int sy, int sw, int sh, Colormap cm, char aa, char hiq, char dmask, DATABIG modification_count); __hidden ImlibImagePixmap *__imlib_FindCachedImagePixmapByID(Display *d, Pixmap p); __hidden void __imlib_AddImagePixmapToCache(ImlibImagePixmap *ip); __hidden void __imlib_RemoveImagePixmapFromCache(ImlibImagePixmap *ip); __hidden void __imlib_CleanupImagePixmapCache(void); # endif __hidden ImlibLoader *__imlib_ProduceLoader(char *file); __hidden char **__imlib_ListLoaders(int *num_ret); __hidden char **__imlib_TrimLoaderList(char **list, int *num); __hidden int __imlib_ItemInList(char **list, int size, char *item); __hidden void __imlib_ConsumeLoader(ImlibLoader *l); __hidden void __imlib_RescanLoaders(void); __hidden void __imlib_RemoveAllLoaders(void); __hidden void __imlib_LoadAllLoaders(void); EAPI ImlibLoader *__imlib_FindBestLoaderForFile(const char *file, int for_save); __hidden ImlibLoader *__imlib_FindBestLoaderForFileFormat(const char *file, char *format, int for_save); __hidden void __imlib_SetImageAlphaFlag(ImlibImage *im, char alpha); __hidden ImlibImage *__imlib_CreateImage(int w, int h, DATA32 *data); __hidden ImlibImage *__imlib_LoadImage(const char *file, ImlibProgressFunction progress, char progress_granularity, char immediate_load, char dont_cache, ImlibLoadError *er); # ifdef BUILD_X11 __hidden ImlibImagePixmap *__imlib_FindImlibImagePixmapByID(Display *d, Pixmap p); # endif __hidden void __imlib_FreeImage(ImlibImage *im); # ifdef BUILD_X11 __hidden void __imlib_FreePixmap(Display *d, Pixmap p); # endif __hidden void __imlib_FlushCache(void); # ifdef BUILD_X11 __hidden void __imlib_DirtyPixmapsForImage(ImlibImage *im); # else # define __imlib_DirtyPixmapsForImage(x) /* x */ # endif __hidden void __imlib_DirtyImage(ImlibImage *im); __hidden void __imlib_SaveImage(ImlibImage *im, const char *file, ImlibProgressFunction progress, char progress_granularity, ImlibLoadError *er); # define IMAGE_HAS_ALPHA(im) ((im)->flags & F_HAS_ALPHA) # define IMAGE_IS_UNLOADED(im) ((im)->flags & F_UNLOADED) # define IMAGE_IS_UNCACHEABLE(im) ((im)->flags & F_UNCACHEABLE) # define IMAGE_ALWAYS_CHECK_DISK(im) ((im)->flags & F_ALWAYS_CHECK_DISK) # define IMAGE_IS_VALID(im) (!((im)->flags & F_INVALID)) # define IMAGE_FREE_DATA(im) (!((im)->flags & F_DONT_FREE_DATA)) # define SET_FLAG(flags, f) ((flags) |= (f)) # define UNSET_FLAG(flags, f) ((flags) &= (~f)) # define IMAGE_DIMENSIONS_OK(w, h) \ ( ((w) > 0) && ((h) > 0) && \ ((unsigned long long)(w) * (unsigned long long)(h) <= (1ULL << 29) - 1) ) #endif imlib2-1.4.6/src/lib/ximage.h0000664000175000017500000000200712255265113012604 00000000000000#ifndef __XIMAGE #define __XIMAGE 1 #include #include __hidden extern signed char x_does_shm; void __imlib_SetMaxXImageCount(Display * d, int num); __hidden int __imlib_GetMaxXImageCount(Display * d); __hidden void __imlib_SetMaxXImageTotalSize(Display * d, int num); __hidden int __imlib_GetMaxXImageTotalSize(Display * d); __hidden void __imlib_FlushXImage(Display * d); __hidden void __imlib_ConsumeXImage(Display * d, XImage * xim); __hidden XImage *__imlib_ProduceXImage(Display * d, Visual * v, int depth, int w, int h, char *shared); __hidden void __imlib_ShmCheck(Display * d); __hidden XImage *__imlib_ShmGetXImage(Display * d, Visual * v, Drawable draw, int depth, int x, int y, int w, int h, XShmSegmentInfo * si); __hidden void __imlib_ShmDetach(Display * d, XShmSegmentInfo * si); #endif imlib2-1.4.6/src/lib/api.c0000664000175000017500000050544412255265152012116 00000000000000#include "config.h" #ifdef BUILD_X11 #include #include #include #else #define X_DISPLAY_MISSING #endif #include #include #include "common.h" #include "colormod.h" #include "image.h" #include "scale.h" #include "blend.h" #include "span.h" #ifdef BUILD_X11 #include "context.h" #include "color.h" #include "grab.h" #include "rend.h" #include "rgba.h" #include "ximage.h" #include "draw.h" #endif #include "file.h" #include "updates.h" #include "rgbadraw.h" #include "Imlib2.h" #include #include FT_FREETYPE_H /*#ifdef HAVE_FREETYPE1_FREETYPE_FREETYPE_H #include #elif defined(HAVE_FREETYPE_FREETYPE_H) #include #else #include #endif */ #include "font.h" #include "grad.h" #include "rotate.h" #include "filter.h" #include "dynamic_filters.h" #include "script.h" #include #include "color_helpers.h" /* convenience macros */ #define CAST_IMAGE(im, image) (im) = (ImlibImage *)(image) #define CHECK_PARAM_POINTER_RETURN(func, sparam, param, ret) \ if (!(param)) \ { \ fprintf(stderr, "***** Imlib2 Developer Warning ***** :\n" \ "\tThis program is calling the Imlib call:\n\n" \ "\t%s();\n\n" \ "\tWith the parameter:\n\n" \ "\t%s\n\n" \ "\tbeing NULL. Please fix your program.\n", func, sparam); \ return ret; \ } #define CHECK_PARAM_POINTER(func, sparam, param) \ if (!(param)) \ { \ fprintf(stderr, "***** Imlib2 Developer Warning ***** :\n" \ "\tThis program is calling the Imlib call:\n\n" \ "\t%s();\n\n" \ "\tWith the parameter:\n\n" \ "\t%s\n\n" \ "\tbeing NULL. Please fix your program.\n", func, sparam); \ return; \ } /* internal typedefs for function pointers */ typedef void (*Imlib_Internal_Progress_Function) (void *, char, int, int, int, int); typedef void (*Imlib_Internal_Data_Destructor_Function) (void *, void *); struct _imlibcontext; typedef struct _imlibcontext ImlibContext; struct _imlibcontext { #ifdef BUILD_X11 Display *display; Visual *visual; Colormap colormap; int depth; Drawable drawable; Pixmap mask; #endif char anti_alias; char dither; char blend; Imlib_Color_Modifier color_modifier; Imlib_Operation operation; Imlib_Font font; Imlib_Text_Direction direction; double angle; Imlib_Color color; Imlib_Color_Range color_range; Imlib_Image image; Imlib_Progress_Function progress_func; char progress_granularity; char dither_mask; int mask_alpha_threshold; Imlib_Filter filter; Imlib_Rectangle cliprect; Imlib_TTF_Encoding encoding; int references; char dirty; }; struct _imlibcontextitem; typedef struct _imlibcontextitem ImlibContextItem; struct _imlibcontextitem { ImlibContext *context; ImlibContextItem *below; }; /* a stack of contexts -- only used by context-handling functions. */ static ImlibContextItem *contexts = NULL; /* (ImlibContext*) imlib_context_new(); */ /* this is the context all functions use rely on */ static ImlibContext *ctx = NULL; /* contexts->context; */ /* frees the given context including all its members */ static void __imlib_free_context(ImlibContext * context) { ImlibContextItem *next = contexts; if (ctx == context) { next = contexts->below; free(contexts); contexts = next; } ctx = context; if (ctx->image) { imlib_free_image(); ctx->image = NULL; } if (ctx->font) { imlib_free_font(); ctx->font = NULL; } if (ctx->color_modifier) { imlib_free_color_modifier(); ctx->color_modifier = NULL; } if (ctx->filter) { imlib_free_filter(); ctx->filter = NULL; } free(ctx); ctx = next->context; } EAPI Imlib_Context imlib_context_new(void) { ImlibContext *context = malloc(sizeof(ImlibContext)); #ifdef BUILD_X11 context->display = NULL; context->visual = NULL; context->colormap = 0; context->depth = 0; context->drawable = 0; context->mask = 0; #endif context->anti_alias = 1; context->dither = 0; context->blend = 1; context->color_modifier = NULL; context->operation = IMLIB_OP_COPY; context->font = NULL; context->direction = IMLIB_TEXT_TO_RIGHT; context->angle = 0.0; context->color.alpha = 255; context->color.red = 255; context->color.green = 255; context->color.blue = 255; context->color_range = NULL; context->image = NULL; context->progress_func = NULL; context->progress_granularity = 0; context->dither_mask = 0; context->mask_alpha_threshold = 128; context->filter = NULL; context->cliprect.x = 0; context->cliprect.y = 0; context->cliprect.w = 0; context->cliprect.h = 0; context->encoding = IMLIB_TTF_ENCODING_ISO_8859_1; context->references = 0; context->dirty = 0; return (Imlib_Context) context; } static ImlibContext * _imlib_context_get(void) { ImlibContext *context; context = imlib_context_new(); imlib_context_push(context); return context; } #define CHECK_CONTEXT(_ctx) \ if (!_ctx) _ctx = _imlib_context_get() /* frees the given context if it doesn't have any reference anymore. The last (default) context can never be freed. If context is the current context, the context below will be made the current context. */ EAPI void imlib_context_free(Imlib_Context context) { ImlibContext *c = (ImlibContext *) context; CHECK_PARAM_POINTER("imlib_context_free", "context", context); if (c == ctx && !contexts->below) return; if (c->references == 0) __imlib_free_context(c); else c->dirty = 1; } EAPI void imlib_context_push(Imlib_Context context) { ImlibContextItem *item; CHECK_PARAM_POINTER("imlib_context_push", "context", context); ctx = (ImlibContext *) context; item = malloc(sizeof(ImlibContextItem)); item->context = ctx; item->below = contexts; contexts = item; ctx->references++; } EAPI void imlib_context_pop(void) { ImlibContextItem *item = contexts; ImlibContext *current_ctx = item->context; if (!item->below) return; contexts = item->below; ctx = contexts->context; current_ctx->references--; if (current_ctx->dirty && current_ctx->references <= 0) __imlib_free_context(current_ctx); free(item); } EAPI Imlib_Context imlib_context_get(void) { return (Imlib_Context) ctx; } /* context setting/getting functions */ /** * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param w The width of the rectangle. * @param h The height of the rectangle. * * Sets the rectangle of the current context. **/ EAPI void imlib_context_set_cliprect(int x, int y, int w, int h) { CHECK_CONTEXT(ctx); ctx->cliprect.x = x; ctx->cliprect.y = y; ctx->cliprect.w = w; ctx->cliprect.h = h; } EAPI void imlib_context_get_cliprect(int *x, int *y, int *w, int *h) { CHECK_CONTEXT(ctx); *x = ctx->cliprect.x; *y = ctx->cliprect.y; *w = ctx->cliprect.w; *h = ctx->cliprect.h; } #ifdef BUILD_X11 /** * @param display Current display to be used. * * Sets the current X display to be used for rendering of images to * drawables. You do not need to set this if you do not intend to * render an image to an X drawable. If you do you will need to set * this. If you change displays just set this to the new display * pointer. Do not use a Display pointer if you have closed that * display already - also note that if you close a display connection * and continue to render using Imlib2 without setting the display * pointer to NULL or something new, crashes may occur. */ EAPI void imlib_context_set_display(Display * display) { CHECK_CONTEXT(ctx); ctx->display = display; } /** * @return The current display. * * Returns the current display used for Imlib2's display context. */ EAPI Display * imlib_context_get_display(void) { CHECK_CONTEXT(ctx); return ctx->display; } /** * Tell Imlib2 that the current display connection has been closed. * * Call when (and only when) you close a display connection but continue * using Imlib2 on a different connection. */ EAPI void imlib_context_disconnect_display(void) { CHECK_CONTEXT(ctx); if (!ctx->display) return; __imlib_RenderDisconnect(ctx->display); ctx->display = NULL; } /** * @param visual Current visual to use. * * Sets the current visual to use when rendering images to * drawables or producing pixmaps. You need to set this for anything to * render to a drawable or produce any pixmaps (this can be the default * visual). */ EAPI void imlib_context_set_visual(Visual * visual) { CHECK_CONTEXT(ctx); ctx->visual = visual; ctx->depth = imlib_get_visual_depth(ctx->display, ctx->visual); } /** * @return The current visual. * * Returns the current visual used for Imlib2's context. */ EAPI Visual * imlib_context_get_visual(void) { CHECK_CONTEXT(ctx); return ctx->visual; } /** * @param colormap Colormap to use. * * Sets the colormap to use when rendering to drawables and allocating * colors. You must set this to the colormap you are using to render any * images or produce any pixmaps (this can be the default colormap). */ EAPI void imlib_context_set_colormap(Colormap colormap) { CHECK_CONTEXT(ctx); ctx->colormap = colormap; } /** * @return The current colormap. * * Returns the current Colormap used for Imlib2's context. */ EAPI Colormap imlib_context_get_colormap(void) { CHECK_CONTEXT(ctx); return ctx->colormap; } /** * @param drawable An X drawable. * * Sets the X drawable to which images will be rendered when you call * a render call in Imlib2. This may be either a pixmap or a * window. You must set this to render anything. */ EAPI void imlib_context_set_drawable(Drawable drawable) { CHECK_CONTEXT(ctx); ctx->drawable = drawable; } /** * @return The current drawable. * * Returns the current Drawable used for Imlib2's context. */ EAPI Drawable imlib_context_get_drawable(void) { CHECK_CONTEXT(ctx); return ctx->drawable; } /** * @param mask An 1-bit deep pixmap. * * Sets the 1-bit deep pixmap to be drawn to when rendering to generate * a mask pixmap. This is only useful if the image you are rendering * has alpha. Set this to 0 to not render a pixmap mask. */ EAPI void imlib_context_set_mask(Pixmap mask) { CHECK_CONTEXT(ctx); ctx->mask = mask; } /** * @return The current pixmap. * * Returns the current pixmap destination to be used to render a mask into. */ EAPI Pixmap imlib_context_get_mask(void) { CHECK_CONTEXT(ctx); return ctx->mask; } #endif /** * @param dither_mask The dither mask flag. * * Selects if, you are rendering to a mask, or producing pixmap masks * from images, if the mask is to be dithered or not. passing in 1 for * dither_mask means the mask pixmap will be dithered, 0 means it will * not be dithered. */ EAPI void imlib_context_set_dither_mask(char dither_mask) { CHECK_CONTEXT(ctx); ctx->dither_mask = dither_mask; } /** * @return The current dither mask flag. * * Returns the current mode for dithering pixmap masks. 1 means * dithering is enabled and 0 means it is not. */ EAPI char imlib_context_get_dither_mask(void) { CHECK_CONTEXT(ctx); return ctx->dither_mask; } /** * @param mask_alpha_threshold The mask alpha threshold. * * Selects, if you are rendering to a mask, the alpha threshold above which * mask bits are set. The default mask alpha threshold is 128, meaning that * a mask bit will be set if the pixel alpha is >= 128. */ EAPI void imlib_context_set_mask_alpha_threshold(int mask_alpha_threshold) { CHECK_CONTEXT(ctx); ctx->mask_alpha_threshold = mask_alpha_threshold; } /** * @return The current mask mask alpha threshold. * * Returns the current mask alpha threshold. */ EAPI int imlib_context_get_mask_alpha_threshold(void) { CHECK_CONTEXT(ctx); return ctx->mask_alpha_threshold; } /** * @param anti_alias The anti alias flag. * * Toggles "anti-aliased" scaling of images. This * isn't quite correct since it's actually super and sub pixel * sampling that it turns on and off, but anti-aliasing is used for * having "smooth" edges to lines and shapes and this means when * images are scaled they will keep their smooth appearance. Passing * in 1 turns this on and 0 turns it off. */ EAPI void imlib_context_set_anti_alias(char anti_alias) { CHECK_CONTEXT(ctx); ctx->anti_alias = anti_alias; } /** * @return The current anti alias flag. * * Returns if Imlib2 currently will smoothly scale images. 1 means it * will and 0 means it will not. */ EAPI char imlib_context_get_anti_alias(void) { CHECK_CONTEXT(ctx); return ctx->anti_alias; } /** * @param dither The dithering flag. * * Sets the dithering flag for rendering to a drawable or when pixmaps * are produced. This affects the color image appearance by enabling * dithering. Dithering slows down rendering but produces considerably * better results. this option has no effect foe rendering in 24 bit * and up, but in 16 bit and lower it will dither, producing smooth * gradients and much better quality images. setting dither to 1 * enables it and 0 disables it. */ EAPI void imlib_context_set_dither(char dither) { CHECK_CONTEXT(ctx); ctx->dither = dither; } /** * @return The current dithering flag. * * Returns if image data is rendered with dithering currently. 1 means * yes and 0 means no. */ EAPI char imlib_context_get_dither(void) { CHECK_CONTEXT(ctx); return ctx->dither; } /** * @param blend The blending flag. * * When rendering an image to a drawable, Imlib2 is able to blend the * image directly onto the drawable during rendering. Setting this to 1 * will enable this. If the image has no alpha channel this has no * effect. Setting it to 0 will disable this. */ EAPI void imlib_context_set_blend(char blend) { CHECK_CONTEXT(ctx); ctx->blend = blend; } /** * @return The current blending flag. * * Returns if Imlib2 will blend images onto a drawable whilst * rendering to that drawable. 1 means yes and 0 means no. */ EAPI char imlib_context_get_blend(void) { CHECK_CONTEXT(ctx); return ctx->blend; } /** * @param color_modifier Current color modifier. * * Sets the current color modifier used for rendering pixmaps or * images to a drawable or images onto other images. Color modifiers * are lookup tables that map the values in the red, green, blue and * alpha channels to other values in the same channel when rendering, * allowing for fades, color correction etc. to be done whilst * rendering. pass in NULL as the color_modifier to disable the color * modifier for rendering. */ EAPI void imlib_context_set_color_modifier(Imlib_Color_Modifier color_modifier) { CHECK_CONTEXT(ctx); ctx->color_modifier = color_modifier; } /** * @return The current color modifier. * * Returns the current color modifier being used. */ EAPI Imlib_Color_Modifier imlib_context_get_color_modifier(void) { CHECK_CONTEXT(ctx); return ctx->color_modifier; } /** * @param operation * * When Imlib2 draws an image onto another or an image onto a drawable * it is able to do more than just blend the result on using the given * alpha channel of the image. It is also able to do saturating * additive, subtractive and a combination of the both (called reshade) * rendering. The default mode is IMLIB_OP_COPY. you can also set it to * IMLIB_OP_ADD, IMLIB_OP_SUBTRACT or IMLIB_OP_RESHADE. Use this * function to set the rendering operation. IMLIB_OP_COPY performs * basic alpha blending: DST = (SRC * A) + (DST * (1 - * A)). IMLIB_OP_ADD does DST = DST + (SRC * A). IMLIB_OP_SUBTRACT does * DST = DST - (SRC * A) and IMLIB_OP_RESHADE does DST = DST + (((SRC - * 0.5) / 2) * A). */ EAPI void imlib_context_set_operation(Imlib_Operation operation) { CHECK_CONTEXT(ctx); ctx->operation = operation; } /** * @return The current operation mode. * * Returns the current operation mode. */ EAPI Imlib_Operation imlib_context_get_operation(void) { CHECK_CONTEXT(ctx); return ctx->operation; } /** * @param font Current font. * * Sets the current font to use when rendering text. you should load * the font first with imlib_load_font(). */ EAPI void imlib_context_set_font(Imlib_Font font) { CHECK_CONTEXT(ctx); ctx->font = font; } /** * @return The current font. * * Returns the current font. */ EAPI Imlib_Font imlib_context_get_font(void) { CHECK_CONTEXT(ctx); return ctx->font; } /** * @param direction Text direction. * * Sets the direction in which to draw text in terms of simple 90 * degree orientations or an arbitrary angle. The direction can be one * of IMLIB_TEXT_TO_RIGHT, IMLIB_TEXT_TO_LEFT, IMLIB_TEXT_TO_DOWN, * IMLIB_TEXT_TO_UP or IMLIB_TEXT_TO_ANGLE. The default is * IMLIB_TEXT_TO_RIGHT. If you use IMLIB_TEXT_TO_ANGLE, you will also * have to set the angle with imlib_context_set_angle(). */ EAPI void imlib_context_set_direction(Imlib_Text_Direction direction) { CHECK_CONTEXT(ctx); ctx->direction = direction; } /** * @param angle Angle of the text strings. * * Sets the angle at which text strings will be drawn if the text * direction has been set to IMLIB_TEXT_TO_ANGLE with * imlib_context_set_direction(). */ EAPI void imlib_context_set_angle(double angle) { CHECK_CONTEXT(ctx); ctx->angle = angle; } /** * @return The current angle of the text strings. * * Returns the current angle used to render text at if the direction * is IMLIB_TEXT_TO_ANGLE. */ EAPI double imlib_context_get_angle(void) { CHECK_CONTEXT(ctx); return ctx->angle; } /** * @return The current direction of the text. * * Returns the current direction to render text in. */ EAPI Imlib_Text_Direction imlib_context_get_direction(void) { CHECK_CONTEXT(ctx); return ctx->direction; } /** * @param red Red channel of the current color. * @param green Green channel of the current color. * @param blue Blue channel of the current color. * @param alpha Alpha channel of the current color. * * Sets the color with which text, lines and rectangles are drawn when * being rendered onto an image. Values for @p red, @p green, @p blue * and @p alpha are between 0 and 255 - any other values have * undefined results. */ EAPI void imlib_context_set_color(int red, int green, int blue, int alpha) { CHECK_CONTEXT(ctx); ctx->color.red = red; ctx->color.green = green; ctx->color.blue = blue; ctx->color.alpha = alpha; } /** * @param red Red channel of the current color. * @param green Green channel of the current color. * @param blue Blue channel of the current color. * @param alpha Alpha channel of the current color. * * Returns the current color for rendering text, rectangles and lines. */ EAPI void imlib_context_get_color(int *red, int *green, int *blue, int *alpha) { CHECK_CONTEXT(ctx); *red = ctx->color.red; *green = ctx->color.green; *blue = ctx->color.blue; *alpha = ctx->color.alpha; } /** * @return The current color. * * Returns the current color as a color struct. Do NOT free this * pointer. */ EAPI Imlib_Color * imlib_context_get_imlib_color(void) { CHECK_CONTEXT(ctx); return &ctx->color; } /** * @param hue Hue channel of the current color. * @param saturation Saturation channel of the current color. * @param value Value channel of the current color. * @param alpha Alpha channel of the current color. * * Sets the color in HSVA space. Values for @p hue are between 0 and 360, * values for @p saturation and @p value between 0 and 1, and values for * @p alpha are between 0 and 255 - any other values have undefined * results. */ EAPI void imlib_context_set_color_hsva(float hue, float saturation, float value, int alpha) { int r, g, b; __imlib_hsv_to_rgb(hue, saturation, value, &r, &g, &b); imlib_context_set_color(r, g, b, alpha); } /** * @param hue Hue channel of the current color. * @param saturation Saturation channel of the current color. * @param value Value channel of the current color. * @param alpha Alpha channel of the current color. * * Returns the current color for rendering text, rectangles and lines * in HSVA space. */ EAPI void imlib_context_get_color_hsva(float *hue, float *saturation, float *value, int *alpha) { int r, g, b; imlib_context_get_color(&r, &g, &b, alpha); __imlib_rgb_to_hsv(r, g, b, hue, saturation, value); } /** * @param hue Hue channel of the current color. * @param lightness Lightness channel of the current color. * @param saturation Saturation channel of the current color. * @param alpha Alpha channel of the current color. * * Sets the color in HLSA space. Values for @p hue are between 0 and 360, * values for @p lightness and @p saturation between 0 and 1, and values for * @p alpha are between 0 and 255 - any other values have undefined * results. */ EAPI void imlib_context_set_color_hlsa(float hue, float lightness, float saturation, int alpha) { int r, g, b; __imlib_hls_to_rgb(hue, lightness, saturation, &r, &g, &b); imlib_context_set_color(r, g, b, alpha); } /** * @param hue Hue channel of the current color. * @param lightness Lightness channel of the current color. * @param saturation Saturation channel of the current color. * @param alpha Alpha channel of the current color. * * Returns the current color for rendering text, rectangles and lines * in HLSA space. */ EAPI void imlib_context_get_color_hlsa(float *hue, float *lightness, float *saturation, int *alpha) { int r, g, b; imlib_context_get_color(&r, &g, &b, alpha); __imlib_rgb_to_hls(r, g, b, hue, lightness, saturation); } /** * @param cyan Cyan channel of the current color. * @param magenta Magenta channel of the current color. * @param yellow Yellow channel of the current color. * @param alpha Alpha channel of the current color. * * Sets the color in CMYA space. Values for @p cyan, @p magenta, @p yellow and * @p alpha are between 0 and 255 - any other values have undefined * results. */ EAPI void imlib_context_set_color_cmya(int cyan, int magenta, int yellow, int alpha) { CHECK_CONTEXT(ctx); ctx->color.red = 255 - cyan; ctx->color.green = 255 - magenta; ctx->color.blue = 255 - yellow; ctx->color.alpha = alpha; } /** * @param cyan Cyan channel of the current color. * @param magenta Magenta channel of the current color. * @param yellow Yellow channel of the current color. * @param alpha Alpha channel of the current color. * * Returns the current color for rendering text, rectangles and lines * in CMYA space. */ EAPI void imlib_context_get_color_cmya(int *cyan, int *magenta, int *yellow, int *alpha) { CHECK_CONTEXT(ctx); *cyan = 255 - ctx->color.red; *magenta = 255 - ctx->color.green; *yellow = 255 - ctx->color.blue; *alpha = ctx->color.alpha; } /** * @param color_range Color range. * * Sets the current color range to use for rendering gradients. */ EAPI void imlib_context_set_color_range(Imlib_Color_Range color_range) { CHECK_CONTEXT(ctx); ctx->color_range = color_range; } /** * @return The current color range. * * Returns the current color range being used for gradients. */ EAPI Imlib_Color_Range imlib_context_get_color_range(void) { CHECK_CONTEXT(ctx); return ctx->color_range; } /** * @param progress_function A progress function. * * Sets the progress function to be called back whilst loading * images. Set this to the function to be called, or set it to NULL to * disable progress callbacks whilst loading. */ EAPI void imlib_context_set_progress_function(Imlib_Progress_Function progress_function) { CHECK_CONTEXT(ctx); ctx->progress_func = progress_function; } /** * @return The current progress function. * * Returns the current progress function being used. */ EAPI Imlib_Progress_Function imlib_context_get_progress_function(void) { CHECK_CONTEXT(ctx); return ctx->progress_func; } /** * @param progress_granularity A char. * * This hints as to how often to call the progress callback. 0 means * as often as possible. 1 means whenever 15 more of the image has been * decoded, 10 means every 10% of the image decoding, 50 means every * 50% and 100 means only call at the end. Values outside of the range * 0-100 are undefined. */ EAPI void imlib_context_set_progress_granularity(char progress_granularity) { CHECK_CONTEXT(ctx); ctx->progress_granularity = progress_granularity; } /** * @return The current progress granularity * * Returns the current progress granularity being used. */ EAPI char imlib_context_get_progress_granularity(void) { CHECK_CONTEXT(ctx); return ctx->progress_granularity; } /** * @param image Current image. * * Sets the current image Imlib2 will be using with its function calls. */ EAPI void imlib_context_set_image(Imlib_Image image) { CHECK_CONTEXT(ctx); ctx->image = image; } /** * @return The current image. * * Returns the current context image. */ EAPI Imlib_Image imlib_context_get_image(void) { CHECK_CONTEXT(ctx); return ctx->image; } EAPI void imlib_context_set_TTF_encoding(Imlib_TTF_Encoding encoding) { CHECK_CONTEXT(ctx); ctx->encoding = encoding; } EAPI Imlib_TTF_Encoding imlib_context_get_TTF_encoding(void) { CHECK_CONTEXT(ctx); return ctx->encoding; } /* imlib api */ /** * @return The current image size. * * Returns the current size of the image cache in bytes. The cache is * a unified cache used for image data AND pixmaps. */ EAPI int imlib_get_cache_size(void) { CHECK_CONTEXT(ctx); return __imlib_GetCacheSize(); } /** * @param bytes Cache size. * * Sets the cache size. The size is in bytes. Setting the cache size to * 0 effectively flushes the cache and keeps the cache size at 0 until * set to another value. Whenever you set the cache size Imlib2 will * flush as many old images and pixmap from the cache as needed until * the current cache usage is less than or equal to the cache size. */ EAPI void imlib_set_cache_size(int bytes) { CHECK_CONTEXT(ctx); __imlib_SetCacheSize(bytes); } /** * @return The current number of colors. * * Gets the number of colors Imlib2 currently at a maximum is allowed * to allocate for rendering. The default is 256. */ EAPI int imlib_get_color_usage(void) { CHECK_CONTEXT(ctx); #ifdef BUILD_X11 return (int)_max_colors; #else return 256; #endif } /** * @param max Maximum number of colors. * * Sets the maximum number of colors you would like Imlib2 to allocate * for you when rendering. The default is 256. This has no effect in * depths greater than 8 bit. */ EAPI void imlib_set_color_usage(int max) { CHECK_CONTEXT(ctx); #ifdef BUILD_X11 if (max < 2) max = 2; else if (max > 256) max = 256; _max_colors = max; #endif } /** * If you want Imlib2 to forcibly flush any cached loaders it has and * re-load them from disk (this is useful if the program just * installed a new loader and does not want to wait till Imlib2 deems * it an optimal time to rescan the loaders) */ EAPI void imlib_flush_loaders(void) { CHECK_CONTEXT(ctx); __imlib_RemoveAllLoaders(); } #ifdef BUILD_X11 /** * @param display The current display * @param visual The current visual * @return * * Convenience function that returns the depth of a visual for that * display. */ EAPI int imlib_get_visual_depth(Display * display, Visual * visual) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_get_visual_depth", "display", display, 0); CHECK_PARAM_POINTER_RETURN("imlib_get_visual_depth", "visual", visual, 0); return __imlib_XActualDepth(display, visual); } /** * @param display The current display * @param screen The screen * @param depth_return The depth of the returned visual. * @return The best visual. * * Returns the visual for the display @p display and the screen @p * screen that Imlib2 thinks * will give you the best quality output. @p depth_return should point to * an int that will be filled with the depth of that visual too. */ EAPI Visual * imlib_get_best_visual(Display * display, int screen, int *depth_return) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_get_best_visual", "display", display, NULL); CHECK_PARAM_POINTER_RETURN("imlib_get_best_visual", "depth_return", depth_return, NULL); return __imlib_BestVisual(display, screen, depth_return); } #endif /** * @param file Image file. * @return An image handle. * * Loads an image from disk located at the path specified by * @p file. Please see the section \ref loading for more * detail. Returns an image handle on success or NULL on failure. */ EAPI Imlib_Image imlib_load_image(const char *file) { Imlib_Image im = NULL; Imlib_Image prev_ctxt_image; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_load_image", "file", file, NULL); prev_ctxt_image = ctx->image; im = __imlib_LoadImage(file, (ImlibProgressFunction) ctx->progress_func, ctx->progress_granularity, 0, 0, NULL); ctx->image = prev_ctxt_image; return (Imlib_Image) im; } /** * @param file Image file. * @return An image handle. * * Loads an image from disk located at the path specified by * @p file. This forces the image data to be decoded at load time too, * instead of decoding being deferred until it is needed. Returns an * image handle on success or NULL on failure. */ EAPI Imlib_Image imlib_load_image_immediately(const char *file) { Imlib_Image im = NULL; Imlib_Image prev_ctxt_image; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_load_image_immediately", "file", file, NULL); prev_ctxt_image = ctx->image; im = __imlib_LoadImage(file, (ImlibProgressFunction) ctx->progress_func, ctx->progress_granularity, 1, 0, NULL); ctx->image = prev_ctxt_image; return (Imlib_Image) im; } /** * @param file Image file. * @return An image handle. * * Loads the image without looking in the cache first. Returns an * image handle on success or NULL on failure. */ EAPI Imlib_Image imlib_load_image_without_cache(const char *file) { Imlib_Image im = NULL; Imlib_Image prev_ctxt_image; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_load_image_without_cache", "file", file, NULL); prev_ctxt_image = ctx->image; im = __imlib_LoadImage(file, (ImlibProgressFunction) ctx->progress_func, ctx->progress_granularity, 0, 1, NULL); ctx->image = prev_ctxt_image; return (Imlib_Image) im; } /** * @param file Image file. * @return An image handle. * * Loads the image without deferred image data decoding (i.e. it is * decoded straight away) and without looking in the cache. Returns an * image handle on success or NULL on failure. */ EAPI Imlib_Image imlib_load_image_immediately_without_cache(const char *file) { Imlib_Image im = NULL; Imlib_Image prev_ctxt_image; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_load_image_immediately_without_cache", "file", file, NULL); prev_ctxt_image = ctx->image; im = __imlib_LoadImage(file, (ImlibProgressFunction) ctx->progress_func, ctx->progress_granularity, 1, 1, NULL); ctx->image = prev_ctxt_image; return (Imlib_Image) im; } /** * @param file Image file. * @param error_return The returned error. * @return An image handle. * * Loads an image at the path @p file on disk. If it succeeds it returns * a valid image handle, if not NULL is returned and @p error_return * is set to the detail of the error. */ EAPI Imlib_Image imlib_load_image_with_error_return(const char *file, Imlib_Load_Error * error_return) { Imlib_Image im = NULL; ImlibLoadError er; Imlib_Image prev_ctxt_image; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_load_image_with_error_return", "file", file, NULL); if (!__imlib_FileExists(file)) { *error_return = IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST; return NULL; } if (__imlib_FileIsDir(file)) { *error_return = IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY; return NULL; } if (!__imlib_FileCanRead(file)) { *error_return = IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_READ; return NULL; } prev_ctxt_image = ctx->image; im = (Imlib_Image) __imlib_LoadImage(file, (ImlibProgressFunction) ctx->progress_func, ctx->progress_granularity, 1, 0, &er); ctx->image = prev_ctxt_image; if (im) *error_return = IMLIB_LOAD_ERROR_NONE; else { if (er == IMLIB_LOAD_ERROR_NONE) *error_return = IMLIB_LOAD_ERROR_NO_LOADER_FOR_FILE_FORMAT; else *error_return = (Imlib_Load_Error) er; } return im; } /** * Frees the image that is set as the current image in Imlib2's context. */ EAPI void imlib_free_image(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_free_image", "image", ctx->image); __imlib_FreeImage(ctx->image); ctx->image = NULL; } /** * Frees the current image in Imlib2's context AND removes it from the * cache. */ EAPI void imlib_free_image_and_decache(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_free_image_and_decache", "image", ctx->image); CAST_IMAGE(im, ctx->image); SET_FLAG(im->flags, F_INVALID); __imlib_FreeImage(im); ctx->image = NULL; } /** * Returns the width in pixels of the current image in Imlib2's context. */ EAPI int imlib_image_get_width(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_get_width", "image", ctx->image, 0); CAST_IMAGE(im, ctx->image); return im->w; } /** * Returns the height in pixels of the current image in Imlib2's context. */ EAPI int imlib_image_get_height(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_get_height", "image", ctx->image, 0); CAST_IMAGE(im, ctx->image); return im->h; } /** * @return The current filename. * * Returns the filename for the file that is set as the current * context. The pointer returned is only valid as long as no operations * cause the filename of the image to change. Saving the file with a * different name would cause this. It is suggested you duplicate the * string if you wish to continue to use the string for later * processing. Do not free the string pointer returned by this * function. */ EAPI const char * imlib_image_get_filename(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_get_filename", "image", ctx->image, 0); CAST_IMAGE(im, ctx->image); /* strdup() the returned value if you want to alter it! */ return (const char *)(im->file); } /** * @return A pointer to the image data. * * Returns a pointer to the image data in the image set as the image * for the current context. When you get this pointer it is assumed you * are planning on writing to the data, thus once you do this the image * can no longer be used for caching - in fact all images cached from * this one will also be affected when you put the data back. If this * matters it is suggested you clone the image first before playing * with the image data. The image data is returned in the format of a * DATA32 (32 bits) per pixel in a linear array ordered from the top * left of the image to the bottom right going from left to right each * line. Each pixel has the upper 8 bits as the alpha channel and the * lower 8 bits are the blue channel - so a pixel's bits are ARGB (from * most to least significant, 8 bits per channel). You must put the * data back at some point. */ EAPI DATA32 * imlib_image_get_data(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_get_data", "image", ctx->image, NULL); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!im->data) return NULL; __imlib_DirtyImage(im); return im->data; } /** * @return A pointer to the image data. * * Functions the same way as imlib_image_get_data(), but returns a * pointer expecting the program to NOT write to the data returned (it * is for inspection purposes only). Writing to this data has undefined * results. The data does not need to be put back. */ EAPI DATA32 * imlib_image_get_data_for_reading_only(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_get_data_for_reading_only", "image", ctx->image, NULL); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!im->data) return NULL; return im->data; } /** * @param data The pointer to the image data. * * Puts back @p data when it was obtained by * imlib_image_get_data(). @p data must be the same pointer returned * by imlib_image_get_data(). This operated on the current context * image. */ EAPI void imlib_image_put_back_data(DATA32 * data) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_put_back_data", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_put_back_data", "data", data); CAST_IMAGE(im, ctx->image); __imlib_DirtyImage(im); data = NULL; } /** * @return Current alpha channel flag. * * Returns 1 if the current context image has an alpha channel, or 0 * if it does not (the alpha data space is still there and available - * just "unused"). */ EAPI char imlib_image_has_alpha(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_has_alpha", "image", ctx->image, 0); CAST_IMAGE(im, ctx->image); if (IMAGE_HAS_ALPHA(im)) return 1; return 0; } /** * By default Imlib2 will not check the timestamp of an image on disk * and compare it with the image in its cache - this is to minimize * disk activity when using the cache. Call this function and it will * flag the current context image as being liable to change on disk * and Imlib2 will check the timestamp of the image file on disk and * compare it with the cached image when it next needs to use this * image in the cache. */ EAPI void imlib_image_set_changes_on_disk(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_set_never_changes_on_disk", "image", ctx->image); CAST_IMAGE(im, ctx->image); SET_FLAG(im->flags, F_ALWAYS_CHECK_DISK); } /** * @param border The border of the image. * * Fills the Imlib_Border structure to which @p border points to with the * values of the border of the current context image. The border is the * area at the edge of the image that does not scale with the rest of * the image when resized - the borders remain constant in size. This * is useful for scaling bevels at the edge of images differently to * the image center. */ EAPI void imlib_image_get_border(Imlib_Border * border) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_get_border", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_get_border", "border", border); CAST_IMAGE(im, ctx->image); border->left = im->border.left; border->right = im->border.right; border->top = im->border.top; border->bottom = im->border.bottom; } /** * @param border The border of the image. * * Sets the border of the current context image to the values contained * in the Imlib_Border structure @p border points to. */ EAPI void imlib_image_set_border(Imlib_Border * border) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_set_border", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_set_border", "border", border); CAST_IMAGE(im, ctx->image); if ((im->border.left == border->left) && (im->border.right == border->right) && (im->border.top == border->top) && (im->border.bottom == border->bottom)) return; im->border.left = border->left; im->border.right = border->right; im->border.top = border->top; im->border.bottom = border->bottom; __imlib_DirtyPixmapsForImage(im); } /** * @param format Format of the image. * * Sets the format of the current image. This is used for when you * wish to save an image in a different format that it was loaded in, * or if the image currently has no file format associated with it. */ EAPI void imlib_image_set_format(const char *format) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_set_format", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_set_format", "format", format); CAST_IMAGE(im, ctx->image); if (im->format) free(im->format); if (format) im->format = strdup(format); else im->format = NULL; if (!(im->flags & F_FORMAT_IRRELEVANT)) { __imlib_DirtyImage(im); } } /** * @param irrelevant Irrelevant format flag. * * Sets if the format value of the current image is irrelevant for * caching purposes - by default it is. pass irrelevant as 1 to make it * irrelevant and 0 to make it relevant for caching. */ EAPI void imlib_image_set_irrelevant_format(char irrelevant) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_set_irrelevant_format", "image", ctx->image); CAST_IMAGE(im, ctx->image); if (irrelevant) { SET_FLAG(im->flags, F_FORMAT_IRRELEVANT); } else { UNSET_FLAG(im->flags, F_FORMAT_IRRELEVANT); } } /** * @param irrelevant Irrelevant border flag. * * Sets if the border of the current image is irrelevant for caching * purposes. By default it is. Set irrelevant to 1 to make it * irrelevant, and 0 to make it relevant. */ EAPI void imlib_image_set_irrelevant_border(char irrelevant) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_set_irrelevant_border", "image", ctx->image); CAST_IMAGE(im, ctx->image); if (irrelevant) { SET_FLAG(im->flags, F_BORDER_IRRELEVANT); } else { UNSET_FLAG(im->flags, F_BORDER_IRRELEVANT); } } /** * @param irrelevant Irrelevant alpha flag. * * Sets if the alpha channel status of the current image (i.e. if * there is or is not one) is important for caching purposes. By * default it is not. Set irrelevant to 1 to make it irrelevant and 0 * to make it relevant. */ EAPI void imlib_image_set_irrelevant_alpha(char irrelevant) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_set_irrelevant_alpha", "image", ctx->image); CAST_IMAGE(im, ctx->image); if (irrelevant) { SET_FLAG(im->flags, F_ALPHA_IRRELEVANT); } else { UNSET_FLAG(im->flags, F_ALPHA_IRRELEVANT); } } /** * @return Current image format. * * Returns the current image's format. Do not free this * string. Duplicate it if you need it for later use. */ EAPI char * imlib_image_format(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_format", "image", ctx->image, NULL); CAST_IMAGE(im, ctx->image); return im->format; } /** * @param has_alpha Alpha flag. * * Sets the alpha flag for the current image. Set @p has_alpha to 1 to * enable the alpha channel in the current image, or 0 to disable it. */ EAPI void imlib_image_set_has_alpha(char has_alpha) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_set_has_alpha", "image", ctx->image); CAST_IMAGE(im, ctx->image); if (has_alpha) SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); } #ifdef BUILD_X11 /** * @param pixmap_return The returned pixmap. * @param mask_return The returned mask. * * Creates a pixmap of the current image (and a mask if the image has * an alpha value) and return the id's of the pixmap and mask to * @p pixmap_return and @p mask_return pixmap id's. You must free these * pixmaps using Imlib2's free function imlib_free_pixmap_and_mask(). */ EAPI void imlib_render_pixmaps_for_whole_image(Pixmap * pixmap_return, Pixmap * mask_return) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_render_pixmaps_for_whole_image", "image", ctx->image); CHECK_PARAM_POINTER("imlib_render_pixmaps_for_whole_image", "pixmap_return", pixmap_return); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_CreatePixmapsForImage(ctx->display, ctx->drawable, ctx->visual, ctx->depth, ctx->colormap, im, pixmap_return, mask_return, 0, 0, im->w, im->h, im->w, im->h, 0, ctx->dither, ctx->dither_mask, ctx->mask_alpha_threshold, ctx->color_modifier); } /** * @param pixmap_return The returned pixmap. * @param mask_return The returned mask. * @param width Width of the pixmap. * @param height Height of the pixmap. * * Works just like imlib_render_pixmaps_for_whole_image(), but will * scale the output result to the width @p width and height @p height * specified. Scaling * is done before depth conversion so pixels used for dithering don't * grow large. */ EAPI void imlib_render_pixmaps_for_whole_image_at_size(Pixmap * pixmap_return, Pixmap * mask_return, int width, int height) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_render_pixmaps_for_whole_image_at_size", "image", ctx->image); CHECK_PARAM_POINTER("imlib_render_pixmaps_for_whole_image_at_size", "pixmap_return", pixmap_return); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_CreatePixmapsForImage(ctx->display, ctx->drawable, ctx->visual, ctx->depth, ctx->colormap, im, pixmap_return, mask_return, 0, 0, im->w, im->h, width, height, ctx->anti_alias, ctx->dither, ctx->dither_mask, ctx->mask_alpha_threshold, ctx->color_modifier); } /** * @param pixmap The pixmap. * * Frees @p pixmap (and any mask generated in association with that * pixmap). The pixmap will remain cached until the image the pixmap * was generated from is dirtied or decached, or the cache is flushed. */ EAPI void imlib_free_pixmap_and_mask(Pixmap pixmap) { CHECK_CONTEXT(ctx); __imlib_FreePixmap(ctx->display, pixmap); } /** * @param x X coordinate of the pixel. * @param y Y coordinate of the pixel. * * Renders the current image onto the current drawable at the (@p x, @p y) * pixel location specified without scaling. */ EAPI void imlib_render_image_on_drawable(int x, int y) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_render_image_on_drawable", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_RenderImage(ctx->display, im, ctx->drawable, ctx->mask, ctx->visual, ctx->colormap, ctx->depth, 0, 0, im->w, im->h, x, y, im->w, im->h, 0, ctx->dither, ctx->blend, ctx->dither_mask, ctx->mask_alpha_threshold, ctx->color_modifier, ctx->operation); } /** * @param x X coordinate of the pixel. * @param y Y coordinate of the pixel. * @param width Width of the rendered image. * @param height Height of the rendered image. * * Renders the current image onto the current drawable at the (@p x, @p y) * location specified AND scale the image to the width @p width and height * @p height. */ EAPI void imlib_render_image_on_drawable_at_size(int x, int y, int width, int height) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_render_image_on_drawable_at_size", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_RenderImage(ctx->display, im, ctx->drawable, ctx->mask, ctx->visual, ctx->colormap, ctx->depth, 0, 0, im->w, im->h, x, y, width, height, ctx->anti_alias, ctx->dither, ctx->blend, ctx->dither_mask, ctx->mask_alpha_threshold, ctx->color_modifier, ctx->operation); } /** * @param source_x X coordinate of the source image. * @param source_y Y coordinate of the source image. * @param source_width Width of the source image. * @param source_height Height of the source image. * @param x X coordinate of the destination image. * @param y Y coordinate of the destination image. * @param width Width of the destination image. * @param height Height of the destination image. * * Renders the source (@p source_x, @p source_y, @p source_width, @p source_height) pixel * rectangle from the * current image onto the current drawable at the (@p x, @p y) location scaled * to the width @p width and height @p height. */ EAPI void imlib_render_image_part_on_drawable_at_size(int source_x, int source_y, int source_width, int source_height, int x, int y, int width, int height) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_render_image_part_on_drawable_at_size", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_RenderImage(ctx->display, im, ctx->drawable, 0, ctx->visual, ctx->colormap, ctx->depth, source_x, source_y, source_width, source_height, x, y, width, height, ctx->anti_alias, ctx->dither, ctx->blend, 0, 0, ctx->color_modifier, ctx->operation); } EAPI DATA32 imlib_render_get_pixel_color(void) { CHECK_CONTEXT(ctx); return __imlib_RenderGetPixel(ctx->display, ctx->drawable, ctx->visual, ctx->colormap, ctx->depth, (DATA8) ctx->color.red, (DATA8) ctx->color.green, (DATA8) ctx->color.blue); } #endif /** * @param source_image The source image. * @param merge_alpha Alpha flag. * @param source_x X coordinate of the source image. * @param source_y Y coordinate of the source image. * @param source_width Width of the source image. * @param source_height Height of the source image. * @param destination_x X coordinate of the destination image. * @param destination_y Y coordinate of the destination image. * @param destination_width Width of the destination image. * @param destination_height Height of the destination image. * * Blends the source rectangle (@p source_x, @p source_y, @p * source_width, @p source_height) from * @p source_image onto the current image at the destination (@p * destination_x, @p destination_y) location * scaled to the width @p destination_width and height @p * destination_height. If @p merge_alpha is set to 1 * it will also modify the destination image alpha channel, otherwise * the destination alpha channel is left untouched. */ EAPI void imlib_blend_image_onto_image(Imlib_Image source_image, char merge_alpha, int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int destination_width, int destination_height) { ImlibImage *im_src, *im_dst; int aa; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_blend_image_onto_image", "source_image", source_image); CHECK_PARAM_POINTER("imlib_blend_image_onto_image", "image", ctx->image); CAST_IMAGE(im_src, source_image); CAST_IMAGE(im_dst, ctx->image); if ((!(im_src->data)) && (im_src->loader) && (im_src->loader->load)) im_src->loader->load(im_src, NULL, 0, 1); if (!(im_src->data)) return; if ((!(im_dst->data)) && (im_dst->loader) && (im_dst->loader->load)) im_dst->loader->load(im_dst, NULL, 0, 1); if (!(im_dst->data)) return; __imlib_DirtyImage(im_dst); /* FIXME: hack to get around infinite loops for scaling down too far */ aa = ctx->anti_alias; if ((abs(destination_width) < (source_width >> 7)) || (abs(destination_height) < (source_height >> 7))) aa = 0; __imlib_BlendImageToImage(im_src, im_dst, aa, ctx->blend, merge_alpha, source_x, source_y, source_width, source_height, destination_x, destination_y, destination_width, destination_height, ctx->color_modifier, ctx->operation, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } /** * @param width The width of the image. * @param height The height of the image. * @return A new blank image. * * Creates a new blank image of size @p width and @p height. The contents of * this image at creation time are undefined (they could be garbage * memory). You are free to do whatever you like with this image. It * is not cached. On success an image handle is returned - on failure * NULL is returned. **/ EAPI Imlib_Image imlib_create_image(int width, int height) { DATA32 *data; CHECK_CONTEXT(ctx); if ((width <= 0) || (height <= 0)) return NULL; data = malloc(width * height * sizeof(DATA32)); if (data) return (Imlib_Image) __imlib_CreateImage(width, height, data); return NULL; } /** * @param width The width of the image. * @param height The height of the image. * @param data The data. * @return A valid image, otherwise NULL. * * Creates an image from the image data specified with the width @p width and * the height @p height specified. The image data @p data must be in the same format as * imlib_image_get_data() would return. You are responsible for * freeing this image data once the image is freed - Imlib2 will not * do that for you. This is useful for when you already have static * buffers of the same format Imlib2 uses (many video grabbing devices * use such a format) and wish to use Imlib2 to render the results * onto another image, or X drawable. You should free the image when * you are done with it. Imlib2 returns a valid image handle on * success or NULL on failure * **/ EAPI Imlib_Image imlib_create_image_using_data(int width, int height, DATA32 * data) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_create_image_using_data", "data", data, NULL); if ((width <= 0) || (height <= 0)) return NULL; im = __imlib_CreateImage(width, height, data); if (im) SET_FLAG(im->flags, F_DONT_FREE_DATA); return (Imlib_Image) im; } /** * @param width The width of the image. * @param height The height of the image. * @param data The data. * @return A valid image, otherwise NULL. * * Works the same way as imlib_create_image_using_data() but Imlib2 * copies the image data to the image structure. You may now do * whatever you wish with the original data as it will not be needed * anymore. Imlib2 returns a valid image handle on success or NULL on * failure. * **/ EAPI Imlib_Image imlib_create_image_using_copied_data(int width, int height, DATA32 * data) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_create_image_using_copied_data", "data", data, NULL); if ((width <= 0) || (height <= 0)) return NULL; im = __imlib_CreateImage(width, height, NULL); if (!im) return NULL; im->data = malloc(width * height * sizeof(DATA32)); if (data) { memcpy(im->data, data, width * height * sizeof(DATA32)); return (Imlib_Image) im; } else __imlib_FreeImage(im); return NULL; } #ifdef BUILD_X11 /** * @param mask A mask. * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * @param need_to_grab_x Grab flag. * @return a valid image, otherwise NULL. * * Return an image (using the mask @p mask to determine the alpha channel) * from the current drawable. * If @p mask is 0 it will not create a useful alpha channel in the image. * If @p mask is 1 the mask will be set to the shape mask of the drawable. * It will create an image from the * (@p x, @p y, @p width , @p height) rectangle in the drawable. If @p * need_to_grab_x is 1 it will also grab the X Server to avoid possible race * conditions in grabbing. If you have not already grabbed the server * you MUST set this to 1. Imlib2 returns a valid image handle on * success or NULL on failure. * **/ EAPI Imlib_Image imlib_create_image_from_drawable(Pixmap mask, int x, int y, int width, int height, char need_to_grab_x) { ImlibImage *im; char domask = 0; CHECK_CONTEXT(ctx); if (mask) { domask = 1; if (mask == (Pixmap) 1) mask = None; } im = __imlib_CreateImage(width, height, NULL); im->data = malloc(width * height * sizeof(DATA32)); if (__imlib_GrabDrawableToRGBA(im->data, 0, 0, width, height, ctx->display, ctx->drawable, mask, ctx->visual, ctx->colormap, ctx->depth, x, y, width, height, &domask, need_to_grab_x)) { if (domask) SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); } else { __imlib_FreeImage(im); im = NULL; } return (Imlib_Image) im; } /** * @param image An image. * @param mask A mask. * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * @param need_to_grab_x Grab flag. * @return a valid image, otherwise NULL. * * **/ EAPI Imlib_Image imlib_create_image_from_ximage(XImage * image, XImage * mask, int x, int y, int width, int height, char need_to_grab_x) { ImlibImage *im; CHECK_CONTEXT(ctx); im = __imlib_CreateImage(width, height, NULL); im->data = malloc(width * height * sizeof(DATA32)); __imlib_GrabXImageToRGBA(im->data, 0, 0, width, height, ctx->display, image, mask, ctx->visual, ctx->depth, x, y, width, height, need_to_grab_x); return (Imlib_Image) im; } /** * @param mask A mask. * @param source_x The top left x coordinate of the rectangle. * @param source_y The top left y coordinate of the rectangle. * @param source_width The width of the rectangle. * @param source_height The height of the rectangle. * @param destination_width The width of the returned image. * @param destination_height The height of the returned image. * @param need_to_grab_x Grab flag. * @param get_mask_from_shape A char. * @return A valid image, otherwise NULL. * * Creates an image from the current drawable (optionally using the * @p mask pixmap specified to determine alpha transparency) and scale * the grabbed data first before converting to an actual image (to * minimize reads from the frame buffer which can be slow). The source * (@p source_x, @p source_y, @p source_width, @p source_height) rectangle will be grabbed, scaled to the * destination @p destination_width and @p destination_height, then converted to an image. If * @p need_to_grab_x is set to 1, X is grabbed (set this to 1 unless you * have already grabbed the server) and if @p get_mask_from_shape and the * current drawable is a window its shape is used for determining the * alpha channel. If successful this function will return a valid * image handle, otherwise NULL is returned. * **/ EAPI Imlib_Image imlib_create_scaled_image_from_drawable(Pixmap mask, int source_x, int source_y, int source_width, int source_height, int destination_width, int destination_height, char need_to_grab_x, char get_mask_from_shape) { ImlibImage *im; char domask = 0, tmpmask = 0; int x, xx; XGCValues gcv; GC gc = 0, mgc = 0; Pixmap p, m; CHECK_CONTEXT(ctx); if ((mask) || (get_mask_from_shape)) domask = 1; p = XCreatePixmap(ctx->display, ctx->drawable, destination_width, source_height, ctx->depth); gcv.foreground = 0; gcv.subwindow_mode = IncludeInferiors; gcv.graphics_exposures = False; if (domask) { m = XCreatePixmap(ctx->display, ctx->drawable, destination_width, source_height, 1); mgc = XCreateGC(ctx->display, m, GCForeground | GCGraphicsExposures, &gcv); } else m = None; gc = XCreateGC(ctx->display, ctx->drawable, GCSubwindowMode | GCGraphicsExposures, &gcv); if ((domask) && (!mask)) { XRectangle *rect; int rect_num, rect_ord; tmpmask = 1; mask = XCreatePixmap(ctx->display, ctx->drawable, source_width, source_height, 1); rect = XShapeGetRectangles(ctx->display, ctx->drawable, ShapeBounding, &rect_num, &rect_ord); XFillRectangle(ctx->display, mask, mgc, 0, 0, source_width, source_height); if (rect) { XSetForeground(ctx->display, mgc, 1); for (x = 0; x < rect_num; x++) XFillRectangle(ctx->display, mask, mgc, rect[x].x, rect[x].y, rect[x].width, rect[x].height); XFree(rect); } /* build mask from window shape rects */ } for (x = 0; x < destination_width; x++) { xx = (source_width * x) / destination_width; XCopyArea(ctx->display, ctx->drawable, p, gc, source_x + xx, source_y, 1, source_height, x, 0); if (m != None) XCopyArea(ctx->display, mask, m, mgc, xx, 0, 1, source_height, x, 0); } for (x = 0; x < destination_height; x++) { xx = (source_height * x) / destination_height; XCopyArea(ctx->display, p, p, gc, 0, xx, destination_width, 1, 0, x); if (m != None) XCopyArea(ctx->display, m, m, mgc, 0, xx, destination_width, 1, 0, x); } im = __imlib_CreateImage(destination_width, destination_height, NULL); im->data = malloc(destination_width * destination_height * sizeof(DATA32)); __imlib_GrabDrawableToRGBA(im->data, 0, 0, destination_width, source_height, ctx->display, p, m, ctx->visual, ctx->colormap, ctx->depth, 0, 0, destination_width, destination_height, &domask, need_to_grab_x); if (domask) SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); XFreePixmap(ctx->display, p); if (m != None) { XFreeGC(ctx->display, mgc); XFreePixmap(ctx->display, m); if (tmpmask) XFreePixmap(ctx->display, mask); } XFreeGC(ctx->display, gc); return (Imlib_Image) im; } /** * @param mask A mask. * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * @param destination_x The x coordinate of the new location. * @param destination_y The x coordinate of the new location. * @param need_to_grab_x Grab flag. * @return A char. * * Grabs a section of the current drawable (optionally using the pixmap @p mask * provided as a corresponding mask for that drawable - if @p mask is 0 * this is not used). * If @p mask is 1 the mask will be set to the shape mask of the drawable. * It grabs the (@p x, @p y, @p width, @p height) rectangle and * places it at the destination (@p destination_x, @p destination_y) location in the current image. If * @p need_to_grab_x is 1 it will grab and ungrab the server whilst doing * this - you need to do this if you have not already grabbed the * server. * **/ EAPI char imlib_copy_drawable_to_image(Pixmap mask, int x, int y, int width, int height, int destination_x, int destination_y, char need_to_grab_x) { ImlibImage *im; char domask = 0; int pre_adj; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_copy_drawable_to_image", "image", ctx->image, 0); if (mask) { domask = 1; if (mask == (Pixmap) 1) mask = None; } CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return 0; pre_adj = 0; if (x < 0) { width += x; pre_adj = x; x = 0; } if (width < 0) width = 0; if (destination_x < 0) { width += destination_x; x -= destination_x - pre_adj; destination_x = 0; } if ((destination_x + width) >= im->w) width = im->w - destination_x; pre_adj = 0; if (y < 0) { height += y; pre_adj = y; y = 0; } if (height < 0) height = 0; if (destination_y < 0) { height += destination_y; y -= destination_y - pre_adj; destination_y = 0; } if ((destination_y + height) >= im->h) height = im->h - destination_y; if ((width <= 0) || (height <= 0)) return 0; __imlib_DirtyImage(im); return __imlib_GrabDrawableToRGBA(im->data, destination_x, destination_y, im->w, im->h, ctx->display, ctx->drawable, mask, ctx->visual, ctx->colormap, ctx->depth, x, y, width, height, &domask, need_to_grab_x); } #endif /** * @return A valid image, otherwise NULL. * * Creates an exact duplicate of the current image and returns a valid * image handle on success, or NULL on failure. * **/ EAPI Imlib_Image imlib_clone_image(void) { ImlibImage *im, *im_old; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_clone_image", "image", ctx->image, NULL); CAST_IMAGE(im_old, ctx->image); if ((!(im_old->data)) && (im_old->loader) && (im_old->loader->load)) im_old->loader->load(im_old, NULL, 0, 1); if (!(im_old->data)) return NULL; im = __imlib_CreateImage(im_old->w, im_old->h, NULL); if (!(im)) return NULL; im->data = malloc(im->w * im->h * sizeof(DATA32)); if (!(im->data)) { __imlib_FreeImage(im); return NULL; } memcpy(im->data, im_old->data, im->w * im->h * sizeof(DATA32)); im->flags = im_old->flags; SET_FLAG(im->flags, F_UNCACHEABLE); im->moddate = im_old->moddate; im->border = im_old->border; im->loader = im_old->loader; if (im_old->format) { im->format = malloc(strlen(im_old->format) + 1); strcpy(im->format, im_old->format); } if (im_old->file) { im->file = malloc(strlen(im_old->file) + 1); strcpy(im->file, im_old->file); } return (Imlib_Image) im; } /** * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * @return A valid image, otherwise NULL. * * Creates a duplicate of a (@p x, @p y, @p width, @p height) rectangle in the * current image and returns a valid image handle on success, or NULL * on failure. * **/ EAPI Imlib_Image imlib_create_cropped_image(int x, int y, int width, int height) { ImlibImage *im, *im_old; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_create_cropped_image", "image", ctx->image, NULL); CAST_IMAGE(im_old, ctx->image); if ((!(im_old->data)) && (im_old->loader) && (im_old->loader->load)) im_old->loader->load(im_old, NULL, 0, 1); if (!(im_old->data)) return NULL; im = __imlib_CreateImage(abs(width), abs(height), NULL); im->data = malloc(abs(width * height) * sizeof(DATA32)); if (!(im->data)) { __imlib_FreeImage(im); return NULL; } if (IMAGE_HAS_ALPHA(im_old)) { SET_FLAG(im->flags, F_HAS_ALPHA); __imlib_BlendImageToImage(im_old, im, 0, 0, 1, x, y, abs(width), abs(height), 0, 0, width, height, NULL, IMLIB_OP_COPY, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } else { __imlib_BlendImageToImage(im_old, im, 0, 0, 0, x, y, abs(width), abs(height), 0, 0, width, height, NULL, IMLIB_OP_COPY, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } return (Imlib_Image) im; } /** * @param source_x The top left x coordinate of the source rectangle. * @param source_y The top left y coordinate of the source rectangle. * @param source_width The width of the source rectangle. * @param source_height The height of the source rectangle. * @param destination_width The width of the destination image. * @param destination_height The height of the destination image. * @return A valid image, otherwise NULL. * * Works the same as imlib_create_cropped_image() but will scale the * new image to the new destination @p destination_width and * @p destination_height whilst cropping. * **/ EAPI Imlib_Image imlib_create_cropped_scaled_image(int source_x, int source_y, int source_width, int source_height, int destination_width, int destination_height) { ImlibImage *im, *im_old; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_create_cropped_scaled_image", "image", ctx->image, NULL); CAST_IMAGE(im_old, ctx->image); if ((!(im_old->data)) && (im_old->loader) && (im_old->loader->load)) im_old->loader->load(im_old, NULL, 0, 1); if (!(im_old->data)) return NULL; im = __imlib_CreateImage(abs(destination_width), abs(destination_height), NULL); im->data = malloc(abs(destination_width * destination_height) * sizeof(DATA32)); if (!(im->data)) { __imlib_FreeImage(im); return NULL; } if (IMAGE_HAS_ALPHA(im_old)) { SET_FLAG(im->flags, F_HAS_ALPHA); __imlib_BlendImageToImage(im_old, im, ctx->anti_alias, 0, 1, source_x, source_y, source_width, source_height, 0, 0, destination_width, destination_height, NULL, IMLIB_OP_COPY, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } else { __imlib_BlendImageToImage(im_old, im, ctx->anti_alias, 0, 0, source_x, source_y, source_width, source_height, 0, 0, destination_width, destination_height, NULL, IMLIB_OP_COPY, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } return (Imlib_Image) im; } /** * @param updates An updates list. * @return Duplicate of @p updates. * * Creates a duplicate of the updates list passed into the function. **/ EAPI Imlib_Updates imlib_updates_clone(Imlib_Updates updates) { ImlibUpdate *u; CHECK_CONTEXT(ctx); u = (ImlibUpdate *) updates; return (Imlib_Updates) __imlib_DupUpdates(u); } /** * @param updates An updates list. * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param w The width of the rectangle. * @param h The height of the rectangle. * @return The updates handle. * * Appends an update rectangle to the updates list passed in (if the * updates is NULL it will create a new updates list) and returns a * handle to the modified updates list (the handle may be modified so * only use the new updates handle returned). **/ EAPI Imlib_Updates imlib_update_append_rect(Imlib_Updates updates, int x, int y, int w, int h) { ImlibUpdate *u; CHECK_CONTEXT(ctx); u = (ImlibUpdate *) updates; return (Imlib_Updates) __imlib_AddUpdate(u, x, y, w, h); } /** * @param updates An updates list. * @param w The width of the rectangle. * @param h The height of the rectangle. * @return The updates handle. * * Takes an updates list, and modifies it by merging overlapped * rectangles and lots of tiny rectangles into larger rectangles to * minimize the number of rectangles in the list for optimized * redrawing. The new updates handle is now valid and the old one * passed in is not. **/ EAPI Imlib_Updates imlib_updates_merge(Imlib_Updates updates, int w, int h) { ImlibUpdate *u; CHECK_CONTEXT(ctx); u = (ImlibUpdate *) updates; return (Imlib_Updates) __imlib_MergeUpdate(u, w, h, 0); } /** * @param updates An updates list. * @param w The width of the rectangle. * @param h The height of the rectangle. * @return The updates handle. * * Works almost exactly as imlib_updates_merge() but is more lenient * on the spacing between update rectangles - if they are very close it * amalgamates 2 smaller rectangles into 1 larger one. **/ EAPI Imlib_Updates imlib_updates_merge_for_rendering(Imlib_Updates updates, int w, int h) { ImlibUpdate *u; CHECK_CONTEXT(ctx); u = (ImlibUpdate *) updates; return (Imlib_Updates) __imlib_MergeUpdate(u, w, h, 3); } /** * @param updates An updates list. * * Frees an updates list. **/ EAPI void imlib_updates_free(Imlib_Updates updates) { ImlibUpdate *u; CHECK_CONTEXT(ctx); u = (ImlibUpdate *) updates; __imlib_FreeUpdates(u); } /** * @param updates An updates list. * @return The next updates. * * Gets the next update in the updates list relative to the one passed * in. **/ EAPI Imlib_Updates imlib_updates_get_next(Imlib_Updates updates) { ImlibUpdate *u; CHECK_CONTEXT(ctx); u = (ImlibUpdate *) updates; return (Imlib_Updates) (u->next); } /** * @param updates An updates list. * @param x_return The top left x coordinate of the update. * @param y_return The top left y coordinate of the update. * @param width_return The width of the update. * @param height_return The height of the update. * * Returns the coordinates of an update. **/ EAPI void imlib_updates_get_coordinates(Imlib_Updates updates, int *x_return, int *y_return, int *width_return, int *height_return) { ImlibUpdate *u; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_updates_get_coordinates", "updates", updates); u = (ImlibUpdate *) updates; if (x_return) *x_return = u->x; if (y_return) *y_return = u->y; if (width_return) *width_return = u->w; if (height_return) *height_return = u->h; } /** * @param updates An updates list. * @param x The top left x coordinate of the update. * @param y The top left y coordinate of the update. * @param width The width of the update. * @param height The height of the update. * * Modifies the coordinates of an update in @p update. **/ EAPI void imlib_updates_set_coordinates(Imlib_Updates updates, int x, int y, int width, int height) { ImlibUpdate *u; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_updates_set_coordinates", "updates", updates); u = (ImlibUpdate *) updates; u->x = x; u->y = y; u->w = width; u->h = height; } #ifdef BUILD_X11 /** * @param updates An updates list. * @param x The top left x coordinate of the update. * @param y The top left y coordinate of the update. * * Given an updates list (preferable already merged for rendering) * this will render the corresponding parts of the image to the current * drawable at an offset of @p x, @p y in the drawable. **/ EAPI void imlib_render_image_updates_on_drawable(Imlib_Updates updates, int x, int y) { ImlibUpdate *u; ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_render_image_updates_on_drawable", "image", ctx->image); CAST_IMAGE(im, ctx->image); u = (ImlibUpdate *) updates; if (!updates) return; if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_SetMaxXImageCount(ctx->display, 10); for (; u; u = u->next) { __imlib_RenderImage(ctx->display, im, ctx->drawable, 0, ctx->visual, ctx->colormap, ctx->depth, u->x, u->y, u->w, u->h, x + u->x, y + u->y, u->w, u->h, 0, ctx->dither, 0, 0, 0, ctx->color_modifier, OP_COPY); } __imlib_SetMaxXImageCount(ctx->display, 0); } #endif /** * @return The initialized updates list. * * Initializes an updates list before you add any updates to it or * merge it for rendering etc. **/ EAPI Imlib_Updates imlib_updates_init(void) { CHECK_CONTEXT(ctx); return (Imlib_Updates) NULL; } /** * @param updates An updates list. * @param appended_updates The updates list to append. * @return The new updates list. * * Appends @p appended_updates to the updates list @p updates and * returns the new list. **/ EAPI Imlib_Updates imlib_updates_append_updates(Imlib_Updates updates, Imlib_Updates appended_updates) { ImlibUpdate *u, *uu; CHECK_CONTEXT(ctx); u = (ImlibUpdate *) updates; uu = (ImlibUpdate *) appended_updates; if (!uu) return (Imlib_Updates) u; if (!u) return (Imlib_Updates) uu; while (u) { if (!(u->next)) { u->next = uu; return updates; } u = u->next; } return (Imlib_Updates) u; } /** * Flips/mirrors the current image horizontally. **/ EAPI void imlib_image_flip_horizontal(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_flip_horizontal", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_FlipImageHoriz(im); } /** * Flips/mirrors the current image vertically. **/ EAPI void imlib_image_flip_vertical(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_flip_vertical", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_FlipImageVert(im); } /** * Flips/mirrors the current image diagonally (good for quick and dirty * 90 degree rotations if used before to after a horizontal or vertical * flip). **/ EAPI void imlib_image_flip_diagonal(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_flip_diagonal", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_FlipImageDiagonal(im, 0); } /** * @param orientation The orientation. * * Performs 90 degree rotations on the current image. Passing in * @p orientation does not rotate, 1 rotates clockwise by 90 degree, 2, * rotates clockwise by 180 degrees, 3 rotates clockwise by 270 * degrees. **/ EAPI void imlib_image_orientate(int orientation) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_orientate", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); switch (orientation) { default: case 0: break; case 1: __imlib_FlipImageDiagonal(im, 1); break; case 2: __imlib_FlipImageBoth(im); break; case 3: __imlib_FlipImageDiagonal(im, 2); break; case 4: __imlib_FlipImageHoriz(im); break; case 5: __imlib_FlipImageDiagonal(im, 3); break; case 6: __imlib_FlipImageVert(im); break; case 7: __imlib_FlipImageDiagonal(im, 0); break; } } /** * @param radius The radius. * * Blurs the current image. A @p radius value of 0 has no effect, 1 and above * determine the blur matrix radius that determine how much to blur the * image. **/ EAPI void imlib_image_blur(int radius) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_blur", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_BlurImage(im, radius); } /** * @param radius The radius. * * Sharpens the current image. The @p radius value affects how much to sharpen * by. **/ EAPI void imlib_image_sharpen(int radius) { ImlibImage *im; CHECK_CONTEXT(ctx); CAST_IMAGE(im, ctx->image); CHECK_PARAM_POINTER("imlib_image_sharpen", "image", ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_SharpenImage(im, radius); } /** * Modifies an image so it will tile seamlessly horizontally if used * as a tile (i.e. drawn multiple times horizontally). **/ EAPI void imlib_image_tile_horizontal(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_tile_horizontal", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_TileImageHoriz(im); } /** * Modifies an image so it will tile seamlessly vertically if used as * a tile (i.e. drawn multiple times vertically). **/ EAPI void imlib_image_tile_vertical(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_tile_vertical", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_TileImageVert(im); } /** * Modifies an image so it will tile seamlessly horizontally and * vertically if used as a tile (i.e. drawn multiple times horizontally * and vertically). **/ EAPI void imlib_image_tile(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_tile", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_TileImageHoriz(im); __imlib_TileImageVert(im); } /** * @param font_name The font name with the size. * @return NULL if no font found. * * Loads a truetype font from the first directory in the font path that * contains that font. The font name @p font_name format is "font_name/size". For * example. If there is a font file called blum.ttf somewhere in the * font path you might use "blum/20" to load a 20 pixel sized font of * blum. If the font cannot be found NULL is returned. * **/ EAPI Imlib_Font imlib_load_font(const char *font_name) { return imlib_font_load_joined(font_name); } /** * Removes the current font from any fallback chain it's in and frees it. **/ EAPI void imlib_free_font(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_free_font", "font", ctx->font); imlib_remove_font_from_fallback_chain(ctx->font); imlib_font_free(ctx->font); ctx->font = NULL; } /** * @param font A previously loaded font. * @param fallback_font A previously loaded font to be chained to the given font. * @return 0 on success. * * This arranges for the given fallback font to be used if a glyph does not * exist in the given font when text is being rendered. * Fonts can be arranged in an aribitrarily long chain and attempts will be * made in order on the chain. * Cycles in the chain are not possible since the given fallback font is * removed from any chain it's already in. * A fallback font may be a member of only one chain. Adding it as the * fallback font to another font will remove it from it's first fallback chain. * * @deprecated This function may be removed. **/ EAPI int imlib_insert_font_into_fallback_chain(Imlib_Font font, Imlib_Font fallback_font) { CHECK_PARAM_POINTER_RETURN("imlib_insert_font_into_fallback_chain", "font", font, 1); CHECK_PARAM_POINTER_RETURN("imlib_insert_font_into_fallback_chain", "fallback_font", fallback_font, 1); return imlib_font_insert_into_fallback_chain_imp(font, fallback_font); } /** * @param fallback_font A font previously added to a fallback chain. * @return 0 on success. * * This removes the given font from any fallback chain it may be in. * Removing this font joins its previous and next font together in the fallback * chain. * * @deprecated This function may be removed. **/ EAPI void imlib_remove_font_from_fallback_chain(Imlib_Font fallback_font) { CHECK_PARAM_POINTER("imlib_remove_font_from_fallback_chain", "fallback_font", fallback_font); imlib_font_remove_from_fallback_chain_imp(fallback_font); } /** * @deprecated This function may be removed. **/ EAPI Imlib_Font imlib_get_prev_font_in_fallback_chain(Imlib_Font fn) { CHECK_PARAM_POINTER_RETURN("imlib_get_prev_font_in_fallback_chain", "fn", fn, 0); return ((ImlibFont *) fn)->fallback_prev; } /** * @deprecated This function may be removed. **/ EAPI Imlib_Font imlib_get_next_font_in_fallback_chain(Imlib_Font fn) { CHECK_PARAM_POINTER_RETURN("imlib_get_next_font_in_fallback_chain", "fn", fn, 0); return ((ImlibFont *) fn)->fallback_next; } /** * @param x The x coordinate of the top left corner. * @param y The y coordinate of the top left corner. * @param text A null-byte terminated string. * * Draws the null-byte terminated string @p text using the current font on * the current image at the (@p x, @p y) location (@p x, @p y denoting the top left * corner of the font string) **/ EAPI void imlib_text_draw(int x, int y, const char *text) { CHECK_CONTEXT(ctx); imlib_text_draw_with_return_metrics(x, y, text, NULL, NULL, NULL, NULL); } /** * @param x The x coordinate of the top left corner. * @param y The y coordinate of the top left corner. * @param text A null-byte terminated string. * @param width_return The width of the string. * @param height_return The height of the string. * @param horizontal_advance_return Horizontal offset. * @param vertical_advance_return Vertical offset. * * Works just like imlib_text_draw() but also returns the width and * height of the string drawn, and @p horizontal_advance_return returns * the number of pixels you should advance horizontally to draw another * string (useful if you are drawing a line of text word by word) and * @p vertical_advance_return does the same for the vertical direction * (i.e. drawing text line by line). **/ EAPI void imlib_text_draw_with_return_metrics(int x, int y, const char *text, int *width_return, int *height_return, int *horizontal_advance_return, int *vertical_advance_return) { ImlibImage *im; ImlibFont *fn; int dir; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_text_draw_with_return_metrics", "font", ctx->font); CHECK_PARAM_POINTER("imlib_text_draw_with_return_metrics", "image", ctx->image); CHECK_PARAM_POINTER("imlib_text_draw_with_return_metrics", "text", text); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; fn = (ImlibFont *) ctx->font; __imlib_DirtyImage(im); dir = ctx->direction; if (ctx->direction == IMLIB_TEXT_TO_ANGLE && ctx->angle == 0.0) dir = IMLIB_TEXT_TO_RIGHT; imlib_render_str(im, fn, x, y, text, (DATA8) ctx->color.red, (DATA8) ctx->color.green, (DATA8) ctx->color.blue, (DATA8) ctx->color.alpha, (char)dir, ctx->angle, width_return, height_return, 0, horizontal_advance_return, vertical_advance_return, ctx->operation, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } /** * @param text A string. * @param width_return The width of the text. * @param height_return The height of the text. * * Gets the width and height in pixels the @p text string would use up * if drawn with the current font. **/ EAPI void imlib_get_text_size(const char *text, int *width_return, int *height_return) { ImlibFont *fn; int w, h; int dir; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_get_text_size", "font", ctx->font); CHECK_PARAM_POINTER("imlib_get_text_size", "text", text); fn = (ImlibFont *) ctx->font; dir = ctx->direction; if (ctx->direction == IMLIB_TEXT_TO_ANGLE && ctx->angle == 0.0) dir = IMLIB_TEXT_TO_RIGHT; imlib_font_query_size(fn, text, &w, &h); switch (dir) { case IMLIB_TEXT_TO_RIGHT: case IMLIB_TEXT_TO_LEFT: if (width_return) *width_return = w; if (height_return) *height_return = h; break; case IMLIB_TEXT_TO_DOWN: case IMLIB_TEXT_TO_UP: if (width_return) *width_return = h; if (height_return) *height_return = w; break; case IMLIB_TEXT_TO_ANGLE: if (width_return || height_return) { double sa, ca; sa = sin(ctx->angle); ca = cos(ctx->angle); if (width_return) { double x1, x2, xt; x1 = x2 = 0.0; xt = ca * w; if (xt < x1) x1 = xt; if (xt > x2) x2 = xt; xt = -(sa * h); if (xt < x1) x1 = xt; if (xt > x2) x2 = xt; xt = ca * w - sa * h; if (xt < x1) x1 = xt; if (xt > x2) x2 = xt; *width_return = (int)(x2 - x1); } if (height_return) { double y1, y2, yt; y1 = y2 = 0.0; yt = sa * w; if (yt < y1) y1 = yt; if (yt > y2) y2 = yt; yt = ca * h; if (yt < y1) y1 = yt; if (yt > y2) y2 = yt; yt = sa * w + ca * h; if (yt < y1) y1 = yt; if (yt > y2) y2 = yt; *height_return = (int)(y2 - y1); } } break; default: break; } } /** * @param text A string. * @param horizontal_advance_return Horizontal offset. * @param vertical_advance_return Vertical offset. * * Gets the advance horizontally and vertically in pixels the next * text string would need to be placed at for the current font. The * advances are not adjusted for rotation so you will have to translate * the advances (which are calculated as if the text was drawn * horizontally from left to right) depending on the text orientation. **/ EAPI void imlib_get_text_advance(const char *text, int *horizontal_advance_return, int *vertical_advance_return) { ImlibFont *fn; int w, h; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_get_text_advance", "font", ctx->font); CHECK_PARAM_POINTER("imlib_get_text_advance", "text", text); fn = (ImlibFont *) ctx->font; imlib_font_query_advance(fn, text, &w, &h); if (horizontal_advance_return) *horizontal_advance_return = w; if (vertical_advance_return) *vertical_advance_return = h; } /** * @param text A string. * @return The inset value of @text. * * Returns the inset of the first character of @p text * in using the current font and returns that value in pixels. * **/ EAPI int imlib_get_text_inset(const char *text) { ImlibFont *fn; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_get_text_advance", "font", ctx->font, 0); CHECK_PARAM_POINTER_RETURN("imlib_get_text_advance", "text", text, 0); fn = (ImlibFont *) ctx->font; return imlib_font_query_inset(fn, text); } /** * @param path A directory path. * * Adds the directory @p path to the end of the current list of * directories to scan for fonts. **/ EAPI void imlib_add_path_to_font_path(const char *path) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_add_path_to_font_path", "path", path); if (!imlib_font_path_exists(path)) imlib_font_add_font_path(path); } /** * @param path A directory path. * * Removes all directories in the font path that match @p path. **/ EAPI void imlib_remove_path_from_font_path(const char *path) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_remove_path_from_font_path", "path", path); imlib_font_del_font_path(path); } /** * @param number_return Number of paths in the list. * @return A list of strings. * * Returns a list of strings that are the directories in the font * path. Do not free this list or change it in any way. If you add or * delete members of the font path this list will be invalid. If you * intend to use this list later duplicate it for your own use. The * number of elements in the array of strings is put into * @p number_return. * **/ EAPI char ** imlib_list_font_path(int *number_return) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_list_font_path", "number_return", number_return, NULL); return imlib_font_list_font_path(number_return); } /** * @param text A string. * @param x The x offset. * @param y The y offset. * @param char_x_return The x coordinate of the character. * @param char_y_return The x coordinate of the character. * @param char_width_return The width of the character. * @param char_height_return The height of the character. * @return -1 if no character found. * * Returns the character number in the string @p text using the current * font at the (@p x, @p y) pixel location which is an offset relative to the * top left of that string. -1 is returned if there is no character * there. If there is a character, @p char_x_return, @p char_y_return, * @p char_width_return and @p char_height_return (respectively the * character x, y, width and height) are also filled in. * **/ EAPI int imlib_text_get_index_and_location(const char *text, int x, int y, int *char_x_return, int *char_y_return, int *char_width_return, int *char_height_return) { ImlibFont *fn; int w, h, cx, cy, cw, ch, cp, xx, yy; int dir; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_text_get_index_and_location", "font", ctx->font, -1); CHECK_PARAM_POINTER_RETURN("imlib_text_get_index_and_location", "text", text, -1); fn = (ImlibFont *) ctx->font; dir = ctx->direction; if (ctx->direction == IMLIB_TEXT_TO_ANGLE && ctx->angle == 0.0) dir = IMLIB_TEXT_TO_RIGHT; imlib_get_text_size(text, &w, &h); switch (dir) { case IMLIB_TEXT_TO_RIGHT: xx = x; yy = y; break; case IMLIB_TEXT_TO_LEFT: xx = w - x; yy = h - y; break; case IMLIB_TEXT_TO_DOWN: xx = y; yy = w - x; break; case IMLIB_TEXT_TO_UP: xx = h - y; yy = x; break; default: return -1; } cp = imlib_font_query_text_at_pos(fn, text, xx, yy, &cx, &cy, &cw, &ch); switch (dir) { case IMLIB_TEXT_TO_RIGHT: if (char_x_return) *char_x_return = cx; if (char_y_return) *char_y_return = cy; if (char_width_return) *char_width_return = cw; if (char_height_return) *char_height_return = ch; return cp; break; case IMLIB_TEXT_TO_LEFT: cx = 1 + w - cx - cw; if (char_x_return) *char_x_return = cx; if (char_y_return) *char_y_return = cy; if (char_width_return) *char_width_return = cw; if (char_height_return) *char_height_return = ch; return cp; break; case IMLIB_TEXT_TO_DOWN: if (char_x_return) *char_x_return = cy; if (char_y_return) *char_y_return = cx; if (char_width_return) *char_width_return = ch; if (char_height_return) *char_height_return = cw; return cp; break; case IMLIB_TEXT_TO_UP: cy = 1 + h - cy - ch; if (char_x_return) *char_x_return = cy; if (char_y_return) *char_y_return = cx; if (char_width_return) *char_width_return = ch; if (char_height_return) *char_height_return = cw; return cp; break; default: return -1; break; } return -1; } /** * @param text A string. * @param index The index of @text. * @param char_x_return The x coordinate of the character. * @param char_y_return The y coordinate of the character. * @param char_width_return The width of the character. * @param char_height_return The height of the character. * * Gets the geometry of the character at index @p index in the @p text * string using the current font. **/ EAPI void imlib_text_get_location_at_index(const char *text, int index, int *char_x_return, int *char_y_return, int *char_width_return, int *char_height_return) { ImlibFont *fn; int cx, cy, cw, ch, w, h; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_text_get_index_and_location", "font", ctx->font); CHECK_PARAM_POINTER("imlib_text_get_index_and_location", "text", text); fn = (ImlibFont *) ctx->font; imlib_font_query_char_coords(fn, text, index, &cx, &cy, &cw, &ch); imlib_get_text_size(text, &w, &h); switch (ctx->direction) { case IMLIB_TEXT_TO_RIGHT: if (char_x_return) *char_x_return = cx; if (char_y_return) *char_y_return = cy; if (char_width_return) *char_width_return = cw; if (char_height_return) *char_height_return = ch; return; break; case IMLIB_TEXT_TO_LEFT: cx = 1 + w - cx - cw; if (char_x_return) *char_x_return = cx; if (char_y_return) *char_y_return = cy; if (char_width_return) *char_width_return = cw; if (char_height_return) *char_height_return = ch; return; break; case IMLIB_TEXT_TO_DOWN: if (char_x_return) *char_x_return = cy; if (char_y_return) *char_y_return = cx; if (char_width_return) *char_width_return = ch; if (char_height_return) *char_height_return = cw; return; break; case IMLIB_TEXT_TO_UP: cy = 1 + h - cy - ch; if (char_x_return) *char_x_return = cy; if (char_y_return) *char_y_return = cx; if (char_width_return) *char_width_return = ch; if (char_height_return) *char_height_return = cw; return; break; default: return; break; } } /** * @param number_return Number of fonts in the list. * @return A list of fonts. * * Returns a list of fonts imlib2 can find in its font path. * **/ EAPI char ** imlib_list_fonts(int *number_return) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_list_fonts", "number_return", number_return, NULL); return imlib_font_list_fonts(number_return); } /** * @param font_list The font list. * @param number Number of fonts in the list. * * Frees the font list returned by imlib_list_fonts(). * **/ EAPI void imlib_free_font_list(char **font_list, int number) { __imlib_FileFreeDirList(font_list, number); } /** * @return The font cache size. * * Returns the font cache size in bytes. * **/ EAPI int imlib_get_font_cache_size(void) { CHECK_CONTEXT(ctx); return imlib_font_cache_get(); } /** * @param bytes The font cache size. * * Sets the font cache in bytes. Whenever you set the font cache size * Imlib2 will flush fonts from the cache until the memory used by * fonts is less than or equal to the font cache size. Setting the size * to 0 effectively frees all speculatively cached fonts. **/ EAPI void imlib_set_font_cache_size(int bytes) { CHECK_CONTEXT(ctx); imlib_font_cache_set(bytes); } /** * Causes a flush of all speculatively cached fonts from the font * cache. **/ EAPI void imlib_flush_font_cache(void) { CHECK_CONTEXT(ctx); imlib_font_flush(); } /** * @return The font's ascent. * * Returns the current font's ascent value in pixels. * **/ EAPI int imlib_get_font_ascent(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_get_font_ascent", "font", ctx->font, 0); return imlib_font_ascent_get(ctx->font); } /** * @return The font's descent. * * Returns the current font's descent value in pixels. * **/ EAPI int imlib_get_font_descent(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_get_font_ascent", "font", ctx->font, 0); return imlib_font_descent_get(ctx->font); } /** * @return The font's maximum ascent. * * Returns the current font's maximum ascent extent. * **/ EAPI int imlib_get_maximum_font_ascent(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_get_font_ascent", "font", ctx->font, 0); return imlib_font_max_ascent_get(ctx->font); } /** * @return The font's maximum descent. * * Returns the current font's maximum descent extent. * **/ EAPI int imlib_get_maximum_font_descent(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_get_font_ascent", "font", ctx->font, 0); return imlib_font_max_descent_get(ctx->font); } /** * @return Valid handle. * * Creates a new empty color modifier and returns a * valid handle on success. NULL is returned on failure. * **/ EAPI Imlib_Color_Modifier imlib_create_color_modifier(void) { CHECK_CONTEXT(ctx); return (Imlib_Color_Modifier) __imlib_CreateCmod(); } /** * Frees the current color modifier. **/ EAPI void imlib_free_color_modifier(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_free_color_modifier", "color_modifier", ctx->color_modifier); __imlib_FreeCmod((ImlibColorModifier *) ctx->color_modifier); ctx->color_modifier = NULL; } /** * @param gamma_value Value of gamma. * * Modifies the current color modifier by adjusting the gamma by the * value specified @p gamma_value. The color modifier is modified not set, so calling * this repeatedly has cumulative effects. A gamma of 1.0 is normal * linear, 2.0 brightens and 0.5 darkens etc. Negative values are not * allowed. **/ EAPI void imlib_modify_color_modifier_gamma(double gamma_value) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_modify_color_modifier_gamma", "color_modifier", ctx->color_modifier); __imlib_CmodModGamma((ImlibColorModifier *) ctx->color_modifier, gamma_value); } /** * @param brightness_value Value of brightness. * * Modifies the current color modifier by adjusting the brightness by * the value @p brightness_value. The color modifier is modified not set, so * calling this repeatedly has cumulative effects. brightness values * of 0 do not affect anything. -1.0 will make things completely black * and 1.0 will make things all white. Values in-between vary * brightness linearly. **/ EAPI void imlib_modify_color_modifier_brightness(double brightness_value) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_modify_color_modifier_brightness", "color_modifier", ctx->color_modifier); __imlib_CmodModBrightness((ImlibColorModifier *) ctx->color_modifier, brightness_value); } /** * @param contrast_value Value of contrast. * * Modifies the current color modifier by adjusting the contrast by * the value @p contrast_value. The color modifier is modified not set, so * calling this repeatedly has cumulative effects. Contrast of 1.0 does * nothing. 0.0 will merge to gray, 2.0 will double contrast etc. **/ EAPI void imlib_modify_color_modifier_contrast(double contrast_value) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_modify_color_modifier_contrast", "color_modifier", ctx->color_modifier); __imlib_CmodModContrast((ImlibColorModifier *) ctx->color_modifier, contrast_value); } /** * @param red_table An array of #DATA8. * @param green_table An array of #DATA8. * @param blue_table An array of #DATA8. * @param alpha_table An array of #DATA8. * * Explicitly copies the mapping tables from the table pointers passed * into this function into those of the current color modifier. Tables * are 256 entry arrays of DATA8 which are a mapping of that channel * value to a new channel value. A normal mapping would be linear (v[0] * = 0, v[10] = 10, v[50] = 50, v[200] = 200, v[255] = 255). **/ EAPI void imlib_set_color_modifier_tables(DATA8 * red_table, DATA8 * green_table, DATA8 * blue_table, DATA8 * alpha_table) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_set_color_modifier_tables", "color_modifier", ctx->color_modifier); __imlib_CmodSetTables((ImlibColorModifier *) ctx->color_modifier, red_table, green_table, blue_table, alpha_table); } /** * @param red_table: an array of #DATA8. * @param green_table: an array of #DATA8. * @param blue_table: an array of #DATA8. * @param alpha_table: an array of #DATA8. * * Copies the table values from the current color modifier into the * pointers to mapping tables specified. They must have 256 entries and * be DATA8 format. **/ EAPI void imlib_get_color_modifier_tables(DATA8 * red_table, DATA8 * green_table, DATA8 * blue_table, DATA8 * alpha_table) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_get_color_modifier_tables", "color_modifier", ctx->color_modifier); __imlib_CmodGetTables((ImlibColorModifier *) ctx->color_modifier, red_table, green_table, blue_table, alpha_table); } /** * Resets the current color modifier to have linear mapping tables. **/ EAPI void imlib_reset_color_modifier(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_rset_color_modifier", "color_modifier", ctx->color_modifier); __imlib_CmodReset((ImlibColorModifier *) ctx->color_modifier); } /** * Uses the current color modifier and modifies the current image using * the mapping tables in the current color modifier. **/ EAPI void imlib_apply_color_modifier(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_apply_color_modifier", "image", ctx->image); CHECK_PARAM_POINTER("imlib_apply_color_modifier", "color_modifier", ctx->color_modifier); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_DataCmodApply(im->data, im->w, im->h, 0, &(im->flags), (ImlibColorModifier *) ctx->color_modifier); } /** * @param x The x coordinate of the left edge of the rectangle. * @param y The y coordinate of the top edge of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * * Works the same way as imlib_apply_color_modifier() but only modifies * a selected rectangle in the current image. **/ EAPI void imlib_apply_color_modifier_to_rectangle(int x, int y, int width, int height) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_apply_color_modifier_to_rectangle", "image", ctx->image); CHECK_PARAM_POINTER("imlib_apply_color_modifier_to_rectangle", "color_modifier", ctx->color_modifier); CAST_IMAGE(im, ctx->image); if (x < 0) { width += x; x = 0; } if (width <= 0) return; if ((x + width) > im->w) width = (im->w - x); if (width <= 0) return; if (y < 0) { height += y; y = 0; } if (height <= 0) return; if ((y + height) > im->h) height = (im->h - y); if (height <= 0) return; if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_DataCmodApply(im->data + (y * im->w) + x, width, height, im->w - width, &(im->flags), (ImlibColorModifier *) ctx->color_modifier); } EAPI Imlib_Updates imlib_image_draw_pixel(int x, int y, char make_updates) { ImlibImage *im; DATA32 color; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_draw_pixel", "image", ctx->image, NULL); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return NULL; __imlib_DirtyImage(im); A_VAL(&color) = (DATA8) ctx->color.alpha; R_VAL(&color) = (DATA8) ctx->color.red; G_VAL(&color) = (DATA8) ctx->color.green; B_VAL(&color) = (DATA8) ctx->color.blue; return (Imlib_Updates) __imlib_Point_DrawToImage(x, y, color, im, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h, ctx->operation, ctx->blend, make_updates); } /** * @param x1 The x coordinate of the first point. * @param y1 The y coordinate of the first point. * @param x2 The x coordinate of the second point. * @param y2 The y coordinate of the second point. * @param make_updates: a char. * @return An updates list. * * Draws a line using the current color on the current image from * coordinates (@p x1, @p y1) to (@p x2, @p y2). If @p make_updates is 1 it will also * return an update you can use for an updates list, otherwise it * returns NULL. * **/ EAPI Imlib_Updates imlib_image_draw_line(int x1, int y1, int x2, int y2, char make_updates) { ImlibImage *im; DATA32 color; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_draw_line", "image", ctx->image, NULL); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return NULL; __imlib_DirtyImage(im); A_VAL(&color) = (DATA8) ctx->color.alpha; R_VAL(&color) = (DATA8) ctx->color.red; G_VAL(&color) = (DATA8) ctx->color.green; B_VAL(&color) = (DATA8) ctx->color.blue; return (Imlib_Updates) __imlib_Line_DrawToImage(x1, y1, x2, y2, color, im, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h, ctx->operation, ctx->blend, ctx->anti_alias, make_updates); } /** * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * * Draws the outline of a rectangle on the current image at the (@p x, * @p y) * coordinates with a size of @p width and @p height pixels, using the * current color. **/ EAPI void imlib_image_draw_rectangle(int x, int y, int width, int height) { ImlibImage *im; DATA32 color; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_draw_rectangle", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); A_VAL(&color) = (DATA8) ctx->color.alpha; R_VAL(&color) = (DATA8) ctx->color.red; G_VAL(&color) = (DATA8) ctx->color.green; B_VAL(&color) = (DATA8) ctx->color.blue; __imlib_Rectangle_DrawToImage(x, y, width, height, color, im, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h, ctx->operation, ctx->blend); } /** * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * * Draws a filled rectangle on the current image at the (@p x, @p y) * coordinates with a size of @p width and @p height pixels, using the * current color. **/ EAPI void imlib_image_fill_rectangle(int x, int y, int width, int height) { ImlibImage *im; DATA32 color; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_fill_rectangle", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); A_VAL(&color) = (DATA8) ctx->color.alpha; R_VAL(&color) = (DATA8) ctx->color.red; G_VAL(&color) = (DATA8) ctx->color.green; B_VAL(&color) = (DATA8) ctx->color.blue; __imlib_Rectangle_FillToImage(x, y, width, height, color, im, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h, ctx->operation, ctx->blend); } /** * @param image_source An image. * @param x The x coordinate. * @param y The y coordinate. * * Copies the alpha channel of the source image @p image_source to the * (@p x, @p y) coordinates * of the current image, replacing the alpha channel there. **/ EAPI void imlib_image_copy_alpha_to_image(Imlib_Image image_source, int x, int y) { ImlibImage *im, *im2; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_copy_alpha_to_image", "image_source", image_source); CHECK_PARAM_POINTER("imlib_image_copy_alpha_to_image", "image_destination", ctx->image); CAST_IMAGE(im, image_source); CAST_IMAGE(im2, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if ((!(im2->data)) && (im2->loader) && (im2->loader->load)) im2->loader->load(im2, NULL, 0, 1); if (!(im->data)) return; if (!(im2->data)) return; __imlib_DirtyImage(im); __imlib_copy_alpha_data(im, im2, 0, 0, im->w, im->h, x, y); } /** * @param image_source An image. * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * @param destination_x The top left x coordinate of the destination rectangle. * @param destination_y The top left x coordinate of the destination rectangle. * * Copies the source (@p x, @p y, @p width, @p height) rectangle alpha channel from * the source image @p image_source and replaces the alpha channel on the destination * image at the (@p destination_x, @p destination_y) coordinates. **/ EAPI void imlib_image_copy_alpha_rectangle_to_image(Imlib_Image image_source, int x, int y, int width, int height, int destination_x, int destination_y) { ImlibImage *im, *im2; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_copy_alpha_rectangle_to_image", "image_source", image_source); CHECK_PARAM_POINTER("imlib_image_copy_alpha_rectangle_to_image", "image_destination", ctx->image); CAST_IMAGE(im, image_source); CAST_IMAGE(im2, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if ((!(im2->data)) && (im2->loader) && (im2->loader->load)) im2->loader->load(im2, NULL, 0, 1); if (!(im->data)) return; if (!(im2->data)) return; __imlib_DirtyImage(im); __imlib_copy_alpha_data(im, im2, x, y, width, height, destination_x, destination_y); } /** * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * @param delta_x Distance along the x coordinates. * @param delta_y Distance along the y coordinates. * * Scrolls a rectangle of size @p width, @p height at the (@p x, @p y) * location within the current image * by the @p delta_x, @p delta_y distance (in pixels). **/ EAPI void imlib_image_scroll_rect(int x, int y, int width, int height, int delta_x, int delta_y) { ImlibImage *im; int xx, yy, w, h, nx, ny; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_scroll_rect", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; if (delta_x > 0) { xx = x; nx = x + delta_x; w = width - delta_x; } else { xx = x - delta_x; nx = x; w = width + delta_x; } if (delta_y > 0) { yy = y; ny = y + delta_y; h = height - delta_y; } else { yy = y - delta_y; ny = y; h = height + delta_y; } __imlib_DirtyImage(im); __imlib_copy_image_data(im, xx, yy, w, h, nx, ny); } /** * @param x The top left x coordinate of the rectangle. * @param y The top left y coordinate of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * @param new_x The top left x coordinate of the new location. * @param new_y The top left y coordinate of the new location. * * Copies a rectangle of size @p width, @p height at the (@p x, @p y) location * specified in the current image to a new location (@p new_x, @p new_y) in the same * image. **/ EAPI void imlib_image_copy_rect(int x, int y, int width, int height, int new_x, int new_y) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_copy_rect", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_copy_image_data(im, x, y, width, height, new_x, new_y); } /** * @return valid handle. * * Creates a new empty color range and returns a valid handle to that * color range. **/ EAPI Imlib_Color_Range imlib_create_color_range(void) { CHECK_CONTEXT(ctx); return (Imlib_Color_Range) __imlib_CreateRange(); } /** * Frees the current color range. **/ EAPI void imlib_free_color_range(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_free_color_range", "color_range", ctx->color_range); __imlib_FreeRange((ImlibRange *) ctx->color_range); ctx->color_range = NULL; } /** * @param distance_away Distance from the previous color. * * Adds the current color to the current color range at a @p distance_away * distance from the previous color in the range (if it's the first * color in the range this is irrelevant). **/ EAPI void imlib_add_color_to_color_range(int distance_away) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_add_color_to_color_range", "color_range", ctx->color_range); __imlib_AddRangeColor((ImlibRange *) ctx->color_range, ctx->color.red, ctx->color.green, ctx->color.blue, ctx->color.alpha, distance_away); } /** * @param x The x coordinate of the left edge of the rectangle. * @param y The y coordinate of the top edge of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * @param angle Angle of gradient. * * Fills a rectangle of width @p width and height @p height at the (@p x, @p y) location * specified in the current image with a linear gradient of the * current color range at an angle of @p angle degrees with 0 degrees * being vertical from top to bottom going clockwise from there. **/ EAPI void imlib_image_fill_color_range_rectangle(int x, int y, int width, int height, double angle) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_fill_color_range_rectangle", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_fill_color_range_rectangle", "color_range", ctx->color_range); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_DrawGradient(im, x, y, width, height, (ImlibRange *) ctx->color_range, angle, ctx->operation, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } /** * @param x The x coordinate of the left edge of the rectangle. * @param y The y coordinate of the top edge of the rectangle. * @param width The width of the rectangle. * @param height The height of the rectangle. * @param angle Angle of gradient. * * Fills a rectangle of width @p width and height @p height at the (@p * x, @p y) location * specified in the current image with a linear gradient in HSVA color * space of the current color range at an angle of @p angle degrees with * 0 degrees being vertical from top to bottom going clockwise from * there. **/ EAPI void imlib_image_fill_hsva_color_range_rectangle(int x, int y, int width, int height, double angle) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_fill_color_range_rectangle", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_fill_color_range_rectangle", "color_range", ctx->color_range); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_DrawHsvaGradient(im, x, y, width, height, (ImlibRange *) ctx->color_range, angle, ctx->operation, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } /** * @param x The x coordinate of the pixel. * @param y The y coordinate of the pixel. * @param color_return The returned color. * * Fills the @p color_return color structure with the color of the pixel * in the current image that is at the (@p x, @p y) location specified. **/ EAPI void imlib_image_query_pixel(int x, int y, Imlib_Color * color_return) { ImlibImage *im; DATA32 *p; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_query_pixel", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_query_pixel", "color_return", color_return); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; if ((x < 0) || (x >= im->w) || (y < 0) || (y >= im->h)) { color_return->red = 0; color_return->green = 0; color_return->blue = 0; color_return->alpha = 0; return; } p = im->data + (im->w * y) + x; color_return->red = ((*p) >> 16) & 0xff; color_return->green = ((*p) >> 8) & 0xff; color_return->blue = (*p) & 0xff; color_return->alpha = ((*p) >> 24) & 0xff; } /** * @param x The x coordinate of the pixel. * @param y The y coordinate of the pixel. * @param hue The returned hue channel. * @param saturation The returned saturation channel. * @param value The returned value channel. * @param alpha The returned alpha channel. * * Gets the HSVA color of the pixel from the current image that is at * the (@p x, @p y) location specified. **/ EAPI void imlib_image_query_pixel_hsva(int x, int y, float *hue, float *saturation, float *value, int *alpha) { ImlibImage *im; DATA32 *p; int r, g, b; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_query_pixel", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; if ((x < 0) || (x >= im->w) || (y < 0) || (y >= im->h)) { *hue = 0; *saturation = 0; *value = 0; *alpha = 0; return; } p = im->data + (im->w * y) + x; r = ((*p) >> 16) & 0xff; g = ((*p) >> 8) & 0xff; b = (*p) & 0xff; *alpha = ((*p) >> 24) & 0xff; __imlib_rgb_to_hsv(r, g, b, hue, saturation, value); } /** * @param x The x coordinate of the pixel. * @param y The y coordinate of the pixel. * @param hue The returned hue channel. * @param lightness The returned lightness channel. * @param saturation The returned saturation channel. * @param alpha The returned alpha channel. * * Gets the HLSA color of the pixel from the current image that is at * the (@p x, @p y) location specified. **/ EAPI void imlib_image_query_pixel_hlsa(int x, int y, float *hue, float *lightness, float *saturation, int *alpha) { ImlibImage *im; DATA32 *p; int r, g, b; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_query_pixel", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; if ((x < 0) || (x >= im->w) || (y < 0) || (y >= im->h)) { *hue = 0; *lightness = 0; *saturation = 0; *alpha = 0; return; } p = im->data + (im->w * y) + x; r = ((*p) >> 16) & 0xff; g = ((*p) >> 8) & 0xff; b = (*p) & 0xff; *alpha = ((*p) >> 24) & 0xff; __imlib_rgb_to_hls(r, g, b, hue, lightness, saturation); } /** * @param x Tthe x coordinate of the pixel. * @param y The y coordinate of the pixel. * @param cyan The returned cyan channel. * @param magenta The returned magenta channel. * @param yellow The returned yellow channel. * @param alpha The returned alpha channel. * * Gets the CMYA color of the pixel from the current image that is at * the (@p x, @p y) location specified. * **/ EAPI void imlib_image_query_pixel_cmya(int x, int y, int *cyan, int *magenta, int *yellow, int *alpha) { ImlibImage *im; DATA32 *p; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_query_pixel", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; if ((x < 0) || (x >= im->w) || (y < 0) || (y >= im->h)) { *cyan = 0; *magenta = 0; *yellow = 0; *alpha = 0; return; } p = im->data + (im->w * y) + x; *cyan = 255 - (((*p) >> 16) & 0xff); *magenta = 255 - (((*p) >> 8) & 0xff); *yellow = 255 - ((*p) & 0xff); *alpha = ((*p) >> 24) & 0xff; } /** * @param key A string. * @param data A pointer. * @param value A value. * @param destructor_function An Imlib internal function. * * Attaches data to the current image with the string key of @p key, and * the data of @p data and an integer of @p value. The * @p destructor_function function, if not NULL is called when this * image is freed so the destructor can free @p data, if this is needed. **/ EAPI void imlib_image_attach_data_value(const char *key, void *data, int value, Imlib_Internal_Data_Destructor_Function destructor_function) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_attach_data_value", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_attach_data_value", "key", key); CAST_IMAGE(im, ctx->image); __imlib_AttachTag(im, key, value, data, (ImlibDataDestructorFunction) destructor_function); } /** * @param key A string. * @return The attached data as a pointer, or NULL if none. * * Gets the data attached to the current image with the key @p key * specified. NULL is returned if no data could be found with that key * on the current image. * **/ EAPI void * imlib_image_get_attached_data(const char *key) { ImlibImageTag *t; ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_get_attached_data", "image", ctx->image, NULL); CHECK_PARAM_POINTER_RETURN("imlib_image_get_attached_data", "key", key, NULL); CAST_IMAGE(im, ctx->image); t = __imlib_GetTag(im, key); if (t) return t->data; return NULL; } /** * @param key A string. * @return The attached value as an integer, or 0 if none. * * Returns the value attached to the current image with the specified * key @p key. If none could be found 0 is returned. * **/ EAPI int imlib_image_get_attached_value(const char *key) { ImlibImageTag *t; ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_image_get_attached_value", "image", ctx->image, 0); CHECK_PARAM_POINTER_RETURN("imlib_image_get_attached_value", "key", key, 0); CAST_IMAGE(im, ctx->image); t = __imlib_GetTag(im, key); if (t) return t->val; return 0; } /** * @param key A string. * * Detaches the data & value attached with the specified key @p key from the * current image. **/ EAPI void imlib_image_remove_attached_data_value(const char *key) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_remove_attached_data_value", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_remove_attached_data_value", "key", key); CAST_IMAGE(im, ctx->image); __imlib_RemoveTag(im, key); } /** * @param key A string. * * Removes the data and value attached to the current image with the * specified key @p key and also calls the destructor function that was * supplied when attaching it (see imlib_image_attach_data_value()). **/ EAPI void imlib_image_remove_and_free_attached_data_value(const char *key) { ImlibImageTag *t; ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_remove_and_free_attached_data_value", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_remove_and_free_attached_data_value", "key", key); CAST_IMAGE(im, ctx->image); t = __imlib_RemoveTag(im, key); __imlib_FreeTag(im, t); } /** * @param filename The file name. * * Saves the current image in the format specified by the current * image's format settings to the filename @p filename. **/ EAPI void imlib_save_image(const char *filename) { ImlibImage *im; Imlib_Image prev_ctxt_image; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_save_image", "image", ctx->image); CHECK_PARAM_POINTER("imlib_save_image", "filename", filename); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!im->data) return; prev_ctxt_image = ctx->image; __imlib_SaveImage(im, filename, (ImlibProgressFunction) ctx->progress_func, ctx->progress_granularity, NULL); ctx->image = prev_ctxt_image; } /** * @param filename The file name. * @param error_return The returned error. * * Works the same way imlib_save_image() works, but will set the * @p error_return to an error value if the save fails. **/ EAPI void imlib_save_image_with_error_return(const char *filename, Imlib_Load_Error * error_return) { ImlibImage *im; Imlib_Image prev_ctxt_image; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_save_image_with_error_return", "image", ctx->image); CHECK_PARAM_POINTER("imlib_save_image_with_error_return", "filename", filename); CHECK_PARAM_POINTER("imlib_save_image_with_error_return", "error_return", error_return); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!im->data) return; prev_ctxt_image = ctx->image; __imlib_SaveImage(im, filename, (ImlibProgressFunction) ctx->progress_func, ctx->progress_granularity, error_return); ctx->image = prev_ctxt_image; } /** * @param angle An angle in radians. * @return A new image, or NULL. * * Creates an new copy of the current image, but rotated by @p angle * radians. On success it returns a valid image handle, otherwise * NULL. **/ EAPI Imlib_Image imlib_create_rotated_image(double angle) { ImlibImage *im, *im_old; int x, y, dx, dy, sz; double x1, y1, d; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_create_rotated_image", "image", ctx->image, NULL); CAST_IMAGE(im_old, ctx->image); if ((!(im_old->data)) && (im_old->loader) && (im_old->loader->load)) im_old->loader->load(im_old, NULL, 0, 1); if (!(im_old->data)) return NULL; d = hypot((double)(im_old->w + 4), (double)(im_old->h + 4)) / sqrt(2.0); x1 = (double)(im_old->w) / 2.0 - sin(angle + atan(1.0)) * d; y1 = (double)(im_old->h) / 2.0 - cos(angle + atan(1.0)) * d; sz = (int)(d * sqrt(2.0)); x = (int)(x1 * _ROTATE_PREC_MAX); y = (int)(y1 * _ROTATE_PREC_MAX); dx = (int)(cos(angle) * _ROTATE_PREC_MAX); dy = -(int)(sin(angle) * _ROTATE_PREC_MAX); im = __imlib_CreateImage(sz, sz, NULL); im->data = calloc(sz * sz, sizeof(DATA32)); if (!(im->data)) { __imlib_FreeImage(im); return NULL; } if (ctx->anti_alias) { #ifdef DO_MMX_ASM if (__imlib_get_cpuid() & CPUID_MMX) __imlib_mmx_RotateAA(im_old->data, im->data, im_old->w, im_old->w, im_old->h, im->w, sz, sz, x, y, dx, dy, -dy, dx); else #endif __imlib_RotateAA(im_old->data, im->data, im_old->w, im_old->w, im_old->h, im->w, sz, sz, x, y, dx, dy, -dy, dx); } else { __imlib_RotateSample(im_old->data, im->data, im_old->w, im_old->w, im_old->h, im->w, sz, sz, x, y, dx, dy, -dy, dx); } SET_FLAG(im->flags, F_HAS_ALPHA); return (Imlib_Image) im; } void imlib_rotate_image_from_buffer(double angle, Imlib_Image source_image) { ImlibImage *im, *im_old; int x, y, dx, dy, sz; double x1, y1, d; CHECK_CONTEXT(ctx); // source image (to rotate) CHECK_PARAM_POINTER("imlib_rotate_image_from_buffer", "source_image", source_image); CAST_IMAGE(im_old, source_image); // current context image CHECK_PARAM_POINTER("imlib_rotate_image_from_buffer", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im_old->data)) && (im_old->loader) && (im_old->loader->load)) im_old->loader->load(im_old, NULL, 0, 1); if (!(im_old->data)) return; d = hypot((double)(im_old->w + 4), (double)(im_old->h + 4)) / sqrt(2.0); x1 = (double)(im_old->w) / 2.0 - sin(angle + atan(1.0)) * d; y1 = (double)(im_old->h) / 2.0 - cos(angle + atan(1.0)) * d; sz = (int)(d * sqrt(2.0)); x = (int)(x1 * _ROTATE_PREC_MAX); y = (int)(y1 * _ROTATE_PREC_MAX); dx = (int)(cos(angle) * _ROTATE_PREC_MAX); dy = -(int)(sin(angle) * _ROTATE_PREC_MAX); if ((im->w != im->h) || ((im->w < sz) && (im->h < sz))) return; // If size is wrong else sz = im->w; // update sz with real width #if 0 /* Not necessary 'cause destination is context */ im = __imlib_CreateImage(sz, sz, NULL); im->data = calloc(sz * sz, sizeof(DATA32)); if (!(im->data)) { __imlib_FreeImage(im); return; } #endif if (ctx->anti_alias) { #ifdef DO_MMX_ASM if (__imlib_get_cpuid() & CPUID_MMX) __imlib_mmx_RotateAA(im_old->data, im->data, im_old->w, im_old->w, im_old->h, im->w, sz, sz, x, y, dx, dy, -dy, dx); else #endif __imlib_RotateAA(im_old->data, im->data, im_old->w, im_old->w, im_old->h, im->w, sz, sz, x, y, dx, dy, -dy, dx); } else { __imlib_RotateSample(im_old->data, im->data, im_old->w, im_old->w, im_old->h, im->w, sz, sz, x, y, dx, dy, -dy, dx); } SET_FLAG(im->flags, F_HAS_ALPHA); return; } /** * @param source_image The image source. * @param merge_alpha A char. * @param source_x The source x coordinate. * @param source_y The source y coordinate. * @param source_width The source width. * @param source_height The source height. * @param destination_x The destination x coordinate. * @param destination_y The destination y coordinate. * @param angle_x An angle. * @param angle_y An angle. * * Works just like imlib_blend_image_onto_image_skewed() except you * cannot skew an image (@p v_angle_x and @p v_angle_y are 0). **/ EAPI void imlib_blend_image_onto_image_at_angle(Imlib_Image source_image, char merge_alpha, int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int angle_x, int angle_y) { ImlibImage *im_src, *im_dst; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_blend_image_onto_image_at_angle", "source_image", source_image); CHECK_PARAM_POINTER("imlib_blend_image_onto_image_at_angle", "image", ctx->image); CAST_IMAGE(im_src, source_image); CAST_IMAGE(im_dst, ctx->image); if ((!(im_src->data)) && (im_src->loader) && (im_src->loader->load)) im_src->loader->load(im_src, NULL, 0, 1); if (!(im_src->data)) return; if ((!(im_dst->data)) && (im_dst->loader) && (im_dst->loader->load)) im_dst->loader->load(im_dst, NULL, 0, 1); if (!(im_dst->data)) return; __imlib_DirtyImage(im_dst); __imlib_BlendImageToImageSkewed(im_src, im_dst, ctx->anti_alias, ctx->blend, merge_alpha, source_x, source_y, source_width, source_height, destination_x, destination_y, angle_x, angle_y, 0, 0, ctx->color_modifier, ctx->operation, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } /** * @param source_image The source image. * @param merge_alpha A char * @param source_x The source x coordinate. * @param source_y The source y coordinate. * @param source_width The source width. * @param source_height The source height. * @param destination_x The destination x coordinate. * @param destination_y The destination y coordinate. * @param h_angle_x An angle. * @param h_angle_y An angle. * @param v_angle_x An angle. * @param v_angle_y An angle. * * Blends the source rectangle (@p source_x, @p source_y, @p source_width, * @p source_height) from the * @p source_image onto the current image at the destination * (@p destination_x, @p destination_y) * location. It will be rotated and scaled so that the upper right * corner will be positioned @p h_angle_x pixels to the right (or left, * if negative) and @p h_angle_y pixels down (from (@p destination_x, * @p destination_y). If * @p v_angle_x and @p v_angle_y are not 0, the image will also be skewed so * that the lower left corner will be positioned @p v_angle_x pixels to * the right and @p v_angle_y pixels down. The at_angle versions simply * have the @p v_angle_x and @p v_angle_y set to 0 so the rotation doesn't * get skewed, and the render_..._on_drawable ones seem obvious * enough; they do the same on a drawable. * * Example: * @code * imlib_blend_image_onto_image_skewed(..., 0, 0, 100, 0, 0, 100); * @endcode * will simply scale the image to be 100x100. * @code * imlib_blend_image_onto_image_skewed(..., 0, 0, 0, 100, 100, 0); * @endcode * will scale the image to be 100x100, and flip it diagonally. * @code * imlib_blend_image_onto_image_skewed(..., 100, 0, 0, 100, -100, 0); * @endcode * will scale the image and rotate it 90 degrees clockwise. * @code * imlib_blend_image_onto_image_skewed(..., 50, 0, 50, 50, -50, 50); * @endcode * will rotate the image 45 degrees clockwise, and will scale it so * its corners are at (50,0)-(100,50)-(50,100)-(0,50) i.e. it fits * into the 100x100 square, so it's scaled down to 70.7% (sqrt(2)/2). * @code * imlib_blend_image_onto_image_skewed(..., 50, 50, 100 * cos(a), 100 * sin(a), 0); * @endcode * will rotate the image `a' degrees, with its upper left corner at (50,50). **/ EAPI void imlib_blend_image_onto_image_skewed(Imlib_Image source_image, char merge_alpha, int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int h_angle_x, int h_angle_y, int v_angle_x, int v_angle_y) { ImlibImage *im_src, *im_dst; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_blend_image_onto_image_skewed", "source_image", source_image); CHECK_PARAM_POINTER("imlib_blend_image_onto_image_skewed", "image", ctx->image); CAST_IMAGE(im_src, source_image); CAST_IMAGE(im_dst, ctx->image); if ((!(im_src->data)) && (im_src->loader) && (im_src->loader->load)) im_src->loader->load(im_src, NULL, 0, 1); if (!(im_src->data)) return; if ((!(im_dst->data)) && (im_dst->loader) && (im_dst->loader->load)) im_dst->loader->load(im_dst, NULL, 0, 1); if (!(im_dst->data)) return; __imlib_DirtyImage(im_dst); __imlib_BlendImageToImageSkewed(im_src, im_dst, ctx->anti_alias, ctx->blend, merge_alpha, source_x, source_y, source_width, source_height, destination_x, destination_y, h_angle_x, h_angle_y, v_angle_x, v_angle_y, ctx->color_modifier, ctx->operation, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h); } #ifdef BUILD_X11 /** * @param source_x The source x coordinate. * @param source_y The source y coordinate. * @param source_width The source width. * @param source_height The source height. * @param destination_x The destination x coordinate. * @param destination_y The destination y coordinate. * @param h_angle_x An angle. * @param h_angle_y An angle. * @param v_angle_x An angle. * @param v_angle_y An angle. * * * Works just like imlib_blend_image_onto_image_skewed(), except it * blends the image onto the current drawable instead of the current * image. **/ EAPI void imlib_render_image_on_drawable_skewed(int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int h_angle_x, int h_angle_y, int v_angle_x, int v_angle_y) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_render_image_on_drawable_skewed", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; CAST_IMAGE(im, ctx->image); __imlib_RenderImageSkewed(ctx->display, im, ctx->drawable, ctx->mask, ctx->visual, ctx->colormap, ctx->depth, source_x, source_y, source_width, source_height, destination_x, destination_y, h_angle_x, h_angle_y, v_angle_x, v_angle_y, ctx->anti_alias, ctx->dither, ctx->blend, ctx->dither_mask, ctx->mask_alpha_threshold, ctx->color_modifier, ctx->operation); } /** * @param source_x The source x coordinate. * @param source_y The source y coordinate. * @param source_width The source width. * @param source_height The source height. * @param destination_x The destination x coordinate. * @param destination_y The destination y coordinate. * @param angle_x An angle. * @param angle_y An angle. * * * Works just like imlib_render_image_on_drawable_skewed() except you * cannot skew an image (@p v_angle_x and @p v_angle_y are 0). **/ EAPI void imlib_render_image_on_drawable_at_angle(int source_x, int source_y, int source_width, int source_height, int destination_x, int destination_y, int angle_x, int angle_y) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_render_image_on_drawable_at_angle", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; CAST_IMAGE(im, ctx->image); __imlib_RenderImageSkewed(ctx->display, im, ctx->drawable, ctx->mask, ctx->visual, ctx->colormap, ctx->depth, source_x, source_y, source_width, source_height, destination_x, destination_y, angle_x, angle_y, 0, 0, ctx->anti_alias, ctx->dither, ctx->blend, ctx->dither_mask, ctx->mask_alpha_threshold, ctx->color_modifier, ctx->operation); } #endif EAPI void imlib_image_filter(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_filter", "image", ctx->image); CHECK_PARAM_POINTER("imlib_image_filter", "filter", ctx->filter); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); __imlib_FilterImage(im, (ImlibFilter *) ctx->filter); } EAPI Imlib_Filter imlib_create_filter(int initsize) { CHECK_CONTEXT(ctx); return (Imlib_Filter) __imlib_CreateFilter(initsize); } EAPI void imlib_free_filter(void) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_free_filter", "filter", ctx->filter); __imlib_FreeFilter((ImlibFilter *) ctx->filter); ctx->filter = NULL; } /** * @param filter Current filter. * * Sets the current filter to be used when applying filters to * images. Set this to NULL to disable filters. */ EAPI void imlib_context_set_filter(Imlib_Filter filter) { CHECK_CONTEXT(ctx); ctx->filter = filter; } /** * @return * * Gets the current context image filter. */ EAPI Imlib_Filter imlib_context_get_filter(void) { CHECK_CONTEXT(ctx); return ctx->filter; } EAPI void imlib_filter_set(int xoff, int yoff, int a, int r, int g, int b) { ImlibFilter *fil; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_filter_set", "filter", ctx->filter); fil = (ImlibFilter *) ctx->filter; __imlib_FilterSetColor(&fil->alpha, xoff, yoff, a, 0, 0, 0); __imlib_FilterSetColor(&fil->red, xoff, yoff, 0, r, 0, 0); __imlib_FilterSetColor(&fil->green, xoff, yoff, 0, 0, g, 0); __imlib_FilterSetColor(&fil->blue, xoff, yoff, 0, 0, 0, b); } EAPI void imlib_filter_set_alpha(int xoff, int yoff, int a, int r, int g, int b) { ImlibFilter *fil; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_filter_set_alpha", "filter", ctx->filter); fil = (ImlibFilter *) ctx->filter; __imlib_FilterSetColor(&fil->alpha, xoff, yoff, a, r, g, b); } EAPI void imlib_filter_set_red(int xoff, int yoff, int a, int r, int g, int b) { ImlibFilter *fil; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_filter_set_red", "filter", ctx->filter); fil = (ImlibFilter *) ctx->filter; __imlib_FilterSetColor(&fil->red, xoff, yoff, a, r, g, b); } EAPI void imlib_filter_set_green(int xoff, int yoff, int a, int r, int g, int b) { ImlibFilter *fil; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_filter_set_green", "filter", ctx->filter); fil = (ImlibFilter *) ctx->filter; __imlib_FilterSetColor(&fil->green, xoff, yoff, a, r, g, b); } EAPI void imlib_filter_set_blue(int xoff, int yoff, int a, int r, int g, int b) { ImlibFilter *fil; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_filter_set_blue", "filter", ctx->filter); fil = (ImlibFilter *) ctx->filter; __imlib_FilterSetColor(&fil->blue, xoff, yoff, a, r, g, b); } EAPI void imlib_filter_constants(int a, int r, int g, int b) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_filter_constants", "filter", ctx->filter); __imlib_FilterConstants((ImlibFilter *) ctx->filter, a, r, g, b); } EAPI void imlib_filter_divisors(int a, int r, int g, int b) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_filter_divisors", "filter", ctx->filter); __imlib_FilterDivisors((ImlibFilter *) ctx->filter, a, r, g, b); } EAPI void imlib_apply_filter(char *script, ...) { va_list param_list; ImlibImage *im; CHECK_CONTEXT(ctx); __imlib_dynamic_filters_init(); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); va_start(param_list, script); __imlib_script_parse(im, script, param_list); va_end(param_list); } /** * Returns a new polygon object with no points set. **/ EAPI ImlibPolygon imlib_polygon_new(void) { CHECK_CONTEXT(ctx); return (ImlibPolygon) __imlib_polygon_new(); } /** * @param poly A polygon * @param x The X coordinate. * @param y The Y coordinate. * * Adds the point (@p x, @p y) to the polygon @p poly. The point will be added * to the end of the polygon's internal point list. The points are * drawn in order, from the first to the last. **/ EAPI void imlib_polygon_add_point(ImlibPolygon poly, int x, int y) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_polygon_add_point", "polygon", poly); __imlib_polygon_add_point((ImlibPoly) poly, x, y); } /** * @param poly A polygon. * * Frees a polygon object. **/ EAPI void imlib_polygon_free(ImlibPolygon poly) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_polygon_free", "polygon", poly); __imlib_polygon_free((ImlibPoly) poly); } /** * @param poly A polygon. * @param closed Closed polygon flag. * * Draws the polygon @p poly onto the current context image. Points which have * been added to the polygon are drawn in sequence, first to last. The * final point will be joined with the first point if @p closed is * non-zero. **/ EAPI void imlib_image_draw_polygon(ImlibPolygon poly, unsigned char closed) { ImlibImage *im; DATA32 color; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_draw_polygon", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); A_VAL(&color) = (DATA8) ctx->color.alpha; R_VAL(&color) = (DATA8) ctx->color.red; G_VAL(&color) = (DATA8) ctx->color.green; B_VAL(&color) = (DATA8) ctx->color.blue; __imlib_Polygon_DrawToImage((ImlibPoly) poly, closed, color, im, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h, ctx->operation, ctx->blend, ctx->anti_alias); } /** * @param poly A polygon. * * Fills the area defined by the polygon @p polyon the current context image * with the current context color. **/ EAPI void imlib_image_fill_polygon(ImlibPolygon poly) { ImlibImage *im; DATA32 color; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_fill_polygon", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); A_VAL(&color) = (DATA8) ctx->color.alpha; R_VAL(&color) = (DATA8) ctx->color.red; G_VAL(&color) = (DATA8) ctx->color.green; B_VAL(&color) = (DATA8) ctx->color.blue; __imlib_Polygon_FillToImage((ImlibPoly) poly, color, im, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h, ctx->operation, ctx->blend, ctx->anti_alias); } /** * @param poly A polygon. * @param px1 X coordinate of the upper left corner. * @param py1 Y coordinate of the upper left corner. * @param px2 X coordinate of the lower right corner. * @param py2 Y coordinate of the lower right corner. * * Calculates the bounding area of the polygon @p poly. (@p px1, @p py1) defines the * upper left corner of the bounding box and (@p px2, @p py2) defines it's * lower right corner. **/ EAPI void imlib_polygon_get_bounds(ImlibPolygon poly, int *px1, int *py1, int *px2, int *py2) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_polygon_get_bounds", "polygon", poly); __imlib_polygon_get_bounds((ImlibPoly) poly, px1, py1, px2, py2); } /** * @param xc X coordinate of the center of the ellipse. * @param yc Y coordinate of the center of the ellipse. * @param a The horizontal amplitude of the ellipse. * @param b The vertical amplitude of the ellipse. * * Draws an ellipse on the current context image. The ellipse is * defined as (@p x-@p xc)^2/@p a^2 + (@p y-@p yc)^2/@p b^2 = 1. This means that the * point (@p xc, @p yc) marks the center of the ellipse, @p a defines the * horizontal amplitude of the ellipse, and @p b defines the vertical * amplitude. **/ EAPI void imlib_image_draw_ellipse(int xc, int yc, int a, int b) { ImlibImage *im; DATA32 color; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_draw_ellipse", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); A_VAL(&color) = (DATA8) ctx->color.alpha; R_VAL(&color) = (DATA8) ctx->color.red; G_VAL(&color) = (DATA8) ctx->color.green; B_VAL(&color) = (DATA8) ctx->color.blue; __imlib_Ellipse_DrawToImage(xc, yc, a, b, color, im, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h, ctx->operation, ctx->blend, ctx->anti_alias); } /** * @param xc X coordinate of the center of the ellipse. * @param yc Y coordinate of the center of the ellipse. * @param a The horizontal amplitude of the ellipse. * @param b The vertical amplitude of the ellipse. * * Fills an ellipse on the current context image using the current * context color. The ellipse is * defined as (@p x-@p xc)^2/@p a^2 + (@p y-@p yc)^2/@p b^2 = 1. This means that the * point (@p xc, @p yc) marks the center of the ellipse, @p a defines the * horizontal amplitude of the ellipse, and @p b defines the vertical * amplitude. **/ EAPI void imlib_image_fill_ellipse(int xc, int yc, int a, int b) { ImlibImage *im; DATA32 color; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_fill_ellipse", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); A_VAL(&color) = (DATA8) ctx->color.alpha; R_VAL(&color) = (DATA8) ctx->color.red; G_VAL(&color) = (DATA8) ctx->color.green; B_VAL(&color) = (DATA8) ctx->color.blue; __imlib_Ellipse_FillToImage(xc, yc, a, b, color, im, ctx->cliprect.x, ctx->cliprect.y, ctx->cliprect.w, ctx->cliprect.h, ctx->operation, ctx->blend, ctx->anti_alias); } /** * @param poly A polygon * @param x The X coordinate. * @param y The Y coordinate. * * Returns non-zero if the point (@p x, @p y) is within the area defined by * the polygon @p poly. **/ EAPI unsigned char imlib_polygon_contains_point(ImlibPolygon poly, int x, int y) { CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER_RETURN("imlib_polygon_contains_point", "polygon", poly, 0); return __imlib_polygon_contains_point((ImlibPoly) poly, x, y); } EAPI void imlib_image_clear(void) { ImlibImage *im; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_clear", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); memset(im->data, 0, im->w * im->h * sizeof(DATA32)); } EAPI void imlib_image_clear_color(int r, int g, int b, int a) { ImlibImage *im; int i, max; DATA32 col; CHECK_CONTEXT(ctx); CHECK_PARAM_POINTER("imlib_image_clear_color", "image", ctx->image); CAST_IMAGE(im, ctx->image); if ((!(im->data)) && (im->loader) && (im->loader->load)) im->loader->load(im, NULL, 0, 1); if (!(im->data)) return; __imlib_DirtyImage(im); max = im->w * im->h; WRITE_RGBA(&col, r, g, b, a); for (i = 0; i < max; i++) im->data[i] = col; } imlib2-1.4.6/src/lib/grab.c0000664000175000017500000005352512255265152012256 00000000000000#include "common.h" #ifdef BUILD_X11 #include #include #include #include #include #include #include "grab.h" #include "ximage.h" static char _x_err = 0; static DATA8 rtab[256], gtab[256], btab[256]; static void Tmp_HandleXError(Display * d, XErrorEvent * ev) { _x_err = 1; } void __imlib_GrabXImageToRGBA(DATA32 * data, int ox, int oy, int ow, int oh, Display * d, XImage * xim, XImage * mxim, Visual * v, int depth, int x, int y, int w, int h, char grab) { int inx, iny; DATA32 *src, *ptr; int pixel; int origx, origy; int bgr = 0; if (!data) return; if (grab) XGrabServer(d); /* This may prevent the image to be changed under our feet */ origx = x; origy = y; if (v->blue_mask > v->red_mask) bgr = 1; if (origx < 0) inx = -origx; else inx = ox; if (origy < 0) iny = -origy; else iny = oy; /* go thru the XImage and convert */ if ((depth == 24) && (xim->bits_per_pixel == 32)) depth = 25; /* fake depth meaning 24 bit in 32 bpp ximage */ /* data needs swapping */ #define SWAP32(x) (x) = \ ((((int)(x) & 0x000000ff ) << 24) |\ (((int)(x) & 0x0000ff00 ) << 8) |\ (((int)(x) & 0x00ff0000 ) >> 8) |\ (((int)(x) & 0xff000000 ) >> 24)) #define SWAP16(x) (x) = \ ((((short)(x) & 0x00ff ) << 8) |\ (((short)(x) & 0xff00 ) >> 8)) #ifdef WORDS_BIGENDIAN if (xim->bitmap_bit_order == LSBFirst) #else if (xim->bitmap_bit_order == MSBFirst) #endif { switch (depth) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: break; case 15: case 16: for (y = 0; y < h; y++) { unsigned short *tmp; tmp = (unsigned short *)(xim->data + (xim->bytes_per_line * y)); for (x = 0; x < w; x++) { SWAP16(*tmp); tmp++; } } case 24: case 25: case 32: for (y = 0; y < h; y++) { unsigned int *tmp; tmp = (unsigned int *)(xim->data + (xim->bytes_per_line * y)); for (x = 0; x < w; x++) { SWAP32(*tmp); tmp++; } } break; default: break; } } switch (depth) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: if (mxim) { for (y = 0; y < h; y++) { ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = XGetPixel(xim, x, y); pixel = (btab[pixel & 0xff]) | (gtab[pixel & 0xff] << 8) | (rtab[pixel & 0xff] << 16); if (XGetPixel(mxim, x, y)) pixel |= 0xff000000; *ptr++ = pixel; } } } else { for (y = 0; y < h; y++) { ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = XGetPixel(xim, x, y); *ptr++ = 0xff000000 | (btab[pixel & 0xff]) | (gtab[pixel & 0xff] << 8) | (rtab[pixel & 0xff] << 16); } } } break; case 16: #undef MP #undef RMSK #undef GMSK #undef BMSK #undef R1SH #undef G1SH #undef B1SH #undef R2SH #undef G2SH #undef B2SH #undef P1 #undef P2 #define MP(x, y) ((XGetPixel(mxim, (x), (y))) ? 0xff000000 : 0) #define RMSK 0xf80000 #define GMSK 0x00fc00 #define BMSK 0x0000f8 #define R1SH(p) ((p) << 8) #define G1SH(p) ((p) << 5) #define B1SH(p) ((p) << 3) #define R2SH(p) ((p) >> 8) #define G2SH(p) ((p) >> 11) #define B2SH(p) ((p) >> 13) #define P1(p) (R1SH(p) & RMSK) | (G1SH(p) & GMSK) | (B1SH(p) & BMSK) #define P2(p) (R2SH(p) & RMSK) | (G2SH(p) & GMSK) | (B2SH(p) & BMSK) if (mxim) { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < (w - 1); x += 2) { #ifdef WORDS_BIGENDIAN *ptr++ = MP(x + 1, y) | P2(*src); *ptr++ = MP(x, y) | P1(*src); #else *ptr++ = MP(x, y) | P1(*src); *ptr++ = MP(x + 1, y) | P2(*src); #endif src++; } if (x == (w - 1)) { pixel = XGetPixel(xim, x, y); *ptr++ = MP(x, y) | P1(pixel); } } } #undef MP #define MP(x, y) (0xff000000) else { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < (w - 1); x += 2) { #ifdef WORDS_BIGENDIAN *ptr++ = MP(x + 1, y) | P2(*src); *ptr++ = MP(x, y) | P1(*src); #else *ptr++ = MP(x, y) | P1(*src); *ptr++ = MP(x + 1, y) | P2(*src); #endif src++; } if (x == (w - 1)) { pixel = XGetPixel(xim, x, y); *ptr++ = MP(x, y) | P1(pixel); } } } break; case 15: #undef MP #undef RMSK #undef GMSK #undef BMSK #undef R1SH #undef G1SH #undef B1SH #undef R2SH #undef G2SH #undef B2SH #undef P1 #undef P2 #define MP(x, y) ((XGetPixel(mxim, (x), (y))) ? 0xff000000 : 0) #define RMSK 0xf80000 #define GMSK 0x00f800 #define BMSK 0x0000f8 #define R1SH(p) ((p) << 9) #define G1SH(p) ((p) << 6) #define B1SH(p) ((p) << 3) #define R2SH(p) ((p) >> 7) #define G2SH(p) ((p) >> 10) #define B2SH(p) ((p) >> 13) #define P1(p) (R1SH(p) & RMSK) | (G1SH(p) & GMSK) | (B1SH(p) & BMSK) #define P2(p) (R2SH(p) & RMSK) | (G2SH(p) & GMSK) | (B2SH(p) & BMSK) if (mxim) { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < (w - 1); x += 2) { #ifdef WORDS_BIGENDIAN *ptr++ = MP(x + 1, y) | P2(*src); *ptr++ = MP(x, y) | P1(*src); #else *ptr++ = MP(x, y) | P1(*src); *ptr++ = MP(x + 1, y) | P2(*src); #endif src++; } if (x == (w - 1)) { pixel = XGetPixel(xim, x, y); *ptr++ = MP(x, y) | P1(pixel); } } } #undef MP #define MP(x, y) (0xff000000) else { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < (w - 1); x += 2) { #ifdef WORDS_BIGENDIAN *ptr++ = MP(x + 1, y) | P2(*src); *ptr++ = MP(x, y) | P1(*src); #else *ptr++ = MP(x, y) | P1(*src); *ptr++ = MP(x + 1, y) | P2(*src); #endif src++; } if (x == (w - 1)) { pixel = XGetPixel(xim, x, y); *ptr++ = MP(x, y) | P1(pixel); } } } break; case 24: if (bgr) { if (mxim) { for (y = 0; y < h; y++) { ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = XGetPixel(xim, x, y); pixel = ((pixel << 16) & 0xff0000) | ((pixel) & 0x00ff00) | ((pixel >> 16) & 0x0000ff); if (XGetPixel(mxim, x, y)) pixel |= 0xff000000; *ptr++ = pixel; } } } else { for (y = 0; y < h; y++) { ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = XGetPixel(xim, x, y); *ptr++ = 0xff000000 | ((pixel << 16) & 0xff0000) | ((pixel) & 0x00ff00) | ((pixel >> 16) & 0x0000ff); } } } } else { if (mxim) { for (y = 0; y < h; y++) { ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = XGetPixel(xim, x, y) & 0x00ffffff; if (XGetPixel(mxim, x, y)) pixel |= 0xff000000; *ptr++ = pixel; } } } else { for (y = 0; y < h; y++) { ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = XGetPixel(xim, x, y); *ptr++ = 0xff000000 | (pixel & 0x00ffffff); } } } } break; case 25: if (bgr) { if (mxim) { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = ((*src << 16) & 0xff0000) | ((*src) & 0x00ff00) | ((*src >> 16) & 0x0000ff); if (XGetPixel(mxim, x, y)) pixel |= 0xff000000; *ptr++ = pixel; src++; } } } else { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { *ptr++ = 0xff000000 | ((*src << 16) & 0xff0000) | ((*src) & 0x00ff00) | ((*src >> 16) & 0x0000ff); src++; } } } } else { if (mxim) { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = (*src) & 0x00ffffff; if (XGetPixel(mxim, x, y)) pixel |= 0xff000000; *ptr++ = pixel; src++; } } } else { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { *ptr++ = 0xff000000 | ((*src) & 0x00ffffff); src++; } } } } break; case 32: if (bgr) { if (mxim) { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = SWAP32(*src); if (!XGetPixel(mxim, x, y)) pixel &= 0x00ffffff; *ptr++ = pixel; src++; } } } else { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { *ptr++ = SWAP32(*src); src++; } } } } else { if (mxim) { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { pixel = *src++; if (!XGetPixel(mxim, x, y)) pixel &= 0x00ffffff; *ptr++ = pixel; } } } else { for (y = 0; y < h; y++) { src = (DATA32 *) (xim->data + (xim->bytes_per_line * y)); ptr = data + ((y + iny) * ow) + inx; for (x = 0; x < w; x++) { *ptr++ = *src++; } } } } break; default: break; } if (grab) XUngrabServer(d); } char __imlib_GrabDrawableToRGBA(DATA32 * data, int ox, int oy, int ow, int oh, Display * d, Drawable p, Pixmap m, Visual * v, Colormap cm, int depth, int x, int y, int w, int h, char *pdomask, char grab) { XErrorHandler prev_erh = NULL; XWindowAttributes xatt, ratt; char is_pixmap = 0, created_mask = 0, is_shm = 0, is_mshm = 0; char domask; int i; int src_x, src_y, src_w, src_h; int width, height, clipx, clipy; XShmSegmentInfo shminfo, mshminfo; XImage *xim, *mxim; XColor cols[256]; domask = (pdomask) ? *pdomask : 0; /* FIXME: oh isn't used - i wonder if there's a bug looming... */ oh = 0; if (grab) XGrabServer(d); XSync(d, False); prev_erh = XSetErrorHandler((XErrorHandler) Tmp_HandleXError); _x_err = 0; /* lets see if its a pixmap or not */ XGetWindowAttributes(d, p, &xatt); XSync(d, False); if (_x_err) is_pixmap = 1; /* reset our error handler */ XSetErrorHandler((XErrorHandler) prev_erh); if (is_pixmap) { Window dw; XGetGeometry(d, p, &dw, &src_x, &src_y, (unsigned int *)&src_w, (unsigned int *)&src_h, (unsigned int *)&src_x, (unsigned int *)&xatt.depth); src_x = 0; src_y = 0; } else { Window dw; XGetWindowAttributes(d, xatt.root, &ratt); XTranslateCoordinates(d, p, xatt.root, 0, 0, &src_x, &src_y, &dw); src_w = xatt.width; src_h = xatt.height; if ((xatt.map_state != IsViewable) && (xatt.backing_store == NotUseful)) { if (grab) XUngrabServer(d); return 0; } } /* clip to the drawable tree and screen */ clipx = 0; clipy = 0; width = src_w - x; height = src_h - y; if (width > w) width = w; if (height > h) height = h; if (!is_pixmap) { if ((src_x + x + width) > ratt.width) width = ratt.width - (src_x + x); if ((src_y + y + height) > ratt.height) height = ratt.height - (src_y + y); } if (x < 0) { clipx = -x; width += x; x = 0; } if (y < 0) { clipy = -y; height += y; y = 0; } if (!is_pixmap) { if ((src_x + x) < 0) { clipx -= (src_x + x); width += (src_x + x); x = -src_x; } if ((src_y + y) < 0) { clipy -= (src_y + y); height += (src_y + y); y = -src_y; } } if ((width <= 0) || (height <= 0)) { if (grab) XUngrabServer(d); return 0; } w = width; h = height; if ((!is_pixmap) && (domask) && (!m)) { int ord, rect_no = 0; XRectangle *r = NULL; r = XShapeGetRectangles(d, p, ShapeBounding, &rect_no, &ord); if (r) { if (!((rect_no == 1) && (r[0].x == 0) && (r[0].y == 0) && (r[0].width == xatt.width) && (r[0].height == xatt.height))) { XGCValues gcv; GC gc; created_mask = 1; m = XCreatePixmap(d, p, w, h, 1); gcv.foreground = 0; gc = XCreateGC(d, m, GCForeground, &gcv); XFillRectangle(d, m, gc, 0, 0, w, h); XSetForeground(d, gc, 1); for (i = 0; i < rect_no; i++) XFillRectangle(d, m, gc, r[i].x - x, r[i].y - y, r[i].width, r[i].height); XFreeGC(d, gc); } XFree(r); } } /* Create an Ximage (shared or not) */ if (x_does_shm < 0) __imlib_ShmCheck(d); xim = NULL; if (x_does_shm) { xim = __imlib_ShmGetXImage(d, v, p, xatt.depth, x, y, w, h, &shminfo); is_shm = ! !xim; } if (!xim) xim = XGetImage(d, p, x, y, w, h, 0xffffffff, ZPixmap); if (!xim) { if (grab) XUngrabServer(d); return 0; } mxim = NULL; if ((m) && (domask)) { mxim = __imlib_ShmGetXImage(d, v, m, 1, 0, 0, w, h, &mshminfo); is_mshm = ! !mxim; if (!mxim) mxim = XGetImage(d, m, 0, 0, w, h, 0xffffffff, ZPixmap); } if ((is_shm) || (is_mshm)) { XSync(d, False); if (grab) XUngrabServer(d); XSync(d, False); } else if (grab) XUngrabServer(d); if ((xatt.depth == 1) && (!cm) && (is_pixmap)) { rtab[0] = 255; gtab[0] = 255; btab[0] = 255; rtab[1] = 0; gtab[1] = 0; btab[1] = 0; } else if (xatt.depth <= 8) { if (!cm) { if (is_pixmap) { cm = DefaultColormap(d, DefaultScreen(d)); } else { cm = xatt.colormap; if (cm == None) cm = ratt.colormap; } } for (i = 0; i < (1 << xatt.depth); i++) { cols[i].pixel = i; cols[i].flags = DoRed | DoGreen | DoBlue; } XQueryColors(d, cm, cols, 1 << xatt.depth); for (i = 0; i < (1 << xatt.depth); i++) { rtab[i] = cols[i].red >> 8; gtab[i] = cols[i].green >> 8; btab[i] = cols[i].blue >> 8; } } __imlib_GrabXImageToRGBA(data, ox + clipx, oy + clipy, ow, oh, d, xim, mxim, v, xatt.depth, x, y, w, h, 0); /* destroy the Ximage */ if (is_shm) __imlib_ShmDetach(d, &shminfo); XDestroyImage(xim); if (mxim) { if (is_mshm) __imlib_ShmDetach(d, &mshminfo); XDestroyImage(mxim); } if (created_mask) XFreePixmap(d, m); if (pdomask) { /* Set domask according to whether or not we have useful alpha data */ if (xatt.depth == 32) *pdomask = 1; else if (!m) *pdomask = 0; } return 1; } #endif /* BUILD_X11 */ imlib2-1.4.6/src/lib/dynamic_filters.c0000664000175000017500000001120512255265152014504 00000000000000#include "common.h" #include #include #include #include #include #include #include #include #include #include #include #include "image.h" #include "file.h" #include "dynamic_filters.h" #include "script.h" #include "loaderpath.h" static pImlibExternalFilter filters = NULL; static int dyn_initialised = 0; #define MALLOCSHOW #define FREESHOW /* #define FDEBUG */ pImlibExternalFilter __imlib_LoadFilter(char *file) { ImlibExternalFilter *ptr; struct imlib_filter_info *info; /* printf( "Loading filter %s\n", file ); */ MALLOCSHOW; ptr = malloc(sizeof(ImlibExternalFilter)); ptr->filename = strdup(file); ptr->handle = dlopen(file, RTLD_NOW | RTLD_LOCAL); if (!ptr->handle) { FREESHOW; free(ptr->filename); FREESHOW; free(ptr); return NULL; } ptr->init_filter = dlsym(ptr->handle, "init"); ptr->deinit_filter = dlsym(ptr->handle, "deinit"); ptr->exec_filter = dlsym(ptr->handle, "exec"); if (!ptr->init_filter || !ptr->deinit_filter || !ptr->exec_filter) { dlclose(ptr->handle); FREESHOW; free(ptr->filename); FREESHOW; free(ptr); return NULL; } info = malloc(sizeof(struct imlib_filter_info)); ptr->init_filter(info); ptr->num_filters = info->num_filters; ptr->filters = info->filters; ptr->name = info->name; ptr->author = info->author; ptr->description = info->description; free(info); #ifdef FDEBUG printf("Filter has %d filters in it.\n", ptr->num_filters); for (i = 0; i < ptr->num_filters; i++) printf(" -> \"%s\"\n", ptr->filters[i]); #endif ptr->next = NULL; return ptr; } void __imlib_dynamic_filters_init() { char **list; int num_filters, i = 0; ImlibExternalFilter *ptr, *tptr; if (!dyn_initialised) { MALLOCSHOW; filters = malloc(sizeof(ImlibExternalFilter)); filters->filename = (char *)""; filters->next = NULL; ptr = filters; #ifdef FDEBUG printf("DEBUG: Dynamic filters Initisialising\n"); #endif dyn_initialised = 1; #ifdef FDEBUG printf("DEBUG: Loading Filters\n"); #endif list = __imlib_ListFilters(&num_filters); for (i = num_filters - 1; i >= 0; i--) { tptr = NULL; if ((tptr = __imlib_LoadFilter(list[i]))) { ptr->next = tptr; ptr = ptr->next; } if (list[i]) { FREESHOW; free(list[i]); } } FREESHOW; if (list) free(list); } } void __imlib_dynamic_filters_deinit() { } pImlibExternalFilter __imlib_get_dynamic_filter(char *name) { pImlibExternalFilter f_ptr; int i = 0; /* scan the filters */ for (f_ptr = filters->next; f_ptr; f_ptr = f_ptr->next) { /* scan the methods provided */ for (i = 0; i < f_ptr->num_filters; i++) { if (strcmp(f_ptr->filters[i], name) == 0) { #ifdef FDEBUG printf("DEBUG: Found filter \"%s\"\n", name); #endif return f_ptr; } } } return NULL; } /* loader dir */ char ** __imlib_ListFilters(int *num_ret) { char **list = NULL, **l, *s; int num, i, pi = 0; *num_ret = 0; /* same for system loader path */ s = (char *)malloc(sizeof(SYS_LOADERS_PATH) + 8 + 1); sprintf(s, SYS_LOADERS_PATH "/filters"); #ifndef __EMX__ l = __imlib_FileDir(s, &num); #else l = __imlib_FileDir(__XOS2RedirRoot(s), &num); #endif if (num > 0) { *num_ret += num; list = realloc(list, sizeof(char *) * *num_ret); for (i = 0; i < num; i++) { s = (char *)realloc(s, sizeof(SYS_LOADERS_PATH) + 9 + strlen(l[i]) + 1); sprintf(s, SYS_LOADERS_PATH "/filters/%s", l[i]); #ifndef __EMX__ list[pi + i] = strdup(s); #else list[pi + i] = strdup(__XOS2RedirRoot(s)); #endif } __imlib_FileFreeDirList(l, num); } free(s); /* List currently contains *everything in there* we need to weed out * the .so, .la, .a versions of the same loader or whatever else. * dlopen can take an extension-less name and do the Right Thing * with it, so that's what we'll give it. */ list = __imlib_TrimLoaderList(list, num_ret); return list; } imlib2-1.4.6/src/lib/rend.h0000664000175000017500000000322512255265113012265 00000000000000#ifndef __REND #define __REND 1 __hidden DATA32 __imlib_RenderGetPixel(Display * d, Drawable w, Visual * v, Colormap cm, int depth, DATA8 r, DATA8 g, DATA8 b); __hidden void __imlib_RenderDisconnect(Display * d); __hidden void __imlib_RenderImage(Display * d, ImlibImage * im, Drawable w, Drawable m, Visual * v, Colormap cm, int depth, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, char anitalias, char hiq, char blend, char dither_mask, int mat, ImlibColorModifier * cmod, ImlibOp op); __hidden void __imlib_RenderImageSkewed(Display * d, ImlibImage * im, Drawable w, Drawable m, Visual * v, Colormap cm, int depth, int sx, int sy, int sw, int sh, int dx, int dy, int hsx, int hsy, int vsx, int vsy, char antialias, char hiq, char blend, char dither_mask, int mat, ImlibColorModifier * cmod, ImlibOp op); #endif imlib2-1.4.6/src/lib/rgbadraw.c0000664000175000017500000003720612255265152013132 00000000000000#include "common.h" #include #include "colormod.h" #include "image.h" #include "scale.h" #include "blend.h" #include "updates.h" #include "rgbadraw.h" void __imlib_FlipImageHoriz(ImlibImage * im) { DATA32 *p1, *p2, tmp; int x, y; for (y = 0; y < im->h; y++) { p1 = im->data + (y * im->w); p2 = im->data + ((y + 1) * im->w) - 1; for (x = 0; x < (im->w >> 1); x++) { tmp = *p1; *p1 = *p2; *p2 = tmp; p1++; p2--; } } x = im->border.left; im->border.left = im->border.right; im->border.right = x; } void __imlib_FlipImageVert(ImlibImage * im) { DATA32 *p1, *p2, tmp; int x, y; for (y = 0; y < (im->h >> 1); y++) { p1 = im->data + (y * im->w); p2 = im->data + ((im->h - 1 - y) * im->w); for (x = 0; x < im->w; x++) { tmp = *p1; *p1 = *p2; *p2 = tmp; p1++; p2++; } } x = im->border.top; im->border.top = im->border.bottom; im->border.bottom = x; } void __imlib_FlipImageBoth(ImlibImage * im) { DATA32 *p1, *p2, tmp; int x; p1 = im->data; p2 = im->data + (im->h * im->w) - 1; for (x = (im->w * im->h) / 2; --x >= 0;) { tmp = *p1; *p1 = *p2; *p2 = tmp; p1++; p2--; } x = im->border.top; im->border.top = im->border.bottom; im->border.bottom = x; x = im->border.left; im->border.left = im->border.right; im->border.right = x; } /*\ Directions (source is right/down): |*| 0 = down/right (flip over ul-dr diagonal) |*| 1 = down/left (rotate 90 degrees clockwise) |*| 2 = up/right (rotate 90 degrees counterclockwise) |*| 3 = up/left (flip over ur-ll diagonal) \*/ void __imlib_FlipImageDiagonal(ImlibImage * im, int direction) { DATA32 *data, *to, *from; int x, y, w, hw, tmp; data = malloc(im->w * im->h * sizeof(DATA32)); from = im->data; w = im->h; im->h = im->w; im->w = w; hw = w * im->h; switch (direction) { default: case 0: /*\ DOWN_RIGHT \ */ tmp = im->border.top; im->border.top = im->border.left; im->border.left = tmp; tmp = im->border.bottom; im->border.bottom = im->border.right; im->border.right = tmp; to = data; hw = -hw + 1; break; case 1: /*\ DOWN_LEFT \ */ tmp = im->border.top; im->border.top = im->border.left; im->border.left = im->border.bottom; im->border.bottom = im->border.right; im->border.right = tmp; to = data + w - 1; hw = -hw - 1; break; case 2: /*\ UP_RIGHT \ */ tmp = im->border.top; im->border.top = im->border.right; im->border.right = im->border.bottom; im->border.bottom = im->border.left; im->border.left = tmp; to = data + hw - w; w = -w; hw = hw + 1; break; case 3: /*\ UP_LEFT \ */ tmp = im->border.top; im->border.top = im->border.right; im->border.right = tmp; tmp = im->border.bottom; im->border.bottom = im->border.left; im->border.left = tmp; to = data + hw - 1; w = -w; hw = hw - 1; break; } from = im->data; for (x = im->w; --x >= 0;) { for (y = im->h; --y >= 0;) { *to = *from; from++; to += w; } to += hw; } free(im->data); im->data = data; } void __imlib_BlurImage(ImlibImage * im, int rad) { DATA32 *p1, *p2, *data; int x, y, mx, my, mw, mh, mt, xx, yy; int a, r, g, b; int *as, *rs, *gs, *bs; if (rad < 1) return; data = malloc(im->w * im->h * sizeof(DATA32)); as = malloc(sizeof(int) * im->w); rs = malloc(sizeof(int) * im->w); gs = malloc(sizeof(int) * im->w); bs = malloc(sizeof(int) * im->w); for (y = 0; y < im->h; y++) { my = y - rad; mh = (rad << 1) + 1; if (my < 0) { mh += my; my = 0; } if ((my + mh) > im->h) mh = im->h - my; p1 = data + (y * im->w); memset(as, 0, im->w * sizeof(int)); memset(rs, 0, im->w * sizeof(int)); memset(gs, 0, im->w * sizeof(int)); memset(bs, 0, im->w * sizeof(int)); for (yy = 0; yy < mh; yy++) { p2 = im->data + ((yy + my) * im->w); for (x = 0; x < im->w; x++) { as[x] += (*p2 >> 24) & 0xff; rs[x] += (*p2 >> 16) & 0xff; gs[x] += (*p2 >> 8) & 0xff; bs[x] += *p2 & 0xff; p2++; } } if (im->w > ((rad << 1) + 1)) { for (x = 0; x < im->w; x++) { a = 0; r = 0; g = 0; b = 0; mx = x - rad; mw = (rad << 1) + 1; if (mx < 0) { mw += mx; mx = 0; } if ((mx + mw) > im->w) mw = im->w - mx; mt = mw * mh; for (xx = mx; xx < (mw + mx); xx++) { a += as[xx]; r += rs[xx]; g += gs[xx]; b += bs[xx]; } a = a / mt; r = r / mt; g = g / mt; b = b / mt; *p1 = (a << 24) | (r << 16) | (g << 8) | b; p1++; } } else { } } free(as); free(rs); free(gs); free(bs); free(im->data); im->data = data; } void __imlib_SharpenImage(ImlibImage * im, int rad) { DATA32 *data, *p1, *p2; int a, r, g, b, x, y; data = malloc(im->w * im->h * sizeof(DATA32)); if (rad == 0) return; else { for (y = 1; y < (im->h - 1); y++) { p1 = im->data + 1 + (y * im->w); p2 = data + 1 + (y * im->w); for (x = 1; x < (im->w - 1); x++) { b = (int)((p1[0]) & 0xff) * 5; g = (int)((p1[0] >> 8) & 0xff) * 5; r = (int)((p1[0] >> 16) & 0xff) * 5; a = (int)((p1[0] >> 24) & 0xff) * 5; b -= (int)((p1[-1]) & 0xff); g -= (int)((p1[-1] >> 8) & 0xff); r -= (int)((p1[-1] >> 16) & 0xff); a -= (int)((p1[-1] >> 24) & 0xff); b -= (int)((p1[1]) & 0xff); g -= (int)((p1[1] >> 8) & 0xff); r -= (int)((p1[1] >> 16) & 0xff); a -= (int)((p1[1] >> 24) & 0xff); b -= (int)((p1[-im->w]) & 0xff); g -= (int)((p1[-im->w] >> 8) & 0xff); r -= (int)((p1[-im->w] >> 16) & 0xff); a -= (int)((p1[-im->w] >> 24) & 0xff); b -= (int)((p1[im->w]) & 0xff); g -= (int)((p1[im->w] >> 8) & 0xff); r -= (int)((p1[im->w] >> 16) & 0xff); a -= (int)((p1[im->w] >> 24) & 0xff); a = (a & ((~a) >> 16)); a = ((a | ((a & 256) - ((a & 256) >> 8)))); r = (r & ((~r) >> 16)); r = ((r | ((r & 256) - ((r & 256) >> 8)))); g = (g & ((~g) >> 16)); g = ((g | ((g & 256) - ((g & 256) >> 8)))); b = (b & ((~b) >> 16)); b = ((b | ((b & 256) - ((b & 256) >> 8)))); *p2 = (a << 24) | (r << 16) | (g << 8) | b; p2++; p1++; } } } free(im->data); im->data = data; } void __imlib_TileImageHoriz(ImlibImage * im) { DATA32 *p1, *p2, *p3, *p, *data; int x, y, per, tmp, na, nr, ng, nb, mix, a, r, g, b, aa, rr, gg, bb; data = malloc(im->w * im->h * sizeof(DATA32)); p1 = im->data; p = data; for (y = 0; y < im->h; y++) { p2 = p1 + (im->w >> 1); p3 = p1; per = (im->w >> 1); for (x = 0; x < (im->w >> 1); x++) { mix = (x * 255) / per; b = (*p1) & 0xff; g = (*p1 >> 8) & 0xff; r = (*p1 >> 16) & 0xff; a = (*p1 >> 24) & 0xff; bb = (*p2) & 0xff; gg = (*p2 >> 8) & 0xff; rr = (*p2 >> 16) & 0xff; aa = (*p2 >> 24) & 0xff; tmp = (r - rr) * mix; nr = rr + ((tmp + (tmp >> 8) + 0x80) >> 8); tmp = (g - gg) * mix; ng = gg + ((tmp + (tmp >> 8) + 0x80) >> 8); tmp = (b - bb) * mix; nb = bb + ((tmp + (tmp >> 8) + 0x80) >> 8); tmp = (a - aa) * mix; na = aa + ((tmp + (tmp >> 8) + 0x80) >> 8); *p = (na << 24) | (nr << 16) | (ng << 8) | nb; p++; p1++; p2++; } p2 = p3; per = (im->w - (im->w >> 1)); for (; x < im->w; x++) { mix = ((im->w - 1 - x) * 255) / per; b = (*p1) & 0xff; g = (*p1 >> 8) & 0xff; r = (*p1 >> 16) & 0xff; a = (*p1 >> 24) & 0xff; bb = (*p2) & 0xff; gg = (*p2 >> 8) & 0xff; rr = (*p2 >> 16) & 0xff; aa = (*p2 >> 24) & 0xff; tmp = (r - rr) * mix; nr = rr + ((tmp + (tmp >> 8) + 0x80) >> 8); tmp = (g - gg) * mix; ng = gg + ((tmp + (tmp >> 8) + 0x80) >> 8); tmp = (b - bb) * mix; nb = bb + ((tmp + (tmp >> 8) + 0x80) >> 8); tmp = (a - aa) * mix; na = aa + ((tmp + (tmp >> 8) + 0x80) >> 8); *p = (na << 24) | (nr << 16) | (ng << 8) | nb; p++; p1++; p2++; } } free(im->data); im->data = data; } void __imlib_TileImageVert(ImlibImage * im) { DATA32 *p1, *p2, *p, *data; int x, y, tmp, na, nr, ng, nb, mix, a, r, g, b, aa, rr, gg, bb; data = malloc(im->w * im->h * sizeof(DATA32)); p = data; for (y = 0; y < im->h; y++) { p1 = im->data + (y * im->w); if (y < (im->h >> 1)) { p2 = im->data + ((y + (im->h >> 1)) * im->w); mix = (y * 255) / (im->h >> 1); } else { p2 = im->data + ((y - (im->h >> 1)) * im->w); mix = ((im->h - y) * 255) / (im->h - (im->h >> 1)); } for (x = 0; x < im->w; x++) { b = (*p1) & 0xff; g = (*p1 >> 8) & 0xff; r = (*p1 >> 16) & 0xff; a = (*p1 >> 24) & 0xff; bb = (*p2) & 0xff; gg = (*p2 >> 8) & 0xff; rr = (*p2 >> 16) & 0xff; aa = (*p2 >> 24) & 0xff; tmp = (r - rr) * mix; nr = rr + ((tmp + (tmp >> 8) + 0x80) >> 8); tmp = (g - gg) * mix; ng = gg + ((tmp + (tmp >> 8) + 0x80) >> 8); tmp = (b - bb) * mix; nb = bb + ((tmp + (tmp >> 8) + 0x80) >> 8); tmp = (a - aa) * mix; na = aa + ((tmp + (tmp >> 8) + 0x80) >> 8); *p = (na << 24) | (nr << 16) | (ng << 8) | nb; p++; p1++; p2++; } } free(im->data); im->data = data; } void __imlib_copy_image_data(ImlibImage * im, int x, int y, int w, int h, int nx, int ny) { int xx, yy, jump; DATA32 *p1, *p2; /* clip horizontal co-ordinates so that both dest and src fit inside */ /* the image */ if (x < 0) { w += x; nx -= x; x = 0; } if (w <= 0) return; if (nx < 0) { w += nx; x -= nx; nx = 0; } if (w <= 0) return; if ((x + w) > im->w) w = (im->w - x); if (w <= 0) return; if ((nx + w) > im->w) w = (im->w - nx); if (w <= 0) return; /* clip vertical co-ordinates so that both dest and src fit inside */ /* the image */ if (y < 0) { h += y; ny -= y; y = 0; } if (h <= 0) return; if (ny < 0) { h += ny; y -= ny; ny = 0; } if (h <= 0) return; if ((y + h) > im->h) h = (im->h - y); if (h <= 0) return; if ((ny + h) > im->h) h = (im->h - ny); if (h <= 0) return; /* figure out what our source and destnation start pointers are */ p1 = im->data + (y * im->w) + x; p2 = im->data + (ny * im->w) + nx; /* the pointer jump between lines */ jump = (im->w - w); /* dest < src address - we can copy forwards */ if (p2 < p1) { /* work our way thru the array */ for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { *p2 = *p1; p1++; p2++; } p1 += jump; p2 += jump; } } /* dst > src - we must copy backwards */ else { /* new pointers to start working at (bottom-right of rect) */ p1 = im->data + ((y + h - 1) * im->w) + x + w - 1; p2 = im->data + ((ny + h - 1) * im->w) + nx + w - 1; /* work our way thru the array */ for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { *p2 = *p1; p1--; p2--; } p1 -= jump; p2 -= jump; } } } void __imlib_copy_alpha_data(ImlibImage * src, ImlibImage * dst, int x, int y, int w, int h, int nx, int ny) { int xx, yy, jump, jump2; DATA32 *p1, *p2; /* clip horizontal co-ordinates so that both dest and src fit inside */ /* the image */ if (x < 0) { w += x; nx -= x; x = 0; } if (w <= 0) return; if (nx < 0) { w += nx; x -= nx; nx = 0; } if (w <= 0) return; if ((x + w) > src->w) w = (src->w - x); if (w <= 0) return; if ((nx + w) > dst->w) w = (dst->w - nx); if (w <= 0) return; /* clip vertical co-ordinates so that both dest and src fit inside */ /* the image */ if (y < 0) { h += y; ny -= y; y = 0; } if (h <= 0) return; if (ny < 0) { h += ny; y -= ny; ny = 0; } if (h <= 0) return; if ((y + h) > src->h) h = (src->h - y); if (h <= 0) return; if ((ny + h) > dst->h) h = (dst->h - ny); if (h <= 0) return; /* figure out what our source and destnation start pointers are */ p1 = src->data + (y * src->w) + x; p2 = dst->data + (ny * dst->w) + nx; /* the pointer jump between lines */ jump = (src->w - w); jump2 = (dst->w - w); /* work our way thru the array */ for (yy = 0; yy < h; yy++) { for (xx = 0; xx < w; xx++) { *p2 = (*p1 & 0xff000000) | (*p2 & 0x00ffffff); p1++; p2++; } p1 += jump; p2 += jump2; } } imlib2-1.4.6/src/lib/asm_scale.S0000664000175000017500000003256012255265135013247 00000000000000#include #include "asm.h" #ifdef DO_MMX_ASM /*\ |*| MMX assembly scaling routine for Imlib2 |*| Written by Willem Monsuwe \*/ .text .align 8 FN_(imlib_Scale_mmx_AARGBA) /*\ Prototype: __imlib_Scale_mmx_AARGBA(ImlibScaleInfo *isi, DATA32 *dest, |*| int dxx, int dyy, int dx, int dy, int dw, int dh, int dow, int sow) \*/ #define isi 8(%ebp) #define dest 12(%ebp) #define dxx 16(%ebp) #define dyy 20(%ebp) #define dx 24(%ebp) #define dy 28(%ebp) #define dw 32(%ebp) #define dh 36(%ebp) #define dow 40(%ebp) #define sow 44(%ebp) /*\ Local variables that didn't fit in registers \*/ #define y -4(%ebp) #define yp -8(%ebp) #define yap -12(%ebp) #define xp -16(%ebp) #define xap -20(%ebp) #define Cx -24(%ebp) #define Mx -28(%ebp) #define Cy -32(%ebp) #define My -36(%ebp) #define sow_4 -40(%ebp) /*\ When %edx points to ImlibScaleInfo, these are the members \*/ #define xpoints (%edx) #define ypoints 4(%edx) #define xapoints 8(%edx) #define yapoints 12(%edx) #define xup_yup 16(%edx) PR_(imlib_Scale_mmx_AARGBA): pushl %ebp movl %esp, %ebp subl $40, %esp pushl %ebx pushl %ecx pushl %edx pushl %edi pushl %esi movl isi, %edx /*\ Check (dw > 0) && (dh > 0) \*/ cmpl $0, dw jle .scale_leave cmpl $0, dh jle .scale_leave /*\ X-based array pointers point to the end; we're looping up to 0 \*/ /*\ %edi = dest + dow * dy + dx + dw \*/ movl dow, %eax imull dy, %eax addl dx, %eax addl dw, %eax movl dest, %edi leal (%edi, %eax, 4), %edi /*\ xp = xpoints + dxx + dw \*/ movl dxx, %ebx addl dw, %ebx movl xpoints, %eax leal (%eax, %ebx, 4), %eax movl %eax, xp /*\ xap = xapoints + dxx + dw \*/ movl xapoints, %eax leal (%eax, %ebx, 4), %eax movl %eax, xap /*\ y = dh \*/ movl dh, %eax movl %eax, y /*\ yp = ypoints + dyy \*/ movl dyy, %ebx movl ypoints, %eax leal (%eax, %ebx, 4), %eax movl %eax, yp /*\ yap = yapoints + dyy \*/ movl yapoints, %eax leal (%eax, %ebx, 4), %eax movl %eax, yap pxor %mm7, %mm7 /*\ Test xup bit \*/ movl xup_yup, %eax sarl $1, %eax jnc .scale_x_down .scale_x_up: /*\ Test yup bit \*/ sarl $1, %eax jnc .scale_x_up_y_down /*\ Scaling up both ways \*/ .scale_x_up_y_up: movl sow, %ebx .up_up_loop_y: /*\ x = -dw \*/ movl dw, %ecx negl %ecx /*\ %eax = *yap << 4 \*/ movl yap, %eax movl (%eax), %eax sall $4, %eax jz .up_up_yap_0 movd %eax, %mm1 punpcklwd %mm1, %mm1 punpckldq %mm1, %mm1 .up_up_loop1_x: /*\ %esi = *yp + xp[x] \*/ movl yp, %eax movl (%eax), %esi movl xp, %eax movl (%eax, %ecx, 4), %eax leal (%esi, %eax, 4), %esi /*\ %eax = xap[x] << 4 \*/ movl xap, %eax movl (%eax, %ecx, 4), %eax sall $4, %eax jz .up_up_xap_0 /*\ %mm0 = xap[x] << 4 \*/ movd %eax, %mm0 punpcklwd %mm0, %mm0 punpckldq %mm0, %mm0 /*\ Load and unpack four pixels in parallel |*| %mm2 = ptr[0], %mm3 = ptr[1] |*| %mm4 = ptr[sow], %mm5 = ptr[sow + 1] \*/ movq (%esi), %mm2 movq (%esi, %ebx, 4), %mm4 movq %mm2, %mm3 movq %mm4, %mm5 punpcklbw %mm7, %mm2 punpcklbw %mm7, %mm4 punpckhbw %mm7, %mm3 punpckhbw %mm7, %mm5 /*\ X interpolation: r = l + (r - l) * xap \*/ psubw %mm2, %mm3 psubw %mm4, %mm5 psllw $4, %mm3 psllw $4, %mm5 pmulhw %mm0, %mm3 pmulhw %mm0, %mm5 paddw %mm2, %mm3 paddw %mm4, %mm5 /*\ Now %mm3 = I(ptr[0], ptr[1]), %mm5 = I(ptr[sow], ptr[sow + 1]) \*/ jmp .up_up_common .up_up_xap_0: /*\ Load and unpack two pixels |*| %mm3 = ptr[0], %mm5 = ptr[sow] \*/ movd (%esi), %mm3 movd (%esi, %ebx, 4), %mm5 punpcklbw %mm7, %mm3 punpcklbw %mm7, %mm5 .up_up_common: /*\ Y interpolation: d = u + (d - u) * yap \*/ psubw %mm3, %mm5 psllw $4, %mm5 pmulhw %mm1, %mm5 paddw %mm3, %mm5 packuswb %mm5, %mm5 movd %mm5, (%edi, %ecx, 4) /*\ while (++x) \*/ incl %ecx jnz .up_up_loop1_x jmp .up_up_yap_end .up_up_yap_0: .up_up_loop2_x: /*\ %esi = *yp + xp[x] \*/ movl yp, %eax movl (%eax), %esi movl xp, %eax movl (%eax, %ecx, 4), %eax leal (%esi, %eax, 4), %esi /*\ %eax = xap[x] << 4 \*/ movl xap, %eax movl (%eax, %ecx, 4), %eax sall $4, %eax jz .up_up_0 /*\ %mm0 = xap[x] << 4 \*/ movd %eax, %mm0 punpcklwd %mm0, %mm0 punpckldq %mm0, %mm0 /*\ Load and unpack two pixels in parallel |*| %mm2 = ptr[0], %mm3 = ptr[1] \*/ movq (%esi), %mm2 movq %mm2, %mm3 punpcklbw %mm7, %mm2 punpckhbw %mm7, %mm3 /*\ X interpolation: r = l + (r - l) * xap \*/ psubw %mm2, %mm3 psllw $4, %mm3 pmulhw %mm0, %mm3 paddw %mm2, %mm3 packuswb %mm3, %mm3 movd %mm3, (%edi, %ecx, 4) jmp .up_up_1 .up_up_0: /*\ dptr[x] = *sptr \*/ movl (%esi), %eax movl %eax, (%edi, %ecx, 4) .up_up_1: incl %ecx jnz .up_up_loop2_x .up_up_yap_end: /*\ dptr += dow \*/ movl dow, %eax leal (%edi, %eax, 4), %edi /*\ yap++; yp++ \*/ addl $4, yap addl $4, yp /*\ while (y--) \*/ decl y jnz .up_up_loop_y jmp .scale_leave /*\ Scaling down vertically \*/ .scale_x_up_y_down: /*\ sow_4 = sow * 4 \*/ movl sow, %eax sall $2, %eax movl %eax, sow_4 .up_down_loop_y: /*\ Setup My and Cy \*/ movl yap, %eax movzwl (%eax), %ebx movl %ebx, My movzwl 2(%eax), %eax movl %eax, Cy /*\ mm4 = Cy \*/ movd %eax, %mm4 punpcklwd %mm4, %mm4 punpckldq %mm4, %mm4 /*\ mm5 = My \*/ movd %ebx, %mm5 punpcklwd %mm5, %mm5 punpckldq %mm5, %mm5 /*\ x = -dw \*/ movl dw, %ecx negl %ecx .up_down_loop_x: /*\ %esi = *yp + xp[x] \*/ movl yp, %eax movl (%eax), %esi movl xp, %eax movl (%eax, %ecx, 4), %eax leal (%esi, %eax, 4), %esi movl %esi, %eax /*\ v = (*p * My) >> 10 \*/ movd (%eax), %mm0 punpcklbw %mm7, %mm0 psllw $6, %mm0 pmulhw %mm5, %mm0 /*\ i = 0x4000 - My \*/ movl $0x4000, %ebx subl My, %ebx jbe 5f jmp 2f 1: /*\ p += sow; v += (*p * Cy) >> 10 \*/ addl sow_4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $6, %mm1 pmulhw %mm4, %mm1 paddw %mm1, %mm0 /*\ i -= Cy; while (i > Cy) \*/ subl Cy, %ebx 2: cmpl Cy, %ebx jg 1b /*\ mm6 = i \*/ movd %ebx, %mm6 punpcklwd %mm6, %mm6 punpckldq %mm6, %mm6 /*\ p += sow; v += (*p * i) >> 10 \*/ addl sow_4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $6, %mm1 pmulhw %mm6, %mm1 paddw %mm1, %mm0 5: /*\ %eax = xap[x] << 5 \*/ movl xap, %eax movl (%eax, %ecx, 4), %eax sall $5, %eax jz 6f /*\ mm3 = xap[x] << 5 \*/ movd %eax, %mm3 punpcklwd %mm3, %mm3 punpckldq %mm3, %mm3 /*\ p + 1 \*/ movl %esi, %eax addl $4, %eax /*\ vv = (*p * My) >> 10 \*/ movd (%eax), %mm2 punpcklbw %mm7, %mm2 psllw $6, %mm2 pmulhw %mm5, %mm2 /*\ i = 0x4000 - My \*/ movl $0x4000, %ebx subl My, %ebx jbe 5f jmp 2f 1: /*\ p += sow; vv += (*p * Cy) >> 10 \*/ addl sow_4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $6, %mm1 pmulhw %mm4, %mm1 paddw %mm1, %mm2 /*\ i -= Cy; while (i > Cy) \*/ subl Cy, %ebx 2: cmpl Cy, %ebx jg 1b /*\ p += sow; v += (*p * i) >> 10 \*/ addl sow_4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $6, %mm1 pmulhw %mm6, %mm1 paddw %mm1, %mm2 5: /*\ v = v + (vv - v) * xap \*/ psubw %mm0, %mm2 psllw $3, %mm2 pmulhw %mm3, %mm2 paddw %mm2, %mm0 6: /*\ dest[x] = v >> 4 \*/ psrlw $4, %mm0 packuswb %mm0, %mm0 movd %mm0, (%edi, %ecx, 4) /*\ while (++x) \*/ incl %ecx jnz .up_down_loop_x /*\ dptr += dow \*/ movl dow, %eax leal (%edi, %eax, 4), %edi /*\ yap++; yp++ \*/ addl $4, yap addl $4, yp /*\ while (y--) \*/ decl y jnz .up_down_loop_y jmp .scale_leave .scale_x_down: /*\ Test yup bit \*/ sarl $1, %eax jnc .scale_x_down_y_down /*\ Scaling down horizontally \*/ .scale_x_down_y_up: /*\ sow_4 = sow * 4 \*/ movl sow, %eax sall $2, %eax movl %eax, sow_4 .down_up_loop_y: /*\ %eax = *yap << 5 \*/ movl yap, %eax movl (%eax), %eax sall $5, %eax /*\ mm3 = *yap << 5 \*/ movd %eax, %mm3 punpcklwd %mm3, %mm3 punpckldq %mm3, %mm3 /*\ x = -dw \*/ movl dw, %ecx negl %ecx .down_up_loop_x: /*\ %esi = *yp + xp[x] \*/ movl yp, %eax movl (%eax), %esi movl xp, %eax movl (%eax, %ecx, 4), %eax leal (%esi, %eax, 4), %esi /*\ Setup Mx and Cx \*/ movl xap, %eax movzwl (%eax, %ecx, 4), %ebx movl %ebx, Mx movzwl 2(%eax, %ecx, 4), %eax movl %eax, Cx /*\ mm4 = Cx \*/ movd %eax, %mm4 punpcklwd %mm4, %mm4 punpckldq %mm4, %mm4 /*\ mm5 = Mx \*/ movd %ebx, %mm5 punpcklwd %mm5, %mm5 punpckldq %mm5, %mm5 movl %esi, %eax /*\ v = (*p * Mx) >> 10 \*/ movd (%eax), %mm0 punpcklbw %mm7, %mm0 psllw $6, %mm0 pmulhw %mm5, %mm0 /*\ i = 0x4000 - Mx \*/ movl $0x4000, %ebx subl Mx, %ebx jbe 5f jmp 2f 1: /*\ p += sow; v += (*p * Cx) >> 10 \*/ addl $4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $6, %mm1 pmulhw %mm4, %mm1 paddw %mm1, %mm0 /*\ i -= Cx; while (i > Cx) \*/ subl Cx, %ebx 2: cmpl Cx, %ebx jg 1b /*\ mm6 = i \*/ movd %ebx, %mm6 punpcklwd %mm6, %mm6 punpckldq %mm6, %mm6 /*\ p += sow; v += (*p * i) >> 10 \*/ addl $4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $6, %mm1 pmulhw %mm6, %mm1 paddw %mm1, %mm0 5: movd %mm3, %eax testl %eax, %eax jz 6f /*\ p + sow \*/ movl %esi, %eax addl sow_4, %eax /*\ vv = (*p * Mx) >> 10 \*/ movd (%eax), %mm2 punpcklbw %mm7, %mm2 psllw $6, %mm2 pmulhw %mm5, %mm2 /*\ i = 0x4000 - Mx \*/ movl $0x4000, %ebx subl Mx, %ebx jbe 5f jmp 2f 1: /*\ p += sow; vv += (*p * Cx) >> 10 \*/ addl $4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $6, %mm1 pmulhw %mm4, %mm1 paddw %mm1, %mm2 /*\ i -= Cx; while (i > Cx) \*/ subl Cx, %ebx 2: cmpl Cx, %ebx jg 1b /*\ p += sow; v += (*p * i) >> 10 \*/ addl $4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $6, %mm1 pmulhw %mm6, %mm1 paddw %mm1, %mm2 5: /*\ v = v + (vv - v) * yap \*/ psubw %mm0, %mm2 psllw $3, %mm2 pmulhw %mm3, %mm2 paddw %mm2, %mm0 6: /*\ dest[x] = v >> 4 \*/ psrlw $4, %mm0 packuswb %mm0, %mm0 movd %mm0, (%edi, %ecx, 4) /*\ while (++x) \*/ incl %ecx jnz .down_up_loop_x /*\ dptr += dow \*/ movl dow, %eax leal (%edi, %eax, 4), %edi /*\ yap++; yp++ \*/ addl $4, yap addl $4, yp /*\ while (y--) \*/ decl y jnz .down_up_loop_y jmp .scale_leave /*\ Scaling down both ways \*/ .scale_x_down_y_down: /*\ sow_4 = sow * 4 \*/ movl sow, %eax sall $2, %eax movl %eax, sow_4 .down_down_loop_y: /*\ Setup My and Cy \*/ movl yap, %eax movzwl (%eax), %ebx movl %ebx, My movzwl 2(%eax), %eax movl %eax, Cy /*\ x = -dw \*/ movl dw, %ecx negl %ecx .down_down_loop_x: /*\ %esi = *yp + xp[x] \*/ movl yp, %eax movl (%eax), %esi movl xp, %eax movl (%eax, %ecx, 4), %eax leal (%esi, %eax, 4), %esi /*\ Setup Mx and Cx \*/ movl xap, %eax movzwl (%eax, %ecx, 4), %ebx movl %ebx, Mx movzwl 2(%eax, %ecx, 4), %eax movl %eax, Cx /*\ mm3 = Cx \*/ movd %eax, %mm3 punpcklwd %mm3, %mm3 punpckldq %mm3, %mm3 /*\ mm5 = Mx \*/ movd %ebx, %mm5 punpcklwd %mm5, %mm5 punpckldq %mm5, %mm5 /*\ p = sptr; v = (*p * Mx) >> 9 \*/ movl %esi, %eax movd (%eax), %mm0 punpcklbw %mm7, %mm0 psllw $7, %mm0 pmulhw %mm5, %mm0 /*\ i = 0x4000 - Mx \*/ movl $0x4000, %ebx subl Mx, %ebx jbe 5f jmp 2f 1: /*\ v += (*++p * Cx) >> 9 \*/ addl $4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $7, %mm1 pmulhw %mm3, %mm1 paddw %mm1, %mm0 /*\ i -= Cx; while (i > Cx) \*/ subl Cx, %ebx 2: cmpl Cx, %ebx jg 1b /*\ mm6 = i \*/ movd %ebx, %mm6 punpcklwd %mm6, %mm6 punpckldq %mm6, %mm6 /*\ v += (*++p * i) >> 9 \*/ addl $4, %eax movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $7, %mm1 pmulhw %mm6, %mm1 paddw %mm1, %mm0 5: /*\ v *= My \*/ movd My, %mm4 punpcklwd %mm4, %mm4 punpckldq %mm4, %mm4 psllw $2, %mm0 pmulhw %mm4, %mm0 /*\ j = 0x4000 - My \*/ movl $0x4000, %edx subl My, %edx jbe 6f jmp 4f 3: /*\ sptr += sow; p = sptr \*/ addl sow_4, %esi movl %esi, %eax /*\ vx = (*p * Mx) >> 9 \*/ movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $7, %mm1 pmulhw %mm5, %mm1 /*\ i = 0x4000 - Mx \*/ movl $0x4000, %ebx subl Mx, %ebx jbe 5f jmp 2f 1: /*\ vx += (*++p * Cx) >> 9 \*/ addl $4, %eax movd (%eax), %mm2 punpcklbw %mm7, %mm2 psllw $7, %mm2 pmulhw %mm3, %mm2 paddw %mm2, %mm1 /*\ i -= Cx; while (i > Cx) \*/ subl Cx, %ebx 2: cmpl Cx, %ebx jg 1b /*\ vx += (*++p * i) >> 9 \*/ addl $4, %eax movd (%eax), %mm2 punpcklbw %mm7, %mm2 psllw $7, %mm2 pmulhw %mm6, %mm2 paddw %mm2, %mm1 5: /*\ v += (vx * Cy) >> 14 \*/ movd Cy, %mm4 punpcklwd %mm4, %mm4 punpckldq %mm4, %mm4 psllw $2, %mm1 pmulhw %mm4, %mm1 paddw %mm1, %mm0 /*\ j -= Cy; while (j > Cy) \*/ subl Cy, %edx 4: cmpl Cy, %edx jg 3b /*\ sptr += sow; p = sptr \*/ addl sow_4, %esi movl %esi, %eax /*\ vx = (*p * Mx) >> 9 \*/ movd (%eax), %mm1 punpcklbw %mm7, %mm1 psllw $7, %mm1 pmulhw %mm5, %mm1 /*\ i = 0x4000 - Mx \*/ movl $0x4000, %ebx subl Mx, %ebx jbe 5f jmp 2f 1: /*\ vx += (*++p * Cx) >> 9 \*/ addl $4, %eax movd (%eax), %mm2 punpcklbw %mm7, %mm2 psllw $7, %mm2 pmulhw %mm3, %mm2 paddw %mm2, %mm1 /*\ i -= Cx; while (i > Cx) \*/ subl Cx, %ebx 2: cmpl Cx, %ebx jg 1b /*\ vx += (*++p * i) >> 9 \*/ addl $4, %eax movd (%eax), %mm2 punpcklbw %mm7, %mm2 psllw $7, %mm2 pmulhw %mm6, %mm2 paddw %mm2, %mm1 5: /*\ v += (vx * j) >> 14 \*/ movd %edx, %mm4 punpcklwd %mm4, %mm4 punpckldq %mm4, %mm4 psllw $2, %mm1 pmulhw %mm4, %mm1 paddw %mm1, %mm0 6: /*\ dptr[x] = mm0 >> 5 \*/ psrlw $5, %mm0 packuswb %mm0, %mm0 movd %mm0, (%edi, %ecx, 4) /*\ while (++x) \*/ incl %ecx jnz .down_down_loop_x /*\ dptr += dow \*/ movl dow, %eax leal (%edi, %eax, 4), %edi /*\ yap++; yp++ \*/ addl $4, yap addl $4, yp /*\ while (y--) \*/ decl y jnz .down_down_loop_y jmp .scale_leave .scale_leave: emms popl %esi popl %edi popl %edx popl %ecx popl %ebx movl %ebp, %esp popl %ebp ret SIZE(imlib_Scale_mmx_AARGBA) #endif #ifdef __ELF__ .section .note.GNU-stack,"",@progbits #endif imlib2-1.4.6/src/lib/font.h0000664000175000017500000001100012255265135012275 00000000000000#include #include FT_FREETYPE_H #include FT_GLYPH_H /* TODO separate fonts and data stuff */ typedef struct _Imlib_Font ImlibFont; typedef struct _Imlib_Font_Glyph Imlib_Font_Glyph; typedef struct _Imlib_Object_List Imlib_Object_List; typedef struct _Imlib_Hash Imlib_Hash; typedef struct _Imlib_Hash_El Imlib_Hash_El; struct _Imlib_Object_List { Imlib_Object_List *next, *prev; Imlib_Object_List *last; }; struct _Imlib_Hash { int population; Imlib_Object_List *buckets[256]; }; struct _Imlib_Hash_El { Imlib_Object_List _list_data; char *key; void *data; }; struct _Imlib_Font { Imlib_Object_List _list_data; char *name; char *file; int size; struct { FT_Face face; } ft; Imlib_Hash *glyphs; int usage; int references; /* using a double-linked list for the fallback chain */ struct _Imlib_Font *fallback_prev; struct _Imlib_Font *fallback_next; }; struct _Imlib_Font_Glyph { FT_Glyph glyph; FT_BitmapGlyph glyph_out; }; /* functions */ void imlib_font_init(void); int imlib_font_ascent_get(ImlibFont * fn); int imlib_font_descent_get(ImlibFont * fn); int imlib_font_max_ascent_get(ImlibFont * fn); int imlib_font_max_descent_get(ImlibFont * fn); int imlib_font_get_line_advance(ImlibFont * fn); int imlib_font_utf8_get_next(unsigned char *buf, int *iindex); void imlib_font_add_font_path(const char *path); void imlib_font_del_font_path(const char *path); int imlib_font_path_exists(const char *path); char **imlib_font_list_font_path(int *num_ret); char **imlib_font_list_fonts(int *num_ret); ImlibFont *imlib_font_load_joined(const char *name); void imlib_font_free(ImlibFont * fn); int imlib_font_insert_into_fallback_chain_imp(ImlibFont * fn, ImlibFont * fallback); void imlib_font_remove_from_fallback_chain_imp(ImlibFont * fn); int imlib_font_cache_get(void); void imlib_font_cache_set(int size); void imlib_font_flush(void); void imlib_font_modify_cache_by(ImlibFont * fn, int dir); void imlib_font_modify_cache_by(ImlibFont * fn, int dir); void imlib_font_flush_last(void); ImlibFont *imlib_font_find(const char *name, int size); ImlibFont *imlib_font_find_glyph(ImlibFont * fn, int gl, unsigned int *ret_index); void imlib_font_query_size(ImlibFont * fn, const char *text, int *w, int *h); int imlib_font_query_inset(ImlibFont * fn, const char *text); void imlib_font_query_advance(ImlibFont * fn, const char *text, int *h_adv, int *v_adv); int imlib_font_query_char_coords(ImlibFont * fn, const char *text, int pos, int *cx, int *cy, int *cw, int *ch); int imlib_font_query_text_at_pos(ImlibFont * fn, const char *text, int x, int y, int *cx, int *cy, int *cw, int *ch); Imlib_Font_Glyph *imlib_font_cache_glyph_get(ImlibFont * fn, FT_UInt index); void imlib_render_str(ImlibImage * im, ImlibFont * f, int drx, int dry, const char *text, DATA8 r, DATA8 g, DATA8 b, DATA8 a, char dir, double angle, int *retw, int *reth, int blur, int *nextx, int *nexty, ImlibOp op, int clx, int cly, int clw, int clh); void imlib_font_draw(ImlibImage * dst, DATA32 col, ImlibFont * fn, int x, int y, const char *text, int *nextx, int *nexty, int clx, int cly, int clw, int clh); /* data manipulation */ void *imlib_object_list_prepend(void *in_list, void *in_item); void *imlib_object_list_remove(void *in_list, void *in_item); Imlib_Hash *imlib_hash_add(Imlib_Hash * hash, const char *key, const void *data); void *imlib_hash_find(Imlib_Hash * hash, const char *key); void imlib_hash_free(Imlib_Hash * hash); void imlib_hash_foreach(Imlib_Hash * hash, int (*func) (Imlib_Hash * hash, const char *key, void *data, void *fdata), const void *fdata); imlib2-1.4.6/src/lib/span.h0000664000175000017500000000106212255265030012271 00000000000000#ifndef __SPAN #define __SPAN 1 typedef void (*ImlibPointDrawFunction)(DATA32, DATA32 *); __hidden ImlibPointDrawFunction __imlib_GetPointDrawFunction(ImlibOp op, char dst_alpha, char blend); typedef void (*ImlibSpanDrawFunction)(DATA32, DATA32 *, int); __hidden ImlibSpanDrawFunction __imlib_GetSpanDrawFunction(ImlibOp op, char dst_alpha, char blend); typedef void (*ImlibShapedSpanDrawFunction)(DATA8 *, DATA32, DATA32 *, int); __hidden ImlibShapedSpanDrawFunction __imlib_GetShapedSpanDrawFunction(ImlibOp op, char dst_alpha, char blend); #endif imlib2-1.4.6/src/modules/0000775000175000017500000000000012255306373012150 500000000000000imlib2-1.4.6/src/modules/Makefile.in0000664000175000017500000004456612255306302014144 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/modules DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = Makefile.in SUBDIRS = loaders filters all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/modules/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/src/modules/Makefile.am0000664000175000017500000000007512137523370014123 00000000000000MAINTAINERCLEANFILES = Makefile.in SUBDIRS = loaders filters imlib2-1.4.6/src/modules/loaders/0000775000175000017500000000000012255306373013601 500000000000000imlib2-1.4.6/src/modules/loaders/loader_xpm.c0000664000175000017500000004365412255265152016032 00000000000000#include "loader_common.h" #include #include #include static FILE *rgb_txt = NULL; static void xpm_parse_color(char *color, int *r, int *g, int *b) { char buf[4096]; /* is a #ff00ff like color */ if (color[0] == '#') { int len; char val[32]; len = strlen(color) - 1; if (len < 96) { int i; len /= 3; for (i = 0; i < len; i++) val[i] = color[1 + i + (0 * len)]; val[i] = 0; sscanf(val, "%x", r); for (i = 0; i < len; i++) val[i] = color[1 + i + (1 * len)]; val[i] = 0; sscanf(val, "%x", g); for (i = 0; i < len; i++) val[i] = color[1 + i + (2 * len)]; val[i] = 0; sscanf(val, "%x", b); if (len == 1) { *r = (*r << 4) | *r; *g = (*g << 4) | *g; *b = (*b << 4) | *b; } else if (len > 2) { *r >>= (len - 2) * 4; *g >>= (len - 2) * 4; *b >>= (len - 2) * 4; } } return; } /* look in rgb txt database */ if (!rgb_txt) #ifndef __EMX__ rgb_txt = fopen("/usr/share/X11/rgb.txt", "r"); if (!rgb_txt) rgb_txt = fopen("/usr/X11R6/lib/X11/rgb.txt", "r"); if (!rgb_txt) rgb_txt = fopen("/usr/openwin/lib/X11/rgb.txt", "r"); #else rgb_txt = fopen(__XOS2RedirRoot("/XFree86/lib/X11/rgb.txt"), "rt"); #endif if (!rgb_txt) return; fseek(rgb_txt, 0, SEEK_SET); while (fgets(buf, 4000, rgb_txt)) { if (buf[0] != '!') { int rr, gg, bb; char name[4096]; sscanf(buf, "%i %i %i %[^\n]", &rr, &gg, &bb, name); if (!strcasecmp(name, color)) { *r = rr; *g = gg; *b = bb; return; } } } } static void xpm_parse_done(void) { if (rgb_txt) fclose(rgb_txt); rgb_txt = NULL; } char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { DATA32 *ptr, *end; FILE *f; int pc, c, i, j, k, w, h, ncolors, cpp, comment, transp, quote, context, len, done, r, g, b, backslash; char *line, s[256], tok[256], col[256]; int lsz = 256; struct _cmap { char str[6]; unsigned char transp; short r, g, b; } *cmap; short lookup[128 - 32][128 - 32]; float per = 0.0, per_inc = 0.0; int last_per = 0, last_y = 0; int count, pixels; done = 0; transp = -1; /* if immediate_load is 1, then dont delay image laoding as below, or */ /* already data in this image - dont load it again */ if (im->data) { xpm_parse_done(); return 0; } f = fopen(im->real_file, "rb"); if (!f) { xpm_parse_done(); return 0; } fread(s, 1, 9, f); rewind(f); s[9] = 0; if (strcmp("/* XPM */", s)) { fclose(f); xpm_parse_done(); return 0; } i = 0; j = 0; cmap = NULL; w = 10; h = 10; ptr = NULL; end = NULL; c = ' '; comment = 0; quote = 0; context = 0; pixels = 0; count = 0; line = malloc(lsz); if (!line) return 0; backslash = 0; memset(lookup, 0, sizeof(lookup)); while (!done) { pc = c; c = fgetc(f); if (c == EOF) break; if (!quote) { if ((pc == '/') && (c == '*')) comment = 1; else if ((pc == '*') && (c == '/') && (comment)) comment = 0; } if (comment) continue; if ((!quote) && (c == '"')) { quote = 1; i = 0; } else if ((quote) && (c == '"')) { line[i] = 0; quote = 0; if (context == 0) { /* Header */ sscanf(line, "%i %i %i %i", &w, &h, &ncolors, &cpp); if ((ncolors > 32766) || (ncolors < 1)) { fprintf(stderr, "IMLIB ERROR: XPM files with colors > 32766 or < 1 not supported\n"); free(line); fclose(f); xpm_parse_done(); return 0; } if ((cpp > 5) || (cpp < 1)) { fprintf(stderr, "IMLIB ERROR: XPM files with characters per pixel > 5 or < 1not supported\n"); free(line); fclose(f); xpm_parse_done(); return 0; } if (!IMAGE_DIMENSIONS_OK(w, h)) { fprintf(stderr, "IMLIB ERROR: Invalid image dimension: %dx%d\n", w, h); free(line); fclose(f); xpm_parse_done(); return 0; } im->w = w; im->h = h; if (!im->format) im->format = strdup("xpm"); cmap = malloc(sizeof(struct _cmap) * ncolors); if (!cmap) { free(line); fclose(f); xpm_parse_done(); return 0; } per_inc = 100.0 / (((float)w) * h); if (im->loader || immediate_load || progress) { im->data = (DATA32 *) malloc(sizeof(DATA32) * im->w * im->h); if (!im->data) { free(cmap); free(line); fclose(f); xpm_parse_done(); return 0; } ptr = im->data; pixels = w * h; end = ptr + (pixels); } else { free(cmap); free(line); fclose(f); xpm_parse_done(); return 1; } j = 0; context++; } else if (context == 1) { /* Color Table */ if (j < ncolors) { int slen; int hascolor, iscolor; iscolor = 0; hascolor = 0; tok[0] = 0; col[0] = 0; s[0] = 0; len = strlen(line); strncpy(cmap[j].str, line, cpp); cmap[j].str[cpp] = 0; cmap[j].r = -1; cmap[j].transp = 0; for (k = cpp; k < len; k++) { if (line[k] != ' ') { s[0] = 0; sscanf(&line[k], "%255s", s); slen = strlen(s); k += slen; if (!strcmp(s, "c")) iscolor = 1; if ((!strcmp(s, "m")) || (!strcmp(s, "s")) || (!strcmp(s, "g4")) || (!strcmp(s, "g")) || (!strcmp(s, "c")) || (k >= len)) { if (k >= len) { if (col[0]) { if (strlen(col) < (sizeof(col) - 2)) strcat(col, " "); else done = 1; } if (strlen(col) + strlen(s) < (sizeof(col) - 1)) strcat(col, s); } if (col[0]) { if (!strcasecmp(col, "none")) { transp = 1; cmap[j].transp = 1; } else { if ((((cmap[j].r < 0) || (!strcmp(tok, "c"))) && (!hascolor))) { r = 0; g = 0; b = 0; xpm_parse_color(col, &r, &g, &b); cmap[j].r = r; cmap[j].g = g; cmap[j].b = b; if (iscolor) hascolor = 1; } } } strcpy(tok, s); col[0] = 0; } else { if (col[0]) { if (strlen(col) < (sizeof(col) - 2)) strcat(col, " "); else done = 1; } if (strlen(col) + strlen(s) < (sizeof(col) - 1)) strcat(col, s); } } } } j++; if (j >= ncolors) { if (cpp == 1) for (i = 0; i < ncolors; i++) lookup[(int)cmap[i].str[0] - 32][0] = i; if (cpp == 2) for (i = 0; i < ncolors; i++) lookup[(int)cmap[i].str[0] - 32][(int)cmap[i].str[1] - 32] = i; context++; } if (transp >= 0) { SET_FLAG(im->flags, F_HAS_ALPHA); } else { UNSET_FLAG(im->flags, F_HAS_ALPHA); } } else { /* Image Data */ i = 0; if (cpp == 0) { /* Chars per pixel = 0? well u never know */ } if (cpp == 1) { #define PIX_RGB(_r, _g, _b) (((_r) << 16) | ((_g) << 8) | (_b)) #define PIX_ARGB(_r, _g, _b) ((0xff << 24) | PIX_RGB(_r, _g, _b)) #define CM1_TRANS() cmap[lookup[col[0] - ' '][0]].transp #define CM1_R() (unsigned char)cmap[lookup[col[0] - ' '][0]].r #define CM1_G() (unsigned char)cmap[lookup[col[0] - ' '][0]].g #define CM1_B() (unsigned char)cmap[lookup[col[0] - ' '][0]].b for (i = 0; ((i < 65536) && (ptr < end) && (line[i])); i++) { col[0] = line[i]; r = CM1_R(); g = CM1_G(); b = CM1_B(); if (transp && CM1_TRANS()) *ptr++ = PIX_RGB(r, g, b); else *ptr++ = PIX_ARGB(r, g, b); count++; } } else if (cpp == 2) { #define CM2_TRANS() cmap[lookup[col[0] - ' '][col[1] - ' ']].transp #define CM2_R() (unsigned char)cmap[lookup[col[0] - ' '][col[1] - ' ']].r #define CM2_G() (unsigned char)cmap[lookup[col[0] - ' '][col[1] - ' ']].g #define CM2_B() (unsigned char)cmap[lookup[col[0] - ' '][col[1] - ' ']].b for (i = 0; ((i < 65536) && (ptr < end) && (line[i])); i++) { col[0] = line[i++]; col[1] = line[i]; r = CM2_R(); g = CM2_G(); b = CM2_B(); if (transp && CM2_TRANS()) *ptr++ = PIX_RGB(r, g, b); else *ptr++ = PIX_ARGB(r, g, b); count++; } } else { #define CM0_TRANS(_j) cmap[_j].transp #define CM0_R(_j) (unsigned char)cmap[_j].r #define CM0_G(_j) (unsigned char)cmap[_j].g #define CM0_B(_j) (unsigned char)cmap[_j].b for (i = 0; ((i < 65536) && (ptr < end) && (line[i])); i++) { for (j = 0; j < cpp; j++, i++) { col[j] = line[i]; } col[j] = 0; i--; for (j = 0; j < ncolors; j++) { if (!strcmp(col, cmap[j].str)) { r = CM0_R(j); g = CM0_G(j); b = CM0_B(j); if (transp && CM0_TRANS(j)) *ptr++ = PIX_RGB(r, g, b); else *ptr++ = PIX_ARGB(r, g, b); count++; j = ncolors; } } } } per += per_inc; if (progress && (((int)per) != last_per) && (((int)per) % progress_granularity == 0)) { last_per = (int)per; if (!(progress(im, (int)per, 0, last_y, w, i))) { fclose(f); free(cmap); free(line); xpm_parse_done(); return 2; } last_y = i; } } } /* Scan in line from XPM file */ if ((quote) && (c != '"')) { if (c < 32) c = 32; else if (c > 127) c = 127; if (c == '\\') { if (++backslash < 2) { line[i++] = c; } else { backslash = 0; } } else { backslash = 0; line[i++] = c; } } if (i >= lsz) { lsz += 256; line = realloc(line, lsz); } if (((ptr) && ((ptr - im->data) >= (w * h * (int)sizeof(DATA32)))) || ((context > 1) && (count >= pixels))) done = 1; } if (progress) { progress(im, 100, 0, last_y, w, h); } fclose(f); free(cmap); free(line); xpm_parse_done(); return 1; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "xpm" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_bz2.c0000664000175000017500000000523612255265152015715 00000000000000#include "loader_common.h" #include #include #include #include #include #define OUTBUF_SIZE 16384 #define INBUF_SIZE 1024 static int uncompress_file(FILE * fp, int dest) { BZFILE *bf; DATA8 outbuf[OUTBUF_SIZE]; int bytes, error, ret = 1; bf = BZ2_bzReadOpen(&error, fp, 0, 0, NULL, 0); if (error != BZ_OK) { BZ2_bzReadClose(NULL, bf); return 0; } while (1) { bytes = BZ2_bzRead(&error, bf, &outbuf, OUTBUF_SIZE); if (error == BZ_OK || error == BZ_STREAM_END) write(dest, outbuf, bytes); if (error == BZ_STREAM_END) break; else if (error != BZ_OK) { ret = 0; break; } } BZ2_bzReadClose(&error, bf); return ret; } char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { ImlibLoader *loader; FILE *fp; int dest, res; char *file, tmp[] = "/tmp/imlib2_loader_bz2-XXXXXX", *p; char real_ext[16]; assert(im); /* make sure this file ends in ".bz2" and that there's another ext * (e.g. "foo.png.bz2" */ p = strrchr(im->real_file, '.'); if (p && p != im->real_file) { if (strcasecmp(p + 1, "bz2")) return 0; } else return 0; strncpy(real_ext, p - sizeof(real_ext) + 1, sizeof(real_ext)); real_ext[sizeof(real_ext) - 1] = '\0'; /* abort if there's no dot in the "real" filename */ if (!strrchr(real_ext, '.')) return 0; if (!(fp = fopen(im->real_file, "rb"))) { return 0; } if ((dest = mkstemp(tmp)) < 0) { fclose(fp); return 0; } res = uncompress_file(fp, dest); fclose(fp); close(dest); if (!res) { unlink(tmp); return 0; } if (!(loader = __imlib_FindBestLoaderForFile(real_ext, 0))) { unlink(tmp); return 0; } /* remember the original filename */ file = strdup(im->real_file); free(im->real_file); im->real_file = strdup(tmp); loader->load(im, progress, progress_granularity, immediate_load); free(im->real_file); im->real_file = file; unlink(tmp); return 1; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "bz2" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_tiff.c0000664000175000017500000004335612255265152016155 00000000000000/* To do: */ /* o Need code to handle tiff with different orientations */ #include "loader_common.h" #include #include #include /* This is a wrapper data structure for TIFFRGBAImage, so that data can be */ /* passed into the callbacks. More elegent, I think, than a bunch of globals */ struct TIFFRGBAImage_Extra { TIFFRGBAImage rgba; tileContigRoutine put_contig; tileSeparateRoutine put_separate; ImlibImage *image; ImlibProgressFunction progress; char pper; char progress_granularity; uint32 num_pixels; uint32 py; }; typedef struct TIFFRGBAImage_Extra TIFFRGBAImage_Extra; static void raster(TIFFRGBAImage_Extra * img, uint32 * raster, uint32 x, uint32 y, uint32 w, uint32 h); static void put_contig_and_raster(TIFFRGBAImage * img, uint32 * rast, uint32 x, uint32 y, uint32 w, uint32 h, int32 fromskew, int32 toskew, unsigned char *cp) { (*(((TIFFRGBAImage_Extra *) img)->put_contig)) (img, rast, x, y, w, h, fromskew, toskew, cp); raster((TIFFRGBAImage_Extra *) img, rast, x, y, w, h); } static void put_separate_and_raster(TIFFRGBAImage * img, uint32 * rast, uint32 x, uint32 y, uint32 w, uint32 h, int32 fromskew, int32 toskew, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) { (*(((TIFFRGBAImage_Extra *) img)->put_separate)) (img, rast, x, y, w, h, fromskew, toskew, r, g, b, a); raster((TIFFRGBAImage_Extra *) img, rast, x, y, w, h); } #define PIM(_x, _y) buffer + ((_x) + image_width * (_y)) static void raster(TIFFRGBAImage_Extra * img, uint32 * rast, uint32 x, uint32 y, uint32 w, uint32 h) { uint32 image_width, image_height; uint32 *pixel, pixel_value; uint32 i, j, k; DATA32 *buffer_pixel, *buffer = img->image->data; int alpha_premult; int a, r, g, b; image_width = img->image->w; image_height = img->image->h; #if 0 printf("%s: x,y=%d,%d wxh=%dx%d (image %dx%d)\n", __func__, x, y, w, h, image_width, image_height); #endif /* rast seems to point to the beginning of the last strip processed */ /* so you need use negative offsets. Bizzare. Someone please check this */ /* I don't understand why, but that seems to be what's going on. */ /* libtiff needs better docs! */ if (img->rgba.alpha == EXTRASAMPLE_UNASSALPHA) alpha_premult = 1; switch (img->rgba.orientation) { default: case ORIENTATION_TOPLEFT: case ORIENTATION_TOPRIGHT: for (j = 0; j < h; j++) { pixel = rast - j * image_width; for (i = 0; i < w; i++) { pixel_value = *pixel++; a = TIFFGetA(pixel_value); r = TIFFGetR(pixel_value); g = TIFFGetG(pixel_value); b = TIFFGetB(pixel_value); if ((a > 0) && (a < 255) && (alpha_premult)) { r = (r * 255) / a; g = (g * 255) / a; b = (b * 255) / a; } k = x + i; if (img->rgba.orientation == ORIENTATION_TOPRIGHT) k = image_width - 1 - k; buffer_pixel = PIM(k, image_height - 1 - (y - j)); *buffer_pixel = (a << 24) | (r << 16) | (g << 8) | b; } } break; case ORIENTATION_BOTRIGHT: case ORIENTATION_BOTLEFT: for (j = 0; j < h; j++) { pixel = rast + j * image_width; for (i = 0; i < w; i++) { pixel_value = *pixel++; a = TIFFGetA(pixel_value); r = TIFFGetR(pixel_value); g = TIFFGetG(pixel_value); b = TIFFGetB(pixel_value); if ((a > 0) && (a < 255) && (alpha_premult)) { r = (r * 255) / a; g = (g * 255) / a; b = (b * 255) / a; } k = x + i; if (img->rgba.orientation == ORIENTATION_BOTRIGHT) k = image_width - 1 - k; buffer_pixel = PIM(k, image_height - 1 - (y + j)); *buffer_pixel = (a << 24) | (r << 16) | (g << 8) | b; } } break; case ORIENTATION_LEFTTOP: case ORIENTATION_RIGHTTOP: for (i = 0; i < h; i++) { pixel = rast - i * image_height; for (j = 0; j < w; j++) { pixel_value = *pixel++; a = TIFFGetA(pixel_value); r = TIFFGetR(pixel_value); g = TIFFGetG(pixel_value); b = TIFFGetB(pixel_value); if ((a > 0) && (a < 255) && (alpha_premult)) { r = (r * 255) / a; g = (g * 255) / a; b = (b * 255) / a; } k = y - i; if (img->rgba.orientation == ORIENTATION_LEFTTOP) k = image_width - 1 - k; buffer_pixel = PIM(k, x + j); *buffer_pixel = (a << 24) | (r << 16) | (g << 8) | b; } } break; case ORIENTATION_RIGHTBOT: case ORIENTATION_LEFTBOT: for (i = 0; i < h; i++) { pixel = rast + i * image_height; for (j = 0; j < w; j++) { pixel_value = *pixel++; a = TIFFGetA(pixel_value); r = TIFFGetR(pixel_value); g = TIFFGetG(pixel_value); b = TIFFGetB(pixel_value); if ((a > 0) && (a < 255) && (alpha_premult)) { r = (r * 255) / a; g = (g * 255) / a; b = (b * 255) / a; } k = y + i; if (img->rgba.orientation == ORIENTATION_RIGHTBOT) k = image_width - 1 - k; buffer_pixel = PIM(k, image_height - 1 - (x + j)); *buffer_pixel = (a << 24) | (r << 16) | (g << 8) | b; } } break; } if (img->progress) { char per; switch (img->rgba.orientation) { default: case ORIENTATION_TOPLEFT: if (w >= image_width) { uint32 real_y = (image_height - 1) - y; per = (char)(((real_y + h - 1) * 100) / image_height); if (((per - img->pper) >= img->progress_granularity) || (real_y + h) >= image_height) { img->progress(img->image, per, 0, img->py, w, (real_y + h) - img->py); img->py = real_y + h; img->pper = per; } } else { /* for tile based images, we just progress each tile because */ /* of laziness. Couldn't think of a good way to do this */ y = image_height - 1 - y; goto progress_a; } break; case ORIENTATION_TOPRIGHT: y = image_height - 1 - y; goto progress_a; case ORIENTATION_BOTRIGHT: y = image_height - y - h; goto progress_a; case ORIENTATION_BOTLEFT: y = image_height - y - h; goto progress_a; progress_a: per = (char)((w * h * 100) / img->num_pixels); img->pper += per; img->progress(img->image, img->pper, x, y, w, h); break; case ORIENTATION_LEFTTOP: y = image_width - 1 - y; goto progress_b; case ORIENTATION_RIGHTTOP: y = y + 1 - h; goto progress_b; case ORIENTATION_RIGHTBOT: y = image_width - y - h; goto progress_b; case ORIENTATION_LEFTBOT: goto progress_b; progress_b: per = (char)((w * h * 100) / img->num_pixels); img->pper += per; img->progress(img->image, img->pper, y, x, h, w); break; } } } char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { TIFF *tif = NULL; FILE *file; int fd, ok; uint16 magic_number; TIFFRGBAImage_Extra rgba_image; uint32 *rast = NULL; uint32 num_pixels; char txt[1024]; ok = 0; if (im->data) return 0; file = fopen(im->real_file, "rb"); if (!file) return 0; fread(&magic_number, sizeof(uint16), 1, file); /* Apparently rewind(f) isn't sufficient */ fseek(file, (long)0, SEEK_SET); if ((magic_number != TIFF_BIGENDIAN) /* Checks if actually tiff file */ && (magic_number != TIFF_LITTLEENDIAN)) { fclose(file); return 0; } fd = fileno(file); fd = dup(fd); lseek(fd, (long)0, SEEK_SET); fclose(file); tif = TIFFFdOpen(fd, im->real_file, "r"); if (!tif) return 0; strcpy(txt, "Cannot be processed by libtiff"); if (!TIFFRGBAImageOK(tif, txt)) goto quit1; strcpy(txt, "Cannot begin reading tiff"); if (!TIFFRGBAImageBegin((TIFFRGBAImage *) & rgba_image, tif, 1, txt)) goto quit1; rgba_image.image = im; switch (rgba_image.rgba.orientation) { default: case ORIENTATION_TOPLEFT: case ORIENTATION_TOPRIGHT: case ORIENTATION_BOTRIGHT: case ORIENTATION_BOTLEFT: im->w = rgba_image.rgba.width; im->h = rgba_image.rgba.height; break; case ORIENTATION_LEFTTOP: case ORIENTATION_RIGHTTOP: case ORIENTATION_RIGHTBOT: case ORIENTATION_LEFTBOT: im->w = rgba_image.rgba.height; im->h = rgba_image.rgba.width; break; } if (!IMAGE_DIMENSIONS_OK(im->w, im->h)) goto quit2; rgba_image.num_pixels = num_pixels = im->w * im->h; if (rgba_image.rgba.alpha != EXTRASAMPLE_UNSPECIFIED) SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); if (!im->format) im->format = strdup("tiff"); if ((im->loader) || (immediate_load) || (progress)) { rgba_image.progress = progress; rgba_image.pper = rgba_image.py = 0; rgba_image.progress_granularity = progress_granularity; rast = (uint32 *) _TIFFmalloc(sizeof(uint32) * num_pixels); im->data = (DATA32 *) malloc(sizeof(DATA32) * num_pixels); if ((!rast) || (!im->data)) /* Error checking */ { fprintf(stderr, "imlib2-tiffloader: Out of memory\n"); if (rast) _TIFFfree(rast); if (im->data) { free(im->data); im->data = NULL; } goto quit2; } if (!rgba_image.rgba.put.any) { fprintf(stderr, "imlib2-tiffloader: No put function"); _TIFFfree(rast); free(im->data); im->data = NULL; goto quit2; } if (rgba_image.rgba.isContig) { rgba_image.put_contig = rgba_image.rgba.put.contig; rgba_image.rgba.put.contig = put_contig_and_raster; } else { rgba_image.put_separate = rgba_image.rgba.put.separate; rgba_image.rgba.put.separate = put_separate_and_raster; } if (!TIFFRGBAImageGet((TIFFRGBAImage *) & rgba_image, rast, rgba_image.rgba.width, rgba_image.rgba.height)) { _TIFFfree(rast); free(im->data); im->data = NULL; goto quit2; } _TIFFfree(rast); } ok = 1; quit2: TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image); quit1: TIFFClose(tif); return ok; } /* this seems to work, except the magic number isn't written. I'm guessing */ /* this is a problem in libtiff */ char save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity) { TIFF *tif = NULL; uint8 *buf = NULL; DATA32 pixel, *data = im->data; double alpha_factor; int x, y; uint8 r, g, b, a = 0; int has_alpha = IMAGE_HAS_ALPHA(im); int i = 0, pl = 0; char pper = 0; /* By default uses patent-free use COMPRESSION_DEFLATE, * another lossless compression technique */ ImlibImageTag *tag; int compression_type = COMPRESSION_DEFLATE; if (!im->data) return 0; tif = TIFFOpen(im->real_file, "w"); if (!tif) return 0; /* None of the TIFFSetFields are checked for errors, but since they */ /* shouldn't fail, this shouldn't be a problem */ TIFFSetField(tif, TIFFTAG_IMAGELENGTH, im->h); TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, im->w); TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_RGB); TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG); TIFFSetField(tif, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT); TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE); /* look for tags attached to image to get extra parameters like quality */ /* settings etc. - this is the "api" to hint for extra information for */ /* saver modules */ /* compression */ tag = __imlib_GetTag(im, "compression_type"); if (tag) { compression_type = tag->val; switch (compression_type) { case COMPRESSION_NONE: break; case COMPRESSION_CCITTRLE: break; case COMPRESSION_CCITTFAX3: break; case COMPRESSION_CCITTFAX4: break; case COMPRESSION_LZW: break; case COMPRESSION_OJPEG: break; case COMPRESSION_JPEG: break; case COMPRESSION_NEXT: break; case COMPRESSION_CCITTRLEW: break; case COMPRESSION_PACKBITS: break; case COMPRESSION_THUNDERSCAN: break; case COMPRESSION_IT8CTPAD: break; case COMPRESSION_IT8LW: break; case COMPRESSION_IT8MP: break; case COMPRESSION_IT8BL: break; case COMPRESSION_PIXARFILM: break; case COMPRESSION_PIXARLOG: break; case COMPRESSION_DEFLATE: break; case COMPRESSION_ADOBE_DEFLATE: break; case COMPRESSION_DCS: break; case COMPRESSION_JBIG: break; case COMPRESSION_SGILOG: break; case COMPRESSION_SGILOG24: break; default: compression_type = COMPRESSION_DEFLATE; } } TIFFSetField(tif, TIFFTAG_COMPRESSION, compression_type); if (has_alpha) { uint16 extras[] = { EXTRASAMPLE_ASSOCALPHA }; TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 4); TIFFSetField(tif, TIFFTAG_EXTRASAMPLES, 1, extras); } else { TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 3); } TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8); TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, TIFFDefaultStripSize(tif, 0)); buf = (uint8 *) _TIFFmalloc(TIFFScanlineSize(tif)); if (!buf) { TIFFClose(tif); return 0; } for (y = 0; y < im->h; y++) { i = 0; for (x = 0; x < im->w; x++) { pixel = data[(y * im->w) + x]; r = (pixel >> 16) & 0xff; g = (pixel >> 8) & 0xff; b = pixel & 0xff; if (has_alpha) { /* TIFF makes you pre-mutiply the rgb components by alpha */ a = (pixel >> 24) & 0xff; alpha_factor = ((double)a / 255.0); r *= alpha_factor; g *= alpha_factor; b *= alpha_factor; } /* This might be endian dependent */ buf[i++] = r; buf[i++] = g; buf[i++] = b; if (has_alpha) buf[i++] = a; } if (!TIFFWriteScanline(tif, buf, y, 0)) { _TIFFfree(buf); TIFFClose(tif); return 0; } if (progress) { char per; int l; per = (char)((100 * y) / im->h); if ((per - pper) >= progress_granularity) { l = y - pl; (*progress) (im, per, 0, (y - l), im->w, l); pper = per; pl = y; } } } _TIFFfree(buf); TIFFClose(tif); return 1; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "tiff", "tif" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/Makefile.in0000664000175000017500000012666612255306302015577 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/modules/loaders DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkgdir)" LTLIBRARIES = $(pkg_LTLIBRARIES) argb_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_argb_la_OBJECTS = argb_la-loader_argb.lo argb_la_OBJECTS = $(am_argb_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = argb_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(argb_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(argb_la_LDFLAGS) $(LDFLAGS) -o $@ bmp_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_bmp_la_OBJECTS = bmp_la-loader_bmp.lo bmp_la_OBJECTS = $(am_bmp_la_OBJECTS) bmp_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(bmp_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(bmp_la_LDFLAGS) $(LDFLAGS) -o $@ bz2_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_bz2_la_OBJECTS = bz2_la-loader_bz2.lo bz2_la_OBJECTS = $(am_bz2_la_OBJECTS) bz2_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(bz2_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(bz2_la_LDFLAGS) $(LDFLAGS) -o $@ @BUILD_BZ2_LOADER_TRUE@am_bz2_la_rpath = -rpath $(pkgdir) gif_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_gif_la_OBJECTS = gif_la-loader_gif.lo gif_la_OBJECTS = $(am_gif_la_OBJECTS) gif_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(gif_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(gif_la_LDFLAGS) $(LDFLAGS) -o $@ @BUILD_GIF_LOADER_TRUE@am_gif_la_rpath = -rpath $(pkgdir) id3_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_id3_la_OBJECTS = id3_la-loader_id3.lo id3_la_OBJECTS = $(am_id3_la_OBJECTS) id3_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(id3_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(id3_la_LDFLAGS) $(LDFLAGS) -o $@ @BUILD_ID3_LOADER_TRUE@am_id3_la_rpath = -rpath $(pkgdir) jpeg_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_jpeg_la_OBJECTS = jpeg_la-loader_jpeg.lo jpeg_la_OBJECTS = $(am_jpeg_la_OBJECTS) jpeg_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(jpeg_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(jpeg_la_LDFLAGS) $(LDFLAGS) -o $@ @BUILD_JPEG_LOADER_TRUE@am_jpeg_la_rpath = -rpath $(pkgdir) lbm_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_lbm_la_OBJECTS = lbm_la-loader_lbm.lo lbm_la_OBJECTS = $(am_lbm_la_OBJECTS) lbm_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(lbm_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(lbm_la_LDFLAGS) $(LDFLAGS) -o $@ png_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_png_la_OBJECTS = png_la-loader_png.lo png_la_OBJECTS = $(am_png_la_OBJECTS) png_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(png_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(png_la_LDFLAGS) $(LDFLAGS) -o $@ @BUILD_PNG_LOADER_TRUE@am_png_la_rpath = -rpath $(pkgdir) pnm_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_pnm_la_OBJECTS = pnm_la-loader_pnm.lo pnm_la_OBJECTS = $(am_pnm_la_OBJECTS) pnm_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(pnm_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(pnm_la_LDFLAGS) $(LDFLAGS) -o $@ tga_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_tga_la_OBJECTS = tga_la-loader_tga.lo tga_la_OBJECTS = $(am_tga_la_OBJECTS) tga_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(tga_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(tga_la_LDFLAGS) $(LDFLAGS) -o $@ tiff_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_tiff_la_OBJECTS = tiff_la-loader_tiff.lo tiff_la_OBJECTS = $(am_tiff_la_OBJECTS) tiff_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(tiff_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(tiff_la_LDFLAGS) $(LDFLAGS) -o $@ @BUILD_TIFF_LOADER_TRUE@am_tiff_la_rpath = -rpath $(pkgdir) xpm_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_xpm_la_OBJECTS = xpm_la-loader_xpm.lo xpm_la_OBJECTS = $(am_xpm_la_OBJECTS) xpm_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(xpm_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(xpm_la_LDFLAGS) $(LDFLAGS) -o $@ zlib_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_zlib_la_OBJECTS = zlib_la-loader_zlib.lo zlib_la_OBJECTS = $(am_zlib_la_OBJECTS) zlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(zlib_la_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(zlib_la_LDFLAGS) $(LDFLAGS) -o $@ @BUILD_ZLIB_LOADER_TRUE@am_zlib_la_rpath = -rpath $(pkgdir) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(argb_la_SOURCES) $(bmp_la_SOURCES) $(bz2_la_SOURCES) \ $(gif_la_SOURCES) $(id3_la_SOURCES) $(jpeg_la_SOURCES) \ $(lbm_la_SOURCES) $(png_la_SOURCES) $(pnm_la_SOURCES) \ $(tga_la_SOURCES) $(tiff_la_SOURCES) $(xpm_la_SOURCES) \ $(zlib_la_SOURCES) DIST_SOURCES = $(argb_la_SOURCES) $(bmp_la_SOURCES) $(bz2_la_SOURCES) \ $(gif_la_SOURCES) $(id3_la_SOURCES) $(jpeg_la_SOURCES) \ $(lbm_la_SOURCES) $(png_la_SOURCES) $(pnm_la_SOURCES) \ $(tga_la_SOURCES) $(tiff_la_SOURCES) $(xpm_la_SOURCES) \ $(zlib_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = Makefile.in AM_CFLAGS = $(CWARNFLAGS) AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/lib pkgdir = $(libdir)/imlib2/loaders @BUILD_JPEG_LOADER_TRUE@JPEG_L = jpeg.la @BUILD_PNG_LOADER_TRUE@PNG_L = png.la @BUILD_TIFF_LOADER_TRUE@TIFF_L = tiff.la @BUILD_GIF_LOADER_TRUE@GIF_L = gif.la @BUILD_ZLIB_LOADER_TRUE@ZLIB_L = zlib.la @BUILD_BZ2_LOADER_TRUE@BZ2_L = bz2.la @BUILD_ID3_LOADER_TRUE@ID3_L = id3.la pkg_LTLIBRARIES = \ $(JPEG_L) \ $(PNG_L) \ $(TIFF_L) \ $(GIF_L) \ $(ZLIB_L) \ $(BZ2_L) \ $(ID3_L) \ pnm.la \ argb.la \ bmp.la \ xpm.la \ tga.la \ lbm.la EXTRA_DIST = loader_common.h jpeg_la_SOURCES = loader_jpeg.c jpeg_la_LDFLAGS = -module -avoid-version jpeg_la_LIBADD = @JPEGLIBS@ $(top_builddir)/src/lib/libImlib2.la jpeg_la_LIBTOOLFLAGS = --tag=disable-static png_la_SOURCES = loader_png.c png_la_CPPFLAGS = @PNG_CFLAGS@ $(AM_CPPFLAGS) png_la_LDFLAGS = -module -avoid-version png_la_LIBADD = @PNG_LIBS@ $(top_builddir)/src/lib/libImlib2.la png_la_LIBTOOLFLAGS = --tag=disable-static tiff_la_SOURCES = loader_tiff.c tiff_la_LDFLAGS = -module -avoid-version tiff_la_LIBADD = @TIFFLIBS@ $(top_builddir)/src/lib/libImlib2.la tiff_la_LIBTOOLFLAGS = --tag=disable-static gif_la_SOURCES = loader_gif.c gif_la_LDFLAGS = -module -avoid-version gif_la_LIBADD = @GIFLIBS@ $(top_builddir)/src/lib/libImlib2.la gif_la_LIBTOOLFLAGS = --tag=disable-static zlib_la_SOURCES = loader_zlib.c zlib_la_LDFLAGS = -module -avoid-version zlib_la_LIBADD = @ZLIBLIBS@ $(top_builddir)/src/lib/libImlib2.la zlib_la_LIBTOOLFLAGS = --tag=disable-static bz2_la_SOURCES = loader_bz2.c bz2_la_LDFLAGS = -module -avoid-version bz2_la_LIBADD = @BZ2LIBS@ $(top_builddir)/src/lib/libImlib2.la bz2_la_LIBTOOLFLAGS = --tag=disable-static id3_la_SOURCES = loader_id3.c id3_la_LDFLAGS = -module -avoid-version id3_la_LIBADD = @ID3LIBS@ $(top_builddir)/src/lib/libImlib2.la id3_la_LIBTOOLFLAGS = --tag=disable-static pnm_la_SOURCES = loader_pnm.c pnm_la_LDFLAGS = -module -avoid-version pnm_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la pnm_la_LIBTOOLFLAGS = --tag=disable-static argb_la_SOURCES = loader_argb.c argb_la_LDFLAGS = -module -avoid-version argb_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la argb_la_LIBTOOLFLAGS = --tag=disable-static bmp_la_SOURCES = loader_bmp.c bmp_la_LDFLAGS = -module -avoid-version bmp_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la bmp_la_LIBTOOLFLAGS = --tag=disable-static xpm_la_SOURCES = loader_xpm.c xpm_la_LDFLAGS = -module -avoid-version xpm_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la xpm_la_LIBTOOLFLAGS = --tag=disable-static tga_la_SOURCES = loader_tga.c tga_la_LDFLAGS = -module -avoid-version tga_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la tga_la_LIBTOOLFLAGS = --tag=disable-static lbm_la_SOURCES = loader_lbm.c lbm_la_LDFLAGS = -module -avoid-version lbm_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la lbm_la_LIBTOOLFLAGS = --tag=disable-static all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/modules/loaders/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ } uninstall-pkgLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ done clean-pkgLTLIBRARIES: -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) @list='$(pkg_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } argb.la: $(argb_la_OBJECTS) $(argb_la_DEPENDENCIES) $(EXTRA_argb_la_DEPENDENCIES) $(AM_V_CCLD)$(argb_la_LINK) -rpath $(pkgdir) $(argb_la_OBJECTS) $(argb_la_LIBADD) $(LIBS) bmp.la: $(bmp_la_OBJECTS) $(bmp_la_DEPENDENCIES) $(EXTRA_bmp_la_DEPENDENCIES) $(AM_V_CCLD)$(bmp_la_LINK) -rpath $(pkgdir) $(bmp_la_OBJECTS) $(bmp_la_LIBADD) $(LIBS) bz2.la: $(bz2_la_OBJECTS) $(bz2_la_DEPENDENCIES) $(EXTRA_bz2_la_DEPENDENCIES) $(AM_V_CCLD)$(bz2_la_LINK) $(am_bz2_la_rpath) $(bz2_la_OBJECTS) $(bz2_la_LIBADD) $(LIBS) gif.la: $(gif_la_OBJECTS) $(gif_la_DEPENDENCIES) $(EXTRA_gif_la_DEPENDENCIES) $(AM_V_CCLD)$(gif_la_LINK) $(am_gif_la_rpath) $(gif_la_OBJECTS) $(gif_la_LIBADD) $(LIBS) id3.la: $(id3_la_OBJECTS) $(id3_la_DEPENDENCIES) $(EXTRA_id3_la_DEPENDENCIES) $(AM_V_CCLD)$(id3_la_LINK) $(am_id3_la_rpath) $(id3_la_OBJECTS) $(id3_la_LIBADD) $(LIBS) jpeg.la: $(jpeg_la_OBJECTS) $(jpeg_la_DEPENDENCIES) $(EXTRA_jpeg_la_DEPENDENCIES) $(AM_V_CCLD)$(jpeg_la_LINK) $(am_jpeg_la_rpath) $(jpeg_la_OBJECTS) $(jpeg_la_LIBADD) $(LIBS) lbm.la: $(lbm_la_OBJECTS) $(lbm_la_DEPENDENCIES) $(EXTRA_lbm_la_DEPENDENCIES) $(AM_V_CCLD)$(lbm_la_LINK) -rpath $(pkgdir) $(lbm_la_OBJECTS) $(lbm_la_LIBADD) $(LIBS) png.la: $(png_la_OBJECTS) $(png_la_DEPENDENCIES) $(EXTRA_png_la_DEPENDENCIES) $(AM_V_CCLD)$(png_la_LINK) $(am_png_la_rpath) $(png_la_OBJECTS) $(png_la_LIBADD) $(LIBS) pnm.la: $(pnm_la_OBJECTS) $(pnm_la_DEPENDENCIES) $(EXTRA_pnm_la_DEPENDENCIES) $(AM_V_CCLD)$(pnm_la_LINK) -rpath $(pkgdir) $(pnm_la_OBJECTS) $(pnm_la_LIBADD) $(LIBS) tga.la: $(tga_la_OBJECTS) $(tga_la_DEPENDENCIES) $(EXTRA_tga_la_DEPENDENCIES) $(AM_V_CCLD)$(tga_la_LINK) -rpath $(pkgdir) $(tga_la_OBJECTS) $(tga_la_LIBADD) $(LIBS) tiff.la: $(tiff_la_OBJECTS) $(tiff_la_DEPENDENCIES) $(EXTRA_tiff_la_DEPENDENCIES) $(AM_V_CCLD)$(tiff_la_LINK) $(am_tiff_la_rpath) $(tiff_la_OBJECTS) $(tiff_la_LIBADD) $(LIBS) xpm.la: $(xpm_la_OBJECTS) $(xpm_la_DEPENDENCIES) $(EXTRA_xpm_la_DEPENDENCIES) $(AM_V_CCLD)$(xpm_la_LINK) -rpath $(pkgdir) $(xpm_la_OBJECTS) $(xpm_la_LIBADD) $(LIBS) zlib.la: $(zlib_la_OBJECTS) $(zlib_la_DEPENDENCIES) $(EXTRA_zlib_la_DEPENDENCIES) $(AM_V_CCLD)$(zlib_la_LINK) $(am_zlib_la_rpath) $(zlib_la_OBJECTS) $(zlib_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/argb_la-loader_argb.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bmp_la-loader_bmp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bz2_la-loader_bz2.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gif_la-loader_gif.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/id3_la-loader_id3.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jpeg_la-loader_jpeg.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lbm_la-loader_lbm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/png_la-loader_png.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pnm_la-loader_pnm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tga_la-loader_tga.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tiff_la-loader_tiff.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpm_la-loader_xpm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zlib_la-loader_zlib.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< argb_la-loader_argb.lo: loader_argb.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(argb_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT argb_la-loader_argb.lo -MD -MP -MF $(DEPDIR)/argb_la-loader_argb.Tpo -c -o argb_la-loader_argb.lo `test -f 'loader_argb.c' || echo '$(srcdir)/'`loader_argb.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/argb_la-loader_argb.Tpo $(DEPDIR)/argb_la-loader_argb.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_argb.c' object='argb_la-loader_argb.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(argb_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o argb_la-loader_argb.lo `test -f 'loader_argb.c' || echo '$(srcdir)/'`loader_argb.c bmp_la-loader_bmp.lo: loader_bmp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(bmp_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bmp_la-loader_bmp.lo -MD -MP -MF $(DEPDIR)/bmp_la-loader_bmp.Tpo -c -o bmp_la-loader_bmp.lo `test -f 'loader_bmp.c' || echo '$(srcdir)/'`loader_bmp.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bmp_la-loader_bmp.Tpo $(DEPDIR)/bmp_la-loader_bmp.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_bmp.c' object='bmp_la-loader_bmp.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(bmp_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bmp_la-loader_bmp.lo `test -f 'loader_bmp.c' || echo '$(srcdir)/'`loader_bmp.c bz2_la-loader_bz2.lo: loader_bz2.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(bz2_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bz2_la-loader_bz2.lo -MD -MP -MF $(DEPDIR)/bz2_la-loader_bz2.Tpo -c -o bz2_la-loader_bz2.lo `test -f 'loader_bz2.c' || echo '$(srcdir)/'`loader_bz2.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bz2_la-loader_bz2.Tpo $(DEPDIR)/bz2_la-loader_bz2.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_bz2.c' object='bz2_la-loader_bz2.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(bz2_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bz2_la-loader_bz2.lo `test -f 'loader_bz2.c' || echo '$(srcdir)/'`loader_bz2.c gif_la-loader_gif.lo: loader_gif.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(gif_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gif_la-loader_gif.lo -MD -MP -MF $(DEPDIR)/gif_la-loader_gif.Tpo -c -o gif_la-loader_gif.lo `test -f 'loader_gif.c' || echo '$(srcdir)/'`loader_gif.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/gif_la-loader_gif.Tpo $(DEPDIR)/gif_la-loader_gif.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_gif.c' object='gif_la-loader_gif.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(gif_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gif_la-loader_gif.lo `test -f 'loader_gif.c' || echo '$(srcdir)/'`loader_gif.c id3_la-loader_id3.lo: loader_id3.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(id3_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT id3_la-loader_id3.lo -MD -MP -MF $(DEPDIR)/id3_la-loader_id3.Tpo -c -o id3_la-loader_id3.lo `test -f 'loader_id3.c' || echo '$(srcdir)/'`loader_id3.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/id3_la-loader_id3.Tpo $(DEPDIR)/id3_la-loader_id3.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_id3.c' object='id3_la-loader_id3.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(id3_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o id3_la-loader_id3.lo `test -f 'loader_id3.c' || echo '$(srcdir)/'`loader_id3.c jpeg_la-loader_jpeg.lo: loader_jpeg.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(jpeg_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT jpeg_la-loader_jpeg.lo -MD -MP -MF $(DEPDIR)/jpeg_la-loader_jpeg.Tpo -c -o jpeg_la-loader_jpeg.lo `test -f 'loader_jpeg.c' || echo '$(srcdir)/'`loader_jpeg.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/jpeg_la-loader_jpeg.Tpo $(DEPDIR)/jpeg_la-loader_jpeg.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_jpeg.c' object='jpeg_la-loader_jpeg.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(jpeg_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o jpeg_la-loader_jpeg.lo `test -f 'loader_jpeg.c' || echo '$(srcdir)/'`loader_jpeg.c lbm_la-loader_lbm.lo: loader_lbm.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(lbm_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lbm_la-loader_lbm.lo -MD -MP -MF $(DEPDIR)/lbm_la-loader_lbm.Tpo -c -o lbm_la-loader_lbm.lo `test -f 'loader_lbm.c' || echo '$(srcdir)/'`loader_lbm.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lbm_la-loader_lbm.Tpo $(DEPDIR)/lbm_la-loader_lbm.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_lbm.c' object='lbm_la-loader_lbm.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(lbm_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lbm_la-loader_lbm.lo `test -f 'loader_lbm.c' || echo '$(srcdir)/'`loader_lbm.c png_la-loader_png.lo: loader_png.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(png_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(png_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT png_la-loader_png.lo -MD -MP -MF $(DEPDIR)/png_la-loader_png.Tpo -c -o png_la-loader_png.lo `test -f 'loader_png.c' || echo '$(srcdir)/'`loader_png.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/png_la-loader_png.Tpo $(DEPDIR)/png_la-loader_png.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_png.c' object='png_la-loader_png.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(png_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(png_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o png_la-loader_png.lo `test -f 'loader_png.c' || echo '$(srcdir)/'`loader_png.c pnm_la-loader_pnm.lo: loader_pnm.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(pnm_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pnm_la-loader_pnm.lo -MD -MP -MF $(DEPDIR)/pnm_la-loader_pnm.Tpo -c -o pnm_la-loader_pnm.lo `test -f 'loader_pnm.c' || echo '$(srcdir)/'`loader_pnm.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pnm_la-loader_pnm.Tpo $(DEPDIR)/pnm_la-loader_pnm.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_pnm.c' object='pnm_la-loader_pnm.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(pnm_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pnm_la-loader_pnm.lo `test -f 'loader_pnm.c' || echo '$(srcdir)/'`loader_pnm.c tga_la-loader_tga.lo: loader_tga.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(tga_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tga_la-loader_tga.lo -MD -MP -MF $(DEPDIR)/tga_la-loader_tga.Tpo -c -o tga_la-loader_tga.lo `test -f 'loader_tga.c' || echo '$(srcdir)/'`loader_tga.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/tga_la-loader_tga.Tpo $(DEPDIR)/tga_la-loader_tga.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_tga.c' object='tga_la-loader_tga.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(tga_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tga_la-loader_tga.lo `test -f 'loader_tga.c' || echo '$(srcdir)/'`loader_tga.c tiff_la-loader_tiff.lo: loader_tiff.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(tiff_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tiff_la-loader_tiff.lo -MD -MP -MF $(DEPDIR)/tiff_la-loader_tiff.Tpo -c -o tiff_la-loader_tiff.lo `test -f 'loader_tiff.c' || echo '$(srcdir)/'`loader_tiff.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/tiff_la-loader_tiff.Tpo $(DEPDIR)/tiff_la-loader_tiff.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_tiff.c' object='tiff_la-loader_tiff.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(tiff_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tiff_la-loader_tiff.lo `test -f 'loader_tiff.c' || echo '$(srcdir)/'`loader_tiff.c xpm_la-loader_xpm.lo: loader_xpm.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(xpm_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xpm_la-loader_xpm.lo -MD -MP -MF $(DEPDIR)/xpm_la-loader_xpm.Tpo -c -o xpm_la-loader_xpm.lo `test -f 'loader_xpm.c' || echo '$(srcdir)/'`loader_xpm.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xpm_la-loader_xpm.Tpo $(DEPDIR)/xpm_la-loader_xpm.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_xpm.c' object='xpm_la-loader_xpm.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(xpm_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xpm_la-loader_xpm.lo `test -f 'loader_xpm.c' || echo '$(srcdir)/'`loader_xpm.c zlib_la-loader_zlib.lo: loader_zlib.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(zlib_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zlib_la-loader_zlib.lo -MD -MP -MF $(DEPDIR)/zlib_la-loader_zlib.Tpo -c -o zlib_la-loader_zlib.lo `test -f 'loader_zlib.c' || echo '$(srcdir)/'`loader_zlib.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/zlib_la-loader_zlib.Tpo $(DEPDIR)/zlib_la-loader_zlib.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loader_zlib.c' object='zlib_la-loader_zlib.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(zlib_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zlib_la-loader_zlib.lo `test -f 'loader_zlib.c' || echo '$(srcdir)/'`loader_zlib.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(pkgdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-pkgLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-pkgLTLIBRARIES install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkgLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkgLTLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-pkgLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/src/modules/loaders/loader_png.c0000664000175000017500000003305112255265152016000 00000000000000#include "loader_common.h" #include /* this is a quick sample png loader module... nice and small isn't it? */ /* PNG stuff */ #define PNG_BYTES_TO_CHECK 4 static void comment_free(ImlibImage * im, void *data) { free(data); } char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { png_uint_32 w32, h32; int w, h; char hasa = 0; FILE *f; png_structp png_ptr = NULL; png_infop info_ptr = NULL; int bit_depth, color_type, interlace_type; /* if immediate_load is 1, then don't delay image loading as below, or */ /* already data in this image - don't load it again */ if (im->data) return 0; f = fopen(im->real_file, "rb"); if (!f) return 0; /* read header */ if (!im->data) { unsigned char buf[PNG_BYTES_TO_CHECK]; /* if we haven't read the header before, set the header data */ fread(buf, 1, PNG_BYTES_TO_CHECK, f); if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK)) { fclose(f); return 0; } rewind(f); png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (!png_ptr) { fclose(f); return 0; } info_ptr = png_create_info_struct(png_ptr); if (!info_ptr) { png_destroy_read_struct(&png_ptr, NULL, NULL); fclose(f); return 0; } if (setjmp(png_jmpbuf(png_ptr))) { png_destroy_read_struct(&png_ptr, &info_ptr, NULL); fclose(f); return 0; } png_init_io(png_ptr, f); png_read_info(png_ptr, info_ptr); png_get_IHDR(png_ptr, info_ptr, (png_uint_32 *) (&w32), (png_uint_32 *) (&h32), &bit_depth, &color_type, &interlace_type, NULL, NULL); im->w = (int)w32; im->h = (int)h32; if (!IMAGE_DIMENSIONS_OK(w32, h32)) { png_read_end(png_ptr, info_ptr); png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); fclose(f); return 0; } if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) hasa = 1; if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) hasa = 1; if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA) hasa = 1; if (hasa) SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); /* set the format string member to the lower-case full extension */ /* name for the format - so example names would be: */ /* "png", "jpeg", "tiff", "ppm", "pgm", "pbm", "gif", "xpm" ... */ if (!im->loader) im->format = strdup("png"); } /* if its the second phase load OR its immediate load or a progress */ /* callback is set then load the data */ if ((im->loader) || (immediate_load) || (progress)) { unsigned char **lines; int i; w = im->w; h = im->h; /* Prep for transformations... ultimately we want ARGB */ /* expand palette -> RGB if necessary */ if (color_type == PNG_COLOR_TYPE_PALETTE) png_set_palette_to_rgb(png_ptr); /* expand gray (w/reduced bits) -> 8-bit RGB if necessary */ if ((color_type == PNG_COLOR_TYPE_GRAY) || (color_type == PNG_COLOR_TYPE_GRAY_ALPHA)) { png_set_gray_to_rgb(png_ptr); if (bit_depth < 8) png_set_expand_gray_1_2_4_to_8(png_ptr); } /* expand transparency entry -> alpha channel if present */ if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) png_set_tRNS_to_alpha(png_ptr); /* reduce 16bit color -> 8bit color if necessary */ if (bit_depth > 8) png_set_strip_16(png_ptr); /* pack all pixels to byte boundaries */ png_set_packing(png_ptr); /* note from raster: */ /* thanks to mustapha for helping debug this on PPC Linux remotely by */ /* sending across screenshots all the time and me figuring out from them */ /* what the hell was up with the colors */ /* now png loading should work on big-endian machines nicely */ #ifdef WORDS_BIGENDIAN png_set_swap_alpha(png_ptr); if (!hasa) png_set_filler(png_ptr, 0xff, PNG_FILLER_BEFORE); #else png_set_bgr(png_ptr); if (!hasa) png_set_filler(png_ptr, 0xff, PNG_FILLER_AFTER); #endif if (im->data) free(im->data); im->data = malloc(w * h * sizeof(DATA32)); if (!im->data) { png_read_end(png_ptr, info_ptr); png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); fclose(f); return 0; } lines = (unsigned char **)malloc(h * sizeof(unsigned char *)); if (!lines) { free(im->data); im->data = NULL; png_read_end(png_ptr, info_ptr); png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); fclose(f); return 0; } for (i = 0; i < h; i++) lines[i] = ((unsigned char *)(im->data)) + (i * w * sizeof(DATA32)); if (progress) { int y, count, prevy, pass, number_passes, per, nrows = 1; count = 0; number_passes = png_set_interlace_handling(png_ptr); for (pass = 0; pass < number_passes; pass++) { prevy = 0; per = 0; for (y = 0; y < h; y += nrows) { png_read_rows(png_ptr, &lines[y], NULL, nrows); per = (((pass * h) + y) * 100) / (h * number_passes); if ((per - count) >= progress_granularity) { count = per; if (!progress(im, per, 0, prevy, w, y - prevy + 1)) { free(lines); png_read_end(png_ptr, info_ptr); png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); fclose(f); return 2; } prevy = y + 1; } } if (!progress(im, per, 0, prevy, w, y - prevy + 1)) { free(lines); png_read_end(png_ptr, info_ptr); png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); fclose(f); return 2; } } } else png_read_image(png_ptr, lines); free(lines); png_read_end(png_ptr, info_ptr); } #ifdef PNG_TEXT_SUPPORTED { png_textp text; int num; int i; num = 0; png_get_text(png_ptr, info_ptr, &text, &num); for (i = 0; i < num; i++) { if (!strcmp(text[i].key, "Imlib2-Comment")) __imlib_AttachTag(im, "comment", 0, strdup(text[i].text), comment_free); } } #endif png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); fclose(f); return 1; } char save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity) { FILE *f; png_structp png_ptr; png_infop info_ptr; DATA32 *ptr; int x, y, j, interlace; png_bytep row_ptr, data = NULL; png_color_8 sig_bit; int pl = 0; char pper = 0; ImlibImageTag *tag; int quality = 75, compression = 3, num_passes = 1, pass; if (!im->data) return 0; f = fopen(im->real_file, "wb"); if (!f) return 0; png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (!png_ptr) { fclose(f); return 0; } info_ptr = png_create_info_struct(png_ptr); if (!info_ptr) { fclose(f); png_destroy_write_struct(&png_ptr, (png_infopp) NULL); return 0; } if (setjmp(png_jmpbuf(png_ptr))) { fclose(f); png_destroy_write_struct(&png_ptr, (png_infopp) & info_ptr); png_destroy_info_struct(png_ptr, (png_infopp) & info_ptr); return 0; } /* check whether we should use interlacing */ interlace = PNG_INTERLACE_NONE; if ((tag = __imlib_GetTag(im, "interlacing")) && tag->val) { #ifdef PNG_WRITE_INTERLACING_SUPPORTED interlace = PNG_INTERLACE_ADAM7; #endif } png_init_io(png_ptr, f); if (im->flags & F_HAS_ALPHA) { png_set_IHDR(png_ptr, info_ptr, im->w, im->h, 8, PNG_COLOR_TYPE_RGB_ALPHA, interlace, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); #ifdef WORDS_BIGENDIAN png_set_swap_alpha(png_ptr); #else png_set_bgr(png_ptr); #endif } else { png_set_IHDR(png_ptr, info_ptr, im->w, im->h, 8, PNG_COLOR_TYPE_RGB, interlace, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); data = malloc(im->w * 3 * sizeof(char)); } sig_bit.red = 8; sig_bit.green = 8; sig_bit.blue = 8; sig_bit.alpha = 8; png_set_sBIT(png_ptr, info_ptr, &sig_bit); /* quality */ tag = __imlib_GetTag(im, "quality"); if (tag) { quality = tag->val; if (quality < 1) quality = 1; if (quality > 99) quality = 99; } /* convert to compression */ quality = quality / 10; compression = 9 - quality; /* compression */ tag = __imlib_GetTag(im, "compression"); if (tag) compression = tag->val; if (compression < 0) compression = 0; if (compression > 9) compression = 9; tag = __imlib_GetTag(im, "comment"); if (tag) { #ifdef PNG_TEXT_SUPPORTED png_text text; text.key = (char *)"Imlib2-Comment"; text.text = tag->data; text.compression = PNG_TEXT_COMPRESSION_zTXt; png_set_text(png_ptr, info_ptr, &(text), 1); #endif } png_set_compression_level(png_ptr, compression); png_write_info(png_ptr, info_ptr); png_set_shift(png_ptr, &sig_bit); png_set_packing(png_ptr); #ifdef PNG_WRITE_INTERLACING_SUPPORTED num_passes = png_set_interlace_handling(png_ptr); #endif for (pass = 0; pass < num_passes; pass++) { ptr = im->data; for (y = 0; y < im->h; y++) { if (im->flags & F_HAS_ALPHA) row_ptr = (png_bytep) ptr; else { for (j = 0, x = 0; x < im->w; x++) { data[j++] = (ptr[x] >> 16) & 0xff; data[j++] = (ptr[x] >> 8) & 0xff; data[j++] = (ptr[x]) & 0xff; } row_ptr = (png_bytep) data; } png_write_rows(png_ptr, &row_ptr, 1); if (progress) { char per; int l; per = 100 * (pass + y / (float)im->h) / num_passes; if ((per - pper) >= progress_granularity) { l = y - pl; if (!progress(im, per, 0, (y - l), im->w, l)) { if (data) free(data); png_write_end(png_ptr, info_ptr); png_destroy_write_struct(&png_ptr, (png_infopp) & info_ptr); png_destroy_info_struct(png_ptr, (png_infopp) & info_ptr); fclose(f); return 2; } pper = per; pl = y; } } ptr += im->w; } } if (data) free(data); png_write_end(png_ptr, info_ptr); png_destroy_write_struct(&png_ptr, (png_infopp) & info_ptr); png_destroy_info_struct(png_ptr, (png_infopp) & info_ptr); fclose(f); return 1; } /* fills the ImlibLoader struct with a string array of format file */ /* extensions this loader can load. eg: */ /* loader->formats = { "jpeg", "jpg"}; */ /* giving permutations is a good idea. case sensitivity is irrelevant */ /* your loader CAN load more than one format if it likes - like: */ /* loader->formats = { "gif", "png", "jpeg", "jpg"} */ /* if it can load those formats. */ void formats(ImlibLoader * l) { static const char *const list_formats[] = { "png" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_pnm.c0000664000175000017500000005003612255265152016010 00000000000000#include "loader_common.h" #include static int do_progress(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char *pper, int *py, int y) { int rc = 0; int h = 0; char per; per = (char)((100 * y) / im->h); if (((per - *pper) >= progress_granularity) || (y == (im->h - 1))) { h = y - *py; /* fix off by one in case of the last line */ if (y == (im->h - 1)) h++; rc = !progress(im, per, 0, *py, im->w, h); *pper = per; *py = y; } return rc; } char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { int rc; char p = ' ', numbers = 3, count = 0; int w = 0, h = 0, v = 255, c = 0; char buf[256]; FILE *f = NULL; if (im->data) return 0; f = fopen(im->real_file, "rb"); if (!f) return 0; /* can't use fgets(), because there might be * binary data after the header and there * needn't be a newline before the data, so * no chance to distinguish between end of buffer * and a binary 0. */ /* read the header info */ rc = 0; /* Error */ c = fgetc(f); if (c != 'P') goto quit; p = fgetc(f); if (p == '1' || p == '4') numbers = 2; /* bitimages don't have max value */ if ((p < '1') || (p > '8')) goto quit; count = 0; while (count < numbers) { c = fgetc(f); if (c == EOF) goto quit; /* eat whitespace */ while (isspace(c)) c = fgetc(f); /* if comment, eat that */ if (c == '#') { do c = fgetc(f); while (c != '\n' && c != EOF); } /* no comment -> proceed */ else { int i = 0; /* read numbers */ while (c != EOF && !isspace(c) && (i < 255)) { buf[i++] = c; c = fgetc(f); } if (i) { buf[i] = 0; count++; switch (count) { /* width */ case 1: w = atoi(buf); break; /* height */ case 2: h = atoi(buf); break; /* max value, only for color and greyscale */ case 3: v = atoi(buf); break; } } } } if ((v < 0) || (v > 255)) goto quit; im->w = w; im->h = h; if (!IMAGE_DIMENSIONS_OK(w, h)) goto quit; if (!im->format) { if (p == '8') SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); im->format = strdup("pnm"); } rc = 1; /* Ok */ if (((!im->data) && (im->loader)) || (immediate_load) || (progress)) { DATA8 *data = NULL; /* for the binary versions */ DATA8 *ptr = NULL; int *idata = NULL; /* for the ASCII versions */ int *iptr; char buf2[256]; DATA32 *ptr2; int i, j, x, y, pl = 0; char pper = 0; /* must set the im->data member before callign progress function */ ptr2 = im->data = malloc(w * h * sizeof(DATA32)); if (!im->data) goto quit_error; /* start reading the data */ switch (p) { case '1': /* ASCII monochrome */ buf[0] = 0; i = 0; for (y = 0; y < h; y++) { x = 0; while (x < w) { if (!buf[i]) /* fill buffer */ { if (!fgets(buf, 255, f)) goto quit_error; i = 0; } while (buf[i] && isspace(buf[i])) i++; if (buf[i]) { if (buf[i] == '1') *ptr2 = 0xff000000; else if (buf[i] == '0') *ptr2 = 0xffffffff; else goto quit_error; ptr2++; i++; } } if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } break; case '2': /* ASCII greyscale */ idata = malloc(sizeof(int) * w); if (!idata) goto quit_error; buf[0] = 0; i = 0; j = 0; for (y = 0; y < h; y++) { iptr = idata; x = 0; while (x < w) { int k; /* check 4 chars ahead to see if we need to * fill the buffer */ for (k = 0; k < 4; k++) { if (!buf[i + k]) /* fill buffer */ { if (fseek(f, -k, SEEK_CUR) == -1 || !fgets(buf, 255, f)) goto quit_error; i = 0; break; } } while (buf[i] && isspace(buf[i])) i++; while (buf[i] && !isspace(buf[i])) buf2[j++] = buf[i++]; if (j) { buf2[j] = 0; *(iptr++) = atoi(buf2); j = 0; x++; } } iptr = idata; if (v == 255) { for (x = 0; x < w; x++) { *ptr2 = 0xff000000 | (iptr[0] << 16) | (iptr[0] << 8) | iptr[0]; ptr2++; iptr++; } } else { for (x = 0; x < w; x++) { *ptr2 = 0xff000000 | (((iptr[0] * 255) / v) << 16) | (((iptr[0] * 255) / v) << 8) | ((iptr[0] * 255) / v); ptr2++; iptr++; } } if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } break; case '3': /* ASCII RGB */ idata = malloc(3 * sizeof(int) * w); if (!idata) goto quit_error; buf[0] = 0; i = 0; j = 0; for (y = 0; y < h; y++) { int w3 = 3 * w; iptr = idata; x = 0; while (x < w3) { int k; /* check 4 chars ahead to see if we need to * fill the buffer */ for (k = 0; k < 4; k++) { if (!buf[i + k]) /* fill buffer */ { if (fseek(f, -k, SEEK_CUR) == -1 || !fgets(buf, 255, f)) goto quit_error; i = 0; break; } } while (buf[i] && isspace(buf[i])) i++; while (buf[i] && !isspace(buf[i])) buf2[j++] = buf[i++]; if (j) { buf2[j] = 0; *(iptr++) = atoi(buf2); j = 0; x++; } } iptr = idata; if (v == 255) { for (x = 0; x < w; x++) { *ptr2 = 0xff000000 | (iptr[0] << 16) | (iptr[1] << 8) | iptr[2]; ptr2++; iptr += 3; } } else { for (x = 0; x < w; x++) { *ptr2 = 0xff000000 | (((iptr[0] * 255) / v) << 16) | (((iptr[1] * 255) / v) << 8) | ((iptr[2] * 255) / v); ptr2++; iptr += 3; } } if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } break; case '4': /* binary 1bit monochrome */ data = malloc((w + 7) / 8 * sizeof(DATA8)); if (!data) goto quit_error; ptr2 = im->data; for (y = 0; y < h; y++) { if (!fread(data, (w + 7) / 8, 1, f)) goto quit_error; ptr = data; for (x = 0; x < w; x += 8) { j = (w - x >= 8) ? 8 : w - x; for (i = 0; i < j; i++) { if (ptr[0] & (0x80 >> i)) *ptr2 = 0xff000000; else *ptr2 = 0xffffffff; ptr2++; } ptr++; } if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } break; case '5': /* binary 8bit grayscale GGGGGGGG */ data = malloc(1 * sizeof(DATA8) * w); if (!data) goto quit_error; ptr2 = im->data; for (y = 0; y < h; y++) { if (!fread(data, w * 1, 1, f)) break; ptr = data; if (v == 255) { for (x = 0; x < w; x++) { *ptr2 = 0xff000000 | (ptr[0] << 16) | (ptr[0] << 8) | ptr[0]; ptr2++; ptr++; } } else { for (x = 0; x < w; x++) { *ptr2 = 0xff000000 | (((ptr[0] * 255) / v) << 16) | (((ptr[0] * 255) / v) << 8) | ((ptr[0] * 255) / v); ptr2++; ptr++; } } if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } break; case '6': /* 24bit binary RGBRGBRGB */ data = malloc(3 * sizeof(DATA8) * w); if (!data) goto quit_error; ptr2 = im->data; for (y = 0; y < h; y++) { if (!fread(data, w * 3, 1, f)) break; ptr = data; if (v == 255) { for (x = 0; x < w; x++) { *ptr2 = 0xff000000 | (ptr[0] << 16) | (ptr[1] << 8) | ptr[2]; ptr2++; ptr += 3; } } else { for (x = 0; x < w; x++) { *ptr2 = 0xff000000 | (((ptr[0] * 255) / v) << 16) | (((ptr[1] * 255) / v) << 8) | ((ptr[2] * 255) / v); ptr2++; ptr += 3; } } if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } break; case '7': /* XV's 8bit 332 format */ data = malloc(1 * sizeof(DATA8) * w); if (!data) goto quit_error; ptr2 = im->data; for (y = 0; y < h; y++) { if (!fread(data, w * 1, 1, f)) break; ptr = data; for (x = 0; x < w; x++) { int r, g, b; r = (*ptr >> 5) & 0x7; g = (*ptr >> 2) & 0x7; b = (*ptr) & 0x3; *ptr2 = 0xff000000 | (((r << 21) | (r << 18) | (r << 15)) & 0xff0000) | (((g << 13) | (g << 10) | (g << 7)) & 0xff00) | ((b << 6) | (b << 4) | (b << 2) | (b << 0)); ptr2++; ptr++; } if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } break; case '8': /* 24bit binary RGBARGBARGBA */ data = malloc(4 * sizeof(DATA8) * w); if (!data) goto quit_error; ptr2 = im->data; for (y = 0; y < h; y++) { if (!fread(data, w * 4, 1, f)) break; ptr = data; if (v == 255) { for (x = 0; x < w; x++) { *ptr2 = (ptr[3] << 24) | (ptr[0] << 16) | (ptr[1] << 8) | ptr[2]; ptr2++; ptr += 4; } } else { for (x = 0; x < w; x++) { *ptr2 = (((ptr[3] * 255) / v) << 24) | (((ptr[0] * 255) / v) << 16) | (((ptr[1] * 255) / v) << 8) | ((ptr[2] * 255) / v); ptr2++; ptr += 4; } } if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } break; default: quit_error: rc = 0; break; quit_progress: rc = 2; break; } if (idata) free(idata); if (data) free(data); } quit: fclose(f); return rc; } char save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity) { int rc; FILE *f; DATA8 *buf, *bptr; DATA32 *ptr; int x, y, pl = 0; char pper = 0; /* no image data? abort */ if (!im->data) return 0; f = fopen(im->real_file, "wb"); if (!f) return 0; rc = 0; /* Error */ /* if the image has a useful alpha channel */ if (im->flags & F_HAS_ALPHA) { /* allocate a small buffer to convert image data */ buf = malloc(im->w * 4 * sizeof(DATA8)); if (!buf) goto quit; ptr = im->data; fprintf(f, "P8\n" "# PNM File written by Imlib2\n" "%i %i\n" "255\n", im->w, im->h); for (y = 0; y < im->h; y++) { bptr = buf; for (x = 0; x < im->w; x++) { bptr[0] = ((*ptr) >> 16) & 0xff; bptr[1] = ((*ptr) >> 8) & 0xff; bptr[2] = ((*ptr)) & 0xff; bptr[3] = ((*ptr) >> 24) & 0xff; bptr += 4; ptr++; } fwrite(buf, im->w * 4, 1, f); if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } } else { /* allocate a small buffer to convert image data */ buf = malloc(im->w * 3 * sizeof(DATA8)); if (!buf) goto quit; ptr = im->data; fprintf(f, "P6\n" "# PNM File written by Imlib2\n" "%i %i\n" "255\n", im->w, im->h); for (y = 0; y < im->h; y++) { bptr = buf; for (x = 0; x < im->w; x++) { bptr[0] = ((*ptr) >> 16) & 0xff; bptr[1] = ((*ptr) >> 8) & 0xff; bptr[2] = ((*ptr)) & 0xff; bptr += 3; ptr++; } fwrite(buf, im->w * 3, 1, f); if (progress && do_progress(im, progress, progress_granularity, &pper, &pl, y)) goto quit_progress; } } rc = 1; /* Ok */ /* finish off */ free(buf); quit: fclose(f); return rc; quit_progress: rc = 2; goto quit; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "pnm", "ppm", "pgm", "pbm", "pam" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_lbm.c0000664000175000017500000004613012255265152015770 00000000000000/*------------------------------------------------------------------------------ * Reads regular Amiga IFF ILBM files. * * Supports IMLIB2_LBM_NOMASK environment variable. If this is set to "1", then * a transparency mask in an image will be ignored. On the Amiga a mask is often * applied only when loading a brush rather than a picture, but this loader has * no way to tell when the user wants this behaviour from the picture alone. * * Author: John Bickers * Since: 2004-08-21 * Version: 2004-08-28 *------------------------------------------------------------------------------*/ #include "loader_common.h" #define L2RLONG(a) ((((long)((a)[0]) & 0xff) << 24) + (((long)((a)[1]) & 0xff) << 16) + (((long)((a)[2]) & 0xff) << 8) + ((long)((a)[3]) & 0xff)) #define L2RWORD(a) ((((long)((a)[0]) & 0xff) << 8) + ((long)((a)[1]) & 0xff)) typedef struct CHUNK { long size; unsigned char *data; } CHUNK; typedef struct ILBM { CHUNK bmhd; CHUNK camg; CHUNK cmap; CHUNK ctbl; CHUNK sham; CHUNK body; int depth; int mask; int ham; int hbrite; int row; int offset; int count; int rle; } ILBM; /*------------------------------------------------------------------------------ * Frees memory allocated as part of an ILBM structure. *------------------------------------------------------------------------------*/ static void freeilbm(ILBM * ilbm) { if (ilbm->bmhd.data) free(ilbm->bmhd.data); if (ilbm->camg.data) free(ilbm->camg.data); if (ilbm->cmap.data) free(ilbm->cmap.data); if (ilbm->ctbl.data) free(ilbm->ctbl.data); if (ilbm->sham.data) free(ilbm->sham.data); if (ilbm->body.data) free(ilbm->body.data); memset(ilbm, 0, sizeof(*ilbm)); } /*------------------------------------------------------------------------------ * Reads the given chunks out of a file, returns 0 if the file had a problem. * * Format FORMsizeILBMtag.size....tag.size....tag.size.... *------------------------------------------------------------------------------*/ static int loadchunks(char *name, ILBM * ilbm, int full) { CHUNK *c; FILE *f; size_t s; long formsize, pos, z; int ok, seek; char buf[12]; ok = 0; f = fopen(name, "rb"); if (f) { s = fread(buf, 1, 12, f); if (s == 12 && !memcmp(buf, "FORM", 4) && !memcmp(buf + 8, "ILBM", 4)) { memset(ilbm, 0, sizeof(*ilbm)); formsize = L2RLONG(buf + 4); while (1) { pos = ftell(f); if (pos < 0 || pos >= formsize + 8) break; /* Error or FORM data is finished. */ seek = 1; s = fread(buf, 1, 8, f); if (s != 8) break; /* Error or short file. */ z = L2RLONG(buf + 4); if (z < 0) break; /* Corrupt file. */ c = NULL; if (!memcmp(buf, "BMHD", 4)) c = &(ilbm->bmhd); else if (full) { if (!memcmp(buf, "CAMG", 4)) c = &(ilbm->camg); else if (!memcmp(buf, "CMAP", 4)) c = &(ilbm->cmap); else if (!memcmp(buf, "CTBL", 4)) c = &(ilbm->ctbl); else if (!memcmp(buf, "SHAM", 4)) c = &(ilbm->sham); else if (!memcmp(buf, "BODY", 4)) c = &(ilbm->body); } if (c && !c->data) { c->size = z; c->data = malloc(c->size); if (!c->data) break; /* Out of memory. */ s = fread(c->data, 1, c->size, f); if (s != (size_t) c->size) break; /* Error or short file. */ seek = 0; if (!full) { /* Only BMHD required. */ ok = 1; break; } } if (pos + 8 + z >= formsize + 8) break; /* This was last chunk. */ if (seek && fseek(f, z, SEEK_CUR) != 0) break; } /* File may end strangely, especially if body size is uneven, but it's * ok if we have the chunks we want. !full check is already done. */ if (ilbm->bmhd.data && ilbm->body.data) ok = 1; if (!ok) freeilbm(ilbm); } fclose(f); } return ok; } /*------------------------------------------------------------------------------ * Unpacks a row of possibly RLE data at a time. * * RLE compression depends on a count byte, followed by data bytes. * * 0x80 means skip. * 0xff to 0x81 means repeat one data byte (256 - count) + 1 times. * 0x00 to 0x7f means copy count + 1 data bytes. * * In theory RLE compression is not supposed to create runs across scanlines. *------------------------------------------------------------------------------*/ static void bodyrow(unsigned char *p, int z, ILBM * ilbm) { int i, x, w; unsigned char b; if (ilbm->offset >= ilbm->body.size) { memset(p, 0, z); return; } if (!ilbm->rle) { w = ilbm->body.size - ilbm->offset; if (w > z) w = z; memcpy(p, ilbm->body.data + ilbm->offset, w); if (w < z) memset(p + w, 0, z - w); ilbm->offset += w; return; } for (i = 0; i < z;) { b = ilbm->body.data[ilbm->offset++]; while (b == 0x80 && ilbm->offset < ilbm->body.size) b = ilbm->body.data[ilbm->offset++]; if (ilbm->offset >= ilbm->body.size) break; if (b & 0x80) { w = (0x100 - b) + 1; if (w > z - i) w = z - i; b = ilbm->body.data[ilbm->offset++]; memset(p + i, b, w); i += w; } else { w = (b & 0x7f) + 1; if (w > ilbm->body.size - ilbm->offset) w = ilbm->body.size - ilbm->offset; x = (w <= z - i) ? w : z - i; memcpy(p + i, ilbm->body.data + ilbm->offset, x); i += x; ilbm->offset += w; } } if (i < z) memset(p, 0, z - i); } /*------------------------------------------------------------------------------ * Shifts a value to produce an 8-bit colour gun, and fills in the lower bits * from the high bits of the value so that, for example, 4-bit 0x0f scales to * 0xff, or 1-bit 0x01 scales to 0xff. *------------------------------------------------------------------------------*/ static unsigned char scalegun(unsigned char v, int sl) { int sr; switch (sl) { case 1: case 2: case 3: sr = 8 - sl; return (v << sl) | (v >> sr); case 4: return (v << 4) | v; case 5: return v * 0x24; case 6: return v * 0x55; case 7: return v * 0xff; } return v; } /*------------------------------------------------------------------------------ * Scales the colours in a CMAP chunk if they all look like 4-bit colour, so * that they use all 8-bits. This is done by copying the high nybble into the * low nybble, so for example 0xf0 becomes 0xff. *------------------------------------------------------------------------------*/ static void scalecmap(ILBM * ilbm) { int i; if (!ilbm->cmap.data) return; for (i = 0; i < ilbm->cmap.size; i++) if (ilbm->cmap.data[i] & 0x0f) return; for (i = 0; i < ilbm->cmap.size; i++) ilbm->cmap.data[i] |= ilbm->cmap.data[i] >> 4; } /*------------------------------------------------------------------------------ * Deplanes and converts an array of bitplanes to a single scanline of DATA32 * (unsigned int) values. DATA32 is ARGB. *------------------------------------------------------------------------------*/ static void deplane(DATA32 * row, int w, ILBM * ilbm, unsigned char *plane[]) { unsigned long l; int i, o, x; unsigned char bit, r, g, b, a, v, h, *pal; pal = NULL; if (ilbm->sham.data && ilbm->sham.size >= 2 + (ilbm->row + 1) * 2 * 16) pal = ilbm->sham.data + 2 + ilbm->row * 2 * 16; if (ilbm->ctbl.data && ilbm->ctbl.size >= (ilbm->row + 1) * 2 * 16) pal = ilbm->ctbl.data + ilbm->row * 2 * 16; if (ilbm->ham) r = g = b = 0; bit = 0x80; o = 0; for (x = 0; x < w; x++) { l = 0; for (i = ilbm->depth - 1; i >= 0; i--) { l = l << 1; if (plane[i][o] & bit) l = l | 1; } a = (ilbm->mask == 0 || (ilbm->mask == 1 && (plane[ilbm->depth][o] & bit)) || ilbm->mask == 2) ? 0xff : 0x00; if (ilbm->depth == 32) { a = (l >> 24) & 0xff; b = (l >> 16) & 0xff; g = (l >> 8) & 0xff; r = l & 0xff; } else if (ilbm->depth == 24) { b = (l >> 16) & 0xff; g = (l >> 8) & 0xff; r = l & 0xff; } else if (ilbm->ham) { v = l & ((1 << (ilbm->depth - 2)) - 1); h = (l & ~v) >> (ilbm->depth - 2); if (h == 0x00) { if (!pal) { if ((v + 1) * 3 <= ilbm->cmap.size) { r = ilbm->cmap.data[v * 3]; g = ilbm->cmap.data[v * 3 + 1]; b = ilbm->cmap.data[v * 3 + 2]; } else r = g = b = 0; } else { r = scalegun(pal[v * 2] & 0x0f, 4); g = scalegun((pal[v * 2 + 1] & 0xf0) >> 4, 4); b = scalegun((pal[v * 2 + 1] & 0x0f), 4); } } else if (h == 0x01) b = scalegun(v, 8 - (ilbm->depth - 2)); else if (h == 0x02) r = scalegun(v, 8 - (ilbm->depth - 2)); else g = scalegun(v, 8 - (ilbm->depth - 2)); } else if (ilbm->hbrite) { v = l & ((1 << (ilbm->depth - 1)) - 1); h = (l & ~v) >> (ilbm->depth - 1); if (!pal) { if ((v + 1) * 3 <= ilbm->cmap.size) { r = ilbm->cmap.data[v * 3]; g = ilbm->cmap.data[v * 3 + 1]; b = ilbm->cmap.data[v * 3 + 2]; } else r = g = b = 0; } else { r = scalegun(pal[v * 2] & 0x0f, 4); g = scalegun((pal[v * 2 + 1] & 0xf0) >> 4, 4); b = scalegun((pal[v * 2 + 1] & 0x0f), 4); } if (h) { r = r >> 1; g = g >> 1; b = b >> 1; } if (ilbm->mask == 2 && v == L2RWORD(ilbm->bmhd.data + 12)) a = 0x00; } else if (ilbm->cmap.size == 0 && !pal) { v = l & ((1 << ilbm->depth) - 1); r = scalegun(v, ilbm->depth); g = r; b = r; } else { v = l & 0xff; if (!pal) { if ((v + 1) * 3 <= ilbm->cmap.size) { r = ilbm->cmap.data[v * 3]; g = ilbm->cmap.data[v * 3 + 1]; b = ilbm->cmap.data[v * 3 + 2]; } else r = g = b = 0; } else { r = scalegun(pal[v * 2] & 0x0f, 4); g = scalegun((pal[v * 2 + 1] & 0xf0) >> 4, 4); b = scalegun((pal[v * 2 + 1] & 0x0f), 4); } if (ilbm->mask == 2 && v == L2RWORD(ilbm->bmhd.data + 12)) a = 0x00; } row[x] = ((unsigned long)a << 24) | ((unsigned long)r << 16) | ((unsigned long)g << 8) | (unsigned long)b; bit = bit >> 1; if (bit == 0) { o++; bit = 0x80; } } } /*------------------------------------------------------------------------------ * Loads an image. If im->loader is non-zero, or immediate_load is non-zero, or * progress is non-zero, then the file is fully loaded, otherwise only the width * and height are read. * * Imlib2 doesn't support reading comment chunks like ANNO. *------------------------------------------------------------------------------*/ char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { char *env; int cancel, full, i, n, ok, y, z, gran, nexty, prevy; unsigned char *plane[40]; ILBM ilbm; /*---------- * Do nothing if the data is already loaded. *----------*/ if (im->data) return 0; /*---------- * Load the chunk(s) we're interested in. If full is not true, then we only * want the image size and format. *----------*/ full = (im->loader || immediate_load || progress); ok = loadchunks(im->real_file, &ilbm, full); if (!ok) return 0; /*---------- * Use and check header. *----------*/ ok = 0; if (ilbm.bmhd.size >= 20) { ok = 1; im->w = L2RWORD(ilbm.bmhd.data); im->h = L2RWORD(ilbm.bmhd.data + 2); if (!IMAGE_DIMENSIONS_OK(im->w, im->h)) { ok = 0; } ilbm.depth = ilbm.bmhd.data[8]; if (ilbm.depth < 1 || (ilbm.depth > 8 && ilbm.depth != 24 && ilbm.depth != 32)) ok = 0; /* Only 1 to 8, 24, or 32 planes. */ ilbm.rle = ilbm.bmhd.data[10]; if (ilbm.rle < 0 || ilbm.rle > 1) ok = 0; /* Only NONE or RLE compression. */ ilbm.mask = ilbm.bmhd.data[9]; if (ilbm.mask || ilbm.depth == 32) SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); env = getenv("IMLIB2_LBM_NOMASK"); if (env && (!strcmp(env, "true") || !strcmp(env, "1") || !strcmp(env, "yes") || !strcmp(env, "on"))) UNSET_FLAG(im->flags, F_HAS_ALPHA); if (!im->format) im->format = strdup("lbm"); ilbm.ham = 0; ilbm.hbrite = 0; if (ilbm.depth <= 8) { if (ilbm.camg.size == 4) { if (ilbm.camg.data[2] & 0x08) ilbm.ham = 1; if (ilbm.camg.data[3] & 0x80) ilbm.hbrite = 1; } else { /* Only guess at ham and hbrite if CMAP is present. */ if (ilbm.depth == 6 && full && ilbm.cmap.size >= 3 * 16) ilbm.ham = 1; if (full && !ilbm.ham && ilbm.depth > 1 && ilbm.cmap.size == 3 * (1 << (ilbm.depth - 1))) ilbm.hbrite = 1; } } } if (!full || !ok) { im->w = im->h = 0; freeilbm(&ilbm); return ok; } /*---------- * The source data is planar. Each plane is an even number of bytes wide. If * masking type is 1, there is an extra plane that defines the mask. Scanlines * from each plane are interleaved, from top to bottom. The first plane is the * 0 bit. *----------*/ ok = 0; cancel = 0; plane[0] = NULL; gran = nexty = 0; im->data = malloc(im->w * im->h * sizeof(DATA32)); n = ilbm.depth; if (ilbm.mask == 1) n++; plane[0] = malloc(((im->w + 15) / 16) * 2 * n); if (im->data && plane[0]) { for (i = 1; i < n; i++) plane[i] = plane[i - 1] + ((im->w + 15) / 16) * 2; z = ((im->w + 15) / 16) * 2 * n; if (progress) { prevy = 0; if (progress_granularity <= 0) progress_granularity = 1; gran = progress_granularity; nexty = ((im->h * gran) / 100); } scalecmap(&ilbm); for (y = 0; y < im->h; y++) { bodyrow(plane[0], z, &ilbm); deplane(im->data + im->w * y, im->w, &ilbm, plane); ilbm.row++; if (progress && (y >= nexty || y == im->h - 1)) { if (!progress (im, (char)((100 * (y + 1)) / im->h), 0, prevy, im->w, y + 1)) { cancel = 1; break; } prevy = y; gran += progress_granularity; nexty = ((im->h * gran) / 100); } } ok = !cancel; } /*---------- * We either had a successful decode, the user cancelled, or we couldn't get * the memory for im->data or plane[0]. *----------*/ if (!ok) { im->w = im->h = 0; if (im->data) free(im->data); im->data = NULL; } if (plane[0]) free(plane[0]); freeilbm(&ilbm); return (cancel) ? 2 : ok; } /*------------------------------------------------------------------------------ * Perhaps save only in 32-bit format? The IFF ILBM format has pretty much gone * the way of the Amiga, who saves in this format any more? *------------------------------------------------------------------------------*/ #if 0 char save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity) { return 0; } #endif /*------------------------------------------------------------------------------ * Identifies the file extensions this loader handles. Standard code from other * loaders. *------------------------------------------------------------------------------*/ void formats(ImlibLoader * l) { static const char *const list_formats[] = { "iff", "ilbm", "lbm" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_jpeg.c0000664000175000017500000002532312255265152016144 00000000000000#include "loader_common.h" #include #include struct ImLib_JPEG_error_mgr { struct jpeg_error_mgr pub; sigjmp_buf setjmp_buffer; }; typedef struct ImLib_JPEG_error_mgr *emptr; static void _JPEGFatalErrorHandler(j_common_ptr cinfo) { emptr errmgr; errmgr = (emptr) cinfo->err; /* cinfo->err->output_message(cinfo);*/ siglongjmp(errmgr->setjmp_buffer, 1); } static void _JPEGErrorHandler(j_common_ptr cinfo) { #if 0 emptr errmgr; errmgr = (emptr) cinfo->err; /* cinfo->err->output_message(cinfo);*/ /* siglongjmp(errmgr->setjmp_buffer, 1);*/ #endif } static void _JPEGErrorHandler2(j_common_ptr cinfo, int msg_level) { #if 0 emptr errmgr; errmgr = (emptr) cinfo->err; /* cinfo->err->output_message(cinfo);*/ /* siglongjmp(errmgr->setjmp_buffer, 1);*/ #endif } char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { int w, h; struct jpeg_decompress_struct cinfo; struct ImLib_JPEG_error_mgr jerr; FILE *f; if (im->data) return 0; f = fopen(im->real_file, "rb"); if (!f) return 0; cinfo.err = jpeg_std_error(&(jerr.pub)); jerr.pub.error_exit = _JPEGFatalErrorHandler; jerr.pub.emit_message = _JPEGErrorHandler2; jerr.pub.output_message = _JPEGErrorHandler; if (sigsetjmp(jerr.setjmp_buffer, 1)) { jpeg_destroy_decompress(&cinfo); fclose(f); return 0; } jpeg_create_decompress(&cinfo); jpeg_stdio_src(&cinfo, f); jpeg_read_header(&cinfo, TRUE); cinfo.do_fancy_upsampling = FALSE; cinfo.do_block_smoothing = FALSE; jpeg_start_decompress(&cinfo); if ((!im->loader) && (!im->data)) { im->w = w = cinfo.output_width; im->h = h = cinfo.output_height; if (!IMAGE_DIMENSIONS_OK(w, h)) { im->w = im->h = 0; jpeg_destroy_decompress(&cinfo); fclose(f); return 0; } UNSET_FLAG(im->flags, F_HAS_ALPHA); im->format = strdup("jpeg"); } if (((!im->data) && (im->loader)) || (immediate_load) || (progress)) { DATA8 *ptr, *line[16], *data; DATA32 *ptr2; int x, y, l, i, scans, count, prevy; im->w = w = cinfo.output_width; im->h = h = cinfo.output_height; if ((cinfo.rec_outbuf_height > 16) || (cinfo.output_components <= 0) || !IMAGE_DIMENSIONS_OK(w, h)) { im->w = im->h = 0; jpeg_destroy_decompress(&cinfo); fclose(f); return 0; } data = malloc(w * 16 * cinfo.output_components); if (!data) { im->w = im->h = 0; jpeg_destroy_decompress(&cinfo); fclose(f); return 0; } /* must set the im->data member before callign progress function */ ptr2 = im->data = malloc(w * h * sizeof(DATA32)); if (!im->data) { im->w = im->h = 0; free(data); jpeg_destroy_decompress(&cinfo); fclose(f); return 0; } count = 0; prevy = 0; if (cinfo.output_components > 1) { for (i = 0; i < cinfo.rec_outbuf_height; i++) line[i] = data + (i * w * cinfo.output_components); for (l = 0; l < h; l += cinfo.rec_outbuf_height) { jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height); scans = cinfo.rec_outbuf_height; if ((h - l) < scans) scans = h - l; ptr = data; for (y = 0; y < scans; y++) { for (x = 0; x < w; x++) { *ptr2 = (0xff000000) | ((ptr[0]) << 16) | ((ptr[1]) << 8) | (ptr[2]); ptr += cinfo.output_components; ptr2++; } } if (progress) { int per; per = (l * 100) / h; if (((per - count) >= progress_granularity) || ((h - l) <= cinfo.rec_outbuf_height)) { count = per; if (!progress (im, per, 0, prevy, w, scans + l - prevy)) { free(data); jpeg_finish_decompress(&cinfo); jpeg_destroy_decompress(&cinfo); fclose(f); return 2; } prevy = l + scans; } } } } else if (cinfo.output_components == 1) { for (i = 0; i < cinfo.rec_outbuf_height; i++) line[i] = data + (i * w); for (l = 0; l < h; l += cinfo.rec_outbuf_height) { jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height); scans = cinfo.rec_outbuf_height; if ((h - l) < scans) scans = h - l; ptr = data; for (y = 0; y < scans; y++) { for (x = 0; x < w; x++) { *ptr2 = (0xff000000) | ((ptr[0]) << 16) | ((ptr[0]) << 8) | (ptr[0]); ptr++; ptr2++; } } if (progress) { int per; per = (l * 100) / h; if (((per - count) >= progress_granularity) || ((h - l) <= cinfo.rec_outbuf_height)) { count = per; if (!progress (im, per, 0, prevy, w, l + scans - prevy)) { free(data); jpeg_finish_decompress(&cinfo); jpeg_destroy_decompress(&cinfo); fclose(f); return 2; } prevy = l + scans; } } } } free(data); } jpeg_finish_decompress(&cinfo); jpeg_destroy_decompress(&cinfo); fclose(f); return 1; } char save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity) { struct jpeg_compress_struct cinfo; struct ImLib_JPEG_error_mgr jerr; FILE *f; DATA8 *buf; DATA32 *ptr; JSAMPROW *jbuf; int y = 0, quality = 75, compression = 2; ImlibImageTag *tag; int i, j, pl = 0; char pper = 0; /* no image data? abort */ if (!im->data) return 0; /* allocate a small buffer to convert image data */ buf = malloc(im->w * 3 * sizeof(DATA8)); if (!buf) return 0; f = fopen(im->real_file, "wb"); if (!f) { free(buf); return 0; } /* set up error handling */ jerr.pub.error_exit = _JPEGFatalErrorHandler; jerr.pub.emit_message = _JPEGErrorHandler2; jerr.pub.output_message = _JPEGErrorHandler; cinfo.err = jpeg_std_error(&(jerr.pub)); if (sigsetjmp(jerr.setjmp_buffer, 1)) { jpeg_destroy_compress(&cinfo); free(buf); fclose(f); return 0; } /* setup compress params */ jpeg_create_compress(&cinfo); jpeg_stdio_dest(&cinfo, f); cinfo.image_width = im->w; cinfo.image_height = im->h; cinfo.input_components = 3; cinfo.in_color_space = JCS_RGB; /* look for tags attached to image to get extra parameters like quality */ /* settigns etc. - this is the "api" to hint for extra information for */ /* saver modules */ /* compression */ tag = __imlib_GetTag(im, "compression"); if (tag) { compression = tag->val; if (compression < 0) compression = 0; if (compression > 9) compression = 9; } /* convert to quality */ quality = (9 - compression) * 10; quality = quality * 10 / 9; /* quality */ tag = __imlib_GetTag(im, "quality"); if (tag) quality = tag->val; if (quality < 1) quality = 1; if (quality > 100) quality = 100; /* set up jepg compression parameters */ jpeg_set_defaults(&cinfo); jpeg_set_quality(&cinfo, quality, TRUE); jpeg_start_compress(&cinfo, TRUE); /* get the start pointer */ ptr = im->data; /* go one scanline at a time... and save */ while (cinfo.next_scanline < cinfo.image_height) { /* convcert scaline from ARGB to RGB packed */ for (j = 0, i = 0; i < im->w; i++) { buf[j++] = ((*ptr) >> 16) & 0xff; buf[j++] = ((*ptr) >> 8) & 0xff; buf[j++] = ((*ptr)) & 0xff; ptr++; } /* write scanline */ jbuf = (JSAMPROW *) (&buf); jpeg_write_scanlines(&cinfo, jbuf, 1); y++; if (progress) { char per; int l; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { l = y - pl; if (!progress(im, per, 0, (y - l), im->w, l)) { jpeg_finish_compress(&cinfo); jpeg_destroy_compress(&cinfo); free(buf); fclose(f); return 2; } pper = per; pl = y; } } } /* finish off */ jpeg_finish_compress(&cinfo); jpeg_destroy_compress(&cinfo); free(buf); fclose(f); return 1; progress = NULL; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "jpg", "jpeg", "jfif", "jfi" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_gif.c0000664000175000017500000001471112255265152015763 00000000000000#include "loader_common.h" #include #include #include #include char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { DATA32 *ptr; GifFileType *gif; GifRowType *rows; GifRecordType rec; ColorMapObject *cmap; int i, j, done, bg, r, g, b, w = 0, h = 0; float per = 0.0, per_inc; int last_per = 0, last_y = 0; int intoffset[] = { 0, 4, 2, 1 }; int intjump[] = { 8, 8, 4, 2 }; int transp; int fd; done = 0; rows = NULL; transp = -1; /* if immediate_load is 1, then dont delay image laoding as below, or */ /* already data in this image - dont load it again */ if (im->data) return 0; #ifndef __EMX__ fd = open(im->real_file, O_RDONLY); #else fd = open(im->real_file, O_RDONLY | O_BINARY); #endif if (fd < 0) return 0; gif = DGifOpenFileHandle(fd); if (!gif) { close(fd); return 0; } do { if (DGifGetRecordType(gif, &rec) == GIF_ERROR) { /* PrintGifError(); */ rec = TERMINATE_RECORD_TYPE; } if ((rec == IMAGE_DESC_RECORD_TYPE) && (!done)) { if (DGifGetImageDesc(gif) == GIF_ERROR) { /* PrintGifError(); */ rec = TERMINATE_RECORD_TYPE; } w = gif->Image.Width; h = gif->Image.Height; if (!IMAGE_DIMENSIONS_OK(w, h)) { DGifCloseFile(gif); return 0; } rows = malloc(h * sizeof(GifRowType *)); if (!rows) { DGifCloseFile(gif); return 0; } for (i = 0; i < h; i++) { rows[i] = NULL; } for (i = 0; i < h; i++) { rows[i] = malloc(w * sizeof(GifPixelType)); if (!rows[i]) { DGifCloseFile(gif); for (i = 0; i < h; i++) { if (rows[i]) { free(rows[i]); } } free(rows); return 0; } } if (gif->Image.Interlace) { for (i = 0; i < 4; i++) { for (j = intoffset[i]; j < h; j += intjump[i]) { DGifGetLine(gif, rows[j], w); } } } else { for (i = 0; i < h; i++) { DGifGetLine(gif, rows[i], w); } } done = 1; } else if (rec == EXTENSION_RECORD_TYPE) { int ext_code; GifByteType *ext; ext = NULL; DGifGetExtension(gif, &ext_code, &ext); while (ext) { if ((ext_code == 0xf9) && (ext[1] & 1) && (transp < 0)) { transp = (int)ext[4]; } ext = NULL; DGifGetExtensionNext(gif, &ext); } } } while (rec != TERMINATE_RECORD_TYPE); if (transp >= 0) { SET_FLAG(im->flags, F_HAS_ALPHA); } else { UNSET_FLAG(im->flags, F_HAS_ALPHA); } /* set the format string member to the lower-case full extension */ /* name for the format - so example names would be: */ /* "png", "jpeg", "tiff", "ppm", "pgm", "pbm", "gif", "xpm" ... */ im->w = w; im->h = h; if (!im->format) im->format = strdup("gif"); if (im->loader || immediate_load || progress) { bg = gif->SBackGroundColor; cmap = (gif->Image.ColorMap ? gif->Image.ColorMap : gif->SColorMap); im->data = (DATA32 *) malloc(sizeof(DATA32) * w * h); if (!im->data) { DGifCloseFile(gif); free(rows); return 0; } ptr = im->data; per_inc = 100.0 / (((float)w) * h); for (i = 0; i < h; i++) { for (j = 0; j < w; j++) { if (rows[i][j] == transp) { r = cmap->Colors[bg].Red; g = cmap->Colors[bg].Green; b = cmap->Colors[bg].Blue; *ptr++ = 0x00ffffff & ((r << 16) | (g << 8) | b); } else { r = cmap->Colors[rows[i][j]].Red; g = cmap->Colors[rows[i][j]].Green; b = cmap->Colors[rows[i][j]].Blue; *ptr++ = (0xff << 24) | (r << 16) | (g << 8) | b; } per += per_inc; if (progress && (((int)per) != last_per) && (((int)per) % progress_granularity == 0)) { last_per = (int)per; if (!(progress(im, (int)per, 0, last_y, w, i))) { DGifCloseFile(gif); for (i = 0; i < h; i++) { free(rows[i]); } free(rows); return 2; } last_y = i; } } } } if (progress) { progress(im, 100, 0, last_y, w, h); } DGifCloseFile(gif); for (i = 0; i < h; i++) { free(rows[i]); } free(rows); return 1; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "gif" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/Makefile.am0000664000175000017500000000637612255265152015570 00000000000000MAINTAINERCLEANFILES = Makefile.in AM_CFLAGS = $(CWARNFLAGS) AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/lib pkgdir = $(libdir)/imlib2/loaders if BUILD_JPEG_LOADER JPEG_L = jpeg.la endif if BUILD_PNG_LOADER PNG_L = png.la endif if BUILD_TIFF_LOADER TIFF_L = tiff.la endif if BUILD_GIF_LOADER GIF_L = gif.la endif if BUILD_ZLIB_LOADER ZLIB_L = zlib.la endif if BUILD_BZ2_LOADER BZ2_L = bz2.la endif if BUILD_ID3_LOADER ID3_L = id3.la endif pkg_LTLIBRARIES = \ $(JPEG_L) \ $(PNG_L) \ $(TIFF_L) \ $(GIF_L) \ $(ZLIB_L) \ $(BZ2_L) \ $(ID3_L) \ pnm.la \ argb.la \ bmp.la \ xpm.la \ tga.la \ lbm.la EXTRA_DIST = loader_common.h jpeg_la_SOURCES = loader_jpeg.c jpeg_la_LDFLAGS = -module -avoid-version jpeg_la_LIBADD = @JPEGLIBS@ $(top_builddir)/src/lib/libImlib2.la jpeg_la_LIBTOOLFLAGS = --tag=disable-static png_la_SOURCES = loader_png.c png_la_CPPFLAGS = @PNG_CFLAGS@ $(AM_CPPFLAGS) png_la_LDFLAGS = -module -avoid-version png_la_LIBADD = @PNG_LIBS@ $(top_builddir)/src/lib/libImlib2.la png_la_LIBTOOLFLAGS = --tag=disable-static tiff_la_SOURCES = loader_tiff.c tiff_la_LDFLAGS = -module -avoid-version tiff_la_LIBADD = @TIFFLIBS@ $(top_builddir)/src/lib/libImlib2.la tiff_la_LIBTOOLFLAGS = --tag=disable-static gif_la_SOURCES = loader_gif.c gif_la_LDFLAGS = -module -avoid-version gif_la_LIBADD = @GIFLIBS@ $(top_builddir)/src/lib/libImlib2.la gif_la_LIBTOOLFLAGS = --tag=disable-static zlib_la_SOURCES = loader_zlib.c zlib_la_LDFLAGS = -module -avoid-version zlib_la_LIBADD = @ZLIBLIBS@ $(top_builddir)/src/lib/libImlib2.la zlib_la_LIBTOOLFLAGS = --tag=disable-static bz2_la_SOURCES = loader_bz2.c bz2_la_LDFLAGS = -module -avoid-version bz2_la_LIBADD = @BZ2LIBS@ $(top_builddir)/src/lib/libImlib2.la bz2_la_LIBTOOLFLAGS = --tag=disable-static id3_la_SOURCES = loader_id3.c id3_la_LDFLAGS = -module -avoid-version id3_la_LIBADD = @ID3LIBS@ $(top_builddir)/src/lib/libImlib2.la id3_la_LIBTOOLFLAGS = --tag=disable-static pnm_la_SOURCES = loader_pnm.c pnm_la_LDFLAGS = -module -avoid-version pnm_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la pnm_la_LIBTOOLFLAGS = --tag=disable-static argb_la_SOURCES = loader_argb.c argb_la_LDFLAGS = -module -avoid-version argb_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la argb_la_LIBTOOLFLAGS = --tag=disable-static bmp_la_SOURCES = loader_bmp.c bmp_la_LDFLAGS = -module -avoid-version bmp_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la bmp_la_LIBTOOLFLAGS = --tag=disable-static xpm_la_SOURCES = loader_xpm.c xpm_la_LDFLAGS = -module -avoid-version xpm_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la xpm_la_LIBTOOLFLAGS = --tag=disable-static tga_la_SOURCES = loader_tga.c tga_la_LDFLAGS = -module -avoid-version tga_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la tga_la_LIBTOOLFLAGS = --tag=disable-static lbm_la_SOURCES = loader_lbm.c lbm_la_LDFLAGS = -module -avoid-version lbm_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la lbm_la_LIBTOOLFLAGS = --tag=disable-static imlib2-1.4.6/src/modules/loaders/loader_zlib.c0000664000175000017500000000502112255265152016150 00000000000000#include "loader_common.h" #include #include #include #include #include #define OUTBUF_SIZE 16484 static int uncompress_file(int src, int dest) { gzFile gf; DATA8 outbuf[OUTBUF_SIZE]; int ret = 1, bytes; gf = gzdopen(dup(src), "rb"); if (!gf) return 0; while (1) { bytes = gzread(gf, outbuf, OUTBUF_SIZE); if (!bytes) break; else if (bytes == -1) { ret = 0; break; } else write(dest, outbuf, bytes); } gzclose(gf); return ret; } char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { ImlibLoader *loader; int src, dest, res; char *file, *p, tmp[] = "/tmp/imlib2_loader_zlib-XXXXXX"; char real_ext[16]; struct stat st; assert(im); /* check that this file ends in *.gz and that there's another ext * (e.g. "foo.png.gz" */ p = strrchr(im->real_file, '.'); if (p && p != im->real_file) { if (strcasecmp(p + 1, "gz")) return 0; } else return 0; strncpy(real_ext, p - sizeof(real_ext) + 1, sizeof(real_ext)); real_ext[sizeof(real_ext) - 1] = '\0'; /* abort if there's no dot in the "real" filename */ if (!strrchr(real_ext, '.')) return 0; if (stat(im->real_file, &st) < 0) return 0; if ((src = open(im->real_file, O_RDONLY)) < 0) { return 0; } if ((dest = mkstemp(tmp)) < 0) { close(src); return 0; } res = uncompress_file(src, dest); close(src); close(dest); if (!res) { unlink(tmp); return 0; } if (!(loader = __imlib_FindBestLoaderForFile(real_ext, 0))) { unlink(tmp); return 0; } /* remember the original filename */ file = strdup(im->real_file); free(im->real_file); im->real_file = strdup(tmp); loader->load(im, progress, progress_granularity, immediate_load); free(im->real_file); im->real_file = file; unlink(tmp); return 1; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "gz" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_bmp.c0000664000175000017500000007777412255265152016016 00000000000000/* * Based off of Peter Alm's BMP loader from xmms, with additions from * imlib's old BMP loader */ /* * 21.3.2006 - Changes made by Petr Kobalicek * - Simplify and make secure RLE encoding * - Fix 16 and 32 bit depth (old code was incorrect and it's commented) */ #include "loader_common.h" #include typedef struct tagRGBQUAD { unsigned char rgbBlue; unsigned char rgbGreen; unsigned char rgbRed; unsigned char rgbReserved; } RGBQUAD; #define BI_RGB 0 #define BI_RLE8 1 #define BI_RLE4 2 #define BI_BITFIELDS 3 /* 21.3.3006 - Use enumeration for RLE encoding. This makes it more readable */ enum { RLE_NEXT = 0, /* Next line */ RLE_END = 1, /* End of RLE encoding */ RLE_MOVE = 2 /* Move by X and Y (Offset is stored in two next bytes) */ }; static int ReadleShort(FILE * file, unsigned short *ret) { unsigned char b[2]; if (fread(b, sizeof(unsigned char), 2, file) != 2) return 0; *ret = (b[1] << 8) | b[0]; return 1; } static int ReadleLong(FILE * file, unsigned long *ret) { unsigned char b[4]; if (fread(b, sizeof(unsigned char), 4, file) != 4) return 0; *ret = (b[3] << 24) | (b[2] << 16) | (b[1] << 8) | b[0]; return 1; } static int WriteleByte(FILE * file, unsigned char val) { int rc; rc = fputc((int)val & 0xff, file); if (rc == EOF) return 0; return 1; } static int WriteleShort(FILE * file, unsigned short val) { int rc; rc = fputc((int)(val & 0xff), file); if (rc == EOF) return 0; rc = fputc((int)((val >> 8) & 0xff), file); if (rc == EOF) return 0; return 1; } static int WriteleLong(FILE * file, unsigned long val) { int rc; rc = fputc((int)(val & 0xff), file); if (rc == EOF) return 0; rc = fputc((int)((val >> 8) & 0xff), file); if (rc == EOF) return 0; rc = fputc((int)((val >> 16) & 0xff), file); if (rc == EOF) return 0; rc = fputc((int)((val >> 24) & 0xff), file); if (rc == EOF) return 0; return 1; } char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { FILE *f; char pper = 0; int pl = 0; char type[2]; unsigned long size, offset, headSize, comp, imgsize, j, k, l; unsigned short tmpShort, planes, bitcount, ncols, skip; unsigned char byte = 0, g, b, r; unsigned long i, w, h; unsigned short x, y; DATA32 *ptr; unsigned char *buffer_ptr, *buffer, *buffer_end; RGBQUAD rgbQuads[256]; unsigned long rmask = 0xff, gmask = 0xff, bmask = 0xff; unsigned long rshift = 0, gshift = 0, bshift = 0; unsigned long rleftshift = 0, gleftshift = 0, bleftshift = 0; /* * 21.3.2006: * Added these two variables for RLE. */ unsigned char byte1, byte2; if (im->data) return 0; f = fopen(im->real_file, "rb"); if (!f) return 0; /* header */ { struct stat statbuf; if (stat(im->real_file, &statbuf) == -1) { fclose(f); return 0; } size = statbuf.st_size; if (fread(type, 1, 2, f) != 2) { fclose(f); return 0; } if (strncmp(type, "BM", 2)) { fclose(f); return 0; } fseek(f, 8, SEEK_CUR); ReadleLong(f, &offset); ReadleLong(f, &headSize); if (offset >= size) { fclose(f); return 0; } if (headSize == 12) { ReadleShort(f, &tmpShort); w = tmpShort; ReadleShort(f, &tmpShort); h = tmpShort; ReadleShort(f, &planes); ReadleShort(f, &bitcount); imgsize = size - offset; comp = BI_RGB; } else if (headSize == 40) { ReadleLong(f, &w); ReadleLong(f, &h); ReadleShort(f, &planes); ReadleShort(f, &bitcount); ReadleLong(f, &comp); ReadleLong(f, &imgsize); imgsize = size - offset; fseek(f, 16, SEEK_CUR); } else { fclose(f); return 0; } if (!IMAGE_DIMENSIONS_OK(w, h)) { fclose(f); return 0; } if (bitcount < 16) { ncols = (offset - headSize - 14); if (headSize == 12) { ncols /= 3; if (ncols > 256) ncols = 256; for (i = 0; i < ncols; i++) fread(&rgbQuads[i], 3, 1, f); } else { ncols /= 4; if (ncols > 256) ncols = 256; fread(rgbQuads, 4, ncols, f); } } else if (bitcount == 16 || bitcount == 32) { if (comp == BI_BITFIELDS) { int bit; ReadleLong(f, &rmask); ReadleLong(f, &gmask); ReadleLong(f, &bmask); for (bit = bitcount - 1; bit >= 0; bit--) { if (bmask & (1 << bit)) bshift = bit; if (gmask & (1 << bit)) gshift = bit; if (rmask & (1 << bit)) rshift = bit; } while (((((0xffffL & bmask) >> bshift) << bleftshift) & 0x80) == 0) { bleftshift++; } while (((((0xffffL & gmask) >> gshift) << gleftshift) & 0x80) == 0) { gleftshift++; } while (((((0xffffL & rmask) >> rshift) << rleftshift) & 0x80) == 0) { rleftshift++; } } else if (bitcount == 16) { rmask = 0x7C00; gmask = 0x03E0; bmask = 0x001F; rshift = 10; gshift = 5; bshift = 0; rleftshift = gleftshift = bleftshift = 3; } else if (bitcount == 32) { rmask = 0x00FF0000; gmask = 0x0000FF00; bmask = 0x000000FF; rshift = 16; gshift = 8; bshift = 0; } } im->w = w; im->h = h; if (!im->format) { UNSET_FLAG(im->flags, F_HAS_ALPHA); im->format = strdup("bmp"); } } if (((!im->data) && (im->loader)) || (immediate_load) || (progress)) { fseek(f, offset, SEEK_SET); buffer = malloc(imgsize); if (!buffer) { fclose(f); return 0; } im->data = malloc(w * h * sizeof(DATA32)); if (!im->data) { fclose(f); free(buffer); return 0; } fread(buffer, imgsize, 1, f); fclose(f); buffer_ptr = buffer; buffer_end = buffer + imgsize; ptr = im->data + ((h - 1) * w); if (bitcount == 1) { if (comp == BI_RGB) { skip = ((((w + 31) / 32) * 32) - w) / 8; for (y = 0; y < h; y++) { for (x = 0; x < w && buffer_ptr < buffer_end; x++) { if ((x & 7) == 0) byte = *(buffer_ptr++); k = (byte >> 7) & 1; *ptr++ = 0xff000000 | (rgbQuads[k].rgbRed << 16) | (rgbQuads[k].rgbGreen << 8) | rgbQuads[k].rgbBlue; byte <<= 1; } buffer_ptr += skip; ptr -= w * 2; if (progress) { char per; int ll; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { ll = y - pl; if (!progress (im, per, 0, im->h - y - 1, im->w, im->h - y + ll)) { free(buffer); return 2; } pper = per; pl = y; } } } } } /* * 21.3.2006 * Bug fixes and optimization: * * RLE encoding is dangerous and can be used by attackers by creating special files. * We has 'buffer_ptr' and 'buffer_end' variables and buffer_end points to first * unaccessible byte in buffer. * - If we use 'byte = *(buffer_ptr++) in main loop we must check if * 'buffer_ptr != buffer_end', because special or incomplete bmp file can generate * segfault (I was writing it, because in RLE we need to read depending count of * bytes that depends on requester operation). * SOLUTION: Don't read one byte, read two bytes and check. * - If RLE teels us than single color length will be larger than allowed, we can * stop, because bitmap is corrupted or crawled. * SOLUTION: Check for length ('l' variable in RLE) and break loop if it's invalid * IMPROVEMENTS: We can stop checking if 'x' is out of rangle, because it never be. * - In RLE4 use one bigger loop that fills two pixels. This is faster and cleaner. * If one pixel remains (the tail), do it on end of the loop. * - If we will check x and y (new line and skipping), we can't go outsize imlib * image buffer. */ if (bitcount == 4) { if (comp == BI_RLE4) { /* * 21.3.2006: This is better than using 'if buffer_ptr + 1 < buffer_end' */ unsigned char *buffer_end_minus_1 = buffer_end - 1; x = 0; y = 0; for (i = 0; i < imgsize && buffer_ptr < buffer_end_minus_1; i++) { byte1 = buffer_ptr[0]; byte2 = buffer_ptr[1]; buffer_ptr += 2; if (byte1) { DATA32 t1, t2; l = byte1; /* Check for invalid length */ if (l + x > w) goto _bail; t1 = 0xff000000 | (rgbQuads[byte2 >> 4].rgbRed << 16) | (rgbQuads[byte2 >> 4].rgbGreen << 8) | (rgbQuads[byte2 >> 4].rgbBlue); t2 = 0xff000000 | (rgbQuads[byte2 & 0xF].rgbRed << 16) | (rgbQuads[byte2 & 0xF].rgbGreen << 8) | (rgbQuads[byte2 & 0xF].rgbBlue); for (j = l / 2; j; j--) { ptr[0] = t1; ptr[1] = t2; ptr += 2; } /* tail */ if (l & 1) *ptr++ = t1; x += l; } else { switch (byte2) { case RLE_NEXT: x = 0; if (++y >= h) goto _bail; ptr = im->data + (h - y - 1) * w; break; case RLE_END: goto _bail; case RLE_MOVE: /* Need to read two bytes */ if (buffer_ptr >= buffer_end_minus_1) goto _bail; x += buffer_ptr[0]; y += buffer_ptr[1]; buffer_ptr += 2; /* Check for correct coordinates */ if (x >= w) goto _bail; if (y >= h) goto _bail; ptr = im->data + (h - y - 1) * w + x; break; default: l = byte2; /* Check for invalid length and valid buffer size */ if (l + x > w) goto _bail; if (buffer_ptr + (l >> 1) + (l & 1) > buffer_end) goto _bail; for (j = l / 2; j; j--) { byte = *buffer_ptr++; ptr[0] = 0xff000000 | (rgbQuads[byte >> 4].rgbRed << 16) | (rgbQuads[byte >> 4].rgbGreen << 8) | (rgbQuads[byte >> 4].rgbBlue); ptr[1] = 0xff000000 | (rgbQuads[byte & 0xF].rgbRed << 16) | (rgbQuads[byte & 0xF].rgbGreen << 8) | (rgbQuads[byte & 0xF].rgbBlue); ptr += 2; } if (l & 1) { byte = *buffer_ptr++; *ptr++ = 0xff000000 | (rgbQuads[byte >> 4].rgbRed << 16) | (rgbQuads[byte >> 4].rgbGreen << 8) | (rgbQuads[byte >> 4].rgbBlue); } x += l; if ((l & 3) == 1) buffer_ptr += 2; else if ((l & 3) == 2) buffer_ptr++; break; } } if (progress) { char per; int ll; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { ll = y - pl; if (!progress (im, per, 0, im->h - y - 1, im->w, im->h - y + ll)) { free(buffer); return 2; } pper = per; pl = y; } } } } else if (comp == BI_RGB) { skip = ((((w + 7) / 8) * 8) - w) / 2; for (y = 0; y < h; y++) { for (x = 0; x < w && buffer_ptr < buffer_end; x++) { if ((x & 1) == 0) byte = *(buffer_ptr++); k = (byte & 0xF0) >> 4; *ptr++ = 0xff000000 | (rgbQuads[k].rgbRed << 16) | (rgbQuads[k].rgbGreen << 8) | rgbQuads[k].rgbBlue; byte <<= 4; } buffer_ptr += skip; ptr -= w * 2; if (progress) { char per; int ll; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { ll = y - pl; if (!progress (im, per, 0, im->h - y - 1, im->w, im->h - y + ll)) { free(buffer); return 2; } pper = per; pl = y; } } } } } if (bitcount == 8) { if (comp == BI_RLE8) { /* * 21.3.2006: This is better than using 'if buffer_ptr + 1 < buffer_end' */ unsigned char *buffer_end_minus_1 = buffer_end - 1; x = 0; y = 0; for (i = 0; i < imgsize && buffer_ptr < buffer_end_minus_1; i++) { byte1 = buffer_ptr[0]; byte2 = buffer_ptr[1]; buffer_ptr += 2; if (byte1) { DATA32 pix = 0xff000000 | (rgbQuads[byte2].rgbRed << 16) | (rgbQuads[byte2].rgbGreen << 8) | (rgbQuads[byte2].rgbBlue); l = byte1; if (x + l > w) goto _bail; for (j = l; j; j--) *ptr++ = pix; x += l; } else { switch (byte2) { case RLE_NEXT: x = 0; if (++y >= h) goto _bail; ptr = im->data + ((h - y - 1) * w) + x; break; case RLE_END: goto _bail; case RLE_MOVE: /* Need to read two bytes */ if (buffer_ptr >= buffer_end_minus_1) goto _bail; x += buffer_ptr[0]; y += buffer_ptr[1]; buffer_ptr += 2; /* Check for correct coordinates */ if (x >= w) goto _bail; if (y >= h) goto _bail; ptr = im->data + ((h - y - 1) * w) + x; break; default: l = byte2; if (x + l > w) goto _bail; if (buffer_ptr + l > buffer_end) goto _bail; for (j = 0; j < l; j++) { byte = *(buffer_ptr++); *ptr++ = 0xff000000 | (rgbQuads[byte].rgbRed << 16) | (rgbQuads[byte].rgbGreen << 8) | rgbQuads[byte].rgbBlue; } x += l; if (l & 1) buffer_ptr++; break; } } } if (progress) { char per; int ll; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { ll = y - pl; if (!progress (im, per, 0, im->h - y - 1, im->w, im->h - y + ll)) { free(buffer); return 2; } pper = per; pl = y; } } } else if (comp == BI_RGB) { skip = (((w + 3) / 4) * 4) - w; for (y = 0; y < h; y++) { for (x = 0; x < w && buffer_ptr < buffer_end; x++) { byte = *(buffer_ptr++); *ptr++ = 0xff000000 | (rgbQuads[byte].rgbRed << 16) | (rgbQuads[byte].rgbGreen << 8) | rgbQuads[byte].rgbBlue; } ptr -= w * 2; buffer_ptr += skip; if (progress) { char per; int ll; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { ll = y - pl; if (!progress (im, per, 0, im->h - y - 1, im->w, im->h - y + ll)) { free(buffer); return 2; } pper = per; pl = y; } } } } } else if (bitcount == 16) { /* 21.3.2006 - Need to check for buffer_ptr + 1 < buffer_end */ unsigned char *buffer_end_minus_1 = buffer_end - 1; skip = (((w * 16 + 31) / 32) * 4) - (w * 2); for (y = 0; y < h; y++) { for (x = 0; x < w && buffer_ptr < buffer_end_minus_1; x++) { /* * THIS WAS OLD CODE * * r = ((unsigned short)(*buffer_ptr) & rmask) >> rshift; * g = ((unsigned short)(*buffer_ptr) & gmask) >> gshift; * b = ((unsigned short)(*(buffer_ptr++)) & bmask) >> * bshift; * *ptr++ = 0xff000000 | (r << 16) | (g << 8) | b; */ unsigned short pix = *(unsigned short *)buffer_ptr; *ptr++ = 0xff000000 | ((((pix & rmask) >> rshift) << rleftshift) << 16) | ((((pix & gmask) >> gshift) << gleftshift) << 8) | ((((pix & bmask) >> bshift) << bleftshift)); buffer_ptr += 2; } ptr -= w * 2; buffer_ptr += skip; if (progress) { char per; int ll; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { ll = y - pl; if (!progress (im, per, 0, im->h - y - 1, im->w, im->h - y + ll)) { free(buffer); return 2; } pper = per; pl = y; } } } } else if (bitcount == 24) { /* 21.3.2006 - Fix: need to check for buffer_ptr + 2 < buffer_end */ unsigned char *buffer_end_minus_2 = buffer_end - 2; skip = (4 - ((w * 3) % 4)) & 3; for (y = 0; y < h; y++) { for (x = 0; x < w && buffer_ptr < buffer_end_minus_2; x++) { b = *(buffer_ptr++); g = *(buffer_ptr++); r = *(buffer_ptr++); *ptr++ = 0xff000000 | (r << 16) | (g << 8) | b; } ptr -= w * 2; buffer_ptr += skip; if (progress) { char per; int ll; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { ll = y - pl; if (!progress (im, per, 0, im->h - y - 1, im->w, im->h - y + ll)) { free(buffer); return 2; } pper = per; pl = y; } } } } else if (bitcount == 32) { /* 21.3.2006 - Need to check buffer_ptr + 3 < buffer_end */ unsigned char *buffer_end_minus_3 = buffer_end_minus_3; skip = (((w * 32 + 31) / 32) * 4) - (w * 4); for (y = 0; y < h; y++) { for (x = 0; x < w && buffer_ptr < buffer_end_minus_3; x++) { /* * THIS WAS OLD CODE: I don't understand it and it's invalid. * * r = ((unsigned long)(*buffer_ptr) & rmask) >> rshift; * g = ((unsigned long)(*buffer_ptr) & gmask) >> gshift; * b = ((unsigned long)(*buffer_ptr) & bmask) >> bshift; * *ptr++ = 0xff000000 | (r << 16) | (g << 8) | b; * r = *(buffer_ptr++); * r = *(buffer_ptr++); */ /* TODO: What about alpha channel...Is used? */ DATA32 pix = *(unsigned int *)buffer_ptr; *ptr++ = 0xff000000 | (((pix & rmask) >> rshift) << 16) | (((pix & gmask) >> gshift) << 8) | (((pix & bmask) >> bshift)); buffer_ptr += 4; } ptr -= w * 2; buffer_ptr += skip; if (progress) { char per; int ll; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { ll = y - pl; if (!progress (im, per, 0, im->h - y - 1, im->w, im->h - y + ll)) { free(buffer); return 2; } pper = per; pl = y; } } } } _bail: free(buffer); } return 1; } char save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity) { FILE *f; Imlib_Color pixel_color; int i, j, pad; if (!im->data) return 0; f = fopen(im->real_file, "wb"); if (!f) return 0; /* calculate number of bytes to pad on end of each row */ pad = (4 - ((im->w * 3) % 4)) & 0x03; /* write BMP file header */ WriteleShort(f, 0x4d42); /* prefix */ WriteleLong(f, 54 + 3 * im->w * im->h); /* filesize */ WriteleShort(f, 0x0000); /* reserved #1 */ WriteleShort(f, 0x0000); /* reserved #2 */ WriteleLong(f, 54); /* offset to image data */ /* write BMP bitmap header */ WriteleLong(f, 40); /* 40-byte header */ WriteleLong(f, im->w); WriteleLong(f, im->h); WriteleShort(f, 1); /* one plane */ WriteleShort(f, 24); /* bits per pixel */ WriteleLong(f, 0); /* no compression */ WriteleLong(f, 3 * im->w * im->h); for (i = 0; i < 4; i++) WriteleLong(f, 0x0000); /* pad to end of header */ /* write actual BMP data */ for (i = 0; i < im->h; i++) { for (j = 0; j < im->w; j++) { imlib_image_query_pixel(j, im->h - i - 1, &pixel_color); WriteleByte(f, pixel_color.blue); WriteleByte(f, pixel_color.green); WriteleByte(f, pixel_color.red); } for (j = 0; j < pad; j++) WriteleByte(f, 0); } fclose(f); return 1; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "bmp" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_id3.c0000664000175000017500000003617712255265152015707 00000000000000#include "loader_common.h" #include #include #include #include #include #include #include #if ! defined (__STDC_VERSION__) || __STDC_VERSION__ < 199901L #if __GNUC__ >= 2 #define inline __inline__ #else #define inline #endif #endif #ifdef __GNUC__ #define UNLIKELY(exp) __builtin_expect ((exp), 0) #else #define UNLIKELY(exp) (exp) #endif typedef struct context { int id; char *filename; struct id3_tag *tag; int refcount; struct context *next; } context; static context *id3_ctxs = NULL; static inline struct id3_frame * id3_tag_get_frame(struct id3_tag *tag, size_t index) { return tag->frames[index]; } static inline unsigned int id3_tag_get_numframes(struct id3_tag *tag) { return tag->nframes; } static inline char const * id3_frame_id(struct id3_frame *frame) { return frame->id; } static context * context_create(const char *filename) { context *node = (context *) malloc(sizeof(context)); context *ptr, *last; int last_id = INT_MAX; node->refcount = 1; { struct id3_file *file; struct id3_tag *tag; unsigned int i; file = id3_file_open(filename, ID3_FILE_MODE_READONLY); if (!file) { fprintf(stderr, "Unable to open tagged file %s: %s\n", filename, strerror(errno)); goto fail_free; } tag = id3_file_tag(file); if (!tag) { fprintf(stderr, "Unable to find ID3v2 tags in file %s\n", filename); id3_file_close(file); goto fail_free; } node->tag = id3_tag_new(); for (i = 0; i < id3_tag_get_numframes(tag); i++) if (!strcmp(id3_frame_id(id3_tag_get_frame(tag, i)), "APIC")) id3_tag_attachframe(node->tag, id3_tag_get_frame(tag, i)); id3_file_close(file); } node->filename = strdup(filename); if (!id3_ctxs) { node->id = 1; node->next = NULL; id3_ctxs = node; return node; } ptr = id3_ctxs; last = NULL; while (UNLIKELY(ptr && (ptr->id + 1) >= last_id)) { last_id = ptr->id; last = ptr; ptr = ptr->next; } /* Paranoid! this can occur only if there are INT_MAX contexts :) */ if (UNLIKELY(!ptr)) { fprintf(stderr, "Too many open ID3 contexts\n"); goto fail_close; } node->id = ptr->id + 1; if (UNLIKELY(! !last)) { node->next = last->next; last->next = node; } else { node->next = id3_ctxs; id3_ctxs = node; } return node; fail_close: free(node->filename); id3_tag_delete(node->tag); fail_free: free(node); return NULL; } static void context_destroy(context * ctx) { id3_tag_delete(ctx->tag); free(ctx->filename); free(ctx); } static inline void context_addref(context * ctx) { ctx->refcount++; } static context * context_get(int id) { context *ptr = id3_ctxs; while (ptr) { if (ptr->id == id) { context_addref(ptr); return ptr; } ptr = ptr->next; } fprintf(stderr, "No context by handle %d found\n", id); return NULL; } static context * context_get_by_name(const char *name) { context *ptr = id3_ctxs; while (ptr) { if (!strcmp(name, ptr->filename)) { context_addref(ptr); return ptr; } ptr = ptr->next; } return NULL; } static void context_delref(context * ctx) { ctx->refcount--; if (ctx->refcount <= 0) { context *last = NULL, *ptr = id3_ctxs; while (ptr) { if (ptr == ctx) { if (last) last->next = ctx->next; else id3_ctxs = ctx->next; context_destroy(ctx); return; } last = ptr; ptr = ptr->next; } } } static int str2int(const char *str, int old) { long index; errno = 0; index = strtol(str, NULL, 10); return ((errno || index > INT_MAX) ? old : (int)index); } static unsigned int str2uint(const char *str, unsigned int old) { unsigned long index; errno = 0; index = strtoul(str, NULL, 10); return ((errno || index > UINT_MAX) ? old : index); } static void destructor_data(ImlibImage * im, void *data) { free(data); } static void destructor_context(ImlibImage * im, void *data) { context_delref((context *) data); } typedef struct lopt { context *ctx; unsigned int index; int traverse; char cache_level; } lopt; static char get_options(lopt * opt, ImlibImage * im) { unsigned int handle = 0, index = 0, traverse = 0; context *ctx; if (im->key) { char *key = strdup(im->key); char *tok = strtok(key, ","); traverse = 0; while (tok) { char *value = strchr(tok, '='); if (!value) { value = tok; tok = (char *)"index"; } else { *value = '\0'; value++; } if (!strcasecmp(tok, "index")) index = str2uint(value, index); else if (!strcasecmp(tok, "context")) handle = str2uint(value, handle); else if (!strcasecmp(tok, "traverse")) traverse = str2int(value, traverse); tok = strtok(NULL, ","); } free(key); } else traverse = 1; if (!handle) { ImlibImageTag *htag = __imlib_GetTag(im, "context"); if (htag && htag->val) handle = htag->val; } if (handle) ctx = context_get(handle); else if (!(ctx = context_get_by_name(im->real_file)) && !(ctx = context_create(im->real_file))) return 0; if (!index) { ImlibImageTag *htag = __imlib_GetTag(im, "index"); if (htag && htag->val) index = htag->val; } if (index > id3_tag_get_numframes(ctx->tag) || (index == 0 && id3_tag_get_numframes(ctx->tag) < 1)) { if (index) fprintf(stderr, "No picture frame # %d found\n", index); context_delref(ctx); return 0; } if (!index) index = 1; opt->ctx = ctx; opt->index = index; opt->traverse = traverse; opt->cache_level = (id3_tag_get_numframes(ctx->tag) > 1 ? 1 : 0); return 1; } static int extract_pic(struct id3_frame *frame, int dest) { union id3_field *field; unsigned char const *data; id3_length_t length; int done = 0; field = id3_frame_field(frame, 4); data = id3_field_getbinarydata(field, &length); if (!data) { fprintf(stderr, "No image data found for frame\n"); return 0; } while (length > 0) { ssize_t res; if ((res = write(dest, data + done, length)) < 0) { if (errno == EINTR) continue; perror("Unable to write to file"); return 0; } length -= res; done += res; } return 1; } #define EXT_LEN 14 static char get_loader(lopt * opt, ImlibLoader ** loader) { union id3_field *field; char const *data; char ext[EXT_LEN + 2]; ext[EXT_LEN + 1] = '\0'; ext[0] = '.'; field = id3_frame_field(id3_tag_get_frame(opt->ctx->tag, opt->index - 1), 1); data = (char const *)id3_field_getlatin1(field); if (!data) { fprintf(stderr, "No mime type data found for image frame\n"); return 0; } if (strncasecmp(data, "image/", 6)) { if (!strcmp(data, "-->")) { *loader = NULL; return 1; } fprintf(stderr, "Picture frame with unknown mime-type \'%s\' found\n", data); return 0; } strncpy(ext + 1, data + 6, EXT_LEN); if (!(*loader = __imlib_FindBestLoaderForFile(ext, 0))) { fprintf(stderr, "No loader found for extension %s\n", ext); return 0; } return 1; } static const char *const id3_pic_types[] = { /* $00 */ "Other", /* $01 */ "32x32 pixels file icon", /* $02 */ "Other file icon", /* $03 */ "Cover (front)", /* $04 */ "Cover (back)", /* $05 */ "Leaflet page", /* $06 */ "Media", /* $07 */ "Lead artist/lead performer/soloist", /* $08 */ "Artist/performer", /* $09 */ "Conductor", /* $0A */ "Band/Orchestra", /* $0B */ "Composer", /* $0C */ "Lyricist/text writer", /* $0D */ "Recording Location", /* $0E */ "During recording", /* $0F */ "During performance", /* $10 */ "Movie/video screen capture", /* $11 */ "A bright coloured fish", /* $12 */ "Illustration", /* $13 */ "Band/artist logotype", /* $14 */ "Publisher/Studio logotype" }; #define NUM_OF_ID3_PIC_TYPES \ (sizeof(id3_pic_types) / sizeof(id3_pic_types[0])) static const char *const id3_text_encodings[] = { /* $00 */ "ISO-8859-1", /* $01 */ "UTF-16 encoded Unicode with BOM", /* $02 */ "UTF-16BE encoded Unicode without BOM", /* $03 */ "UTF-8 encoded Unicode" }; #define NUM_OF_ID3_TEXT_ENCODINGS \ (sizeof(id3_text_encodings) / sizeof(id3_text_encodings[0])) static void write_tags(ImlibImage * im, lopt * opt) { struct id3_frame *frame = id3_tag_get_frame(opt->ctx->tag, opt->index - 1); union id3_field *field; unsigned int num_data; char *data; if ((field = id3_frame_field(frame, 1)) && (data = (char *)id3_field_getlatin1(field))) __imlib_AttachTag(im, "mime-type", 0, strdup(data), destructor_data); if ((field = id3_frame_field(frame, 3)) && (data = (char *)id3_field_getstring(field))) { size_t length; char *dup; id3_ucs4_t *ptr = (id3_ucs4_t *) data; while (*ptr) ptr++; length = (ptr - (id3_ucs4_t *) data + 1) * sizeof(id3_ucs4_t); dup = (char *)malloc(length); memcpy(dup, data, length); __imlib_AttachTag(im, "id3-description", 0, dup, destructor_data); } if ((field = id3_frame_field(frame, 0))) { num_data = id3_field_gettextencoding(field); __imlib_AttachTag(im, "id3-description-text-encoding", num_data, num_data < NUM_OF_ID3_TEXT_ENCODINGS ? (char *)id3_text_encodings[num_data] : NULL, NULL); } if ((field = id3_frame_field(frame, 2))) { num_data = id3_field_getint(field); __imlib_AttachTag(im, "id3-picture-type", num_data, num_data < NUM_OF_ID3_PIC_TYPES ? (char *)id3_pic_types[num_data] : NULL, NULL); } __imlib_AttachTag(im, "count", id3_tag_get_numframes(opt->ctx->tag), NULL, NULL); if (opt->cache_level) { context_addref(opt->ctx); __imlib_AttachTag(im, "context", opt->ctx->id, opt->ctx, destructor_context); } __imlib_AttachTag(im, "index", opt->index, NULL, NULL); if (opt->traverse) { char *buf = NULL; if ((opt->index + opt->traverse) <= id3_tag_get_numframes(opt->ctx->tag) && (opt->index + opt->traverse) > 0) { buf = (char *)malloc((strlen(im->real_file) + 50) * sizeof(char)); sprintf(buf, "%s:index=%d,traverse=%d", im->real_file, opt->index + opt->traverse, opt->traverse); } __imlib_AttachTag(im, "next", 0, buf, destructor_data); } } char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { ImlibLoader *loader; lopt opt; int res; struct stat st; assert(im); if (stat(im->real_file, &st) < 0) return 0; if (!get_options(&opt, im)) return 0; if (!get_loader(&opt, &loader)) goto fail_context; if (loader) { char *ofile, tmp[] = "/tmp/imlib2_loader_id3-XXXXXX"; int dest; if ((dest = mkstemp(tmp)) < 0) { fprintf(stderr, "Unable to create a temporary file\n"); goto fail_context; } res = extract_pic(id3_tag_get_frame(opt.ctx->tag, opt.index - 1), dest); close(dest); if (!res) { unlink(tmp); goto fail_context; } ofile = im->real_file; im->real_file = strdup(tmp); res = loader->load(im, progress, progress_granularity, immediate_load); free(im->real_file); im->real_file = ofile; unlink(tmp); } else { /* The tag actually provides a image url rather than image data. * Practically, dunno if such a tag exists on earth :) * Here's the code anyway... */ union id3_field *field; id3_length_t length; char const *data; char *url, *file, *ofile; field = id3_frame_field (id3_tag_get_frame(opt.ctx->tag, opt.index - 1), 4); data = (char const *)id3_field_getbinarydata(field, &length); if (!data || !length) { fprintf(stderr, "No link image URL present\n"); goto fail_context; } url = (char *)malloc((length + 1) * sizeof(char)); strncpy(url, data, length); url[length] = '\0'; file = (strncmp(url, "file://", 7) ? url : url + 7); if (!(loader = __imlib_FindBestLoaderForFile(file, 0))) { fprintf(stderr, "No loader found for file %s\n", file); free(url); goto fail_context; } ofile = im->real_file; im->real_file = file; res = loader->load(im, progress, progress_granularity, immediate_load); if (!im->loader) __imlib_AttachTag(im, "id3-link-url", 0, url, destructor_data); else free(url); im->real_file = ofile; } if (!im->loader) write_tags(im, &opt); #ifdef DEBUG if (!im->loader) { ImlibImageTag *cur = im->tags; fprintf(stderr, "Tags for file %s:\n", im->file); while (cur) { fprintf(stderr, "\t%s: (%d) %s\n", cur->key, cur->val, (char *)cur->data); cur = cur->next; } } #endif context_delref(opt.ctx); return res; fail_context: context_delref(opt.ctx); return 0; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "mp3" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_argb.c0000664000175000017500000001077612255265152016140 00000000000000#include "loader_common.h" #define SWAP32(x) (x) = \ ((((x) & 0x000000ff ) << 24) |\ (((x) & 0x0000ff00 ) << 8) |\ (((x) & 0x00ff0000 ) >> 8) |\ (((x) & 0xff000000 ) >> 24)) char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { int w = 0, h = 0, alpha = 0; FILE *f; if (im->data) return 0; f = fopen(im->real_file, "rb"); if (!f) return 0; /* header */ { char buf[256], buf2[256]; buf[0] = '\0'; if (!fgets(buf, 255, f)) { fclose(f); return 0; } buf2[0] = '\0'; sscanf(buf, "%s %i %i %i", buf2, &w, &h, &alpha); if (strcmp(buf2, "ARGB")) { fclose(f); return 0; } if (!IMAGE_DIMENSIONS_OK(w, h)) { fclose(f); return 0; } im->w = w; im->h = h; if (!im->format) { if (alpha) SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); im->format = strdup("argb"); } } if (((!im->data) && (im->loader)) || (immediate_load) || (progress)) { DATA32 *ptr; int y, pl = 0; char pper = 0; /* must set the im->data member before callign progress function */ ptr = im->data = malloc(w * h * sizeof(DATA32)); if (!im->data) { fclose(f); return 0; } for (y = 0; y < h; y++) { #ifdef WORDS_BIGENDIAN { int x; fread(ptr, im->w, 4, f); for (x = 0; x < im->w; x++) SWAP32(ptr[x]); } #else fread(ptr, im->w, 4, f); #endif ptr += im->w; if (progress) { char per; int l; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { l = y - pl; if (!progress(im, per, 0, (y - l), im->w, l)) { fclose(f); return 2; } pper = per; pl = y; } } } } fclose(f); return 1; } char save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity) { FILE *f; DATA32 *ptr; int y, pl = 0, alpha = 0; char pper = 0; #ifdef WORDS_BIGENDIAN DATA32 *buf = (DATA32 *) malloc(im->w * 4); #endif /* no image data? abort */ if (!im->data) return 0; f = fopen(im->real_file, "wb"); if (!f) return 0; if (im->flags & F_HAS_ALPHA) alpha = 1; fprintf(f, "ARGB %i %i %i\n", im->w, im->h, alpha); ptr = im->data; for (y = 0; y < im->h; y++) { #ifdef WORDS_BIGENDIAN { int x; memcpy(buf, ptr, im->w * 4); for (x = 0; x < im->w; x++) SWAP32(buf[x]); fwrite(buf, im->w, 4, f); } #else fwrite(ptr, im->w, 4, f); #endif ptr += im->w; if (progress) { char per; int l; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { l = y - pl; if (!progress(im, per, 0, (y - l), im->w, l)) { #ifdef WORDS_BIGENDIAN if (buf) free(buf); #endif fclose(f); return 2; } pper = per; pl = y; } } } /* finish off */ #ifdef WORDS_BIGENDIAN if (buf) free(buf); #endif fclose(f); return 1; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "argb", "arg" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } imlib2-1.4.6/src/modules/loaders/loader_common.h0000664000175000017500000000072412255265053016512 00000000000000#ifndef __LOADER_COMMON_H #define __LOADER_COMMON_H 1 #include "config.h" #include "common.h" #include "image.h" EAPI char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load); EAPI char save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity); EAPI void formats(ImlibLoader * l); #endif /* __LOADER_COMMON_H */ imlib2-1.4.6/src/modules/loaders/loader_tga.c0000664000175000017500000004103312255265152015766 00000000000000/* * loader_tga.c - Loader for Truevision Targa images * for Imlib2 * * by Dan Maas May 15, 2000 * * based on TGA specifications available at: * http://www.wotsit.org/cgi-bin/search.cgi?TGA * * header/footer structures courtesy of the GIMP Targa plugin */ #include "loader_common.h" #include #include #include "colormod.h" #include "blend.h" /* flip an inverted image - see RLE reading below */ static void tgaflip(DATA32 * in, int w, int h); /* TGA pixel formats */ #define TGA_TYPE_MAPPED 1 #define TGA_TYPE_COLOR 2 #define TGA_TYPE_GRAY 3 #define TGA_TYPE_MAPPED_RLE 9 #define TGA_TYPE_COLOR_RLE 10 #define TGA_TYPE_GRAY_RLE 11 /* TGA header flags */ #define TGA_DESC_ABITS 0x0f #define TGA_DESC_HORIZONTAL 0x10 #define TGA_DESC_VERTICAL 0x20 #define TGA_SIGNATURE "TRUEVISION-XFILE" typedef struct { unsigned char idLength; unsigned char colorMapType; unsigned char imageType; unsigned char colorMapIndexLo, colorMapIndexHi; unsigned char colorMapLengthLo, colorMapLengthHi; unsigned char colorMapSize; unsigned char xOriginLo, xOriginHi; unsigned char yOriginLo, yOriginHi; unsigned char widthLo, widthHi; unsigned char heightLo, heightHi; unsigned char bpp; unsigned char descriptor; } tga_header; typedef struct { unsigned int extensionAreaOffset; unsigned int developerDirectoryOffset; char signature[16]; char dot; char null; } tga_footer; /* * Write an uncompressed RGBA 24- or 32-bit targa to disk * (If anyone wants to write a RLE saver, feel free =) */ char save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity) { FILE *f; DATA32 *dataptr; unsigned char *buf, *bufptr; int y, pl = 0; char pper = 0; tga_header header; if (!im->data) return 0; f = fopen(im->real_file, "wb"); if (!f) return 0; /* assemble the TGA header information */ /* most entries are zero... */ memset(&header, 0x0, sizeof(header)); /* uncompressed RGB Targa identifier */ header.imageType = TGA_TYPE_COLOR; /* image width, low byte */ header.widthLo = im->w & 0xFF; /* image width, high byte */ header.widthHi = im->w >> 8; /* image height, low byte */ header.heightLo = im->h & 0xFF; /* image height, high byte */ header.heightHi = im->h >> 8; /* total number of bits per pixel */ header.bpp = (im->flags & F_HAS_ALPHA) ? 32 : 24; /* number of extra (alpha) bits per pixel */ header.descriptor = (im->flags & F_HAS_ALPHA) ? 8 : 0; /* top-to-bottom storage */ header.descriptor |= TGA_DESC_VERTICAL; /* allocate a buffer to receive the BGRA-swapped pixel values */ buf = malloc(im->w * im->h * ((im->flags & F_HAS_ALPHA) ? 4 : 3)); if (!buf) { fclose(f); return 0; } /* now we have to read from im->data into buf, swapping RGBA to BGRA */ dataptr = im->data; bufptr = buf; /* for each row */ for (y = 0; y < im->h; y++) { int x; unsigned char r, g, b, a; /* for each pixel in the row */ for (x = 0; x < im->w; x++) { if (im->flags & F_HAS_ALPHA) { READ_RGBA(dataptr, r, g, b, a); *bufptr++ = b; *bufptr++ = g; *bufptr++ = r; *bufptr++ = a; } else { READ_RGB(dataptr, r, g, b); *bufptr++ = b; *bufptr++ = g; *bufptr++ = r; } dataptr++; } /* end for (each pixel in row) */ /* report progress every row */ if (progress) { char per; int l; per = (char)((100 * y) / im->h); if (((per - pper) >= progress_granularity) || (y == (im->h - 1))) { l = y - pl; if (!progress(im, per, 0, (y - l), im->w, l)) { free(buf); fclose(f); return 2; } pper = per; pl = y; } } } /* write the header */ fwrite(&header, sizeof(header), 1, f); /* write the image data */ fwrite(buf, 1, im->w * im->h * ((im->flags & F_HAS_ALPHA) ? 4 : 3), f); free(buf); fclose(f); return 1; } /* Load up a TGA file * * As written this function only recognizes the following types of Targas: * Type 02 - Uncompressed RGB, 24 or 32 bits * Type 03 - Uncompressed grayscale, 8 bits * Type 10 - RLE-compressed RGB, 24 or 32 bits * Type 11 - RLE-compressed grayscale, 8 bits * There are several other (uncommon) Targa formats which this function can't currently handle */ char load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { int fd; void *seg, *filedata; struct stat ss; int bpp, vinverted = 0; int rle = 0, footer_present = 0; tga_header *header; tga_footer *footer; if (im->data) return 0; fd = open(im->real_file, O_RDONLY); if (fd < 0) return 0; if (fstat(fd, &ss) < 0) { close(fd); return 0; } if (ss.st_size < (long)(sizeof(tga_header) + sizeof(tga_footer))) { close(fd); return 0; } seg = mmap(0, ss.st_size, PROT_READ, MAP_SHARED, fd, 0); if (seg == MAP_FAILED) { close(fd); return 0; } filedata = seg; header = (tga_header *) filedata; footer = (tga_footer *) ((char *)filedata + ss.st_size - sizeof(tga_footer)); /* check the footer to see if we have a v2.0 TGA file */ if (memcmp(footer->signature, TGA_SIGNATURE, sizeof(footer->signature)) == 0) footer_present = 1; if (!footer_present) { } /* skip over header */ filedata = (char *)filedata + sizeof(tga_header); /* skip over alphanumeric ID field */ if (header->idLength) filedata = (char *)filedata + header->idLength; /* now parse the header */ /* this flag indicated bottom-up pixel storage */ vinverted = !(header->descriptor & TGA_DESC_VERTICAL); switch (header->imageType) { case TGA_TYPE_COLOR_RLE: case TGA_TYPE_GRAY_RLE: rle = 1; break; case TGA_TYPE_COLOR: case TGA_TYPE_GRAY: rle = 0; break; default: munmap(seg, ss.st_size); close(fd); return 0; } /* bits per pixel */ bpp = header->bpp; if (!((bpp == 32) || (bpp == 24) || (bpp == 8))) { munmap(seg, ss.st_size); close(fd); return 0; } /* endian-safe loading of 16-bit sizes */ im->w = (header->widthHi << 8) | header->widthLo; im->h = (header->heightHi << 8) | header->heightLo; if (!IMAGE_DIMENSIONS_OK(im->w, im->h)) { munmap(seg, ss.st_size); close(fd); return 0; } if (!im->format) { if (bpp == 32) SET_FLAG(im->flags, F_HAS_ALPHA); else UNSET_FLAG(im->flags, F_HAS_ALPHA); im->format = strdup("tga"); } /* if we need to actually read the pixel data... */ if (((!im->data) && (im->loader)) || (immediate_load) || (progress)) { unsigned long datasize; unsigned char *bufptr, *bufend; DATA32 *dataptr; int y; /* allocate the destination buffer */ im->data = malloc(im->w * im->h * sizeof(DATA32)); if (!im->data) { im->w = 0; munmap(seg, ss.st_size); close(fd); return 0; } /* first we read the file data into a buffer for parsing */ /* then we decode from RAM */ /* find out how much data must be read from the file */ /* (this is NOT simply width*height*4, due to compression) */ datasize = ss.st_size - sizeof(tga_header) - header->idLength - (footer_present ? sizeof(tga_footer) : 0); /* buffer is ready for parsing */ /* bufptr is the next byte to be read from the buffer */ bufptr = filedata; bufend = bufptr + datasize; /* dataptr is the next 32-bit pixel to be filled in */ dataptr = im->data; /* decode uncompressed BGRA data */ if (!rle) { for (y = 0; y < im->h; y++) /* for each row */ { int x; /* point dataptr at the beginning of the row */ if (vinverted) /* some TGA's are stored upside-down! */ dataptr = im->data + ((im->h - y - 1) * im->w); else dataptr = im->data + (y * im->w); for (x = 0; (x < im->w) && (bufptr + bpp / 8 <= bufend); x++) /* for each pixel in the row */ { switch (bpp) { /* 32-bit BGRA pixels */ case 32: WRITE_RGBA(dataptr, *(bufptr + 2), /* R */ *(bufptr + 1), /* G */ *(bufptr + 0), /* B */ *(bufptr + 3) /* A */ ); dataptr++; bufptr += 4; break; /* 24-bit BGR pixels */ case 24: WRITE_RGBA(dataptr, *(bufptr + 2), /* R */ *(bufptr + 1), /* G */ *(bufptr + 0), /* B */ (char)0xff /* A */ ); dataptr++; bufptr += 3; break; /* 8-bit grayscale */ case 8: WRITE_RGBA(dataptr, /* grayscale */ *bufptr, *bufptr, *bufptr, (char)0xff); dataptr++; bufptr += 1; break; } } /* end for (each pixel) */ } if (progress) { progress(im, 100, 0, 0, im->w, im->h); } /* end for (each row) */ } /* end if (!RLE) */ /* decode RLE compressed data */ else { unsigned char curbyte, red, green, blue, alpha; DATA32 *final_pixel = dataptr + im->w * im->h; /* loop until we've got all the pixels or run out of input */ while ((dataptr < final_pixel) && ((bufptr + 1 + (bpp / 8)) <= bufend)) { int count; curbyte = *bufptr++; count = (curbyte & 0x7F) + 1; if (curbyte & 0x80) /* RLE packet */ { int i; switch (bpp) { case 32: blue = *bufptr++; green = *bufptr++; red = *bufptr++; alpha = *bufptr++; for (i = 0; (i < count) && (dataptr < final_pixel); i++) { WRITE_RGBA(dataptr, red, green, blue, alpha); dataptr++; } break; case 24: blue = *bufptr++; green = *bufptr++; red = *bufptr++; for (i = 0; (i < count) && (dataptr < final_pixel); i++) { WRITE_RGBA(dataptr, red, green, blue, (char)0xff); dataptr++; } break; case 8: alpha = *bufptr++; for (i = 0; (i < count) && (dataptr < final_pixel); i++) { WRITE_RGBA(dataptr, alpha, alpha, alpha, (char)0xff); dataptr++; } break; } } /* end if (RLE packet) */ else /* raw packet */ { int i; for (i = 0; (i < count) && (dataptr < final_pixel) && ((bufptr + (bpp / 8)) <= bufend); i++) { switch (bpp) { /* 32-bit BGRA pixels */ case 32: WRITE_RGBA(dataptr, *(bufptr + 2), /* R */ *(bufptr + 1), /* G */ *(bufptr + 0), /* B */ *(bufptr + 3) /* A */ ); dataptr++; bufptr += 4; break; /* 24-bit BGR pixels */ case 24: WRITE_RGBA(dataptr, *(bufptr + 2), /* R */ *(bufptr + 1), /* G */ *(bufptr + 0), /* B */ (char)0xff /* A */ ); dataptr++; bufptr += 3; break; /* 8-bit grayscale */ case 8: WRITE_RGBA(dataptr, *bufptr, /* pseudo-grayscale */ *bufptr, *bufptr, (char)0xff); dataptr++; bufptr += 1; break; } } } /* end if (raw packet) */ } /* end for (each packet) */ /* must now flip a bottom-up image */ if (vinverted) tgaflip(im->data, im->w, im->h); if (progress) { progress(im, 100, 0, 0, im->w, im->h); } /* end for (each row) */ } /* end if (image is RLE) */ } /* end if (loading pixel data) */ munmap(seg, ss.st_size); close(fd); return 1; } void formats(ImlibLoader * l) { static const char *const list_formats[] = { "tga" }; int i; l->num_formats = sizeof(list_formats) / sizeof(char *); l->formats = malloc(sizeof(char *) * l->num_formats); for (i = 0; i < l->num_formats; i++) l->formats[i] = strdup(list_formats[i]); } /**********************/ /* flip a DATA32 image block vertically in place */ static void tgaflip(DATA32 * in, int w, int h) { DATA32 *adv, *adv2; int x, y; adv = in; adv2 = in + (w * (h - 1)); for (y = 0; y < (h / 2); y++) { DATA32 tmp; for (x = 0; x < w; x++) { tmp = adv[x]; adv[x] = adv2[x]; adv2[x] = tmp; } adv2 -= w; adv += w; } } imlib2-1.4.6/src/modules/filters/0000775000175000017500000000000012255306373013620 500000000000000imlib2-1.4.6/src/modules/filters/filter_test.c0000664000175000017500000000554012255265152016233 00000000000000#include "filter_common.h" #include void init(struct imlib_filter_info *info) { static const char *const filters[] = { "tint", "cool_text", "gradient" }; int i = 0; info->name = strdup("Test Filter"); info->author = strdup("Chris Ross - Boris - chris@darkrock.co.uk"); info->description = strdup ("This filter is used to show that the imlib2 filter system works!"); info->num_filters = 3; info->filters = malloc(sizeof(char *) * 3); for (i = 0; i < info->num_filters; i++) info->filters[i] = strdup(filters[i]); } void deinit(void) { return; } void * exec(char *filter, void *im, pIFunctionParam params) { Imlib_Image imge = im; Imlib_Image anoim; IFunctionParam *ptr; if (strcmp(filter, "tint") == 0) { Imlib_Color_Modifier cm; DATA8 atab[256]; int x = 0, y = 0, w = 0, h = 0; DATA8 r = 255, b = 255, g = 255, a = 255; /* printf( "filter_test.c: tint called\n" ); */ /* Set friendly defaults */ imlib_context_set_image(imge); w = imlib_image_get_width(); h = imlib_image_get_height(); for (ptr = params; ptr; ptr = ptr->next) { ASSIGN_DATA8("red", r); ASSIGN_DATA8("blue", b); ASSIGN_DATA8("green", g); ASSIGN_INT("x", x); ASSIGN_INT("y", y); ASSIGN_INT("w", w); ASSIGN_INT("h", h); ASSIGN_DATA8("alpha", a); } /* printf( "Using values red=%d,blue=%d,green=%d,x=%d,y=%d,height=%d,width=%d,alpha=%d\n", r,b,g,x,y,w,h,a ); */ anoim = imlib_create_image(w, h); cm = imlib_create_color_modifier(); imlib_context_set_color_modifier(cm); imlib_context_set_image(anoim); imlib_context_set_color(r, g, b, 255); imlib_image_fill_rectangle(0, 0, w, h); imlib_context_set_blend(1); imlib_image_set_has_alpha(1); memset(atab, a, sizeof(atab)); imlib_set_color_modifier_tables(NULL, NULL, NULL, atab); imlib_apply_color_modifier_to_rectangle(0, 0, w, h); imlib_context_set_image(imge); imlib_blend_image_onto_image(anoim, 0, 0, 0, w, h, x, y, w, h); imlib_free_color_modifier(); imlib_context_set_image(anoim); imlib_free_image_and_decache(); imlib_context_set_image(imge); return imge; } #if 0 /* Nothing useful here */ if (strcmp(filter, "cool_text") == 0) { return imge; } if (strcmp(filter, "gradient") == 0) { int angle = 0; for (ptr = params; ptr; ptr = ptr->next) { ASSIGN_INT("angle", angle); } return imge; } #endif return imge; } imlib2-1.4.6/src/modules/filters/Makefile.in0000664000175000017500000006277312255306302015614 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/modules/filters DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkgdir)" LTLIBRARIES = $(pkg_LTLIBRARIES) bumpmap_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_bumpmap_la_OBJECTS = bumpmap_la-filter_bumpmap.lo bumpmap_la_OBJECTS = $(am_bumpmap_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = bumpmap_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(bumpmap_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(AM_CFLAGS) $(CFLAGS) $(bumpmap_la_LDFLAGS) $(LDFLAGS) -o $@ colormod_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_colormod_la_OBJECTS = colormod_la-filter_colormod.lo colormod_la_OBJECTS = $(am_colormod_la_OBJECTS) colormod_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(colormod_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(colormod_la_LDFLAGS) \ $(LDFLAGS) -o $@ testfilter_la_DEPENDENCIES = $(top_builddir)/src/lib/libImlib2.la am_testfilter_la_OBJECTS = testfilter_la-filter_test.lo testfilter_la_OBJECTS = $(am_testfilter_la_OBJECTS) testfilter_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(testfilter_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testfilter_la_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(bumpmap_la_SOURCES) $(colormod_la_SOURCES) \ $(testfilter_la_SOURCES) DIST_SOURCES = $(bumpmap_la_SOURCES) $(colormod_la_SOURCES) \ $(testfilter_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = Makefile.in AM_CFLAGS = $(CWARNFLAGS) AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/lib pkgdir = $(libdir)/imlib2/filters pkg_LTLIBRARIES = testfilter.la bumpmap.la colormod.la EXTRA_DIST = filter_common.h testfilter_la_SOURCES = filter_test.c testfilter_la_LDFLAGS = -module -avoid-version testfilter_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la testfilter_la_LIBTOOLFLAGS = --tag=disable-static bumpmap_la_SOURCES = filter_bumpmap.c bumpmap_la_LDFLAGS = -module -avoid-version bumpmap_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la -lm bumpmap_la_LIBTOOLFLAGS = --tag=disable-static colormod_la_SOURCES = filter_colormod.c colormod_la_LDFLAGS = -module -avoid-version colormod_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la colormod_la_LIBTOOLFLAGS = --tag=disable-static all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/filters/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/modules/filters/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ } uninstall-pkgLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ done clean-pkgLTLIBRARIES: -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) @list='$(pkg_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } bumpmap.la: $(bumpmap_la_OBJECTS) $(bumpmap_la_DEPENDENCIES) $(EXTRA_bumpmap_la_DEPENDENCIES) $(AM_V_CCLD)$(bumpmap_la_LINK) -rpath $(pkgdir) $(bumpmap_la_OBJECTS) $(bumpmap_la_LIBADD) $(LIBS) colormod.la: $(colormod_la_OBJECTS) $(colormod_la_DEPENDENCIES) $(EXTRA_colormod_la_DEPENDENCIES) $(AM_V_CCLD)$(colormod_la_LINK) -rpath $(pkgdir) $(colormod_la_OBJECTS) $(colormod_la_LIBADD) $(LIBS) testfilter.la: $(testfilter_la_OBJECTS) $(testfilter_la_DEPENDENCIES) $(EXTRA_testfilter_la_DEPENDENCIES) $(AM_V_CCLD)$(testfilter_la_LINK) -rpath $(pkgdir) $(testfilter_la_OBJECTS) $(testfilter_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bumpmap_la-filter_bumpmap.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/colormod_la-filter_colormod.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testfilter_la-filter_test.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< bumpmap_la-filter_bumpmap.lo: filter_bumpmap.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(bumpmap_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bumpmap_la-filter_bumpmap.lo -MD -MP -MF $(DEPDIR)/bumpmap_la-filter_bumpmap.Tpo -c -o bumpmap_la-filter_bumpmap.lo `test -f 'filter_bumpmap.c' || echo '$(srcdir)/'`filter_bumpmap.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bumpmap_la-filter_bumpmap.Tpo $(DEPDIR)/bumpmap_la-filter_bumpmap.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='filter_bumpmap.c' object='bumpmap_la-filter_bumpmap.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(bumpmap_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bumpmap_la-filter_bumpmap.lo `test -f 'filter_bumpmap.c' || echo '$(srcdir)/'`filter_bumpmap.c colormod_la-filter_colormod.lo: filter_colormod.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(colormod_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT colormod_la-filter_colormod.lo -MD -MP -MF $(DEPDIR)/colormod_la-filter_colormod.Tpo -c -o colormod_la-filter_colormod.lo `test -f 'filter_colormod.c' || echo '$(srcdir)/'`filter_colormod.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/colormod_la-filter_colormod.Tpo $(DEPDIR)/colormod_la-filter_colormod.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='filter_colormod.c' object='colormod_la-filter_colormod.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(colormod_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o colormod_la-filter_colormod.lo `test -f 'filter_colormod.c' || echo '$(srcdir)/'`filter_colormod.c testfilter_la-filter_test.lo: filter_test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(testfilter_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testfilter_la-filter_test.lo -MD -MP -MF $(DEPDIR)/testfilter_la-filter_test.Tpo -c -o testfilter_la-filter_test.lo `test -f 'filter_test.c' || echo '$(srcdir)/'`filter_test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/testfilter_la-filter_test.Tpo $(DEPDIR)/testfilter_la-filter_test.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='filter_test.c' object='testfilter_la-filter_test.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(testfilter_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testfilter_la-filter_test.lo `test -f 'filter_test.c' || echo '$(srcdir)/'`filter_test.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(pkgdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-pkgLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-pkgLTLIBRARIES install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkgLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkgLTLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-pkgLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/src/modules/filters/Makefile.am0000664000175000017500000000155512255265152015601 00000000000000MAINTAINERCLEANFILES = Makefile.in AM_CFLAGS = $(CWARNFLAGS) AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/lib pkgdir = $(libdir)/imlib2/filters pkg_LTLIBRARIES = testfilter.la bumpmap.la colormod.la EXTRA_DIST = filter_common.h testfilter_la_SOURCES = filter_test.c testfilter_la_LDFLAGS = -module -avoid-version testfilter_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la testfilter_la_LIBTOOLFLAGS = --tag=disable-static bumpmap_la_SOURCES = filter_bumpmap.c bumpmap_la_LDFLAGS = -module -avoid-version bumpmap_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la -lm bumpmap_la_LIBTOOLFLAGS = --tag=disable-static colormod_la_SOURCES = filter_colormod.c colormod_la_LDFLAGS = -module -avoid-version colormod_la_LIBADD = $(top_builddir)/src/lib/libImlib2.la colormod_la_LIBTOOLFLAGS = --tag=disable-static imlib2-1.4.6/src/modules/filters/filter_bumpmap.c0000664000175000017500000001567712255265152016731 00000000000000#include "filter_common.h" #include #include #include "colormod.h" #include "blend.h" #define PI (4 * atan(1)) static Imlib_Image bump_map(Imlib_Image im, pIFunctionParam par) { Imlib_Image map = im; pIFunctionParam ptr; double an = 0, el = 30, d = 0x200; double red = 0x200, green = 0x200, blue = 0x200; double ambient = 0; int free_map = 0; DATA32 *src; DATA32 *mp, *mpy, *mpp; double z, x2, y2; int w, h, i, j, w2, h2, wh2, mx, my; for (ptr = par; ptr; ptr = ptr->next) { ASSIGN_IMAGE("map", map); ASSIGN_INT("angle", an); ASSIGN_INT("elevation", el); ASSIGN_INT("depth", d); ASSIGN_INT("red", red); ASSIGN_INT("green", green); ASSIGN_INT("blue", blue); ASSIGN_INT("ambient", ambient); } if (!map) return im; red /= 0x100; green /= 0x100; blue /= 0x100; ambient /= 0x100; d /= 0x100; imlib_context_set_image(im); src = imlib_image_get_data(); w = imlib_image_get_width(); h = imlib_image_get_height(); imlib_context_set_image(map); mpp = imlib_image_get_data_for_reading_only(); w2 = imlib_image_get_width(); h2 = imlib_image_get_height(); wh2 = w2 * h2; an *= (PI / 180); el *= (PI / 180); x2 = sin(an) * cos(el); y2 = cos(an) * cos(el); z = sin(el); d /= (255 * (255 + 255 + 255)); my = h2; for (j = h; --j >= 0;) { mp = mpp; mpp += w2; if (--my <= 0) { mpp -= wh2; my = h2; } mpy = mpp; mx = w2; for (i = w; --i >= 0;) { double x1, y1, v; int r, g, b, gr; gr = A_VAL(mp) * (R_VAL(mp) + G_VAL(mp) + B_VAL(mp)); y1 = d * (double)(A_VAL(mpy) * (R_VAL(mpy) + G_VAL(mpy) + B_VAL(mpy)) - gr); mp++; mpy++; if (--mx <= 0) { mp -= w2; mpy -= w2; mx = w2; } x1 = d * (double)(A_VAL(mp) * (R_VAL(mp) + G_VAL(mp) + B_VAL(mp)) - gr); v = x1 * x2 + y1 * y2 + z; v /= sqrt((x1 * x1) + (y1 * y1) + 1.0); v += ambient; r = v * R_VAL(src) * red; g = v * G_VAL(src) * green; b = v * B_VAL(src) * blue; if (r < 0) r = 0; if (r > 255) r = 255; if (g < 0) g = 0; if (g > 255) g = 255; if (b < 0) b = 0; if (b > 255) b = 255; R_VAL(src) = r; G_VAL(src) = g; B_VAL(src) = b; src++; } } if (free_map) { imlib_context_set_image(map); imlib_free_image(); } return im; } static Imlib_Image bump_map_point(Imlib_Image im, pIFunctionParam par) { Imlib_Image map = im; pIFunctionParam ptr; double x = 0, y = 0, z = 30, d = 0x200; double red = 0x200, green = 0x200, blue = 0x200; double ambient = 0; int free_map = 0; DATA32 *src; DATA32 *mp, *mpy, *mpp; double z_2, x2, y2; int w, h, i, j, w2, h2, wh2, mx, my; for (ptr = par; ptr; ptr = ptr->next) { ASSIGN_IMAGE("map", map); ASSIGN_INT("x", x); ASSIGN_INT("y", y); ASSIGN_INT("z", z); ASSIGN_INT("depth", d); ASSIGN_INT("red", red); ASSIGN_INT("green", green); ASSIGN_INT("blue", blue); ASSIGN_INT("ambient", ambient); } if (!map) return im; red /= 0x100; green /= 0x100; blue /= 0x100; ambient /= 0x100; d /= 0x100; imlib_context_set_image(im); src = imlib_image_get_data(); w = imlib_image_get_width(); h = imlib_image_get_height(); imlib_context_set_image(map); mpp = imlib_image_get_data_for_reading_only(); w2 = imlib_image_get_width(); h2 = imlib_image_get_height(); wh2 = w2 * h2; d /= (255 * (255 + 255 + 255)); z_2 = z * z; my = h2; y2 = -y; for (j = h; --j >= 0;) { mp = mpp; mpp += w2; if (--my <= 0) { mpp -= wh2; my = h2; } mpy = mpp; mx = w2; x2 = -x; for (i = w; --i >= 0;) { double x1, y1, v; int r, g, b, gr; gr = A_VAL(mp) * (R_VAL(mp) + G_VAL(mp) + B_VAL(mp)); y1 = d * (double)(A_VAL(mpy) * (R_VAL(mpy) + G_VAL(mpy) + B_VAL(mpy)) - gr); mp++; mpy++; if (--mx <= 0) { mp -= w2; mpy -= w2; mx = w2; } x1 = d * (double)(A_VAL(mp) * (R_VAL(mp) + G_VAL(mp) + B_VAL(mp)) - gr); v = x1 * x2 + y1 * y2 + z; v /= sqrt((x1 * x1) + (y1 * y1) + 1.0); v /= sqrt((x2 * x2) + (y2 * y2) + z_2); v += ambient; r = v * R_VAL(src) * red; g = v * G_VAL(src) * green; b = v * B_VAL(src) * blue; if (r < 0) r = 0; if (r > 255) r = 255; if (g < 0) g = 0; if (g > 255) g = 255; if (b < 0) b = 0; if (b > 255) b = 255; R_VAL(src) = r; G_VAL(src) = g; B_VAL(src) = b; x2++; src++; } y2++; } if (free_map) { imlib_context_set_image(map); imlib_free_image(); } return im; } void init(struct imlib_filter_info *info) { static const char *const filters[] = { "bump_map_point", "bump_map" }; int i = (sizeof(filters) / sizeof(*filters)); info->name = strdup("Bump Mapping"); info->author = strdup("Willem Monsuwe (willem@stack.nl)"); info->description = strdup ("Provides bumpmapping to a point and bumpmapping from an infinite light source. *very* cool."); info->num_filters = i; info->filters = malloc(sizeof(char *) * i); while (--i >= 0) info->filters[i] = strdup(filters[i]); } void deinit() { return; } void * exec(char *filter, void *im, pIFunctionParam par) { if (!strcmp(filter, "bump_map")) return bump_map((Imlib_Image) im, par); if (!strcmp(filter, "bump_map_point")) return bump_map_point((Imlib_Image) im, par); return im; } imlib2-1.4.6/src/modules/filters/filter_common.h0000664000175000017500000000052612255265053016550 00000000000000#ifndef __FILTER_COMMON_H #define __FILTER_COMMON_H 1 #include "config.h" #include "common.h" #include "dynamic_filters.h" #include "image.h" EAPI void init(struct imlib_filter_info *info); EAPI void deinit(void); EAPI void *exec(char *filter, void *im, pIFunctionParam params); #endif /* __FILTER_COMMON_H */ imlib2-1.4.6/src/modules/filters/filter_colormod.c0000664000175000017500000001475012255265152017075 00000000000000#include "filter_common.h" #include #include #define GET_INT(x, ptr) (((ptr)->type == VAR_PTR) ? \ (x) = (*(int *)(ptr)->data) : \ ((ptr)->type == VAR_CHAR) ? \ (x) = strtol((ptr)->data, 0, 0) \ : 0) #define GET_DOUBLE(x, ptr) (((ptr)->type == VAR_PTR) ? \ (x) = (*(double *)(ptr)->data) : \ ((ptr)->type == VAR_CHAR) ? \ (x) = strtod((ptr)->data, 0) \ : 0) static void mod_brightness(double t[256], double v) { int i; for (i = 256; --i >= 0;) t[i] += v; } static void mod_contrast(double t[256], double v) { int i; for (i = 256; --i >= 0;) t[i] = ((t[i] - 0.5) * v) + 0.5; } static void mod_gamma(double t[256], double v) { int i; for (i = 256; --i >= 0;) t[i] = pow(t[i], 1 / v); } static void mod_tint(double t[256], double v) { int i; for (i = 256; --i >= 0;) t[i] *= v; } static Imlib_Image colormod(Imlib_Image im, pIFunctionParam par) { double a_d[256], r_d[256], g_d[256], b_d[256]; DATA8 a_b[256], r_b[256], g_b[256], b_b[256]; pIFunctionParam ptr; int x = 0, y = 0, h, w, i; double v = 0.0; imlib_context_set_image(im); w = imlib_image_get_width(); h = imlib_image_get_height(); for (i = 256; --i >= 0;) a_d[i] = r_d[i] = g_d[i] = b_d[i] = (double)i / 255; for (ptr = par; ptr; ptr = ptr->next) { if (!strcmp("x", ptr->key)) { GET_INT(x, ptr); } else if (!strcmp("y", ptr->key)) { GET_INT(y, ptr); } else if (!strcmp("w", ptr->key)) { GET_INT(w, ptr); } else if (!strcmp("h", ptr->key)) { GET_INT(h, ptr); } else if (!memcmp("brightness", ptr->key, 10)) { GET_DOUBLE(v, ptr); if (!ptr->key[10]) { mod_brightness(r_d, v); mod_brightness(g_d, v); mod_brightness(b_d, v); mod_brightness(a_d, v); } else if (!strcmp("_r", ptr->key + 10)) { mod_brightness(r_d, v); } else if (!strcmp("_g", ptr->key + 10)) { mod_brightness(g_d, v); } else if (!strcmp("_b", ptr->key + 10)) { mod_brightness(b_d, v); } else if (!strcmp("_a", ptr->key + 10)) { mod_brightness(a_d, v); } } else if (!memcmp("contrast", ptr->key, 8)) { GET_DOUBLE(v, ptr); if (!ptr->key[8]) { mod_contrast(r_d, v); mod_contrast(g_d, v); mod_contrast(b_d, v); mod_contrast(a_d, v); } else if (!strcmp("_r", ptr->key + 8)) { mod_contrast(r_d, v); } else if (!strcmp("_g", ptr->key + 8)) { mod_contrast(g_d, v); } else if (!strcmp("_b", ptr->key + 8)) { mod_contrast(b_d, v); } else if (!strcmp("_a", ptr->key + 8)) { mod_contrast(a_d, v); } } else if (!memcmp("gamma", ptr->key, 5)) { GET_DOUBLE(v, ptr); if (!ptr->key[5]) { mod_gamma(r_d, v); mod_gamma(g_d, v); mod_gamma(b_d, v); mod_gamma(a_d, v); } else if (!strcmp("_r", ptr->key + 5)) { mod_gamma(r_d, v); } else if (!strcmp("_g", ptr->key + 5)) { mod_gamma(g_d, v); } else if (!strcmp("_b", ptr->key + 5)) { mod_gamma(b_d, v); } else if (!strcmp("_a", ptr->key + 5)) { mod_gamma(a_d, v); } } else if (!memcmp("tint", ptr->key, 4)) { GET_DOUBLE(v, ptr); if (!ptr->key[4]) { mod_tint(r_d, v); mod_tint(g_d, v); mod_tint(b_d, v); mod_tint(a_d, v); } else if (!strcmp("_r", ptr->key + 4)) { mod_tint(r_d, v); } else if (!strcmp("_g", ptr->key + 4)) { mod_tint(g_d, v); } else if (!strcmp("_b", ptr->key + 4)) { mod_tint(b_d, v); } else if (!strcmp("_a", ptr->key + 4)) { mod_tint(a_d, v); } } } for (i = 256; --i >= 0;) { if (a_d[i] < 0) a_d[i] = 0; if (a_d[i] > 1) a_d[i] = 1; a_b[i] = a_d[i] * 255; if (r_d[i] < 0) r_d[i] = 0; if (r_d[i] > 1) r_d[i] = 1; r_b[i] = r_d[i] * 255; if (g_d[i] < 0) g_d[i] = 0; if (g_d[i] > 1) g_d[i] = 1; g_b[i] = g_d[i] * 255; if (b_d[i] < 0) b_d[i] = 0; if (b_d[i] > 1) b_d[i] = 1; b_b[i] = b_d[i] * 255; } imlib_context_set_color_modifier(imlib_create_color_modifier()); imlib_set_color_modifier_tables(r_b, g_b, b_b, a_b); imlib_apply_color_modifier_to_rectangle(x, y, w, h); imlib_free_color_modifier(); return im; } void init(struct imlib_filter_info *info) { static const char *const filters[] = { "colormod" }; int i = (sizeof(filters) / sizeof(*filters)); info->name = strdup("Tinting"); info->author = strdup("Willem Monsuwe (willem@stack.nl)"); info->description = strdup("Provides most common color modification filters."); info->num_filters = i; info->filters = malloc(sizeof(char *) * i); while (--i >= 0) info->filters[i] = strdup(filters[i]); } void deinit() { return; } void * exec(char *filter, void *im, pIFunctionParam par) { if (!strcmp(filter, "colormod")) return colormod((Imlib_Image) im, par); return im; } imlib2-1.4.6/aclocal.m40000664000175000017500000013176112255306277011505 00000000000000# generated automatically by aclocal 1.13.4 -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # 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 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. # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # 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. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # PKG_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable pkgconfigdir as the location where a module # should install pkg-config .pc files. By default the directory is # $libdir/pkgconfig, but the default can be changed by passing # DIRECTORY. The user can override through the --with-pkgconfigdir # parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_INSTALLDIR # PKG_NOARCH_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable noarch_pkgconfigdir as the location where a # module should install arch-independent pkg-config .pc files. By # default the directory is $datadir/pkgconfig, but the default can be # changed by passing DIRECTORY. The user can override through the # --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_NOARCH_INSTALLDIR # Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.13' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.13.4], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.13.4])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # Figure out how to run the assembler. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_AS # ---------- AC_DEFUN([AM_PROG_AS], [# By default we simply use the C compiler to build assembly code. AC_REQUIRE([AC_PROG_CC]) test "${CCAS+set}" = set || CCAS=$CC test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl ]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/ac_warnflags.m4]) m4_include([m4/libtool.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) m4_include([m4/ltversion.m4]) m4_include([m4/lt~obsolete.m4]) imlib2-1.4.6/data/0000775000175000017500000000000012255306373010622 500000000000000imlib2-1.4.6/data/Makefile.in0000664000175000017500000004453612255306302012613 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = data DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = Makefile.in SUBDIRS = fonts images all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu data/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/data/images/0000775000175000017500000000000012255306373012067 500000000000000imlib2-1.4.6/data/images/sh3.png0000664000175000017500000000055012137523370013207 00000000000000‰PNG  IHDR2Î|oQÓgAMA± üa pHYs  ÒÝ~ü IDATxœíÏ1 Ã@Á±þÿb9°¾p‚ÂtÁfË@¶ý¶ÝÛ¾wòwºõêÞµ?Qˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ¢)DSˆ¦M!šB4…h Ñ<Ÿ»2¡!.¼×IEND®B`‚imlib2-1.4.6/data/images/sh1.png0000664000175000017500000000140012137523370013200 00000000000000‰PNG  IHDR22?ˆ±gAMA± üa pHYs  ÒÝ~ü¢IDATxœÝšÛnÄ DÝjÿÿ‡sÙ¾ôxgÆcȶUWBpÈœ‚mõ#"žñ~Ò_Á­ŽßþŒ ’oF“ý¦ ½ïA ºíÕû—çE[ë‰ c]û[æzÆ3õsÙµ³"YÜêø[æ¬|Mؽž§5¦¢–zàLÿ[mÙÖؤìAgó%ܶg ± 0–sò¾¥‚¶Ö¬È™1Úº—9û,Tî[½¶ïÉydP@'i×Ìæ-m7jUªïGlªÓïX3 TW"fmi|D‰WN{Ö¶ü¨©€”W¬cëŒÓ𛯕c³»¢VÇJËØ—aÔƒ;";åedœ sÜ$¶5ߘGò Tp³]$L‰ec—~wEî^¡CŒO]«+„L%Øb6—6Ëìw„_ôÐܧÄVõ¥¯›OQW[ ÕŽh ìî#Š‘ÛwØ”‡F‘}¤ò•J Íú^ìÕ«.‚P_E&°°Õ«®‚ »rFÄØ-ÊÑW y)ÕLJ ©¢Ó H‰D3Kõ9Èñ•*ì:P ¨‚ÝËêF9ü¯ ˆ‰ÞÍñ#"v÷“i7«+ jU²ØÜa;±;‰ÐMŒLäX;6ò¬… :PL¼»"{*°Z‘™ì®¢—ë#Y¨j_@Fÿ¨ ²ƒ;y¤òäPp•RŸLD7·dáleFqH4šùˆ½š•@T6Çnå¬ÕÍö`òX~:0Îú‰³­ò m ÐÉð޳#˜µÙ«®ŠXݬ®ª‹ Ìöüç&G7Ó» ²JŒLýÃÀŸý]C´ ˆù‰‚ª"—ãèhkm±[‹äkÀÎZ _»YPÉ¡7C°Ð«þ }*ô*‡GáwûY´Ä[ÒàÊIEND®B`‚imlib2-1.4.6/data/images/paper.png0000664000175000017500000000652212137523370013626 00000000000000‰PNG  IHDR00Wù‡gAMA† 1è–_ IDATxÚíYkŒ]ÕuþÖ>¯{ï9wÞ¶gllÏcÌ#¿ ŸÏǯô _Q¬Ü¹ŸuÔ7­êu„p,+çÒ ô÷ˆk,ðËô !Ä]›×?¶ûáíw ˆ ˆ@ôÑïÒu Ü´ryñ™¿ýÓý=>ÙÙ‘/$~IDhxùÀÐm›Æ~¿G‰È±Óþü=fR.êÛùwóÍ'{Ë¡C"_"ÿ#aŸ¢×Ûýð¶¯cv*­KDäv€ €Ü‚ÎõVK’6»žWztçÖïlÚ0úá[Þ;à Á.ô 9ñÿ<ckGn¿çÎß°l¾R;yêì介~¿ &€ð/ûÞxóÔ™ ±µÃÿøí§~w¯ç:¾Â$\"ò:ÖAnçÿ(©EðëFWŽ~ùñž#AcR)Ä­ä4Ÿˆ\‚¥OKs{&¥–Rÿ@*=tÓªåÏüÁWŸ|B$ÈBøDäàp-‹xgp 7züK÷~Ûô”RH©¦™ àÑ¢rW\OBy¤ÑñŸŸžÛóÈöÇ“4+þîå+ÝŸŸüè®ë‰÷~úßxëWQ,øÐZ`ïo·l¼ÅR„Zõ2Þø‰Çß-»Žv´ hÉÐJC ­µžƒg@ 0`Àæì¹éÎOÌ\!°8 3˜™Áv3ûX ëºëÃ0üzE_s]÷^fv™yÚó\ñoÿú£·„<øöÛïЦM›°zÍü „óçÎà¾ñç^¹Ú0´ÖðƒÖo¸–-[‰Ç~ c8—…ÔȤD–IdR!ËÒ,­”êáj­9ûÞÑic´Äêœ_[6#)fÑžçݼaÆïmÞ¼ù!!Dqbb‚§¦¦¾Çñ?=þȶKõF|çþýûñâ‹/b``{öìÁ·Þ5kÇJýûöáðáÃÇ–-[ µÆªÕëP*¡V™µR1ÐZ[ðJçz3ˆWp’d•ŸþÙû™T©M€d† ˜óldS*wx===¿¾mÛ¶GÆÇǽf³Io¾ù&Åq<†¥?öƒÀ­Õªxå•Wh~~ív›™iš ·^{m?â8¦àرcüꫯBJ‰V«Ï©¶“¡•‚R R*(£Á h®Ö’ƱŸ='¥’20I.gN;–ïH¨C ìyÞýQy…Bív»ãr'šœ©Ñ'ó³Ïþ=·Z víÚ…F£3'`õØF´Ûm<óÌ3˜™™Áž={ešÍ&’$A;IÐI¹J(­ò{»Ëf0$©’GŸ¹¤”V (mb 0V:Ÿð@”rhrr‡B£ÑÀìì,„þ_ÄÑ£GP,Å¡ÿ…‰s¿@«>‡áÕq߃aëÖ­\«ÕðÔSO¡Ñh Ýn£R¹Œf}ÚæuÕ™ÚÀ0ÀlÎ#óôÙ©T*­µ-ðuM0·8O*Ü…””²=== fF–ehµZ(•Jˆ¢ˆ¢(9çÏÂÌô9¸Žá€€‰3'0¶nž~úi(¥RJT« 8{ê}°Î ”^ô‚Ö Ã &òØàV’fX &  fg“se×’Ð3Ÿ­×ë|߇ïûâ(B…p ÑhÆPÚ‡çûðáoìÿÊ}+àex~€´ÝÂÔ…SH“Jk´Zm´³ ÆÆÛÔI¶Úš¯ÔUšÉ@BÓfœU€̈¯_éLk½ßqœßaæ¢çyÃða!mU'mhÙ€=Ž`6`f,Ì¥? V¥lÆÉ$æj ApY)å›rðÔ‡s1€„rÍ×í¬è€oÛ}©c}ÓÉž‹i4˲wÇùaE{{zz¢0 Q.GÃ¥bóÏCÉZIÈT¡PÈày>èÚ=µ­erðJkLL]„TŒþ¾¤I¼¸‰q¾3ñôÌ|–´³€fnqTòÉuþxðÊ+ÁŒ€ÖºZ©Tž £(ð…Ja I\C³¾Y”V AAƒ™lI§Hcëš¶Ìp¹Ò‘‡ÁÁ2z˦š Íy5@Œ4“<5}©nÁב˦p•õ®Mëªà?q ‰ãx®^¯Š¢R{dyÿÝZ§…¹™IÌΜG&SH©rk@+©²üÄ„ÔnNõF ³s—qnb–î¹}3ÆV£¸íÕZZk”RæÄÉóÕv;[P!`„iÓfÌ[µºÎü¿`fŠã¸9;;{xýèÐHàêÛÛIS¤iFJ*è¼â Ci©²T¡ÕJ0;WÁôÌ<.^Z@’dèé-“ç»(øBˆå½ú£¡/ÐSt‰zÍÈ@ ´n/ë5̘jgò<€9ëŽþ•ÿ‰Ó]ë` ÀÛ¼qôÑLéß |ï¾,ËHÏ6Œ¸Õ†ì”B T,¢T* ·7BO¡¿¿Ê=ŠÅ"šÍSg±r0äÑ}ÜßS®K0H3‰…z‚jSÖÏUÝÚÁƒÿ¬^¯ŸôuWuú™~NLWņ̃ñëóñ©Žÿ÷0iÿORÑIEND®B`‚imlib2-1.4.6/data/images/Makefile.in0000664000175000017500000003505012255306302014047 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = data/images DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(filesdir)" DATA = $(files_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = Makefile.in FILES = \ audio.png \ bg.png \ bulb.png \ cal.png \ calc.png \ folder.png \ globe.png \ imlib2.png \ lock.png \ mail.png \ menu.png \ mush.png \ paper.png \ sh1.png \ sh2.png \ sh3.png \ stop.png \ tnt.png filesdir = $(pkgdatadir)/data/images files_DATA = $(FILES) EXTRA_DIST = $(FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/images/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu data/images/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-filesDATA: $(files_DATA) @$(NORMAL_INSTALL) @list='$(files_DATA)'; test -n "$(filesdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(filesdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(filesdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(filesdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(filesdir)" || exit $$?; \ done uninstall-filesDATA: @$(NORMAL_UNINSTALL) @list='$(files_DATA)'; test -n "$(filesdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(filesdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(filesdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-filesDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-filesDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-filesDATA \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am uninstall-filesDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/data/images/tnt.png0000664000175000017500000000570212137523370013323 00000000000000‰PNG  IHDR00Wù‡gAMA† 1è–_ yIDATxÚí™Ûd×UÆûœSUÝÕ==×´=ö46"%‘!‰°K( ðÀÓ¼Ì[þ‰<òv²i ‘AXƒÀQŒíŒa,p.‡™ö8ã¹tϵ/u9·}ß›‡ÞÕœ”&ã1{"ùH¥³OÕ©ªo­ý­oëløäøäøäø•>į ¾Ø½(qàb.ˆ8?~—¿õǧƣRŒª*ûÃ?ûË—S3@|¤(´þ­?9%b|!j³¶[–iÈàÖ[?»öûôÊk·p¸4Ä Ü>ý§Ïj)_ÔÆ ÖdÕ2©Œ2DPZSY…²~ù™Õc£7®n\ž«ø±ÍÀ¿zñ„°î¼–rMÄ@n=Ú(¼±d¤VTV1m5Ôhožþ)%½JTòÅÇþ›^é…wxï@¯ÊX¤Ò´^ÓjËnÝ2m%ÛU+ƒ‰>.Q(+>ðgt+O-fàcÀK·Õje¨¥d»iÐÎ!c§i˜JÍÕñäp o“‚æYwÿóMY¯y£Ñ™eˆÁ£[C)5µl©Œ¦TšRjZc˜Jt^{ó}` h€1û(ÀO_>}ÊsÞ+½&¼CĈkÆhL«)¥b\Õì´-£V2iS)µŠÒZî–Õ[ÀXè‚ÿHŠxúòéSÂÛ3ÂZ´”ˆ@Z%)<4Z3ªk&ZR*Ín%µ’Z[Zçp!ìž»rãm`1pè,h¿Ü"ÞùûoŸñFŸÖ’u Ö[ Æ3–šZIÆjô¨–L•¤5–Ö;\ŒöÇ·ßú[‘uƒx¨ê³…X>éâÃÜ¿ù—Nô"/fÞê…€wçªj Þ­§1&oÙmZFµ¢ÖŠJ¤÷(ØÜÿàδšÎ² X'rfÄýœà}³~öô Õ¨óÚèµA‘#b@iCT†º5"F&Jr·l˜4ŠJ)J­Q! |`·¬××ïnm$Ð&UʼM‘=dös ŸÍÄÀ?«u^x·&¬ÃMÝJ¦“©“²aÔ´T­dW6l×-µÔL¤¤2†Ö¤ (c·~xãÖÅÒ¤—LòY¥@܇q£³ûÜ/”Éøö)§Ì™¦®é…€·†¬ÈA[Z%‰ÚÑ*C#%¥lW-ãFRIEc,­ó(0ÎO_÷ýó ¼L`ËôRIFMš Q<$}zi¬ïG£Íï¼ôͪl^ìñZ“é Ðu‹5š¦V8ç‘JQj…´Ž²UÔJ¡§qé<Úùé«—Þ{µÃ÷Ù¢Õ¤`ê.}vDÒ_ÒÍÓæÌx\ž Æ „ GDÄ€n5RI¼v´ZÓJEe4S­©Û=ÚÔÆÑ:‡ö¢ýÞÅ÷^íX“þ¯NàgÔ16€ ¦ñxöå{¯ü͉ܚ3ªQÏcðZ#z9‹EŽ®5uÛ¢¤Þ˼Ô4VÓä–´ÚÐKãõØí¯ß|³3Ë3ð*]W)ÝifxXÍ€åΘÝùÛg£’gœ2kZ¶èV²˜ D 4e³–º–ÔJ“…@i$•¶hc©”fª Ê{ëÑÞÛ^Ý<·UÕuGéffM&îÏ‚rÝnì3ÐQœ<¹@€|ûÌŸŸzÿµ7ÎllÞ¢t#C«‡W8zp…liHY*jµG›€§Ö–Fjv›–©64Öí­öG×6ßLà»ÝV—>:2ã~·­ŒE}¶èaù¤ósÀ‹ÄÇ!°šÞ[üë3ÿüBt\dY†s0ŠU–ì4V –-3Èr¤3(çh”fÔ¶”JS[Kë­óìL«+[U]u´]¥¢QGw®ùög —4~y–^yú|x<p`˜‡5x"1€ž ".³l+3rÛ°²¸€Î •†I»gÌ&Ú"½G‡Èö´¼taãöå-f4Q)ó³@lg1sYÚ¯ Ž$àuº¹—àà‰ô…cƒ^Êttd½H¿gp±‡v9Adô²œÖX&J1V†Ê*ëÞ#½g{Z]º°q{}ÖUu2=“Ê:n›ÆM'€Ÿ[‹Šå“.Ög‹*ñüé$™€¡8¸DÖ /ŸÚ»{øäÊ0Ðj0‘^fX*œË)ë>6æôò <÷”Æ1’ :Dtë'6n_êŸQ§»ÒÎ@OS7é3=G£Ÿ+âÄWÉúŸ½Ã·éŒ >oŸÉ—>Sõÿv Îž?Uôeÿ~Y`Û‚ã+}œô¸ý¢`j°!à\ÿÝ+ßíPffÎT'ó³ìwi;–¢+£ûþ¦Hœd ÇÉω|á·Åà±ÙàS¿Aqà ¢wh%“½Åvk©¨¿rôèœ[·¼~¹æN%YZ°\ô@r±§ºU…òãƒ}õâå—ç vV´“¸LçqO:AÈDŸØu3àyâ|A>¼#ò…ŒbùwD±òŒ>D¾p ˆDûå§ŸÊB¹x}|óÆàð¹Ë–·oXVŒ[ËvU³:Ч‡GPMk=!ûÎÆíï%Uë3ÕÉtÝ‘ÎY0³÷gÅѳѽYèYý£Q,ߥ·¢Åpm-;ð¹L,ÏAĨï~:ïò¥vôöÍ{Åõ‘8ðÌãGðºÏúΔÆZ´ 3œqÔ΀ݲYß©êq¯;þ¦NYn;Ê3í\ËŽ}ˆ÷óaE§ËÉyŸ|aQ >åÄÂñ-1üõãâÀç{ÙÒgö4«¹²(ÛÚ½·µýøÄNwãÇÜÊת6ÒØ%nLZÆJ±ÔïábänÕèí²¾ü“[;Z^w¨3˴윫ŽÌ?Ð&ï7A–!ŠŒâ`#úG¥è]ƒ½u,Ú‘È{KÅSÇ«oüÞâîÝÙýÉ¿þçÕܼwüwC\ù|ðáеI~g\N.ÝÞº}u{g'q¾k d‡ë3©,;cÙ)Ú.mâƒØ[š…o\O>öx½úø“Õâ¡¢d0Ũ·@P»ßš#Ã6wn÷ùÞáúé¯)ÜXî_ÛþþOãë—ïŠÁ¨KJûØy¢l; ê9ŽOæ¤Sέ¾a^uî@Üï9cP¯¼UÿÁáƒw¾öüWbñÅ/­D!j„\µUuMûìNÙåd çâòçNˆ_[=DoõPœüÇzÛP¶Xãp1¢|Ø/Ö*žt¨Rvøo:jã?(ûÝö¦Ùì´_ÿ­Õ¿¸9ÒÃ~¯Õã[\Ô„;ODD"[÷¦º(•»¶±Ó»sá¿ïÝ0+“š£ýO‡¿ø´X|âqký­¦ni[M©-Ó™&ðÍœê4¾»Ž\~`.’ë¥G ô?&²…/Q,¯‰Å'r‘/Ÿˆ¾ù*€(V^·Î¯O'»wßy÷^ùÝówíùŸVÃk÷8¢ -± ,9ƒ"Ç;±ŽVY¦UKiýþÊ:£ÔLt§Ïõ ¾[ÿceíXÅâÀû"ïßÂLú‘Ñ(ºêIŸ¯\t>¿ÒTM¹³;Òãi+‹ ! ¡Q8` ²,Cä2¤´ |3ç{dGZݼÓ|èf}ù¤óõÙ}A*qU]Õ‹ýf(²~ˆ®þ,@VØŸ©Jß¼ws[7Uô;%ƒi­$.„}þ!’s~ßwÕ¥û¤Átœfw ‰À\õ¾•6;*î­×¢+ocã(øJ"¦u´;%:µ©0‹´®¸NQÚ97éæ<¾XÊ[äéóEà™ôö;©ØüòI7kzºÍO÷A™ïô·bŽßaN"ÿWàj£»>[ôSŸp}ù¤3s{¸³DgñŠ÷Q’î9~¥ùeîÔ‹¹ÍèùMéø;íñÿøÿü7Ûå1àÄÚ [IEND®B`‚imlib2-1.4.6/data/images/globe.png0000664000175000017500000000647412137523370013615 00000000000000‰PNG  IHDR00Wù‡gAMA† 1è–_ óIDATxÚíš[Œ]çUÇß÷í½ÏýÌŒgÆÇvì$¾$qì6RÚ@/¢åÒE‚"@ ñH@âŠàñˆàÞ’—R!ñЊ6jBDÝ8I_âØq|™Û™s?û콿gŸÉÎñŒí\*^º¥¥3g{fïÿ}ký¿µÖgøéõÓëc]â'øL±Ã;ü.ŸÿïDnræ»Ø@Ѧ÷ÜG%óq Èð©©Â½ÝLÛüg7sßÿ¤ ˆÀAású³š!15mS0»!ÿI(zv 6œ?öÌü¡§¾ö«GVÔ3‹õìäë÷üìÁÕÆ¡ù×ÖÔpNõoûýK¯¿=üáÙW_þnwkuèܲ‚MïÍùDˆG>ûW§æ?þ§Qmþ·¬úÅ£‰j[H&K0: M%{ªÚ£ g4flìµË­ïœ;så…sož¿$À8ÿL€t";^êC€ß”Ÿxî›?ÿÀ©zä`x깟¹)6Ût¬!WØE(§hÖAhHÑ4$剱²Ô”G÷?4ÿs‹åw/ܺ”€°–³9³«b©^Ñÿùü§ýê7^¬ÏÕž­Ë„ß?='Ž4ØêÃzgaÜÔÙ'#Vª!÷U«È¤Ê™‹u¯øÌ%^žãä}U–çË'NŸ:ðÌf×\ßjõ’™¼¹'ÙUüÉßûÇ/ìðÔ‹ÍŠ:²·ûµ2O?uPÌ/îá±s|éÉC?àÜ͘smÇ‚ xoËòåãu;Öd4Yï¦<| ÁkëŸÿÔ^:P™ú‘¥Ÿ»ÙÒk×o´ó;¨Öm$îF`üñßzþñzq®,üù¯ÌóG¿\ce¥†Pû…K æBppT¤ÇˆúžçVÇ\XM™ž“+ŠŸrÍZî( eõFEÛóÄå÷â«këdfì.ûÇ] L6*'íÏ^hT¢#ýõC<ýhD•@4H@ÜDŒR‚#ûçyæä1ž<¾ÌG÷P®j.lŽyòt••c{ #K$$?º<äð\‚·)íÞ8Ü·´çèK/_x½°nÆn#¡î!iKŸyî_ÿ®Ù(={êþ:¿ó…H¹Ìå¹—ðùw1RZ„4ëK=(9²°²¢Ê5@’‡œ èŽFt6‡Þ‹HذٸÿÀüÜ™³WÞ-˜înF‘<3¿“d†ýú_~ªÑ\ø“HEüáqæÏìÔ/΂3q.ë!PBÈ —®xéL‡¸?DU"L©ÄͶ#†Ú‰Ø@¯súô‰Ÿ=~ìð1` Ø4:PÎøDWwóþƒ_ùã¿©Ôk§ªAÀçöwqÙujµ¡’Âï—€½Àç x?á·n­ë,Ö=zÆŠã/w¿]¶ßþïoeɈ4MI¬&Õ)Z[2cÑÎqc}D@”k¤#3:µx£¹qSsñFÌ N9Ôa²”—/'h!2Ê•òýþD0Ù ãõ«×s Ó±Kš[V ±c5Z,%B ”õ×uynÿrPªõœ58«±Æa&NS±·Þå±$ioÌ81$qÆßLxùíŒXOÂëÁ¥g¯X6bAˆÀá'òéAL˜à= ×®Ýì®^½™—±C ´sëæõÐ8'ãÔ]æ?!PÜüñ•¹•O ÌYçÁd8“â\†ÓN´[ /eŒû’ Ëw^iño h‰·eãYm{¶2 Ü4Ø¥?ùæ=d£þpýü«çrp£¼cj¬—“J¦eµØ¥™ óú£™wFûëˇŸZyì+!ÃR!A9@zM]xU#š2|Úg˜j¼/áòzȶÇO^+%¸I8 ,V§ºõÖ«oÄýv7Ù6[ÛÈïò²ê.CÛ)™0‹{™Iz­Jmá”ð6DOZFmKÂÑšD Ryï˃— „$Îæß÷Ñ4ö½ÀI‰×Fo]úßóq·ÕÍÃcT­Ü:9±i¿êv ¡ÝF‰A:ìÄÙ¨{«ÜX>âU©f­Bx-¼KÁeàR ’‚‘p(6x‰#@l+·Ç ‰õ‡[^9?învòÐ(†N+·­Bø¤Iõê.óþÙ)´Òã~Ò½uþRT_lFõæŠÀá Âgxo&1í=øáí¶Ã%%“ÍË!®¾ssó͗ΛtçÀ¦à;9è)n~êý©ŒÞóhq¶&£Í«7ÓÞÚª Ëå Z_¹–LDQâ s"&ßeí„ Ö[76¶.¾zi¸zy­Ð.w¿•¯D¿÷¦ £ìV g2Y¡S…ÑãîªwW7£rea~åøQêË+a¥9/‚JU„¥ÀúÞã²A¢GÝQÒkuG›ïµœÉtáÙSÅ™&n1tÚ¹lÁ ”÷AÞLTóÞt>Ÿ×,æ6Ÿ[=ÿiãìP=£ Î)z¿]ß™ñ~qãN+°Ó*ÌMALçûÓæ»R—`ÅfwùBÒò$í¬;£:f§à.ñ?%av¹—d¯‘Oj…)ÚìÌ¿èýâßN ôrO½Ïxþ¶ƒŽà’xúGfÄ”@Qúj3Óƒâ(ÐßÀ”İ<™‰ûOiî…À,‰bÁW ƒÙÑGThÅ¡—HLGzã™–¹ÛÓG=ä+ÖJQazF³ øl˜*ÍÙèÁœcÖÙsa5ZÍxV…Ü̫١i¹§ÃïsÐ-îÐt«$´ŽE+žèSûO⿈]Lîò_ â?ê ýôú?•EçÇnÃIEND®B`‚imlib2-1.4.6/data/images/Makefile.am0000664000175000017500000000050412137523370014037 00000000000000MAINTAINERCLEANFILES = Makefile.in FILES = \ audio.png \ bg.png \ bulb.png \ cal.png \ calc.png \ folder.png \ globe.png \ imlib2.png \ lock.png \ mail.png \ menu.png \ mush.png \ paper.png \ sh1.png \ sh2.png \ sh3.png \ stop.png \ tnt.png filesdir = $(pkgdatadir)/data/images files_DATA = $(FILES) EXTRA_DIST = $(FILES) imlib2-1.4.6/data/images/audio.png0000664000175000017500000001024712137523370013617 00000000000000‰PNG  IHDR00Wù‡gAMA† 1è–_^IDATxÚíšYŒdWyÇçœ[{UïÓÝÓ3Ó³Ú3Áa0¶Ù+f1FÆ !äHI”üÁÛã7x–,­ígë„~SüÝwžoïéߟkÄ0×ÜØ3×éÖ«6Yžš,ñb×MWrâ?ñ[÷?ð®;Þï—¸j¯ÁÉ1ñª´œS¬|ÛúÕüÙzþüð¯oY®|ì³·S;s%æÔË>sjÈ\3àÒ–Ï\+Aˆ ÃðáÝËø‹{?ù»+%y‰¨2ñ•‚ð P/=Sç .>ÓâÙ˜cƘ2­j;ñ_ùÆã 'VFÿò;ïkä wN;û–÷‹›÷ÏÒnjúY›o9¼£Ê-‡¦ÉdG-ÎʽÍÓ¿¹ï†w?úÓŸ=‰ÂB()¥°ÖÚÒ9  4€&0L“Å÷Ð.~¯•$%KL(KùÕ~âŒ|ð± _ýèѹÏ|þβÕh#B³4§xÛKÜx`©F¼i‘猆¾çíF¨©?òÜIkm«!…ÆqcŒQ%®7 B§Y`ªô¹£xÞ)ÞuJRcñ–Ò|ã'g8Òù½wìò¤Õë :Å{S@Ž‚é‰6Ïs:ë.ª&é­Rœ0 îûÄ=yò;ßýþÀzRJ„üßÜÿ¡[Þ²t_«¥îØ}&Ì[iØ‹.»Y÷ø™­•o<òâó/^ÜØ*¸œà[@è{¥wò«\Ú ?Ýjµ§Ž]`Ì*ósÓÌLÍ1Ñô6GU0!u¸¸òÎ['¸<_çk?vÙ=“·§gÚŸTJ=$„õ¿ùÓ{ï¼ëƒ·}yzjòˆª(´ª¢½@$iŒI‡éååewùÎ÷ÝòÞgÏv7øÖ#O?wn}½ Ð/$3QHm«Ð¯d æ*ÂæÂòȹŽ­M0Qó¹aÏIŒJ˜DpS[1í(”Ðí¾ù=<¶Î³ç3†n$&ñ¥Ôq!„ûÏõù/Ý~Çmïo´[(¥‘J|„SG™”Äi¡j +-êÀ»ë•ù—î¹ûÁÿøù™¯?ü̉B•¦Jv1V%Sr·ú*äéA£5q*éæ‚8™7d*#Ö†õÌ’:5™óÖ%Á·žöyòlVàFŠ(—ÓJ©å¯|é÷îÜ1³Ïë®Xì.ŒQµMp4ƒ`³hL`â˜<Œh©ŒÜ~膉jeòo¿ýÄ3…Ô ÂEAtTH(äUF¼të=éTj i-Ö¤˜<åèNGîh–K§ôÝ?ŒøÑ³ß}jDàG“’ÐZØÛv9s7.ÍîR¢"hÔ µºÂ©+œªÁiÍéhªõ:N»‰”!ëT¤Â˜+jìh;Mdµqêâ†[?¦3/¹Úȯ0ÿ¶~Ñ‘j›cóaÞy¨#öN’$`&Ø4ä›?ùÑ ®"òINfcnžÊ'2k@VDÍÇ‘(åÐìÔ©7« 2!T«jHcäèj$Ø0Æ’¢-쟞\Ûòâµ-7. ×±alà ]¥Bi>Kç°ÕU!Ejg;šÝÓ¶*ðsÍfœ¡ý„ó[)y’@‚ÍEØ ÇÈ^˜“ˆ‹G³Ù ÕL™^˜B6v@£$Ãæ9J@ª¦ÐYJ£¢@¾cŽÖp@hís×;í}òôj·P¥ `¦°ö8V\ÀI‚‡b+~ÛfÕªR9›™¦ïÖ˜®ç¤Æ0r#ž?chŠ„½­˜—ü°EòbÙ5USÁб2wd›Ð™BÌD¶—EœFá(´Õ -•4ƶæÉu†Œ Ýr™œìa·"nR­ÃÎÍœ>¿²Y1U¿ @É2€»Þqà{¡78æ‡aÒsC^,yœræ\Ä£'\ækWÜ!œWbJCäv¸¹Fœd„IJšj²D£SÎ2ÈB Çê¥#lž’‹µòÇè\ƒ­¢S‡8ÍÐIÂM‡–æJ‘¼VŠÔ@]eýðß³ß8ú®3£‘ÿñlu2mu¢°©6¡ŠÅZ‘YÿvWÏë…™‰št”h6jLL´Xœ›{wN±gy–¥=;˜ÛwæŽd»#lm'Yæ,ÕÅ}T [“„¾ Í6Ns‚D:b¤jø¹•Ç^ºt¡äûG…¶®)€“ÇŸž{ìàMoùó™‡îö³Ú{µ¬.[œF–xšt+‘ñ(MÝ ë†AE¡l–ØZE‰ºÕT³'12ÈnFÖ’Þ/"QlÈÒœ02ˆJ+%A³¹¢mÎ ¯D)C~l‰"“oK¥m! õªdn[yǹOõyñÔ£À%!Ä)å‚RjV)5©”jK)kRJØ8ÉL]"† Æi昭ŒnÔil M3"§ÊÒáÝ„±"OZVéöc6F.[ƒ«#7Œ·ÕãïúU¹P‰xSD»qà‹[kSkmbŒ©Œst!Dî@<ߪ´•„Åv¥©:;fª4§êÔêÕZ£G(9 ´åìÏΑ)‡ /Ã#ü$'ÔeZˆ¬bk®Ax>.v^ @^îÖÞ¶Ö¶¬µMkmÍZ+1Ba1™BºIÂT­ÓnÕ+ÌÖ$“:µvg²…jTˆ3p¦$õ(c˜'ähõ‹Ãê3MrÓ&&4à HP¡™iz—6û%ºt ¯Næ®Ä;¥jÈZkó‚èT‘!ª€Xí½…™Úp©55Ýafv†ÙɪVÁhCœE˜4ƒÍMbé"¥ÕŒé‡7N±:!«ÕèÅhk3¬\é JúŸ”r¡øµ$PF;*å µ6|kí˜1ÆL5!D0?9uY>´û…@§1ÃnR”ìIài²Ä’Š:½î6Ü/ʉ㔠Ɉ2Ö¶hQ8¼ôòê¥r®\ÐáÄg¯*h^£Í1b!D`­ÖÚE`Ñ3U” @=vìüÚáÍ÷Þ´øV»0M†Ø "•’¡Ÿ‘IÇ ƒ$ ¢”¨2ÉÔì.f[‚ `uu{¸ý­‹W[Bk­g¡^ ,Ààü’®ÅØhk­B$ÖÚØZ;²ÖŽ„¯$WÖÚà|íáŸ?Ô¬¿§º7æpGj†¹Àè”zôè}“““³½þ ûØ£ÿýàO<ù­,ËümFŸWuòÌ¥ÇO]{lÿ®Å#3íæ-ªR=И˜^Z˜ßéäIÊå+ë~`6tõ– Ôkurã>­Îd³Z«Ö’8ÉŠ3T©Ì¬\3*_;w.6ï¿ï¾ï¿ÿ¾?:p`ïÞf³9—çzïDgân©Ä®µKkß)Ô†€±ÎfBˆXJ©Ý ZÝzÏt‡îïx÷{nÞ¿wï¼5g1IšàT+dy&²,#I‚0À |ò$›[7 ƒn©[ðH^ÀÑ·ßú‡ºóÎ÷Nœ8ÍêÊ%ý>ZqðàÁÏî^Þsw‰ë~)Ñê !z…®v¡b(„pçæd:HÁÌìá(‡4I±yFµRE IµZ¥Q«’=û.T¶Zp¾ZÄ%^+•xå:ò–›¿!I‘f)I’àù>žï3ò\šÍöGŸÝh)cTÖZ)„§cG ýQÐëõÛõz@»Õ¦ÕêÐï­2rG¸¾Kžk¤kHuNž…IAp¥Ôn×Ë…^¹¤R7a@§Ý¡ßâ¹.Q¢uŽ”’ÎôÔ½À¿Ž];vuÝÒZ«„!T¯Û}j¥QûÐÒâN¤RT+U¦f¦°XüÐC›œ Î0&' B?LKÞRns­Ùu¬^\yJ yÇââív‹~¿ÏІ1qáFCà¦bðpq1à !B@K)m!)¥”W.|Ïòž;}?°QS«Ö¼€Í Ò4Ú°–,JÐVŒ†~© o·åk×w£NÅÑÓ33÷^€ëzb8’¤)qœ„±]Y¹x2‚aÑ%¨b Ÿí !¥TV©TRÇqr)eá±ÎÔÄg´ÑÓiš’§9#o$Ò4EaÓ,QØ<ׄQ¬\|ùœÖÆ+eƽ®z@¨®†ÍÉ$‰öGIòÖáÈÃÑßóLæÊú•“ëëë/cÆ&Já~TäNÉÜÜ\^­Vm¥R1Žãh!eê/4šÍO…Qä ]$‰q]_x^Dèh¢µ1'Ž{&ËóÜo f¯@à&Ëò‡ÜÑ`%‰“Ù4ËjÃáàôË.üèòúú)!D§äF“¹…÷ 4Ón·)½4ÍιýÞãJÚ»ã0nú^@–eB'q’Æaú§_|á9?ºRªš5Æ-ö„oL ÅëŒÀªJìökgÑ£©ÄËÀËÀ…â°4­`aaAôû}Õl6fçæÿx¢Ó¾£V«íÜóƒ­n¯ßï_LŽãLçy¾^ì8 œ+Îê½Þ)¥,"à°ì ÕÂ}€MàR±ù ]gÞU/ºmóCöCŽ™Ò€Ãºß/˜² \KÁylAˆ[åÅýø»_ˆ×/MƒÆÞË-u¡Ç½ŸvÉóÄ%õJ©y#òÒ„D‡v @¶tpP¨Ôë™ûŽK×Qq?6Ô6Ð*y¶¨Ä ¯|ÆtKÕRRUÝVe¥ˆœn·×òØÅ~ÍbÕŠ5.e³mmõqA£•I}y`=ëNéù¸«‘m+À_ϾNi Jg”3Þ¤´÷›òW± ¥ùî¯ô÷’´e)q+·|ÌÿÅ%Ķê;Éû^sÏÿÖ1ÐÁaæIEND®B`‚imlib2-1.4.6/data/images/mush.png0000664000175000017500000000625412137523370013475 00000000000000‰PNG  IHDR00Wù‡gAMA† 1è–_ cIDATxÚí˜[Œ$×YǧNUß{î{õŽ×qŒlb³K¸¯"„1RŒ2QL B âÍ‘xˆKHŒŠà„<8h­„`@‰ÀÂö‚/+lÇ»k{–ÝÙÞ¹ôLwOwuuÕ9U禪U Þ Á ¹¥£ª­©­úÿ¿ïÿ}ßÿ|ðûà÷ÁïÿõO¼/}àáO Ä­Ñh(.]X}îò[W;ÿ§ <öç_^qƜȄX‰ÂÑò02#Lš¡cÅ•+kÿzñìkŸÚèô®\ï³ýïèGÿäw}Ïñ?’³Ç“åp2Á&´N1iFÍ÷¹uùvœµÄñä¾è®Iuvr§;\{ß |å鯭4ëÍÓ‰ŠQ©ÆXƒµ¦dÖK½Rg¶5‹ÖŠV½–£íC‹¿¾ÓþÊûFàϾñ—'Ïø‚C¬L’˜ÌXpŽz½ïWðœGŽÉ¬a0걺&ð=ŸîÎÖY*íÆççš_ô£Kÿ+ý‹ÇŽ¼ç¾“ó­™cì‰Ì˜åI‘(…µ‹c¶9Ë\{k-ã¹)vGCâ$áÍÞÛh­Ù ‡8Ö8Kó_ô£_þ®xåÍWWgæW„'t–-§©"Ñ <çyDKf-&K1YF"ÆŒµøRø{¯BÙŒXÅ€ÂÚƒÿãzãò…æ–¾à oE› c-išbL†6ƒCzRJÖY `¬a4M Œ'!›;Û8OJZÍ6Õ Æh<&Mõ¡¥#s÷ïlì~û¦ œ»üæ±cŽ>.„XÉL†³vïÎb¬Ù+Ng0Æ¢2E–eh‚³8kq´I‰z]T–2Gd6Åó%"È@ÒnµY>| ‰`§ßãóoÌF¿ÀÍXë^=vxþÀóÆšek-Σ·½Ej @f22k±ÖâU|Æaóƒ™s¤Ö <‡Ò÷ñ«5d¢ñ$´Z-ª~@µRcŽFáÏÞ´„Ž,:½¹¹¾üû¿÷Û¼üâ|ßGzÂóðr¹T‚€f³IµZ!|: ç8pð ¹9Æã1·Üùa°¤ž@Jüß—x•+6]æ[³ =Ó¦Ñj>püÀOn_Þþ§÷" ßíb¬’c¾”ö3?Ï›Îíukñ¤O!¨ÂDQ„ÔkuffZlnl±´¸Àîλ½> ÕRiΟy‰¥ Êb« ÒŒÔ¦h“2 GlûŒÂ½Ñ.Ãh„­x÷†Wûü^¼wM‹”Ç„Œ†‚ ¤ï£µ" C¢(Bk š&;;=¶º]œu4š ÖÖ®T*¤:Å“q“fKss´dWºw>?vÛÜ}t™Z­Æ$‰ÙnÓ°RàÕ*?xð£·ýá {!kíÚoþƯ-?ÿܳ{ò‘r¯ËàH…NSßGú’v³I¥Ra8 ŸÌ ~ø¾“ôû#&qL’$øR²¸0ÃÖÆeŽÝr”Üs7Æ¢hÂ$NXö¹°»Å¥Íu”V$J¡µ&Ý®ÿêúWrX._ïMÀ9·ÒÝÚ<ýÙÏ|ß—~€çK)ž‡5–8I˜Lb²,¥Z­Òn·¸ç#ʼn¥iš’$ J©éò}É÷ÝyœÞ`€1†jµÂìÌ ó sÔ*úqÈ·Îýom¬¡RÖ)v{ôÃsÝö‘p°×/øoHœþöß?½ò[~qÊÖX‡µ!RJjÕ*‰RÄqÂOúiA)Åd2A)E’$ÄyŠcµZÁs çÀ9GµZáà%æçX\œgqaŽšðåoþëý.ÎºŽ½<øøøò “·Åñ=í´sît·»µòØ—åâÅ·ñ¥Dú>Rz{ã„D)>tû|üÔŒÇc´ÖDQDE$IB†ŒÇã) ¥Öjl–rôÈ!.-Òh68rè ³³mæææh6ê„:æOŸùþáõ³¸Ì|=|öß?—ƒŸ®kÚ8çV€ÓßøÛ¯óôÓGŽkY–‘$ ¿øK¿Šs‚$I¦ ƒiš2 DQD†(¥Ÿ­ÎAµ0;3ÃÑ#‡8~|™ã·Þ²Gfn–±ŽùüýÝÑ€tµww|±ßLNÀ\“•B<éœ[þÄÏüÜã?~ê+Ïýó?òâ Ïqþ;¯Ñh6xàÁO²¼|| \)…”ß÷‰¢ˆ,ËÇT*¤”cPJ!„G«UG @ÀöNŸI†!Î:”Ò>rC ‹tÃ]¼ƒ­q±ÿÕBÍ€»f3'„蟎G'~à‡~äñï½÷ûOîôº¬wÖ¸cùêõúôÞJ¥B–eH)B0™Lð}ÏóBàœCks‚ápÄÒâFƒ…ùY¸uùfÚmêÏ_ø¯]^!°“t¨ºÇu»ÑÙÖÌàG/®¯­4š­Gî¸ëî“K9”RT*¬µ8çBÐn·§×…!¦·Ö²´´H·»E0Dx<RzD™â¯Ÿ}ž¯½ô,BxX~+~uãË2¬µ¥cò}ƒ™ê˜õœÀ¯U°Â/°dÂôîäÕxkøRº1º˜ë½‘ƒV@µD¿)iš>’eÙd!0 i·Ûh­QJM H)ó°WI§FfëIo§ZGÉnÔÉ&js€µ\*•x-'áçFôÆk ÛížHÓôdš¦$Švéû>išRÎŽ1fZE'2ÆzkôÜ ×Ó9Ph-'PX“ϸ,þíÝàÇ0Okýéb–IL&“½è&É;ˆÙ|7Wœ‹½Ý 9ØÂÔrÉÔóUË£_Ïåm€w#àÏó©$I S Zkâ8ž- Öú$œsÓVëûþ‘ü™2[/HÒ)d$J8®ë«Ä<àgY¶ìyÃáF£A–eÄqŒÖ)åt¹>Œ1SÅ— çÜ<Ð.Ùd›iZ’OZ’_rÑ™#àÏœ9³R´È 9çHÓ”4Mñ}cÌÔJGQôŽVÉ[l4K`MI&|^”êB»¢ˆÀx<ö‹èJ)§¦M›|Puš¦Óm©sn:äòá¦öi¾ú. Ý»ì],`½ë_è4Ã0(¢]¯×ÙÜÜDkM†Xk™L&ÄqÌp8¤ÓéLk¢N^J©/]º•4îçEêçïû:Q±Šì¸É€|衇¾Yg¥R¡×ëÑï÷§rŠã˜ÑhÄÅ‹i·ÛÓùPH¨°qoïÓvP~Oa™óÐùÑäç×ìFž€¿»»ûª”ò^¥Íf“ííí©ßBÐétò=4h­±ÖNmv~ßî[o½µYÚÚ}Eœ•fÃþ•]oþ‘W^yå‰bÒV*¶··I’„(Šèv»¬­­Q¯×ÑZ¿£zžÇ`0¸töìÙs9˜8_ •Î‹ë ˜ä×t©C “׼Т_$•gžyfýþûï¿KJy[–e¬®®N-ÃÕ«WqÎÑh4ÞÑN{½^çõ×_£Óélç ’‰$çD&ÀØÍ­Å(?Nò¥-¯·…–ЬòÔSO™ŸŸïµZ­CµZmáüùó„aH–e4 ºÝîúÕ«W¯¼üò˯¯®®n(¥Æ¥ £\”ƒåÇaiKà‹ÿ›ŠkÌ€WD¾4-›À 0 ,³§NúX†Uç\õÅ_\Ëﯔ²XL¶¤e]’GqŒJ„ÂÒå׈kÌ@ÑŠq^x“VNb.?oæ«^j²”Å2h“Ÿg¥ÂTù=q~-*Iª,«$¿÷š&qÑ!Dþoߥ†Ê^-/£ây*–˺¨-e@åçª$¹"òE¯yOìö “´Ê–¢8É£”\£·¯Mš}ÒÙŸ³Ï²JJà³!PHÿ B*zg@–<++|~’_/À‹Ò+öÝŸ–†—¹î[ïRв4=½}5â—À{eßRÒº.]7¥³ßâ›R´m)Źû $Ý’vÚIEND®B`‚imlib2-1.4.6/data/images/menu.png0000664000175000017500000000625012137523370013461 00000000000000‰PNG  IHDR00Wù‡gAMA† 1è–_ _IDATxÚí™[Œ×}Æ3œÞÉ].÷~Ñmu³dÅ–XJìÆMIœ¢( $ Ú-R4hš¢2ж.Ð6@ßê¤èK€…bÚ\œØ‰mÅNɲë²Òj—â.Eî’»ä.oÃáÌÎôA‡êDUlÙŽÝÐÎp8Ãó}ßùßÎ!ÜiwÚv§ÝiwÚÿãz/'ûÜŸ~òÈöÙÑ‹÷Üžú‡ö7_=u¥øNSy¯ÀÿñŸ„¡kœ»”Ç÷}ê-‹z£yÍqÜcÂí}éé§^(þZxâ‰Oý¾ò¸‚®Óà º¶M¹Úd$“À.+k4LA·+ÐCê ÝÐÙŽ}â«_ùþÏþÏüág™šÏ<“NĦãh(lšŽèd3)"†ŽÙ±‰E PCä–W¸ru…Á ø=\W !Üž{þÅ/|ñô« ÇnžG{7Àá ¿u4lhOF ƒl&ÉX6 ŽÇìLŠ®oc;6ž‹KeBjˆ¡Á$]Ûa4“äZIgz|¡tšêF|©Ìé3¹‘Že¿*ñz²ÿÊ Œ>þô•÷Ýsø1ÛîjçÎeq¡È¶©aB*$R!PU]Ó¹”+>†âJ¾ÄÌÄ®ç‘HD™Äë4:ÅÒæb³iÍÎ](ԀЄý_ /?ù·ÿ8”ÝöW““Ó!×á2:2p/¾ð„Óh›×M'jPÝl1»uŒ°¦ÓÝÄÐu×gµºÆ©³óåK— ³kk €Q  8€*G÷ø—þüQ!zGË•Ât<1A¼+¸BpèЇ®KîjŽ^ù9Û&UF&‡‰FÂøžÇÞ„ Eñ™Í (:åµ æó…öÜ\a¬\Þ$ Ÿ¶²·$„·¾ŸþÌû§¶o=‰DŸ¿’'™HÆøÖ±¯1˜™æÑG>N2•ºNB„{ÐØØ8Ùl!?þÉ)67+|àÞ)voG×5EAÓ4zC!^¿œçäÉùĵkëDc\ᦀ=ÀPŠÒ„¼ÛÎÄ¿÷»¹ûž-_ËŽdŸL'#‡»f“m3“ìÚ>ƒ®ù`„4œ®C:¼îŒøŒŒdñññ•Ÿx즦t¾ñï_ç§'Nܼ+¯9C>·€p\Ú-‹X"Â`&Iu½eÙù@âUå¨Ê-Wà·?yè7ï½{Ç®juÓn6M­ÝqX­lÐ1»Ä f&Gɤ„·×C8‚ˆa`Û=t]#™ŽOÄY¼ºÌÂâz‹TB§Óirüå“èšN2™¼þôk¯±œ_Àqap(‰®k¬¯Õ{Ó^n·ºëÒlj@¨Èkë–Q腗λ=ûîß5ã;?x/¥r…3s—ˆÅã $ÆÅCÓÀW4Õ ;<ˆR ) ÑÂÞÙöïÙ×S©×[ÔjZí&‡?°ƒ™é4ß{î ¥¥•_,Ψ”ëV}³“NëHà- )m¿ Øo˜È¾úÔs<üÐ~f&³<ûólÛ2£ÝÏËgæ8qú<ó yâ†ÎØh–¡‘AF² Ä£„] !„¢‚íz”*e EÂáF›åkešÍÎÿšWU”n}³½,?ÚxM怲¼nöWà–>pðžŸýø£÷o]È­ra®ÀÁ÷m'6øÿúwïÜÊþ½Û°®‡¦ÚŽ kv©Tjà{ ¤ShjÏ÷À÷qlEÕ)Wë¬o¶è:‚Riã/]  cw¬zU4šÝ<àËxߪ2yd/uiFî-£ÐÄxÆzîGgHÅøØ#™_\aùÚ:Ÿú©7M^:~¨¢jQÃg£Ñiw<.\*R©š8®i:X®)|N½~‰¹…%,[P©lòÚé‰Bôþ'ò¡tëM§mD dV€`¸lÊïÄ/ÍÄöoùòÐP2¶±Ñf¹°ÆÖ™a¦&³¼øãóD#~pg_Ïa¶¶Mª KÎ^ÌáÏóY_¯±²ºÎZµÎ@*ŽfD¸’+R,­qòÄe Còét³ÕÆG±mQ’Ó÷àW%ð%9V¥IÙò¹[oêÿüsŸ8qi¾4PÛhîÝ»gš³çò,ÖùèÃhµ»|ûÙSÜ{`;c£ƒüôäeTB<üÁ}¨ªJ·+pÜSc˜f‡b¹Bµa±|mWO^!3¢Gf(ÉF­IO¸V£- 2®÷3mSÚ|Qª¾¬Ëû•ü7Ý‘}ñ‰Ïì\-×¾+\og*£Zm‚{vM’»ZaùÚÜ¿‹âJ3?Ïqø=LNÑêØ8Ž ¡:—ç œ9›§×óð}ˆD šÂÅF£cÊäÔ“¡²¾äEy½&Wåø7# a öûŸþðcá°þ†¡mñ<ŸòÚ&»vN¢¢Ë—éÚ‚»öL±\X§´RãÀÝÛH¥¢XÂe£ÖâøËð<ÏóH$£4ꬎ½Üh˜–ÜTù|K*]’ªçä ”díÈgo‹€. $äfbëG>ð#é%âÑh§ë°V©sßÁ4š._)’LDÙ23Bîê*ív—ùÅ4=„çù×wbºÆÆF UUòõM³#ç@ªÚ–!rE‚î+_–¶ßî—зs°¥Èït d‰üRÅ¿0W(Å¢FÒóüÄììxèõsKøžÏþ}[X¯6Y*¬11žÁê:tº6–%ˆÅÄ´Žã⺽E Þ„˾ÝW%à¢T½*•7o6Û%`1`†t¡XmÔëíõªÆ’Éh|p ÁåùC™[fF¸ºTÁÐ5:¶ƒ¦kX‡®å`wÅú¦iÊ•U¥šv@ýŠ^’¦Ô:7öÀo•@(`F)ÙÀұ7¿¼¶a;ÂŽ†õD,ÑòËkܵgÏóY*¬cwÅõ”Ú…ú¦Ù–¢¨õMéœk2l®̦.}ã–ê¿ÙÙ¨ ‘‡äýÏÔ립+×ð C‹'S1õÔéâ‰0¥• ÚíîZ½nš÷ý@²ê«¿.Á÷MÇ{;‡»¾œ,X{ò¾¸Vªµ¦}5_iÄ¢áX* Û¶K³ma¶»ºi~£2mI ¨sÊòº¿a±ó¼íÓi?àýýXmHˆ0Ê•M³Ñìt²ÙT¢X¬¶šÍŽ8Œê“°Y ˜OEª¿Ù¯uÞüíè¿ìTë0“ô‚þã8®R*ÕLÇqÝ@I,dwµ}S.Ke ¾uÓ*¿£ÿ‚ʹ7°N&DƒïöI÷‰Ûú¾yÊR¹Ñ/•ß ü[9ZtJ‹›vGýFS:dKöA È´AR¦Tº"ͧï´-ùÛâvÀ¿³Ñ>E*iÝ4¶$ŒÌqvuÙù¾)Ôz@ùÖÍ…Ú»A èÎM6mÉå¯Kõ“2 FeïÇW>[“«P“ïôMÇ{/‰ˆ€ô».ÕËÒ_5àÔýé̀éôÞ(æ¿›pôè&•6döŽIðÚMI0¸YïûޏÝÈónýC£ÜT‚ô«YCŽ¡À|~ X¨ã½ÕøoÉo¡‹)\IEND®B`‚imlib2-1.4.6/data/images/cal.png0000664000175000017500000000530312137523370013252 00000000000000‰PNG  IHDR00Wù‡gAMA† 1è–_ zIDATxÚí™]lWÇwvvwÖñÆÞÆNvc7ޓ֤¡}ˆB‘òÐ"TDA¨ VT­è‡¢Ò¨¼ òQ Ayªh¥‚à)•BB ŠRˆª>Ñ Tb'µó¹‰¿¿âÙ]Û;wwfîåaïìŽ7N²*ªD®u5³ã™;çÎÿœû¿wàN»Óî´;íNûnân“þ¤·0¨;ôÿ€èÀx½É}â†ë°?&ÃEÚÌx± …ôÍ@tàwßù¦RJ£µ"T!õ@QW …@ a „H Í_(®yJÀ6'C"™"aÛ$ì ËBûuüZ ß÷ ”BiM*ü ¤*=ܪD©;ÀÏweúBB­ E*öãˆÈes8ÝN£Û2H)A6žûÁË/éOïèãù×^Žã˜ÁZãJ)[?J%èíà•#/h´ÆÊl°34ç*Àê€ÒøaH†(­ÄÐω|>Ïêê*¡c76º $2äïÙ'\O6.8y}ìàB‘¹·ßÆ1€¾úÜaá…ŠÕÔ‘Êmãs‡u™'¬X¿ aH B|r÷ן£P(J¥(^)R¯Ô‘R¶¼´€ÔÕòúšD–J”NžDΗ^ä݈¢aîýòc_ÛûõkG-VVW6l ·í¶|êé#bhǶm†!nÅe~y¾e 9Fhfªòƒ¡ÛA^GÎÏ#‹ã”ÆÆ7Ð)rÀpðø¾$^<|˜þîñ]À ÙÞQøJ¡”"“Ìpyò2•• îªK­V£^­oð¸ $ŽíÄʈ†œà C÷;QØ{üI¤ÓÈ¥nÏc‹ë2}ü8ŸÙÚ­ôÎ;¿r€–k€ß ᇠLÙd´Gíàui²ëëÈ ãà8ƃ@ ñ"Z!§Š&7Ú—Ö½@^x¾Oÿì,kÕ*Ëóóœ)-l À]€o[¹€fMöƒ¥Cz8@oäܸ ¯K‰;7ÇÄ™ vïÛÝ(d6LJããxà½h-€œ©`µ¿¿Oèû¬•ËŒ—]í5êMØdU`ÎPHw@…„ª1’c; â9¦âD5#Mœ™@.}@îþ²7¾Övg«)â:Åç?€çyäóyF+CüëÜ ?ùí l÷ÖõSÏKôl ð=ŸÉË“¤R)¶/¢¶fY˜˜àZ©Ä)ßÇJgÈõäDeYZXbbGëFÐíç@oÐ84©ÓÛÛËÞ½¬­­á¤ÓX5ŸååeÖì!Jå:­ÉÌO“àêûïS)—¹¸¶N)‘ ¯¿‘‘òù<‰DËBˆÍ KsIjßb­£3­ukò±ÁénH‚Lƒ£-êÀ¶mÛ¨«:=çÏS­×¹zõ*ÊRìܽ“|`áž=Ët*Eya¹•ÎÙî,ÃCà  è!Z£ ‰˜×o™í‹pݘ´hoT£ã8­óxïvØ}ÏnºººH%möÝ¿ƒŸ=ÈÈÐõ‹çyøÕW©{K®ËDbmé&¿#ÏÀÀéTù]‹8¬X[7Ë뢠…Fk´c;¢¡ã$N·Ó(jAã7@.›kF)“Ì`Û6IÛfïÐ^r¹ 'þJßð0Çßxƒ]<ÂGî 3W®ÒßÛËž={ÈårXV˧ Ñô§h¡o6ëödÖZ£ôƆHŒI)7H Ä”W­5™L†ÕÙz³YæGG™>wŽ3cc¯ûd³Y†v 180Hº+Mm½Ö¢‚@ÄìQ›íNt¥µR|ï™'õÈCÜî^’øé_áéC‘ïïgzt”%×eTk–ì Z«25;…5¿‘ÑIX£ƒÂØ®h¡&û”B¯ûŠrÝçÄ»ÇtÛ[ˆjE“ºZj…c'¸«Ëak*Í®áa1yêK®ËTu]Tõ🰺Æ%o©ñ³€nl(r ñ ò~ض½rCÇ4 „¸Éd'„Æ„:o!:zûçGîc¥XdòÂ&«ëzÂI“ô} !Ò©¤¶–h+ß´Ö-úGº7 ÝI4À[ïÏ=À`зšÅµ $M©³ceΪ_Ü¿ûž'F¾ýÑ{ï1>7wù—ccïÛ€^óž²kž1.Z°\–ÌÒ10ãŨNVdÚÜëfÀº9v)c|tŒ¶=‘Ž<úè 3ccLÎÌ”Ž‹¿1ãE94yÚµ0nzÅ“æz=Duøœ•‡:°3<êQ$" ÖSÞWŸ›¾4;»òûññ×Öjfyš1*À¤Qš‘XócÝ3ï“4‹vËøÛ‰@Ôj1/E†Æ£`Ç€X_9\)—ùÛ•+¯—J3Æø.3æªÑø3ÀŠ3¢†£Mݼ7ê·M!Ñ$h§b/³ã}½R™›™ùÃ_&'OÛͺÖ2ž]®Æt¾jKÒvqúè–NëlË|Ã"ßôDL£Ø±ódlû/º¾Øe¶G2&Ÿ&MÖŒ1A[¹Œz‹NР“m½É¹Ž½È2ƒFjm«+–´«¦ÌÏWqí3m<²íçú¶·×Ûô‡Š½°ý£„µIÔt¬¢”Ly\0×T[ŽÅ›ÚdK]ý·_ht[^´ oð•ÆQaÅPHÝäÓÓÍŽû7²ö1­Xy L2ê[|ôÓ|šh[ÏÞêÃ^Çí? Äž®™ðÄöIEND®B`‚imlib2-1.4.6/data/images/calc.png0000664000175000017500000000755512137523370013430 00000000000000‰PNG  IHDR/0§#âgAMA† 1è–_$IDATxÚí™iŒ$gyÇÏ[U}ŸÓÓ³÷Œ÷´÷6+œd®@0!ŽÀ€ID,RŽ/ù¤äCBH ‡!D Å&`G`!Æ€ñµ^﮽»öÞ»sw÷ÌìôôYUï“]½.»ØÆÊ‡(´ôªºjº¦þÏÿý¿Ïû<ÿ‚_~ýùÿõ‘ÿC¸ô ¼¼Øƒ^æÿ¹.ÝW8>®ô ½ÒC_ô•¸Ò}ê¾BÐŽˆ`8Á“†À-ª;_=¸ h¹ øÜçþŠÀˆ¸€÷{¿v`ß¾½ßïvûGºöÔââÂã+­öäãO<õاÿî3Sª jU±€eð}Øó`Vƒ½xûJ4o"àžˆ¤D$}ôɇ¾W©ì ÂZÂ0 |Â0$ðû,.-> J8==w¿±·¿ÿ£ßFÕ*„ªjW±*WI|¦lü(/“u'­•½nŸ~¯O6•bm©Â¦5kÉ¥Slß4N©X$T-Ö*a°Òjét:sµZýÐìÌ|ýÓÿÙoEÀû@/úƒ‘—ÉzRDrƘ‘¯ÿËç?vàæïrÜ$õ¹¤Ñk³ebÇq°A@Xk±Aˆßóét;tÛ]zݽn—0°TŠ%2‰$»·mnÜ·«J·Óæð‘g8söwõ{Ðè>¸/¸WD"’¡´gÏ®÷8nßïqçmï`vi‰ŽZÚ½.gf¦QW±¡Åº®ã“L$3l¨Ø0¤×ëÑëôXj5ù¯GŽ`xôÈQîüýwøívßïTe ¹j‘¿älcW„”ˆäïýæW>•Ëæ* $’Yªå2¥\UÅZË[hõz,¶Z\¨ÕhuÛÌ-.¢¡Å†!¡à¹édŠ0 ƒÏñH¦2ƒ…ôz}ü¾_¡ªŠÄµÉFÜ—Èz$“}ë[nݶ{×Îw:®G:[dq©ÅÝ_ûw6mZO¹˜£TÌS,H§S¬)䩿r¨µXkYlµi÷{L×Ô/Ñj·mˆ BRÉ$j•  mHßz P?’Ëp@ø¢àEĈˆgŒ¤ŒHîï|ÿ®ç!↠3g™Ø¿ -G?ËšêùÜ"ý^‡|>G>—¥PÌ“ð\ ©$¹D‚ÑL»i°Pç—–ét;\jwXnu°jñ}†Xº@h­˜öÀq9pDwÈú›ßôúm»vï¼MÄ-T8yê$?y˜Z§Ñ»ùÈG8{êi–––¨×8~â9rÅ*íæ"ét’t&E.›%ŸË⸆‘\ͦY[¶¨ÕËàƒ $ ­€K@X’ÑÂõÝ_.q@<#’2FòŸüÄ]Ÿt]Ä!ßýÁ÷973Ç|}Îò2·¾öìa’.$ëÖVyð'ñgï¹ãO$ •åæ >ôs—±uU ¹ ¥bŽr±€ç8X«ôú>ÖZúý~_„¤*)¸<óƽ*냼>`ÝHöãû£›ÇÇ'nRµŒTÇ9{þ4ãÛ·’ªŽ±©ÕböÌin¹å·8øè©5êX«,_Z&“+súä òùÖZ²Ù4ŠáÕ7¼†¹æË.—¦æ9wvŠ]×m#Jà÷}‚0¤±°¸¤Jzhw8® ±ž‘ü»ßuÛÇ1$S9Â0ä‰Ã‡¨/¯ ÆÐl4xý-¿ÍÄøZòêA~·–oÞs7x-=ô³³óŒSÓ3ìòû¨1˜LšT!GÊZNž>Ëîë¶Ñ÷}lhQU#"¨«ŠIfÀ™—çS£$É~ì®;ŒVF·‹¤ÆCGröÂ$gÏ^ ÓíÐZ\âŽwßÎÙ“ÇH$]¬*½^Ÿ0TÞpëë(çÁZËìl‹“S”ŠK<÷ÌÓ\˜œ"_.Q)Ókµ(dÓѽ=zý> ê¨ð 7Ëa ä^%Ã8ц”‘‡>ðÞ¿1Æà%²Ö29?GilŒm¹³s5jµ:>Ê ¿±Té÷…Ý`+DÔDÌY¿b¶yë"äîþÂg>œNgG¬µ$žyî8‹ÍÍN—~Òn.óçŸø$Ýfƒ­×ŒQ¯/âû}þûÁ‡Ÿp¹çžoa­²~Ýƪº=Ÿb!1r]Æ×­aãšQ–ê D@#æmh™œœžÕ6/Þ;¸¿X| Y'#Haÿþ= "¤³EU¾úõoÐ ,N*EÐë’wä²³gPUÊ¥"Ë+MÆÖ¬åwßö6oavnž™ÙyŽ<}œz×KRÈ%¡22‚*T«£¨*aÒëõQUjõFÅD;¬ÛíÀ8«òº#HBŒÉ#¥»¿ðÙnÙ²ùµŠR©Žó“Ç~Šd2àz„Oýâ$7\ÿ*î¿ïÛLMMÓ\YAQž=qŠ={¯'“ö¸ti‘t:ÍØh…‘r‰KÍ6ïü½·39ysç.òøÁ§¨Õœ:}–];wH&˜žžáÒò2'ž=õœ6§á&ÕŽr|è¹/”‹8bÅ×ï¼ùÖm¯º~ﻌòÅ*Í•e¦juVº}²…ê÷Ùsݵüáíïå䉧˜™czfŽÃ‡Ÿá‘Çž$“åôÉcT«FG+XUNŸ9Çø¦q²™$;¯Ûε;¶a­e¾VgjzUê~KhdÔ°HLﬖÍå2@ĤŒ‘܇îxß³Ù\Ù8^ªÀ¾{­• ×Áu<ºÏ[Þø&šK T•êØ(•ÑªÕ 6Npóüè‡ßãÈÑãÌÍͳyógΞgßþ×P«Ía­¢jQU*#eÖ¬» ÞZ‹†6ÐÜM~ÄpÁŠ/Œ‘„1’}Ó^·mÏî·‰1x‰?ÿé8î<ó K,¯´Ø¸~­¥%¶mÝÊÅs'P;ØÚU•©éö]®Xö캖];wÐëõ˜¯58rôSÓÓLMž¡/Ëg(ä² yÐAFòûAÐí÷;«zYSÉå’X@†õzJÜ?ðÞ;×£ß÷¹´4ÉØhŽ×ÿæz~@­Ñ 6_'ã¾ôÅ¢ÛíËf( Œ”KLNÍñÖ·m`nö6*‘]×eíš*ˆáö÷½‡Vs‘FcééiÎ_œf~¾ÆÉSg¸é¦W³¸°DõëKòë.à¸Ö£ ƒ¤ïú“˜ßøöN»MøƒV Å1BÒuXWel¤<]µ–zc‘Z½Î¹ éõz|ÿX\¨á¸7¬§R)333O:¡2RB4 R©²}Çz½.õz/~é+ Ð÷ûAˆµ–XZjÞ¼ü@5Qcm$}ý¾]Ÿxö¹S8®;˜ëJ¥H&¸ž‹ˆÁȸF©T XÈ³åš ¬Z K”KY¦¦gxú™ÌÍ×Èå²\31ÁÏ~ö0‰„ÃÄø8ÉTšd2M©T&“ÉryƒRÕ¸ÎU(เ‰ŠsODÒ_þê¿ýÃÖ-×¼±\*ìu]wdýúµ#^Úq ®ãàzÉd‚t2‰ëzçy¿H­R*°j)—‹X;N­VãÒr›™éI¦§§¹ï¾ÿdý†õŒoÜD©\$ð}BuP¾ÏJ«Õ\e2™X‚qu£1Ð=bž¡µt:Ý^Œq³B†5ޏ1ÛièfõDhˤ^oµZ½©ª)E=UÜêh%±uë5ékwlMås9)•Š®1‚ë¸Çàyžëâz.ÉdbpÝ fí ä*— ‹y&6mÀFH¯×džánË/‡AXWU!Ô·J×X»‚‘ª UB6h!’%‰¨7¼z£‘xäу.¨k­:;¶oM—JywÇöm©L&%#å²ë¸è`íxžwùhŒƒë:ˆFäróÞ÷ýA1¦/0Âh ¸ÜŒ¨ª†ÖÒlÓŠx¢b€@Ñ–ª.úHÉ‹hV‘´@ 4‰J !¡VÆ÷Ô©3à>þÄa'*¢œ­›'RÅbÁÛ²e"Y);©TÊ à:ÆÇÁK¸8fpÞëõA•V»½"BùšaÄxc7ò  Z»""FÀ"t€eU @È9UÍ騧LiDÒ€‹àž Ðàž>{ÞuŸ|êèå¦bÿþÝ™|6댎VårÑI%“Æ"4›M‚0äÜù‹³è œ²¡ÝçåãêÀó³ÖZ_D:"¢ÑÚ‘Ñs ÈätÀxZ £RÕŠœãtÔ²%£à<„®ª¸"ê9r¬ù|öP½{vfòù<™L:á:NèêóÙ°Ó˜„‚Õž¸"$@@RUS2`v:‹k$]OÙèï) !ÔŒQ¶ðžß1ÕŠB_„®*M`AU—€E` XˆŽ+@XrW9³!ÐxéDwUuùJ uY2—YÖäªë) -" œ{‘” Cðž N$9TQ”ÐVÕf4ó+±R¸ù6þjë#Àpzœè‡ý佡,¼X0CF‡k" dT5ûmjÄ ±ÆÕᮩxƒ}›´ɵ½*?f´Z÷*ï’âUQ<Çí6'6õ©¡Ü¢±›dìz <ŽªzÃ^tà@3ìS5zÆJÄr+Ãï½!Áò2^˜9±BÉÄ<¬ô’±Yغ0ÑÑiÞ½ÊÿóbFêPªih&Z@G^‚Ѻº9Wz&ÞÍGç^LN^L2ñ…z¥Jщ56¦q? ¦1Þz–/f´®~…_&&';3›ˆ1î¬ TcÁ‰wNaì-ˆ—â_å%òêΆ+ÌH|V†³0:^òʪ¶ÏÆÈòW½âñ_épYÀêv-.%¯Åc> ±YÐØ=Äêí¬Ãlþ™QHÇpu÷IEND®B`‚imlib2-1.4.6/data/images/folder.png0000664000175000017500000000547112137523370013774 00000000000000‰PNG  IHDR00Wù‡gAMA± üa ðIDATxœí˜mŒT×yÇçÜyÛ7ØeÅÌ1a!ך¦ 1Mû¡²üÁX•H“Vn$ײÔÖmÕ ©²d©2’#+ô#¢MÁÅFHÛO±SÒ”ÀÆÆ€CSB»°”ÝØYvvöm^îÌÜ{ÞúáÞY†å%¸/t4š{ï¹óÿÿÏÿyÎsÇãxÿ¯Cüo8zô(}}}H)‘R’N§I¥RtttL&âî0ÿÇ ¼úê«ìرƒl6‹‚b±ÈÀÀ£££d2ªÕ*===,_¾œl6˶mÛèî­mQ"Ÿj¬^½šcÇŽqåÊΟ?ÏÁƒy饗ð<ï¾æïÙ³c ×®]û”‘ÞÇŽcxx˜ááaŽ?΋/¾øÐï:qâ¼þúëáâܹsLLL011ÁÐЯ½öÚ#y¯sŽ÷ß)å/\ÿ¥MåœCkµ–0 ©T* ²ÿ~úûûï9ÿèÑ£[úúú6K){¤”«Óé´J¥RµŽŽŽR2™,³³³3ù|žíÛ·“Ë圀snÑûõz‹/200À®]»®÷í}ômXOK&ƒ±–T*Å?í?ܽcÇŽßÎf³Ï !Ö‹ÅÚÀÀÀØèèh˜ÉdRÕju&Nâöl6ëmÛ¶íéîîîé¶¶¶·…?~Ì#!ЬÇ~@#X±r­­­`¹Ü5^yùOÓï¾ûîóëÖ­ûóZ­–÷K»~)ž,R"XgqÖ17SÝÒÓÓó‡Àó¥Réê¡C‡þáÍ7ß¼,,0 Ìü뱩 “ŒŽäÀ®ÎelÞügNŸæ7vâ7sÝGŽùá /¼ð—ÖÚ“EàZþrd€åÀSD6ئ”úøâÅ‹ï |×®]ùpí»oï[Ò·aý3-™Ì×µ.‘”¬ìYN*•ðª¾ÿ=)å;—v)­‘ÚÚÛé]ÓËÒÎ*ιVà÷J¥Ò_ßLâBaŠD"A†„*ÄYGgg'éLšÖ–ÖŸ¤3éoMNNûUŸW^þã_±Ö¾©µÞúÑGUß{ï½ü;ï¼ó¥Réc`œ(ÑïÀõÃà@H„—"á%2Ñ\Jå鯀ø[Að…Û“xYwÕªÏÊ•+žÇ²e]´¶´Î¤1Æ`Œ? Z™ág¶~õL:î;{öl÷Þ½{ûûû;ç. Ê·c\”Àµüe’„—"™H‘ð’!˜/wßÈÕ·'±sŽZ­Æ©Sg(—+tv-eËæÍ´··Ó(¥0Æàû5î’Äï¾ñÆî¿Ú€Ñt¨tÚû&Ë_Â9Â#™H‘L¦©ÕK b'ˆÕÍ$–B"XkÑÆ`ŒFƒÖššïsæÌO˜›%ÛÛËç>·‰ûLâƒo}û;o%¢=¡ÂmØ= \»€!< Ñ òŒ@dE¸ôðDÔM:çÐF£´B)…R!Zë…1U(ráç¨ÕëcX³¶—U«ž ££kÍ$®Ö||¿J¥RåÏþä/ÖÇÊWãOs'œòN´Ö„J“Hˆ¯#äu)½¬—ˆ¬”NfHzɸ±XçTWa€ ÈH¨ÐZ³´k Ÿÿµ_å‰Õ«A2‘¢«³ ­ Fk´RÌÌÍ0;3Ãää…É@2Þb8ïZF'nL²aÃú^ÿ,„Äó’ŸHâÈ6±òa@„aˆR!Ö:Œ5Xc°Ö‘N§Ù¸q# /ÁåËÃLgxêé-¨P3=3_õ)‹Ôk ¬µ+ˆÚ‹úbN¹+âT‘Ï®ò4B≞LàÉ(‰sXgÑZ-n&¨R!ÆZœµXëâa#µ!ÛÛK*â§ÿþÌÎÍò䓟¡T®0U˜B©¥4Ö€5€ŠI¸x>‘Äw%ð¥/q§u®WÆô› ›Œ5(ÕÃ0ÀXƒ±vAukíB©l¶ÛFÒé k×­£0Yàúõ<µšO„AˆuÑ\ •ÈB‹VÊ»ÐJE ¥Á³Ð8çGÐA€Ò!F[Œ‰Î·‚×Zãœ%¢¼‚z­¾@jnn­ ZE o¬å?ÏŸ?kp³úܱ Ý€Ö_s¤´8Ö8¤”XcQZ„Ñ (bc Öº`ÆD6 U”ÈJ)ªŸZ½ÎÌô óó%‚ A*´Òc(•J¹ýèø¿êóÜ,£¾7&éêìÄ:È¤Ò !@ÆeR…hcPJá,pí°Z)”6h¥¨7T+UæçK”J%|¿çO´©Yc¹:zúÔ©S?&€ OTÿ wðþ= §ŠLMY²¤ƒ–ÖVÒ©4^ÒË€(Ù¬Áè°u«ÝTU)E¹\a~¾D¹\& C‚ B”ÖXcñ}¿ôÁž˜™½\rD;ðd¬¾&²ÏƒY¨R®FŸGJI*•$ÎJ¥2Z ¥uÔ>p&Ú‰­µ4ê ªUŸùùF0T„AH#ìä¬chèÒ¹ó?;?AÔë\.7€)¢Ö!xè(¦.K)7%’Iœs$<!¢s€uöfU²­ AP¯Õñý&¶U³|Zkš7­µZ­üÁOž-•J"«\ŒÇ0W÷¿Q©T‡|ßß$…$Ó’AAKKK”ÈÎá¬ÕÔø¾5– °Î-ìÀa¨"ð6jôpáâàÇ#WG¦‰Nf¹Xõ±˜H5Æà?Œ/BÀËçßZ²téïúµ*¥r瞌VAÔèI‰ C"RÜØ¨Œ:G†àÆZp06:vapphÜZ[&êë¯y=G´Y©|Ó6÷wÛ$’@ÏK/ó@KK˳F*´1RЏ]°XkZéæ>`Œ!‘𘚚¾rièÒÕ¹¹¹Y"{\Äß片›Êßw,F`9°å¿ÿµ¿[²dÉÓÚh¬íc 0Ö¢B…”2VÛÑhåññüèÐàP^)U R|ŠÈã“D‰ZŽßš¨÷´ÌýDŠ,°ñÙgç–v-ýB{[Ûšf«€XcqÎ16–»Z«ÕüâT±2;;;Ûh>‘ºùüø{ópâsSíæx¨X¬ÏH—ÅDÖ«6lX¿¹­½½ktdt¾\®˜ø9ªÆ@›cŠÈßµx"¯Ûx4küCǽõÞ-D:ˆl•!ZLüL2Ñàæá£ÄÍ:Þ,‡Íªb¹Ï ó(4Ÿ1è_5o6«†›WSes˽&ØEkúÃăþ3×$#‰ÈØ[ÞÑT—[>‰Ê÷ô¨æ~ê`Çãxãÿ^ü70=éÌ¥ÎIEND®B`‚imlib2-1.4.6/data/images/imlib2.png0000664000175000017500000014771012137523370013702 00000000000000‰PNG  IHDR,bÕr•gAMA± üa pHYs  ÒÝ~ütIMEÐ9¬–1x IDATxœì½iÇ•çù™Y•Y•u‚8ê@ à’"HJ"%‘’¨£u6[Ó'û´³½Û½k{ØÚÌìaóa¿­u›Í|ÙÙ¶žéÑH½;¶¶Rëਧ%µ$ª%¶x€—Hâ†HêPgfU^•±<ÜýE„GÔLTJÄŠðððçîáï—Ï=^¸SïïþktB'tÂMˆÂþÿ#G àI𢉠ç.ã"±7Lh*r©:¡Ú;D …[S:t€Õ p“„áT«„’-‹‹cXÐ íZŠ ¼¤ÌàÔ&„v€Õ Ж¡Åœ²änC†UZTh< ›,´¬Nè„v ÛG†ÕŽ F5ŸSÖ‘e …v€Õ ÐaKÚ›hL…¯‡q™7;Àê„Nع¤½½œj¡sJŸt€Õ pÃÃ&œ§líÂ)ë80*”°)"Ûp+´¬Nè„~…§pÝœÒQ`uB'´2ÜRÎS‰Bo;Àê„NhAhW?¦›]hXÐ Í 'Ï„Æ×,x£%{u†„Ð ×nBÿ€ˆ6Ï)}ÜV'tÂvÃÍË©›Ž`uB'l1´“§m´×rNíŒÐ°:¡6nrç©V äßZ¡ «:a£Ðtke"‚HÁI!•r=—à9uò ˆäx.A0ùÒ‡´¹o ;Üê„ä°œº¥œ§ÊÑÖœÒIÜê ‡œ)áf„çIÓJṂ<®áyžGÒDd&±:CÂN¸¡Eœ"["}q'8ÕÎSHnÞн±)’šw«œÒÁ[¯z¡Fƒœ†Ï%€„#4êpÒp]ÏóÈó €ÈƒçéGI]s:¡•¡•œŠåH[pÊZÅ¨ÐøšYÒmVèFœŠÎfsp¤„?¶b¸µ 9)8 ÀõDÂñi¯ÑðÜ<—à.¡Pý‰Â7èÛì?pÁtm ¬Ûª«÷¬Ì¹À:PªÊÂ0zå¢ T2PÙábÞa‹ŠdÕ^‹ª¶ˆSÉȰäÅd¶’S[ÚRNµÂyjC¡Û€#ká¨Á Ó²¾'ÏÛX¿9ù€PjʼšÜsÀ`ኌéXX×¶¢H‰ÆTøz8Ï®Ȉ³c~u8Ó¼-užÂvàh×¼ì:oäÐHí ¬Ûª«ÿdò u ÔÔ^?²Ø#W.¬* «¶³½ùB»q*Ò“· Ôz®enE(b)¾¦[ºÓœ²ß¸¹ó(§È»PÞÐ^$>’” ®à¶DhÏ!á=+Wä´¤°Ø·gÿÕ‹®¢X¥¬Í[÷²vÄ`|›pÊ’¿õ×~sB­ÆÆu8%$koByíÍj·‰nˆ“g¸´I}f#NÙJBј‰eÞÑø±í,¤yÕà°ÖÝ;´2ç*ZU€õ.d‡ ˆû-ߺöÚõ7®O³Ãm §ÜØ*¡ œJÖÞ„ò^§Zä”Ðl¡ñœ¢ðUò§§"¯ˆ­ïRÑžÀº­² E«à*f=ñæ÷JÀ²zoXUÓðÀÂNpê–ržJ(G‡S‰B“9É>z‰üI+KSi¿‹vÖÝ…+®¢•§\Ť‘媙ø²š‰oÇ ì@h§È–H_Ü NµJ¨MøVíkÞн±)’š·eœÚšÐ`Kn›SêFé¶`Ivaðÿë‹Ú×ÂàÐ^ÙsèÎ+…­†šØ’Žï¶­À ­äT,Gn&NÅ×Ì’nC¡VHØÔÞ.$œÍæàH ŠÑ¡ˆáÔ¦ˆ¸P[¾L`S:eûê{0XYuƒ5j(`Õwgжãa‹ŠdýMµ¨*Eñì’5"–„i—–Ù"¡-âTrŠ›‡SqBcˆ‰Ú€S¡Hý”ᔺLm;$[§æŽ•¹E©ù,íë°ÛÏoÕpÓr*Ž;©­ m)§n 'ÏfpŠ"wÛÈ‚—.«.¶#°vUV=5$<¹çС+„ªž«¦±@ÈýJ|ù¼E tŸq*©'wœ§BB­bo.'Ïms*·aÑì:R¾ ìОÀ:¶2×PÓXˆÔ×S¦–׊Û(غ×&úD›8OY {³qÊΚírŠß¼›ü „´Jh<§ì?‘Ö>¹qGdà”‰'âUk×!¡urŠ˜…uëÎ^5S–îuœ²ö´ŽSBH¨ MzÙw~£’ḱP«òS°ß"ËkCP;Oº{jÞ]›Q‚­†skÙV1÷[ÞNuœ.'z·‚‘µœê8yZeGïMA¶D›ºmN5[è¦8•,t»œ¢À‘¾€”£;AÈC!ˆ@$ÚXO\½Èk3XYÕ—¤yuóÛV-âÙ"õÅàÔ¯°“g°R±œJ ?oç©:êÆp4)(šŽM¶ "GRJ!|€µ°Èw‚ðòžCW.¨¢4²nªp3q*^ˆ=£ Ìä„ÛšÈ©Ž“'6äÔæ:CS8•(X…8A$HÍ)!Hh[ +!Üœ¯·¨HÖr‹ªR$ÏnÛȰ$l=§’…¶ˆSÉ)µ÷WÞy*tmëByä‘ rø'„ÂúP!ОÀºO(ó êÍ`cGÊ´°E tŸæTv„S[zëqê†;OEònºPž†LPxr óYDÔ†C» W ¦«^ÚsèÈ• `ŸÊ!!ÅöäíÆ©HWÚ‚Pë¹–¹¡ü7UÓ­ m §bš÷Æ;y’-6*”,—7›,ÔÙ¡d@e¦«‘£9BšZ>³ „hO ‹‡W.¬¨ÏqÖÙx°ýæ°l,éñë˜[SÖ>}/û’µ7©¼×á”°udÄÉÙ4omNÉž£¿h&…-Òeˆô0PM`9zKH¯†ö³°xð‚~í`ÓXm0Ÿ£q¿å‰È°j¯]ãº;Ü–ÐpúÀ­šÀ©ŽóT“Ñlç©­rÊÏÏŸ¨RW”…%c•ûˆÈp„PSY>­Hh? ëî•9yà ݽTYm0réhg˜µœê8OYeGïMJÑáTë9¥„ÆqÊ ýÄÊ´òÿI÷A‚2Ë$µ'°vWV¡Lª¾Êêrpö*jjݨÐ"N‘-‘¾x+qŠ¢é7×¼¡{cS$5ï-éäÙ"ç©M rÊG“ês">㮜C Gè©+‚ ÚuH²§øØ1E·&´’S±Ù Nµ‡“§vKaœº%œ§’%·=§ü¿þÙ™q5®ìò¿‚Òæ›tG[ZX24žôb2nðj+-¬mrŠ"'ˆ>éŽóÔŽ8%´§â„Æó¶æ½±ÎS6N‘Es* *’ó›ÂŸ¶ ˜Wêû¶ŠôøOcA@´…õÄÕ‹ú˜»2hx¹l`Ø‚Qáɪ½NmUhK9Õqòl¶PÍ)Å#õÁ2Á©ð<»>†NjŒ,¦ù¢Pú7žt§¶¶°êŠSëj–ÝÌg¥ºz›!m+Šx’;Í)‹Pë¹–™0©'·/§bš7Qh’¦^§ÚÕÉ“,—-BíÙèf&lÈ)•ØÆ)5$$˜ôЬRóî¾¢þL ó¢‚ÚÍÂ’!:o展°øôVºÏuȱ=°HŸ¸œŠt¥-µžk™›*Ëæyæš¾êYïmNi ‰j•Ÿ$¤UB·…ŒˆP[d³…†8xÙ§Ù9Å'³Ø«C¨W„¤ÿa–ä“Cð„œ€WèjÃ!¡ôiÐc=*1«ÎFˆÛ mÊ)kºŽ—}Ûê Ï pŠÌNk"O>AênŸoäyioByíÍΦ¥/ûâÎoè˾d¡7ŠSz=ŽSÆ®Šá”É€Yd~¼ÆV`0¨ÿ{9èýI÷öÞV]“Ú¼ª«S= ïngÒ=Fâ~Ë·€ŒNÅ÷ivØlN5_¨†sàfÏL!ª ›¦XzÁd;Í©V ½9ÅÇyV§·q*4RÔ gŽU¼ú¯ön—C@õ¢¨ý‡„Qó AßѺú¢p£°œÚ§„Â1®j/ ÿ¸´§4–o$§’…¶ˆSa¡QNé ñXNi&éis¨kLiNɜ̔‘%×“Ñæ–fÔ—:ʹ@Û.‘ÌÍ(—Á‹{fåöй»EœJê^ÛàÔÞå¹¹½ µäÅd¶ŽM¸ÑªHqͺ76E³‘‘($œÇæjlɤæÝ 2šã”_‚d¡Iœ ñÁ ©¼úÙ8¥­5Ò†[˜S$¤[»£c´ýEDíö-áW.€± Á ¬ºúÇÝGYh%§b9²}dŒ.ϸ2°/1ÿhTò$z’ÐøšYÒmVèFœŠÎfKȰþI(Æ­Ì©ÍõÀMsŠÙU Za©¼‚KâkXu z˪UdåÙ OÚX2èé*½ú•~]X·,‰µEE2Z™¬ªIijÛ62LÜѹ +Ùü•¨»Èëá”%aë9•œ"Q{7zc9'4†X‘¨¦rj»BV4D AB¼‰Æ³ë*¯8Nù³Sª1¹ð¨âØÜé…ÛAŠSDf2hÓ9,î»ÀêÁI÷üî;-°í9%û+«–g_ĉ=PÊl%§¶*ôÖãÔV…¶”SMªx#c58¥«8Nq£Œ™fŠN`œb9@‘ $×–ñ™¥ .ß÷]®éN€?6¡­æ°î^¹"B“VÜÔr™C±ÿn¤Ä­ãTR§JzûòlØ»4{qß]12›/Ôî§bš7Qh’¦¶ŒS¶JÇÄÞõ"B7ê¨MjÈâ”…GAN…9ÌA_ÛˆS&•Ütê~Òùéñ ÁQØR¤D’YŠ_h«!áîªY§#ƒ'jÇwŠt‹äÔ„À{æÎpÇ•óÏû@PfÓ8ei«ê"¾¦VÙdÉ)b›w#¡V펑³i8nGhS8•¯æqÊàˆÙGvÙ9e¬¦DNé¡e`XÉ å©šr)¡’„Ì+GogùÓZnñm,B;Ñë¹è¨žw÷€ìžCˆy¸›Ô^»þÆu/v¸-¡ôÏžŸºË«ƒË³Ë#-šÀ©øš¶SÉB7Í©V Ý2báØJ¡œMº ‰œÒ$ Ç› œRÕ#ââ44§ €H£‹ƒNe®¨§ª Ô ‘ ‰ I3<$‰öš¥ûøj ü´ÎÜGmÚÕέçS€<`ïì…åÁ‘f ípêåT˜;Ð|Ù>§Œ1äóHݧ¸.ÈO~1Ä)–¿_3å zH(8§ø¼€Pm`‘ts}3št×3ñ©î^ý<·Ï)ÛôFë8¥o|ÿÜyù±Ë:0òΫgŽ} B)š>p£U‘,-e»76…õl$4({ëœj¶ÐM!#Yh|K6C¨î§QN™‘b8ÅACæ’1†‚YiN…,¦msJWÇ´„B¤/u¬Ç€œSŽÐCEj‡9¬ðÓ ™W.›z÷ØV¦ïÆÚË‘àúþÙó ª^ëÀÐ;¯.Ýþží m §â„„Îm iJ ŠÑ¡ˆAƦˆ¸¡Ð6à”Á„ÑÃÂ4‚×M|§T¬,œRù[‚T-ÈP Òº$í)2 ü9, ,•Ðν%´<é5ºÎ,©›Éj¨©+^°/DµÙÖ»,.I­ØQ< “+$e†/<ýΫ`5ª}ï¼¶¬€Å„ZJ·YNÅÕtcN%§¸•8•üCÓTNmW¨6g8§ "CŠærЂ܀S N)à‘n“YþÇ+@ú4(fˆèÆûam H5 Ô‚¢zT¸.qFpÜÞC¬3µˆSÉȰVHËŒMøøìyY£ÉÁ}îÒlpËÅÔòl}pß&„Z ±‘Жrj¡7–SqBoNNîØydá»®ò²qÊä ÈdásÐ'×Ã).)V’Ï#5¿.ä1àìND7jH¸)EZW´ª-,„HƧ¡Á·¥œ"„“ÙÏµÌ „]ž=²4[êÀË·?8±ô]ij¥ßyµ1ø©Ðm­ãÔ~ûÏ^¾ç‰Sw>”PÖäæMš¤©×Å©­ m)§š*Ô)‘S*±$ÆsŠ­œb²sJ_2rüoƒSæ.ÕrÆf$é² Í(ãÝNÂ÷ÆÒkû¡ÅÀÚ‚"=~õBUѪÎGÖźöY»W"§"])p­Eœ ýÀÌ9W¡Ù%Ÿ¿uÀ›9‡»‹èÎ[îMzûÒlo¹°í›Ü·!§T ¥€;gÎùÀj6§ì7nî<úLÉ»ÐxdØÉcj‹l¶ÐXNYxäT˜GÁø˜-‘S|€¦)¦’*™&Sè"i¦ïè$±äd²ä6So !ŽÐÎî ‹¨5sX¶–ôø ”ɬuÀ%põÚXëêtwpqäæqÊ¢o6LR$«(®Êêçßyµ¢F¾.¨¦ª\°8K#ùÄr„YšýÓ“ÏfÊ…%`834ò£‡>]Îæcn Ô4Œ/N[ÎÆ©í #”,ùÜ.Ô{ëpŠ«7ƒS”GˆãTp„eáÏÑDXˆS|Чeê’ÀDn™S†MJ¯õxPsJ"¨©+rv÷3M›Ã’ò(ü­-¯[FÎOé÷€ TB ,ù®°wÏ][­"lȈ5ñ›æÔö…þϯ|@ (k@¨p`͞όÙ¤ÐÇgÎþó“Ï–eåž6´8ó¡ïÿÅɇ>=?z$|o¤0 C££‹Ó&ªYȰT:¾ew„S±Dn¥Ð(§¸‰aåxz§BFоIr'žSÚ\ÒI£œ æ¯ £ZsJ‹ÜSa-#“ùŽ£þÐQn¢Ž?“å;»ƒ ®wH¨¤ØR/[ä”rçÊœKø»ý÷ŸØ;¾<÷èäëÊÈâ.£ Pš˜èhÆ›)i8}àÆëƒã¿xõ?]š‘Z @XÓv¥´uÃíf:±4ûÏO>+Oõ«Æ*PÆO>»–ë+î³rJ‡r6߿ۿp²qæ­C-lPÓ§6%”ôß w ô(jóœÒPñéæTdˆrŠ]¼qœÒUÓF•/Ý/6ù¸³åå;=lsH5¦uŬj² d WWür`ßk{y L¾.çz´GxCš`€ ôª¥ûZΩ¸šn]èã3ç¨e` Xê ¡ T€:Êöš­ŠD°«\ügŠVuE+ ¬*°ëåg§žú/m52ŠôËÑ#NŸ‘ç¿ù£àâè‘he›Á©°ö¯…cƒ-y½È°== §Z$t;œ \7— §‚YiN…,¦8NiàÄqJW‡“ˆ4l´(‰:}ˆtŒS¬&sÍ)2ÚñJ™zwô‡Ð Úš…Ï)ÿÐ v†Í"ðNû†u ˆÏ¸Ë/r²û((£M8e«™êŽ@¨k@‘PÖ E ¤^}vÝùPH®_~ë¹Ûʨ™{m£UÕ;ÖF¹Ðóö×îy"œ Ëgfh$ã_#yjÒ0"4–S Š'”]Û"§6EÄ …¶§´Æ+:…y¤ò Þ¸1§xsÊ8º2f8©¢XNqÒ±S˜üœRU&V5€ä+BUKùQ¡Ð‹4sLÀææ°’~xùOšÕ4tE›eÌÑ•¹´ÚEÐ:àöÊÏ]àË`HuçùY…!Ö D+šœ0SÉBýÃuòM¡PV–sXù‡>-²yÃßù³õ‡>]ŒLfɳǦÏ>6sVÆHK­¤˜¥±UpᤙpåÏVÙb¶¯’íÓ½°¡}qw„SqBãy[ó6‡SÛªÍÎ),œâóóŠã”Òy•™ÜdJ ä€(§BC6U™VsJ]Uœ H‘®¡0k"KN 6ODD"iH¸YNñJGzåFœÒao¥èù{Gù#U95PY ­Üл÷® aj=×m%§Ôù:™É¦ P<ò_zæút×È™0+¡S…/¾ýyPŠ@(«@ ¨Ê·«ê5«xù;ÞÇÿ8¡¦3Ã#úËE\ S.š.†p¸u8ÕT¡Š72FQ#Â#Ã)2Šoç”å>–æ9¥‘¤Ÿù¶9eJÃ)žØÔÎÕ%´äïß( %Ë*)ÕDŽrUsXæCBÛ¤û–8x’dZcÓœÒBÖÇt¸myn h(ÿ,èéßÛzN%õäM9®vç{*E=åTc6c/³§2ê=C¤lô¥·~,ƒ.PJ@1,í§¶¸å‚xóǸ÷‰¸š¾9zäé3u䎋³MæTRGJÅ69eÅmT(Y.[„ڳѽ˜Œ*N1Bhƒ+À©0‚9hE9e„s` "cœâfœRYjCI7§_Ö2AN…ÐfR2Ð)Ø10ÁñÝGÙ:¯¥–µ{Eq §dð|á[á”ü{[eU–ãèòœܱ<§×ê›Ø[_ž«1ü"ù IDAT1÷î˜W`íÉ)-ôôÐÈ3gù‚9zå/~kF‹CB›>ûÙ‹'åq XUæ•–œ¹¯fûêåB] {î{ÒRS@ï}ñÅoÏfóÄÆÚ‘JÅŸÛž©V—8¡–ü¶…ŒˆP[d³…2óˆÙGœGqÊÐ(Ä) žXNq Z8¥L"]<°Tе hæ1jK&c"œ ­œ2ª”¨Ç¹òPƒ 6økøB ê[çÓ7/¨ÈqJ‡»—gàŸºôúG/¡ ¬*Ñ•î|sÚý]ÝÛØfÆV”(~¬ÝØ^ÓÄ(«PaKåFì©´Ÿ2 t¸\üâÛÏɳüöÑo匘t骎q/œ m4kÕÞålþ¶raÏÂôŒoaM_§â›·)È`Ù÷• ãóÓïŽÉŸ+} Q'ÔÅýÇ®K(g“.ˆ•SÁ’%Þdæ”®§“á‘æ”B˜¯õ!NÑ,]™fsŠ·†¾ÊYlJÎK§)ÌZI£ÊŸÃ’>¢þú fÁGÁÌ £ýj»Úkí½á[£ëž§‹*@X æ’] ·÷.{þíÊ©PÆAëÉŸ§ã÷¦Éü×.žRoËj<¸ª&Ý+@$Ðõ»N4.œ”zÛ5vD=V2€w†F—ÎàN©S£æÔ“§÷/LåJÅ‘…©žRA^–>z®ê0õ*cX–"°ô;Ƕ-œS†ÛåÏ44| 8§´¹dîŽp*˜¿*Œªç”ÙNé·lÈ)ÖÂð­HÍnyà¶ñ—2¯ ,eî\·öD^ØxŠZð6d쮬ºìËîUÔ»<»¬âô컋bò ”¶­8Œ—ÌÒ_…„úî£ÁÂ}õž'OLŸÛU.Ô•m¥Þ ’öf¨å±#šûž´wÙo{´l)õ9H/ͬJ|C9eúÇÏÿÍ}—OI:Ë^@)¶Þ¿œ³««j¤¼¬nQ¨î§QN)MŽç£³›4(”ŒròD0@Ü"§tu8§˜õ¦ Ƥk éH°"˜ÊHgNuƒ±S–; ðBš¡.ÈßÇ,ˆ,Àâ§Dþ6_Á>½Yí%öîkº9N阣+su5KµÎ4 ûÓ³Ô4Ø’IÍ»%dèð'ÏÿÍñ˧Jʨ, ÀÒrÉYÕ%$²W"° , XÍâ”QD2ÊÌAÇupJ•ÁÊÂ)£ä¼ùI×B*Ò)‰:ýqŠø]êü=&„²@ÛEÕQî$Ý¢ ³iN…ƒ"f02rhíÓzÝ‚†ÒÀ†ÒCýßFä.Ø8eU«¨ÐøšYÒ…EÄ Si`!›·åa)œ…½?8ôÐ/œÌ—‹OÁ«Þð¨7UtUFéáQ{ ÔùÅᑉ©3š.Zœ&:I»mNYª»N.þôÿf|~Jbh (5àÚ®±éýG˹>8qæÅÑù©ºòù‡ÇŸžÝlàÌ‹W¾¿T€ü&„js&ŽS–áÏFœ \7ñaN‚9$sŠsJ"À)Ã^Æ)ç#’9Å[ ŠS¼„¦•‚„4_1VLÒ¤–”\½BÎîæ• J©¼“U5šˆ]ÓÏßó"7š32Lßf¢Î´Úóù:8eIØ:Ni¡GH=iêJùž¸‹³‚;yÆùw=ôÉ_ü¸ª2tUûÈæjŒMŠÎåÓC#ÁŒÂ…:¼0“boœ…^àÄm §d‡*þ·¿ÿJ®T(¨ñݰ¼øØÓ3lýüþc‡/ŸúØO¿!g¯ýô«Óúüô2°¬}ñBÃ.ufã‘…SìºÊ+ŽSœ5VNQ0}²Óœ²åo2ŒX|aNqÒ1qº"¤°¡êîPNùÛêÝ !?~6M±mNÙÇj›C†: íêÜ`æƒVKHåò!j4“SÖz^§¢7 ó_r$¹*E-AC9*ô§‡Nœ8²»\¬±­ƒ<ÖPÛ¿#wè„ È•‹Sg.Ž]‘KÐv•‹PSB@©@•Udó\(«i2®—S2<4yú ¯ý U*,+À" ´°klxòô¾ÉÓÝ@7¡ p´ÜÓßX[YV€ìO¿>×Ó_Vêé Õzà §ØPÅ(¾SÜ(c¦™a CSú’‘ãx{œ2¥S6懋)‚* 'Ë%È)Cƒ§(”¿Sì”e¨L0µ¦»ÞÚÿ(ÇìL"éÖÓ½6æTðFbŽX6•N0âH)jhk¯: JUì’> 6eÐGùÊj‘H#”×ÔšÆ)üw[¤ç°ìrÙbX(ý¿~î·ü5ízÊ_PÔÊÅÔÔ™úâŒ8¹|×áÐàŽJÙ¾ócG?ý‹ž›xelb¸\<´0½â÷5õ~ù4~8$ÔRÍxNYÛ&ZSŠ$ðÐäéßþeàŠšŠZ @pç§ò@0ô9Àä+ˆE`UbKk++ *0öàSpÊ£ §ÂöV0}m#N™üE®›Sá!›nç 99¶È¶È)Æ@ÆA29è[¸ÅǤ««ªqˆïP϶#tÈ_¿A†”ÎhÛœR ¹ »ÉÏ‚ŒÀ9õ£]+×™AÍ+ªHû—gî:}þÛ~ŠGZÉVÏ`ÛÆJ²7Qb }UÎs§ÀkÞdç©™¡‘·Ç&F¦ÎTÔ»|ýßÒÂt}aZ¢pà‰gB5•Y¬æòÿñÑÏ}ù…o9Àm¥bCÿ¸©Þ´ˆµUª™œ’Ÿ}íï=óâ5`X®‹@(d€.é~¡^nB-(¶,‹ e•¾ïÀ±ƒwëûÈÎ#;§´>#‘S!ˆˆá”ΘsJ—D7„)G›r*HÒN±"©ÒÕ÷7Å1åÀpÊñ?0ô×ÊåÙb£™´–GR”„<¸ì¿`®€|§/‹"Eà耎Ϝ›|åµ;Þ³iNÅÔ4œ̽I)t÷1tÐkR¤Hr”GÑVVá§÷=ùÔât£T”œZgKà»@:—ïôs"Û)™)í¿{ïçó^˜v•aKÊèkLq¸ìp 6Á)»ÐXNÉk¿ó³oš<5,*ÛjAÑÜÝ xÀîK§Òðäk͆ï{E+ê.9Õåõôžø ƒ;¤ð­pJ=,2Šgã”ÆNàTN1%×Ù§L<ã”Æ ")u‡dx s*ÎâSWY²¬L3éÒø¢Í0P¨i,2åèÕfä0Ú‹õ¤h”Süßó'xÏÆœâAÛ.³ªøÖª œÒ'w,Ϧ€¾ý“©Á‘ùÁ};˩Ф@{9èw- ö:K¦¥lþ{zæÄs_«–ŠšS €žÃ'rw=,r–ב¡š~ÿðÃ'~øUy¯PŸ,•»0íÈ׋­ç”<ü'?ûÆèä©Å©y`¡§eÿÑõ]cî~ßù³\¦ùµÇ^üîॷr*PõT¡~ècݽýÛà”Æ€Ñ:ÒC=Æ)£ŸA jN±‹;Æ)Õ쬢!Nùâœb?àœŠXdŒSúQsN1RA‹1µ3FV`êJ@-,£œ³"Pp‰äísÊ´&ÿÍ+gëé‘ï-ôÜV§ôÅ]墬Õ{_ùOÏ~ôŸnRhT»¶Î)²%2פǃ|=UÓY¼(r/?)çò/=ñ̾í-L;@jl"—Ë÷~Ø Î—'Ôt9›ÿ÷?ùåŸK޲å€+°>uÚÙ5šX=shÅjRKûS_©ðùŸ}£o~j¸&ÿõô_›x¤:ñ¨Uh-ýÑc¿qx~ªw­PWŸ(-–P†Þ½ûö{’8ÅAC\ýjÌ-N…,¦8NiàÄqÊ¢Õ&˧lC*F:VS™éÌ©¢?m§:u¾¼š RªmýgamL?Vd«T@3a"8‚R‚$È‚YX Ø‘U!OwXC”Sºê>‡¥ÿÕéaèaAìs“08s¶rGÚ§’SlŠS¡Ô¤h•r 3ޔ鶰š!4î™>wäágþñ›r}Wù/ x SÉÍä”<ê+¾ðƒ¯ÔÖVä0pê¶ñ©Çžvs} Bµ93·{ìöÉSë€ôfXQŸÊO<ü‰îüé~²=N)ëFQ‡˜ênŽSÌráœ"#Áb98e ÐtNábòo2§H÷aÎ)RÕW­¦ñ$iE¶Û³ QJˆ´ GGø†<ݷΩÀy8•iÑPLøŒˆOõÞÜÑ+"4,NQÜDe5,´¥œŠ«©ŠvüõTÑ­æÝ= 6}636!X]o›Ë)}ôÚø±Ïæ~ØU*t=ÌÈj\>?ºMNm$T}áû_©­­,W‹G]xð)g”Sš;¥žR›É/+kÀØ=ïß{ †y¤ò²qJ%qŠ‚9è“ëæñ¶ ƒ5À)F]Bkþ||°i²"ž·!Ç*²uNé|™§ ;(ÒkÛSZTþ©ä¤„H r„H;”r„ãPŠˆ„p„ïé¾9NÂÉ@DÜÈÚ€S¶žLé2÷+ɬ¬¿W¨SZ¨ö*j½3g ŸŽ¦ß&§ì@N改taxtÿ´žáv ×ø†°l¶ Ç8P„&‡G–  ½@Nî?¶0ñc[çT¤ÅýØÏ¾!m«yàô㿱ºÿX¨¦ŠªšêÌ?¤·J+ɦ÷ì?üè'“8e@À“sŠ!H[L¤õŒ´iÀyèøz9¥U=`׎IâTmÍä·ø‚‘¼ T¬Ê¦TNq4“nR)×Д ‡(E"%(%i%üŽB ‘b‚x7Û §‚aËœ¢p ½¾]èý`º»Ï®»A¡z…)7¸ÜpðPÇ„õolqæèÌÙCÓç¾uâÓ³C£q5•Ol \<>}f|q¦«\ì[˜‘k›üÝ'ÿ«J¶/*q1›?¨&Ý5³ˆ­áÿÃÝ‘ìB-‘ꚥš¶&×çoŒ½÷òé. È½ÀPY˜vC)JHè¾ùé\i¥LÊ÷zñBß÷ê÷w_z[6ԙǿ°*¿¶±qŠirÀn`•ê8ü‘ß&9¢`í jðÄrJýð+ sŠé3”ú™LUUÉÈ0ZÂ8À©!£s@„Sá‘ã9Ũ#™¾¥uœ"V­ñò)˽¼RDŽ Ç¡”CŽ ”@JPÊiG …'šÎåTX›Ã‰Ø ´CðÞˆ"…þlßá»fÎyÁS]å5º4ÌQ¡áHùÅ TÝÓg«Á½E­5=¸8sßÌÙcÓçzÊéGþé—ŸýËè²è ,ÎÜ?}æÞ©³Cå¢,d XV»xí;òÝàRŸ¼Òz¹ú´!Öü¼(\SK£_§txgx¬ È9 G+3?µéÛç§J…ã—O{À½“§ôŠÏkj½„ƒ=ÿÚcOwY…œ­¹€ßupŠÅZ¾|Þ€S¡ÜfA¾"$ãÖÐào “´‡—ff•QZç3ZÓ¡rñ£OÞ7}.W.ÔeMʅϼôßûD1›—B÷/ÎÜ7}æØÔÙ¾rQWWuµ@•tÊï›>,-r!›×:ú >`}aZ›ˆXGkúå}õçw85~Tö‘G_ÿûÛϽ´ ¼ôÞÏ_?ÛÖ–sÿ™.÷ô¥”[CW«k­SœŸ~òì‹Ç'OAÛ­ÌQN¬^°¶rç÷þêâã¿QŒ,ø™+ïyõ« …ž¾W>öÅzO¿ïŒf”ÇÎ)­–2¾A( Ð÷Þ_ëÝ{ iþhøDpNis)SF™j0è3°}Nqm×)ýû„Qy^$hAIœŠXdFº–å”16æ”z̉œ"ö_%¹PŸÞËËÑï…šnwDÊ¡” !HY)VÁmqЧ¦@6sJ7bßýzþ.ÇÚì©Hþ&H“-]Y­ÚR —‹Ÿ¼xòÃN–•e¤?*^W MŸ½wúìÌðˆÆf<µ-ÍU¥¥`Ÿ‰èuœS¥âðù—ï:zaxä©ó>°„Úo"TìëIÑšžŸøí¾õÿ?J@®\”ß ²µE\ÛŸžt•£Â~µóØêäéÅýG ™Ÿþµ×~px~ @ðÐ=uª¿m¬ª–øé×ËŸÿï¹>.ôŽ3/¸k…•ž¾×?þ¥FOŸ¶V”&ÇsЦ·´rôÅÿ|(;ïí?þ8U˜S†D! jN±‹Má³u kÃL V•6F¸ž¶_4øtVì`³œÒ€sJçË‹¡óç-ÚT=#ÖDqœò]CUa´G»üxÐñ9EŽ ”#§±&9‡%‡„Ž\^fÃ>mZ4in’©²DqŠ“P{yjç½ÎŒ¤U÷àH ƒ`YÞ?}ö_œ|öÌÐÈÿôøïèyz …üâÌêáôŸºðÊ3oýh]̓Èå˜ÿîÞ'‹Ù|!›ŸáŸýÍÿA€ ìY˜šß­ª­ä/«Ã£{¦Ój¥mÖíºðòâ]'BBõ’÷Ú¼â×™¢DÚOUøÍ±cŸ|ý‡~ã‡gÆ‚üé*@#t§-ÛÓ¯í?vßä)9*ì¤ùU€¾ú÷Ÿy! ¬)ÛS)å¨Û=õ£RSÖ™üb¦ëgß(=õE-´oazÏéJ„W?ù¥õ\¿àœb<2Êl‡æ¬wmåCßþ¿–WW–Rï@îc¿Ç‘gáTM!NiÁN©|‚ÍÏ Sz®À:}³8]$ïz9E†>&Ÿ§¸Å–a(%2‰SB%ð9¥ü¯ú G¯ÚîûµKÛJ͵‹”C)‡Ò‚„òlHqzØûôvÁ<ú1…n³ÂñôÐ>ý8e¬ÞQF[=Y¹^°,¡’M,Î|é­çôšP¾áPYåª?X.þïÿð— 5µ ¸Þ&ë‘7|qìÈ/GÌ©ô®2¸êj¦F~¹¶Tå»N\»ïÉüâÌñ¿5X*:€§<²¥â¾74ë ýìs}.L5I9dP™:“? õ7kZsøÐåÓ¿ÿóo|©Ð[.®æòëjù:³(Mô)ÅpJ'Õæ^èÒô#<ö³¿9:yª¤PUVŸ.Ö•+Y—zuà™ï©¡Y¿6E StÛ¸”5|úç%‚ 4zDG¾¾uejÇM­ÞRá#ßú7««+‹ÀJï@ãé?qÈ÷ºµrŠÌ!™SÌráœRÚ®ñ–C€S:3Î)F"$sŠi»áTÀ¦Ò­dô(ÒtæÏ?DRvÐ N —Òõñò?4?~ñø4–ði1²DZøž ‚H‘²N[àTð²iÞ@¼•S:Ìgó‚}…¯ƒž½jélÞv«Žñã>yñ䊬I`í^œ>¯®>0söO_úvZ½c’KÄ­€*ÊjØ?uöÐÔÙe|qìHCI+ê+ùEÛ°Ôrùõûž$`uhäùOü×G~ñ£‰ó/§R¦Ö¾s/W†F—Æ&tC^ÑŸþ9@ŠÓvšÔ¬˜šZœþ“Ÿs ð€:°{az5w´¦hëFšuCNé9ý/=²@/ €û_ýûÒŠÞJZî(mLÒ@²@ @z€ ½è Á{õûÙO| §\L]:µ*71ê§×üD81ˆ€üZá£ßü7k«+ò#çÒû?-òƒZ5uœ"“C;r*<§‘çqNqÒ1q¬"[à”2Ué§T:[ÊPËl†Sò=®ñk'"¶Í„Cä¤ÒÒÂr¤–´°|#‹//SÞP/ûÃŽÈ#ðçn唪iøÉ nž  Çw •ÍÓÞðz©¿4ÐäŒÍœ=rlúì3/}»ªÖ/€äb&% ¤ è-<R[k@˜­.LK`•Ü#ŸsXÍÎrmx䱾ݥl–"pÇ ßªNÿðò°?ž•;PiL¤5£UG¨§:úý×~¨ËjÀøåÓ¿?Z ç°ôý›æ”þ#*ÒÌß½ô”V$ åæ+ª¡@7€wçC—N¥Ô~PµùH­õkSÙòª“ëwÞ}{MV¿§Ÿ„ê÷dßÎ)‚üjá©oþŸk«ËóÀU`ùñψÃljvb9åë-—#¯l“SÄ[.h†8Å„ê"RGƒ2… @€gÐÑtN1’ê–Ù$§„zjB3K÷T’Ï&ŸS>Âà I*Hþ–b–pŒû¥…práø/¯½OGÕ‡qŠC†¶Ì)}¼œí(ôG*zý**“3kÞF¸sÃ#3Ù¾ár¡®¦Ì >ö.ά |þ¥oW¨,óÀ5 ¨Òôׯ&î:£}£j¹¥pò‘Ïö½ù#ùó¾ ÐØD~xÁBL}áQzò…o¥Ôæë@vazôüK+»>/=(¿XV´’ÿÊSg{ÆA©ièà SUel®Ý¥"ë )ˆÊ 7Iè…"Í!ÿg^\ªÁæ²Z¹e¨NOïƒOyû]zðõ¾K§$HÓS¯ Ôæ§rª—N•¤Çîq‡ ™]¥U‹sÇב|ÿ¯×W—€kÀÒ]ÇéÁjør` "cœâ·0=Õ L¦MPÐR·Í)­9œSú6^nñ#y0Œ9 ]¨¡‚œ’w óK`8%˜Í¨9EêYøöiûKÓŠ/ˆL>˜„ñM;"å#DÊXXÁž¾uN1(E6R†`ÛšÈóƒû.û»ÎyA`É™ìl̆Ï2,fóÿêÄgþå?üµœÍq”± Ç_wLŸ½gúl $Í“àªZ"® +—ÿŇžYÏæ˜:#-h¨éç ðÚ#Ÿíž>[,õžwû?(‡*Ù¥ñ‰éé‰ý—ÏøIòפ×a)›ß¯Ì+½¢ o^¬ã¨ðèåÓ.£• ,Lä(@»óÓ8¢›×ÖæÁk¡Gî(Z©ÕѰ®v¸\–UPöÀ±]>…ž>Ù5ßþÀ~úÿ»tÊQq™ÙŒòíaéÚTï÷Ò=ï«Ñû‹€·g? R†‰±X¬œ’ñO|ïk™¹Ks„+À|ï ÷k UEv¥(§Œ9ÂÔÏ(0t¤’Á#Sà§B† n$§B#Gmĵ˜S:kÝ€ú@ø?>ƒ„JÆç×…*㇚#§Þ}?,"‡|Ñ”Ci9ûN"åãøŸC³Tãút€6N¢ÂÖoêHd4€û‹ªw…N¶lòx9.œ=¸8 5+œù¾£åbX< ,r=¹Û]w._ùÐ3ljÊÌsõòØ„¨ÅÔ¹\ï*ÐsøD*~…¼ŸÿÈá©35øëŽË9{]ÓÅ\Ÿ@¥Õ¤»c<òÉ[ÛkïWùì½|ºw~jA5QäW`cNé# nPØP¯#æ+ «À20pôѽïy*8¯Ao>üñ‡/J©ÙFþêS>»r©àe$ˆäÂF*MˆS ~u>üw_Ë_xc–p¸Ö;èþæëÈ¥ùB¦ƒ`˜SŒD`ÉuA¶Ã)Þú*g±†B t<…9•dñ9ÅI§³UDßÂ+äÃ(ËZ·jˆSÚJ’Fz'9EÐCŸJ<+#|QóŠÐqÔ:BH¯wýÆPø~XÁμ]NÉD^äÂf9u~häÄÌYþñà:Û¦wh_$óàuøÞ¡‡þø¥é(­Æ\¥äeõÞ}¸ÌæòË¥b¹¼û¡g<µ’T—–^þtpêLeêÌœúr­ Œ~ØF¿(«¹üÛ‡>rÚ;¯Á~­. zÌ K/ŒU¼|øuÕßü_ª‘æ=¸0½üœ€…)½Wv£\»tm‚Sá:¨Ñw (äÊ-‹¾y…ƒïjBBëL¹gàÌÝï{ïÛÿ(÷èΨ]õ¬þG3Fi éDjphøýüèþZþÂ3 9à*ÐøÔ¤ú¹qåËßÔ°%œRǸ^˜”¼slÌ©ˆEf¤3c*œU˜S:Þ2¦ÕTɉ5Q€SÚ’pa6‘PX9el¨0§ä½~Ô”gƒ™ÃJ‘p鯥Ë{ÚK(?~æ];Ø9E,‘¿‘j‚‹6ÂbB¹a±»·ÁÜyÊÌ3 ÌR2÷ÊØ„óÒw<…ª 3LÊŠV×äx°T,.°ûÞ'=¶c`È*ß"ÔÙ¾ð«@È fØ:yÖšž›¸ïÜÉ0ÿ IDATKz„Å'Ñe9lew½¸{|ób T¬«— ú³žÑ˧ ê¥áúü3•·Æ)}î‚ôH¼¬Vn‘_À ××·{œi²QÓ«»÷gßþG9•–Ö›Nê uÀ#rç3©‚œ YLOýíWÎû´ºT?õ™ÑÛ7Ã)‹Vk5 rŠ›*ª6Œt¤#õ¡N!³\€@‘´Œ&pŠ¡SçÛ"N…œ§„º‹4§¤Áeð$¯§4Èà•Ių%½ó ¦©ɯ´#ä¤{*°Â X«ÇJ¼Uµ!–.HwYŒ0èÈüÖ (ÊÄx º¢UEíô[S–NÿÈ´I™(ôå±#Ä&³¡fåg˜fÕæÀÙ»NtM+Öű‰îà~È5õV±T€}Ç?l­©®fvé5<ÓÁËoí?ª#RÁ…¼yC5Õ WüËßþ_gvIû±·ä[UþÕrQë”i^snõà9IÛØUSQ«@™P$”`÷Á»‘ ß,÷]b9D§ï¸7 tûÞ["—¨’“w®ìÊìãU‡Ôòܾ÷ „ ¡2$ô‰¿ýÚ®óo\f€`í=êžxPÀ‘‹èª¾õŠ”Žž÷HígçøbˆÈ_¯RíÈâÇ©Är)^ºÙü}ñ ý•Žùjf4Mï• @r7=UCRYm±çk¾,Žï$3ôu^ø³9jEs2Õ!•Ú@Fgè@/…®×/†>%Ã9ß$@rå)IRN›ê{cßÊŸZ‚ãÈ!›H)SÈq„ú’Žü\™ü9ò”?_N‰´ŒtÈæ÷I¿74žîþÀþt»@Ú÷õWnøáO_±m¤Ê´'pÎxZ«m, üí,,ô¥Ñ#x|_réõÕ¾ÎÍZdƒª”Z¼T¾ž—o»äÊ–ËÀàäò»î{2”IFãä<´ÞGK~¾#r}=þòÁ‘Jx½ß?ºëòé¬zqª½F*ÿ:§²0“ f®{äÏ©XËõíR(Ìø¬‡ Ô秺6Z)¶gªƒ¸d¶á‘ß”Øwǽ'æw›Y]DòI¹lãnéJº÷Ð}B¯£ÄÙSÄòûäwÿÃÐù×§)`(¹¿ÿ‰_X Ìr!VeÈh3H±ŸìY…ì)ý_?ÓÛÃö³JØO+¡.›ÉŸ˜[dPš"é…,²HEôU°Š«§iã`é–Ù’ó”â»2¸€ñ¨¿WU3øQÕT¦„F¿ñtʼÒÿ•sXß{îÅKÓW¯^[\X.²TyÓÏm˜bV&ãS[žE(Æž¢¬_k£búL È«å˜ÐàÝêÏË£'¦Î¦Ô„·´ ê…ׂš‘©Çý\T·/>2u¦ÁÖ,­)s£ ŒOX…†kJH©1i&Òï\˜ÒëŽf”¬z©Œ²<Ìz yïäé”2ÍRÌé´Ô¦» $ÒÆ¬´¸,E¸Ê…Jÿ«»÷ìÙåù½–äoƒœ´ª*S´æûßûA€56NÉò>ÿÆmç^Ÿf`¾opà‰§Iÿ,o‹SÄÇkN12U·åoÀ ©‘Îó6¤câXE¶Î)¯*›ÊA†RòÊÚœ§¶Æ©pÿñ‘"‘ƒo®Bg®ògi:êÛæ G@:^Õ××ÿîçoÌ^]œ_*,­¬VK«kåÕR%¥ûðÖ9ÅS«NOÁÈ@²d’ÑK£{§Ï¬)`¹Ù¾ž‡?³öÍ3”(4 õدýššºZ–€"PÆ?Ù34ÕÞå\^èuåÉßKª¢¾J’ãLjÐèÑ™ñ£.ŸÎ0Ï&}±ëø+–`è±_þsAÆ¿,­"IN·•Š–66˜~¶JKtÛêݶkêCÚM·ßó>ã<Å8%»ãƒßtÔ¬_EùÙVTn£‡ûý› ‹rJfzäìkï}ö+W€ËÀ%`úÝÿ!Ó7@ O8Âk4‡SÄ#},œ ¡sÊèH39e2d)Á‹ÄJá”Í9¥L¡(§ìÎSP3V¡9rRJ<Ÿ‰×œb–ƒ ’ôÆâNXÊÓÝ¡ÅÅ•WÞ¼°¸²¶²Z.®UVKµµr¥T®–+µJµV[¯óõ°¶É)ÿÐ3=˜lNéDU@Óªxü]"Ê‚sÑŒr*”ßKcúâ·Á}£HÝRöæõg¯oaØ®÷B»¥‚ãäWo  ™ÿºz-[W´ò#wÜ#Ï @:"zàâ›zÜ-·ÛZ%ùµîÿÀgõZ·Cœ’1ç^ûÀwþý0M¸Ì8ñäàÑt-|EjN± 9§Mmj‰@þìÙ†8ªÈ&8ÅŠÇԔ̣ñ¬Nž6§€BóYN %UqJ!‰dçTȋᔥOO@K+…ÙkKu—ê5\Qw±îR½Zë×Ýõ†×p½zÃm4¼†Ûh4<×um©Úè•„Œš¶Ì)}ãJ._­ű#ÕÑ ™º¨ Ô("4Z6u²ËgKņúj· >Ü­C㇭¬5}wxäî©‚ÞdL¯ý0¼•òä( «Äþå]£Ú—*¥^&¦7|–ƒSŽ_:õÆþc¤ ¥Ý¸ä¿êütn?¢œ2Êc8¥4Û”´ûa$¿Xºóøã"Rÿ€ƒW&W—åžò+ä›±r¹›ƒw¿mävUÿF9%›ÿèÙמøÎ_ͦI`¨M<8þä¯+ˆày$ d¶Ç)®íúª6I©‰Äð´UN™'ᔑáT "gdå”aМ<¹•¤~ͽf`Èò×/ÁÔàÑ/¥”„kr^I)KóKņ ƒpÉñ<áB4<Ñð„ ázÔðÐpázp]Ïu=×ó\žçñm¾®‹S<ö(mÙÄpJÇ^m•l~æáÏê§6,dû,YF8¥Ã…¡Ñ{Jg†¤ŠÑjNé'åGÂ$ åäœt·8y¿×p*01¯ª¬9¥;çÔ‹¯Ÿžœ¾º°¸²TX-®•Š«%σáŽ'JyÂõEŽ"‚ˆ²}{÷ôäû»zs™î\Š%þ;¢`´9ù`E)eãTHÚ O§é‚ñâÈ:‡üêò{_ýÉc¯<×–ÕÄÓ$0 ÌE`ÏÄ÷?ùt6?`å”Ô¾âò}õÏ2…¥y5U¿ ”@w<ýeSZUfOª±– r*`3n†Sº©9§Â±üuB±”*CΩé¶á”2…Œ9C£ùcuòŒ8OùâÃNž:+«óã”Ú853wí­sï^¹º¸°R,׊kår©R®VË•Zm}}½Þ¨×F£ÞpÝF£áy®ë¹®ëɉtò¯;×ÓÕ“÷ÿõöu÷ä»òý]=ù®žÞ®lO:›Kww§2]éLF¤Ó)'%R©×ã(§¬Ü²³F÷š@ê(l¨±sJ¡D& E.åúô^;"´H^<§B5=?~¬ûò)ÉáÌ.û3á{Ù5½ëü1ÿýÇžp_OjmE5Ý Áõ‹i‰±€?üñg¾û—.[ˆ½›ùF°úîÛC÷>¦ydá!¢7ÿï}MRÊXëÉb‹óoýWMt÷«Ï}ø¹ou©›€)à—À/Â@ùÁû?ütO~À¯ª„QÔþâÊ}õÏû K+þŽTÊÀmO=»CߥYâW_¹Ö`W›Á© E¦o¹±œbNžÉ+äidlÇÉÓ¿´yç) t$/Íœýåå+óKKËÅ•âÚÚZy­\-W+Õêzµ¶®=<%¦\Ïs®ëyžÏóÏóÉfÓ]]©®lº;›Îötõôvåz»z{»ó}]½’_=™lOº;›îʦº2N*í¤SŽ“N*¦~‘(2Xlh#Õëã”êD d¥zqxô!å<µaYâj:·ktüò)Èï‡Ç6É)ùçÎùi½åœÃJoÖ'SûŽœ~±[­vùé.ã”>œÝ³v÷þ}W'= KѪHûK  ðÎ[»Ž?nå”®ž6%|“>?˜[]Jô3¯œÈR¯ý$K8öÊOö–ô÷:`x—ð.0Ì^~ðÃÏü9e[…8¥ :üÑø³¾ÂbTUî&u =vGþÑX8߀òà1ÎjÛ1Ì) ý™]à·øLé|:+ëá”áW„S £,kÒ-ä”"ÈvWÈ ŒãˆÝkå”Âd…°AG‚pêü¥_^š¹2¿´´R,¬–VKåR©Z®V«ÕõªöÕ†[wnÕÆTˆS»ÆF»{{¯¬Ï‰t&•ΤººÓÝÙL6›Éf»r¹®\®+›íÎå2¹\w®'íIwu§»»SéŒH§TÊqᤚº‘*{r‘Ü`‰´¤ epJ.åújTed%J¶ÔtnטüÔÐRì‹™8¡üò@y…ï á†ndg§¾wìô‹)µcMM®f¬+ƒ,Ý¥€çùÄ3Ïþ…\ö+EHƒÒì#êÒ•I=÷¡GÔo6×O?Ûé}Žœ_&¶E·š¿ëî[y€i 5€a ˜Þ.«…[ùð¯÷ö „ôYi–zìôk}…%¨u„ü¯£ûó_ørÐx1ôÖ¡ Î.m‡S‹ÌpÊ<ѧŒ\ §£uþ~ö¤Šåûo“Wȳ:O!ÑÉÓê<%Þ8uñËs×——VŠEÉ©rµ\©Vkër~ªÑpë’R ×õ4§<σϩýãÙžiU¥»ºRç2N:í¤3éL&ɤ»2™®îtwW¦»;ͦ»»»²Ý™lw¦»;ÕÝêêN¥3N*-ÒŽ#ÎV6RMD†Zl”¢7²|£'ï¡Vd\Ú5ª÷Îûü8˜,¹¦XØ5ê»(/° 9¥<µTM}ÙCÁDºB•žþ+ŽuMž’†’Kä˜iÓ0§ zêÜÞ³{öï¹zY;aé3äXxù·†Ýâ”Q'm]© §FNœCÉaŸûxêkW½cª«À¢z98}Þ~ôAÖ˜Z¯ì ìB ]1žzÚédåQ-³\d;NÕýÛã”.ç”ΗƒuñëåÔfœ<ƒN A'ÏÀ½@Èyj+Nžªƒœ§Nþâìäô•k‹+K+«ÅµÒÚZ¥T©”+µj­V«Õëz½á6ênà ûWö“§h—nÀ)}4>?UQß×l{p)„_Þý¾{&OÉÿªóÓâŽ{µ†ª¾¥:¦R;]¸ó¾½W/Ëü\5e¦×ZX¸øæ®»îלJÏMÖ÷ˆrJ+t¡oPo˜Ø`/7å |Eåuá©ÅvV|¿v¬™¾Á}ZsÐ(°nóƒò¿ûñ}ÐRÀð×ÿíú×ÿ-©ù¸µ~uü·H¨›èV®ªlƒPj}Cõw@aEÿD¹8„AÀ4©R|^Bv Ž.ç#]àTWŸß«9vž rJ?)§œ< fqt à<¥m(Î)mÐÛ-ä<õóWOMÍ^_XY*®WK¥RY;O­¯××ëF£Ñh¸ ×m4\iL¹rÔçð²ù¾üÐPWOO&ÛîêJg2òí^*þ<”#RŽH9Žã8©”#ù•N§Ò™T&“JgÒ™L*“NeþöÞ,H’,;¬»ÏÝ#"#r«Ìªê}›ž13€03 !ÂH€i&ÈI¤‘ü ÑLÌ$™ÄOéúÅ—>%“~h2Éø%ÑÀÁ˜ $8kOÏôRÓ{WWU×–••kd¬™áWïÝíù‘™Õ ²»2#ÜŸß·ø»Çï{qãÞN«ÓÎÚ­Ìs-Ë’$uIêÒ$Ó«‰œ*ýCžúHýû†•¦¦¦N™Ëî\}~óÓwÕ’0FFÜ ²žŽ{뫳k/È“¶¶R>´:ìNÀ9Äs@…Só8̡ç^œ­n¶Gm€ÖðØ¹„Ÿ@–sŠUëý/ýܯ}÷ÿÍé‹Ê# Aå)³óÑ›_Mþ é[}ãÏFÿñÙú­±ÆØwJŸL†.dõiŸ‘øÂie‡”ã àç~é7Ö6¶"N9ÕG~ûàÅW½g\Nw¶KœòÿâoG®~z³õéM§¾)™*ÙS€©ƒ1mú8ûv£MÎ3€Ù•«ÝÿöwÓÍ­ â”ô³!§š8OEœ:O„¼%œ<ÿüµ·ï=Ø}|p|t|r2ž Ç£Ñt<Œ'§g§g§³ÙÙLvÑsÿ8…¸ºµµ¶µÕéuÃnz»íAãí©$ËÒ,KÒ4MSŸÄ9IÒ$K“4MÓ,ñØjeiÖÊZ-âW0Äü —¥Iâ-¬$þòs‘^õœâW«´Ú^¸ €gî¾÷ðůT/GƇ/~å«oükvt*îÜC5§øÜñµ6àûgì2:¯R~9€…§ ?a‰ZšG÷æ¯oüà¼ÿ':9ní*/;Ìéáú•»Ï¼Ü{x{¬¾/98%/Ѓ߾úS_óµLêë›?þÖáßüm-Áñp«ƒ£1qêˆrOøòt.[ð¼nl­<ÿ…ÇïþÖ7¶æW~³žSü{¸¹u¬„<õ=9ï7û£øM4þœ×ó1±R}Ê}=8È®l¯¾ôÅ ¹s÷}ƒg‡ûãÿå÷®ýw¿›lnÃN‘½C­×œâ S,É3¤È)½TäT©“g\ÆÐ§‘“g©ó_Ë¢þä»o<ØÙÛ;8:ìNÞ}:™L&“à”p6;›å8 Ë>Í)„õk×V77:½ÕöJ§µ²’µZY»í ¢4Ë’,˲Ìeiš¤I–ù Ùiš%I˜•zf¥ÁÜÊ2a–eIÚJ[sYBŒóÙŸ›$R-üQ¯øf…øÈ qª®Ryéjª/^ àNz›7~ú—7ßÿ~â#F½hãLUÀ1ªÀÃn|ýù¨`U¥Ô©-¹0¥5]>îg½ÍˆSlpí½ú³Û?ø£6@ǹIˆØ 1§”Qæÿûè‹?÷Soû­C‚Xy¸dàŽ?|óú_û†Ÿ¬g_þúÆþŸƒoþÆlýŠVR_ûÚÉáOÿðON\ˆËêcI3°ÆÊA䙯üüs¿ü›kÏÁÜÿ½ÿ¦îW¼ó§D«X™*?úÕ¿ýÕïþë™’É(Ì Ž|»[4¬©’É™ßF”ãö˜˜õìôžûHÛgǧ·>¿õÚôÍ×òÃýGÿóï]ûg¿ÛÞÜ6œr‚ b–Œ ›'õœ"S(ܵfòÂVÄþªâÔ‚ò§¢ùݽ÷ÞùøÁîÞÞaÿøxÐŽ†Ã‘7™NOÏf3ïî<óðy@XûÁ•§žênn¬ôz­qŠ7¤¼%•µeüÿI’¤© œòÁû½ÁrK$i*å³4ɲ$Kˆh™K|Μ à"©ê9ZÐÞèÇ•-å”ÿió‰j(yo*ýð§ù«Ÿ¾ Ãc¿3¥-©¨Ô¿9¾þÂøú Uê§ãÈÁ‰ƒÀxu#wp÷núÊcbLåÓõ­“Wÿ½Î'7ZΆ/{™Â7zÀ ÉvŸ{å%'!ð§Û?õõŸ}eóÙW®<÷Цˆ8ú[ÿI÷þ­á—¿i#\» ûGû{EšsÓû/B¾úË¿ù…_úÍÎæ¯'ûïþ¨ þüÕç)Å) Z¿ÿ÷þA»píÆëSZÀrº\þaÃÊA’ѳAEìÒnZàÜWþÉýìÏ}“jw ÙÜn}m{õëß¼0xëµé­~ëÿ{å·ÿ17˜[­9%ÃÆ=rª$ߪHö­çqJ̹PèCv“ýÄšDöWX{­Žäi§§îÜÛy÷£;;ö÷ŽûÃþ`4ôÎè“éäôôìlvv:›åÚÉ3øxy&l=ûLo}£Óëúíð­û¼%•dYÊÖ_ý¥Ä©Äs*u!IH:²’$)¥'!Ë+I“$ó9 “-'M’\Ò,‘ªzSä”ãY¦à°0§øØÚ™ Äw IDAT»ÿàů–5ÇŠ±GG½Û_ÿ;W¿óû€¡·¬†=p“ÞæYo³I¥Î9ýzêÜ`÷•Ÿyü7ÿaëOÿïέ™ó L•lB1¾ö7žþäF‹><ªâWá<÷… ÀÜÀ=ûÊ—ÿÃÚ^¿qŠ ~ñ7hêóÁЇ»_þÆ™ûçÿí¿’aåã¾ö^xõ‹_þÆ~å7Y½}«¾ÿo×~ú?øû‰“ÛTÃ)ሃG/¾Ú»ñú@åO›ª”‹9®öñ‘sšQv%Ÿ<Ñ›?øƒÿëÀ½üµor#U“`ýë¿ä¾þK×ÎÁ)ž]bêÒ‹Ò ×FÈ+p*œjîäYܘÿàæÝoÝõNžÇ'ƒ“8%LèK3³`OÍJ§®>÷\w}­Ýí¶VVZô‰¯ûÒ,MÒ̯øÒ$M²” "vRŸ )uŽùÁåb ‹>o‹¹$åK!’PötoÌ)W(FwØ©ØJra^Í‘ @ox\RŒÚQG€½—¿rêþ³oÿ~ÊÏðf•òÏÞK_©çÏhFƒøðgþz땟9zêe—8üÙ_[½uƒæYÌ)0zú%·¶ÙrPÚQ'£ªªcÅçv~êãß8Øþ­š®K’Q :GŽ8Å t»_ùùÃ^]ý7¿?|÷Gc€ô…W_ý¥ßX{áÕ•+šSþõèÝ×[wo~éïþýöæ–´íà§è?øâwþøåïü8Ú?¢ð¤}ò›?S߯DûÛÑÓPYXnªrdøpÌýÃý?ýÿkû_ÀK¯|qûʶÿòÀ•¯}³÷Ê—²­í§ø>9åx|„SDº"§øÎ.!Œ²H`óyPΩïró΃GŽOŽûƒÁp4MÆSgg3rò¤úÊœ<_è®­¶ºÝöÊJp;hµ²V+ieiJ›èYæÒ4M“$Í\’¤©ØJ!\È2æÓ²%ÎÏh&?‰&—Ø[:œlþsà2u³bmÆ)àDªêÄy9Å?Àµ=ª´L~áhÿ¥¯Œ®ý³4äìkZ©ßOuÄaª´ŠS<ªÇO¿ä§ðô‹kkWN›% —g­ 9èí×7¿ýý$QÇmº"Ðîeøðä§¿žln/Á)m¿Í6¶úÿéïþ(ÿWÿ¼µ±uý«¿@ $UwàòþÁìÿÚ‹¯nü*ågd­VM¤†óMq/}û_ú£és‚ôöiûi@öq€fTQ^u4A7#× và8¥KœÏ¾µ½ze{ë•/­mnm}ã—µ˜SÔw5¤rOUšSNnnç)†SêC@u÷qòl!Ï¿øñoÝ{¸»wtxÔ?> G£‘wž"gtã<…3öñDÀ´ÝÞzú镵µöJ·ÕiûÏûR¿Eå}Yš¤äšö˜’$I]šx‹ Âê3êŠ¾íÆ¤ä”ÄÑ›ËpŠŸXò-·zN•ÂLŽÉˆ.XSü>è×÷î÷%âB¡X GåÜÙêæÙêæB•ú—“Þæ¤·ÍiÍ)Òä‚ÝÄå¸ÎS/‚s¨6§„SJÔÑ×ýú·ÿ€ŸÃf–S|ülc«Ð"n9ÅÝÑœb€9jŠ(ðWáé^=y÷GlGèvðÿŸVZ¿óßÓ’D$|áóÊ´ïÞ<‚ðqÄ1À‘£´ÒôYÁ)- gjKkAÿ½œôÿ¿øµo:€§^ùâê•íõ­«O½üEÝŒËæ”//R÷È‘ó”+|Ï¿ª‰ç$ú«+0§x¶h'ϼñÞûï Žƒáp<G“ÓÉd:== ßA>#ç)Ì}Äavžê¬®n\½¶²¶ê9•yN‘KAÒJ³4£ñÌ*¸q¦aÿÂÆTÎsIp”8pŽì*m^÷„€Í3)âb9û ’æsª<3í× õd¯¤D2€žœ×>}礘Á´–SµUÍ©TOë8%³_ž¬èÌ£çй3B…¾PAœƒ“oüz›® e˜bÜÉ—¾÷ÿGöþgî?Wˆ+ã”à¤$+0—wmnoýêßÖ׊¶ÿËÞ€ð_âæV‘SJÛ…S4vpûÿWÿ¦;Ú÷Tš~zsôö‡Gûìa«#è#€×»²}ýå/:€ë/qus^úÚ7Õó¸íÌšˆS Üè-w__Ë;yÒ-HÔð*Ö”pªÔÉ“gHs'Ïzç©ïüðÆÝ‡»÷ûƒ~_"äM&ÓÓ³3|Ê:OaÂ©ÞææÚÖv§×ëôº­v›œÑ[YFNžÁžJ\š¥ò1_âÒ`P¹°÷ä9å±Bof Hr*LúEá9•Ïò„ mÐ ‘êNvi(²¢Œ%âª*m¬|ñÓwo}ã_*õb*ÁŠáT *Öä2N±jýÚo9›S1§dÖ:ppò×¾Á‰k8¥­†»_þFöÍßh9©Ž®à¸|¥á”S}To…S¾¤{çuØÜ¿÷?¸Í­DÎÖrÊÂåìåW^u)¸õŸûæÆoýC:ºº×NÍ»ZN)úÄœrJ²pJú¨F¦¹“g©ó,!X±ë8Å¢¾õý7ï?ô‘§Nú'CŸ¶/8%œ†y³Y^æ<€¸vu{móJ{µ×^!gôàäÉë¾àä™d™úð.lŠ'©|ÀçG-ñ!Ó¼1%ÝpÄ#žyj’é©ÊóøÀ~@F Ï?á‚_ž¿¨:‘ê|NE¥Í5çG†ÿùßþÑÿJË+½NÉ—óHëC‘c$ À9‡ëWvŒ¹S¡–és¯ð_KàØkz¿ý; qJé©f±–Þ œs?û‹îg±L¾ÌAF…†‚:¦å;U]¨h9N±\jI ·QIÝÙFò,§žL„¼ˆS'ƒÑko¾÷`‡8U!Ï/úJ<7®_ëmnvzS‘“'¹z×'^÷¹à“à?ì ´‚Ķç*8E;{1§d*éÛè" Ç0§ò<ÇÜå³Ü¹Äã©VqªpÔL|ðžNEaæUÙ¡z8ÆWÇ•Fç«+-úDZRéÂs»šS¥˜šS A†„Š"Fé…tfN± B GœãB¡Ì)Pª]IÓN 䮯¤‹ÊrÊ_õ$#äYN1ã9y>x´wã½Oîîïzç©áp4§£ñ¤!/Ÿ!9y*ç©+O?ÝÛØèôº-oOµZi»¾“eI–¦iË8OÅNžÁyÊp*tƒ^Qs­†ð¬•… D¥ô`¸Ižcž;—ûhÊ:¸èDªK!£PiÙÁ¸ÒRÑËsJir‘G–S1‚9Îà©ä” ”rJé3שšÄuÈmT l8eH'¢«ôÈè'àâœR 䃚¤Ž/y²œRNž.Þú¬Ò C¸ÖˆúäÎý÷?¾»óxŸœ§ÃÉxâ×}"äm?ûlwc½Óí¶VV²v›<ùû.ÁžJJ®ÌsDÌ1Ïa–cŠ˜çèò@+pî"©š7 Q ÇˬTi£šßeœ¢) UœœÒœ9ì,Â€ÔÆXÀuŠËÁKç”f±´¤˜ÅSÌ)3Ô,ÁÔ.àS£aúUà”éˆå”¨Í£ZΩE"äEœŠ§èT™“gÓyï}tç£Û÷vžŸ ÃÑÀGÈ›r$Ï9ò®>ÿ|wm­ÝSNží ͬóT’$Y&öûš—:OEœJBÏdèyN[NiEÔ„O)©ýˆr¥æ9„³<ÏÌó|æ8Z‡#Ow£(ê§!2BÄíJ„|ž8%ÊSÎ)VËJNi Nîé‚) 9E-‘¢ENYùÔ½HŸ¼8§´¶sIáT¡$ÏÁyœ’1,pJîhSRï|Nñ¬«á,Ε>7òÞz÷ãO>}øhïð#yJ„¼³S¿êóNž&Bžrò|ñÅîÚ*ÅûSY–I Î,MÙ5A¹/8y¦‰sÞª nP.øm†¶; ?)5³åÐá¨çVàUžXbc¡ËsÌÆ»ßÁBpÕ‰TeÚF¨7æÊ¨­å…Ô¹KáT\i‘S<Þ•œÒ ¡IΉz—pJH‘9¥N^§Ì4¡ÞˆÇA5A:c¡ˆ@¦Þ*QêESNñ Òœb¹º,_ŒR¹§‚ª N5qò\ BžapJUç ™“§§çëo¿ûÞÎîÞÑáÑÉñ`8ŽG£ñÐGÈ æTm„¼••ëO­¬­¶»Ý¶è;yò‡} œŠšVÀf–ÿë1œç9ÒW®q6ËÓ4‡þC+ôQ=DÇí´*9ÈË8Õ(‘jL›9•–¶ ä}\i§"=axD²äÕrÊ¢)âW\àɱ#¡  g +0—ÿrÊ }DNS<ß5§ta0ýªãTB–vò,sž¨uò,užbNXiSÀ9øÞßùôþîãýÃCI/:O¦ãÉé驨SUNžÝµõõ«ÛÕµºyää™zë©ÄyÊ%I ˜SIhtÂcb8¥g¿¾Ÿåœ M5œ p&V0}á<¬Áo]…}¬Ðõ$ÏsR»L×· §ä½¨lôsN•ˆ;§èRW¥vŒ° Ër¬žS¬„zN)"hN‘¶3^@I0œbašSŠDPÏ)¥íÂ)ªÇpJä«kÒqï¤IÜ£ˆt—Á)°T„<ºV9O §øIVtòtn©yÿîµ·ï= òú'#ròl!¯wåÊúöV§×‹#äe™— #ä¥Þa*Kw^'ÏFœò¶Šæ¿7œB‚—¬eEÈ?L+ú”Ð׈࿛—™H5êÖ\N•½*;TÆ)ÖQzWÆ£NÌ„jNiÖ”rÊ ðy㔑_à”…‹æ”&ªNudN9º ŠF š§ï£*ÌÅ:y^^„¼?ýî÷Åyj8G£©¤AöÎèy©“§wuUœ§V²6yxV;yŠk‚+:yÒ7ëpò”UPCâ”YÎ)³ôx g€®õž¢˜#†1ÇóYž€C>#ôm–æTäØPÊ©Ò?¯Ê™J‰7þp §èTqй£S6 *«àThƒ®'4x9N)=NéÂÒ;=©h¢ú(XqÒ8ý ½NÉpËÈ4äT'OµF  X1Ï›ó:yÖ;Oí¿qã£ûööŽ'ÃÑ`8M¦ã1;%èyþû'Q„¼ëÝÍ•^¯µÒÑöTˆ€.ò’Äo¥‹óEÍÍâ‰T áô º±qiû2>.¼8%Zb8UÂ#Ë©˜cVŸ›Ç)‘ (b‘±§ô%JOY!+NŠÒ-Á)’m8Å—éŽÈ@SíªIrZÆÄrÊ.(Ë)Us'O&Kóœ3Bž‚ZÄ©»÷wßùèÖΣý½Ããã“aÿD"ä'Ϲòžy¦»±Þñ‘<ÉÉ3›!Ï•8y6wž"mQú£ÿ*=ÔX¢•á”:IZNùR”ÀÔ¬i…h>&ô›xœ ¡\!‘ªš1òÞôž£6HòÅrJ §< ÊyTÎ)§úYÃ)QˆU…ŽCÄ)Ö<Í)Q`àƒÌBFV`Ã)Cº'Ì)KR¾ä²9Å¢yùÅòžxäoÝûðæÝÇû!o¬#äÍ´“g™óÔösÏv×­“g»fYX÷¥©_ý©y>þTM„¼ Nq¸î¹U,ž¯¢·Ì%µ¥ýª8Åî ŠS… Õî{dåˆcî¬q6Ã$Íó<@ÿA@ç2ÝÌdÄe&Ï[ÓíøÍbœRó»ŽSL¢ø¸jPÄ)uëbN‰fÊ£HƒŽ;qJ‘TqnÈ2œÒ£Ág5‹¥åºuO1§ÌP³S»€O†ª·„S¦#–S £J4jÄ)Q7¸Œ4ÈÎ9í r’fÛÏ=Ûe§„b„¼¢“gJa>'OA€@I[]Nñ*ÐÂK.^ŒEŸæHF–ßÖr8Ã< )”œsààr©6â”h,½ˆ9Åã]É) '§ì=*á”37–æT‰V‹HÃ)¦!÷ÚÎñAPMÎÒÉ[0õV‰R/ç”B'˽$N-í<å–ˆsŠA)7ÅY'Ï×Þ|ÿνÇûGÇ'ý“á`8*DÈËgg~ÝWâäÙé­n\»ÚY[ë¬Pd‰ÒaI„<ÿÅcŽç’$]0B^Ä)}£*9¥PÉ)Ù’‚Â:‘?þ+nr¡ˆ"ÑMo`…ÿüª0ÇYž»<°Ž£jzéŸFœRQTÇ”-¼_„S¢ ò ~fïÑbœb…X•pŠäØ‘0ª®gËåsJ0‰*pJKàÞ±@ÛBõ‰(pJC L¿ê8•Üòy„bM §Êœ1§+yŒíEœº¤yeœrn©yöƒ·î=|¼œ<}„¼éd2O›¥AÞÞZ»â5†zé³UàÅ8¥µÏÒŠƒªI<Èj”â”Üʧ¤Þ§LGX ®ÈpŠ$(]p„<#°ydfVø2M(óö{7oÞy¸»wppÜ?î‡yÄ©fi_|¡»ºÖêvÛ+!ò”Šܦ´“g!BïR9åDrîrƒ c±Dª†Sô0ôÄÊ}¶PÖ1},Xµ5ÈpJK˜Ï)’£:ÂøJÃ)M:­ü"¿–SJÛ…S‚‘yšSÒqï¤IÜ£ˆt¦#1§4ÔÀô«ŽS¥Nž§fM%§.;BÞ·_»q÷áîャ#‰ä9O¦ãÉô¬< r!os}{;DȳiÓ¬•Hd!ï"Ò /Ä)b€Š7§Ê8½jÄ©`ü`abûË‹ªàTldÙ], ûm†V>qNžcŽ3DœyOwt3Š8Êc3‡S¤C2“èÃðE_«6œ*˜ ÕœR³Vxd*5X“…S¬æŸCNY¸ˆü æT °Q8圭R—ŒFæR<›DÈ«ç‹úÖ÷Þ¼·³·ptx|r2Œ‚3zˆW—aíêÕµÍÍÎj¯½²’Qä'!Ô}‹ÔP¬‘jN^ðfö|N)a p²§d1(–TsÊ6ƠʇIÎÑ'RÍC0¿§”(Pˆ ÛU\ò \L,ú­#aÍÐ%9æ.t :ˆ.ã±]ŠxDsdâ*î8çЯ ã%!D´bjN±ÞÓ¼$ÉB‹Œ%8¥§ÒSV`AˆáˆzFœŠÐ6ŸSJ¶’ïDwÄótoc£Ó ‘<) r+­Š—$IV!¯ÜÉ34×pJfmN×ká¼:)ö§˜KrŠñ$<u¥^¾}ÿý›Ÿî<>88ìõƒÁh0šŒ&ãÉäôÜiu„<¿wž¦™rFiŸxŠ_@§¢õÚ"œ"4Ê«º|‘SF‹pÊ—¶Î×§[Hü1Gt¹R €,!xTòHø#3Éðœs˜’mÌ亠XÂ#ТqJ©™È‰´Zså|œRÚ.PpªÒrÝ:ƒ§˜SÒw-ÁÔ.àS£aúUà”éˆå”¨Í£qŠÕí²"äj1,¥åÔ;Þ¾yûþÎãƒN/êÓ OB䩿òæ§A^:Bž[ÀÉ“'-<y;ˆMªÆœ’eÛ_§J¦à•GuŠ„*T!GkæUžçÎÍòðÑ "$~Ø2¿OfªYÅ7ÂwÁÂL1õž£¤i=†>Žæ!Tä”h£ºåJ>S/‚S,Á\²§x.9Å‚‹œ’zK8E}—Q¥,ª0‹uê÷g!ÏY'ÏRç)ÿâÍw>þäÓ‡»û‡ÁyJ§A>=!®½ôbw5¤Anu:>,ú_ÒyAíkÖkѺ²`)“Ìb°„SyôÊ”8E LcQûÍhbùÿg9º"昸РYÕ"`˜»„ |£±uœRDМ"@NÑ•†S§ß2‰ žSJÛ…Sº…Ü6‘¯|ÉœR¬”7Cqj‰4ÈO&B_û篽}ïAHƒ|2ð_š™Ž§MÓ ¯nm­mmuzÝ8 r+K³ê4È—!¯È)QFhÀ)YÕ)^,Â)"N^ó8觤 ^•öW¨—:O(UØN&dqT¬$GtyîòÄ¢vÕKÂr•WDð›î˜$ü0¢ÛÊjūϒSeòE i¡ÔΓÒ)ùNU§:²§}v†SÎV©KF#£9¥÷ƒŠœ*uòŒËú\dä?ùîvööŽûƒ“wFŸN&“Éä”Ò ŸÍr¬Nƒ|mus£Ó[m¯tZ++Q„<ÝÊ»P¹$I}:¬4•yIâ¿r\!¯ŠSr£xºòkd5§"“‡€PÅ)µT\ŽSÑz J8eE Œáµ_šˆªÕ,ÁÿŸ‡0 ÞÔšå˜ùX£.q>/¡ÒædiaÓ=摚š|ïTApàСC˜§ü5y¹çÖjX–SJO…S¢ÕŠ#ú ÈMú(ò5§äyYà”‹ä/Ï)z«&Å#3—S¾ð‚òÂV‚$/èäÉŒkä<µ»wøÖ;?ØÝÛ;ìúÃÑp8§ãÉt2õ¡§tdŠ: òSÝÍŸ^ÔsJGÈ“4Èô1B^ÑÉ3t£ÖÉSf­Ü(™ô£9eí :_Ï)Rf0‹²Êõš?RÁ)k×hN©E\$’gHƒ<ñÙEç¦A~ö™ÞúF§×Í|dZ÷ÍIƒü"ä¡l½Ϋ“²®ᔘ!râ”ZU)Q|e5§xé7ŸSª*}*†‘Ø„µœ cÂ/Õr9‘ªÊùŒ.Gç ôÉ""6ÝA¦¾¼#d)„QhIˆ˜¤ŽM[ ¬ÀZ«5Wx¶(@¨ÂŸ§,I›s*êÈ¢œbÑ<€üb4ȵò œ §š;y7æ?¸y÷Ã[w½“'¥Ažè4Èó#ä=÷\wÝ:O™Èèó#ä¹&NžÆyЧ¾zÎ9å€5Ö®×D+«8­×E+8%‹2uÐp-â”à¤À5 £¦œBŒj“F[NU!ŒÿhûËrODøÝ+@ ‘óVÖÌ…l„‚M${XÕ<²óÔü¦ç´‡;t3*sJ)°Ñg«À‹qJi»@±…’2AO1§|†tR; 6¤cñœ2±œReN‘„"§Ø,X*B^À D›GȃrNÝxÿŸùàøDGòœLO' #ä½ðBwmµeÓ g­VÂßì«pò4òŠNžUò@u ŒSü(‚KŒÇÊÛA‘½VÍ)Ñ|þUÅ)¬µ¿¢ò 8…"MÑ›EÉ©ûK£ òИÜÆÊs Ž£ ¸àéî?%tèü§„úÞx¤9%/Õq?®QöV.“Sb}HIË©)Í)"Q §x.—pŠg°æ”"•¢ ÉçSZ>·Ü©!2œâ±]"BžùAãÈnjääÙ$BžñãÞº÷pwïèð¨|2:ŽF#ïNÞ_EÈcæ¨SÒ6LDœŠí¯"§”ݤaÔŒSHb]bEœ®E¶[°­òüë0Ô9b 9Ò­Bðn 1j8¥,£ÞÐ!€KÕ”pF½YOcCæÂ8eá"ò/˜SŠ>1§œ³U:j!·-âÔg!X±ë8Å¢¾õý7ï?ô‘§8 ò$8%œÖGÈ@\»º½¶y¥½"OùyiC„¼àš¢zÖ8y~¾#ä1§”T¾§ÄŠ`TÇ)Õ ù–åöW¨'jLª9Ń¥­BjN^aˆø­ï2"€<ß|”wÌDD9BàØqÔ#šõ°ŠS¢·Ž >4Í}ˆÒ X‡‰SŠ JÕI¾ºDÀÇõj(èg¨&ª® ¸4¯çrŠå*#NqªPRw¶Q„<Ë©'!/âÔÉ`ôÚ›ï=Ø!NUDÈ›“ysS"ä' r]„ÿ6aúhN1 Ú¤$ÏÁyœ*XdpA.ÐMÛ-P*RYY ”Sl°€˜6š ð¹‰÷Ö»òéÃG{‡‡ÉS"äúUŸwò4òD½®½øbw-DÈËhŠÒ —EÈ‹Ó ?ùy žêZísªÜN‰€JN1Nª9e‘G¯Lù¥8…"­”S|"¶¿dt.’S 0×F¹rÄDö°0|V˜É†ˆ(p9§´yEZ휣Î$€¹s I±ÈФS¼ Xè·"_¿hÊ)žÁšS,×—äsÝZ>7zTÇ©&Nž DÈ3¬N©ê4sòôô|ýí÷oßÛÙÝ;:<:9 sÒ "ä­¬l\jemµÝí¶;þÆLÙ‡}AÒ kËÅ¿W¦( ‹p*2‘¤¼è·1²ŠœBÔpŠLÝ ÅeÍ)ÓªzN©v( iN•Ú_1g…SÑxÊu.¢u„æðŒÀŠ=,ç@Mz)já”2dÀùe&ë$+ûá”ú¨ysJ[| Fò©Ê:Nq˜Â¥<Ëœ§j½¿ûxÿðPÒ‹ª4ÈdOU9yv×Öׯnw|äªyåik#ä…F_t„!OA-âÔÝû»ï|tkçÑþÞáññɰ"ò‚“çÜyÏ<ÓÝXïøHžää™ÍW•¹™óqŠ`jèË9eÌÍ)u­Ö×ÎÇ)V{z¡«–,r E¿æqJU¥OÅ02–H§¬ Åå›pŠ;•‡"§4l„ਊð+ÛÂ0ŠŽ/ƒ-W]BŽ—ö°0÷S³à7º§=è¡ÿ¨g!N9™­ÚÄ»lN±h'ô /ˆ÷ÄÓ xëÞ‡7ïî<>Ø—yc!o¦<Ëœ§¶Ÿ{¶»n<Ûí4Ëld!ÏÇŸZ0Bž ‡Ãuü¹| øªYÍš„2ç«8eí ¥wó9EJ]àšz¡ËN 3åbT›4Úrª aü§§«(mùssJ.ãñ[ÔUü†yÓ=ŒŽ>òº*îdIÈæ°’мҜÒXÑ”A¿$Töš&s*â &«³b )ÓO*b‹L_"ÅœRæží”iN‰ºÀe¤AFY¨µ¡“çO>¸å#äíõûƒÁh<zN…í©Æiu„¼ Nƒ|¡òÊ8%tZŒS;ˆMªÆœâ¬ä”b‚p«ŒÊ/Â)k9¥Îs;M ׄS/KpJÆÁžÔ2QºcD£Àß÷ ·/¤öuj`‰v ¬!cñÁ€tÎ7ÄA’ÔpŠçr‘Sʘ¢Y­ІS,ŸOiùA·È)¶}G”)D.ÕÉsy?ùèÖ݇»{G‡ÇÇÇ'£“Áh4F!¯> r’fÛÏ=Ûe§„b„¼¿Ti ¼j8%"®i^€V{Å) #e ÊGœbý¬åŠ4Ë5°åu›"®]§ù—甾 ¤” >ØfÑÃ%üÈ÷r†Ï ³Ôñ 3K™*†S<µ!ã  srÈÉ:X†SÊÈây~IœZÚyÊ-!/æ”\b[Y'Ï×Þ|ÿνÇûGÇ'ý“á`8*DÈËgg~ÝWâäÙé­n\»ÚY[ë¬Pd‰ÒaI„¼9e3*I—ŽGã¥ïg9§¡@(sŠuRixx¯L#./Fšf8¥ÞIªµ¿t“H å”4¦§T+8¥Á®8¥ª*2%âêã¾üâœRÏž¡µ¦_tËýfVŽ˜ È÷ryY’4á™\Æ"pèÕŽ’%°™‘h^‹Œ8%ô¤³ &Wx µœJHny„<±¦„SeNžb%œ§¨ TsʃŒ”Ü_û×rïÁîîþÑ¡<5F“ñd:žJ䳚y›kÛ[Þj§K‘<[­tÉ4ÈÁÁ3a*_¸“§U*yªNE¯qJÔCxAêbí/£]1§ ×"NѯjN)»Iè§Hï-¢q*ªWsŠÆ]“Ñ€•Š ¸ü2œ22½©dd„bNíÌÑåˆÎw&÷ ˆaI(†L Q§.Ú"£W `©\fîâœRô‰9%µ5äÔ%EÈ+ã”sKEÈû³¼uïáã½àäé#äM'“ÉxÚ, òöÖÚïä¹bÓ —i†#ä]|d~xü0—pJ8@'šqJN ª"xÍãT £:N©N(=7¼(µ¿B½1§B4 1§T M¡P>‚×rœ2`Š9X¸s sŠÙ¤^Ñ-DDÌsHsðŸ:©2c¥x` §Q  :p€~†+Ò-Á)‚A§°P’µÄ•;O-Æ©¸Œ¥¤Ïr„ò¥"äM¦§ßyý'v§N†Þ}:ž„¼}"ämlvV{íÎJkå|ò\}äD=Ð4§˜OÕœ"µ)ãTdòTpJÁ¨ŒËqŠå•Û_ŒÈ§ Œá”% EÓK0%„k¥œ’ç­ LH-§4€øUÌ)¹¨K0ë8¥®VÇ=Ä‚ƒ;0Áx”Ð9ÀýLËdÍR0dê9E4p!w¹_I@§”@9Èôáé‘.²ø,§È*rªÜy l„<ᔇUGÈâNÌ)f\#'ÏG»o½÷ñŸ^ôاÆÓÑd:N›EÈ{ª·±Ñéõ$BžNƒ|1ò@˜ÅBlÝ&œ2˜¨ä*uP\+å”Xs8ÁHi‚—QÒJN‰¨9Å|°œÃM›!ÒNTåE rŠÉ¡ b‡YÁ¦ŽS‘¡ÔŒSP¿S‡A ý§T.¦§óÖ–KÁ‘Ì,MØÌQRéˆa9¥Í §ÐÆqЧ½æ”ÐgyN±™£LâÔç*BÞíO¾÷ñ‡»GÇG}I/"äÍfg§3Ÿ^4ŠÇêµõì³½õõN¯›­¬´t„¼`Ieiš%­ªyK:y†NÊóKÝæ”“Ùi8¥Ÿð¢Ã†S‘t.Nì/°å œ20jÈ)%ØÕ¦ N™¡P‚©|SHWÌUUëòPä”…E ê]§ªdê‘]®œS'nq 1ÏC@w ó3ã=,^pÑ’M›?4— L"ÿ7ÌéÓ4Ë)c‘5âUd K½ü¢q„<ígÙyTë¦A~ïã;ݾ÷h÷08OQzÑñôtÚ0 òóÏu×ÖÚÝn«Û-‹7? òÅFÈ“ÛíÂ]iÛ¹8Å6B§Fêàœf,À©è`\>â_µ §_(! F‘ýe¹f±1ŸS‚"Òs8¥eŠ[TRà”©š±:LÀ9­ÿÉë8ö°dz6甸}wçÑþÑáQ¿2<™!/NƒÜjw6Ÿ~*8£·;Y§!o‘4ÈŸ‡yJÛ±Bê'áT„)/PåY8U§šj¹qŠPb8×E•¯à”j‡¢æT©ý5‡SŠüËsJ_RJÕS ‘+rJ aÆ\‡‹ø¹íÇ,Ïsˆ9ø5 úx0 ÷° ’SjÉ&%ÉPBÇä£7¸LN…ª@ \ó- —‹Gš­9õý7Þ½sïÑžwò !oBºTEÈ[Y][¿vuÅ;£·;­N!O¹¡ÇòΑ™^8}£*9¥,)(pJ‹ôV4Ü ‡õÊÚ_õœ20RèQ§ Œ ×€ø²§âò¬a¨D•qª`d5ç”g…xf i¾ÏzX¨ò 8ee‚:Y *™Q1Û@ô™çÕÈbú,Á°œ÷ ôÎ[ˆ˜±–:5sÍ’ „S¥+ÇÐ[ç\îxGYdæ­ºª„S¥Nž§fM%§.;BÞ·_»q÷áîャ#‰ä9O¦ãÉô¬< r!os}{;DȳiÓ¬•Hd!ï¯Ò WrÊp-âý*pÊT¼XŒSÌ’˜S|Š éB^Í9¥ÀTÆ)~Û€)•œª`_SŒº)Fê‹Xl ÿÚ?Ì!÷ÛL9‚“±¤%!”qŠÌ+™à®låÎG—q.{ÊYN1þ€^0§>ƒ4ÈÊv«á‹úÖ÷Þ¼·³·ptx|r2Œ‚3zˆW—aíêÕµÍÍÎj¯½²’Qä'!”}L·FÍŸyœ2¼{d.§”0.T¾§";ˆU¤–S¦^ÖÃ)QèJNEcRà”¡"—вðÒõ.Ω*ñ+=8áÎU0¥ŽSòo!NIaÕ™¨]¨¥òp!BžûïåÐth ôÖ¢œrjÚ{lAI’8 ù-dåXÆ©&òíC…=#jÖÅFÈ“…!YjÚà::>yýí<ò‘<'iu„¼‚“çõÞæ†¤AÖöµ²4¤íË(Bžuò¬ŠW©‚ó”pJnÝ5[df¡å¯ç)žÒS~NY^ÔsJ‰’£¯F 8Å|ËÇ Û¨w)§EZ™›pJÓ©„SY9ÛG29Š)%œjʾJN™kéSó‚VÈ ÿôöÝ} =XÉRJ¨@xRÌbN‘—®Ñ¡CçrtPœÝ-§Ès†9ÕÄɳà<ªN1žè…®Z²È)6© §ø”µGJÃHpc¹qªhBt©!§ \>Rq~qJ=A"NiCIË”ºŠrN¦4gŸ©kŽLÝnDÚ”ÒŽè¿Nöèò½ç8@ÀŒ·{å[d^:pèxSÜrJ9yÖGÈcd,ãäN5wž²K||ûþû7?Ýy|ppØ?êƒÑ`4MÆ“Éé¹Ó ëy~ï}¸»xœ§täÓÓyòáÚK/vWCäV§ãâÿ% $ÔpJD\Ós´Ú—qÊ"OMëHi…S„’zN¡H+åŸ6Å\»N©]žSú2RENE2oAóZ IDAT/€S1ûÐ^[Qµ Ïx¾;è÷Úý^»ŸKNíaù¡df-À)^€‡èœCti–A>kâä¹@äÈyj'OVtí<õ÷޿sogwÿèàHœ§FÞÉsÊòªÓ w{ׯ­¬®uº+œ®=mµ9B^ôaß;yÊ‚œÒ¼(pŠuRi8?æhÂ)x-Æ©ÈD’ò¢ßª< ×xn/È)éš 7Q!ºšSª‰œ*µ¿È‚(r*OÐý¹ NEˆ‰T.óB9EWWqŠî®£çY €! P·!AçsÕûò~+¥m'ü1œŠ¶pã•£?…!H’,3µ|!iœª‹ddœ§Ø†Òœ’…¡Ø_ÔníwôÎÝïôý“áp8bç)Ž'Nžyž£Mƒ¼¾±¾½ÝY]­KƒÜ4BžJƒZü™DÈÑpôðÔcKGsJžÏ ž³†kfvWpŠ-Û$P«8ŦL̵P/uQ_¨9e݈SÊ^CU¾È)ÑÝhÐ,@ ;¤|NY™Š•R²*Ù· §¤ºÝNäÌó2$+HÄÊÂܦˆõ¯°‡ ˆ8Ev–E¹z¢_g&i iÂd¡5šáÔ“‰Ç×þùkoß{Ò Ÿ ü—f¦ãiÓ4È«[[k[[^7NƒÜÊÒ¬: òeDÈ+rЦB3N±r ±ãÏæ¼æq*†Q#NIb^ˆBÏç”@H¤YN©†B$ÎÀ«9§˜ € œŠGŒµÚ/åT$Sj­ç”ºL=§b!_ˇ=*hƆéFÚO—kÔAŽèè™ ø€¬a”pŠL!„$üÊ]–¢[:BÞE¦Aþ“ï¾ñ`goïàè°?8xgôéd2™LN) òÙ,Çê4È×V77:½ÕöJ§µ²EÈó‘Ñ=¡¼ •K’Ô§ÃJS‰—$þ+ǵòª8åG]v K8îb)§4/€Uº’S¬ÁJ—*ߌSÚ²ðbNYD‘p£E8%D±ìæA¨ëÌ5ÎÅ s휜йœS1wäW§äßòœª4”.ŠSzœÐ\ÊO5?rtÞÚàMw€Ìçj®â™B²‚ã%›ZÇùˆX9Bâ² S'–—WÁ© ‹·»wøÖ;?ØÝÛ;ìúÃÑp8§ãÉt2õ¡§tdŠ: òSÝÍŸ^ÔsJGÈ“4Èô1B^ÑÉ3t£ÖÉÓɨŸæpÊÚA<‰j9%5ƒªü"œ²væ”RÔHx„(æÚ‚œb>XN µzK;Q•g-È)i¦Ñ]5Ì uœŠTÁ)‹œü¯Œ}ËqНåÖÚ†4â”2‰t_mo‘fµ’ýæˆ Vnº«=¬ˆS䲤LÍ)~ëC˜$¹s>_½¡ÏŤAŽœ§§îÜÛy÷£;;>’gßGò i'>»èÜ4ÈÏ>Ó[ßèôº™OƒLë¾9iŸ@„<™ê±^à”:‰`´-/@ÂBœ"µëLU-Yä™T 8¥ªÒ§b næp ­`*_àT¨LA TSMùHwù] õ©á”–)%ôH‚.WÊ;ê5ì3u-$Ó²¯¤{¥œŠº§d‡` ,iÐÁo²¶œLLä8J£¶ŠØ2bSˆ< o“æ;LR³¾ã%›å×°l„¼nÞýðÖ]ïäIi': òüyÏ=×]·ÎS&2úüy®‰“§qž¢®ògáh¸·bV‰9¢žø¬zaJ”pJÔTqŠîz)§¸žxñ)Í)ÁIkFM9…Õ&¶œªBÿiÄ)Ñ2Ô0Šì¯óqJ.³šsªJ¦±õH%s8eð¤ª^ž}NÑÛzNa¡%>Zð|Uóòàˆ9ñ…ê¤%¡Þ*"dØ•`圃<÷ldû¨Âɳ‰óT §n¼ÿ‰Oƒ|p|¢#yN¦§“†ò^x¡»¶Ú²i³V+áoöU8yšyE'Ϫy :PÆ)1¦.1B2ÛYiEÑD,åÏ?ÈJN‰‚¸…ò 8…"MÑ›EÉ)i“´“Ñ$°kÈ)«p¢ q cA 9É\†Sê6€–²§"ÉEº`†L®b¨éaÓ“€# ¥ªÇQŠ-Ã-ÎÒ°¡"ÛôÖñ¢¬ðÖñ|´œAÈLf9"¦z¿i§šDÈó/~|ãÃ[÷îîõOF'ÃÑhä§È½6B^Úno=ýôÊÚZ{¥Ûê´KÒ /!Åä¾ÈyÌ)3••Ú[N)Uê*ðZ”S =ªNÞ_EÈÓ31æ”áZÄ)úUÍ)e7i5ãk‚A4·¬ŽSQ½ÕœÒz¦ÀTÆ)~[Ï”zNU°¯À©ˆê2}b!N (K9wCnÄ©H¦n­’…ˆŒ,5£Â—Ÿ9Ybˆ(Ž£YêxV½0,]'’·”o‰KS»#¦wÓ«9Eà[ßóþCyŠÓ O‚SÂi}„<ĵ«Ûk›WÚ«!ò”W‘9DÈ ® !ªg“gCç)P."¥öÕqÊð‚UzNÉIšÍM9%vP£:N©N(=7¼…®äT4&Õœ²–’¢P9¼–ãT€ø•º"ÖÜ8%ÿá”Ç6q!NY!ó8e±3.æVÈä^c0•ìœöÓ2ܾst)"æôñS‚.œÍZÁ£i¡…aâü®»ƒ88<9> †£7åHžs"ä]}þùîÚZ»× B^’$Y¦"yþÅg4“ïn ¯ZN‰¥¥a¡9U‚0£¨ü\NñU%vÐ\NIƒYI¡|Ì)ƒ—%8eô¾ ûDˆ­G*™Ã)ƒ'²‹p*îNô¾žSV”¿…9¥dú€CGSù¿ÏÞ÷Š"8§{‘e‰òÃZna1Oð,I´óÔ[ï~üɧír$O‰wvêW}ÞÉÓDÈõºöâ‹Ýµ!/£ý)Jƒ\!/Nƒüä#äÉM 7jQNIy;+­(š4¥œbm«æ”E½2å—⊴RNñ i“píÂ8¥FtN4W“ɾ3œŠd.Å©b‹sJ·Û\$£ÞF½eEU/Å©øZ¹'è—">ÂŒžˆÖ‚9b üYaHȪÏZô]eÖâE†>¶ ¸¥5¡\ÏLXQ•F5甕 êd€,,DfT L±œŠ¸£ØaëX@fSN†ÛÜ…E9ÿ¨I‰a1P†9äÌ/Kc°°‰^þá¿ýÞ'Ÿ>xðhÿñþÞ¹CNžM#äõ®\YßÞ iu„¼,óñÊ#ä¹'âäÉ7ˆõM+•ÜT¼ÐäYS<› ðšÇ©F‹qÊT¼hÄ)e]Qÿ#Nñ)TôVœ2ðjÎ)& §°pEcNE2EF=§ÔeFÈåqª¶e€%2#C)îè°QYu¹†€aMˆ>a½ % æô½6²gï{º‹V©ÁU\þ?ü[wîììúà胓Á¨÷øQHƒìÑóÊ4Èë×®®ŠóÔJÖn=ñ4È@-þ.ÉyŠïk°ÆåÊ7ãWR°¿j8Å`0úc8%S£’S» œ2TäR^)X̵sr*Rä§J¹SгRNÉ¿…8%…Ug䔲 §"ÆÕqÊŒàòœ’qŒ 1–ü–ÏØ¿çìï}Žyâ„©îrÈwtô~XŠSj%X²0|ôøàۯݸ}oçÑãƒýÃã£þ ø£ÇÃñôt:Ý>é«yˆy>‹#ä]ïnl®ôBzÑÌ8%´R‰çÓ ëyÕiž4§è5,çz|°Ô?:ôýVúx2žL§§g§§§gg³Ó³³•Ѹ’'9yfs#äU¥AnæÞÝ; ™§¦ã,áì쌿‡œÓ’•¤AÖò.8 ²vž‚Ï““gÁ’ÇcSN1/*9¥˜À­“*£ò‹pÊŒ ‹N©óÜNFèÆ5á”ÁËœ’q°'pÊÖ#•Ìá”Á“\{NUÈ0E™¶Òª›qJÉ4"Ì­å2´˜ NYÆÑÜ£¹KäBD„Ðïµç“Ÿ']•eä‡õíÞxÿãOïïì=>8<8:9îBÆöñd¾…<ÓÉûBPÌ OÓÖµ—^~ÁÍ‚SB1BÞ_ª4Èê ¹n E]¦¸¦yZí§,ŒDÏÃ+Sžá¢OéÖ”q EšåØòºMR^‰Rí^œSf2/Ë)}™Ò›X±c‰ÌH†- ‰ªˆú„qM85‡}…Þ*Ô4aŠ:\àTÌ8sOjÄ…ã±°ÅtçÃÄwà˜O@ŸbŽÖ†.RHP.@ïjšýÙ÷Þüè“»í?>8:<:‰‚£‡àSÞÕs6ËsŠ—@ªÚ][ßzö™îúz§×mu:WFÇ*B^H‡%òBä”ͨ$]:Bžl¥ÏužBP&æ¯Òðð^&œ!HN©7„’ˆS¢ßR‰¥xÁR|`¸TsJ ƒ@Ó€Sª‰œÒ`WœRUéQŠôLÊ”)¶”oÀ)õ,-¤@Zæ…rJ˜bD×sªV¦bú:fü ê”=¼ §*ø¨o­9Àaô)!MÇÑå“0ùrt.—¤«˜ýþ~ëðøäød8ðœšL&ÓÓÓÓÙÙÙÙél6;›Q&doL…n¬mmo>u½»¾¾Ò[mw;Yg¥Õj¥­líÈ-ž98x&dL}Fi£W8%7DxA7ÈÚ_f&Æœ2\‹8E¿ª9¥ì& £fœbM0ˆ.Qé¨^AnÌ)­g LÑ[P]5X†S daQ&SÞ-À”Ø>RL‘:”©„Ä2uk‹Ã]dŠi‘¾E•ìSÉ©2ÎGø#ÎO+‡^EpÇ\š#;2Ø[ö“nFãÑ$Ÿâ¸.²îà 7žº¾qíZwm½Óë©¥_+mµ³,MÒd%Ÿè/Íp„¼‹Oƒ\óaë¿7ã %j*7䔜¤Ù\€×äàþ(QÙƒG½=u6›éMt$P!l=ûÌÚöÕîúZ§«9ÕVq‡³4K I:ã“9ò\}dï0Vâ么ó°jæE5§ä.–òb9N±¼ ™ãJ”áF‹pJˆ …¢é%˜µRNQ· §4šp*Rº˜2ÜÒ Í«ØrÒTQ*Sõ)’ êt¥¡t‰œv”V]Å)-SQQµÌÝøÚj™ó9eeêë´H} ) "úÏ ClコûâÙq8›å³<|o†–}ˆ×^x~mkkem­ÓëµVVø{È„ª,ÍBÈç¿+ã\{eeÁy Ì‚'!Xßä —/äThéFJC¼Ì«ä”ˆÒ0jÀ)5Ñ5§¸Ï ©º¨ÊWotf.§DaîªaV`ÐZOhÕš)vº—âœSÕ2A¯—³#.VÎ)˦œŠxT‹™¶½¥U/Ä)u.:n˜SàTÉuR—?âxÒ!:R-ÄÜaŠ€þ[„Ž¢üyl!B6OrDÍ©ë/½´våÊÊÚj»'ÁÑ•Kz+Ͳ´å]=ý’ƒ åZö%¦Avr; §0P>‰QyË Ñ9Å–‰¼0å œ20jÈ)%ØTsE`d9e†B ¦òs*T¦FE÷”׳=ž¥°PÚLr£õ‘L=’ Ë•s*‚…L ©ÕQÍn(SÁD—šÃ)Ý=}ÕpJ$Çu¡½fyN©kå—È,^W” €ô©ŸÿRs˜lŽ´st‰ßÃB[FךžÍ¼Ä§¿ðÊêææÊªpJ»P…¼XY–zן9¸&Ï@ÖîÔ9O¹"äAÑÉ3zâ/Ë)úRN ŒÔAT:Å*̧¨6Å5¹¨!§¢ƒqùˆS|Õ2œB~¡„€À(²¿ô)£»ª) Ûkf¯š©RÚ”5Ç 2Eˆ­G*™Ã)l^,Æ©¸;§@êpSXl‰®º‚SU†R$¢p äâsrÊœê+6­B&¨ëˆXIéýA—#º²=¬g^ýBoc³³ºêýÂþTøê -ú¢T£ôHÞçHˆi+ œªJƒ|ÎSrO€0RŠ^ù¥œ*ðE‘Á Ðä0œâùǼ0°Ðœ-«7*߀S(Ò½Y” —´IÚI/€G–Æ@]*#|±œÂX–É!™Ëp m2‰iÚm.ÒfÈä*Ã}¼§”LÓzs@5·Ñ ¬*¶§Ð¾”ÙP%œ·™5‰TÃwr‚gCùÖ³_ü’|9ú*2C*H%Iš7rL«9„4˧žp„<àò¤¬F]EÂ"œŠÐ#åª< §êTS-×€ˆ OéÖ”ÔE•nŒj j‡¢,Ÿ2#'Ó«‚Sj2ëFÇŠÍ:QÊ)}H)UO‰LT2£c¶X$$ª"êÆ×R ±Lˆé²¦VÊ%ÓVaG >nÆ¢N-Æ)™¸‚2¦€ét§¬:Ê‚~M®Ó9ŽAG0x`©Ø2¼‡µùÔurIJÂhxÑçc'›BBk@Þ¥âEb’¦çtž¢>–qŠOñ[Ñpƒ¹ Fõœ20RèQ§ Œ¤œ‡€nÍ‹†œŠË‡z¥eúBÍ)ƒhàM8¥Ç™Di)׳ZX¨ò 8ee‚:C„ÞVÉŒŠi™KqJØÁÂe*!Ñp–‘Z#íq+Ke.Î)SŸeÊbœ²4²Çõ=^áÇP.,ô!°È¼|Âzi@¶zåJ*¨Š¾:“’Bp¤ ›SÞ1!|¸—°W䘤éçÛÉ“à‚vªZûKî±:%m£rAhtõÇ*˜9¨x¡‹ÎçOî˜S| ½i–ÄðjÎ)¦è­š²z.Á©H¦TÉŒh`5À¶Súcïd$%¶¤ëVÉÊaQ.S 12#Åö" UW°e1L/Í|—[eÆ/ª€ Ìã”i‚>SÒhÞ¢FôñŠôÐ{‹"ð¦; ¤ÈºëëþÛÈÞ1=lN%ê‹~âíéä+~¼-E@B@Hpüò—òÓÓ³ÓéÙd4 'Ãþô¤?ôGLJãþñääx2쟎†ÓÑèìt2›NóÙæ9ú`4˜ó8)X˱ø”=¢ßÆ×¨X8Òä*PƒÕ­o/©onAR™ØêúÍßB£›”)ö¾¬X} ç¶­ülñÚÂøTÖ_ùr^Ã*ÎW6¬äDqœõ›Ú³Åâeæ\[?ºÅ÷…?çòú.¯¢öl|Àñ?Ü—è¨/Ö|þ! àrÕkg¦leuU¯ûÄ%ÝÁÏJsJ>ýß-K0IÒ4™%‰·×œÿbN’&Y+I³4k!æa–$8›!"âL¬ £Rzº•@¥–æÉ!ƒWÔB´å£?µåmµ  Ç?5¢ÃölI¼0…†f¨«î”3oË«ñ/-R¦±”ÊK eMcL êã¢ñŨ•% Ãþ0U2£«\±Ý¶WÑU.nSA¦£¦Êøl¥¯Ùeí,\‹ÜPE-SM{@õ¯¤«¶iÚ9²8ª”ˆß0)¾¾¢~‡¡ KÂp­Cß͉Y»Û•”3àE\¨„Sò-äÀ¬àäé 9__ŽèÒfÎ%i‰K³œß­ÏÒ4ÍfY+i¥$“q†yjidLË¢Ò–Ÿ*›óëY4áËÎ 6Ô©jöaÉ)…_{EyF™J€ˆXÇç×ñùûì‘0·ÖŽëçGzé$dÙ ‘/ß„‘¶"Fß æpWJΙ}ÖÂ\`W¥o!\ £h%•ª‹3ÒYlãçæì¤ŸY–,/šð]ɧZY e}íõF úÀI8·×°Ý[´=ëK· Ôº›¿¢|ÉÍH*è]ÌK3^ûB7¯Kefγ/¼Slq—:[Ïâ›À¢ùÀƒFÌDͰå€Ïð/Ÿ_­'}“SöM‚¿x»¯HWú™÷‹æ7™G¹zåñs~þê]"BÄÜŽþó9t ‹ˆDúèÝ€HŒ;ì¡2LÏJj#³Tb3dØVyš]Û†y…FžšÌâ^Ñx§¼X¡ÛøŒû׆e4-bµÎ·&v+!%²Î l“ÝÍé`6±s¤n\Î][ÁBQÂën‰1S¸4-Tdc6Í´Âs·EO±%G1 ¥“W ¥Þ»0J¬ìe?ÔgIÙ]å/XkJÛy|>©¨AÓ¨pÅ‹}óe<‹º‡ú nµÖ޳çùë¯~]#™jí¸Žóº~æÖL²–xóëp’v‚¼S%q.µHx*Í¡ÙJgÇ=IDAT£ÕO4å6ðêIh’ƒØÖD­ œÇ.=ìæd5ìN(XgwŽ«d¼’b5˜KÓ‰QoáI2‰…e”²[.}à»Bt8¨Y-Y ¦AàPÀÈÝAOK¥’u‚{‹ÿ¼Œ…™/Y¢ ž~2Q3f‘­ƒ7âƒZ#ÿ˜<ÁŠ‹qºÇyÂw’N±vÒ†Sãªy'’>H5ÜœËöç§Ÿó×_ýêŸÞ‰ˆÛqýý¹~~Éu]×Ùókì*áºô¾ð²k {ý“$W­¸yÚõDÌÝI&µ+ƒVèÔ2eOãH©ÌæÅöîøÊeßDã¢íŽ__™^OKkÓQËʲÍYöTõVñm÷lïÎt™(-yìE˜³¼ñ~þ 8eLSJâYôSqžƒ©i#˸ÜZc>˜›ý‚ Û5D_ós×Îã<•âèS$z÷HïBÒ{ïƒ>$2´µv´vŸ_r]ýêcí¸>¿®¿ÿG®«K§.½w¢õÞ«ñ&nþÑ\AJ‹„QR4G d"Ľ 8âˆñÚ!Â5xk¥¡>µ&k[ó³/lF-¿¿a‹&­æÒùL¯´MDÖ9î]˜ç•äiXÁ©9sœSÁóÎO™×ûÌÜxŠûùK®NÂÄc=ëïãç§÷Kz—ëReóg¡õˆö˜Î eòl5ê%Nº™’Q‘È+^Ly x„&°ËÃÅ›§l 3@!ï¦zæ} uaWHäôÐøÌ8H13ž`r0óp¹NšhàÆÐ±@BXµ@+,§Ü«¬Ocnæ^݃)( g·µ6E¬OÒ¾AZ?„8´Ê9—©N áΩ5ãà4ùºÕ¤˜ Ÿ®¤«-of½Ý£Ei‹'i¶ú>´¢YCdÿ²®³µFôÌ)Ky§ Ç"‘Þ;‰Ð\‰Ò«Ç§‰Ÿ_ãRæu^íçÓ¯é"}®ÁSÂ9®3é6eõÌ“jNL¯ü`kk+áÜQÅ# „µÔÆ]G_a®ÎŠO¶˜E&åŽA—Aj„°Ã ÓbØC"Ò9¶ Tõ# ¢‰duáW8KDGéµmlQò[&¼sU[¹n‡X^h›Ý# ¤ÄÅ ÚC¯”ÔîÍ y~D N§µØd䔩ÿ£^=ô'ç¡ ‚*»†èv N-›†ír¡=nxòk^C,Ò+":uŸíͨó7/3C«Ï3».׸靱Š5~iBÎyÍÛ%ÇÙ¯‹æïÌÔ –H¤C¥:½²NàPïpÆe03Ðà¦]Óó/kÀ˜¤OcØ…vÃ`º›g)Ê0Xa¯×§H†D@Ìc)1%ÂbyI(,!"[(äqs¿0ƒ‰ @¨K»Yêœmtq&(+˵ªËo LpУifw‹ÁNFØê½“ KvBG) (©šæ‡ çäS†QÌÅTçR{z!sœPŒ´Ú®aÍSÁ£É x)´&0É‚ Ú¸õ£79§í8úuµCz¿šÍŸ5$Ô©,ÜE`¢$‚ÃdttÑaBykCh¡Ù¤Ñ}Ëãæž©ðÓÇËC(޳M#²¹ãu‰G€œê%éŒE°èš\,º’Ó½‹"‘SɳÈäY ‰(`1˜ÈÒkE£¡:÷1ÝlŽsQƒÂÈ:S&ÀÄÊ#-گƹNÞžÐ9H{dzÃxnÈ‚ë^ôÐ|†•Ìö>)ßø^¯úò¹ÕÄ«„¾š:-a³K²há”횯ݘÀBÂÌí N|œ›ôÎíèWorÎö½§l®wÃDb ÉÜU:“xÁ råV[0ÈÇdÞËÁ6©¢ŸÛ†zügÃ(ãŸíjÝú8ÛéÎ-§w%,ìÿ4Á@š”(ôúÈwdVXhÚaBÓ,zæ8!:•5,l”ñË}K=pÊa„1Xèïã%Áu±©ÄLÀùÃÅ5ᙜèÈ ̰HÄzÁŽçW„“Îi+%JìGŸ¼˜fÏbOÏn Ç©W[\€Ÿ6­~K+":Ç- û°(© l(cë³ó¢†¶„¨cÕæ]W½3·%BÍ`Ä3Î5„æq싌Ÿ9ã bÝ22cBNÙïÐ ³6dõŠ…u—ÁH§À`çœ&u¸px$äŸTÀ‡ÅÀÖÏ=ÑÜ~N*mËP°Ü^,v7:çÐÒÆ„1`a¦•Gª…™­¬Tðzd[¦¥R'sÓ<¹)Šp›Ì¯ãê™JæÔˆ ã”tÎo’ˆÃD˜(l:ƒ‰Ä)sXÌM²ÛÆ)5«íðƒ¡ÓÆ[|Õ[ Ë ÓìYQ hîÁœœ©Ï›*Ü^H;¶(½Ûgggï‘ÃhM(ž¼”köf0h²€D£i|å°µñPù¦@ £YCV<‘H—nœ’ Aû½ ƒVNÍj×:û´Ösï)³g}øÓdŸEÎô_˜ÇŸñì}Ñ_ꆤbÏ£ßåTj ™ €Ø"—4µ¦ðTK “ ÑXtX¨‰ qê‰}šÔp0¡EH4 ù¦ìPèìCxò’@!,DS"Ežh>ebfBÇM°þZƒ2.äM"^ö ty-šø F¥í}c0õdõ[u œŠ zé¹KHHz'ûBó g~ÄLÝ¿·.𪛱>ÔyŒ³èg˜ÅAh*!ãµÇª*ÈæEj¨Msnk¤2£: Æ< ÁV¹kŒÓ$ò‚Ξ$áXoI Cdš Tè”ñEøþó3‚lH¦ûd[ý8‚€<‹®eºÃg£¹­4U©J"s„è4  tÙ¸Y=·Â…ð ãù¼Zn PNA—]§¸DVÀBàÀ-Lñ¹ ¸æÇFt>ñ€G E²h¡3OÖ?Üž5p~÷ÜäœÏÛ0èS÷ðÒÊÂ9F¬_ݶ%¢9m0¶6Ø~4) ôD´4È 8|¡¡7ONhÌ” yÓeΦšö™9|S§ÛΣš)ˆ_†ÈÜš¸åÔìaÁ‚âjÓ"æäTÀ¤°“0ÈÐ l,¹DÑx¼¡5ÅG›8~ˆB7îÁ|©sÙo®ù 3Ñ|Ñ"0ò¦|cåúpCVjpЩ۟sê+M_›;çÍSnæ»Ä¬IV”™kd³@SÖ¦¥¤sʅ蜚›ÒPc-Œ*ÖW¶4”熲(7g½ÿ¤éêTKiŽŽ ?Ãì¾y‘ÜÔÜR5ïLØÎÈ© {´^ ÏW’XÅ) œJì<ÙII¨uz}Öyg`O”|Œ–\ÌLßçhB!GÛ\£DNiò&Á#‡¨«êa2„ã¿×™ÐJÿs¿ÿËmœ~É :ÿRÈø‹rÊêW˜˜c9¤ú“NØe¹Î¬6¢T W 4%ƒN(CkC‹dƒ9QÒȹ~¶õé®/:ûBÀ‰I |„nLøTL-K cÁ£.ÔKéÂÄ;’¡ÎTmbßêôâR‹Ö¼ÓMHTaí%êÌ®Ýè\?zbˆ.&âÀÃ4 =Üéüÿ»é)á[N-¼¨áU³/x±2è†}÷ðº\fÐ#§û†ä³zl:€ú¢Å ¯'¯÷)#¾4aÍS² ¹3áõQ»ï¬Ü6ñªì½5áCcî•ÎÁФ³0a– 0ÏœZÚêˆü‘Φ\Œ&â”*ë}Nÿ€MO KÜ<À‹¶ ¿bíZÈø¶a`߃Œ*hnàEcL’r óâ(€!qÊçÓ ¨Ò™ØS3åGфףs‘w<ú3Ný€/™ro" d‚ÅkvD–â “-Lëaý§l§\½bÐLö75ûîôŽS‘A†’ghn›/8•擾ìçÓW°¸Ó™Mxý=§ny´«¿×YA$÷<ÚÕž¯”u¾eʽ ؃G®š0»z8è óÙDÑCóÛÎõFó §ö( ª÷ ƒVÜÔ(yÑÐ~fP‰°…³´aó)Èó©ÖùµÎ?âTj›ûÎ[0¥â–G¿Ç©¤ó{½{6¾à(WfW/qOQ¬MüÓ·³÷ñ$u©ÃþAYæ5ƒnd^2he_fМŠd 𢠠×<ÚÕÃÔÜéôú¯Mlž1ñ‹Î=˜RñÎD ‹'ßsªh›ò§’ ;"ïxôP¿è ÅͦW iË {2%/nwývïÙÊß5¤·`zâÑ®þ… ¯ÿ @Aç^ìO8µåQЙë Ï&^Áb1±ƒÈWÁ…¯MXÓ¯x´›HQ'ýû6¿q4qjÔ ”$½oø‚}6“6œzj˜áµ×™9•æÝ)·<ÚÕß›ðúßÐK±ÂÄ"¯xtÇ)ÔùÊÄŽ)‹‰D¾Ð`±°ãµ ØæÕ-væß¼°^¤<àzˆà¶ zâTd¡äÞ™ 3Ãè5§pN$XP1ŸÞ)_ÃâÖÄ÷œÚèY,™øŽS½Ó½‰Sî`±«ÿR§ Ä”‚G{/9•tÂúï6ok°™Š0š£8õ’A[Ü$½oøšA•ÌBF˜_ñhW&àZü‚)™GÑ„×ÿÎvlLì òJç}$ßé,Lì˜ò, þ+°§,îy´«ßsÊŠÿÝ`û_hJOÜIEND®B`‚imlib2-1.4.6/data/images/lock.png0000664000175000017500000000532212137523370013444 00000000000000‰PNG  IHDR00Wù‡gAMA† 1è–_ ‰IDATxÚí™IŒ\gµÇ÷Þꪮ¹z´ÛÁÁ"‚Œh@(‹¼GPX @B€`‰((‘@APV,ÁÓ{O""H„ ÌŠaAb Š!€Ánwڱ܃{(wUÝá›î½,ú»ÖGaìŽcx<ÉŸtt«[Uõÿ9ÿ3\;×εsí\;×Îÿããý›ÞŸÿÛxä‘Gn›ý¯N§³è!Èóà¬Rêø‘#Gþ÷ÁüZÙv€üK8pà…={öÜÔï÷9uê‹‹‹­uÒn·Óo¼q|ff¦R*•8þüâ£>ú¾ü0Vòÿ+Þ]wÝuóþýûŸ™™™=}ú4‡:vèС‡Ž;vh Ø·oßwÞy秦§§'{½^ï±Ç{ïÁƒŸ$ /Âû'pÚ¼½{÷ÞôÀž™™©­¬¬¨'žxâî'Ÿ|òy`ÊÊ8P¶ÊÅ@ôÔSOý(I’úáÇ=üðßú@dAd»°tì÷•®»îº=_üìÝ8Û펮®®ŠÇüžãÇŸv;Ië²µò(lllœ«×ë¯BÜLXc±`.âjðí÷T>ïû¿ó–7ß¼ozr"hµ[Ì6tƧG?øÎ×ÿà7¿}ú§÷=ôŸ`Ì*ïY¥ ZkNŸ>õ’oƒÚا7L§ÒUP~¨~ã«÷l·;S­VF£F»Õ"õJlò Vÿÿ¼ýã¿ûùë?öÇgŸ]øì—¿ûCûyié3ÄÄÄÄŽ¹¹9–––° 3@Ø÷(Gù ‚W¨|¨ëkŸ>¹sÇΩé©1¦&Æ£ÞìÐhŽ>QØç¥…yd{­fcüŽ[oºõìÒ¹ùåµþ"Ð6î¿ÿþýÓÓÓo|æ™g˜›› Ï;wÈ**€Ä>óaø¯Ðòµo=|߉©©éÉf£F«Ù Qo2ZkR*×ɲ£™Ži×Ë(™°º¶A"Óò½ûÞó©OßsÛ€ddd¤911qÇ‘#G˜ŸŸ'‚“@ ¨Z±Æö†Oð 8_ÿú—>yx×®Wín·êŒuZtÚMêåZ“<÷HâÁæƒ~%¤­ÑZ† “ã=¯ÞÙ›Ú½÷#¾ïOŸ8q‚……Ž=úm{‡±ôê[™áWºÂl3úÐgîüÎõ»¯]£^e¬Ý¤ÙlPk´©Ô[x”"¢w~¸žÔ(’$!Ž#ŒV¾Ge$`³2³cÇ»ÔJŸ¹¹9æççŽ «ì¨õ@ùbÖ¹ åË·ÎÞøÎÙ7Ýò±f½J§Ó¢Ù¨Q­R©¶Á PJ0Ø\'lb´D IÆ)1ÆCšF~/¡(Öέ"¥Œ–——iÄE¡¢Wï÷ßûá7êUÚí­FJµJ­1~ ¥4ƒþyÂÞ:©‘h“Ç "I0&Ø­ J!ÑZF‚×î(³¶¶öK i-8)¶¸ÿï¼Pz™¼¯};Ún·ƒN«A£^¥R)3Zéb´!‰zô»+h­ÐZ“$‚A¢µ&MSLjJGQ#¤&5Z§cRk¤È¦MaSmnïw9ß®.ðþ+Ÿûè·ÇÆ&'KA@–e¤yN©ÒÀ/U1&Eˆ˜ÞÆ JJŒI‘R…Òþ­µAIÇ$I‚ ¡$Zúaœ[ëVéMŸÚ1vðr=P(_ùÄÝï¸ýío{Ë=Õê•re« èö%,¦ä{ôºK(‘g)Z+ÂÁ–•1hcPR"… ¥ Rj„Ð$J'²Z¬õ )tð¹àí(µwßqÛONœ:ÍÌŽIµ*7¼f£ÍIrVVVI ül«Öh¥ È(¶Ô1­RJâ8AkÔ!R)”N9qf½ë0³­ƒÛ ºôñ¶ã Ôyä û_<ü§c¾çÁâòY–ñ«ßæúÝ»™}3ãí:Ô,¯v©V+ä©!„(¥1iŠÖ)J*âDl½V!­òÊ`´Êû‘î;wgNËpÉŽ¹´ë÷âJ§ |òÜY–1¿°ÀÉS󌵹å 706Ö`}}“^¯Ožj²lKY%%I’ ”Bi”V´A›”ÅÕ^Ñ÷KgH-Ìi!¼!ýòà2}ý(0þôïž½õ­{?ª”ñ<«Ãõ½€,ß2”’Ï,³¶¾ÉX»N’Äôû¾ï£´"I"ÙªÂR)âD’…” ­SžŸ_]ϲ|(¤g3QâôA±ÔªñåTíà±k×ÎÉëÊ•ÒnððñÈò ßóñ<OyN æÏ,㣕½~„Ö)%Z”6H¡‰„²Ò¬möÍÊF¼b›º5à¼Í@‘U:¶¯…ãÌÍ—X-`ê/sgò·ÏÞ¼WiQÉ€À÷8ú«k]¤’´Û-ò<'ÏrzQ„T)µ²Çfo€Qš4KB!¤$‘ !4J«ü¹¹õ,Ï»ÖòëÀ&:ÖOÉðtæoc^Î쇢ÿùþÁ_W*5­•FHM8ˆ·*ï â¥3˨Ô>&’³Ýß÷‰A’H¤T$Ò ¤&M Ëë­Ó¬g-^ÐF:VΜÁ^;–Ï·ÛJ¤öƒ±½ ûßß;øGß÷Œ1•ê(•ÊV‹é‰ÍZÏ÷ñß÷ ‡Êñý€(Ù²¼Rz«&Ï/õWåÝÂeÉœš •—£PÉö%Ðu öç#§Ì-{o˜l7›¾øÔª£´š šÍ:"àù”|Ÿ,ÏH3™‡IbQŒ2cRŽÎ¯ „Î Ú¬Û`Ö#¡óy%F†€T€ÊsÇæu«Y­î˜étš^«Õ Q«q~s@žç¤YFšCfRŒI1iN¦Rjzƒ8{i5Z²¼_½Hæ÷Vb‡VÛà;íliH‚3‹kæùã/šíªTÚ_ߨ´ÙFo=-]´6è<' C2£ò?ŸZ_Ïr6lÖΛviÕ´ÙªâLV¹ýŽÐZÜ¥ÎÀ1N¡|äă¹R®”C¥ÈY«!m;Ï+‘ŠCSmß×s õ9‰ý_èd£ôRËÝ팔ÆÙ¢yC*:ÇÄQu6 çŽt(@“!•â!å¯@î€È]fæxÇXÅ«tyHù’ãÍâ½…ç”ÓB §yKœÊ›_é<0 "u*a> ðBe¨øN6ËœX0NËP´ ±SmÝyàªýÀá Õ‡‘!k¯}Gùá-Bæx"u†å°m+%?p ïhŠcÄöJe<ç8<ÎÆÙ>+Ç3—åýÕø…Æ»ˆG #CÔñ*fNzÖCT2/Gñâübù7|ÑŒ%IEND®B`‚imlib2-1.4.6/data/images/mail.png0000664000175000017500000000622612137523370013442 00000000000000‰PNG  IHDR00Wù‡gAMA† 1è–_ MIDATxÚí™[lçuÇç›Ù ¹¤$J–mI®áXŠ·–#¹‰¥©mÀFP HŠ>hᦀûP£)úä>8n_š¼ö!EáEàmQ4‘cAâTŽR×vlI¾ÈºY"iÊ’y]’»ä.wfw.ßéÃ|³Q"%9éh8Øá»ó?çüÏõƒ_]¿ºþ_òƒÞÈ—ýÿeÐÅOý8ŠÈÿ°g‹€-ˆ]¥€þw( ×x&×aíµ~GR¶ ë*"ÃÕùeV¹= «ïEDU-‚÷Üÿ# ÒUJèõÆ€¬’â3¯àþ¾«s@kÉSùÔö={öì“D’$‘-[¶|9IIÓß÷ï³Önÿñ~ôÕï<ý7.ÐsФE®ˆ =à&rKåàóçæé§ŸÞ±çÞ{ïïõz&I¹é¦›¾’+•J÷ÛÓ4å ±)žç‘¦)Iš2W¯ó÷Üó$ð#åÞȯ+”«&&&~mË–-Ò4¥ÛíšßMœõù,°ãªÀ®S’Âýüü<ív›JµÂáC/?~ðàÁ#@[U;"ÒUÕˆ ž°¬Ái¬µ¯ªêµ^øËK†ŒŽR Z©†á¹¿xâ‰?UÕ% -"+@¨ª½UJh1qà Š¢ƒù “_|r¿1>>ŽU%MS¬*CÃû~ä‘"r“ˆlj@UDJ«¨%«Ð<;Œ=—¤ iš$1½^—0 èvCR÷|-ÉÁÆIBâd-gffXi·3ð…ç>ôÐcn‘‘/ñ‹÷Ç=öÛ{î¾{ÈŬ)2Ç/˜?C/"{÷î^\\<ÜŸ&)IœÐ »A@{¥ˆP©T¨ÕjkR#Ž#¬µXk3€ÖöŠã˜(Š=w–JµŠª«–$‰úÄþûïÿÍaÕ‹·Ýyç+ýÍoþëo}þó¿/"/©êeò¯RHDDtiiéÛÃÃÃ÷§iJž«EßóYYY¡ÑhvC¨ õ•ÉÀÇÄqŒ:j¨j_‘\£GŽ„!¥r%K/9¬EDxð¡ï×W: ;÷ïßûØ×¾ÆÍÃÃ_8 ‡]}ÈH¥à#"bLþa¼ÉÉÉ i·×#Š"Â0$ºaHØíÒëõH’„(Šd°6˜YÂ)­ª}b~||œÑsçð}ŸFFF¬Õ0Æ`ŒAUÙÇÜ>¿@ke… QôŸO<ûìŸ-W#º@ô®(dªŠ f]ét¾]*•¾žÚK-Šïû”Ëå ˜óJ¯×CUi·Û,,,Ðl6ñ}ŸááaF¶l¦T*õ½Ñëõø`|ü²÷u‚k• 7¦)eU>±Üb%X˜å^ý9`‘2ª1MÀúkô#¢ª:77÷ܶmÛ¾žÓÀÅ ¾ïc­½ìYnå$IèEN‡ÅFƒññqJå2›6mbÛ¶m¼ûλÄQŒñ<<ÏÃó}Pˆ¢ˆf£ÉÐðww{¤qÌÊò2GffNŽ--•Ed‡ª†ÎúMW©WüµÀ‹>ðÀÑ3ï¿?i­½-çg žçõIÓ”r¥‚U… ¸¼¸C4 FGG±iJµZÅ÷}|ßÇ3ÆV›ÄljµØX`qq‘é¥%ænÞº¸Íý\,;% `LÑ•«DUU;Îó«3Œµ–ÔÚL[cð˜R©Dœ$™¢"øž‡ñ<Êå2 T«Ôj5*• •j•r¥B©TÂ/Ël ÷Ö†›MšÍ&§²D°å–[oÝ ÜlÊ.@ÍÍœæJ=zäo/åøKbmеi–QŒ|ß#Ž"—¨J¾G©\¢:P¥Z­Pd°V£\.S©Tð|1á3Õ*b Ëss\lµ8·²BРصk×gAÀ‘ÄyÀb®Ä®qS€Çÿäñ©°Û=¶^5Îã Õjå UŸãÆxø¥¥r™r©D©\¢\.a<ƒ1‚áNßckµÊÒÅ‹,-/óN’$ ªJmhhóö;n‘ØeŸ4Ï)f5ø¼=.R©Ýn?]­C’ hf/³*"wïy>bc âØ«ªl4¾­7“t»4ëuÞk·™KSüR‰ª«3ŸÙ¿ÿ€ˆtÄ%Ž’ˆøæ=rôù4IéË}O{e% duSNfŠKÕXmF­Uñv_¥Jyp…óçi¶Zœ‰"ălظr©\¼páí¼¥‘2P¼+Úéþ3#"žˆ”~üÒKÏ–J¥¯¬Ù]Ú”™éi&Ö¦ˆ+H¨’¤)jÍÛxWCT•ÝžÏÞ;™yûm.ŽŽòZ³É™$a`p‘Í#4Í™7^{íuãyÓÀG¨N3ª:,™«Fïª@VUêõú‹ëv¨IJÔËfÏó³ÑÍxˆ«®b¤O)qYg£÷Ýu>`þâE¦–—9ôkDzìÍ#ßxíµqcLæÎÌ—‰¹ÊC®òLÿðÑG_¸V[Ýëõ²ÔiŒËïùg&žïãy^¼žÇç6oÁ& sgϲ¸´Ä±4ED˜™ _}å•©z½¾èxŸ—«ç+Òhp^]TU›Æß¯>‚¼©Ê¬eLfm‘~cŒag’rËwpáç?§µ¼ÌD2Ù ÓÓ'Oµ¦&'®`µD¤ ´NÞÿhÖN$€5k+< ¨NLL¼¸ÖÇ%µ)*î«®Mcòâ lµ)·®¬0ùæ›,ÏÍ1Óhð“ÉÉàôÉSËQµ€°hŒi¸û&°äš¹\‘HU³Þ6LU%·>Š>õo¼EÑôÕ¦®n·‹Ú,hûŸÐ¯y­([Ëîr…ž|’( ™o6yuzº3>=½ì6€y™êNæE…%Um»3³FêTÌZØXUÕÙÙÙï^-ƒ0$Ï3Š’@çžMSv)ìøÔ§øo}‹Û~˜pëÖøgÓÓ³À2" ™‘:0›‹B]a7'kÖõ€Ä[o'TX«Àˆˆ¬-ܵ{÷c« XØÂðS¤cî…š*îÚMýý÷ùðÄ N½ñsøðx&méHF“ù¸ˆäÀZªÚ§Ðº¸<£f{KUÕçœ ‚àøêìcS‹Íó»uV×Kž°ª|ÒªíµZLž8Á|³ÉsǸÐëÕYÊ©ãÀO3À,ªu`‘KôÉ­éõTâ~[ᨔÖçê/+rEXµ¹–X2ðÖZÔZZ­v<ñÖ[Í]»w›Ù3g˜o69W¯75g%³lÓœ¦€iÍŠUXTÕ¦ßq\õhÖk! …í²âöWO=õL^¼’$%Žâ¬ÎäÁ›‹µŒ5Ÿ}晱߹sg¥qþ<ÇÆ8=;»ðÏçϸ¤À<0 |¤0-Ùß U]V –еÀ¿VTn]‹‘ªª6šÍ—kµÚ#ý&Nõ²¡ÓétöÓŸN¼wüøâ¾Ûo¾çÓŸwàÀ#q÷s½%³üÉ'Æ^|þ…Q×xñg_úÒž©“'9?9üpbâeÇóÈ%ˆXU—. LMDBU-R%YkÝ~-Ȫ V7PØïÿÛ÷ÞÝ»o_¸9§L£Ñ˜~ùß½5zî\;_Bí¿ãŽ‘r³¹éôÔTç»§NýËL~T q@§P>r9¿Ë¥]è5Wìþu±À[wŸˆHº¸°pxÓÈÈWU•÷Žÿá‹Ï¿p¨‰H%OÃîÛ÷…V«Å‹££ß› ‚³.|GËÇý9÷¿ø*‹Ü59näŒ,/f©S$>wnôЮOîÚþÂ~ðýψˆ ©BY²ž(Y^^n»páð[óóG\&IʨV\䩳] Œ½ÖÁÆ1Iaé»Ih‘ À&`ØÔT5_Ħ Y |Ïv¿¹|è¨3® üF=PŒ‡Ü ‘Kk!"e£ˆ¢`¹´Çé¨j°æ~'q–_tÔI®çLìã(p9x°’½,Vˆqs=Uü§‡€§Â@8á@ „p ð9p Â@8á@ @!°q Â@8á@ „p ^n °q Â@8á@ „(6Â@8á@ „p ¸¶½NOóK0Ò,TcIEND®B`‚imlib2-1.4.6/data/images/stop.png0000664000175000017500000000517412137523370013506 00000000000000‰PNG  IHDR00Wù‡gAMA± üa 3IDATxœí™Kl\çuÇç|÷Î ç%‰´+›¶›äG’…¡Æ@[jÃuP£ÝuŸUAW]t[Ûv“(bHP háUP;mÑ&H Jä6±%Ë1,Y2­%’Ù;sç~÷ûNwfHÆâHtÜlª—¼¸ÿÿüÏóîÚ]»kwí®ý6ù´dO?ô'±,¿ŠçCàèX¸×›4‚HÍÖP}OE°ÿ¼ï——_â§ñÞ߉€xh™2ü%ãøõuo‡?òÍ#o¦×‰àDi8¡©J]uM…Ü(íï¾úöêeÀ~ïÊ/-ËËo½ŸG÷Qil†ˆGÁŒô‚açHUPU™q!ö·zöÃÿIˆì›€|àÑ8 ß_ÏË/¿“G֣ͼmDƒ±A¢B" R½ÆD&8­^­ª¤ÑäÌû¹ÿÆ__¸ö&ÛÂÝ‘¹ý\\<³|B³ðÆo²ðØ;y`=V¡bR7*nF£¦ŽšNÁ 69ªVǒ齿“¸¿x´Yç§½áö‘wL xzù‹i^ÿUVºàý8-"ˆA„hB]«p™ªBÚéâju‚÷¨TçƒMÈ ¦sÖIô×oeùEîP‰;"`ü™–Œüëç²ò >2Š€l{u§—U§ÂØ Š 2 £Ph½«5ˆ¾Àr@¬R'm:=ñ^Þèùr*æ™Þ 0.¿³:Œ~àÐj41!` C43k‡²LC·,¥óBH¼ÉÙ$y‹x6ÀÄ!®ó1ðý^œyÙ9%MòÂçÑO'¿VÛÕ-Ɔ÷6qòž8ç°^´ édæ¹y>ìŠwØNVI:»*! †a–ôN…zÍQ(C$ø¼šÒÖÌû[ïå BiÂ0®ä>PõÏX9Î>¦Â¼²+E<“8yš(œý‡!NF;8Åjöo&³š_ ú³DY¥Â‚sŒbª†VšáTQYÃÒvŸUŽãfQrm\ä"2H’Ä;çöÝÈì_zÃnSºkú¬Â¥á”(Ð+#Ã~Ÿ`¶cÌ€†:Ff¬—% Îa“‘;Q%"Dªî´Ýž5Äa¹4Ê„°)"7U5k4·ÜæßÛŸ»R„·uòà`²c­€¶G¢“é÷±f{Çv&,&)£h\-ª±b E«ÜžÍE–áZm¼׋‚77ûADnªÈGi’ô»Ýn‘©0@LÓ´÷ïýüŸêNq“9ß`—— ¡™$”b4TU¤Õ¦0« ,%)Kµ N'K ¢ÈÄSe0ª/p~0äÃ|=RUnU>§6¯ÿ¶ËÞû§išýÇÍ­›§{Ù—?×n}²ÛlÞߨKÓ9ÕÉò^ÝTšá7zŒc¤W–\É ÞdœëgaP†BD¶€K"ò UýI£Ñ8óÈ#¬¾ð ¹™Í_¹g&TëÝ’sî1UýRŒñ‹f¶roš<øõ´µ”¦I7uÒtNa"[¾´µÂÛµqa¾ V9#Öy³Ó"òó¼{ìØ±›Ï=÷ÜøÔ©Sv;ðŸ„ÀÔÐNÓôÁãcÀçÇÌì`h Tßu”ªØx` €uDVÞ1xk¡Ñ8¿¸¸¸úüóÏ^~ùåÒÌØ«ê|ZäèÑ£µ~¿ß]__¿7„°¬ªŸ1>Ž1š¢šÄK§:6€kföaš¦—Z­Ö•4M¯Ÿ8q¢ÿøã_zé%“j^ºã¯Ô¿ ÏH–––Ãá°B8àœk EQLgùX«ÕJ`äœËjµZoqq±äÈ‘ñSO=å_|ñE»]²þ_Øizüøq×ëõÔ{/;·(眥ijÝn7®¬¬ÄW_}5ª*eY’¦éïÿû±‹È'ñò]»kwmoû_XoNV 6€IEND®B`‚imlib2-1.4.6/data/images/bulb.png0000664000175000017500000000666012137523370013446 00000000000000‰PNG  IHDR00Wù‡gAMA± üa gIDATxœí™{ŒõuÇ?ç73÷µ»Þ»Þ5x½Æ4ƽPóp[P¶Pª¢T®ªBZEA‹„ }(.üQUAäm$ˆ«*­ÜªM@Á6!¥&4n   ÄÃâulðâǾî{îßïô™¹;^;xÉ9ÒOs5sgæûýïïüÎ9#|‚¦ªdd“97ß é#’‘žSqõNù¨‹ 5UÍö89‰,™ãowMÄSÐ]ð€MωˆžäÞ3'̺ÉïP[ñ‘¼ˆÉÉIÀ·AÛŠNLÞþ 6!q‚7ü3ŸíeˆumƒøbRðYÝG€ñk sžä˜¾ODÄž1Œd¼“ã! ÆGA˜ÿ‰ŸøŠªíS”‘ÌQ§ª‘ÔÇõÀ|Ð~æu0>¨Ú¼ˆ—‚dˆª &B´ºÐLHt˜óF¤®åÄæc°‹@"›ùàÓ‘r@L ñz€E =É5Ÿã´IÁ6©³@=!ÒV<´íÅ®Bçá@DìiÈ,ØùàÐô}@b>UÍ‹ˆ—?߯ëׯoßvÛmµuëÖÍú¾_J ÇïÍìÀ޹M.]ÔzÊ8Ñ~6Ò¤¡°Ϻ]f°"? ÝyçåßøõKùÓ[GM AP Q5„Íc3FÇNéûöÉØîzôûpûôõ×_ ˜Ž"røø8 TȄۅxàdùŒŸÌR/Ht0ñÂ`pëÖ­K7oÞÜ÷¯ÿüˆû슃ž81¹%ˆWD4DÝA¾D±/'ƒC=rÁyW®ÿ7ÿð‹Cü'_(Üwß}^éL7&¿Ã|É> ;ø.³dIܼysߟ}Â]8ò¶ï\$^ñ\Lq%¦g-RÅxˆð¼&½Å6}å!õåå¿w<¤o½õfqË–-K‰×ÐbUM†+«º~Õ¨¤®“W×È©­xÞG!Oä㞺¦ s`s¨Ë¡Z†€³A†³¢(¼ãŽ;–~ùoÿBÏ?çˆo¨Š×³¯ïÄ@¼Ä€üJÄ[Ñ m<±/O«vÐl¸ì|ù›¿ûV.r###Q2ã-4ܶÀ6H¼ÞèT˜[#Ú6 {ÍøˆñAŠ =ÄQ£¸sçÎþ¾¾>¹luÕw#â–âÎA0¨‹ÀµÑ¨΂׋øË)a⢨eœsç\Ó9WSuõë×ÏŒŽŽ†ßýA-R"Ô6ÁµA#Ä+!êP;EÔiáèàGG0ÒAÔ›Žz­F­òÖ>ç>sцpÕªUIÜw`U2Wn:À-„@6‰JôÝN ’qYª¾ïÕî¾ûÏŽmýöN¬Ë«x%@ö‚íÔÛ5œm 6öPYff#f§'©×[›¬ñêîq6mÚT‚ Iœj7’w4Tm;«„SE¡láÔ¥ÞóÐQ¥#¢5Yâ$«rTüð×û¹’¯$H×® .ÂvŽa\ u!ª-Z¡`£6õZ4äèT÷Æ«z蘵7ÞxãTfrfè&qΪªŠøî”DD“X™j>qZuQ(Æã-Þ̪ʤ½}ç,ëUq3FY ðDAí1œmã¢uÕÙz½jiµÚ¼³/tß}ö½ë®»¦K¥R…8+ŠZMRÙ68§¨Š ®‰S ^„q¡ˆ×Tu ­ÓªRÚ·ï'ƒ¥b©…œô”õýžkÂø9ÔÎàl‹Z­I£^e¶Ò¢Ùœõôµ·šî+ü»wÏ=÷T7mÚôp 8­Ç íÄ;aÇá *hº &1…LóɶUµ!b "€€üãoý•ÿ}ù;þè«Gßö:*¿sÝl¼ô,§¶jj üôÀQÞÜ;ëžxz—¼ñö‡²~ÃUmÛ¶ºæšk“"2A\™ªˆ—.ê4v§$ ".))³í¾H Ú‘š*žˆæ@ü—^zeùC}™³ÏfÆ+9zô_ÿúWøóÍß2÷Þu£[»z‘ÌÎLJ#ìðÌÞV_puë_þí¯׋Åb-‘Íäx¦ˆõŸ.æ´_dYHEÇõ‚º•Y»Ý*ŠH bŠ"ÒÒo­èííùöÀ@™׳nÝå\wÝo³rå/óƯòµ¯}•z­Á%. gkQ뿞Û<ùä“{W­:¯4DL5% "‡“ɹJB C¼ïDÀ)ÓéÔ Ý¸›0·ª©jGUCU­ƒÎÞzë­¬X1ÂöíÛ¹å–ϱmÛ66nüU}ôÂÐrÞy£ô—‡øê7Ï¿òêþðá‡ÞµjÕyûCÄeãûñQ'€ âu0C²ÒI¥|j e,% ιÈ8i4BzzJú /¬½âŠÏR./â²Ë6qÓM¿Çž=¯qÛmŸgçÎg9ÿü > c‚úöíÛw”ËåH•v®&B"¡n¨ÁœtÚdò®”Àiµ×³Rª×+1žoŒñkµFàû~®\.ÿ¤PȳzõJn¿ý ÜpÃÍ,_~Ï<ó}ž{n'ãã©V!RüÑÎ;ŸN=ªq_´aŒW‹gÛVEü*ÝÎi‘%ö´r¡Œ”¬sÖ:g#ç\EQgttôóßûÞî¿ÿž~úû¬]»–Gý{ÆÇŠªÏ²eËxýõ=\{íµ/€¾zt?èAU›HGwè’ÖâqEüñ³/bOûGZ'OM‚ çãyÆx~©Ô{ìÞ{ï⦛>Ç…~€—_~o~ó1jµW\q9SS{ì±j¥R¹%î:h:“mçlè{ÒŽS×A¼HÄÏÏ‚·€‘Ój-¦^PUu­VÝA®{í¡‡¾Á®]»˜žnðÀ÷så•9ë¬sزe cc?fp°•+Wþ‡ïû“ñŸîìD ‘˜\G5r¨³¨‰Agf_áôÓ锄;thܶZu†­ÈÚNÔÛÛû—¯¿¾‡ññ}|éKÅUWm`×®ÿ#—˳f;óíôõõíVu3ªnVU«ª®ªêšªÚB¿^\Úz?A>ÙOM· abb\·õú¬m·ÛöùçŸÿ€#G&qN©TjÔj¶lù'ÚíB¡ÀØØÿlWu­t8§¡s®¥jC’+&ŠÉÏ™]ÙdqœÑ7²‰‰q˜·ŸþôÅ:2²Ä ^o’ËT*5Z­ý¼òʱÊåòƒª.ÔBZT'­þt9éG¾Ÿõ¹õŒ¤¶wï«nxøSº~ý¥<õÔèé)’ÏçÃ6ããk33³wïÞaÏóÄÚhÞݪιl½›%àøˆO¬pŸYwìøÇ“Êïæ›oÿ"Яª¿%"‡K¥ÒÖññ½ÏcÄ÷ýÈ9ç`hh¸û]Ðþs#ÚâÅËÄ÷}Êå!)JP,öœpO³Yw­VCW¯¾8Û…X}":™MMR€#GtÁ êOLŒw¯¯YsÉ‚§ös#p2Ë‚ý¤ìc‡Ñ_Ø/,¶ÿô4‚b½ØIEND®B`‚imlib2-1.4.6/data/images/bg.png0000664000175000017500000040316112137523370013107 00000000000000‰PNG  IHDRØöØ$gAMA± üa IDATxì½Ý’$9’¥W™52ïÿ4»+¤pd‡»²×Ù— …wä°»*3ƒç;G³ˆ¬þ™êéênCFýW…BanîáùéþÏÿãíÓ§O?о}{sÏ|@3ÿ,ÜWÏË[Èzû1|_E÷¦ÉËçÏšþáóç-8¿Ðµ¯<æmµ§súÂ^^^dË·ÒÇ&ôо~ýºô}ýúͰϲƒV}Ø÷úòz}ùúEö¾,è !›X„Ÿ>ca„}“>äÇÇ··ð|s/%ãô y4lø&[áÃ/dð[Š¢‰ªd$.ü§OÐÑ>)ÎÐKbsý,ù_&„éõóöRbF´žHjYºcY,ñëÛWÓv=àÀúo&Öì-¶˜a°ÄáM¼„;Ãp悌¾Ääű)κ|~(ÄÄ¿kKcõúúY>¿(¶ÎÃäºT.½õ‰Ž† r«p%Šø@ScoièYbÙhN‚K³Ñ"Ÿ~Fì›/ ¤ã³óÆ“ñÁòå÷×/ß„7•{DW¾÷ÝäJx%köžã”pØþøÑÜM>5†ôåCNcŠ_¥yêDr†øtÏ>u‚hìöÔ bñÛ¯Ÿþõ¿ÿ«öö©)(™ÏA`_õÛO=ù¬Ã3|;gÞ¢¡¸}ÕJ᥽|J!GÞ‹`ŸT()¦´O*jo_µ™ÿöå‹å¶¸PØ\Üd“‹¾xØlœØ÷iäZÎ:ÆØöÂI§_Š*ãº÷":ü1O*©Çbœ› ³?üþYÅ„ºJ&-èðküùõÕÞ£/òÃf܃qr@?‚ãwdÆÀ¼YthÒˆŸoš.öMÁ¬ÿÔƒnl䯆14¶ç/tcƒßµcûD1䀇'Ø›'<Æ/nù€ÁNr Ò‰;CnÄhõÃ]ªøÙwÁÈ'Ö¥‡-´¹ù }ò,ëi»„WúI¯~gìAŒp>’¯÷Æú@÷õ‹nÜ8‚ØEÌu³7¼~r67¡8Œ=£Ô4ØÎ>B¬®¢mÁžrã(_ôO ·6åotçf›Ž/³Ì<ÙŠÞ½t³LŽ*ÞÝ&_%“½@óÁ\ÉJ §iFÀÔðû©O /›ódoò#¹äŸ\™¤ZfÚ#ä:ø§N( ì-†¿jøô_þ·ÿõmÝ­2Å•ö™‚¨âAáÎ+DlßO8,)$ƒ—:ñ®W9‚ÒZº2#‰¨xˆÖ+žI d¼èj^ÁQtT¼ýê5‡ <à<] í"—ĺÈFƒ‚æ›^^~4.xhT°•˜´o:8¹Áh#aóêöˆt²§‡Qñè`S ö¼ÙXÅS|}…E<—}ò•Eœ8JÜ4w“,†XÉõ›Š<76Á~r1ß7jY+“Šà׺±©–«‹Mû´cÃ'ÖŒ±Õ6©'FÄä…W±ZvRëO\z¸A\_5$x~zÂÐSnæÄxÐ{bTÄtÉ¢yŸê7¹IÈÁŠ-Äšß/:Ô%ØëÀÍé^“‰½°4ò÷0XÔÕÈ 0Ç©ûhøº— âF˜=“¼™T|ú ù¾s+q‡Ž›ŒÐãw|ˇó ]ȃN7³²Ó"ƒ{L±¤hN!Í&ø¦Ç‘N “1¯ÖSˆS°š-ÐÙ·Ù@ðÂöMO(è4 =¼ ¾æÈz}ÍY)‚±~lîáKÝý2v¥0O± ~`ïç)ä¯s AKõ͇ºie— _|Äí"™Ã“·9°š¶m¢ÀK¢|c›ð˜Žâ/½ÐD¶cŠ2²ÒÎßh 'µn}k9ÐõÆ&þ¥¸;^^ÛÄö׸±!†9Ø HÖgÌõŸ_Õ/'p&ñ MŒ'Ö_¿Œ#ÃLÈjQëŸü)6Å62šŸˆÏ AâÁqá \ª%—':¬ƒ…‰‡'$皢zx‰g×)4ØžFìBî¾Î äv- "Öö@ý7?ÎÏM7›.7ÉM¸˜ëÆhò ø•µŽ~æøí}(Zx½®J¼8ŒrãÂ>hž7ìí/ú"=§½9ìuÃÄÓ'!y‚@>!o8`–.äïÚðÔ‰lêãìß§N¤Ö>u‚=sîÿë¾û-Ô‰Oÿå¿þË›ÞEI›<‡ß.竪Ò.ó*‡‚C-JQÚc劬\ì‚Ù@yZÐG¦®5¾¤Øõ ŽmÐRTó¸^–¢¼ÂƒEò©nQȾ¸`qA =±ÈÒ±Yy¥˜¢MÑO\ðh_õ˜Ÿ–Moë 'vÄãŒ!)Àvùæ{uéøPÖ[ ÀýöÆø†2ôs(нyõû²v;Ò¢âÍA#vr@“a²þ?µ`ÉÄä“îîsp3žWГè"ØMË«uõšs˜Ú¬\À.¿s¸#._ø dý9 rÀ% iM8 !À#wtôðŒÏ§aŠœ¬{_•sSEóá¨xÆzÆHÕ?…ºDšµŠ¼^‹ç°oî€ãÕwò®~JÆ<}kÜl3I;N²wйà’Cls ‹Œ·lØAç5Ùóæ2'G1‡¾M‘$‘smÕŒY¿YÌzêDöe×ý©äcs†ÔU¾êyôÔ‰ßNøôŸþõ_´&)>o*F4hvµ~x¥Æ+¬ÂY@’|jÑí°£ÐêUÇz|¨Waò«ÿ2ÒÓŽC¯TTh$Ù²Ï9ŠC­ÍÅfôcº80顤"$7)ä.”‚ÁËû¸ TCsNh–M[8Ãl*E[òÇfžX¸¡[ï¯Ò¾Í£d1îÎMã>VÅÄñ¾ÊŠ.<п„Ûr}Ób{·=ø‡ŒÝØ¶ÜØØmÉ…L×Ç^eJr—?密C*7]5ŽDú-yâ‚þü²>yÅȼg^ÕƒÊ*Î.ÿ¬%7”ÂÍáJÌh°áÿ9öºƒÓ/¶ä@Ò Zß™\7aû0/Oìˆ ½Éíá«…Tùا4ÅÕO$sã׿WÏØŒ1kâ·[׸qÂH9¤‰‹d÷ˆ}Ã| ÓöN윗â‘$óæƒy?‡ãZÁÆ ÛŠøÊ^ËzLÌ$`DÛ •áÙÓ®öÔ‰ÄÁ¹ñÔ‰Us³ÿÔ‰¿©:ñ¿üÿáŸù ÒÎw¡WAI¹ñ~÷…”OÁT¡p-é+ Ýé©(ÓÈ´)¾* 5^á¶X½êNßWÌ«¡ý ÛĺP„ò*Í¥mÝ„±.:œ¥¼µ’‚åWÈ«Þæ1<‡B|ÈMŠ ÓA÷¡ýjT‚_ZùFýŸOíW{lË+úØÚÔñú¼ß¡(/ƒäW›-­‡¸|µ#Ę`µâ—zžÃ~óW/£)ëÆ&òåuƒƒ gÁÒÍJYh×+Snlæ Œßðñ 1íˆ |sk§¹ÿɆàf>ø<-IÜl;‡—lÌÓK_v}eÍÒs÷øNë ½?êVnG‰hb–^írèÕFs'¯#jNá·]ƒ‘²æÜ°yYÐÁq(Í©³O?ÈY0>…ÛÏÏT&†úfAÄuÅlž ”.O‰ˆe}ÃbÑ–†«y…¿o¢Áϸo¡8ß$1g¾6ðPBC!»¶Îy%T«][ÑÇ©šB¬1Sù‡­ á#¥áS׆¶¯\íƒêõ™Šã‰‹ܪ— ±ßÜ<ä`à Ïš$nøŠÀràäÜ46þû‹›¾š³r´à«,âûÙËÌÈM êÕÐS¿ã'QŒxø~#2¤ËseÈ+TxûÁ·ÈÛ2OýŒ¿öÉËÈhº1h€ûp£Zbv=؆ԹâWÕLœå—׫/ozÖBP(gv‹×}Úàur$’Ä‘–è süìÍÙÐ:À!ÜâN~‚Ó›ƒu„%'¯âúæ‘`¨±ø„@É £t‰O¹ÁÞ¼v!üPv]sC(ð§N‡§Nìüjž9ÏŸ:¡ìøÛ¨¯ÿçÿýÍaG‘à± ×Fï§à)z|PiªÅJEºoR W‰Ò¥b —0N.)ž¿rC·ZtÚ·X‰#…GÉõƇ¬Ä×OqØ»8Ïãv<©^ú¾åÕÏÛÛψ‰¿Sx)”¿ŸuoâÕÍ üGØ“ì@…—7Ûg^ ˜ *¾Ì¡Åãäçî9ÔáÇ´Ø èÅ`‡ÌéÉaÍÌÛÎùå[Òñù³¤a¸±Çk8ý¨^jˆ}U\NŸK£Ÿ @•9£·ow€!fåeí}£"2Ö¡º»°Æ $—0ÀOIüyŠh:o*¥Vr°?þ³Î éìÛ/Ì/<¦çÕ.´ñ?7ñ™4ž.äi”ž&8*c?zðÜd½¸%Vέ9†3\þg?ÛV1æfn°ÄVºÑ‰LO ˜Ëb?9ÞÃ;œ×¢³dѲÄ94n üDè“ Ågä‘“ <¯ú9 p 9µe­ 5ß\øé‚•mÖ˜u¬±Ø£Ø2}êñI{ê™úÔ öÅßbУÿé‡c V2Pi¤:Î}›¿U÷a¥êèÃŒâÂ:…‡ÚBQãJ£¨Q¨80|ÚW2£ã³8üÄÀH_lFy•Ž%¡ØçÂ7ELѲͱÓ@3åf†šÉ¼Eñ¾¨hÊ )à`Qc *<98ã ¢)š>\~ø)š@‰ŒØ´ð¡WÅÛo7Äç$J ÿ·Ÿ~:b‚b„mÒ»…8ñA­A\Õ£gRM°ËªE®Û#ß¾ülúŠùs Vt!%X?ůHØ_âá› œ˜õmsIvsლÃÌ9A %;±j ‰V òw%hˆ‰cìˆbœÖ·Á:ç{à.íÖ®‡xéùíø6«ZÝŒ-x>M¾Ð²5e^1F•Û]ü¤A=ñB¿›.ctˆ²"´¼/Þµ9Týõ9²ø³LnlÄí»­]ärÖ›ütŒÈzà{Öäæ#Öø&ոĂ84o³PöšX£ýýÜv+ŠŽRø"YO vÍæ=ëäôûS'ž:Ѷû?½Nè{M敉öiþþ81©F¹È+š]B·:Š9I`LS¹ÐoFlrŸšþ¬GÑo?§æÀ¤°Àb:¹M%šBÅ0¶!úä§¡-öÞ ƒPqƒŸG¬4ÞÿìáÌû–|.;‚Sà‘+ÓƒçU§9Óä«»àòÙ.zþøéŸ¤'ÔдhÂIÑůŸŽÑÄÒ7Â[¶øU¯èàsáE$ –e0E_?ÓÀœÔ陳Y x[ùC;olü”@d‘)ÜÄ–•ÏœùDçƒDýÔe¨Ð%¯Øá‡Nk½ ØDÑ®"Øæêáí_!ëÕlZnVsdÁÏÜš¬˜ü‰^xˆ!sþE_$‡ðÈ*¿²NÑ-Ìp³ýC›¸D"6òÕÑ8Ûª)ŒÈÆÖ¬…bck‰iðѳiQV:‡à GJc·Þ’ðg„ÑÛiÐñäž/ ¦Ι#;½@ÞÄÆÜÈj¿|úQ¸Ù߈ò“†Ìc2Ÿ:¡0?ëyê„SÇÉöÔ‰Ôƒßbxýiå”-š77‰ìz¦kù]à-`Œ©ªþ2ŽžöF¤˜rà¤héà™jÁ±-:üøWj©ÙácƒƒàûƈÊ?“Ëáþ¬ktp{„¹üòuÄÈ`œ††hK¢VôêY/ìE›C"ç«­Ï͘øƒµ³æHímÝD`Ôùf#üéËŸü¾}oHEèÃp|Êãú‰VÂ5¹~Ÿ2$ö‚Ù·œÓã;œ[Gn"-WžØ*ÿÏÃlãŒÏÜ4­}&úúüMoA¤YÈŒsÇË¿ÄMy9_VU›š»•‚€ÞøûÑ€æyrÑ_õH¹öQAþ™; &zêDbõÔ r’\™}2›ò©.ÐÙCŠMöiöûŠš³!yÄõ¯Q'^¿¨àf s¥xÔÀûŽ‘9ìåpCŒGŠeõÙ 9ë¿ßæPÐ?#Ecy„ª‘@gKñ ¤EòÄ3î+ËõA›¢ˆ)úú!ß™ÑÉA‡íÜ~0vãQ÷PŸE;ö›&7.Ë>Ée¡SÄׯßÍM>Ó"È_ß8B#K4YC9ü*R³Ø©ëÜW„þjýËù|€…<p/X•è/äñ¯ ï{¯˜é°áçÍb=âÂGb{èÓíu%Ä•2¡\}ž¼€ wsñ“èyÒµ¨dQM.~SðŸöð´âsÑ”&Pb—iåñÊí3ôj½‰«i¶ý€ûƒ¯ø2ôöɺÆ7Ñ6Nøá¼ÀÎÉCt8h‘Û¹Šƒpë&Æogh.þæ¶é¤Õy~˜†LÔ¸' Ží¨ëiSùòþƒ^›§N8l\ž:‘ÔyêDRâo©N¼öAl³™EìƸ­NÑö«$ðÀUTØ>铯.з¸‚ÕC1$s¶¬Urzê¦=«·Lõ¼zô!OåÒö¼òÇÝXLDg ÿÜ„;«|˜JøhàG†ç€ðÅ7ÜäÕlq¶_ïXô.Í…Uôy\¡¾8Š?ATTÒ8s£ÑC,߾ƫع Ý_D¿ªµÀŠ2:âÏ?ì’nÒøãïù8,ø“/:n†«)u ã>ñO|‰õzŽçã½À7ì©ê·&>Ì1y=æ—5hóè0s®½á[O€q˜Y*0)Ú +7ØŒœ÷í L¾qÓ•¯ïA_©"ÅÏ}ÆÖOÿ¤-ÝŒ°Ž+ß–²psõ-¾jì@é‰Ý!îÚÇVÖs ¹ ÏúEßæL °8ž'Ä™y½i¤=þ\ˆÈÅÎ-”ÜjϘ[†xŸ:Aܯ§N$ •P„ã©Ä@Qø¨¯¿ûiB©¯š²±³¦ðªwÓâs ’-hæ@£Ú¸¥14DèÙH¯Ÿò5­Áñ846{p§ÐAkqßyÏ“ŒÈª)¤(¢Pói6Í´øàp5–ãÑþèI‚_¥•gôav¹ðW¾hb3ã~ÄS|@Kî=¦Î 7ò¸‰·\¬ài1Ÿ™~›Ã#ò%å†Z¦×%ßã ;†×B–ÜŸ{cƒrç´ñÔ'¥@fuMYGhr3‘õÎg âþ«?mG¬} â®o‰'‘]]Öä[m«¼óP†ö|‚b5$ã6)#øçV¶ Àºó´ z Aôòܽù¸°úG³/§NÁœ—ƒ7ñÈØôÌë¼xÑãìBde}Õ‹ÛÈpF1¸×ƒ§NئеˆP*ò*g Ë—éœ9|Ï-’q ¯"¤Æ%²HZ‹w ¢lœAŠ-úØlüêÑ$Å7|}¼|¾²A_$‡OÆùì°>(IØ)Ó½´E»ô Ë¡À€[ÔÃ÷´¥ðwéþÓ7ýí:à§åK?öÚD±ŽãÅðŒ!ŽEMlB(Ÿæ-•"-ŠÝ|”IþÇ‹l™?9“4ŽÞöY|ãkÖMö‹Ì¾C®‰ÿéìG«o8²Kço?"'7ˆbÍùdá¼aÜùg2粬9¨ˆ#1íÁÜï «­8 r—‘·þæž9ö “fŸ²¦Í;`4h×7 ~ÉKÎrÉ Ënäx!Œ+ èÐ^[€£%@cK}6ZqhÃr§ö%GÄ3g}éXïMD‹è©Op.‘ʉ§Nd§ ÚßZxÁ*%lp ßøçM¯q>t5ÞiÞW9-~=С(LÃÕŠOÅJÁtæˆâ,|0ä•DÞŸfî»W$Óàç¿üE‡N5?Œ3„ú³¨¶"-ÔÀý*’¢Žzq‰<^=¾Íw$ä0BnY]qM*¸oŽ\šw [lͽìôS–øIÄÈã3 4\ñ+-¿²›C¹þÉa`¼h1{­r² 376â±òéݽB#¢÷ úÀ2PÌn»'>_æ;«²ŽóM‹ñ5ü¹ž±øöÿqèí˜V?‡câ}o^7ñô`<ñ=0Mƒ¹œj²5!²NyñÇë5±GVnF$Ëöà ãô„òLÎy½|àæ\ù5a;Ÿ~p(/¼å&¾ÀDñä)…Þ.’àÆ´6¤ÏÓ|òMÀ±…!~Á‡ž,±oûÿ>?eBO#GzÃP¼ï°Ø!_ÝS'¬§N8gž:1Oý¦^xý Õ‰×ûÝï´¯§JyI©?š_AžR›Þ5€¥=ÆÊéz/|gqõ!® ºPŽ=>U¼8ÀøÞËn©;ôsÑ¡òAÞB™7?‡4vjâ¢7ÂS°¡¨¶Pçæ@¾q°€Ã¸iØ{9 9uÊZì §˜¦Ø"G°U„#·ìvCEÜ”'«geÌЈqQãæé‚›:ô"ÿ§ jÑëHÃÊËÛà5? ­?Jªßôº¬×˜›µ"Òk㿦z„ìñl$Žé«_v —XN MĘmsÜs2Ï3çƒdûO䵿~3÷c}˜h”¡hÔÁÅ6¨Bó]’fÂÍ* ñƒ³ÿ¥1­ä¤íõ:¿œýýØ·òFã±."â`Äׯ^Æ|!T÷ƒ†™KRö :ñÌÓ¼µ}¨­/Úõü£§:ªDØæÛE$ôcˆ·É]@Cìü“nö™¬,ö7'eAý–gå¼öÈ©ì«Ý¶Cˆ˜«vF‘nLuø—ʽa°žô ¨Á–û~=vR„ƒ|Àš>òúÔ‰‰ ûÈíƒ84§Sqž(ûþlOHÞ+ù“ßÙR÷×S'“_¹N¬³‡QCOqÙwõ9a¥WÎýzÌ?9¹ƒ9èZ¼ZÀڗć['ôÇb\úö!)QèÁ5yÀ_d)…Òo³C ½éyŠ±Ã Óü¤A‡ùyøúPž"ð-Ôz)i;×߃ªf`›oF$glñ£Dd²ÇߢGÑ8æ&7d$³øšCˆÙ¨í¯‰t†Ç¨SHýc„ Ô:\°;nh¢69ˆlý’K¶ v ˆQ]ïÚ#×ê<˜‹™€æ¥o¿°1Mê̤*‘À^Ѽã °³ÝÎò´/í¯ðö+?ƬZ>*94ºlÁGNÝûÌù=kÕœ»ÛuÙ£¯¶ákMˆüÜPT0äù©†óUÙòÔ‰§Nd¿5q•ŸOÈ~Ô~ùhÏe½¿v/¶|;ý?¢N¼úÿ$§€r¨M1¹˜©?=Ë+—,6#E¦‹¿©×éGØ´ ¸¸jNñzÏ”¢öUº³{¸¢-aã·-Öf½ ¤‹Âœ|…f^õ¦^°jâ[Xk?´æ‘p–¸ëЫeXÊøók¿ß€WT9ˆ`©o§-ÀïÍñ¶½’6J«\ã_m"Ö+Èðêf¤<¡;g‰OeUÆycãýÁ4î÷Ήáâ̬›*b[æôMR q}¤_ÚR ?Šç&¦Ÿà-®©uÕ¶y•í5•üw‡Õ*Ëî¡f[· Õ;àµþ;ÎcxoxƑ܈„kù Ôkná;Ñ€ãcí¬O…'_"Ó¬3ܶl+|æ—1²ñææføpKY lÙz$™?uâ©Ê òb¶vžJÎ  §Nh?SÜ~ûuâ•G¤—â4¦·Ð2å‘ð*L]õ¡kׄÈc%ˆ …‹É2D>`4濼"=ñ+xÎ<–v'–æ 8Ãßn$#k}r{êBÏŒºXy>öA绬sS#{ø=„| ¹ ÎÍÈæïÝÐMߡѱËüÐXÜã²ÓÏiBŸÞ!]|ä ¶´1ûÃiQktcÝ€?ƒü·Èã›xï¯^ÑÐÕÏí‡fª_×¼'¼²úHÓV Ÿ&8&Ø,_ œ¼jƒ&8z~É¿òí =•ûK¶ô>¢ÖFî~ »Åï h#ßNÞÚX¢úQ¿@OމGyÚ#«­rX£s/6†Ý3ç~8=ªœ•÷ß'¹lw5˜i-&VìØÚȱw¬EŽÈ{°Ô$ “ƒ;#d]åiëºv~ò¬_%RØ›Úv}DƒŠ«ÌM36ÙÄ>4}Å™™C¢ËåÎu±4çŸÀÇkdÒkD—Ts*qHÖ×Òì97GÎW†ä%Žéø3g ‰÷‰¾qQÙá E¥'FÍÛÂá5âíz±¦¹q‡ ÐÑ€“ãî|ƒãƒ«×¿¶Úb™Ã+BÑ_Ÿ•~÷µ •—qr"”—˜ÙNiǵ§Nd}ž:‘8ì@v(G”ÍO ´MC‰Ï?ÍE(’ÿì ©F¾yX™Oàæž@M°ÝêÄ+ÿq m}JÞ{—B3'¯ç¦àÛr%ŠWïW¡`gÏK³÷ |펭î.\ñèjƒ·E̵ ¹)8Ÿ‰p‘S>Þì0ÝÁ‡-\Ðú³o8˜¥ÕkÊ>WK؈¬“7Ô¹âSCHAD%¯¾á³ú\\Ûšgàk+ 8¨‰ ÌÛ$zr .á`´étð6ºŠ^†›,ÁÎÆüöpb1Þn[wN`TdÙôÐÚžhùV9öaÆi+‡óxVszã£m›äAwq¬Âʳ{n$+©w §Np1/Á VÖ/Þ.Gø¹bCtäÿ¦;F‚ø¸õl9eÞáÊJXk×ÅoM1‚XlKßÀö-1õñyu>ª}³ÑqûÆ0ÌOxê„2£‰3ùë\ì©l¼ßvxý·ßÿn-eƒEó&o•¡MÑX…Q°V+É ãœþäÂKŽ æ$G‹ ü­}K®3'„ág,‹Æ–Úg²Ëe„‹öÞÂSkß'e0›¯ºìûڗ-–…€17~u¦qe€u¯†¶ Þ¸Q¨ëBnd hD5¦tJ.túl‡Ë}h(óÆR?%™q½æpð_!Ο"rNÜoDùŠ?£~Aý5¼ š›œèDð"ó¤þÓß[ãx­KÌJÛXyM!2rv5 óöÓŽõhñ }ùjO%AÃnyk[u-ÿ„( ½¾qŽYæõú#”ÿyöQu^ú‰‡åκ‚Ÿ×`Ac¸ðµ/´yÜA´y½;9zød\yȈÈ(¬ËÏÆOvÊ€H•¼úWۜ좥­ø>uâ©Έ§NvO÷³·Òpxýùgý÷¿> ´½±€—ù´îXÆlôÙÈ6Ù{žr s¸™k¾€å,WŒ§DXÂ9çkÍ 4bƒ~ý9Û}½Ò‹lµU‹ÆVì£öè~lу@ŽýÔßÅÿ*’Â#¿7--˜‹¼bѹý7\EXú+j|Ù9“ýŽ=ðDžX€ópúñ.¾Ÿ±ÿ€Ö^3Ï¥8¦Dª¶ÚýÅ7öÄ#¨}3W^äù¸”oºë¸´ô•]›;w®sÚŽ]æ\— pZ½¿‘°1šõÁflÊ2aI¬ÖºC3 qõÛ „ÙŒl³Ú¹ÉLª›*ákûE’&Îî&› _‚6–Q÷ï†6§ë2Àr) {!¡Çæ!Úú ®ú«'~1µ ñOpt çS'v>;Ï&ÿÒ…F6>uBQ`Ÿ9"ºhOýGՉןù”ÿ—¥Ú¾v´§°éÏbÎ… DêK(²Jñ¸Ó­´ÕRŽ!qá4Í::qfõ PvÖú?¦QòsH„ººúj†¯B–`/Ž%Ê@|1‘yeŸuaâüvu‡kûÜ¿è¼ù…öíæöÝH¸·ÚY¸ŽàÍ‚žÒÜßÎAwm‡Éa´sŒ£ëb‹@ðà8‡¼ü}¬q}ÝÊ!a<ß‹CèÚWZdÒ¬üðÖsðæSo[å©nÛ_Îê Ci}£1Z «ÈÆ7uïÖ Ôšˆ¾¶UÆ)Ó&ŽÓjk} ¿ç @‰é1´6s;0 tš7®&“ÄÚż­ú™—¾ý‡¸§N4tÉSÍž:Ñx“$Ï”O˜¸üÆëÄëO_ôà(*-]ÖÝ·"åÀ+ÏGôÅmÞ=úîûpx£Ó£±úè®]©ÐÔ&zËun¦ðR\]¦-‡Bi..¼«ó4UÈóðÚ:C+ó˜y.å_7jO’)ÆÛ6#%«1èrÔh‰Ýµÿ"°Ü~Î#}À[6Œ!ËvÏÅF,x[¡:¬qaXq5û\“mëÖuÒ¿z ]1*áMvTwIv£ú™ÚLì°©þ.zDàö“¤EáAü lý‰¬¦ç9ØÓö¾ƒ‚ê?í¶ÏÒ ‡Ë áj'`lã‡jùW§÷u°e]õ_2cwâWƦÍUSgµó©D„¼ÌOã’8‘?àV97ÃM³ã^¼Ätš:]Ÿh‹Ì‹ì‹ØÚ¦{êÄŽË5!"ÎïuÂßP›HNÚ’¤‚ñJÓIÛ(›qyÀ˜;I¹4ï†üÏ´’~ma„­2ËW:ôWØG4ÅýÙ½?ã0gü¸ËzÓ’ÊKéeÛŠË"ŸtØÞqdÿùv@é,“F×4˜Ñ£ž§k]eàŸrc³Š”åÅÿ‹~±ªµ‚ 5HSñŠ ;<‹yÃ=ë;o)a­ÕUöÀOX×ÜýÐ!ÒbaŸ5ª­Ì­{bQ¿JWC,ïÈ©â‘c7ꋼèšxÍíÔ^²ï=2¡Ë_˜lì/ñ¢þúù„Ķ<ý³¾˜\$;2ÉO ZŠ‘Ñx-`8©V=+Ÿßxšæ©ŽJc5!ZÝS'¦‘IÅ ’¯OX©âÁ_ªN¼öQý¹éÙÈçæöx SZˆ¼†©66–¤? É9¾ºµ‹Iá[L cáík't6ã(b§è|÷æ*7$¹Î1ˆŠñH{TYôý=eõ=óÀ¶°CO«¬ÐôÚͽ}*æÚ#3ö|,‡èÞ­Þ" Ï'Í#±ö\åoûНU^áÇŸ¬-j¶ [o¢Þ°Uß ë\𑵋ö ϸ:B•áGnìŸE>bÁw¼ßj(äÚo]åCoBósd ®T:y÷¾°„I»î%d’ǵIÚÉïÈí™ÿ§=§^ ©îöÍñh«|ì²çžÓÈ ²þ¼:áoŒò»ÓGh? W|Õy¶‰<àuÄæN%g¨ ztÐøNG | @yOý/yq«à£?߉âÛUùG°ø\¡¶Ë“hG‡QøÐƒ4vøª6±ÒG2rûg|¹‡‚Z@Úõq†Í[{f‹àñO` Ò"gИnûopY³ØÎ¼­kÒùÖÐ-#òƇâ=×Ä£úÚXûI~„#š7.²£Ÿ*ƒqÕ‡ƒùȽÉ*¾=vžkb¸â~ãÄ¿¿m}•Gµúó1-vÕ6¸‘·[x™Ç&n®,@èK6ã-㺷òŸ*mþ0w^!GØS'ˆGåŒÑG°®Sb˜|ù%þY?çÖS'ˆsrw'²GöÔ%Q™(À½wž:A¦µNøC€ X*Ä\[xz 4°ôd‘\Ü*üýü~3±eùO }çû¨Hƒûº©ª!rîpæÈ)œ‚& ¶‘碻ŠÜòý¡=}~¯7rÂߤ¬NVH?pÅÙ´û Mb_úö‘v^ëa<‹øø*ìºÏÁüìÎ}`+®b?ý†šÆôpÓp°§FæÐ¯à+¼§œw±¼ Ï)Yvú{ià°«EÔÀg¼ä‹4Ѭ¼ÈÀÆEƒð¥oû‹$ÍWÝøQ瘵EfèéC¶ûK ¤Ùw·7|ÑCǾ‚þ„Už=«{­Ï O®Ù2vÍÁåX»äª1‡ÛÞ­0°æOpLY ~vðvœY'ÁY[Óš&±/}{\.Él@pß×a Gtؘ½Ã,ia3¬¹‡ž¤Dy¡"¯B;2Ž WÁÅ·?ó~Ã:š~/‹—'²³N¡H®g¯ùë× ßœ…¥qŽq‘µ…µý8ýž·üå¤ß°Ihäé§<'mèïOJ‘¢d»‡?…hÃ{˜¡‰FO‘ì{Ô, íê_m!-Ö‘¹m îú§G‘Å"GæØQðêwÁ¬þЗ¾ZØŽYivO±çm€_÷ÆfË¿v ²–sÀ¸sóiî|˜˜t|ÿó7ÇlòÓ­ð &»ø™FþŠîŒa(»6¶ÀøÈ‹@Ɖoæ÷µ‡+~ˆJq­OÖ9Ê"£ò‘7c½ àÅ0òcÑ©ßÍ!šˆË~¹ËtGkL.ƒ®=Z=Fâ6ðjàÑOüþPKE¦9ÄR»ÚGŒïp§Ÿõ}ñÝ”×ÀÑlXbH øÁŸZßÚyzºá¿ÄCpbKCþ©Åum¸‰æw×!\×uº®õS'x³ð¯U'^ùÓ‡n’ .ÙŸÖŸÅ ÎÊŒ”¦I‹\ —D´ `˱“`Ùˆºò34íà ƻ«ÞB ”"š¶ÔΜÍ~ÊÜB“Gª) µ_‘QšséŒ³Âø”øh¬ÁÖ?jOà]„1™Ø¼ƒù–™˜¡ßÊŽ ÊšäU¨ <ü.~!xÓ[¯¦• M茹Œá*ðèŸ$‹†Ä¿`Ö!°äáÃ/É/q¸ºá)ÏV`¥¡o븯ÈC_Л«¤êótª<ÆŠ¨: ¯ ûŽÿønºC”‡Ä6º˜–¿½I XqOãÈœ°—Óˆ÷Ù¢¿ºèÏŒŽ“~ë 4±¸Rü±³ðî8ÛÝ:IÞ^{™Û£e3ñHœñVW~†¦½y³¶‘Ñ©ûÀblÜý©+2ÞÉõÆóXC‘±ÎÄšÐ%¨çx/„ü6u+…R„ý‰N[ ˆàAŒOcÇÈtljüÍŽ•Àa™º×+¯%Fæ mjÅD'X.”Ì}éŒ}v`¨Î¤@%óYýºßØŒû¾þW¼—jûæ/¯i²í<¨Ü ± þü§eÉ(ðj­-1ˬ2Ä`:|KèÔï»®‰ä->‹gø¬[À±4òÇe騳aF"/qô»}¸Ø!ä3‚ß\C¸Q‚ÇkYiúêò Ò6AG棆µ ]ñßѾÅâ`ßAo°<ÙÌ °ñ¡D6¬¹È¶®È6ˆ-¢f ÅS'â1±d|6¢F| ®¹òÔ‰‰ ç4|êD2EÙ¢üuâõÇ_-ìÜÖ®9dè%QgÛ£”~_!ƒ Âx(mAÀïQ#¿ Ö•Ì×7¡AÁF¡¨à(<Ø^gûˆ0z$z“×iM¤ð[káÌOu²ùÂcÓzÆ™Û6ËC°d€†L=˜o~‹fàúö%øM”9±x·Ù__¼Øš,׎q Æú$6Âk{Œ˜9&æ`Œ´ÆŒ¾:Ì‚ú=}2\¬7ï°É*k,XÆúiì!µŽéAVN¸ÁCÅ [Âi{‰M˜¤‹ÿ´Í1Ñú U†W@dqÕƒ.®& W8îW¨‹ßcâ”ÿŸ¡ôרŒ/ÄvnˆàuÛB,>@çz[–°„Ì|C3“$œã°¦+^æ2s”e=¬øšáuAÄ(+ýµ  ¶ ËŽÎaëð©c橉ƒ#C¬tâÓÐ=ubåyîÜqpž:ÑÀü%ê„þ ðçsOG—’’’‘E˜±’¶ÅÄ Bf>ù 'ɼà-:–²ý^Ä`ó~³_)P;éR´"g꘧3ßE÷ÈœÍ_’HúÁø¦žDCy~,ìØ›½,% L ,FµÎ‹R!_øÆ °£SûVt`eÝt%ÆÃC)>š`ºÐ‡?ÿ´›ê·Aã›acàh‰.¨‘ãëbf$¯  &¯0!šÛÀÛÞÓq@°Ü @Gdx¢K7…=µïñºòˆyoŒ"žÅ­Á–‡OÍ»eÊ¢…g¼ W@•î\Û†kéar áÛOUÄÉÓŒ#çíkÞ 4×p™,´ÈÄ‚üLŒGb+s|À1žI×R2jàÈdÿW·5Æ…Õ IDAT¡8““.¢°g繄Ž•Ó˜!?(ä'¦¡ÑÐ2õ5üOpÌ&N Os¡ñtŒ‰£þ]VQ|O *P¿t ù÷X'^Ù° ÆÁ3¢Bl™¼¨ò|¢R¯tÊç>,¦ ǘ–Žkˇ VãÅ“¥ª÷fŸ"ТBQ¨®ˆÎmêT˜»OÌ‹¯vø:®ÁÀUôk,™ü»ø%5˜¬Î­6.ý`@†é2^~ /]aË.³Gzt§à"Ï/˜‘Ëã[æø¬–N0M?¨©¦‰Až9r`?älÄMŽÙØuBqs`•!Š]B£Õr܈-ÁöÔ‰;Ž‹C³çøëOHÖTä—?˜"€óª±$ˆ«HÁº ¤@†øÌP#»©º„]U³¤`Ø üŸ4²f7ØxöAR±‘” $Y²ñÓ‹^BëK­Ú¼¨:M‡Ì͈Ða44âÐæÇ§‚#5ð‘ïØ„lF²eÞ^ö a> '¾ÈIã“Æ}ð=ªY»ˆÓ€¡ý ¹ç‹nÈ@Uãâ _Ñðûê™­!Ǥf„×ñf>þÅâ™úPÕuȆÙW邈ÚVòª}ÄGØÈ»Nð¿ÚÆ0;\åx¼lÝt ÞpÖû^åË@üGça¶Ø¥Xñ‡¾K3ù²x†þÛ€Ú Ž‹ÀŇ Glæž=ësèÅihݾ@×Õ€ëñ"Qjà«>°3+×1"ÑUô]屨öÇ Hl­ÀüXRy»¯k±Bp ÄS'òYã·CÎj(V,œæß7âÅ3‡¿k”Ïßd¶sûøÞK1ÂûÔ "GcÏìxô©¯ùRfÅ2/^RƶÇrg€ÝY‘ƒn%D¶áÐ)Éêœåå² Üˆœ­ëÎäccøOF)‚Ë&EhF~ ,™cØrä›Å²ÂÜC˜™åt}J]-{f#×äÕ·½äÆ/Û¢KuŸ²Ê§b™;†ø4_&ºi“AGL€ã[¢‚ µNŽq£è¸A"ž¶Ž+ _=Dè Ëð-ö–RÐÁÁ„'Á÷?ÜAѱ'˜®»gb…¼£å‰´ˆÜd‰ÈöḞXWÁ‹¯_؅刉ybœyG¥•W4´Î-sù Wèáõ Ò›d¾d¼ñ¿È7ò½Ô€n^@asˆE’(ë!xìÒ×3²}(€cšã—qÀ¤åÖ6󡸢ɢódà "Mv{ê±P€¼î:¦;DB'¦ŽíÄèS'’^ÄlRÑqáuÉû4TÐþÁë„ÿ `mÐ&“bÕÃc%b#:8ç#A=ÛÙ›¼MðU( £/?øT ëñˆÔâ-+CÓ rá5>°(0³â«Õ¦Ñ 4 ~⯉K›ìN íx‡“ÀÓFÆ¥‰o@ΡôÒìÃŒ Ð%\ÈŠûö£Hz!ò'¢¥ÈúžªL>èØ%ˆTöDÁC`qîÍ/–áóúÀ1Å êHbó2X¨–­e(iùÕÇžÉÓÆt³t„°Æ‚²~úl®ÌÝfáÌ-:cÛ3 ùì­CE¸ƒóe?3ë0—vàž‚¿­iÉà²ugLÍ;ö•н¨ñal¨_+V$Â1xôšÁkáøLž:A(4ç©âöÔ å!Q,’WÿÖêÄ+ň?ѺˆžÌemŠÈŠøÿ«s˜Í.1>ÃcišZfrÈAç„ñ˜@}dàßÙôË$oDGÚ ë³l õb, b[ŒÃ~Íæb&N?i€ð}Qí+0'º$ÅãCúèjµåÇȲA›Nñ…%*ÆPÐâÝâ+ÛGL¹¢ »ç£5ëz£aF˜*À:†¶òQu¬ã«Ø-úS{X¦Qo6*»”Ì“r\e{.Þø8’G‡×CíïÕ]c}´ŸRï¾Å ãý®‡|ù3è…Ï\ÒçHŽM\ÕˆCeˆËºŽ¥ aÒ}øbgž‰S¥—ø;—YÂÄÚx×ö¢è“‰Z(· Fp‘NÇÍ‚"mÏÇ÷ƒí©Š"¹§ß„,ñ{êÄÊ(ï›ÎœKOHmqêÞM•-×p©ß›-e†¹û´¨_¹N䯜ÐWkšäcB ñuÊÏšlŒ(V†)б8(]ýÓžÿ­l+ñð*µºZ„Âk¥s9!¡Ž– ËrtlNÙ¾#nY‡p9†èN{3£2ßf‘­³zD‹?H·_cè‹Xd®G{!šh…ð n|¢‡«™ÃÄU´YÆhP´¸×`°N³Ü9˜³‹ióC?êì1-§*Ϭּè˜UÙ<"b6ž±óX´#k[¡‘'È(O$æß’9|¸uÉcX†¨ŸŠïÚñ,p$†Äq‹Å]+ðŸô…¿éâîÌj,°‹òeb¡9Ö×·.ù&¿›+y±eÂØx AÞÙl¯c*] 5ƒ5?8ìȶïÀˆóÕ–‰ï‰ðšðÔ‰DE1n,Ÿ:¡œjž¹Ìód´_dä|~êį]'^)h¬ÆgïÔ¬‹×`ŸuBÑJÙmq0m-œ¦gùZ´Zž" Gb%pN©¥­oê¬% û*S¢g\éè¥1ìâ£+د˲±)ÖSA– ï(Ѩxoj—¹•ÙBE ¢"†ÂI+ßéWI‹ƒÞãöa´<×g.'Î’c#|WÙ×ù¦“ŒÕdž}³™LÀDGV¼uo›µÄx`a7¯.ãþÈ5ÕŠIâ&_oü¦.,¬°pìõ4°Ëz<ö±sñ\9æümêÈBàIÏ]ycÛõC.~ÁNË2u˜ó@ žkµì”qçRéÖ¹Á ¼Xzhý¤Çãܸ4îY¾8¶}Ú¶Y>Bh€‰ƒOP¼‰ÇZ‡ ]º[Eê ì<‘ˆÝ"g„B¸†Äý©©Ò“½Ç’@~ІfG›ÑZ3&Ðj k¿÷D,Ë!Tÿ—:¡~±ƒvœùHG¥X>7méÞ¼5µ.Á|h ®d%€•úÊ€+‰?Ê™»ÍaU0:L“Æ”°`}âï׸Ö9ÉaŽ/ûP=¥EæHvìféa«éò&_åK{,yši|N×° á®Øú(„i”ô D‘ÞÓèµ ‰3M·&¨½õÅ\—y?Ë\îÈ ”fŠÞðsÍútŽ^{–*T¨qê1ÚSžŒiXbÄT™ ž‘†3Yýà®­¥†kä°¯Fbldò–ÍæciÉËš°¸½`wñÍ 2@¦…¢Äyx ²˜+=X‹†}‹YçN”§N$;“KdÐÊä§N(?ºÇØDÙö‰Ñ6»í×®zp½£ì¦^{z{ñBß°wÿÕ™÷ðSò•vËÂQš´-ö< ’ˆ–ëÎ(£C—Wm¡.?ïz÷5zèöå™E°ÂïÉ/Ì$qø ç"½èŒt½ÆxÐ~qʺBW6Fž¼´ô‡@Mº"åFB4bíhËEÀµ-:ÀÃÎ펙í&ÀY‹ˆ¶€ÊÞÒ±…V[:6ð—/b‰è¹z>ksuxÖ§âBïÙðóQ¿×(î…&¾7„WÞ Ê´§qVа¥´£SgE4?zÓ¸å)ò‹a˲œ×øì?Ÿ¬ÀÕñ&ë!DÅ™¶tíC|Æ c³-›Ì¼.Iï6üI‘OΣ%¨Ržzá¼Ã™—ëJ[(\iY¿ÎE¼"ñ©+F^‘F¯ñM~:WÌv$Ï)мup5êÄ¡ÓB÷¾’Œ¼æu`Þß,Í­5Þé:ñšMrØ$]0>´uvj uøvO¢Ä1ÈVí°L 3XˆÑY–¾TNŠQeN¤˜jˆ=)6´pE49cwßBSõÑá×¼¸ÿKÜ›¾X}ð!£®vŽQ–-v[d]èÍ$³}Ê[ªµ·öE8í&—ì0Õøq$ÅvÅçbèëo`¾ÐÁáO|¨‡^t¾Á i}ý%YÙ[Ÿ—BV­nèHÅ̓Xý?C!šÚ¼dê¤ËSƒí›i$IŽ =. S50½ØÃÄD\yèË=B¦óúAP{ 7,“÷qÜùûNl] h äCp1ãpQÎsp°mÖc8`™Åïá=@–luht‰¾ö!Šá¬ž³¿úõ¹H Zƒ…˜qgV,²—½•Øã8[:1=d˜&{&v3f?ìØ'ÞäX>u"qH˧NÐN»‰Œ3õ~qþ@à<ÚØîYcÎÉ&IþiT;WWî‹à©ú3À~õãÂ×&9`¾pÐ…˜«sûØy2“¬w7Îïø?ÒþÔ.ÚØü‘‹|`ÙäHÛ‡sù. cÈ<-µŸµÿïvnù‘¿™Lþóþ³?/ Ty?ò}ëfTm¶–K@Ùu‹´|4MGm[ß!wdg" 4gán!Yó® G ö×ÂU«)¸jº ›ñÖºe‚^]Ñ|휬¦%· ‘bÊ ÂòeyØ|RŒ¯µ®vòÁ?£lë(öFç.8áþø;|}Gà8/ÿɃ¡›·AhbçPâБqÒ†.6;ž‡­(ŠA~X¦C½ÓZðçº,|ÈPL,NÚó \r‹à¯c¬z 8×6 3¾Ñ:FÖ‰Eܵ(Õê/>zÚ·èfàˆëRšõ h°±#cèc¿¬‚Çv€Ø´ø„mïÂÖZƒ·f“¡ûš áoÞEÖS'Óì¿D°‘>s©tg_`O • Þ¹’žäeóo"8t™%×Í.x÷ÍPš×Ü\P1yOÒþ=׉ׯDŽ&Q؇¡ƒ=?Áv¼tQÛõ óË5‹21½¦–@Ãà‹úQhç×^Øü\Ákwcñg¾WKÏ+ó{ßÑœš;A€Cf-ÒaYÕYCmζ©Ró±³é˜ÃH|g ‹8"'nã[Ö½À¶‘T‹$°&Pè°j&j¦¹»ÑyHÌä÷±mîH=nºJ†ðêŒù¤ùóA;CŒ+ÆÎ—Ì#¹®í÷ÈñÜäµ"mdiæò“C¡D 5bÊMaö×: ÐUF†¹øºã^NÑ™ð:_v€Å–¡‚Új‡­8ˆ¬)†°°L«ß[=]Ë™ËÊ›(´‚êŽÍOH¨ˆêÑ$Ǖˊݎµ×€ø³î&„ˆ±ºE<iOp`rD%H ÌS'ºÉ’Oð_8ÕŽÂÂÜ©9¯îx¥Ñ”Y¾S\Vúµ>30-D¥môä½ÊP‰é‹[c„ׯª¹´÷9F¦ù6þ.Ò]f[Š/Ö’E =Á^o‘#¤_V©=E´Þ¨‰ŒÇU饨|ÈaNË•^#O®ðE‰}æ€iÓD¥®ïâmL9,;v >üØ¿4º~ŸÁp´—A ýFÊÐ…c®ËZÍw«jÇY`ħEQ¹6\ØÑ ÍïBVd.\f/²æð[„F㢳ašMߘø{ëÛ|©‹HW –…òºw°#Mý¡£zbÍŒ”â E‚¿¤HÆ ‚f»ÔW:#pÁïukè–Ïh“ eƒÇÛ~Ó?u±öÒõP±süŸ:¡„›ìib*6k{“ é¸®lkº_ù,ç݆§\‘3Èѹ¤Þ…,]®lC‰tö "Éÿ*Y†I3't±è·\'^_ô’ˆ:P EM™lï¹®‘¿%Ž%u?އ2‚²aÙBy<œ t ¦9Öf° ùüªÉF›Ô¹@YŒÁo²èžò›W—Èà*ufÓ“a·žL™uŒ.dªa*_¨7Â4Є`nDÛh‘ þ¡.®bÚ[hù–aó3:«/šx_–û£_SIë‚N™;¬\—åéèõX Âñ¾™«ë;ù_äÀñÿŒ=Û ÓFݯè• ‡Ú~@žùlÔ2ÑO["EX^P›wåW²¬˜Ø¾yEîoP`•9ÒJº¦(‡¼ëYtM¨·M¶býnñ‘± gÐ^Ó`-?:F¡Ådlqðê·7÷ÀPäïûѨrz··‘– ÈS'².YœæC{b÷Ô r%ÙE¾¶Ø€9¦^®ê4Cž:3=À1$š5·rͪdú5­Yñ,°ö5¸r\P%Ãä𠕇ø…©/ýÑòZ¦ äÚéÉEol„0"m±LŽE-ðV&Ðû?G‹{1&</yØ|®å6bG#Ü\ñ/Øõ0l^,ñ6wë]S¤8X䈡vÍ7© Ð 6PlÕh–—‘ák.d(ðÉ“ ŸGè i“ k K¨¦åZâ~±­F*MŠŒQqD“æÀ¹^ÇÑÇØ¿¨…V"²«$.!?²¥YU}²¼¡Xz Ûr:3_Dø Å‚i@LkSØ+ƒ8×¾0Á-<ĨæX0$Oxbãåb¥'`¿×ÂAȵ{ê„bvÙ‹äy·bêèr™k d(’£!è^ äñžGÈÚZšn¡?p5ïÉìnYë>d‘1ëÚ<°ý2Ì7öËq„à‡×|ÛéaûpúlÐQ86ç–JñdSÃ〙°Ôêó+K`°žÀpz£5v ݃McÔüâ‘{ û>,Ÿ¶¯eëûî¡¥¨™š_öø•¼`ö½O! RŠ]úûßÞ6xñ}Lû/Ô±pÖ¶ÄÄ>C…ë&Ñj#Æóš¼lÔ6oj͇ꊰQ€ì“é‡àñõPµ%sÖÂf:øødÜÐoµ–#ÈM~Í€ÛkE¿Âi‰îºÒk#„0âY["z~PÆûC´Ä±#ŸU¨dèŽ&ÞŸs—HÞ©ã™y¢cì°X‡€˜jAþ² ýðà\n]Gç” õžK6ò&€aøàjo] ‚$ÕÛV aÇ:hm­°ñ¿ö”z¬€* m[AöJæŒq!˜^sƒ a@¼@erë·«‘ƒnQ2¼æê„#±Ö"AlšâåX5uß„³¨j]%C¿h÷êl¢ «*K‘¬Ê±X!‹K„ä!ÿ©ÏY b“¸u5zé»/ÿØ:¡Ï ŽôÈòXx4XbŠ„ðdž^h±À£`ò ˆ@I¹%ª×?8ÀòÂUA0òbt:¶XÓ›ç|S~ô†«VDfŠBäš "¡ü¾Œ‡Ñqê´|_(ø"oð=;.‡ÂL !¼8qö#¢‹•iÔrì´ ßÓ;üg·X´YâµõV쬰ïvj:vf‡hÌž¥°)¶MÁKT¢Ç0é ι¸kˆ²àÒ‡ÊMáe1=¸s2ÖÈðás‡ˆ¶àÑ;¡œxžùf]ð§>°ôgÎXÖèJn^-8ý­IOçßë?霈-ÿa Vê,ì\rÄpÍØ¸2 !òøç" aÙ~in¿G>[³¶ð;cö´­Ð\ípÿ©¤±ù 5NB‡f¯ó¥QgÞyU$ÏrºÞßÓû‘)c üŠ÷©„^Ñ ®fâùP'^üñÇ8OB4¡HIÄ¢é’í¿}¹R—%‚Á‰_"$Cð$8Å#œßbn¶‰õôÍ"pÓ,ÖâzôÕŽXdÂ¥!3ZÍZ¶Ô¤øM¯‚%I6]ãµ\CŽ}ó€‹[ñå·‡¾ÆÓ¶—©œ}ã¶mÝ:ðyþxÍ1\6‹ä¢Ã¯dQuDTü4XˆnHVÚq,äímöó JÖo, nYKú|„Öµžh©fŒ¡*Æq%^¥Ó†G¡ ÜO–Û§LÛ#KŠáÛL¡Ç*ÐÈö vÉdQ 0JÚHÛ¨ÅÁèWCh0ÔŸëÚ0y|äms5{…jôInø1H#d3RôTF{£†“"+2™Ö6ÛkâÑ&$*ÜF×ÌBjñ -‚§N$Gc樸Öãº~¥­„§N4"äxr–Q³Íé9Iú÷\'ôß³QÏ×tfe“ÇíœBvÂ[€5œ«‚°‰CÉž¡:äÏtW&’hE]`"å#Ö2‚©µB½Ws°0Ìš·8ßúÖQ0´è"B†Á+F'¸ˆluoàKÃ!²ÞFÜúÍ?ô,`l×±.oUDØŒ,À—CdL#¥Ó6¬­©Ã—øÊ·齕‡…#ɼ¶tt¥[”°p×CqÀö[„î «¥€çÕÿ’¢´tú]¾3xk¦<螹ǵ±°8¿œp—·C{u¸ý§]µ—@ú55¼# r‹:˜­cä—%]þfò ~l8»Ú“xÎ ô(?õYG}Ûž:¡@ Dçb9 ãxÔh/ÌGv ‡# - ýXÑX¥B%y[¸GV2O#Œç2²aP3I{áê›q’?äšR¨“]£7ÛTÂúæð%”±¿ã÷}%Ç·ÎJÿž:±%«·ã¤Ñ¬¡7–yë2=u"±Kníz®i!‰—Ù¨K\ÃLR/úsܽTž’¯¹÷ï{ÙÖ>ÐA±ìèþ2[x] >8xþRuâÕï…çÙâÕq ¸µF²%bœ lp`iYA¬X'™O‹¿PJÖ<ÿ_ò%³xÈw‡ýv›§œ–h}0K|Èêò´eàf}Æ¥Ò©Ç?jžò¸ç•5µ~Þ!ô;:žšdä‡\þk‰&YðÀÛ/Ä Ì?Ì•Aï6çrãŹ-»|EK4lë.ïŠ2C»dVþôÆX^H ç:À¶»úkøˆ6P"²6È*b»Ôܲ&¡ñÀ² ¸¤‹wÕ‹ &ÁޱÅt S—L>ÄëárØoØÒ=ò. ßÖÓ7Móˆ§f6Ÿ@ÝäÙÐÀ±uÉ›w`õ'ÎÀ X:Ûmš®F IDAT×PŽ?TüHþ±PìÕ‰ ´µêôzbÁû—,Am£ óúÛ‡Z³¥ÚVñZÖS'Ǭ1RT ÷QxûÑŒW˜+c–h ô:ð©‰)Wׯeö«[‚û¯þÏ€\êœE)$NoHìMÓ‡âÙÒÞ´ Aœ†N£Ù¨åjAèÜýlx©ÎÂÈìôJG†:é%Zlû=Yʧ>–4c«e˜Ÿ•3ôg;`-N!ÙtŒ–·‹l½ ¥£Ï§Û£ ÿ¶ÄÈ«Ü3{5B» ‹ET%@+÷´ËÊ«mè^,b«t×ï–$¸š5”'OþÄR¡ü5™&ŽÐX€=žÃv6”ÅýÀË»Þo#ǰn5šäÑ;mmÒšÆ0CÅ‘eGqäÃ4âáØLŽ$>Ŧ7ÞöC;y*˱lÔ/9H·âi$ÆýkV„µÄkDžñ³m0N[zfÞu±Í7]•+£"Óý0òP~ôk€§0: ù  y”qÀ‘êk/OpŒž:¡„xê„sÁõ„=¥M“mò—­zWWÞ¤S(¬ž1ë3ŒŽYcXáclà±Ù* =€åŠ@¯d]¥‡ßºÐÙŠ‚¨‰Œ/¯è`¢N‘ŠÏ¹b{}©8à¦ÜãÚZ:LŒ/rx÷ÕjPƯmAêÀñ /qÚ¶¯2kC{bâ› „îb#2Θñ>0¯ ,_—ÓŒ¥_@‡±D1äjß Z,Žþ±^¸™s}?¹ä5¦#ò}gÅÄᔲápÃÛNƒòáµ™»±ùŒ‡íAŽÈY£E72Š?c=ÝõR|ç l­Xr7(E9Á|tÁ[zßÔð Ä’õ˜ß‹Ü—R‹¿ÏÆT¢á_: Á× @Î/Y³ØYàDïŸÝ;æÌ B6¢ êg6F•õDšxld k½ˆ dàø ¦XÙ†‚‡Y{þÔ bähMŒ‡orƒ>uB™¼Y¹°ùêüš@6ç@8爯Òî¹N¼RÌgÍ6¢3…Åy6ÉxÂ6ÃÉÎÌVÁš˜ú?±È8tgð-ÿàsa°Î«L“T?öÝhZ$ÍuÚ?²Ó¥ì„uäkb{Ädm¤(â".Ü< ¯¯ð8`ýp_ñ•Œô[Í¢+ï ÐjfûÚ¤ñûJCZüQ®(6æ”ëk]@[îø!fö￱I8¤eüD¾›AÑ¿ç‰ù¢Å/ø[&Í4†O3ÖÛÁŸþ†#ë 1Úxb/-€áâŽNÑÇ„Ø_˜¹&vhB™¡å×ÌÌKäØBS¹ÐVÛ‹ðóøß" Ù—Á]#+ÅàÑIšVàˆ0=zã\” ·ä”Þö ?xýÆÜÍ[‹wüADü5ÕeÄŽÿ44,‘ˆÍŒZš!—™è7'°Ó",r»ÑÀK»ÇÉÀu MXMi™¶Gú€0vþ˜ú§N8Þ¬Gã?ñt¼4žUIìg¾8³XD³@y¡=UU O ‚©sÄýÜÌç…ƒF}ñêAf\Wã®ßñ^=°ÀY…SUæ ͷОÅ+N5ËJó¿_ âWÍ_uE§¸~+XæpÞÃ4ãªÃ¼ÈÏ»OÿWVÚ^ Z¯Àa˜^Ñò †ïX(½i…3Ÿè ã×.W½Zeç¦b *L‹j h`öXs øÿ묫=YËÑîïuˆMõ ¶0ç·›õüÐç¶>´"s#®´â×Ãìw5…ªy·xVl")™¿éàÉÐÙ¼:ó'’È9v¯÷è£\€Ð\)5ÓOõ[ÎȂδÌ/v1-Z•Á%Ü!#´–TpôŒS–A}Å-኎d‰µ¡ ÿlñ¤2p.æ; êñSjèwÅGA'šÌLq{ê„BLž:AüÓ]ÿת¯/¯þ€&R6f5‰SW&©Iî´” §øâ§>˜»æ•Æ–d¸'æô?´FÑW[‚Íg§¬P]%q¦Ì T?s¸ëX·ÒEJ¡¶Ûxñrƒáß0[Þ|°ë› ¹y…þàÒ0oi˜Êm |™C Ánh¯tfµ®Í‹ ¾ëÿ<äPù,Ñ›ßÁúNÁ’=„­õ°‰ù›ƒ“?—ÚEï%2›ç3p1PDñåæð#pºïþEÄÁS}eÅKøV04´¶ŽK¾!,¼ŒKuy³¦\³¾bD.èÚáÕÄñŠ †4òÔ{jcãY&:²÷€K«ºÆ#‹[|ôÐI¾n*›es+ØC&jçXÓøgÌ\ÊdÓ"b„Òqó[ãßdÖ€íµÁ#æfщ`Ë1ñÀ )~ÆÃe¤Ñg ^ð‰ÕEå7ÎV'}æ¥é,Alƒƒh¥‹”Bm—ñ"}êÄÄÊñÒ81áyêDrå¯\'^¿~ù’l>“{28ëµ7Œ³¼Ó¡Ù®o7Jˆu7—7å4G4Ïf+ÒÍ_\¶´®B-'‹¸º¡­§r¶hÿogbÚ­·vE×¢¸S6U`óĈ³è- Baox±úJOæ6o ~ÆË{ ‡;pšC8£10?£×œcU ãà6 #l Hž– m”¬™C:÷ÍøjDbpÆ—2Üx$–§œx„6q]ä2":ðQ3öŒnÙHìáÁÜŽK Œ8ß×§ø³¯ŒÀbû c\X¿4€³ŒP8íŸ4 +÷J³ý@%Û©jµö>ÿu³b’l‘ͼ|ÀÐêÈ-¡Ù´P™nè3‡™2Ëyù ++¸ 7Ùòß³˜g–kŒ+G(‰).Öë*X¤Ù\³Þ¯ÏLž:±×ßk™(¨çÔx_ž:ÑXtïfN´Î}Û\<’zâG¶vœûþŸ4°UוæÔ÷ý:¡¯~‰jÙÅ]Ú>€½šýa.U NÖˆn.æÝ”‹I´Wü7¦–èÿgï]$Ém£Ý•wüþï{¼+|̪‘V–üû¢ät'I ¸ÉºtuÏÕOÛ¿!ñ¿ ¼Gï8gNîZ—Ú3¼cóÌCµÁ•Ê÷m±¾Ä.NÙèR€÷œ JY?Æï9A fSÚìÏwÍ,ùër6+û0Üv1~Âý7ÎgXÞ×ìeŸcû¯qNèC€$ÍÛÕ> |ø÷É ÂD>‡Èp0r6þý Í!”ÂEö"±h^¸Y¼½ÀŽÉÜ’riÝø—°/¤_b2ÞJrt½aªc伃±m8,Ýž{ã Ù.öߊEqFÕ¨“7¶ŽÊÊÔÞq«s†ÊÍØÄñ-fp#oç]w¯C3)†©it±}Ö“¹êYƒ‰gbŽ,±ÙËϮɟµ¨Å}äg}brÿë“Ýõü“ uÞqg»?ˆÚqlâ‰Ï1‚Øá Çî 6›{°á_ƒQPÊÅþ³"ОÆ&yúo Ë´èÂÍËk¹k†þ='f½wSÙÔ3óÔ¹¬TßÈ—}áú¿çD*ôì}/!}Ï ×Æ÷«Kþ³çD½P¿Q»Ñ‡Ö}ãûëùØÀYßû`º˜ÀãM?Xürc8xÆø÷Bß%V‹múѧpò Ê7‡Yò+»<ࢯ‰ ûûf%Žá×Dw'£9ï'ÒŠÈö¶Ë8qÌÜú¹&xË{+‚/iSŸƒ!5¡}õzÚ,vé›ÔhÃ(ü°y}†£G]3øÊûƒ!”º¦Ã î󙥯ÙÉØñ¤r}ލs¿òrœbëX‰g·ä—Þºö^öy2{ï ò!–Ž©ŒªRW­$‘3;´ßqîÐ&Ÿã¬? 2ÖˆÈ7>2?‘Äv´ÉWõ:îÏàÃq½÷°cêdì8I.غŽÏZ˜Õ\Û7¸á·=sË©aZxñí±kï:‡ðc;2ÛÁï{žù{N¸Sg¯Çs]Ð#Û-ûÂk0ÊÁe±-=Þ6ó¢ÇŒR—~8‘ïûÃñ2K³­÷ExÞsÂõU5»(Ïs¢þ/€^a§È~á^‹Ø…?7«ÈMšO•‰¬6MqåðLüª7?;æíHÿúÓøÊ–Á‡htýI ¼O‡¥Z9(¨|¼­%»ø˜—¹Ûx“J(‹Y~ÇD8ø˜Õ3W0Wƒ*´­87E€¥Ï¯…Ù·¼”™ É[ãšÎšyó'–Ø9Çä¶1® .ÇF³Ž"Xüw=±!N‡ÚÜÅM/GÖ4– âqLÄ 7íÁtTÞĶֿuÆzrxc·jÅX¾7×ÔÃ<ÈýòËï|€²s"ñbuømr¯MôÔ–¸ÔèȵçÆ“«A}ùÕ:ø‡?Ôä¿.cäÜ[™c[Ó‰·ˆÁ”èøcø×šsh„ 7ÚY yÏ ×‚z¿ç„÷ˆï§½i2ž3L{G¥« ý{N¸} xWõYĤK¨»¸Æÿ¬s⇈ŠÃË çE|‡7k‘KŽ-ؿ蕸ô–N´Ä~2F§)EÐaV“žÃ͇ÎÄÙXluèqgÒH!› ÓØ CåÔ¹ðÉû“cÉþüÛï ٷä¯_‰Eyw¿ÑÏš>k¹±WÒ­8¹PÓÎk8¨7À“°¬°ùéU:ˆ¿=±ÑŸKz|w,êZK¯ÿTNë„‚µ¨Þ±šÛ¶3M]õµn†‚Ìzaf¤º²Mû3Njžº_û»LμÍe·ì™c;µ4³d5$÷pg¿Ì|ø+±\yç&]ý“?“sí âk¬öQçËX8blÙÅßU¿í/}x¡ÏBOñ]¿=ŽVø9XK}ÅnÅpÅ¢õpïöž»^‡³‡µzÖôYËSO§ÞYb½ Ê~¨6µz‚¶Âjíñ÷œH±º(tw™TÇ©¥qÌ)éÿäsâÇ_U€l.þ¦œ‹N áMSÙjrßäÎŽZ”^ÀÞD$^Èl4JÀP! }>oàBåªm;ô¾xž+.Â_ÕkVO>F~tgà ³Xî+ÆÅoè 4Í‹QjB¼~å¥ñ‹z]‰Kõ`Û=óÁ8xá ·ØAµi3'VôƒSâ¥ÓlõÄÐ'6’ýòËo¿ñG  Ýv ÆúØhòW.ĪœºßPå‘¢DÁœ&ŸŽ6틎-ħH—ßD hªßÉ#–ô ÝÎZ¶_Õ:º…C´u‰Ð5tmçy–ùµ>Šcû*ËÞøªCn|é Û¦úì<4+Þ¦xaØ/Tï¨jùÊ)ñ ïúŽgÁj²eªh½µ‘˜@{íë='\kï jçµ|ω½ïñ{NøãFóý}S÷Ôã9¡Ï°T:P8´n< #‚˜»1ðá£CÈÑã~J‚Ô…·Ëi~õ¯cÆ~šc½)`®á/_y@Ad×ë?óà„¦Ñ-ªî´“fAx;ó2ª¬t=r=šd¸¨Y=ê¦XMÄá`HÇmêç¾ØþÈõ©Á†7XĪc™ &½˜¤C¦R/9¢¿­ø‰Zç–êü÷=±!GER„òŽ;ùó̺N£uF(†¥üÓ±Ul­ôuzmäÚŸe’¼\KÑ?.xðÈ‘§:œZã<ü$KѰ~¥Ë>Ñ'êÁ%þô¯ßÍèpۂè¶›æ˜se#¾SçB™G†\ѪüŽÕþ>0Ø¿¼&¶Òt}¤Uö;êp¼ç„*¥zª&ï91û« ’ýç@ï9¡ûÈ7OßLl>c´‹r/ÖäÜ{Ƭ4j¹ÏûÏœ?~ÿÝ/9Púï×hÑæÆ†þéZ1÷âZ'{E’W Ÿ6v1èvp5§5Å·“[°à ¦C·{sÎ5N(SŠkâ¬GªüÆnôÈRì©T"wÔŽwY”>šÉ{IõςσLÈÑStÎ’Îñ¡‹œ±g‰iž^IyÌ0ç¹E¢šÙx¢Ð#Õ^®Ån´ë‰ 뇲Ž#Û?ëš:ÀûÇû©‚ü)>5Ø|–…_k¨’:8j’8²Ï˜G>Ö›3l·íÎ/{%ýªºŒ/ÒQ>ö4x¤½/ ý'6¬Àîydñ…>|Î'98w㹚‹0fý—¿ÒÇRàžÉ·ŒŠƒ½Þ©šñm?FÛ^&äýíelÉ]øƒ«yÙAé\Û"°àkÎ~$<úg›u3Æ|¢–Íï8ð›8á<ìõ{NTmºäÔÆ%ë}]û@ëñX’g]§ÌŸõžÊïÑ{NP³ÜŽÜ{N¥|¯ºð¾wþòKýà×Y Y èscxƒC1Íd{ž±l;vdñÁ ?Øå@©³ó¤õa§ß|Ž4³Ù˜íöMžùà -›x&^꟠Ãáz%V0Žéû‚DOÐ<x®¾†Å"™mጾÄj{þÔ[‡IòˆUúçe ba¤B¶í±`ezb=1ÇŒ¿ $Ñd8!P*r5ÈçŒÃŸÃ~ç[ˆDöÓÁw85ÈóIbKƒ‘¶ënŽŽ_:A. ûsL¬í7pÈsèa£º ¨6óäi¹ë!ëÂ?ŽóÆÜÜÉΜûŽÈÌ5±…Û8ü;OÇEÜÜ/±vÿä½ã€3²`GpÏ~À¯±ï9QÕëúÑ?Š¿îFã¶ÞcL²®÷Êe=Óšà5g h¶Õ+Óë‰i|( Ùµã'JE®¹ãœqøßs¢ ßõ¾Ï€Ÿõ#ßL,”‹ª—'Åå‚Îw¡y`®,Ü^°8ÿÞÏ">m†6 Ÿ›YRÑksÔ(¶ÆæPЖRŒ““9‡HìEv.ÄèÝ×¼82_ü vn˜€óm?ˆóñ1?¯¸æÖ1†;ënksuˆ±sŒ©]úOljòÚcbeN£&'þ±1‚«ãHO<û‰M| þ¸m[¸ãÇ>EÖîÕg ]ÇÄ68÷Øù)ûúŽ!7vŸ ÙàíË5ËX61Š|™Ëñ¶FòO|°*ø¬ñÄDmïš8žŒáã'6áÍ+è[>1Nhæ˜}zî¨óDÅûÀuE“}é½7\®??ÒâŸcÙ|fý~ulÖÝ6Ão¹kQìÙáäˆ8¶ÆfïYåVÿ&§÷œ˜z±®©õÌzìñ®¿÷öÞŸbârµ¬…{|ìû >–Éa÷¬¹÷hdÙ öï¹m¼Ìœ{¯ý½–÷¾Ïäa‹{|×¾†ë¼»Uq; ×´¢•½ãm òáã¿úœøñ[}€Lõ„Pß1‘Ðü>²'T›„íˆÃ‡¾Ä‡ÏÉ5£o ¢`Mêø›…C21ùSåÈøxepòB–gÌÈ1ö¨0I‚À-u×ï{Z„•s¼å»VŽ1ùÈ@†!ßɽۮŸ ÏÆ?v;§-7S®Yú²íÍfÏŸþcµ{Lv­Û”­©O=Ÿx‰Ñ!|³MŽ'ÄÆÚ[|0KáÊœ:ÅgtÆô¬ ø´ŠLCöMâD`Çíu³Þ¾‚]ü%‚ÃXì—NfNMQs¯=`øwKýŽœ§{´pF^3é‘3žŽÑû‰@äåEC.ÁTA]ˆ7ú½÷g¯Ø“òôp¹Ÿ}8~ø¶ïÇ|z¢ˆÞ9Á±›k`ÌÄôžS·«Z½GX-®”]½ ü阥Ûu60kTKßë“%ž}e°Þ{/Œí{Nìºäþs­sMý˜§¦¬× ýùC@wñ̳~5É7: æE ©-„Ó[Ÿ@÷Bg!ªBìÀ,›`¾™Go'îÄ(>‰[òaœ˜»ÖÍ8\ô2p ø™ëèÔ%ù½9âsäÄôl{á&.£¬#0eæÔš uzG!œÃŸ¼oÛ¹ûÙ›‹\7.|rˆzjëœò JÒ‰îjWjçµÁŸãM¬Ôñé/¯jár9 œƒçÃc¿ ýV1£´ÁFR¾¯”Éɰ|'}E>¾Â7dO]^ Çž6ÖÑÂèqüÇnÞ q,àü·ˆÝß$en~­ÓLÔc·©?Òè&~c‡o0ŽÛ÷ vï9áZQ;êuïëæšõõúDþ´Cž5 †þ='ö}’Z§Bï9±÷QöÊç9¡xƒRÛ«ï~85û°¨ûPYvü[#2½±ÚÀ|Õ*±hReO·ŸÈáÆÓYRÛiÚFr¯hƒ½’¡å#qÞq$C}º]'?¸“Å14AÉô;ê 6±˜ûÜ´‰$5Ѽ.Ñ3˜î‘b¤g²‘%h×ÒH¢úpÔñ+—½&6w•s‰wìãí]wì㌱[â9¹Iœ9ß®¬bè@L¥ë^ëÍ&Yh_Å6¾zÍlÎÑ~«ÝäÜuÀb“ä /ˆÒùËky’ê:K‡=ÍñM”–óî&£bêã“Ð’¶u»¶áà{¡¡&¬I{8b³´]ñeÍ;cKWˆ@½b·ÝÁ/Ö ¸{gÝÞs 8O¦\§Ü+½¼ª½¶…-aô ¼ (îKRʬ€×©í³–,Î÷œ¨šUÕ¦p®Y Uýgí|Gþýœ¨ÿ €êðí¦Í9S õÀZ>‡Dzl)V62šŒEÒ¿ÄëÓ¿¾i Ö!©Ÿ cÃËI^ñXãÛ%~}û´ÌuõÜøŽQ±öŸ’-ùç`>Ûº“7|ÈîM‚›ñÙ<‘¦îl…0“5ñ½­c³û±InãÍñÁD”èçCgè YBoàÙ7–ȳæöký-›ˆ,ßë2º{D<ŽÁqŽ_â –ÁäH<àüA&0‰ƒÞ8w36WöÜpiíjš8àšûÈ~ð0±hÆå«lä>ñ|³ONö—dKb Wã;<5ZÎÉ ß´ä¶ç¶.ÜÉ9±Q3áxω©‹k9sªÝuN¹»þ©mÖ¬·£–G{í¬œï9A}r¨4?¹PûìÏܳf]|œ)õÿÜs¢žÐ¼±ö&Q–hNÂTè@ÅÚÉÂÇœŸ»2NËᘹ¹ã;ÒÙ¸–dQÒo}b™âŸv°MnŒsmö¤©)>ÂîO›¶\XKü#çû‰?ºê®qÇwô’1ÑR9^Í—²¾Íãñ†'ß­¡¸ߨ×Hе^ß[Eã-¶2>z&ÀðP®ÅÄÛðÑg{&×ñ‡&>'ü¸™¿'µûüß Fvø÷‡;çžÆ÷ä‘Ûs’º¼Â¹còkÚ<–ÝþÉèøWj7IÚ/~Òö81Dg~8˜v. ù˜Øç™ö 9$¾ÄO>´È~uï91åØuÛ5Ëú€yÖvÖ˜îѱAj‹±ò7¢f#²§|{Sm=¦…ÑæÈÆÏÍ“þƒþC˜¤hç‰jë”|ñ§&„`[Ñ)R çLü7Ù‡þç¶&Ž­½u'®ñ™üw<‘ñÊ˪ìVk<1Ž.vÅ.+ú‰ß2ìýéOùÙ±©‰·G_êqcÁÅÿçX.Í>ì(ö'æãßfŽ›˜ñE¼–s=µ5HzËûÙö®Ø$âá?÷¢¾Ó®xì^JÅÛÀv«ƒs,{T>ÞsÂ…{ωÙï9ñ<3¨ÍºÁ¦T}¯ûfûï>'~8€ Ô_'L ‚èyFYGëuX3'§Â5Ïæ¡éÓL¡ dpëÚcË4é ¿Zä3;Eµ1Ø^¶  #”?ä6þœ×Ø’‡ã&öð%/Æ´`kX*?×ñ“t¸Q\üZ„LÑaÛïxÐN øØXë5Â~Z¥‘Ìhã3ÞÄ©ŸáVÜ^'bw­2¶ZUþФnëïñä9{ªùÍ²àÆªngˆCx.u¥&ð9Nô®‡ó¸ñ®Ÿõ^òÛ3ˆàôʽJŸžµ @ñ°üEþŒ/4Yá°%/mx 2¬Æ"h§mo,¹”€¯÷œ¨Š~öÔ´jˆV×÷œÐîS-NÉ\o|o²Üßg«öÞ£Šï9A1¸ñ¨NÕîï8'~h'b×»Sšs)®"ãÓü¹ï\cägîÖ¼³8)p~ejlò _\å/þå¯í<¶Ÿq|\Wƒ c’ñŠËÝ 4w?°ÀÖwR?©¹yàˆóÍætôùu!qà2Èì$hSsõ8yè‰Â*ŽNmQØ_›«SŒ—X ÒùÙ.¯Üm?=ÐÔ”ìêVº¹õ#‡Æ§n4=YöËÔÄœ^×+€µóí˜Î—ÙÂWêe^p-+›“ÉgM°Ž?hüsnd¥ç«‚|8bèKÖ!{Ô뻹Î<8<ÄVêCZÙ8)‡Ö@KDSf% qáþð”â4ŒiÛ§ãªíÜÍ„âmnÇ ºŒã¼;‘CÕƒ÷œ`müÆÜU;­«Ëî}ÄØE{ω³‹T ÞZ]tÞ{ï9á:ûþŸxNü8aŸ2z Ø'ËQþ¹Ÿ…Ѫ±LZ'äþ™î×s)àÕŸ{û2‡!W Ed)süï¹Á¢’[Ä·?ýLÌ}ØË¾€ØÏ¥=Èix(]c”¯>õÕ:°5w=b(ƒšl®èþXï08¸áð·ØúÛ̾ã7¿Ê sXø“ìõÚyT°¬àbìKØñ§º‹Ž šî׺ˆ4»IbU0+`ñŽªy¨M³æaܹúyIÌ¿Óo»“k}ËŒ7߯ÎÁ½|¡æz†¤€¯ó®¢snÛhq”wÙVßO²à´Œ‘½9c-ƒ£²´ài±•.õÀA‚&8jGãZzŒÅa´Ïº¤Æîm'оùÞsÂuØÕùãc¯5kNýÍ5/44îÕV¯ÛíW«ÚûÂV¿çÄ)›k]%JùJCÕR­K¾'a(àÇz (>Ý'¹åtsadƒc£é8ÿgŸ?ä¨/¸a˜Wé §äåB¡ÕÓ´5V4cïñÆZ3*_t©¾¡}•Å‘¸æ±U"Ò£ \³Xø†‘ÀºqôÎÙŠöæg¬[|û¦ çѶZñ2nß^÷²¹æ±úìýsp“å¶Ç"P¨º”aaâ§iŒ«Im:Æ“ãö3lºïØm·Ær]ùNgÂpÔ}u'#¯a :|üÉr!tW¶ôÆHh¬†ÿÞÇA9š™]#|–¹rE1T«VÔ'•­§?MÒ£ó~³Ì‚®‘«ž'ûØÑ|å.1¾17n¯õùlòJsEÖ† ¤Çý ³gtâµ-ÛmiÌÅ|×W1ÔñaC¬;Nó”B:÷\õ<ãµF«¾â±´uvºE5î}ÒR×+¼"’†1·g˽n¢°®Ã £ðM5ã›;œ3ž–‰ïÆpFì©ûö–Í5Õgÿž]Ù*wjê*MýÙ#¬üÞÇSÉàFrF6óÞ@¸ÖDëÎ\¼}ßiŽ,Í‚†OFM\݆9ï“| hø ÞÓH½ï!†°»¦åœøñûïç)È$°w ¹–¡lO¼f:7zË`£WËqóv4Ð×п1à`•py<Ã)>‰#›u—¸¦’„ʳJ¡¤–O±·ÂòcÜãz½çDÖ%;jæýÝ öžTfö‘ëÄ>£!î9)´o=òÞÛ°ÙÃFä3÷U8Ó‡i<Ž$± q˜·Îˆë‡E옚³äzG—…Ñ×<És¾Ô|lN¯#¤Í“„ŠZmá"ªþ¨‘ÕDLMw`5]|9òˆÆõöûš½æÍ|óy†-µ'sú/4:7ä;ÂØ8PÍNMÀE_#^$?L'Vp5«nü”è4øQZÁ:8Æt%Bê¶ôzÁmÌ{h{¿Véé3@Ã×¢Þ1ijú~[XmûŽP9!/®­v®ŽÕ1¦©3œ½xïÉä˜HhlÛ]åj§Ç¯"xωTÍ â¢»¢®#ò÷œÈ^ü×<'ú×ëð:…·HnãÜdÚ,}‡Í³œl12ÚVm°Yz»õŸfPÍSSª ÞãÀŽŸ5Ä*¬€~¾-¡Á²öBüèyÇbt…Ú¹š·¯1­é<€pl"ë|(É•TÇÛ‰C–\ZuìçõÝyöäÌМœ<±äYk*uñPòšºP¯ûÁ¡0UGì"A/ªö,‡%8y"¨I²•ž™¾Zº•!+/*PÌÒÃòitAÞko{ç}øëƒ®Eemç#Çì& ¢t´ÄîÆ*2Çö¹Ol›4T#ÌK _C!é¿ÄÐ~µv-:÷kÍñш¡–|¦…oË«6•´5fé‚H& \mzü Û‚¦›Er°e¿×ËãC"#í¦cPº=nèÔö='>ÖI5ú,ÚG­Ù—ZO.àYÖÏ÷ 2íµÕ{NP©ÚïU¶ÜH$ë;ˆ™ö1ÒÍžGc[•\÷2Ú?÷œøñë¯üÞÕ´ÈÄ_÷†`á}Syу{b2„wò±¨~ ‹ö§xLÊæèÛ^›ï$õÝÔ‘Ssý<ãÎÄÝP`LóxäQô‚eႵß^4“Üt%sí:„yQ.4ŸÀïûºŽ=’"—âô3W;›¸S«¬×!} ¨Ï°?âo¬jȸk—<¸¤¥ÐÂLýFÞª‡ßkÚk&Š8  œ¡>yÈ…eþ­(sî˜,“’Ÿx,s± ´Ôε4ÊúK/¿1î:ñª˜ê…’g“] Û‡-¬N1Hi™üÇMÌ–-«ÅÏwf_ÂqœÐPæÍ±cgÿ¤AÚ¸‰£ëk‡£OÑdˆŸìÓÓ»6OÌvø kÖ;¦ãœ0;ÎÎH9Gß9á{ÙÍ[™6ù¾çÄÔqî½âšm=cÕЩfK/½.{eËÿúššPNzí³ÀÒhÓÁš}ç$w÷Kïcmpû?XQükž?þ¼>@RVÝ75ñÁ)iüæ"{!låÓˆB·®>_)ü„ºÌ®«`²-¾›Ñöñ~6 ûocƒ9õég#b7U1êÈuim^!wÙ€òrZ Ï(ƒÔ¥ƒüº‡Äg:´&¹ÎEq•Ï„b?ÖJ¸‚×A º 4? „J@pßЙKQÛxøÒ·/iN à5IÖ-A1¿jsì3HÿÅ×c¯€TFJ Æ¥ÿsý;ü›BÀñíë‰ÛãÉÜeÒùÜû¬ã;αè=UõØœØDªYÉôvV™$­„æÛ7k¯¹}5ÅRS~ä/Uãv©r£?û{ó—ÞÐÓŽ cÑã+RĺçȾ5çäDm•XïšÝq}c:2r a [êy€ÄOâ§"Êiá‚9¢÷œ Jg‰©Oêga¯kìà´.^Gd ¨³vɵwN•ïÁÞNìg²÷œðn?%÷àœõ‡€ê¤êè•8×KsÿÛ‚éfè^kóXÄsÓH7亵níW‘î¸.ŽÙPÙ$ôÞ8ë¯-†èjØŸR5·bÝÈÄÅFr)¥Å“ä¸MÄ,8Ú‰Ij³|]`SÍo­—]×Q^v|@çwÉlÔ×Ül†›Ðµ†¸¾Ëý>õÄEù’º°ðßP±2N}$è‹ÿüoØÈuš×”¹å÷ß¶eogý6ïáø:À1”iëá´{~¼µ_°„ëœøñkÝ´¼‚¤hŽÍÁ'ðö© -Eˆ­nÐR¢NâÂe}ùUê¶t Iâ›/ÐiñÇœhÕ쬋¢‰å«=!l;F:iÇ'áaŸÛrçÛ·L|Æò¬IêüidiÆ ³ûÄß×1¶êÖ»®®žhKÌZñŠ>CQ Å[­ã¢Îº˜Á cÚAóe–ü‡¢6¨?y(‘ýÀЭ‰c1}ö‹…~lÚH²lŒìêò‰GãÆ2çg˜ŠA5_hýxnÝ¥ &(X"¾ûg{[ÝG­דlÏg%ª íMOÄú§{ üä§¼AÕ·6 ¡ø·HBÖÁy!Þs¢ê s¬×¥«s¶ o!û¼JøhÁd5‚š¼çDÕ¡êú¤È©Ó.§·g!ûÞ›.&Tl öÑÒ«™(3 eR+¡Þ¶(O R´@$‡I~äÏ;âp20ª® ~˜œ8ÛÛêrc.1q|mòŸŸ?þ¿ÿøI(4²]á£ã™üªÒ&¶‰%f«wHWñõ3Lqù¯ v½>qVÆ4pØÖ—Mznm ÏDþ4k;ÅÛR0ÇÃÕôÊ…þ[#ÛòÆ€|_FL ‰€Aƒí¶ciWêÕO2ž¤Ù€ÇîæÏ¡ßrì)’~sèÁW4åµCì¥ðséü"ÊŽõ°zîŒvXÌœ‘s¶v”5š (»¦&ýÀCðà7ÌuDæØÄ‡}%` Uhi'‡œ¶§•À¯hDë33û¼9K›¸Ò·An¾m¿eŠ+….ÐĹ-jœdâ3={ÀÉu€“yrÇ¿èЭ:xÍAâ’lqAr‚Nðö˜ù˜™_òä„rT Õ½ç„K5õ¢ÆÏõVkøžÞá]¯Ü‡U³³Í¼µt?S²œ ½åJÉÜ+Èh\ßs¢þ7À"©jÕY‡ŸJ¤¢R­¨ªuÑÍ]2ïæS|æ>4ãbú—,T‡£YX Z³drW"nð1‘œ 2# œoäz…Û€êH!í MVØ~;Z°1ÀÏ1¸e¥¶0£ãÛ¾uScwlK…Vœ¶Q=z’¨-š_ùî(äv*€¾xWMdÁ\¡Åª£TÌÔU&½ìl\WèXGÒˆoy, C˜Ž 8üJ^y©õÒ(.;&ÆyÄ´€5±N¡ÐÓBƒPu·XòüÈ(X«f&[â*Q°âDŒÂuܶâz<Ú’Æ [ï{[ïCýÑ•:-Ž«Ev(‘UªŸíJ¹ßÆX†ü¶C3a[bšÔÍѳ†ƒoÓ ÜG„‹Rø«úˆ¾.ñÓ^+Þ&WAñߺ÷œ ŒÔ±ëZÅa~´M c›ž`93„%YzÁ˜c ‹$½'¿çDj9•ñH«Rkó¿ùœø‘ÿ NÇk6†2ö¦p’9¨œø¹É3-<›,ùØ`…óþð˜ÏÆôáÞ{³Ñ¾´'EgÝSøºë.jx~ÆÝ±AXƷƳn6݈òaT×$•&læ“^³ûr|A”ôª5ÂDÄм:PQ­_Y¤¹N|.Þá!Ö®DÉ܇KÙ<áh€ššµ'%BlU wqZ¤Øm/VaÄ„ Û/µpšAÞXaSß rüVŒ%ój¬:"ÂI}ÉmûV6¡/½†ÑUïurßôâ’#øZßsºsI,KΗâ1q8¬¨³úVSñwœ1ß1Ù²5ä½"gþ©†(êËõ§<¶LÞÜ<.['WÕ®”Òô%®°“¿´yZsû¯)y„GZ_0QNÂ2±µb_±ƒ†Šøhê‹Uò³Åo)Þs¢+âåP©—ï³*ÒÙo]à,6õS¥A{Ó±-;Æ´£=\³ë쌘ȇ­Ù L‡eðÚ¯á< ßsâù¤Q÷e¬¦rzøËÿ÷¯[”Þ(/ë«¥)ñZ`@)¾4¾4ÕµˆªE*޲Ó7 ÚÚ)Úx-И;ô<”Ûæ’9Ã+A.€ºÕ03Ù—øÄ ¤&ÑR ÕÞJ^¸ÔkªS b˜ PL²Ç!ßs6NçR8q• ñ©|»VÂë,¨ÄñYÀËò02@ñ!)®Ì®j>t 9jÁƒ+Ó]Ɉ÷;ª§/MØcsIq_¾éÚ´ë ¾×¿M{׬˜4ââü”çñ©Àm©ûs+8)^ýì·Ç™C[૓넪ӫdO¹Úµ²=eo¦žËIq9žè0Ôgö H1ªßëjì²+ßÈÈ3kºCuTíL”íMdø GzÁÛNi+,¼‰m-s,b\ÄþÒÇiçGGmÛP&hüž]¯cê–2wåR±÷œHAªïŠi”ݦºõ&Õ~¯­æiiRToúëløßvNÔâfòÂʬËC¦) Cßp*Y©2Cn•±¶’©)¥7Z×àW!}CÇmÌËÂF㯤çñô+6Ø'ŠêüôÂ*æèú-èÐE̪ã뼲ƶ µ)Е'7Fñ]}û@ ›c?3“7ø®Z"¯o–®ÆÅˆÖ#èrjؾ‚tK–ꚤV.9àÃ/†òOΑ~²µ-üñ%õÌv÷ƒ¢±Î»€'ÿ’ÖQ÷³úž«ë<åÙÁI|Gañ,ü¶£ö |Šç/¿üÚ¶’×X>Ÿñ¡]µ³&LOÏ´šËX0ŒÜä#qT¾Â³>u/‹Æfý³ûÄ&÷½êU¶Û_öwl¡~‚”eAd¹Ö{䄚µsˆ³w¥ãbç¥7ÚòÆ££ÉÞzÍS+Û‘¹%ªË{NL­S“ÔøìGêtV)Åí1÷+£ôþÖƒµ³¢^ôˆOž[¬ UÀ½±*¸Dí}}mÔûÌÉqSîN< /]Ï5NŒ‘õ~u<ÿûΉÿñÛœç*DÜÂ3N¹½™EÝG‰ Ì£–¸T~o€nzjº…(<Ï^‹ ¶¾eóüt^Û®Œ°¡Å¾O#m oë³›´Yz¯‘ƒhñÀç†n¥–ds´Ç;¾ËPñ€ÍwÉbšãL±wúÛ mg¿àK™¢Æ¸”zj'»<ÉÃÂõ ]bHžW¬;ÛøKÇYO ;4Ç IKTø§/»]W¢)ÿLÒ*Åri&*Áj‰SnŸ¥<œ«ÄüÛÏØœj üŠ]¸¥mB:ä'lh Iç¬u ¼_°+ŒüˆT™¹F\ §WÒ{^W»©^ô…Mn`äˡԬvVé™¶ jÆ50y ‘è¬_/a.›âÉ,Pç×;ü='ª,^½©SØÕ¸JË<ßÈ­f5]Kôž*‰ —šº^]´®×©kコömî%¬Ã‡É™ëþýäÞÈ6‚Õ%÷WæÒ5Gë°Ñ=üL ÿÈ9ñC ò{‹ f'Vþ®¦Cª$l6£ {¦8äXѧ,+Ø­ ¡óY\zû*'žƒ)ÜHÿZ\áÜýØÄ²¹Ëíó8²”èӆñ%÷­%f=C¶ŸØ¨ç•5ƒj×ÿ8Ub¿¡k ůáU•$r£‹ÜÏô1½Z¨Î-ä‰W9¶þŸü^C6š|ÇVvñ\Ô¬Øðw/M–öIµðnÅ’_MÃNò¦2SG±\öÞR,¥&ü ߸svñK Ç_Ç"œÆ¥IÊ%ô~èØäHfäþø.8 ¯‹ÿÎBCýOÒ:½Õ14r0â¢fÀ;·QK|$Æ1*Zrd’2–½B¥¶ V9ë‡æ]‘|¹Ä§ÖS¶U¬Žÿp•|T`Z8ãgq*Ö²×{N¨ŽÔÉkXU©A¯Îªš—:Kþ3}ŒÃÑKtµŽ-|Ï ×”«î³Ô…}Ë^fÞ²ìYòø9ñƒè•‚v 7aï#Sf{_±ñ(-ÀlÅ9óê£ÐÅñp®âdz9UÀv~>© YV›¾ø™2Ϋ ½1Ž$‘™WeÏJ˜k‚~d9€¼ŽasZÉ(‡[¼üÛã48úý×Ó°F[3Λ’ŠØ§ (IZ ¥…7(/›çü3Ÿä­k}ÛL=N¬¸%g¯Wù£ßi H³²>'Ætßrg¾~ön×gÿ¨†§ˆ=(î†r‰µÔBpQ\ÕK&©„ ¾$ÄÚz¨6¿ë­{é?ØÞ§¥Ò¯º–c|ÀÆò[6éK¤±÷K[$ft…ÕÜußDj{ùAY-뢘¾Ž]çUdTža øªï$!ÌK!¹†=V2hï9¡û£kA÷žï9Q7²îÿIçD½ÀÛ­ ÝèŒK±¶$/¨ñmU'Î(êÌÆ×Á““£ ™ŸÅö<æò…Ïœ:¸È Æy·€éiÚ Ž5íúoAwä+bÅ[b¤%ÖàZÆÁêÃÛÉ«ŠT£¶A]ÐñmF­›øÂ¹ý‚¡&zTÆâxrïëÁ˜[ — =þKH6ôßátÄößÑ—®G²ûsˆ­™¤?¹È1uØ Æ O¢LÖ$$b‘jSã§½j×1ÛCسF׊ú.Ա݅+×Ñw@4ôÕzÙ¦núasí æí ƒàõ„•_7¥–¬G_¼¿mþã;DÔ»ìb*M]ÇBŽü£fñg„“œÀ¤·e1à6•æùÌF»*ì¶×XfGk~³+yâAí='R Õѵ´hªX5î {EÖ»Zö&kûžU*ŽjÒ{ZEê‹j×…Ô}Órí`õ_ûœøÁa®}–ÝFú`Ñ~ëMçºùÆ×xãeâÍÙ5­_­ïß­7»"s¼†}0ȧ"9: â̹>â’Ü4@š¿x4®9’s#É|ž5²u¿*•†KÙ f>®ùpŸ$ñƒu«LêÊOh‰ß³¹fӆ漡AC“Ãüœßñl^½¯‹b$ïΠ¯êÿÑ'6Êø:OøÕ$²ÿ™÷Z»Ô¥‹¦Ø›&]ÖP¨lû¯³š} ~ôÔ¾œÔH^~˜²Þ‰_•D(-¬[2ÄRaÌ< ÕLxQ›C¦Š—‘íý'€ý hÞðƒ¬|‹å™ÆŽ¹8‰IüÅÐã`I+˜•øæ Ž>–»eŒÇ= a¯£®#š=Þtá½1“¼b†¯rkc§F¯^¡/}ü3oëêžÑHE/µf[ƒj…9O ™6\šñÌ…Ó~‚¡Oþ’ÉÊä®1Zsï8½c‹gÛ‰M—}/ŸÏ&uÞsbÖ_ÅJ™T¡÷Tz]Þs"µ¸önïó-»÷pªé{!÷Ǿï÷˜ý þÂ{cþØ9Q ØÿeXHr3ÕCer©~9ÌØÚÛ·ªÜ\u'‹™‰¬gü .IþLñ¥VõŠ}⥄>K"Ÿ.@‰¥qïë](Ëîæ:ü–ùÃŽiP{”Úĺà·,6Þ‹ž¡wœ3/kí±ºê›gèµ´g¾­1vÃ7±$.à='¨RÖñ{NPƒ¹¨ í='\‡¹þ÷Ÿú ‹åÿ²Õ›×.78 iù"8CälüûA›C(Äpøäñ™}§}zó8&sS²àO¤)¦ßâË&.#tHŠÅ<Ð1ÚÿUmlÓoî‰ÓÒñ¿\¼Éðƒ(cåã°¥¢NÉчE”c3üfc MÆ÷-fûf}¹¶ÎÚkææŸò—qôµDþ¬Eý¶†‡’9'볞î÷þûîÄõu½R·Ô!5çqö‘qÖ}šã:Á­8ÇXâsŒ³¦Ìá Çî'¦Íôô'Š º·¯ð[XoÖ»^øHžþ[w¢s,Æcâ‰#æì÷ï9A]RÛô©Ut{ž:—UÙí5*ûÞÒé¥zωԈÞ÷(£÷œ  Þ/¹÷Ý[îM”1ýÏωz >ŒU‚³óiz'zãÞZšo‚ÙØ8·ÌúA¾ƒ o’°/´±ðßÜfYô)óX“Cò+;½Š¯¾ÜTY+1ao¼côƒâÏüÏË~õ³–r¦À‡ëŠßg›¹Ö·%S–æ 5©|u ƒÅ›Ø[cYÆô£¿×{ûËXµÇ݉‰ýÃîÓç®ó·-«ÂÈ8ǃdìxR©ç•%ö~i“?¶à¼/5éKlÒ[ÜÞËqžÌÞ{ÃÜYc£ïZ½9] bD––œ¦ÖѸOìü(hc"ßèȲ_7Þ~É{$†ªÑð#†~×+µÄ·Çø›…¶Ãj"X½cGcÏßsÂõ .4×zK}½Ê[¢ì‹B÷š¿æ¸0ÐöB¹AÂA©ù&I,±sŽÉmc\LÇF3±A>¶ç›Žm¸Ë?!ôr?­<Ô¨uì£ „Xœ<—b­sÙx_Û->F¸k^O5‡‹¯p0¶¹¦žfÉüw>@™R‹º.†¸¯øý6¹×IþK£|bØþBdö)A¸ù§_­›>|Á)æµpÚCP÷VæX›¾ã-'`äªýÙÃϯΡõ6á­ÞsBE¢Þï9áý¢½íêôFêó¬÷“·rí%¶Ó{N¸]7ßaÿõçÄ8µ 6^¸^«tZ‡ƒˆcäLZ¿ÄáÍÁކ­c= ´LŸT2}\@|eÏMFóaV“ØCƳ¾rF #üg“‹­2r\É¥ŽSÅ)ge÷çß~~Ǥà£?ЈEyw¿Mž5}Örc¯¤[qréüõFrf¢|~z`©†ßŸØhtÊtÇ·Xû’’Pgü(ÞµNÌX‹êý+ Ej;ÓÔU_ëf(äÔ3#ÕÅQIÿŒ“š§îŠ8­LμÍ%_ö‚Uñ¦–BhŽ ¹‡;û`æÃŸXOL£ØˆCzüÖø×?ù39מ3ëµVc,1¶LŠÇEÕoþKÞæ’®däpýöˆÝ)^üœºm2ìV WüàZÿ¬å{Nì"zMÏò{Ïš>ky€d#gñànÄ{Nh/§^ÿÊçÄ¿þªÁæâoÊé° 2µYØÞ4™Ü7¹î÷RÉFÀ:ØouѧÀk£éÀ@Ö8°ó'Oq4MZáNËÞ=>ŽÆƒÒëÐQ_"üVÇÿ#G€LW œan÷u¨9ÀF¶…’)Mó‰(5!^¿òRzòCøÛ_üäWç˜Fî`g¸}À y°;Vôƒ‘ž©µý[Ó²U-¤é'6’ýòËo¿ñǚʨí ɱÑä¯\ˆU9u¿¡ÊƒØÅßšäÒ2ü¢}ѱ’ø”Céôkz ª8ªãæœH7¯C±5FµŽN)Ê¡ª‘w±c>ç§ùµ>Šcûª(êI©2Ài©¬¿¬³…kÈ8õ¨ì0µ) ¥<àµM+Ž~YiÏúRjÜ×·ÌAw[¦ŠÖ[Ù» ½Æöõž.3uR µjMz¨~Ô¸×è='¨EöÐìuWѺìÃȺ´l8µÜLßs‚²TUo´ÿì9¡ÏÀ£ÍZ\!Õá->05Øð拘;P,f‚I/&éäR/y;”ÔµÎ͵(žü}OlÈQ‘¡¼ãNþ<³®ÓhÄ F8?2)I SoÿX'éÀÒûÃ#áí½šmÀ¦1 ”|£r~’%ë¶Á<‘Ó°.T\ÿúÝŒCpl˾­¯  \ñmI|Áܘœ}.)õÞ2pfAn÷¶»Æ`'Z_5Œ§cÜ:ºÑq—܈µÅÜ͆`•GŒûɲ!…Óþ.õ{NLý\Ç÷œ`¾çDß;º7çâ~›ûÝ7Ýß:'~üþ»N/ݼúñyqC¢Qù1‘]Îuˆ}g3ÏÁcûŸÜñ çÕ|Á)zÇQDæ*5îÕzP)£§¶]0‰+ýoy»µ»ØS)¢Å«£öA8hp0ΛX'Þ{<ÈásÀï|ƒ÷Ö4›Öxõ5,É‚Mœ%ìzû fƒ¹¹‘o;V‰7öá6ŽØìÃq9–`ãáÉ9zÇgdÁŽ,>àžý€_cßs‚}æú=ÏV`Þ:l³®Y³ôì¡kM¤ðš³4ÛjÈŒ•é‰õØE+› vüá„@9ÉÕ wœ3ÿ{Ntá»Þ÷³f¯'õ®x‘Q¸¨yé‚Îw¡y`®Þ\^ä8þy?‹¸üðφAž@O36G ckìlÖŠT1NNþýå"±^Fp;G÷5oŽìg¹îÜ0çÛ ~1æ;c<ºåõ3×ÜrÆpg=Âmm®1vŽ1µKÿ‰M­àO^{L¬ÌiÔÄãÄ?6Fpué‰g?±‰Á·m wüا±ÈÚ½ú¬¡ë˜Áç»`©‘}Í ÝgC61Û—k–±l bù22—ãm¸à˜Ág'&êh{×Äñd ÿø?± o^Aßò‰qB3Çü6‹ç:OT¼\W4Ù—Þ{ÃåúÏÿ)àØÍõ·®ŽÍ¨ùÆÖ×¢2ÍæˆZýäÈ4¶ÆfïS¥÷œ >Ϻ^ÞÓÖí5Üãmëýa¾Ôü,bµ¬ÅøØ÷Á'~݆ZG–{âõ^ƒY¶ý{N¸ëœøñ[}½Ê×Å«^Õ¤€¾±kTºù=Ã!hœl˜¬Aƒ…ö‚äh;¾]!Êf0iø‚fÁs°MLþT9>ÙYO^ÈÌñÉ—Mé\“c•®ß÷´¨®¹AŽ@ƒ]+ǘüQO ¼‰qÌgë±MM.þRÃYz¸Ü&ìáf×%ùÄ*¶Ž‡ÙÄ6rzœ‘×LúÖ¸Ó5£÷ÈË‹†\‚©Ûºoô{ï§.rQå™IÇ7|öáøSSƒw=b>=D‰Ó¤É=×À˜‰é='¦n©ýZ_/†”]½ ü阽°ël`Ö¨<ôÚ{Ï0·Àó{=Â7Û÷œØ÷Eî¿{Q¼–Oó,-ýùC@,þÞæ‡_Mò΂yѲ0¶{'Àô{¡qül±·|bI;6b5‡ûp'F8W;sÉ¡ô]a×8\ô`Ü2øÌ5ž‚¤O~côöä›mr‹m¸Œï¼KID_uú ¤Ñ›?yIÖõw÷³'6 j*|qÀ×í·‰G%Ê;-¥fèï93¸‚ñÚàÏ6‰?OyUk®ÎÁq ý3¯n™'°iå{O‹7O¾œ»c±?Æ>„ãø ß=uù¹7rÇnlsÎŒSãØÍ«ÇΔ ¬¿á³~­ÓLä°ÛÔit¿±Ã7Çí{»÷œp­¨×+ûc×̘Y_¯O¤O;äY“`è}Ä6ûȈ÷œxω½²W>Ï ýÀl”Ú^}ÿóûÀgsõ>,ê>T@–ÿÖãˆLÛÈ]òU»•ÃB²ìéö9\Àø`ò–Ά÷¬ä^Ñ(z%CËGâ¸9rØÚ®Hq"?5”O6t_ýŽº‚M,øÀ3#Zj¢y]rc2Hª °ÝM1ÊéB*ö\œõᨰØv{Ml'îÆïŽ}ü²½ëŽýÄb6jé‘}Fœ9Žß®¬ìÚ8fÕïµÞÜa’…öUlã+¶8Â5<±F«½Q€øq°ˆ7yÂ˸tþòZž¤ºÎÒaOs|¥åü„Q± å_ÅÞR cÝÆ®­ñÖû^¶©º»q§MŸ5ï LQºŠ sk`³üq¶©Ó½‡SÏ÷œðÎÚºN^Ïì×^[‰Ò–Iô X ·»ÆÈbcÌBÖ0kÐÆÃùžUâ*r¶nhª÷­v¾¿SÓÿëçDý_T‡o7m´™J˜Ã“>‡Dzl)v44Ÿÿ„OÒ! ο-eágItHúãVöÕ ±CÛÄÔ·OËŽÏáE$¬bí?%[2òÏÁ|0 t;:îÉ>d÷&íf|6O¤é+scȇ‡‡ði–—ØøŠï]«hÅG\Ååè¿•†Šø}bÓ©ãr¢­qžUáô¯5ÛLuâ6+õ’¦7¶~½¨¼/Œ ÿR*pÁ"Èšzƒ“uõ¼ËA^i^ëÌà°zïØ‚ò¬‚·i½;¢‘c G+Õ̘‰Éëîøoÿö–ÍM¾{>÷®yáq]í7Î}×`ÇuP§ö‘˜lj‹ÆõÕHõ¯÷œ 6S»=JT5aXÇ÷œð¾õþLít籫XÙÏ®¥‹ûž9¿\·Ô†ú±Ï~ `à‚úÀðÁá–¶Œ÷«=·±pY'=]~à̃El‡3± ‰ÿ[f :ß,‰1xú‰oç—ƒ-1clž§ýðŽdnñmÎûÁyø‡;²øšùÔ fÅÛýé’Ol>="]âð4q×û ¤Nb¯‹ýù†a{J²,ºŒs/¦¼çÕ˜û‹û5µÏ½ëùùSÀ2°×*aUøšPÊu™›ÓľY>±ÆÕ/çÝ/`ÏÂàp1fÑÝ+žþÔø–Y>‹½Â:ÉG–bÄÞ}bÎ&º¹ϵߊЛÛ‰ycwޱ>ñL¿è»ÖÄèfLl‡Ü|ÏéÿíÇãH'ò ^S_ÝÈHö[úÚ\9õP¶Œwÿ>#\!TKëJ­Îä¶_â/ÃÏõÍzì0œù½N–›§P…t$áÁÖñg=­?|L1£õ‚Ç6vù ƒæÚpÕÂØÑ1Â\á»eèËÎoª¨z­*cÅøä¹½ÙŸeNè='ê½¼uf½ÎÚ? XuΚdí5Km{Y4õúz-ƒÍºÇÏÌßsbvøÞ¯®ìϯìçûq ÷BjÛ™ÿÏ9'ô#胒?à¡Æaµ*âCd|ê7›6 ¦÷¦òÆ»1>脽ù†ÛÅ O ù³yäôSÜå£åÃ3þÍfâà³nìÜèpù…Ëy#÷!ñ`oÃkü=¾™‡Ëú=·¯çïmƒËAnÅÐ’79‡Š¹cŸÚlì>°@Ò¢÷l®ñ‹äé{æs#Œ ×’ŠmùŒ³OÆÞ~œ¯Þý¶½Z¹ õóÏr¸\ýáIܶ—k˜us}ãØû2õŽÏÁZÕ/õñCÎÙŸ‰åî×]ûÖÈXcpp×mbÜfÌ_½¼Ù³Öá¦OKˆ‚Cgü“çÆ¾çD*H?uÚµšúELžSÓÑQw¯cÖŽúï¥. ýü±sâG8ÐYhH²è`ýüySô&A1gå{ ¿}¡ÛƒÁ¯eù¹£eyŠœûÝ|€%Ž­a®;±X®DEï5µ]äÀ#·,¾ÉÃu‡Ë¼³nž‡%ýäÒaœ=ÔÙ«¦ŽÍØðìxãÏùÇ'±d?°6©»cL¬öc}ÆDçu'7ó}Æ—Ì >;À¾ž?fïZ1rÌö㸳â[¨®c¸sO½íß)мŽÝö>\Sj˜q|oØÐ’3µ²$W×!k>Ö'¿Y×p…Çu7zjÀ~yωÔ8}ö\j»kì='¨tÎæìµ÷œÈ½þÏ='êGýÿW•ï 9‡~Þ¦õ Îâä``Áܰe¡¼XÈfárHÍañÍÞxìï6ÂŒmŸxÝÇ*ܱñʦò·7Ómcßap½ýÿ䕜 ã96y¥è±¤5Œ?xRGt´Ô‡ñÆ1¿œö.7Ezt›Ëñ$3agÌð„óöÿ–äíà{L–Û>1}ç»k 6ŸqîxÐ;&ÛxÿþéOü÷Ö±½ñÌÀ²Î9{œ9:r“RcóFæ¼óà.ƒ¾x_ÛÎlÇX«-gl¿mÔ±ÚOêí×ZžšËZp$‡Ø…wË7Ct;N‘õþfËKf£Ÿx“cj8ë‘ØßsbÖ¶*:Å|Ï íEdßg_[Ÿ{€ý5% †½Æwêù g_Zç5yÏ ßã?(оlP|нª>U}Œ°ÍA€*\™Î,Ðð,hzëÇ~ó¦ژ̞û{Æ3茼‰f“9Vìøžó37“+8Û¦Êq~Cëkñ˜Ûøm›qôôøúys^;Ǽj92£‡Ïùà/¾9Ö`Íí™c0~Ç3¹ƒëÛ#²æ`¨Å]ü Û¹yÅ3yŒÿÄžš›×ñÀ´c²ÿ;.ø™›ø,3_ðpgìúÃ9þàJƒg0Hgùn{÷æ7’ÉÁzs$&dŒÓ’KæôÖãO›‰àƘ{ã·—{MßsbÖb×,ëàûhU­÷Ž%¬Ù¾'ƒNï5æ³ðóžÿìs¢þPþÒß}ƒì+NY(/J°sHúfFÎBEÅ·»'6rlÐÙýŽþy ó!îC%~sHb·}XseSåÁÌç>xØÔŸoAß\DJ‹ÝìÆŽù½ÁÑùÉFnrôãZ¡áÌGƈ¶ó%ndÿ¬Ëˆ]sósu»ýG]rKýÔ6¹í˜SO¯6®K¬“çžojý|°7ö¹.aHݘg¬cwœŸy̺¶‡¦ÌÞNnÇèq|Øïè]krðýšüãßvÃmûv]]r°$÷ŒPÒ…o,²Æèªp&¦§ljœ»ãÊþH??G±{b#ÇÂqÞuˆß÷œØ5M,»kšý‘ýGŸ=ç³–šºÖµ›Î½îÞ;èÞs‚»Þ÷þtí}?¢O½©©[övzx¢›ZÝȰϚýÑsâþ-€b…ÿ” IDATÀ$›Ø‹ÏBó½>ÙQŸîÞ GüäpŸÄ °ŸŒ‰Ã‰Þr6âþ€Ò&ßE·mþ²ÛlxçÈ«ôðNÎá²ï‰/5‰ÞÜYdKïÜg­›'Û¶ãöø çÄzxM&GÇ—XÈǤ¶Ÿ{c·OâÀï<øÚüæ´Mâ݃¿Býv¬ö(¹Œ,ë²ës¯Ç]W[\“ã02BžoæpäI#ò;?û~Æ–5‰ÿØ|Úãá³s£ŽñAïýNó§Ö±q~Ø9ަ:ÿ _î!çŠ6ñŽß‘Åz÷Î#~ƒ1õqŒÚ§Ç/MÛÛ{N¸V\³–O½¤Ñ>¶ÆóFÑ^§ÔÞÊ÷œxîõS´p±‡ƒ;·dë‘ç‘÷­÷;òÜó†GÞÆÝeM²®±ù´¿í2çÆ½ôÿõç„Þhï*”ƒGâ›Ø: Q¤5q°9||xT -|­5¬”à$·J·.*žI–Úü"ç"Y` X˜U4Z(k;¼çíx+@âÁŸŒ‹£!kñ—þ£.ÄŸ´å¯ssÝ‚€ñÙÐEÞöšFæô“Þ67oÖÀ=öÖ“Ûl&ûgžœ0OÞp?ñã×ö·ÿÈ>{s.¹‰ô/$ÃT€>1Œ]Þ]!‹ªOŒ%òjuij¥ÍÿíàÖ}¦—=“^çFÓµ§%©¡ìÙ[õQfK#puhk@ìÕQ$ázoØ$añ™ÚÃa*Žj8¦Ç1~TK@Á6­T@S<‘W¼4Ÿ¹ÈµÐ3ùn£CZÑž€Þs‚Jey\WÏç µr͸>ëj™ªï¡jëµØØ©ÿæÛž½^^ÓYÛDÆ*?ïû³OÚ3óÜ£ø~âï<0Úþ›äK7{¥•½w¸µ£ [b»÷œ˜:Õ^©uúGΉú-€´ Ÿ[Ë“eQdѪÇñ™>ô¨Ñ‚!ºþ°Kk¹ —'Ä«Ùw™vƒ£†šsIl-—ÊŸÐ>6ð|iš—5ºº€µÏS烎­°m¸¿y_D¨¥^ŠeÌeÏG à‘çw0%óMêØpΊ9VåàI ó…2êáøäÀ@²†ê~bã›Î1•’H0aØ ˜+iЮ]§£h[Ý*ï0OÄW4fª˜ÏÇ%¼†Çü¸Ê`üø0òœ5t#ö’UÜ9¬H!ùëtjÆÊ˜:˜çà†õxð^.… ø)´¿„ïæ“ i)y Jçu¯Ÿ‡ªÉ£éá‘rÊ!?ô²z¹.™Ì–­b¬XÉŸjt|ƒ«Þp}€µWleRYŽ/°Í¡>܆5*Ëðݤ­DÞsâ,…þ|·+E]ª^*î¬KOUHïªÈÚÂQ½¦¾ç…R]T1ölUJ{Î{œJTú³CKàÚcëÿ{çÄ_ù-í™Çá°Š¡2U(ãó;ÀÇN¾hÊBØ‚_JoT—9E7Ð6Â÷ÅhgI¶jÆò—éL`;³^aÍ×8Vê  jêѰY-qÅ*A Þ'÷=÷؇¦CPÆ9Ü— ó`6òvrlãÓì¼ruŠÌÁö±+3dmØCº¤i†”Î]:éb| °á™VÖU´«&Ë7«TÓøLݲvô½£l/Vó9¬÷œèêj/äÌÜKòek¨ÌØQCcßsÂuÔÎ˦gcΘZù¦Zu³Õ¾ž{²±Òi»Þ}CÁæâk#{úýœøAòçæ®C_7·Š“-ëšä¿÷ãÁá—ß³¾ÙÏ@ÍRdÌSÈÒ(&ÿÀ Õ½§>°dʸšl2†ðpÖ |‰çÈdr|xöM†^¦‰¢ý % ‡Cp7v¬ˆ`QÞhb âšåüš N›ŽòÎÄJ\d¼øT€Õ_ö—‡vª¹,|Q(­‹}ÔŠ©t+•¨þjŸµLnöQ&i­»ž]óS×;öqâ8l›½É,ñIÓ9ó¬ßþISxK§¸ÂÑò¯µ(~åXÇ—yº~‡>BãŸÖ%¤ú~ØyÛ5HÈWMÁ2êy²WCá(ƒœ7[}·Ô:0nòQ6dç ¼Fª§s@Á“CU@*9FúÍ?‰|ωT¶z/†—«K6•W]‚ì#íïÒzíÀe=ª÷ eÙæ\Ë¥D'kH§a=,G—¤j.”/ %µ}ÔŠ©tð Åß資“›}”‘Âsþ¸dwѸJÕþc/%:åÍŒX )päÍÑ9$få›|ä¬Bú¥"W8ÆAñGæø2+lé.^øJ ÎÔ5©†¾çvžËÓ¦F䫆K {^Óì°õk€£ˆê2oW—lcL«`•^ÛD V'u'=6„“µ'» õ‹Ô'‰ULþÀ×·Æè V)8®ùy¾uäShpئŽi0 iCÕ@‹mßcçx&pÿ•‰HŽB sßÞîmêz­~×VŸú‡ÎÙÖ`Ä´ÎáÄÞ²Sš×\Fª&ï©uIT®ºbiä£H‡-{‹uÍ<{E} ª'>¦®OÍÅÀ"ê!!óc¬¼Ÿ¬¸øÅÇ¥ŒöÃzš}Ð{Á_…CWÂÏ\,Mô¥öÑzÐö†å²MŠÁ% Â»fõa¹ós›£YLM4­¥=qµä/ùÕ1Ibù8öª¤^YuRÆ4kB¨þT±ëƒZë0Ï 6-÷êz´©á{N¨X¹ÏÔ÷Öc³;™¦rï9ñ_{Nüøý÷z9ï%éÞç^éI´@Œ½bZ¤Úá³éÙî>°gç÷bž;áÆËBQ%ÚÔÞËùn¥Š6Öš¬èútR/q¶U2p¸_H Ûg£ò§K“˜{Zók·Ë'µ%[¤¥ÇÆÜ]C Pظ™5áV âŽr©W=ëׇà ¬xJo›pï\Žb×íXÄ…Ïiû‰ Ò+îÊQÿ/÷ÀÏH+ÒdϨ““úSlj¨Dƒ¤–ÏdP"d¹ å«0Úç¶ŒµIVHæ‰TMNÂ`dßVßâ\TáÛÜÃå« '>pX;öXŸ˜%¯™ê'f™ùÒ†Ûþh—¯C°9O>ËDZuÀš¢~ω® ‹V9ûùT¨dŠFßsÂûLq½¼G©ß{Nh›äÐäªÿüsâǯ¿æw6s··ÃøíÝ«ý]ô7ŠÙìò9¾s>¹¹Ìƒ[ס·‡»ö_Ú3—ïpí8‰çj ÐÊ1î}÷©?þؾ9ùFNë\º‰5úä†o¾ÕªþøEÁƒ¿c´-\–Óóäçßü߉Æt}­NÞWãÏÊ¿ëÀâ•*Ôà‰ žq›ˆkX ãŒæRôÈ:¿EÕ8u< ÞöšYöÛ`š³‘Íúï›(±ì¸Ì-o3¬éÆT2~{Dˆ,†·/Û€,\\3+Åć>ü tdRõ·ãÇØç˜Ä™ybvgbJ~–pݶ¶Iƒñ(9ÝuúÆY òÿdØ<ñûÄîœâ+±d>ñ'w8ßsb*:VQXVBý³öšSÎýÄæ='N!ÙŸìM×3ûá½ÿ»÷ü®yi ”û $ÍvrbÁ‘yš{|ófm±½~ p@ð0Ö¢üéÕXoçúoÜAæCia£±Aæq ’€íÏ6)ÎøBŸï«eÄb.Û„c8·<¼›Ç ²sJŒ‰=\X ÎþÝ‹º¹ïqþo|áÍà›\ž¯¬ËS‘&÷}ÁÜÞ“{Öck—®Ô;>âØþ.+ÌÀጞ1$®Ô NçÜ$5&óƬ9cfÅ}jbùü•=æ|ÓnÙÓð¦þƯ1{}9 G/Z$'aûßñ‚?êŽÁs¿_œ<áJ®ŒƒÉ_BŒ_ç69Ã.±Ïü–1ÛmpŽytÉ÷)wžÙ£Ž/VŽ'5E:5eöž¬×‰zü¼½ç„÷Yö³÷÷\ö£÷šçu­iöò¾ïlêí±±ÿ_?'ü€œWU‚9¨\P½«¡! H½ºeÓÎ _‡°ŠYêÈL½ÇzkUœá;JjŠ£ǯ¤â¼(ì'q´ëâëhÚMôíÊÚæ0©ëáXÝ8ûîèJ†áz,ôIºÞ(Í»ÉØc–àÇU˲Ú/³r¡¬¡Æ"2 ¯cÕ±©ÛNw­ö! ZKMTç´_û´ðoX›ÓÎs¢ðò×ÏöòÂø|à-ŽAîX«,­JøL/Þ(0mì°ñÀ'F.1¨ù ˜:ÿ’Žƒ™Ÿgë3èÔõ/<Û© sèèKºf5”5= MÎkj øiÞ‹5.q=•:ùžÄÁÕ÷^¿øÎš7»1 D§œ°ío ŠLgd7¹Æø*‹Ö+Æ5îhD*Þ…-7¶e𵵃ÒaË,1Ž„†ÖÍ®ƒn9Eꘂ»yÞs"•¤>ï9¡"d«xãÕljôžçü7“n¨s¹v¹sð Ef˜ß¢¼ŠZJߘsCÇÆŒëº©Ã‹¯ŒA›Ÿ+Ü#‰†þ6 ¤~vÈäã)A9á-tûšxs°È¾üÅ¿åß|%6^5¾¦Ï>,Š«®'äí¿½dn\6˜uS˜KŽ#Zu=ª‰ã‘ŠaZcÁAߣŠI£ðɦ$6Ãäž5¾àËå‘TçxäY·ô¦À©]{þØSR#\ ñÆ<ûu•È+ØøõwÅÞs‚:ü=çÄã3Þ è «½GÁ½I}£Ó¡szÛ3 °oê9d K‹²¨î½¨ûç˜s“X7þg>où:fûà@Š·–ÔüŽ-ò~êãÍ”C8Òoët ?rÅGäÉê´¹ò@6~n<ò'?"Gyœ´&^{8°âêô·ÎµnduÏÚÀ“{ŒÃ½W¢Gî`Ì‘ñxs,ÌÑýÿ콉–$¹´+©ë½ÿûªÕŸŒ=¢ZË•fæ—œ•é$ƒa!±ddÖg<Ù—…CSʉK7ûan_Ž«˜b¾­[(\—Øš4œÑ¥éÊ5Üé‡crÙ:?÷…kÈ=;zÚÝ5ƒ«2f)VKüKTCcéÃËØu¢¿×ÓxßŽéÆ¦vôÎÍØ÷œ¸ëïYÖ’ÙìÑ÷œ ³/U®÷Uj…†–ý虯ÁPcÆôisOd¿ú¦ Ä|Þ¿ÍSõ抭UáŒÎsb»qÃç\ q¸ÁN.Oÿßö…sÿGΉú-¿ªàÍÇ"ÿ¿ù3î$F´Êܘ$0NFN>‰‡ÍÈAúÁ+6îcã6ÏÅÉn;/4Ø;¶e97·s‹ÿˆ™ÓÓö“ pß[b_Ô˶‘Á…+³dñ]§Íêz.EèMy°æýŽ3,Žü³¯‘Ù.ñ}îSø¾Ç‘Ú8OóÂîá‚câ£pÎÖ!~v†9Í#5˜ÜŒ7¸¹×,›9ZÇâýúù?¹1×øž¼Ð9ÏA%&ûÎ=êœA½çU –ï9A%vËþž=4Úìiß³ð¾w]g¯¡Û\¹mãûÝc!5ãìkd¶Ë­8÷öö›x»ÔÆ8Oóúþyòô½éøaÉ}–ÞúøÙ=Xsÿ+ωzPøV„)DÜõ}ÇËIðˆdV·Ã£ð.J8M ª}t’æ –²”^¾Á:˜SˆJÖâD¿Õº$Ã6’·EÍA ïg1OœÜ»ècËã¶®yå¢äª~õ/µz+ÐXäÕš(|4üÛub‡©ë)à‰¢få5>SÕRoÄæv,¢SL™Om:¡eÅóÄѽù¼^øÇ—yêªZ”LÇLĘW©—b?¡Ä6±Ï[åø›øêçñåú“£|ö¼ÇØÐŒ™œ2GqÆÅæ*hÙi4…µ¬çqéº>BkÓ—u4gpŒR‰Ä7Æì ’óUúÉ[dôá5_¿ß‹e.tÅñžÞ Ô#5þY%³®[™Ö¸‡MËiiö}ÖXöï9¡jq+PêøžU¶Ì:'~üõü! J•bUÑŒë#ó>HП̵ֺ-«âés ÌB™~RÙ –óñ¡>%w!˜úW ì‚Ã$“äƒæ[KŒ80ï SîÆR1$C¼-6 A·Ä—9ýa”0ÒohÉ>å]ŸîÅ×Ëíe¸ÇŸã_i]¹wÈ•ó™­A·œ]¡¦˜¥WpVo)ƒÁD>‚ip‡Cð3âØö' á€â¯Ëƒ—4¯-’pœµËϹK±¼tŒÝïb-¼´.ü¨í½®,‹Ïxc—˜2—éÃï3Wl\Ç›p]Žkò)ŸÚ+&.È6ñ”¾Sæ$¬8[þĘ>1ÑC_Ý£½çQY•aªr}Ôì='ü$4÷Çç}÷ß|NèÿÐæá¦ëWõ9Htc–R®îHÞøÓ¯Ô&Ë ŸÃ X¸h‘?ïbÿl_ˆ¥bךaßøŒçÇ> °\†ŠÃ‡_Á™I7Ôw„'I:¶Û×öÍÛ7øó°a}~ͳ¹ú™æÌ3 ßfL\;ïàw>5Ò¨æ: ^«jÅx1ϪŸ]qhÛ®‡ßŸØØh7ÿP¡ªê2 uŸêm”Rí­rÇ>(éèGk¯:†+:æ´+ÆÄGH]Ópí«LwÍ›«£w]cN5Nˆ±Á¢ÿ€E|*ª÷œÐ^ËúÏ=¡Ý}öaj¶×Éu^ûH5^gij]x9¼bãƒ=Åw ƒjepíÉJRr!~Ç•1p8…oêè‘4ðëÉ¢}QŽå5ñàzmµMêUrÅfãۖǯ´-ã÷œXÅèêkM«æë^^8{³ç+ð½0peQžcæ4?[¡EÊ{ ÞÙZæ1ªg3L,pñ"Êj²_'ˆ½6ÆÐÚáჅ¾@|µno$å(„‰RÐìœ#£wLð3vï«ýé᳆±Ÿô'.Ùw~àïæËxò¤¦Ô@xT|Óˆ%:n¤ú—Z Ò¸] ÙaZ‰otÈ÷X¸Â´‹šš;9Rèý¤ÎŽÂŒ8—` ×1*úü¶¬üiÎÅû{匒Q=V3§IDôçY'õ£Ù>?fIÎì?ÛÜuøÈE$øœ9Ì^»Y:û©kÄQºÄè‰ýòNB°‰©‰´.Ž:’»wM—¯[]¿1àxÛǬûäÇú qâÀç{N¤fÙS̳¨#cï°nQe/©¤½çØècŸ}¾4÷*˜ 0_È¿µÆgykúžÔ—Z¹6©#5ô}U£ÿ‚sbýg@SlR•GUâ E¯ŠÆtoà§^ÛìÃŽ]h:tÞö3¼Y¤pónNƱ|η<¯`"#¦ø‡;¶Ž%yí8ÿZNŸ¹&vìÃÕÔÉù˜)cóc{Ç3ùŽ|bƒÃþñeÆíÓ’Á»ùËíŽÍMCO WÖpsFFOLO¬úæA¹ÿ$±XdÄã³¢âJløÉ 8ù fFkjë8A8öO¹­©Í“§ë²üZ)Sç>kìØ­Ó“Û¡Rìä0­kíÃHÖ?ùeŽþ9Þsô±yzwt~¿¶«Û¼¹ƒy~pRhÙ'ó_ hìUÚ‹µ\¿ÙQÇÏu+‹ê6/cðñýž*Ó©‡g·¬ªîuV-§vï9A¼'S7ï«Ïýøÿú9ñãÏþsr¼{[’{Òhüq,|ˆø&¡)|³¢sA­gÌ&´×KÕlÌo>uɬ.e(^…¨çÒÇ9Q~Ô<’º;&σïóH7ÞFÊVM"Ç¿}Z™qú¶8]S‚ ʉ‰|$àêæ k\6Ë(6æ´njê ÿUOl¼Öv~rH|_úÄFִ̯¬¡KmŸ­ÃöçÎ~a&ñ'“õ›£.«Ø9]c^1¯£ûYN‚þN,'—ä®]*6j¤úẹÒïäNÞÅñ[½”ù©Û¢W¼íÓÞJ²Ü&¯ÍÆðŸIZ M¿ Žܤ¹ýAEdw~F| £I_”ÏgTZk‹í0u$¾mƒœ˜rß'GUW™¯)ž÷Z¥Ü*N¸ùRsØš#—/ü˧•§oËÓõ vGJ-ƉFg^ Sd×;f±1§ucf¾÷œ |uìî½pÖEåž•™?Ul£àΞ+è^ɵËbuö.ÄÙ`Á§µ-UÖ8½¾þøË_øï€7㻉_¢ÑYÖNžÄÌÙH¡¯`üMof²Ç ‚Þ²=&”9x¾SàÈÙÈ´_ù»ñÞÛÆÕ$ôñ‡L\» Ï1jÑøàW}åGÉ]øÇ¢ Ë[ȃy]¨yÕMRýÈ;“c–DGĦ ë´FœX,{Öâp¬Aê³kzêT\ª¬!;¶Î+uS=kî¯ü|¹BII¥‹ˆèý–ÌXþTÃ'ᤉ>0"—_sGôÄâ\ >>;H‡àv81¯Þ6yÂrò‚s%?õ€µeàK2hx’”5âBD°Ä[ra)ú—ж×Ç’öqÇv|´·ÔFõ+e±‚&ïí>¡…M:6}M”ø3ùTSÞJ¯5ï\5]:ô«)?ÔÐW˺É%óú7õV%gÞ6ò×>åíY>ì®z+d'ƒŒúÌLΑHë© Šj"O0Í_Å=/XÖ‚œ¯mN¹D6¹HÚNvd÷!gS´Ç lÝé ºsѦ.ûWÍ{]JùÜ‚3Šcf-»=îu$Fó…#H˜‘¹Ïp5½y\KG5:FyÝöwËâkÛ»6øÏÖfžž+üä‡nû“˜ƒa Jz`5àëÌ›÷âyø äkÑïããï…{½L<¸;¾±Û9uîåþ='zaT’,l¯Iu÷¼ ¬=5}ωì§Ô¬ëØçCWîÜ+ÙŸAMŸ{ÉÔy뽇£ÛþnÙç}éµâ¦ýW÷;埗ž'xÔŠ¯>ɇ… Åõ^‰k:… o=4ègÝ`á)½ õ,×à d5ynr¸_#=) ßFíW†&ŠÝÀöö¶_¹©ãàæQ;G–V"K¹.GwU ÕT×SaÕ½êuÄÔе“íó"¢½*(ü{NdW¾ç[æÇ¯üŽ{o»ì!m›Þ;>¼-ÑsÀh۽Š‘¢2õ +J ÏÐ8,yà‡ ØÔþ+eDWñ ¢G˜íº4Ä€&B¦!—InòGÒÄY²G ›†ØÅ%FûA0–ÂL‰ÿ‚47Ý‘sÀÄgzXYúCî”ÅÃ¥ô@jxè]}|iÞO:ÌÝ ›æšÃÍ«OûØrƾIÇoâ Vþ–Ãç ŽŒ8Ë®&™ £4küÄ›˜å0Ð;SK¿vV8ìÙ ÖI»gz¯ í`F¯Ñð0ú£ 4©C× êã÷œð3Ѫà®K•Æu§`«ÎGè=‚Ök˨“Æh9f}]ÃfÕ ¸¸´ZF¿çDÕíÔ¾‹8¥VmS»ÔÝxTþÏõk€<`Þ KˆN`’"Y²}G/«LN½Î"ÇúöÃgá×û½ÂñFøÜÌÑÆŽNŠp·‘âKcëÞ±Á0¬A,I ׬ÑÉ d–u•\A‡ðÞGj[ÐÈd’ˆŠ»†7KaÏŠè9?Ü0'~6£¸ëÒ¯wÛ=Ri~§váþìý`c{~+Ÿmä–¨^`Zl¿ƒNJú¸ xq +óhÜ °@®Gû£+±Jt"׊XÉÔö"9—Â5UÓÛBAdn{?{ÿðÛøÆK\Ã7.\Ë+$=p¶Ò¹àúÎËÈ!Ú "¸’sÏO|ó¾ÐDfµ„òQž{Ÿ±¹pFg_œZ‘£Š[ŽÞs¢ ÏzR ¯ÈZ ‰÷§¥þB­ ‹Çp&Á;ë¡Q]ÞsBåQi|ŸR'šë–š¥^™“+uî±€Œ)n {nnOÏÞ—ߘ`¡þ¸ù{ωþÏ€r‹aÞ9¤‰³ZútìõvóÆ_àðÇâ“T8ƒ±Çúo·}mé1ú†:NeÞ²Eà›Œ·3óm¡up…iMW[Þ }]ªõ“’ëþ‘LÖh÷(o<º?îd›Ké䋹ë)¶úù V»FçG*F´æ›ûø¯Y°ö5Ol|Ø+íÆaï8?yç›1lB°²Çð£™Ã|vàÈ|í,Ê*:à£cXãU4iÚ™»ªo_úKÞ…iÓá5mtq‘ ½W07B×¹ øÚòNë±?…0ób+{¯¤eC—yzá´Ð…¡ìùÑ .Îk'8cpK]Cްà°!¶3\iÖ8ÇÆ×šÄCú#(3bd]Þs"5tSëY'ä´TÑýÚòV£ÂR¬ï9‘ wj¥ªö½è®öë{N¨>ÔæÇ_~­?œ=wÊæ:®éc¸6k7€³/Ù’k÷žƒª2ë…Wo¾é–]xÕÇWœ€Ý­òêwòÉ͂ٸ©AwdWÅ 7Þ~lzª‚¯Òˆ£×SŠì@4/Ðq(Kñ&£èÆáäÖâ9l;(áá@ÜÖ´Ø› ‰‚mýÄa‹<Ølvû´;a§‹ÆêRøýÀ&ytcy²€‚®ÆÍØ9H3Ô]ý15¸,S+ 2i~ÉÓò·œ˜§ìZ÷g¾U ‹3á‰A E ÓrÚüB­&M"t]Ø é˜¡í~ÇHž±?î2–+Q³˜;ÐöDöç-Ê2|åC†…9…³júžkE«–ÔkÕŒeÉ}nñ{N|¹…´¡¨•й*ºw9úÙÿùçÄýÑ•†Ìç@[û+Ú©ÛþKvý÷õsãj3vqŸ…œy¯8­ˆ]èÓȈ$ëMÜãDMFÄÙüQÝ}ÁvBvÇ¡¹£Á‹}n‡J4m#>LjP¼äž·½•Cë%ÿÌï5¹N·.Axª( "oq'I#Zÿ‘Çò§~Ï28äòÓOlJ®ð ’s×Ðö-eKàU„Ù‹šqã”bAPß¼k:N¯ql†'|Ÿë4íÓë)N¯8ŒÎÛ(­á<€h•e]Îòâ|`1? £°ú Áîc4e}-Hrr/¤â(‘æÖpü|DÍw$<­y¿¢ü°+?ªA)åTLÃ9Þsâ='|‡Õ9»gm­Þµ¡z$”Îõ­1°gÖ¤7!»’¡m†GpÌ>6ëј²®âÀ‡Zqr$Ž>\ÿ¯Ÿ?¨V–C©Õ$óóÖu)“çà8:ŠUãLÁèSÓ¬Lµ¦ë‘Qtðƒ² qÈè~ПEÀ®ZA…^«÷ÇõÿÒâýG£ ¢bi€y ©½) Ç1©Ý&qR<¸Rù׫P2~l¦àŽãt%iÅY&€«U'³f# Q>Î+‚YÛ0|ìhr)©øàI;ÃOý"ÅG>šÔœGвºDšT]¢‘¸Ä¡ÉÁX³±WÚ¶“ŸRÞ5l£¿í›KêÆTä×c'åÐ~˜v,ç?M*ßzWJ99þçý Ueb¹jƒq㮓qKšý`[‡ëq2Ò±°jÊ9ÜÕ+—Ñq%k´ Áw)ô•a¨f}]½Îò 3mtš•.[¡µ!9>²7î8 ]û+è{N<ö¸K­y!(ï4­íLW%-ô2Éü='æTc¿QNšÏž³ÿëΉúÏ€¨‚jQ]ò5ÖQ_rý7†(§>t!sø»È „MýƒƒWž>°Ö[üõÌœ‚g3o„‰Á½¥9\ª/y´Á=#iê‘9f›ÌÁ\ü*Fzª ¬t†â_­0zL8¯¬••°m.XrE&¿\Äá¨F¥”¸ õƒ5ù?pçÎHÆh­§«oÇÜ‘ŠÇ8 *yiÖ2ói‚X\§NEÑ,’+aÿØÉ2œÕÛFsžydëVØcÉbôöÚFx?Á¿-Í Á?Å© ˆ£hý+ñWý  Ç='ü›Õú{/”T¼ô4ìXgpiÔ†yj†–ÿ‰RzWK,¤ÊËðü$Y këRjVÜ»öÚ/‚Ô¥0Úæàˆ§í'ÐâÃ!­»ôXÇ—ôÌÁJh‰r. 2-ù{Nä>îâQ&jN1ßs‚jTÓ†9=Û)-{NóÞ«ÈzCk°ïÏÙŠB×vï9QåøΉ¿þ…—[ÜҾǫ;íG2/P]9tÈägç^”K?fZ,Lž _:×IÃT:úú6¯'¢iÿöÊ+¥ÂHVƒjʶã+1ʯž ´ X¶¼‚«¤ûS…bžKÁËPl+@ëóð XÉ `pfžóAña™&ó»ça’މ’"Æú×nYW0ÕÌkP¼†Ÿ>2¡Û;U ÈS{d-uŒ\W¼ðmÏVi^¼ yZYøKOöO§£/yÄmNìõnGmdý™%Üö)¨ÓPEd¦'-ŒŠ¼ß²no"°.5Á‡n99’wÞzK¢B‡oQV_¯nR”ÆÁz¡JòÒûË6/“³¦K†\¶²ñ!QÃóÃ4ä§5ö~h{G¬Zƒç!@q®ð‘S?^Iqç"]IýãožÞQVµm~þßñŽúì1C¾dÆå´øvät¸R—êS㘅Ûóªd TáðnF'ç›u£‡ ŸxÖ®HZŽ{ÅÏ[Å*m Ú‡Þa(ÕØõM½bë·»Á§³<õjRÕá)<:L]#_TöØœ¥ö\Ña³¦3Ìký4V1LdSÅ™'6ö^=çÄÆן‡Óš×„ÜwìÄÇh‘2ÓÔ2ó8FÂ}Æ€,äæÚ~c$Ž}˶ß).|½ŒT3sìñÆ  ï™<ÈYÌJŠ™¬|-cìô0«õŠi¤yçæX‰Ã3ÚüŽÅ˜ÁÂ11·¢‘µ¾¢‹>ühÂeÝ*‹Ì’¿'ºÊä®1ò±ÎÑ×µTÖ&‡æ©nßËþ:‚ç ªzê䡿ð†›^Ï¥®‹×…™u6þ´±o2ʳßô¤¢Ýõ;›ö¹9³±÷â¤è`o=¤b"àímµô5a¨›/2ßÞ¾],Û ùa9wè£}æ?\úUãÔ"<±…ö)#OÇ0Ú·ªº;œ™/|%çí™ë• cµ½¡[´ä ñ6Û6–O^á®ÄI°™§ÿ™œø¿Åð´Ëž‰œ>œ'ÝVº¬3¹øÛ*|Ý5¾1“Ÿq÷^ݼÃ×NO7üñ1=e¬Áä±ýó-oïÅÑcŸïy]ý#é÷ZzOq/isÕõŽ»ÍŸ±÷ kæöžÔ!µcüžÔ`ö15¡!òýãù®™%¿/gÏan»?á‹þç3,ÇÃ^þï<'~ð1ón’BPºÜàØr ìâÎaF#gãßÚàs@ Åö7‹‰/œöiŽÉÜè |úG“Æ‹}øòðcçÚauŒæ?uÛp„wóDÖ¡Öt?¸Œ?ËVÌ8szSꈭ£²’¹m†ßs×ç“?¸o1c9òvÞuL­A·×ÔØØ>ëÉ\õ¬Aâ…gDzçŒÞð夽ƒt-§ŸD¡ñü3ÖX¥÷>™ü“ËάqŽ!c÷½Mè|ŒÉÑØq’\°u žµ0«¹¶o¯Gøm?Ë©jZxñí±k¯Ê7Ìòcу'‡ë•\ÞsÂõ8U«r±^«HÝ#ÛmÖí^ïÁe{_`ßÛÆ{u½ö=>öýáà=.½¤Æ9$c÷ž«š½`ÏsâÇ}óO‘ý½± ŸLeç&íµ¬zqã2‡çÌýÁ*>@Æ+’ð¢×ߨñ!]&0Š“WÎövörëq@å×jVó w;ù¶L5´üŽ ˆpð1«g®`®Uh[¡zŽ{é]1Ðà,”$|”š7{b‰s ùƸ&˜Žfbƒ|lÿÁ'6Ûp—Bèå ~Zy¨QëtØ;&§Äðß‹ï b[뢚ù<>¼žÊz¾ÂÁ÷›kê‰aäþð‡_ù•”Z!;ìÕ*~¿MîuJÌÔV~µ¿Ù´}0iþÄéWëbWü5N1¯…Ó‚¢êÂç22džz&œ€‘«ö'Þß¹8‡|Ø8 ´ï9áZPï÷œð~ñý´7MÆ}žõÔ[¹êG ßsÂuèÁ»êßNüÐS Âaá…ó"ž«ÖÇá 㙃¥­ß‡¸ðæ`GÃV‡±^‰[¦OªgX$?=ÄiÙøPCæÃ¬„±!†:Œƒ³±ÇIÃ6°cÀP9ÁSÿê8õ¼íþú—_…ï#é…—ào\ˆYyw¿áÏš>k¹±WÒ­8¹tþˆ‡ƒz#9 3Q>?=° Êñ·'6Ú#â£æá¾´—^ÿ©œÖ kQ½c4ƒHmgšºêkÝ …œõÂÌHd®ʼnr±íµ¿ËäÌÛ\–…ß:N-­‘¬†Ô±Ö¶c˜ùð'Vb¹óÎMºÿòG&çÚÄ×Øí‹±pÄØþ/þž¨úméà }6ñŸîÉ€ÁÑŠ?k©¯Ø­®øA´îÝÞsbWÃëpöУVÏš>kù`êéÔ;K¬wAÙÕ†£VOÐVX­=þž)V…î.“ê8µ4Ž9%ý¿|NüøñË/ ÍUG¾…_ ²!¼i2¹orgG-J/`o"¯d6%`(ˆ…Ö'óT¡J·ÅØÑ ÷Åó\qAþª^3ýjTäGwbÒ‚AãE«¿Y¢+Mó"ß5á ô+/…ˆXÔëJ\T˯Î1ŒT°*ïpû€TS®ÄŠ~0bbZ2uz€­)1ÈM?±‘ìøKý¨É»¹î±ïï\ˆU9u¿¡Ê>Ôšæ ÿh_ÔdCŸrh ]~Qý <~2SqªˆÅÖ*Õú„48D[çzڇǥ?®l'꺄%kîŸëã´8¯^_™ãÑ5ôÈõ¨ì0©†yœ¼|ÅÑ/+åãK©ñ]ßÇ¢ÃØ2e[om$ħ4Êò='\æ¬øÙ[½T?j¬"{ýßsâ='¸Ç¸ùèh¹¿þ7Ï }€`´Y+2ÇÒ9"t`€±Ö‡’ ÉFú¹ìCIqûz¥^†ü;PË! é‚Ed×Å ªbÌóà„¦Ñ-ªî´“fAx;ó2 Öj¥ë‘ëÑ$ÃE.õ¨›xšˆø,é8 KýÜ×Íѹ>5Øð拘;P,f‚I/&é‘;{BÒèôeT@=QëÜþù‹IÊûñç™uFë‘`H8?ÆV±µÒ?ÖI:°¬ýY&Yײg³MÓI鈌c_ųó(þú'ëW°ì“óÇCŠŒþõ»‡$àØ–=ŒjÛ1¼ÒY•ëY‡0?û¼-(óÈ*Z•?ö’®õ;ñúªá‰­d2n]‡AÔF¬u(踲!Xê#ަ´¿¹JßSAê¢ý]²÷œ˜ú¹Žµ'ßsâ='ú~É}ž[”ùœ H9—· C߈ÈÁÿøõW¿T” _5B2OLÔ>O7Ä7![Öö–ƒ3¨­|^ ! NÑ+`|;¹Rã^­Õq3 §¶]0I4ýoy»µ»ØS¢Å«£vÇŠ‹ÄdDrÁž–Àé®­Ö EÏ:;âx+†á·¯B£® ùi1£çÌˆÕ Úg?øcg3$2ý[Olˆ6E|5O÷Ô>4­úIÇ~"³ŸáqH ¶Þ²j/£VQÜÞ"ÅÅùXoΰÃÌøÁäžIo¦±;¾´P ¨”Ôn©£ó1·bjØ=ÇÊö0´S—ñw•‹Þ {× ëúK÷ž)Šú÷œ  ï9qm *ÒGÃ}æ~þ󜨟üÒæ â ðáäÀIÝ^™HGÿýЧÃC<ñŒË>êÚ‡W=˜· ­úøvÇö[¶m"O¿y惃¶fnì‰×‹Õ+»bAN\®ƒ’\ù:fxo=<<¯¾†Å"Y°É·„Ý‚gj¿Ñ„ Ûä1:&/cÌF,Œœ›mc釥¶V—\ƒ#fåÅÅd85ËÔÉ ½ãœ±kI¬â-»­“¡buÜ?«6ÇNâÌ>›Oú›oXmNs 3fúX,_ð;oÿåÄVu±wÌ€‡ïžßÜ`\ð{ŽMbuœÔl077òï-Ñškb ·qÄfŽË±l_ð<9Gï8àŒ,Ø‘Åܳðkì{NTõº~ô÷~A7í©·“¬ë`=šûÄ[xÍYšmGV+Óë‰i|(ZÙµã'JE®¹ãœqøßs"«àzßg€ÏêÚ«¨åùãêG¾™P¸¨zyR\.è,pšæúÇÂí‹óïý,âÓføgÃÀ‘@o>ót¾:9l IDATgó›CÈ*—ú79ù÷—sˆÄþ“Û9ŠPçÈ|½m˜íÜ0çÛ ~1eäæÊû Ì\sËÃõ·µ¹:ÄØ9ÆÔ.ý'6µ‚?yí1±2§QÿØÁµKÕ=ñì'6ñ1øã¶máŽû4Y»WŸ5tM#ØàÜc—,52£¯¹!°ûlÈ&fûšýäw° 1Š|™Ëñ¶ÆÎ?\ðÁªà³Æõ´½kâx2†üŸØ„7ï´Ýò‰qB3Ç|èÓs'*Þ®+šìKï½árýy«šŽeó™õûÕ±YwÛ ¿å®E±gs\„“#âØ›½Odï9A}ž5t½¼§­£žY=Þ¶ÞæKÍcƒÔ-k1>ö}ð‰?nË–{âõ^ƒY¶ý{N¸ëœøñ—ú„{•¯‹W½ªI}cרtóûÈCÐ8Ù0Yƒ,FÍ|³ÀæÁè[ƒ(X“†/h<“?U†O€sÙnsì±Ù¼Ïá ÿ†vZý¾§M„Åïg\S+ÇÈæ¤NæOÌÞÄ8Hž‡øä% = °íäóXmjrñ—Ú{Ï>/„s£Èþ`v]’LÎ%y!˜Ø§Ž-œ‘ãsJ°kŽÑû‰@äåEC.ÁT/èRoÖ`ö~êŒÆüx]ƒÄ”8Í·}ÏØLû Qô& _P®1Ó{NLÝR)úµ¾Ò ßN7þsŒÉ®³c›õiêµïAÞëé¾Ù¾ç„kÜÕU‰¦N–z-]çÑ1ÏÒÒŸ?tßk?7¿šäßÌãht±£·>½mF߯§K`›“±åÛÒ½QI=-‡#ϾÃÕÌŽ¹”X~Õé“ ñ:üÉ‹( ìûÙ›.NSá‹>¹Ç=µu¼y§EÒ‰îj°ìâµÁŸãM¬©ÃÎ3¯já²Ü<3ûEã·Š¥Ùvç8u1†œ¬Ëwòð؇PäãëxÈ íδ¸œ'6ØÓÆ>÷×èqüÇn^å8pþ£TÄîïbi;~­ÓL©ó™ÉyÒk€Ý݆oÛ;–<Ï ×ŒÚQ/¯¡Ê{ê:Uý\{tO;ËÆ*£÷œxÏ ß£ÙGÞÞ?÷>Ê^ù<'ô#ßУ„(¤ü>pÆÙÃå¢eÇ¿õ8¢°ÚÈ]Ý |ÕÀ¢IVsµ>g"‡ ?04½§âäv:ô ŒÄùŒ#óðë8Ú8yçw²8†MïW ÙdŽÅÌÈ|SO$©‰B¬Kô &‚»ÆD¤é™ld &_)‡³@ä r)?&1¸uáH;öñç¼ˉýAV|áºýgœ‡‡ê(ι >MÚ"…ws‡IfÚW•]|5s€Í8Úá‹3íÄë€Å&ÉV¥ó—ëz’ê:K‡=ÍñM”–óSFÅ*”{K%Œu»¶Æ[ïúÛTÝݸSŸ¦Ïšw¦(vdú•ÿÁg{:Ý{8õ|Ï /ଭëäõÌqíµ•(m™DÏ`Vó®1ÐØ³5Ì€£Î÷œ¨W‘³u]žUçoµóýšþ§ŸõP¾Ý´Ñf*aOúé±¥XÙtüaÆ¢ éƒ_â~ÄØ7Á:$õócÏsõBìðo…¾|û´LF$ÑÊ&QŒŠµžô«!òÏÁ ,yØÖ…˜¼á3/¸l’¦oÝ7¹Ã ùðð^ãìµÆ%F“+¾w­Fަ¬ŠËÑ-~ÌÐýñÞ|¸Æ`lBOlʵ…ñï\î¸ç÷$ÿ^Ã_bÔ¨.Î45UD%rϾGóÀû$ÞÇæ•UÉÌaeÖÔûßÄÀ»Ž;U`MáHèb Þk`.)V«wGÔ;ÖpHÔ—‘31yÝSƒàÒÇæ&ß=Ÿ{×¼äẚ',Nv×`üL>Èϱ,!òԹ뫑ðæâ pï9‘Úí>5RÕzéÞÔþœ58#j._Yß½~ÑŠ}ξ¨ h¯¡ç#4ò='Ø£¾oþSω,5îlíŽl/m¶ Ðj³Éfîƒ&ºØB1Ü{ Ç¡¹«ö‘X>ùƒ5ØûfIŒÈ?ã›æÆØ>çøc„¯á˜Â_Z ‰Á¸}Ó p©ñ·¹óŠâMÇÝq¬äãáâßSÇS’ó§jnå”Í .ùÊ·]51Ý7ßK} ŸØe­w””²ôÙC‡}¶yœ³M)ž¹»×et÷hûV_Ö%5K×?¿¦èXßôà£sHÈ'˜É r·ÜWÆ"£.©Iâú& Ö<á‡Ç-¶™Ã Oä‰7ëÎFÆNbf¼çÆruNáw~áÆçpï1¸÷œ˜5qmgNµ]Ët©0*=¨†±<ï9áªÌõ¿÷œ¨'Ü”ì6×ôgÜ*eEp~ A÷sc?¹Ùœ{C³Iý3älb}o¾ÒÁÃ÷L±û.æW˜•;sÛàϱ…q¸&Ÿèþ™>üíZ'cNä~ÏÒkj´kýÖO~®EÖ1éÚ±y]¤øz ×·º CoLÆÉ;ë oò¹XàX².[Ÿ±¹'¿ÈŸë‡ü–ù³>{a> 09F[æ¼›$¹B_ä™<ÏÈïÕ™3¾È Þ'‡,·ë¹ü eM øò:Ø x'±–?äÞwñûžÔÆõšõŸz«r^„ƒCöÿ§eÝ÷šÙ÷7Ö÷œøymÞsbîcöŽ÷mýÀ_´“4=›×›Ë‡#!°Ö‡ò½19HF>tyñͳí3žËó˜É> vöŸÅ¶=r¹9 %š¹ýÀš „ÌÜä› FïÃq{p|‘˜/9»Ñ…úÉLäñm;>įEbr-òy1Ôe×ùâÀrLò^eú\4`îØÉ!XåÃĉ6ë„- Û]Ó±µÎz©!ã´]ÏèoYø\/ýhH¿"†è3Ã3²øšÞ20´ì§žUÞÃv0‘§‡‡ñw¾› \©³½Oâ ×ͽ}¹òRXwìÏXž¾o|'žÈíOÄÇÞ¿©[¬³Ÿ=Ï–‰OÇ2ºc%Àäùî“wúäõž{ îµÙõûÛãìMïï¬vÙ5b&ª¬}°’1±²p¹dÒ¶{?íp{ÿúþ‰û‰cr¾eáûÏ8'Ο&}•¥ [džwò.Ü.Ù1EÍâÝXãê—óî°gaYœábL¡Ý+6}Ê¢ÌòYìg\ÏØ™ÇÞ}bÎ&º¹ϵßÊ sWkbÞØcl£ß1z¼h×NìU€‰ß˜Ø:6h3Ôþï9ýÏ>±qìŽkâ!/‚œ&öu DhóµÌZµú¿þ Ÿgäoóñ!M¦ªÔ¬‹’ŸöàîõÍz<9fžLj¹y¿# (ÇïøfŘ²X±Ç6vþm ûÛWô¤ ÞØ­µë¦:ļmÍá<*t¬Kû‘Yë2§YÛõg€Fn´çï9±kוéõd¶Ö¢×lc<žµÏrP[¾YãÔ}æï91UÝû5ÕüYÏ~þ¬'èÔ8–3ÿ¿sNèGÐ%Àƒ £Ùªˆ‘ð©_dÙ\I’ޛʺ³£²µG6*V\\Lf46ênÏùÖMq—8–ð¸‡vß›‡qtÛß§M¸ðç 0¾|È…K<ø|:êyìŸj×v¸¬ßsó×ìnö¬K¸C;H­È)8T̳Á¤G·ŸØ€¤EïÙ\ãÉÓ÷ÌçF>¨¨Ø–Ï8ûdìíÇùømc*ANyæfņö³î×ùÝñ¶ªÎ\—k˜us}ãØû2õŽÏÁfß:né¦Ð~È9~£¼ûÄãõD×¾526\®µe¹&Æó# ì’\ÌßsBëÁ:¥ÞÔ:1ÏúÖ ±d‘Í,0:ñ`/‹ÏK쟚ì¡[>Üf|ωԇ5¢fï9Q p6ª7Ln~o6—ÌÖ%xŠ XŠÉsÏA¾ÑÁË|uËÐM g~îˆfàÜPá;óâ™.[¹äyækµý%®˜Ì |ƒù9?–ÉÝ,©ÅÄ¢œê ¶¢o°ë„ÅøœØv×bò ïOøÒ‡Ë1udE‚<¤ð2||û@B>6dà¶9"Û¹8^j­×.|Á†gücãˆqÞ>‚×>&'so¿±MäfÙg|‰Ó¼Øç/ãÙ×óÇ,೉Ù~wöA|ƒŸÚÏÛ™ûÂë`ÿþKæu.¶÷“°ä[tñ½ýYŽ_Zø#µLW‰¨‰s "ùÍ WbÚœ^78Èó='RÅôÙsžg¤Æ¬OÕù='ª<¾§s?{OºN–¹‚ÞgÔqßï9Á=ú÷žõ#€þÿÇuÓRØlÈV×›5Ï[•^_sxx±ùÐðñ<€âc¼ˆ#ól„ÛÞ7Tn¤Ø…;6ÜXè¸ÄîiãXÃà{ðÞ\“Wp‚6çØìâ;†±u~©cö¦Î!ñYЉÉ9Q[ZzâÝ\ƒŸü01&¶bÏó’X,OÍv¾h¾Çd¹-Ów¾‰ t0Ø|Æi¾f-½c² û{þ{ëØÞxf`\[òÈ7Îuôš16¯qÔ––w[ø 69ú³ÆZk>ÆßÖ;ûqlù»–'Y‹ðé7ï–GOOC·ãliugybÉlbŸx“cjHÍobωYÛªèS5Ï dßç~°>÷À{N¤.îý¡°ÜkÑíûYÎj™{|Ë0ñÁ— š›Øåafß{ls€WÐsÈ$Ð#ô^BëÇÎqØÏÍ?ÈÞnŒý}qк§øH\ô©‹_­¡Ïä ζ!Dw>±'yŒÛÅÇbÛflßè„ñ—Þñìóª5`sdFŸ<ü _ä†ÿ¬ÏäÇšÍ8uª¨ç•­\‡“ñ쯉ÙÎEVW<“‡Š"òÄž("›“ýç›^HñQòsŽ9xœwø¶í« ~¦V“_pøÊ«dpÆSŸÉ·(Á¥Ù_þÚbö"ñ¹Æô4ú`»¬-à=nùŒ]8›¢ÕÀŬ£aßí…là7šÉÁ8s$dɉqraœfýØ9þä±ùŸñÝso|<ܽ×ÔuC“:“Ë{Ndr¥v{Í]³}Oµ×—=Â|ök3÷Ñ`ïsköˬw8ÞsÂ÷PjD_(éo Æ‚d‹#/J°^$/ྡ¢·æó»Ø9st˜~ÇS³óö,8t>Tâ7‡$vÛ‡õ7W6U6©1Î9|ð°©?ß‚¾¹ˆ”»9Øó{ƒ£ó!’ÍÍMâǵBÙŒmçKÜÈþU–ß-c»ææçêvû4ºä–>ú©mrÛ1§ž^l\—X'Ï=ß6Þ©Å ¶ÝàÑolÆî½n®sÆÃ&ëjix³·Óƒ‹nò‰Ç0zךýàû5ù§Ž¶nÛßq•—äžJ¹†o,²Æè*ópi¿–ùž±Ü5vÇ•ý‘Þøïר=±‘cå8ï:Äï{N캦F–Ý5Í:fÿÑgÏýãOlÞsB;S[óÞŸY×7ç ÒìÙìíôÿÞsâþ-€ŠŠE÷ÂÏ¡äàü`ÄA±>™„Ò$Ñì>‡{’ŽŽ¹ †Ï9Pn9˜ý¥XÓ{“›ƒ"ó{óÙÈ)²säUzx'g,hö-‚3× /æŽ? ïÜg­¼Â³}`ë8ÑÚä“—¹qÆ$ŸÄÂܤ¶Ÿ{ç²}Âß<ø2·?sÚœÛ<‚ǯPmƒï¿§%—ÁRlw}îõ¸ëjËÄ99##äùf‡2ëîüìû›k'a“'¼·=>[bÛùYæý?xœ_ê—:x¨‹ãÞ]Ê=ä|Ð&Þñ;²XïÞyÄo° &?Ç81¡}úqüÒ´-±½ç„kÅ5kéñÔKšs[›ZϺìuJíƒÍ¢ç›–=å9BsyÏ Qîå÷œ ¶ùVe´o]H×ÝõâJ½tí:kR—¬IÖÕu~>~ýÙãÇuŠúÿ9¡wÚ»6нI² 9ê”ðlë«„>ÂO"a¬"`Õ6I.Zz¥[OùKÒö¯®.âi}ª…+dESöæR^Y±¸}`6 ñàÏ FŒÅѱ'…ßúºtÆtTgaŽÝ]oyb3òŽW©L¾ø&ÌðÍŽ‚2(âî=ÆŠÜf3!169ež¼e±•ˆ°nÃÉ·ÞœKc¢ú“Ю/šT€>1Œ]ž\EÕ·WÓÊrÇXÊ"‚ß­ûL/{çàë¶§0’={«ö *–FàêÐÖ€Ø;ª£H8Âe eŽ0‰¸}Ñ!?Lž—íÙÆø?Žñû(ئEˆî‘È«?^šÏ\ä‹ÀZESÓè.砎Ξf ßs‚*¦öŒ¨¡dª¯çƒ@ólª~ Û^°ÁNý7Ÿ¼´±ï9qÊøžl‰Ú8:SÖV©ßÈÁ›¾€µkuóp.&]ŸÞfLgË¥£‡xì´Ü(Ʋ½Ìí[÷‹`pÔ@θ$¶–KåOhŇq"œ¡ò© Xû/]ÍSç·-u–·T9b]›õ× t¬ÍþžU*å¡®n«fг†çþ6²- ’>õ~÷b(€ƒÙ¬WÍZí`jªù§ÜŒw¬1E÷Ïœ?HþÜÜ Ò,!1}"™Ÿ¨—Ë_S3oðs ¬ ”TbžIçÙü`áPQ*{’JdÓ ”8EFµÀžU´”k|Œä)#°]:ôNÀ¢• ‚»±›÷èå&Ʊ ^ ä…Øù¡—³âÉ;Ò#ëÆ‹ÏÄk¾:à‹;œqªyŒªg]ì£VLŸpQü>k™Ü죌”„ó§ÎØ1$?¨c7ŽCš²)¤À¤ëý¶mŽL¸Ç!ýÒ7úhˆ¾Ý˜}Ô¢ø#s|™9—‹¾Rƒ3uÍCª!UaO´|;_ãÔèćKx|2{Eë Z!>@å†}Ü?3“‚;÷ Ú‹WvŽ‘'‡ª@MW<½ç„–âóB iS|­Œ…\«¢ Ѭ&@µ¿»?ûGë6[€û"ïäZ.%z-ÿ`õD°ì-.y;Õõ`¬˜è1j{€Ï¬Ü车h3Ϻª®:B×§æâ à霺{í…ú‡M™AXúöÃ\òR!g,;pÉ«d´Ø3F~ëJÛD1czb1ˆkµ­aÖ¶¸` ¨ôŽ¥>,wÞß¼9š¥c(ÆV‡Rnu±ä·ß~Qˆ²ÈDZ—Dƒhœ/Xcš5!(|&¸ÏµuÐ͵ÌÈé #›¯”øäßD3ñ`‹\%-Á{NPÚ{N¸ue{¼ç„N AET“º}øz4Kö9ñã×_ë弚¬ÏH¯ô[sºCj"¹-³9Táðí`l\x6^:˜8 d®¿³‰ÉÝ—v4=£­ÉpZ®BôéÄ,ܺP5éRHŒ{!Co€%¿s00g“ÈÎϨ8§z¢n‘/6æ¶9Ù7̯:ËóŽU¦^õLN‚+@°Ñ'|%ˆ_s‰øª›åV%¹¯OlXc‡¢ýÄõ:qןƒîO];‡­NNy0ˆN5ËäðÔ ‚ò.\cbTÊ`Ö€!œ|iŸW=-ÃÎQÛ`žHAÑ #û¶úà¢ ßæ.ÇUU8ñÃÚÄúÄ,yÍpõ³Ì|iÃm´ØžÖD{xòé¹cŒÁ3zω® ‹V9ûYb×ê¬-5~Ï ï³.Û{Nä~Ïú¸Ÿ#ÖVúן?~ù%¿³‰‡xëÕ©.‡öwAÒ"#ov8æ@úΩÛ$ð˜ŸÞ n„ŽÉãøcß\™Oü;NâIq£U±’ãäyôÇ$éã#>#§¿uwl£OnƼ0þø…˯ŒñÜ>ðMNõTÃïñ3TâÀNQ®PÇŸ•ÿÐÅ+UüOlðŒ[GJL4ŒW0šKÑ#ëüvfãÔU0=öšYöÛ`š³‘Íúï›(±ì¸Ì-o3\¾Ííµþ– —xTƒ¸ k¼Ë@lßæ?Ž}U‰•|x#Ú8³ÝWp`‘ybVgbº #ñ¶µmm³¯Éé='X;š×+uAâú¦Ž¬ÇY“^;L-ûž.å{N°{¼Ÿ±G¼—Ø#‘GÄüú5À±c(ñGu²)-åê«Oñ¶0‡§ùPZ+Ï!ž@m?‚MÀÛæøÄÆ‚gâø ·ŒXn^c†Óyº(wÎTÎ;§Ä8¹Éupöo쟣üg;‰mó…7k€ob~¾².Oe–Üw<ö·s}úOîY­_ºRïøˆcû»¬0„3zƸR/8s“Ô|˜Ìz°YCÛYqŸšX>e9ß´ÛGö4¼©¿±ÃkÌ^_ž^´HNÂö¿ãÔƒç~û%y•\“¿p¿Îmr‡]bŸù-c¶Ûàóè’ïSî<³G_¬OjŠtjÊì='X¯õøy{Ï ï³ìgï#î¹ìGï5ÏëZÓìå}ßÙ.6ÔÛcc=þO?'ü€œWU‚9¨\P½«¡! H½ºeÓÎ Ï[ª°šº½±ÔÁ&Îð5V¾(Ž"¿f<’RÈïEa?‰£]+ˆ{3,WŽõ8ŒCêz8–¶hœ}wt%#:áz,t Ã¥y7{Ìü¸j™}Âh ˜4ã’Ð0wœà¦UǦn; ÖµÚ‡ðämÎ~™ nÿ sËÇ.ÜÓ'Þô'§i"Ë(ùÔ:ðÁSM'«±ê^îØ§ŒsƒÏMr /±ýñ¿ü"4 œ`5ªùɇ ]èÞ‡í}a°Qäš[„Ixñkñb`gÊ#™[ûÎ45«¯ü탭#ð=Þ5É=X3ýÌE(2æiL«±å‹Ìš7n™œµá{Nô¹‘e}é{/ð¹­MïÕšÒž=òž¹m¼!©:Ý©Àš¿çD³•ªhõõ÷œõßkWrõ 6cÏKþ½±2^®ÌæPÀ Í4 ºåºîæñ«ÜÃö#üéËȾÇH‡™0¾„‹“±ºH'FÒ«ïÑec¾øžyƒö 8‚^äué·ÓW ˆ¹MªÇsZiJáÙu@7n°u¼\¤SQcÕ9íW68¯ö·¬Íig¶o'tÍ«ÿ$Úó·86hb-¿­Jø2c“(0mYTPç¬G k8(¦Î¿dežŸgë3èÔõ7^nÕ„yB(éš;Gymi4Sæy0fÚã×S)¡“ïI¼Y¦&æ—צšFV½r*{× e¨çR“Ók\xæ-SŒkL¤bÂhakê9ƒ¯­mK‡-³Äh8Z7»ºå©c îæyωT’ú¼ç„Š­âW³©Ñ{NPœó[ÜLº¡ÎiäÚåfÜ6È ó[”WQKésnh˜÷®ÉŠðâ+c æç ÷H¢¡„ ©_E2ù8GJPNx ݾ&Þ,²/ñoù7_‰­6UÑ˳‹â*€ë yûo/™烟ñi sÉqD«®G5qÙ”ÄÂf˜Ü³Æ|ù±|"’ê<<ë–Þ8µkÏ{Jjc„«!þÂÁ˜g¿®y¿žou0kmTÑb©WÐX’³ö¦ƒú¸fMá½ë’}ÛRÒ³÷óŽòs±;6>h)n2’ˆK“”ì~k¸|ZÛ1'w„{l”jÔœY[¯@å~ž´¹Ò;€¥)Á÷äõž.T׺j—Ú<{×¼ÑÂQsÍ1: IDATϲ{Ï åÞvÚ°Úç®Ø{NP‡äœx|Àtµ÷(¸7©obt:tNocföAàM=ƒLaiQÕ½uÿsnëÆÿÌç-_ÇlHñÖ’šß±E>ÀO½s¼™rGú côG®øˆ<ùO6WÈÆÏG¾ñä§·œçIkâå°‡+®>ðG/që\ëFV÷¬ <©±Ç8Ü{%zäÆ7ÇÂÝg<Ù—…CSʉK7ûan_Ž«˜b¾­[(\—Øš4œÑ¥éÊ5Üé‡crÙ:?÷…kÈ=;zÚÝ5ƒ«2f)VKüKTCcéÃËØu¢¿×ÓxßŽéÆ¦vôÎÍØ÷œ¸ëïYÖ’ÙìÑ÷œ ³/U®÷Uj…†–ý虯ÁPcÆôisOd¿ú¦ Ä|Þ¿ÍSõ抭UáŒÎsb»qÃç\ q¸ÁN.Oÿßö…sÿGΉú-¿ªàÍÇ"ÿ¿ù3î$F´Êܘ$0NFN>‰‡ÍÈAúÁ+6îcã6ÏÅÉn;/4Ø;¶e97·s‹ÿˆ™ÓÓö“ pß[b_Ô˶‘Á…+³dñ]§Íêz.EèMy°æýŽ3,Žü³¯‘Ù.ñ}îSø¾Ç‘Ú8OóÂîá‚câ£pÎÖ!~v†9Í#5˜ÜŒ7¸¹×,›9ZÇâýúù?¹1×øž¼Ð9ÏA%&ûÎ=êœA½çU –ï9A%vËþž=4Úìiß³ð¾w]g¯¡Û\¹mãûÝc!5ãìkd¶Ë­8÷öö›x»ÔÆ8Oóúþyòô½éøaÉ}–ÞúøÙ=Xsÿ+ωzPøV„)DÜõ}ÇËIðˆdV·Ã£ð.J8M ª}t’æ –²”^¾Á:˜SˆJÖâD¿Õº$Ã6’·EÍA ïg1OœÜ»ècËã¶®yå¢äª~õ/µz+ÐXäÕš(|4üÛub‡©ë)à‰¢få5>SÕRoÄæv,¢SL™Om:¡eÅóÄѽù¼^øÇ—yêªZ”LÇLĘW©—b?¡Ä6±Ï[åø›øêçñåú“£|ö¼ÇØÐŒ™œ2GqÆÅæ*hÙi4…µ¬çqéº>BkÓ—u4gpŒR‰Ä7Æì ’óUúÉ[dôá5_¿ß‹e.tÅñžÞ Ô#5þY%³®[™Ö¸‡MËiiö}ÖXöï9¡jq+PêøžU¶Ì:'~üõü! J•bUÑŒë#ó>HП̵ֺ-«âés ÌB™~RÙ –óñ¡>%w!˜úW ì‚Ã$“äƒæ[KŒ80ï SîÆR1$C¼-6 A·Ä—9ýa”0ÒohÉ>åýü#Ñ|\n/Ã=þÿJëÊ%¸C¬œÏl *¸åì 5Å,½ê„³zK &òL“€;‚Ÿ™Ƕ?YÏx]¼¤ym‘„ã¬]~Î]Šå cì~kiä¥uáGmïuõ`Y|ƻĔ¹L~Ÿ¹bã:8ÞØ„ër\“OùÔ&X1qyÔ@¶‰§t@ð­˜2'a%àxÄÙºð'Æô‰‰úêí='(ˆÊú¨ S•ë£fï9á'¡¹?>ï»ÿæsBÿ€67]¿ªÏA¢³”ÚpuGòÆŸ~µ 6YnøÁÂE‹üyûgûB,»Ö ûÆg8ü ÎLЏ¡¾#t8IÒ±ÕØ¾¶ï<hÞ¾±ÀŸ‡ ëókžÍÕÏ4gžQø6câÚy¿{ô©‘F5×éôZ%P+Æ‹yVý,èŠCÛv=üþÄÆFƒ¼ù‡ÂUU—±P¨ûTo£¤úho•;æ3F~j^c}Bßa ÛÃ.5ÿ ázb=Ÿ8Pâ L!ŠÄ¹R¿S\åXÚþ¿4¾ùþ[2ÅBü °"P<ìšÝ&£»£2}½;²ü8ÇõyQ¾ç„Ö»–[KÛ5¡ÙÇï91Û×…qj5óß2› ©:®}£Ô7÷1ë€óÀs_ž}̽°>[by6Ýg%ü=L¸žXÏ'Ž”xðæÿÚ9±>È!Õ,…¨«6ó¬yœ–B¥(”°ìŠ¡VŒ9ÿ”<«¤¯,¥‹Âƒ<¸üMô¼;Ž4ø|+û‡ÃÛ¡À~Ì %;$RB·[˯³·PÐÆ‡ë#oxùÙc¹)ݸu­Çµp=vHÏzž"rLT)âïÔº‰<7?¢àˆ…¦5^Å87ÕçŠÝ3Þ•îÁ¥.ê­Ñª#˜Ol[¿r0éÖÏëÁi’肜0nW¾uesÍ+N°Öè,± Íÿ[RÄ”øƒœØósññAIGï8Z{Õ1\Ñ1§]1&>BꚆÛh_eºkÞ\ˆ½ë»pªqBŒ ý,âSQ½ç„öZÖî íî³S³½N®óÚGªñ*8KSë‚ÄËáì)¾³XT+ƒk¿HV’’ ¹ð;®ŒÃ)|SG—舤ـ_O%è‹r,¯‰×k«hrPÿ¨’+0ŸØ¶<~å m¿çÄ*FW_kZ5_ðò²ÀÙ+˜=_ï…+‹ò3§¹øÙ %(RÞKð¦ÈÖ2Q8›ab‹QþP}ø:Aìµ1†Ö,4ðâ«u{#)G!L”z„fç½c‚Ÿ±{_íOŸ5Œ}ü¤?qɾó¯x7_Æ“‡$5¥£â›F,Ñq#Õ¿ÔZÆíZÈÓJ„x£C¾Ç¦]ÔÔÜÉ‘:@ï'uv¾`Äñ¸ƒX¸ŽQѯxä·u`åOs.ÞØ+g”Œê±š9M"¢?Ï:©Íöù1KrfÿÙæ®ÃG."ÁßàÌaöÚÍÒÙO]#vˆÒ%FOì—w‚MLM¤uqԑܽkº|ÝêúÇ‹Ø>fÝ'?ÖWˆ>ßs"5ËžbžE{‡u‹*{I%í=ÇDûìƒô¥)¸WÁ\€ùBþ­5>Ë[Ó÷œ ¾ÔʵI©¡ï«ýœë?š‚d“ª<ª)zUìì0¦{?õÚfvìBó¸Ð¡óî´ŸáÍ"…›ws2Žås¾åy1Å?ܱu,É3hÇù×rúÌ5±c¬¦NÎÇL›ÛØ;žÉwäö/3nŸ– ¾ØÍ_nw|lnzZ¸²†›32zbzbEÐ7Êý'‰ýÃ"#Ÿ•pÇdWbÃOnÀÉg03šXS[Ç Â±ÊmMmž<]—¥à×J™:÷YcÇnžÜ•b'‡i½X#Ðhçþ@²þÉ/sôÏñž£ÍÓ+¸£óû­°]uØöàÍÌóƒ“BË>1˜ßøøEcï¬ÒžX¬åúÍŽ:~® XYT·yƒï÷œP™N=<»eUu¯³j9µ{Ï êä=™ºy_}îÇÿ×ωþóŸ+Gó•„¹c’‘¦”_ËÜôÙbÙøÆE’›ÕZb`ÚëegÚ¯>uɬ.e(^ùÒsécƒœƒ(?jHI Ý“çÁ«L‹HÞFà= Í‘ËWy¶Ï"®–qz ×%‡é³öàÝðYíÌkì hˆšs>×Â|ÿª'6ªqT;9höý’Øèù—uPè’¶dLìC]Mñ…ýÁµ:sùm…mþøÚÖ[³÷‚0Ú;¥ë<¡™?AjÒè~–Q\kg³s=¹$wù’ÕÁ]òò«îž„‰™Mñ[½”Ù[Æs±²ÛüC‡®ãÆŠÿÔÄàêj ¯o‡<ŸJ4ºèÝ£‡ÅþOÜH%¶N€¾Cµ9 ’V@ ·äËÞ±7Îhaÿž'6Ç_û‘¸‹Ö3iT¿õ)P8èó î9îСŠÛ[÷œ9‡H`è‘ùmöÔåiõm‡µÇ¶s6oO è`áð;"(´k¬Ô4MM¦‰”Uì J?ªw#Ãì'rƒMÍžý8>dÏœ7náK¼¶IF…gr÷ØL\®ÉŠ:Ò¨ï'6i¶õ>ŠŒž¸†÷ž'æà3?øømÀ{N¤R®ã{NL=2Ê^?÷eg/±‘{Â~fÚmößÿþ9ñƒ-^$¥gÖ|šù ˜È-8bAxJËÈ·n„Ô¢?ptyB}Á޲k>\Ž‚˜Â¦ ¼dºÑËÞ?¿…¸›†&5×EI5_ÇYÝý ‹yÙÔ£6ë9Ë„í5ÔÌ<“; Ù9t°;þ˜œ…Xqƒ!€n ‰—eýs(’Yo™ÓuîÁ„‘>fó6w$¥Í°=iÅEÒ èöçâ¼>Ú(1‹¬&|ÈÎmpóǬ;n°idŠäÐ/’ÏZ•W‘µ/(y‡AwÉ ´Œ7> +¬ý¸¾bq’¢É“‘ó®9 ÄåvîØ"/\€ Æ2‘øÔïz€-á‰dêƒØ9 7™?,íša#tûaüž*š J}T7 äûØ5fºö\ú='ª&Õ¼Ÿ\¯Pœ÷œèœRüOŸ?þT p·³‰·°ÇO¯¤}ý>Ú6óì›%Ç_>èlß*†®ˆ(ÐÅW~®Ïyü²ÅbÔéQ;d:Ø:9êK°ôQ_yµ­qL:ÅÜ+€Û/ô|Êþp^9sq] 2¾îqM¥­©ÿKØèM Ø(€mnÛ*4é ý&ÕîØ,lU)oßÂ¥¬axäݱ¼ÀýcÍ)ÌÞ°uǦn~»]R6ÎþLy^Áx/˜ÛëÞ,Es>C؆ø¹eØ•ð—'sbšvŒ^§â*óäùXògá¹m³î‡Óy™›ºü~Ûù?‘OÝ{Nxï°ÿßsâÞ[ï9ñ¿{NøC€Y\"X·6¢uFäà¸ovN xx âa³7þ=© Šýöf¿&‚çÁ¶ç{ ÖO'ñW­È|øá!^¤)yžø #·ç‡×œïš‘d»99cH|C Q]\û{°¢_—Ø~Æ8 ctíËa>£yG!5=ï.H…ai„Q »PÝu5$ȶžm¥jÁ‚!jn™BÛ«/Ü Dy É¾>¬eŠýÅPfï9¡ «L]Ñ)Yë='N9®Á{N°9\’úSÀ¼$éÙ¹Å27ˆò¾¯z^“8:T¤ —o_ôæsÿ“áýÏ¢³¿;7báÏ1M,`9xÜcý´]x W²Dê‡vD™Í-3µ’ÏqV–˸C+€YgSCû ÷ ûŽÇ8Çaûæ‰ –<—pæ¾^A›º®Ñµ`ÅÛÄ’¼$ðð$?²}p.ŒuÁZ58uÔº¢[EôæMÝlo®ûúYËø§Ç^RMÿ“Š^½g(¥ÉýûpøwÒ’ký“}à'ðÔáCÑëk|îù·ø7è›»äÑ~Ú™wîÅár³éJôEÖó›Ú1&öìƒ=g<±%†ØÍYûm?ºÈA≤¾ÃY;fø£_­ä¹OTŸ¥?Ø÷œ¨‚y½VåÖ0ºÜ VyM·,ãUdA¿¯cöÄrÔCóxM£…ÃqäþŽ>똹÷“cˆ.,ô¹¿Âc]bþÇωë×ÙË UØ~%=ƒJϘOÐcE~¦ëï¢`›ÞNæöXdŒó u&ª¯0ˆœ?“OæWÎ*GS(Ù§êuJÆýû¨á‰Š%k`Â:óá#\f ÁÃwö/v¥P¥/ì2=ìð–"ëe¿³ï9Ñ…¤«úR·÷œPTíiF#’|¶ÚcgªqöŒÚÒ-ÿ]çÄjT‘›¹ë©*º”ùÃ;ÖæWƒ¥öÙ`œ5\«ðõrñ:H¤ä Z³¦:@ôY‰ëÒ¶'ó÷yÑ>o,´¢=ÑA¤µh'>þÎIâš|b`=æ™Êxñ'ä6î °ýE‡ëRŒM—Øe‡ÃáCx x7?IWq-õ¡h€ȉÓãON’ÕÅž¸&ç†ÁLú«`ç‰M¸Ò¼1Ř™8òSÄ[÷žT0kQõ9˦J•.êõžªVí-êÄùÂ6Ëý—½ýžì•ì*6ãsžs*û \Úß>'~üéOùT’odL}H™D7{ïæqŠ.‹7A!-?Ÿó\.~`È¡¹„ú…} ŸI›sÔ±tûŸ'ŸÁÁktÛÚfû è;ÇaLs•‡þ‹j> â#6èw È™§nƒ³\±)ŒÄb?UýÃãºÚÒÜ;°‰KµýW=±Ùž¸™ëÇùxÅÔøˆ÷^OrKÌÉÓ\Šùë&7©g±þů}§ãcêÈÑk­ž‘ÌžybÀ¥Mnp~E¡u-í^¯©Mäø1±f{Çá½`±'—ô‰l÷ÖÙ'ãø‰Ü²máñÔfjgÛÌ'6,ÞsÂkœJº¾¬‘ÏÈ÷œHev?÷Âì·ìuãF>û>²½w-“uxÏ *H]þxÿ)`߬»x%)Ühw1UxôP•™çÙ²§Áå…˜°üª™ìTû〉Ÿ6xÇΜMüŽsp‚¸ñÛF™€p.¨”žu;ÖñÍ#þö#`8'öáœ˜ÏØðäe¥.¿z˜òÔ!²ØÈ|]Ì7‚©²ø·>\s`œÑÓ7>'¯½ƶµœÄÖþu-yjá8¦–ž;0ž›ïöcÙì5°öô7<ºÀƒýt|ÕÁi]¥t^ì>ÂÕ?õÞ£ Îy5u¿ǎo××r…¢w¾ø£?Æ;ÆÉc#ÿ¯uøüÌÅÜÏz‚›\¶ŸæG¯82oÌ–h·Y»Éõ='ºv}Ïy/DFá¦î<ñôÚ½çDêä­•½ÝªU¡‚yîëÿôsâ‡wQ|Oa¬ÓmÛÂÜüL{ÌÛýý  žoxкm{(Ò ·7,hÏÇÚÞŽÃzl5êA¸îwlgœ®}3x±á·ùø·¢FÆ·3¸å%-A|‚ˆñá×Áá²[‡Y³¿Ö3~ì‰Á<‘Ý~ÆfËóÊÚq™~[ò!B|ö~ÇšÃûÓ7¼~b“ºX;nûþn‹nEýrÃm¹9„–ø›.²<($/¬ÑðH*1y[Ÿõ2*6áÍç6GjŸ`Û®“w.Ö)ûkxâ?5Êzcä‘M}æÉO|š'±ØŽúÚÖöq?‘0¿ó´~ò2÷ÄŸ¨?k5öæ0Ò¾±·Þý^ã¿ç„Šåõû¬õÔó='zW½çw”n)îïÏ9¡àd6 N}H{!~~C-:‡ÊÓÆp|˜ßÏL-˳ԧÙïƒä©÷<¼[ë·lW²àøy9cËá÷ÁÕ]Ñ0·lsflœ%¸±Å§ëáä¹'îÇlÒñíxw}Ro4{läÿÇÞ¹¨Ç–ÛÆ:Î(ùòþokÇsðW¡pukÛ9¾4·´H…Â…\ì‹ZÚ‰qrHžÔux\/tJ™ÇÖLÃl!Ä‘yúñ•ºÄO>SaF®ÆÎ<²páÃZ8ÓçÏöÆ.òÌãyÆÙG–™rrí‚ Ï¶¿eßÓfÏûÔtë'·Ä´cÜþö8˜ôÔpó ùèÈußÇßý8¥*QÙ“çðzôÎçæOmƒûœÙ‹®/UôšD>g§×vî£Ô>kîšæÞùœÔgö™ÇÜ_ÿ×çD½àÅÀùn¹¶ÌãÙ n‰ö܈$ÆM¹›7Ã+~cÜ5SøfÅvÇo³ñ3ºÈl[â¼7öàÀØ~¿³ ?èÒ»¼ô+fóÏßaw\ä?-ù G0®ÿó@,¼¿l¾8û¸£ ÐÇ÷¢è¡ó¤6ƒ³Ì€Ü̉Í\“Ã=·Ÿm?¾}Èç­nçœxßmÏ >ýŽ£<ÝŽ—íÃúõGŽïA²¾×ÔdÖ¥FHó9ÆÖãË3I41_ôá7jßÈrÌ!|ç=µŸáÝñ{ìØŒ}Þ£{rÝ>·ŸÔã=7nj‘œ"gþŠ·v®Ÿs"kÿ9'²/ég_Í^™Ñ½×žûwloöÿŠçÄ×Ï?ÿAË_iv­¸ÝFÉ*9ð\¸çkޱ~ì¹Ñá0føg”xøPˆOÏD61K<¹„k¿ãàö²É< dn¾p8¾×:8ß`“ÿÌ3zÚ§æw¬`Ãg¼ãþß>±Ã<®¾È™ëä\ñë¶ó£vû¹<ë‚ÅØ?ë'­IûúÄ&&Ô÷úx¿%ÆM2‘Îz[’|{vOc¤¸]‹W߀ÏÓŸåßÕXòÀLïksù>ʼÛì‡gÞ`Oð‰ÝØ;žgŒ±ÁÏèÚí‘S'{Ç–ú:αw®Ã©‘8Œþ…ËXbÏ#²‰!Xú»žHîw>ç„kâ+ë@wŸ:ß/€X[¯¯kd^3¯Ç°Î ×+{ýYË¿«Ÿï`~뜨?ôu*?7Ìið>ÜHÈ,´7GØr/ö+—å8ºÝòŒ§÷ äS¬ïì‰#ÖJ¨ÒÁ'—ð+š1Ö >H6Þ6Ä“›ë'¶GgŽÉA E9öÁºg1‡spÛbæÈÚÄ7z8ÞÅm¨S«ïâ †Ù+wLfqlðÌ“¯ð¿cð›†ïCr|ió`mެOr^¯Oø"O>Ágî>1íØž£‘kðŒûÉ4~<{RÚÒgFSŸÔÊš¡Ÿ@‡ÏËc\SIÚŸ™}Mm¶ŒqüÞ±N ³ï†ÛX¼Òß;®`¨•ѾÎd⊠ßpÎ=FŒßÙßÔöç^I.á™c¾¹ñ…~ãmnfŒÝÀå^m‘æpLh L½ƒLÿ9'ÞÕæ¹®yÖç^wìŸkïêf-ƒÏܽ×/ë@ÿºß¶vÆð…k¤ŽcÏÁ8¶Ù3³½f/nïã=¶–q=úOa’ÔU‡ ùèFÀrí¼`gŸüY´‰çG›êI\3.jáM>É!&Ö`l11ÍœÑw±LžðxQÂi†Ø¢ÿqm\Ç,¬­½‰7Œwo Üá·~ç’ 1y—s·]Æá¶Oã÷‡ѧžöNÇû`ÆöhaÉdõpí¸yûÜñ¹Ž·.1ß¼á€Ö>KlÓ“?ã4çq×pbÎot ·ß»~°$ô‡¼ˆcì­É‡ûÄ}bt^àiÉÝuaŽþƇMìˆÃͽå[˜/¸¦=ý¡q¬ôƒ“qOßûµ2~oÛÍ“1äŽÅ18Çh£cŽþG|“ƒÐ‡"¼É'9侃3ML3åœX>çĬӵYÎBŸïºe-Îbi=à}èsN¤®®Mj8{ÞµúîœøúÃ~®2¦ û ªCP‡F-Š_²h·”e«€ÌIÍ̽u€ÇƒÄB6Gø ±lÈm9¶áOÄí-Ö›,‰zqÕpÇšƒ?±®XÇL¼šï0”‘s¸Ä'~:ŽØ4ßó ¶½kË‘ï@Ž~¢>¾ä>Çñ«>”Ø‘3F÷uLñ(Ö¹Pgì{æ–Ï|l<Š]zKã=}¬žóÅ‘¤K´s‡7{),»®Ó›š»“wÜù“ÿ»8ïcœšV_<Ù>Çä9×ü|#_>°¯¼øGS¾ÖQʾÙ3­ÚcrT]Jަ>ƒ¥LÞè½CC;r7—Ø6‰ /6ÈŒqk`ç ˆša’¼²^#r[Ž-ÉmY{+vêåÂÛ3wò{Çú9'\Y0u|ÖÏsêlœ÷ÑÌ-Ÿù)|b—~øá›(nyw'[;–döLr)¨Þ´ç½š}è?Û9ñõõ•?”^{ßl}g¼ª%I)n–âY,¯y´éC¸ù_«Ÿ2±¤Ç:~ö¦°/táwæ¾i9Hò l°cÿ (Ht ç­UfÎA>úWç6„š~~;ùúrè¥Ñ…·ýÞµÄ4³ù£³]n°°Ü¹{Ã7òªq«vÛE½ºXØW î``Ý\‡Òë+(ßÛxMw.íï,èý?ôÙ3® oª>yP‚m?Ps8H“‡m´÷ŽÁ»ãKî•KÿÁ öÂìã=üñ¬¾Ôø¹mQÔÒ•žVzG&ë(›tOïø/ï/üMì/j âWµ* ¦V±°ÏÔ+ýÑf€å{˜ØKz´ñ³cL~± !˜û^!·Ï9AÍw­²žÏÛøsNd'ÑgÏ}œ=8{2ø`g¿ ”Õ„ IDATÎY{ðo|N|ýüÇ??N»µÿÜ8g[€? ß÷bì‚ã€ÑWíËò'v-wm|sÁ9¡tL_Õò{Ú~P ïm£™ü8ÿÜ,œÞ¸>¤f×¢Ô?/HüàØ1`Ÿ‹LI•>‡|ûCmD²[ê±e;'û§Ø|iˆc¤ŽÏ\ À6±xL|Ï+±Ó;r…°êdÒhŒ²,ƒÄiWZê´µÖx-<꤃z"¨*l\[ÖÁ]_Ò(ÖS¾¢§wÝg/XÇ5œ{Om» ¹r¨…ÊZÞì[&Ïð¬ps×ÖÊXó_K=~—ïŠÞ¾z_j–…©ù3–ñµlŽŠBÉd‹ò•³ë„ Ÿ;r Ÿãùœ®Ô\?çDožÞ?TI¶ó{f<ûR{-›O¨ÛJ–ÿ†çÄÿ…è9¨×ª(rÿªV ýEªÕÍ›²ëPˆ½ îpJâ‹ÏXÖh Êæ,~ÛdÍMŸƒæ˜-ŠM¼º ua®§ÿZŸ¹?zÝO?íOÇ'ŽbO>lünŽ1|Ì;Ùêi&Ù\HḑpÑÆ)µI£ƒ[¾ñcÞêëŸcˆýßî‰|m˜‹{_y¶ªÏ- Xbïó¶v®‰—‘‘<Œ=¹º‡;2ûÞþ¨‰™¼Ž‰_³F@¨ëø’„?¡,ΙZûŽepµ< \xýËdÛ Øw ˆuŽ‘'&®V£%æò´7~8]WûºëçØ\¯iâv…O,Ÿs‚ªº^ŒöÒíµ¤–ŸsâÞ—Ÿs‚Û‰ócê˜{úï}NèG>/Ö±>mN ̱½«å,!PÞ9p#øfðƒœé‘ÑŒ ᯿þ"æ,©n˜ø°Å}½ùJçqnFãæ{ü$†ä?ïpa —k“BXΕWÞîÍÏÔ 5g^JóŸ%¦¥£/ "îaP95ˆÎV^«×sE×… ûkŸØàrV$ö½ëAÌOFwžˆÈÌ—‚Ýÿä¼Âf×iä©[g+xÌ„R¿ªÆÈg¿ÎÞ†{·Þ˼ý‹ž½hUzf±'‹_ÿô cëIÐ{Vö㺅Ã÷öFp ÓõØÄÖ=Hô¹—4: h_›ñ¢•²Äª˜kì½öŸ×ÊQÚJTµÏ9¡2x}gÏLM©¥×ΟÌü\>çDJá½è=ŒŒsÓûÐïºW}Ƀþœ³çr&ÿ¥çÄס¨Š{Lyù®kul`˜, ÿªyW3ÒØSŸÃv y› 0EÜD1Fì’Ý—Ès`¿{Æ¢XM¬Î·ó0ÊÍei®IKi)Æ¦Þæï±«EÎeM¡èêš'G}úÐåàu6ºRè$V Ä]rÚy0.jξwìfë¸@‘3Á®Y/óX—'6NÙØ­·o*áæ9±Þ±(Ñ1®õÃRÿUg‡&€ÒWlª9 Æñx4Wû3CêC®wÜÛÃð€É½×S¾‰M­×¿ÇDè–ž™ÇñIŒÓãðåWˆ©šd#ªS¥æ¶­kRâ…‘ m°ےßõÙK5–Óæ/Ý{ç»ö’—¡ÎþA%GŒ4ö”š¡µm Ÿs‚5Q¥N¯2Q©(jü9'Ø9Þ}ŸsÂûÅw¨ï¨¹µN•ØAõmÔóœøâ•çi²ïßÜ `†fl8°BAïÍzs —$âêýâ·Kɰ—÷„eÏ™æÐ~"kY‘ì›&7QäâÎ'èÈŽ´˜vÒLÝ¢ð+uñ)é–˜ÈP±§ö›8ƒ9ôrc ñ¶«*LYÄqË«"У²öÇVVÁŠƒI<ѤÌë‰ >Ïÿõö§ˆ’Œ é¸v|Y“ñ›¤/BÕÐSɾ¼^Fǵ¤ÛÎk}ÌY–')3—N<Qd¯½tM¯8ºøáGÿ;Á€8'žˆÛ¬r*l Õ“—žx ?‡3®@Œ"î5—½]£ß è=Ø&Äæ8ˆ+B윧%ÙÛžùa‡Õd|ç$Ó¦¢³¶5ÿœ®…ׯjË¿.OÖÂ}¯C— òèbÃú9'ª8ªáìÅ*[×Õ÷5uÞ-u´lÛý{ž×š¢ÜEÛäÖ¦ˆ~ða zwº°Ôzl²YѱñùF&[¿˜”ìæŸ™í‰Åvhì‡,ãX`ý ÉÓºúÆà³ nØúøS‰»{nDçÛÝ.®Aèj˜¸èG>Øëq Âp^s„X· $ã˜Üí›Ï'ŒT^ü½žØ$>|y ²Îıcé*쮫S[åùœÃZ-Lß5I-ô·ªöí6zÇnHÜX_û¯}Ð{MbÊžÚöeÑÆîРβÔÙOï½ì+”òµËÔ6fbrFM†Gn+ÂõìQ?óÈFÆÄ;yÙ¾„‰`rœš>lEÀ…dbw„k`.üÂÅ?™šeì1D'l ˆ[¶ŸsbÕ”¡kî5vm `=zTCë?çuðžóÞê U7gB—Mûm×ÕãÔrxjtìÿÙωþßO ”XfÏ~Šc 7(²ØÒ½](̸÷xoêØëðy}0d1üV§p,äº)ˆ6½ÃpB1Êi3Ç•µqm|‘èlðöÐØ&ä­WätóÊ«Æ%€›æì+s÷\Ó\3ÛøL}yp÷Œq%9? ›¸íxhí~ $µšnÆUefö»—°°y‹3Õ;îÚ_Ó_!²EáulE¸ÒGLL+ÖEÓÃ[™š7¶7ý3dz÷Dª!t(+¥;H¥ØŽè’¨ñ?óGLå5p\^óñµãóŠ£æ;‘x¾÷19gR‰ŸôhûD‚“vdÀu5ëj1\È2·t8]'ø,sÞïðÛ'u)üƒYÄÄè?‡¯*"×1‘ÇqÛS hôºN;/ÇŸbÿœ^Á^ÚÏ9á­sßKÙ²³×½ÿÙ¡ïöüîaó{¿gßk3z?Z]Woò‰£æ ûúýï{'ïê¾™¸Mr8a¨¯àz¼qŒ V¶M7ærììlCzéÆjQbï¤Ì<òmùòÐñuÌåHž‚.0*ÂÃ)[?êK=š±¼m&ÇAŠ£œË?fÛWMÉΔß7ÕõP«RWÔãOàÿõå@ÍCŒYÆÍ‡ý9´¬º+mcf¬Ñá|ÚXÿŠ©M'Sj w<ÆLW~ÅtœÊÞ˜çU«u á|úÞXc¥%a^;–ƒi.ô¶2–éÆËa ²ßðw¯ŒT¼[aoÎ(l_X$ÇhÛ‚M<É(<5WŒí±c3oËT…ØÇ.=|è}{.E(&£ÎÇ5H\Â’CáSÜšÝÚ\ÑÓÔ÷zÔ]ºb0rsÉ$dmoŽòñ9'T°Ôý¹gW¹¨º¾²¯\Ã,²×Odç’µr¤1é5?ŠÞ'öÙ{¤M‰+ ÿÿçÄ˪$ªþµY&LÁtƒîBÏ8–ý¡1n=Ø”üTÙ °°Î‚ÄvxrC¢‘ïê_ÍÍ)¶Gƒ\ʉÇÞ\-€±bÓæ| ÇÿÄ€fݯ¿ôû“:‡§vIU9Ö$yL}xvçO—7EQ;{Ás‰:¦ðɃU¥Ut§†`ì'5qÎæ!îŽÎpÄAûzw` mLBÔ½ÃQÍ÷ÏÛñE]œ¯Ùˆ…µðzØþ–» wNŽÀWË·Äù"OŒÏºÁ],ÃvtS/ÇáÚf\³2w.‡g6DäL+&å¯I]†Ãüã;òˆ{>>ƒ¿biõÎÉ5@±ë sdãÃXt4“…Ë2XàAÛ΢h)0“­à®§¡Œ=ª»@U(ûÿaXEzxb;<;Fù.ˆã‹#öZÇ[‰£M.åÄc×¶dó9'Rt­ÝçœH9ØÞ‡¹™gì]Æ>š–ýIî#ä£#Í;ò¹‡¼“ïùøp-¯®ÿ/€Äý¹ùâhn“ÑMµ™o2dû†¼íìð‚§9èño¹ƒÞøy@5bt)Âm{Çó rÇêEµ_¤ð;˜É9¼u€á,Ž 7¹Û.µ±Åº&¿‚ EoÃgï×iµâ™¸6GÛN?’>å!/ûÇuÆ–X÷ë/Ü2Ϻ¦o•‚Æo©¾‡©TEQç§š²«yl²©©#2z¿uçý„+ŽB†Ï~˜[çy®“óÔâU‡¤ÞB®Woà—c¬ÂGÝÛͺheâJ¾ŽÝùÚïëÚØÔ\β²6|;Fli©©&YM¬ÏoÞX¹^k„ܶØTeO½5—±mgn$×´¬‰š.ûŒë Q]Ëð¢¡%ÿŒ;3H7~ß‹BsQKŽ·­kL#Ï46+{©ÍŒ'›ΉÔLÕ;%Ëúg }Î ïU©¶Û‹½”óÑ…ó>»?g†rš÷£÷ë÷ç„~ #nh/D?´S“½”Û‘®ï"ñˆÏÏâÞ†yçš›%x4C"´&¹$¶ŠÖP+zúp?ÇÌñ1ñ ÞuH<òS:—ÚWËßí±j‹áÑ4_aßýÁjfÆxjW럾ÆFöYèV8÷uôñøãËÜ˱ʠûöw.Á\8¯%{Ðâ˵ÎÛ¬±c›\ZQT’,_ÎÝO$x‡â~ Ä·×8}â±Ýâ¡„í‚àOX­@ß-k >9\b8èÈô5ƹp¢È~1!Üè‰ êý«óÙÛN½mØy7Ë眠 iÔ5uËÒeŸ¸Þ®{êçʦ¾°X3’Ï9¡=®{kó¦àTLâÏ9á’üõçÄ×Oÿyÿ_Ù¬©y¾ôÞìJî€šÚÆ‡OŒàÍ'ó}Xf1Dd²>.=˜›ÉØöèN†L´6Ô¡e57_ý'é"4Try<òÜÐÓ—þÄC̉w Û:7ÈR’p:»nÁÒãÇo›'OtøÊA“ÒIjM| Ë8ê§ó;î`3sô–ÇÃ~ð0kpšÉàx+{¸Í¯¡ÆÞHÅê•Eî;$Üì1ª>ÃÒDNEÚkÁ{ÌÌǃªXt*-ð²)çáwø3:qM0ühåýGw…ÛÈ蟼[–:ެ3LjÊŸ|³NGI?±AÆ7µtÞ<@Nlîáò8oyÓouQý2ÁF~–` SGD{l›Äfx?ç5ùœÙî¿»R+ts¿²;ùJËžco ÊõsN¨<ë¿viößÈ¡åà åœÞ‡ŠoêWŒ$Ýìv!/Z¸–B¢Z*-`z|ëÞ”#ó"7¨èêµ7FöjÏÁ–·>ŸþÑ ÷…'›êÖù0ÛµpþÄõžpóÌØoldY—è»4˵óN­…+ü>”£›þÎr‹~‘¿–ÙؼzþÎns0ÎÀ×®:Ëî=oi¸œõˆÌR©ê“Þ>,‰]?>(j 5H×Û+¿, xS•u‘¯–Ç2Ù±›Z# 1vÎÍ#Ç=¾&?ì¶›YFä5ãËäæÜ=·W_©ûØ:#"S æ¹ùgbÿœ©Ù®ñŒS×Ù‡[÷9'¦¯£Ï9ñwNÔ€(^^Épã³q¿Û¼Bb–3EÚh޹¸†k$ÍaóÔD?òÍ)± ÇÈ*Äãl=±0^y¿ÏÓøÍ‡ïýÊ Zì7öòwbsLïððŒý]Ú)^ë;òó“‚ÉÚï~çwu†Ïrëf¼G©qb»uÔZÖuyõ·±¿5&&|¼‹íik þ\·­'žÄ¼å¿þúý“ºc¼sM\[¶ÇàsäéÑ=[°[Î:ò_G÷ØG¾öåýöŽ™yáŸÜvŒÈÕj°åÈ›¾‚_1¶îsN¤F^Ï©“åŸsâsNäKïq_ŸûmîEßÏ>ÿdU·à~ܺ™<³/߫︑™×çÄW^Å…,¯0žÎC–d® û`Óã܉7»øy×'Ú:¤ê Ÿƒ ©èžœNÊœÞxÛ_ÆéîëƒÚöà ø+oÜ– Í|;Ïã?oïe×øvn®%|ΟJ¼´QŸÓz¾y®ÄNNÉ‹í‹ûè NžƒEÞñH9¾·Oð¼½ÙÂɪ–OÜžXjø,žeœ\Ío…cƒŒ–Ø<û­«ms°üµÃ÷ñÐE¯·û±ãÛï>èó!Q?µIm“æ3×ÄóÙ ‘¸S¢°f©‹¹¼ÞábŸÜ‡;µ¼}Æ6.>çÄÔ‡õÌjmYú’¥¦^ïÔUÊ.ãûqöÇì­ØzÏÙÛjí‹kô9'T —¦ ’5Èý Ej5eµø›kÖ6=°•sâË?»tæI0p×ã)ÓaÜ{·`و´Ì;sÂd=×ý¢ ¼,ħMýX(ü„ãWüF?|?9h=05 {¸ON'/âw¼@³Áj$Kdž<1®àËø?ßòQÖ/1/Ÿ'&9zw)Wæºbà½kü ˜x'6Y;I.Ž'qKÙïlj_ø?D²ZΙ7El›ká¸Èӯ⋨ýÞ]êÛÙOt±€?y=eS—±…Ëÿí*qXŽ]|…cúùÍå.ðh5"†~g-­eåÇ~ø“Ö©5J¹óVð%Ÿ0„?~BÌ›rÅO~®÷1lisì¼e¿öÈèßÕä)#¿Äÿ9'¨ž‰:yo~Î ªr6‰'g?g?ùVüœ)·QßðÅ9ñõ ÿsYó¸ØlH~~î@>n×IQ÷9<ƒå¹€è#ñÇüº¯¤šL'Á¢Û›à]ØøsIGûŒŸ¸ü…ŸŸùæ¦W­ñžäš_{Ö)þ,÷NÞñ ÆäЉn}ü¹¿°?2rOÆÂ¤û#XÕ õö[ã¬AúN¾€)=F™3uÄHøìÅpc'ŽÏõµŒ›“ØdÉeǤgK‡çw\È"÷¾)lÒ‹.—öãLŒ=uS1àË¡×ûùC/;ÏÊfŠ(ƒçåð ›{°Ê¢öyNÔø/GÖ¡êt%ÀœaéÃa ‡Ë&˜EvRsÀ€‰Ú|ƒ=}Šñ";‡ZC)‡aìâcëßöq±6?òŸêGèÎ÷öwÿî7ˆ©Õ3NŠQŸ´®Q¿TüýirÆ;NÙ¤˜”±ÂÛkç<ñ rëFûë,ü Îî`´¤+§?»*YÁNÜ(W¬èÓòV{°Y'ëÇ^‡­-Ø-÷ëŸ~ãƒÌú°&[ŸÚ¹¦¿HF9ŸžCÿˆ;°Í‹,<Ø¢ ÇÁbÇ•qôâxYìÖâƒsó]?·~¡Cîví5{aa{ìÌkߌwÛsÇÆŽnc7ÇÎ!rÉz?k¤ð)­Ïíãã±w{Åø9'X§ìݬÆçœøÿøç9'êô«6z6;7»±¶áh¹q®ƒðžw™ÌMôÎW|s¯½ëRÔŠ‘·kÃñîV¬9Yˆ{Í2‡wæ¿Å=±nÎ=FýÉ©lÀ<Àº¬ha­ï›[<©o—‘Úd6¿Ì cÎáúë,s)¸Kÿ¦´³~Obµ}Ý&¿ürêNg‚M¯ú–úw¿ìXÆšƒþ¬AÓ0ßµšÞØá .õL9ƒÌqúÉùÅÿ‰Á å Öö+Ææ8µë˜ñË¿´Œí©uàž¾ÐKö?bÈoJÈî& ¯käwµÀ<ÛÁ/ÛØ€ÝcæÁŸ5g9O»&’žü=käãá,0ãÌ)ÅçœpM©É³æŸsâl¼Þ]sŸJÀ6«òy#ñ¾“E5t[îÛgöàÙ‹ Ø{9¨+/ÂøÇ}§yÐÅ<ȱÞÛ–XׯäFž±}[¢ë ÒúK€ÂÏF€|ýY­‹'ìŸØA¢&ädíÅÅŸ‚"uq¦O{­SÇù®˜á´‡ðe¶û&¡jgH2nŽcƉãY§ã/¦õª~Û†\{©è¼HÉÇŒ‘ûY4¶ÁÚ6XÇ¢úÅWÇm¨4|WãÄ´uÇ®ÉqË“ŸíìØ9 êÉùœò/%îcI.ÛÝ7@ñöÛ󈫣 ñÀœK í>냎øðkk ß+{ݰy6¸^r}‚Ö|ã3Nì'Þå«=•üwŸqèòù‡ÌÔ?÷ÿ°®E#²n5Uœ}Þ0¦íØ3—¢.‰7XäÈØtÈŸöÛ7Xã±t çžg|÷^ór€;µ×8,§üu~áŠî,ýçœÐš¥>mO}¯–ýöì¤õø7='¾ªZ= —ÍýrC‹÷ƒàáûŽ3òíãÉf7ôh6^­‹ÏAÞ#°±õÝ»Hí„€Š=”}ÃùÙU!kê¨h‘%¯à9•žûQøÏöW¯sïØ ÷Ût6ÿ"ý[X^øøwZ,ªÂÁÖÀ9%7÷¤œ¿-,gøPgÞµ"„Ô UÆ®Ûý }pé‘í¦åÉç8>¹m`‰‘®Ä‹|x‡GàºØªócN\]Óp›>¾2ß=¯öáÈ7:øž6áN¿9þÜñÓ6y*‡Þ»Wðð}Çùöñä¶ŽÜG³ñâh]|ò-ÌJ ŠXKú9'´¿T¢.Î];ßÙÓ‚ômpd¹-X›Œ§Ð½žYW÷§öW»\œ›£8?çÄ*RŸçÄy 7ÚÓ„›JE¿î.n‹¾£Ê 7L8žó''s0Á¥ýÆ£‹<=ú=~7ߌoìýCw6ÎÎe`ÙM“ãÍ]v\ážPÍÝ2!vÅߥ›òN]ði9‡»#ÈÛºÌ^6½œøG:F7 þ¿Ñu¯Õ¹•UÃg-ó³0™¢ëZÜÒ?–xÂõ´Œ>ýSÏÝÞO?ýÇã¯cvŒ·ù°Íš¾ãlû@–y¸ö>Œ.¶ïú]oð–Máܲ!7stèiâCúÖêåžØ9EŽç|G’1˜àÒÇ>zt‘§G¾ÇïæÈv»y°ÿœªOΟ?óнVìT7öÃÞ·HÙ;ì”5Ö1œ?Â}§Û¶Ï=Môéßñ Û¶ÿ çÄyð¼Y§(,Ìãp©Õœ%½KE‘æAôûÅÍ‚>‹¶ÃŸ“ÞᜠþG}-=Øk¡Üæò†Ü6±ã «_ã¢ÆÎAw6³zà˜’ió·nø¨¯¹DÚ9êžàÙõá,ùŠ\†ø,±.³9QÌïßã&¼{M@½oæ±3E¿Gº&—+Ūíe¶ K¼ë ÇsŽõw-øôOœËÙþCƒToÕFÅyš¾Ìƒ">©ß_s8ž½yöš϶ýF‡Œoâ¥eÿ=í·mt§_{ؼZ¨Ã… ì¼#"G—Œ}x„9¡%>Í×›½'ï5 |`ù¾¸røS¶ô§c¾Ÿ¬sk«·¥ÞwÛ&v,å眠ˆõMíÒgRóìÛèv½©ésNm¿kÁ§âî=–€ŒbËsŸ™æë?Û9ñEw‘“Pz ¢o-ZIÙÔìì7mË)¶xá×êbê"Ç_¸7ÕÓ—L³VòË.¢M ˆñ·Ãb®íåÁKŽÁ+:ýü‡<ËBclÝsæécæe—<#K?¯ÚHêŽôÁ×ËJÛ° V)ÈY¿UÀ¬þYA^ì–4ÖüwV/áÔÑS0·j-qíËñ£`°|•³žæ­ºƒ]ä1õsœ¨Áf-¸†GWüÏ5Ù6ïüŸª&F×'Gæ“ÓæÞã ï¾<µ)¾âwc¾“o̶^ë8qò V¥ßF=–í„_Ò™œJZr¾ð.ðú®\Ôª{W_t[¥xk\’wü…Ûľ>})ô,‡N.»øÂÿ09¥òìÁéƒ^Ñ}Î Õ‡ú}Î ï/öªZo7öÑÞßV‚É~¼ï£ì;ãÞ]Ù›aùÛŸ_?ñÑð7mÆ8ó×ä:¸¾«Œã0¸å̶íiý)h áºp§Ï‚šaÔöÞ¾«`|í»ÄûcÜ,¢í;IŽ.½߬Ü$^0>hI?â¾,qêV„+¸®¶I.ÿÖÄàõ¸Ö*q§°™¿&v½|ÇñKýZMšêÈA\.OMOî \w^ÜÒã³·-æ1Ú×Ôú],Á½ÖÕ;Â’=má|¦®g¿m³žÁ<ó°ÜõgŒþi3¶ y&·?×Pˆ"ÚO¾ŽÁ$žà3ßœ ~êb\U…Ыmüwc#U=[×¶QLZ× ¨ ¯¿Í_“ÄoÄ}Ýuý1n|š¡“üœUŽÇZu‰¯õ+Ù^_Aª„û£'ÌçœP¥tÉþLoÍë9ñõóÏ?—Î {ïr =[Èvñ‘=çØå&›ÙŒçíÔ騉¾–Ï é;îø“~¬‘§·Gó0>1]¹å wûŽÇõâ™xŸØ0í †”rÈA­:fŽ<¼YñAý6‰ÂØ|ñC¯hª»rf>íÄpD©Ey]9Fâ9±%‡ª.¢WÄX~âŠÁæQ=ÊË’¹~St|ËW‹ãOéBŠ£!Gµ9â‹Üh⮸2G–Ü3æ¯h¤Åþг”ÛG°îc§9\òDÈÕ’ƒâ© ãÇZ®®rÞ®ßk¶m÷ßÈ“ãáxŽÛ®›Çòß¡îÚ„!ñÅ7rdϹåmåô$øÏ9‘‚¤¦l7—þ,€ ©mÖƒ}ÊÿœÞKgÿuÙRWS¥boÓ¼Ç=ö½÷¯|N|ý÷ÿ·Ó&ËÕ¼J° Ææ’¼_]Nqsÿ†&½NYhŠY6ªl”ÃèÒ²Í"ÚߺVè—îXg@œÎ!7 &vti¯±XsêRÓ͵mÃA¿yGœà[ IDAT¶mi”“°ãvL;§„¤i]w eÒvùÿ‚¿é‡øŽ ùÄn§ç‰Mñß1î–ýÞuݯáÃrìÙ Dðç5rÑ·nÒ±‘¯®EWƸåCkÕså¾ùÌôƒšñ Wü¬¹m»>'ãˆqjJÎ*ÚA]—ºjžlÛw\®!øNšQÿJaMLM ¬‡ðnnT´w2äø~¶§ìì ¥¢ò^È»0á°ÏB¾ P±à÷á»AŸs"•\ýYÛ®+]Ét°ÞÌ{m>çDÿj®J⢰Ÿ÷žffþïpN|ýñ—?z³hßܯìØ;´ú0EuõÎË ¬ÂåC{6æ}„ û`RpSo^ÆshéÕMÍŸ‹–XÎN7‘®,"KÝáœ\b™O|‘K¬-{‡QþÛzlgîœ9ähùÓ²ïþˆ‰m›×E‰ØT×p¿×J9·¶þ™Kè°I‘À»nSûƒ{Ôy8}Ü8Gá»ðèmV¯HêÉ#¡½¡‘<~f-ckM|Ÿ¾øKvw)Œ±Ê ‡¶'FlÝ·×€ˆÕkG¬ùßÝò䈙›H½ ÎÓ60«ŽJ”XÁ÷Â/·mz$Á¤O¾pñÚGtÁb»cÚú`k×Aø›hWNºÚáLý‹˜˜?ç„+žzx6²¬ÁÖ#›ùÚ»Ô½ÿXÛçœH ¯ŠöÄ5‹&5æ^××çœHiæ¼®{þK÷vŸKú0VŸª-³AX¢cfÇÃ_08 Õ‡ 7ÁSÝ–mŒ]9 Ü@ZôRäÀ2Æ×è4coÔwì8¸t“­üÀ‡‡TÁKlÒÃÇ+Q—£,È£þQÓÄfã·]xGžZt@ –>‡­c¬àªu)CO¶_„3>ówåñàH|©Gy<>ÃE¯Z«¾;¦ol|Ç_æâYõŽMb('öÓ ÙQ.põ„j‡îâo•k7<̉ý§»<×:&ŽÝïw=ï‚‹æ'‡V2,½p$éûÇõéÛìCC߯ϲG©ßò+7Û§¸S‡®×çœøœ-xî+äÙÙßsâ®Ö?Ò9¡¿´?\‘ÅÛ!û@Éá9ïÿ?±Áa›_‡Ø²Ã™39ËQ<…ã0ÆO|½ò™DgV™£>ènVøNcØ>ýô»ŸŽŸø3ö_øá19ÁAó¡­‘æ¾€_1·&ñ%û2Žkb÷¿{bÓŽð¾~Ã>|¥Æñ3èñ˜Émj&.Õ›þ – ùŽÃŸfÇwr6IL©é©Ë8T-2 ָĒH݃.BÂç™S‘ƒ÷Ä‘1Æ–{`³ÿ<¡Ûvå«þÙF^<Sù6Àv/W»´¸í¼.ž¼Ö, äÔfg&– ÒÎ ësNp?»Ù?ì‘Ï9ñÏwN|ùpžäÝÎâr@ûŒð!ÆûŸÍ]zmvÌ:ÜÑbãÙ\³ÁÂ\ü)ÚâÝrl„/—­´†æ!þ•{FþÊþ>Äçã¯;ü ‹?Ü>P,þc=‰ 1\Žizç|Ç}qËЗÉBÚ¥ÿ»«såçßõØ|åP.ó‰[b&NÇÚ±dÑV|ÑŸž­Ú J¸ý )NŠr—W0b‰â¼= Å¥/ÿ;„Ե”Üsp¼;c™ˆëì5/Ú<á¹ä=!ÖÄaß®{°É9Ü™£^q]=é- 0Ûd¸_mÙ!ßvß]³°Ü¾°‰ÝöY¬ÒÎ ¯MꣽZëé=›*±¼UgöjºÖyì×ï`È@uϺj¿z’õ°eáL?= ìr­ÎÒÏ9á:äLp}ÿµÏ ý€l’l>6ÏnÞ¤]6í:]ÇnË‘1”ËM)›mg<^í'þƒaQÂY0‰áé}°—îLˆÀ?tÛ홓O…znàæÐ+Ytܻգ?6I§| é¶óKÜÑÁ™nn¶µP<~ƼãJNôâ¨bþ%Ol†«“.wÉ)11OŒÑ‘š³›…I¡[ ®c«XGyþ>ò >1 Ú£È/Îö-šæ +Æ|+ÎÕ£C¦²wí©Ëy碸,vÂ;úw-~žo &¦‰}¬ñóË/S«`b“Wê‰g,p¥åü¨…E²s0ü™ÇOöUäÔ#+ŽnÛ1ŽÝ–ÇŸbåò&žmg<gO1 †ÜÂzZbxúGì¥{°ÛKî.öÑò©P]›XãOϪ?ç%Q}zÐ%ÒZ¥þoöÄ©oaXó´Ï9‘J°ßûœøÊ[õSPoÖ½Á5>E®®8ò@²í¹™rÎOx寋|î£90¢£p £ú³OJ0úþ•¨sPô(²¿ú_'Ü©ÊÊäc?ñ¢õáŸØÜ»hãklì+r0pû•ir_Öß×ä«4ëL9óÆmrIn\|¤Ý½Xm¿ê½ó9däsóG;5@òÄ<e…¿j‰çÞ‹Ö½¿>ëöœcµbÿ­<ˆÿ×_ý* ¶ä“~¯k¸"KÝ»¼ÃþÙ²'7G0ñÃÜú^·º—®UOž=OÈg k²÷Õ½6ŸsâÜLÔª÷±Ëï:"c-ÝWõzaÓÍçœpÝ|}w¿èü£Î=¸÷â¶~ŽŸçÂsþÄ{žûÙ?ÑÑý£žçOscï›ù$¢MéÝ››œn~m^ëHÔO&Ž¥6wfèwËæ,Ü™Ó+¦²»uÜ(¾q„Õzéâéò³í,Æ6|3~·¡ò–®Hõ¨Ø£rÞgNFäNÏÙR‰£³Œ+µ\ô£`Ôpw¾â“Ùè‚5Ž*¤=cK-ãl•©M°æ»½5§•X¥å-ûv¢8j<~ZÑ,²»ôfJN‡‡ALñɸzçÇÕX¾ÛþꬿD˜ÃS-1zná^»Œ£O.‘‹³ÄWCt[­cô!-]ûÇŽ¹y;±îÚK·ðòÙ~eS‹b Ì=Ó¢/D×íuŒ>˜r¯&öèÒÃŇŸ¾”Ï&;ÉÏ9#N<Û9Å÷eÚ“;g¸Šç{ìÒ§ÆôÓ\¯c«ð&ÆígÛí眠–§~§°Ôpêx•œÝ§õâbêÇÔ»Í"Ô¥·ÝÙâá0¦,3ãê?çDΗ®[†z{](Ôj]·BtÝê¿Îÿ˜›`ʆ{ŒùÖ£ÛX{•V ZïÃtÛ¡~â3ÑÌÞ c7‰:q±ÈÕ`4íÂ8®ps ¥=e™'gÏí?6ôñ“>²Øû&¸ý †qæ›÷ÝXøÜ Ô¨˜c.ú|oŽ¿æ‰kƒq³î±kû£|Ø€j2bsÞÂ+ñ¿k;Wôáã0Ø~cŸ>\7íícc·ŸŒå/›± ç÷«©9ÂæL'¡“åISÅÉè‰lvî¹IÇ/•Ï„‰1}‡q:ä±{bG]°DwÈzlúmdσ9©-ý“ßvÞ3íêê¬÷^Þ>… ?ñ™¥ùœ]ŸÜkÔèsNho}Î ßbÜ3_¿ÿýï]î¢jÜdÞ‡Hn00¹ñ2NßLÅ‘Øí7cs̰²„±ŽqÎSûÂ"Òv,™Óçg³ŒÓÂù´)tAÌ6±‘DüäA&\˜€S£[óÝt‹<¿-€m(¶ÿàâ{p%iƒäòè… .v©sæÐqhzNîûôhÇ.s×ж9„Gye&g5/Wæ©}¦‰1Z†ù®A#Þv.ˬá¶Í;<ø‹Ï’2ݾ¨Gâb̃ïÎkÛ+§ÈF±ãÇš¸Ul–d†Ýx¸³v‰ XxÒ?H®)ï¶Ñ%ÞðE»ÌmƒôsNp3dïhmR,úZóÔ¬@×|c?çÄÜì-í¿®—÷ÚÜ*oë\âÏ9¡šÔ…½ö—œ_øÃfƒ†¥{ÈNñûôÚ2`Z(œû„‹îÈëaÑV;7Æ’=‡ßaŽß§Aͤ |óîqôêOì–²Eµïy¢ý-ŸøØ˜øŒã'Ü.4™L“î$ëµíë–ïqülãã÷©ø ]à›w£Wb·4ëôÎ÷;ÙæÂÇÆÄgä™cãñ]/ÉÖ-µñð2ç{û.FŽ>X$W˽V°Ã]²Ï9á*=ëºç»¦oýUçL²¿yl¿^Áh×=ÀÚ—ø¬[¿þçþ§‘^Y„ rÀfSLo™uŒ§ -‰Ù|øÊ=ZéýBtÞĶ™ñq !6ê°• Á y9³È¬Ù×7þH·¡„Ç…z0Éòcàâó[·KîLÚ4¯.;©’f žayîüEݹGnßÄn®wqÊiŒ;вz:„iÉÞñ!˺5ÝÉ?òü½öÒ°Ôƒ~êÜÞbcÙg!{tnö ½ë‘>øéÍíº9ž`mê íxî˜KbŽM8œ·½™#þ¶,ctÖ;Ÿ9´·Üãäf<þÂO|¶‡·WXaò4×dzùQC´w?¾Ì e8ÛOüÉ0º‹ifmPw`®›‚•þsNPœÏ9qßsÔÄ[Æ{Þó}|Î j2÷Qj³Ï‰úÏ€þؕۇÀÎÏŒ£Ï¡“¹€ïÅà~ž¹$ã<ö™'‹ë›?vÞÖ ˸•;|øº•û sÜ”¹»mû1§=1Oq¨‹âò¨…K™@DMy 5F×"3_zÓÀ›ß¾Ð¯Í TÂþ}£b³|º+"l\„YÛû:ë‘ø²ŽÁ;öm“5Y9鿆Ãüè‰3òžX£N!ñ¹·0ñaËþ°…ÎÜY?Ê®¼Ußái1~rEŸž<¼6‘TÏŸåºúwÿGAàDz9ÃäCl¯Xl'cŽiùJsL|Ð.’æR![Öcü¸Ý÷¿bx·,ñ;O<òÛÑ'ÞÌïœÆ7òëW’òå1k•ÜgÝÌkžNHAß¹$ìÀ>ëˆÞ53òðmʨŸ|ãsè·d¯>;›öô´¯9ñ¨©…1ºjo §æônäò9'ºN§0ÞµR¦³·¼n³ð˜Ì~ËßÁ±Yö#÷ùæ:¤=ðž{HÿÎ }0I¦ç&¨¸ç†™ÍüÜì<×úÝüyHLõ«…cÒyÿ•"àFžÅCJCö”3¿±oLÌæ±­y|~sÚ¯ýP“ÁÚvã… ›_Û†M£¯%W‘›Ø‚—¯ãç :‡wóÏ9‘µf‘ö^e¬9ëWcÖ6õg]¨}ðé¸.…ë9Ö^¯HPHÚˆÌ韘-{ÚÄ.{Û~öž/ˇ¥ŽáöhÍ眠*Ü[©ezÖñÔLýóÚ¦¦Ñcëoý)`m$Yf3aÀb{CùFŽÃ!ct®½aüüªÙæöBÂÿŸÊõlØØæ p\¶Ã‚fËgœ¤óaÁÇè·çŸVœ8Èoâ„bëH>^ïœ#•E{Þ²©K™€q^—á|¡Þ‰}‰{Xo“\yƒ‰læã úÔÍsñîn;¶Œéu¬TøzU²MZ4ž‚Ó>ÀÑn,²ñ $y;Û(B Ä‘K¸bcùðgý-¡Cpª?9œø‹c„Ù{æÉÍÜð¶O÷;_ÇB ‰]/® Ž,ya=ã´-Ë«?­L×8úÔsæ“C¸¦wLø6>sÎ%|äðR¿BEÖaˆÚ\wÆG¸çþC÷9'¨ õ§nS¤»íý³åΉÔ$÷SîƒÔ'úô{ß,£îgY´<æö:á½î{ÉÿÿsBOöÁ’‚hq©h#Ko|'ý›7ö±¤Yohøê+6küó] |()î¶÷¡3ò<˜á‰FÏ!™ŸQ³0´;¿ÄBrX›sb´îþÕ#s±Èæì8">ý˜ño|Ø%b˦fÁLÏaÏŸîõ“.û >=hbßó=¦‰vr{´õpdΓƙ˦}†]øòôüõ7Õ¬¹À˜7^©ÑMü”„ß’Û542kc{ôæÛµ 'u¹9°r%¯º&§Ä…žqÚ5ÖŸƒ,#éñg?۹˺0¦q /žR¨ŽMÁSCdàÒƒÆ0NH M=züò’¿›x™Se’¸Ò›FŠÝÎ3¹»‡Ãäøfd®!5à‹|ÞµühçUÝxº¶¿êQrjKÃþsN¨÷ÚTẚ߮ƒ­îuº×úsNðÃBÚ:zc² kè3¡ê÷w:'¾ø©Ü$q–EûKzÛöAU†á4G¶I9K¯€èÀ-W6½Á|#Ö•¯Æ¤·™Œ§!‹ßH-³”CÔí¸í97ûæGœƒÆo©*”O*˜¦¹:éäÐ7ëÃ"ÏY³ž28†w¹) ÿå¨á;~ÆøKœÁ;^¯‰_…º"“‡uÁ¹žk '˜±›zÅ—û ›úW,…gã{Ï$^W§Ä]—ñzÝœp|Ãã|Ëö ²`â72ú¼"7ž¼À Á¥›ßzÚÇGäáðÚB’íð¤'^ûBûôuê‚›Ô1׃x©1íÔ´!pyÙçÞƒ%±¢ÑÆØE®ÅRÿÃÔ1>nW ¨ØÖcÖñâF˜• ¹D‚¯Æ¤—í±c–Ö™ª·ÌÑT­Z÷4ÿœ§2º?¼¦©çZ±ÎÔÏû.vž_¥Oý±©ìáÏ9±+Dírï¾ßç ©³ïÍê’:2§±Nõ[y›Z‹$×å,ÓºÁ´€ у¡@ ¨&}—ðá4`ìQéÜñæ’ "lü–˜r웚8{,ÁºÏSneýw¦ÇɼzÙ§Ø­?þÊ—âhN’”Žù#޳嫤Æú¼ÃŽsÙmûtlq·Ìî\%Р]/ì™o°äõ|b?ÔÆ.Yue*^v× ^¸œJ×DšŽß…ûú¬5#®ùÄškf_‰MË£ôˆ]õ³ÁäWy¡,ܱ 6m'ߘ×\¤ž˜á¥q%9SN½æ­—!}YË'KI‰£„ÄHõÑiä5ÎY+ªÂ+—ò¥ƒ‚Ûì1´Ø5”iË3ˆ·ÉÕa‘Xpz¦ªmê#®U/3_DÍ‚=›ªÇ ?çD׆uy³žTzk5 “½ò9'>ç„ÏöîøÞ)µ[¸e¥üëΉ¯ÿú¯/‘ù¶åví=Ê€ {'DµuVüÔzi­6G4ð‘ÿƒ<ä`š²Ð‹ªêÛ­¬¤· rø§õíSD9øU—ô›+šÁ"Îv®K@Ÿ°õëÒè‹‹õÆ3ö\±g!œ„XÛÖžÕ__Â^6žCðr³·>¹h±k"_èÖ8†Ÿ)—ÎI6èêý¥MÓÞ¥OÍèãz "ÝÊIrTõngêüå2Á¢e\_óÐî\Kd^Ù›FZ¹t?)PnR $&R¯ ¿ñ€®î¤ë3¯ Ä]fsQ«|]—ãäHÉ5õA˜y §Á¯ÃÏ^P`ÌäZÒmwád16eOŒÌ€Í±®Áðɺ•fÄA°ôuÉ( ªà’¨”ëø) ±yaæ]•²äÝŒjæ«ù/þ¹¨¥¾Z+˜±pbá¯Ã-eûìñ¿Hœ‰ÁäæÞ9IžP4©KÇ€â™}^‚"<©™bT|²ìi1«6÷„ç\mÿ9'Té®Sª“½àU(iêÈšD_òÏ9Aµ(P}Óõ^üw<'¾¸a] êàqæÚ:‡"U³¼·SöƒëBB­é1BЍ¯9jÚTRՅDZV¯›½OÐ*ç€×:Å9qö óÌIòÖÇ;vÇÿ;ºð?ãòÅ?\;;tÄ¥P,]ñTxú62ÐÊûÈe ¬”úêXÃQzû.yræ±.\«—þ@Wßá x4 EnyOá Ï(<Ó^›KVNñûŸ¿ûÉñµR¹Õ8ëòJ F2%â:Xnä‰o%ˆ~ääà'0yÅ~òdü§úwdQòÓ:Ï3¯Áñ³¹Jþ§ö—ܾål²Ä´qdg{¤rÐK4õq]$îKç—X«Ï,O/ŸæÄ>¾åbo¸ W狹bST.«¢¯®—óh‚Ï9Ñõ¢rˆš×¨†]¡sh-TJ] Ç à®mQѲ?èYa$oÒ‹ŸŸsÂÅïºýOÙþ Ï ÿm•¾p`÷°Ï\Í3Feýl6í¸X±É´Ã{c²×Áâ·a{“ò6î¹|cèðlT,Šù:ª…—‡ˆ ¬teR‘Ô?Åq‚µÎJj˜"¢­¬-H>=rå›ò8ìPüF3óúÞÌÞ"›ƒ yš[gQ„yyÇ?‚÷匣 UõDæÊ,a ‰-º3V OlšãXLJœ’U G~†%hÌŸ~?ÇèÔgʉ*·.ñ\r©êÒr8ôÏïîX¹…³±½7€O ½hKÈX6°ÁÅý? ¥ƒ‡æz2Zµ‡|5¦Ôî¼ðê$Ô¶’+¼ÄS÷e àÛ+ë|Éñ?1¥Þg¦W]ôé‚òÓÚ'sÑ–Rv¤Ø@wíK©ßJâ{¢¿|ùqô×Ï9qö$%:ËHq¨5TíTÌx j¦ÆT²ºœq”†èÊ:4bIñ÷9'²5»´ZËîB7dMÊêôœÐ‡sê†$òä¤Ý’T,ôÑb™7Ó)‰…T ;”Ü›,¨°í>nð`ÎéÁé?sY\9½1½ùOì"6SdÂýT¯@«¡Á^½†µé+^ÅW„L­× Vã,ð¾Qü4¸s5ÿ!k’"TýúçÑ'¾–›<7›ÝóIã¼ñ˜EˤãV~†;oÆ->¹3wdͬŸ«;öó€à‡› $:ìR¬ûÁ¦4R†Û¦ûYÞTÈòÕ®]ª6µÝÓÖÍñ2¡šñ>J­ TÍ­A¯Åxh|×pbr~ÉmDç!­Iy*Â-9úåojÙ>¡É°ùÞ> h 'ðrêuR>=j%x>gÐ6¢+sùž: ¸®‰•9’$þÐöœ Â±|FÈ\ê8W&Ø–V2ó˜[;\ì7Ž¢4%¬ŸsÂ? ;u§.*«A¹ï59¸†U—Õax­ƒ©ÚâsN¸>×îÚT¡û"X]¸gîz}ߪ¯ cã>küßúœøò”‚û´s›[ Èjè;?Ðå¦=Û†hÙdo97Õ±)^Á;ÆØo©Š×Û¸xPSCš:PØU— dóƒGŸi„‹' Íë(\sßL «gý“:þ¬Ñò«xŒ—Q|G¾lx¦hΩ!ù õ Ü6¢ë–:I´j‚œÜˆ¯­œKl[¡Á´|×#ãpAtðøÇ]ùéiMú•›$\*†R‹_>FïwwJw°5`|k²Z•oð©Zš4ãjŠ‘'YÒ8Zo”€GŸ¼R±Ë¤ó“])¦æ½þRxí‚¡¿8Ÿ¾|!lõƒ ­¡ ãWþÆ/ÁIùjub¡\¨…7‘×£äʵHyØpŠ8À¢›êç±Å—R¼®WaPáH}ù²S˜K¬I+ƒ+¹A%˜ö9'¨EÕKëî¡j:%*µkªÚv éz‰©w-DÊMpðÔ8*äŸs‚zTER”½ÍU/TÖ§rÞ÷™yÛ÷M„…¸¦æÿ¸ç„~ ऱ6I6ÅÙˆl¨.L2wÆuE_u’>ÅD)Ó6fžzŸ@Ñœˆ¨Ö¦•27ÈA2(49t ÉëB‰©ý"·_è&až…Ó¯ †«oS®à*¬¦#€ÓÂq”šß™nc:Zª÷Û=ÕHá\¹šÁ×®‰èòsèBŸW‚e˜¼ù:­ÃÉ” Þ”OÙð#wcèØ°W±¯#‰ck‚,AI:‘]¡vŒŒƒqnHV{X~iÊ¡ÇÔÅVp9}å%})ü+¢Ax}·+Á[í¸JR.ó"ëˆN½ìKDdä|>pG ŒhEqm~j-¨k }õŽÇµ82æc’dïÆ%eýꟵ¾2Wë…“uá¤MÏÌð¹§{nãvYƺ÷šR:™>Á€þ±¦²kˆ¨vMeÓñ¨¾ˆÈ¡cH^§V‰©CAn¿2ÐZ¨>]‡Ï9A)]4íÓªÛ眨FIسõOÕѶëgáìÃu1 P}8œìÁ`sî’×ô¯9'¾p‡ŸÄ=n4çrnŠ#©ø`O=’ùÁŒpÓS·KõN¡wôhÜF§ Sz[ ݘ龻éB…,Ÿ5>ÿ×vÜ·¡cspÄÁ· :ÌŠEï4ù)º3Ì+0môŠ»NÓìñµ„‡£ù¯ „«KÙÙÄ¡‘uÙ:’ØíµE»â%î~%àK IDATÅoáò³Ý<Ñ!B9±PØl¸8c_Öç‰M™­\ÄÛÌ^c4þÁ+VD•5€œÃ'Ó®`ã]‰²ëZC CŒ»vksM5Ò-å‰þ·Ü¨4\à=rLz’OÅgíü´Èf‚“àŽƒ±¾ë  §1§9 ê²w5Zb(Lå¼ñÉ-I^û­lôÓÜräøÏNpøE¤zu Ç¿¼áËzûma¢NðÓ+°‰o«N}V,[Õw+ŠT´ŸsÂU©b¤–Ÿs¢6SöáÞ{È4÷Žþœ>{´úÀø[Ÿ_¿ã/¤Ôjü'ïÓjÔkPcÖÂëä‘Ïá^í,\ÍjìåË¡•ãijØŒMPs-¼ó—úZ+†6?ÇTᇽÕÜÜÑÛ×qôfp"ëÈ@~BT6`re½nêRž8PªÅX¤(P!Ó^¸Øí¼¼Æéá¯1|Ú\¶}µÔçæÎº ܹÀ™&î(f&(äDˆfñ±ã‘Ixè#h~:¯w Z&X„ñÓ‡=ØÃ©‰/ÊsckYúijk^±äWzæünªFâ'<Ç6ü%ÈúHG +¯ ½L™™Åäµ&õz8g©N¼-ËjZæ586ÖX›«ÞéÞO\Rbí¹sšØ‡8S‡ÂÎ ³/Ÿs‚ý§{H“I•†Ko¥Ü_ì§sȆ}ûhĶÔÙ¯áÃ"g§ l¤ëÃ^ì‘iâ˹w˜â«0‘¥Oܶ(˜oOËæ_在þQI)qF]0LΗ*yMèkÔEk¡AGQ¢*˜°·VÑ”äàå«éÀÏjß,ˆ$`qQMaré9]‡ŽúL°çmÖ±¤M››Q1ëv*cu;æÓÑúÑÂå46ô•«¨¹´ó~/ñ´ ­†ë=ñ–µ«Ê Tç1ƒuø^xŠ(n‘©%87ÏÒ;˼.'>)ob¯"È’KY7db¿ÌæÑÍ¿õA7NÓöu’ áÃY⑸.PTøqÃù‘‡d¶›ë]Ë«Vƒ(TÕ/üMRÿOSü®¦|ë>Ð_V59÷!ßvèϽXªèAáš½Ó!•5?ö‘ŽÀ–ð‘1°õ“ãÌ+¶Ã%tkÒ•>>˜š¾F¡·0$3ª *Íkú9'ºPŸsÂ…kÎÉ”†=tB+t=ucomƒÞkÛµÄuѸ.ÿ†ç„ÿ3 >¨OêB¿Ägè;I{Ž%†£÷Rôœ®×â\ §À_G²2ç`e@ëµëauKÑãsªâlª;>45Þ“šƒåyk~¹Fg6YIx¼îÐçAõAP7­}`rÈÊ@èºÂšA Œß“KЄ Q8±,!rjؓӷ®Ä‰5k¸š‡ûªCàäG6cÇÈlÞ— áXKo|É$në$£''p t‹ G®sÛ€ÍG+j̇æ ?çEùœÞÞKì ³“σu¶;˜Ùsl+š¶ÖsõüsN¤^TîwNÔ;÷+Oj í©ù)vÏøÁ9Á°pÃùfŽÌÈáòÛs I”Cˆ qÐ|}⤒Ú8ìÁŒÚ6u#׃ÅÉYxëñ"þ]ö<ò¸7±íl{âAHí®1"t}¯ØÐ8îÄŒäðœq^1É.HâQ•F§‡ÁK;842Owd¬4öZ,ßávnmZbÉXÂ_ÊÄÔ}Õ¼×f2ÇÔùÁß6?r´mÏunû áÍÑEYBeêdKš±k™ÖÏ)-ëBµIž4_Uþ9\â9u5¡~}òbeòpVÚ_¨BÇøà6¾vÒñ]ˆËlÉeÞ—PÒ«õ€|8Œôrª®Œ¬ rûÅò)g«)Vnå-æxn‘ï£äûÄ…{^rv­ÑçœHا~½<Ÿs"Õ¡ÏžÙÜ×ÑÓg§w]ßÝb©÷ßûœørìH7N]Þ¤wbJÊú&éÝ“X„:‰‰QŽ¢eFëšKx|…“8«1­!ñø°± ×`|S;nÆ…/ßqo%oÂù/qþš0þÌC®R4/ãæ.¹"’/üÖÏ_k<9ùGª‰7þí¦,•¦×Ä:oOtuÞ›ü×Ñ^æ×¤kA]æ‰ëS8=Á1K8S;Ko.gfäÉÙx®•m×Í2Uê˜X×2U±PÐ-ǰõHçWãW˜‚€R]èKò3^T N .Ôw E©VÓú‰C—£Ùy¾ÖÁ0­ã m³W'ZBºýÝ G¥}^.$\f⌅û\KW_®sËÇÖ»U¥aŒüôÆ6€gmbçpüTt\e–XeÁ¥Ú– ï%[Œ8 úœS;ÖÌç`öŠuõ~ÔÙkô9'R+m|mÅÞÓ³†Þr÷î mQ]"î{ÈÓ}_@ þ^çDý`þ~å×±çÁi%+.’s±Ó³ªI«H[÷š,›?«f2Šg^o~¢Œïypö[¾ÇsòîU:ù?ã~3€Ñ_&«Ôùùs~1¶ñüíÊ(ì)DYOaW­Ç5޶dÆÄ6þosY'Pq˜Äoá‡×<ëÃ5˜®ÅµÙ9p«ÕߌÇëp¢D_öa}â5¾8|Ì·z‹—J|­1oDçšè'ü“JÁãÔFŽ6%mŸºz¸Øã©1íëÛuj_ c¹È^†®GÐÛyYûëØHÿ5ÁUb? kÌÒJáçœXUI1ß¾›ç{äBwís±—>çÄçœ`èÓ~ð¬æ½n Ú3¨tßÚ—Ùo_?õŸÈõfåà‹WÓëà<žüA'¼HÞîöX"¯ ÄG›­ü^±Á<ûÄ—ÄÔˆG0ô¤ãC—1OvÜŒÁjdÑÑë°OÞôðœÚ,_Âb?¿»&>tÒ/£ŠZüJ‚Iû{Û&OL8Q€ëU|òQ¤ÄkŸsàØúýÕqèú€gòg4.?Ë£6Ò~÷M´^oá³øV¬¶Ñµ."#=·Æe‚¼©V\-[™q!¬ß9P³zÒ'çÒp‘ðÛ1æÐµ÷P{·B~]ßñ+#K+ßü›ÚEQ}ñt¤Gø×Z±Ö%˜ó °8L!ã½Ãô;Šõ`Y•§t½4.„ŠèÉÉ91(‰Ò©'†Ï9Ñår]º‚)î†,R€«ß{êsNô~¯â±W³ï|‹QDWõìÿƹœÞëŸs¢Š¢ý6÷>õAôõ Dª&…œCÛVVcáZ7‚wÍ‹T£ØÔÜ0=vQøÁ -RÏž×Òúë©è9ÖÊ´z’íù:×° sž $&ìV+J鹈^™u É£‚K Õg¸b «ÜY÷ â™;D:„®[cçÆ(­¾JxÆÏ>\”@afXu7g8vÂÈqÉ6h ò«Ÿc+Üf]Oº´ãcî‡X¿•Z$‘²uœ‘»TÁ™yÊ—Ç•­ z_ÀlÍi¥ŒcKMT·²“iAA3Ž˜È”¯€j€+)m/•˜ºÇ²pÞóZbih¹QÆ?r^!™§ñBnðÆO¯’hr9ûÆå ¾óçœp­¨êjU$Õ•Ë©ÝÔZk@ýYw1®îàáCàö9'T˜Ï91›¤6Æì)vÉ_sNè·´ÕÖÁÂ\[³_ÝñJ#[²`þ›âµ# Þ›øÌ´h¹!„}Ø$¾E\(únç :É—N_ñìsnfÛƒý¡GT*i겞 èÞ³â¢À¥ÏÁŽ™(ë"‡ôðRµ?〮†bì‰M+mÍ%ºå¶°ŽïN ¤]Öõ¥ÞÒ¢[ýÀTò¶ÇZkVÐYýŒ=o;HÀqƒÍR ®š»Y¶¯q­:<Û´—ÐÙ´ƒ<¬O’SE{·Q1ÖôÔ¨3W-£xWKd÷^-BýÝú’ ž@Úo.¸EÁ,ÊûÞ9rôËGjŸü›P,ÑmïZ ‡‚ÖiÄkIœ¯õ{Ò’v׆nEtbÐxâGîo•ßÏ9ñ9'8>ç„n¾Ü£ÿÈçÄ×O}høÔÈaÅ¡Vx:H¸D^#þ HN–Ò8ÉÖ×ÉâQú>,ë”àÑ!‚í:¡DUF²`ãÔ:-lþ3—ÿºäh`ºŽa}sQ¯kÔDfõNH›—,BK’nzÑ”Š?¨×d5¨ _ÈÔ2°·öRÔ™ÓƒKË‘D“^¤±;Jë¯ö9\â¨G ¥Qxkΰ8ü@QÿOË\Y˰.š¸»ãò+Ò‰ÇÌgŽ)¢êý¿Èy$|óž |a’°6– ÜtÃ×P|ˆ2àÕWm¼þA©HÛEÇŒC÷óÐ6Ýú¡|û Ü…2C‰¢{ý\F"ûðm`Ÿ%6c€-ò«-‡oB4Ô')Äå» è»)¶L*0©™+éêöÀ¾ÌÁ”-"üè-yæzb´âÓÄVúRaŸpMæ¹#o^C»NýT²ö®xÅBŸøê9ÓA(TáÁžš+ÃX#ÉÛNioäöëø•Ta÷~“/ì»ÖÞs¾d›$T¢ñ\\‹¢.ƒ°F5û3ÖQ¸Šì¹ÅRõ€W¡<¹\Dûí±mÚ@Ò#kóŸü9䫹®,ÏÔ[3±ðLÁc×åhV²ŸsÂ5vE×Ô©ÐëüÐ3e]Y¿Ý7Lûð˜ÔJcžõ~}ÌQ—í眠”U.¿Ö€ÒPå^0Ý]/wˆ$2ü„#½HÚŽ;¶Mlkì­°¤¡–|z*Q878NEjð9'\å.Wª6³÷úïZ~Ήì)êòï|NÔ\{§_é®Û½÷ËÜÌø.wÉJuŠÈMªÉlºžšRz£-o|¥—Ÿs:0+‹&3ƒçíKû-=ÄŽ]}üVúæ—ItõÊØÿ T-b°k¸eB¸ºñÕmd‰è<±áAjå’Þžˆ¤Zq›>|–‹U¶ŒF'.4x\×ûA±Å/ùL¤„7¯N‡HÞUßó`SÊ; £'3[18£‰1²]Ëÿ´å5ÆÒiÙ×øX¬U³Íâàé™öBs•¹ë»Œå#öÕc£¯ðÔç\¼ Hë’B}Zâq=û 4ÚâßþıxãsNT>çÄÙsÙgÙûÚéìSfÏÕH;R{]»ìè~gö9'¨eUîïyN|ýüÇúàcÁX‹,.ã×–¦ µ¨7¢Óæ-g/¤£Ý°ÎáÎ^¹©®™­’d %Š ôvR^ œ­ûÞ©ÕUÄðÆmÕé°l¡ê‘ µ0ïâÀ¹ÙEx¤vÐ:bR<Ìó-ßu¡ï¨{'·óÛ‹qØ®ø$¬KÞÞëQ‹]<+DzK És¸¥)»îã#bª'šcФ%à=ð•§æu‰æj…Q,—Ôj5ÄÔ' Å#Îö)«Îó9¶j=|`Î<9ÈpÉñÞÈ6 ¡.©SæÒirtØx¿`×6tÇÏkÄ¥pz7‚!¸Î¯™eËØÐÔ`û °¬ñ¬¾*¦æ=y ’í!8µ³åóÚñc¸kß0ß½Ã?çDUE«vÖ_óµ¾YS­y佟sµóÖʾëVÓH\¶ÙÃŒd™ýŽÉÞ«kœ½›fŸ{ˆ{~ñ n¯2µžâ­buü©¦òQLZ8…½IkÙŠësN¨Ž^Ÿ®`èÝZP7äéïªZ®5)¶X» 5/AÖísN¨–TŽÝŸ=ÎZ¨ÎÔ©k¥2j\šðsBÿR RSϰÇÙ¨I\ðX¢S–š9óêCÒˆ.Œg}?žÍ©‚¶ó|@OHde¯M_üLçUŠÞ˜„jï}ˆA"{VÂ\»%ƒ—æpÃVó’Yƒ.rKô÷þÛN~Ä`¼~¡çØÅÖá=œ¢¤"Ö-&ÝJ+\OûãA¼5þèÇ/ øNÞªq9u¥”©%Vlü+–%)•þœ.BÚÂ3UÆý€AmNž(wëØâ÷ü¼Ý®j˜´Tœ"©Ú7ì”KÔ…”‹âª^2I%Ìhð%ÉZ‚€›9ß]§Ë¦1èpÂ;3®!ð?!91…‡XÅA=jl[˼_Ìub¤x9€»N˜)6ÝÚ 3µ¬‹âyø &y¹oCRÕ°|>!Yæ\ƒ'ïÆ´=Ù!‰z³êšËçœP>çDmˆÏ9¡½ð}NÔ;~uå{Ô‡‡ çMSRK^#Ý¿}åî÷^Š:sÈëà®R®³ÙûP ò¥½£œûü°C¯WtÑ´›|Ì´sÈalÅŠXqÅVůIb Žh,ãÏyðÓW±©H5Ò)&E/}j3!U„= çö 5Ñ“ —îŠ1úã©xåXî0ɯ‘ýîHZ}‚êÕ´ÿ޾tÉ¿çï“•Ö áw ÃÂ¥–v8yptB“í¨«¾Zª]Ç<±cÒ<g®9¢OÍícý¢?ñ¶>QÞÔ—éåO|í Ûàõ¤†¿É@-Yþ®\èúSÐe×r)CDje|€Ám5u©‡ªÀš9s9>ÒZt?ë‡oT­-Êg6"Bi˜`‡§ù“pÊk w K6 ™Î j¤juM\•¯÷ûàsNTEzßœ½í²éªýÔ…Ô}Ó:í9ê[[øßùœøâ0×>Ën£@}°hŸõfsÝ|«j¼ñ2á9ç‡$\_±ûТ.‹“’%²§àÁ¢{`°¥½Ä/i.ÆØÔ±À£ÍPœHÎ$ð}xÖÈÖ¼;kÛøÒ‹—%ˇû¢•w¤YËg˜ùÉ-ñ{6×lÚ¦Ÿ7T"hhr˜Ÿó;ÆÍ«'ÖuA#ÞΠ°ì¯b£Üˆ¯ó„_M"ûŸ¹k~°±K]ºêнiÒå&f=ˆ=9Dï¬fŸ‚ŸzÔÛÍeS­9ÖLYïáįJ"”Ö‚-b©0fj &¼¨Í!SÅËÈö¼ý/¹$s9²&ÎÉéòi¦â aS_'gg¥;<Á+ž¶G_ßwlããØv>Pˆ?Ðø’bêß„’ÚÄŒÄÌ(çOvHê%ƒÅ‰Y"Û1™ywFe>ßÚ hŒé…§â)HkÿüçœP=YÔ_µ©ZQ¯úîUñí¹jZøèd"ŠìŸµ¶ýÄU>çô9GÍ÷=ð²Ô°÷Ôc-Dª¥ÉYÀ«ÛøíeU7,œ @×¾™·D´eŒ¬å²µÅyð%øN@^uµEäb0­ÝËAÆ@WhÒŇ&ÄௗOÿ‡")¢ó äõŠ–W0ü…àíà XâD¹[n?©è@Ú.ù+@ØW)ã"ÆïßçÀºã9sù;TªbJž„ Ëͺ?ô‰ž&½‡ºRWZôŒsKF'£²ïŽ0XÒêtz¶Ä…Zi"µAÿŠ$<»÷ù½—À˜Y³úŠñ48a¯5³Š u ¬â)ìbÒòcæìus¹DµšÃVXô^ÑH¬õÉë{õ$¶N€aÐôsNh%¼£ª"½pY!U Y}Î m£Ï9¡2°'þÿŸ_?}éc^™ÖÇW6±ÏÐ~0­IþÚâÇ^ûŸ™O$'¢–‹‰ä!Žî ®ñ!n©§Äb­?;Õö9ب/ÁÐJ¥{ŠóÕs©dÆ¥±‚0n€h¹çÁ€ØÛBj_êP×ìúSzFÆ/«æ?R ÉŠ¤DëA bWŒâ]L2¿m1çoýï9êëý›Â‹SÅúæÀª8ò ,§+&æúï+=` àKb¥Wº ;æþ œ,3Å>ÖùUHsJÃÛÉ Ìûslâ/|dÉÏëO1j(–€”ô„0òB®[¯)W¯o‹:ñ_¶5Q½ÌÂÆ>UÌ-°˜ÏHœø˜ÜÊk©S3q;yÐñ~”° §dkȤÚ×ÔùIÓ—Ù¯fMJÇ“WÇêüzgbO 1—aCjŒOâÀ-}ÛJ  ö'- zת‰ þS¯R—lé{ŽmöZµà̩Ⓘl?çD׊‚hÁS{êYº®‘êÕ—XÐOÍ=5Ξ—€}vbý9'þÜsâë—?þ±Ê§rwŸjVaUÙ”·0¢ÒGŸC‰lÀæ9F÷^F+öˆíèiæÆ>:/·c³6:[pÍ ­=wí^AÖ‘ŸÂÆž÷ÿµ÷. ’ä¶Ñ®äÿýß÷xW:ø"˜U³ºX²e+9ÝI.d².]Ýãì+|–3s6NôÃáCÔ76²ØÎ_9$Ï©AøèU‡ga ‹ÒIM€þ*­ýO"j+Æbùñe="¿[ÒX;éõiƒò9Ol:×£šz"âN=\KN ØŠÈЧßX4Óì'óÁ“–æ ÜŒƒE •èw¯R–ÐØ-Û~ÍØz= Á5ÞYµ¯‡kü©RD±½˜ IDATæ(,^ε@ØéaVëÓHóÎÍØŸ´GÊ|ò,¨‰YF5ï@2mŒ}hÒüŒÃeð*‹€“gMœL&Áš§TEs­kÉÌ]l˜wŪ;Ÿ9hGï9á ¦ì§ˆ”¯ŠššN5½çDêqíÝÞç[–}j|ªIµ½g‘ïû~7\xoÌ_wNÔŸþŽC¹[Þ€e6A±Qqn;:¨rsÔ,ZÈIOâg«!V›ÿ {é\£ÃŸx‰ÚÇaIšÓ~¡Zö5» …žx‘3Jþ¶ÙX¿jœZD[ìŸ2ê€lb±æÑÙ/¾iÃ?¼E ~å1~ˆÓõ O½+넠êæèv ‘ƒ°£`¶å·?AÏ%ü›yúŸÉ“söŒã´_lc}ønÝ–:'x'ù„úÞ5¾1ÁÙ/ØØŽyíq¸&‚§Ìþ£Î?kßr >þ·­÷¢%èçÌÉ]ëRëÏ;6Ï “uœµÙœŽk6ÁÄ9>ÀŸc^æÔ+»w°ÙÜó€mÛD2Kì+ü‘±§ñ‘úûo PÇiÑ9c½¦` Ž=êþ='¨Nj›YZê™yê\Ve7ë7Ãì xK¤Ëÿž©"=EqýÞsÂuñýê³åï='ê€ú%ˆÚxœÇH›Ð;Ñ÷ÞÀM Ö Óaµ,ˆÁxÓ6¼s€%†ÇMq¨b›nSæ9°&‡äWØ<à–«:Ök •ÿ}³îÜ@üÎË~òYK0n‰cæ­8ÝÔÌø 1vÚƒ!5|u ¶‹]úpÑ¥á‡-µ½qµÁ]§3OfÌ÷§O×®½UçxÛ¢:V©qŽÉØñ¤RÏ+WN;V¸&ç}fZlÒ[ÓÞËqžÌÂ5u1wÖØè»VS;çæOžÉisNT;? Ú˜ÉiБ¹öØŽ.k«z÷gp€á8‚^½vŒ©Sò6¹0wŸµ0Ò\Û·÷Ñ3^ΰÔ0-¼øö˜$»ò ³üXôàÉáÚ&—÷œ˜½FÁ¼FÓ§šÑíù¬Û½Þ^;Yô:ö¾`)zo¾çD*™ÚyŸ>÷}î­©uìÜç¾ý¯œõ¬cßtzá^¶,7˜ŽgnRô¾Ø4¥Êá™ùUo~vÌÛ‘þõ§¹9ó‡eð!]F‡âä•sÇ“¹uPù|Œp×>=Õ.¾ÂÁØæšzš%óßøeJ-j‚®Öñûmr=]‘?©áaû ‘Mû”Ió'N¿Z‡¥óñ@8ż.{9÷Væ˜PÏÔc0rÕþÀü^ÃÍžA,œ3òÔ™u|Χ"xÏ í='´[؉gcy«Ô¾aë¼ç„ëÐw]ßMºoUŸ¾S¿Ô9ñCDEÎa‘ƒO;6­ÃADs°” õûðÞ ކ­c½·LŸT2²³ZFRŠ Ã¬&±!†:Œÿ g}õäC“†ÿl2`-Æ€¡rê\ê8õ¼íþôëoÂï˜6Ø_j9¼Óo<¼âká³–{%ÝŠ“Kçx8¨7’“0åóÓ'6åøÛíñ¹¤Ç·XûÒz\ªfŠw­3Ö¢z?Æ hclÛÎ4uÕ×zÐ,ÈÔ3#ÕÅQIÿ„“šk¿Ã¶LμÍa¿¶SKk$«!táÎúÍ|øë“[óÎ-ã_þèÏä\{‚øˆ«cŽ/âŽS‡x]ÁÄþR„·„»äpýö8ùÖ¿ƒµÔ×Âì®øA´îÝÞsbWÃëpöУVÏš>kù`êéÔûlÿ÷œðýÐúw>'~üøådl.þ¦œ £Ã ¹'÷MÎM N6Ö€¬.úxm4 ÖŸ¸1ä§é@ÛâìÝãã@=(½õ%Âouú,#&Ñ3ÌÍã¾5'"^³@Aiš9¢Ô„xýÊKe;ÂÇ*Žã'¿:Ç|0Â*Îpû€ò áu¬è#=Skû¶¦e›|ÎÉþð‡_å@•QÛ%fXbÃø÷±*§î7Vy»ø[“\Z†ÿ@´/:6Ð@Ÿâi ]~Ákžš`E‹Cng-[¥ZG§‚¬ÜË, ŽïvŽ|ÎOók}êoYsÿh¬2`ÃÔT³V¯¯ÌñëzäzTv˜‚T;AY.>¨W´ÿOlˆ6E|u”IÜS­CâoÑ_èØOd– =á©ÁÖ[¤ö2jÅ]ÂjÑÙÈÇzs†5ôÛÙoðb9½™ŒµÜc¥£|ì)vhSGóÚ‘b2µ|ì¹yQŽïðÝñ5ÈÅE½N.w ð@[±¼ç„KÒ×÷œðþøK/€ÞsÂfîÏÜ“é£wÿßqNÔO~é-Ïæ †›½–«†Þà*×$1óŒÖAÑy;W|À?Ø%†z0;oAZvú͇ nÆé™íyztá™Ú"˜¹±'^ꟛÃõJ¬Nž}ØÎkì×y~ xB‘üç“þ± +ý®»99ýíüö_?R °$္q–/˜pžßÜȰþøšXíãÆÜÜÄö½íXA$ÞØ‡Û8bKí%®`ãáÉ9zÇgdÁŽ,>àÏ~Ã.ë÷žì3×þÞ/è¦=õÖa’u¬G^Oã´&{ÍYšm5dÆÊôÄzbŠV6AíøÃ R‘«Aî8gþ÷œèÂw½ï3Àguõ¤Þõ#ßL(\Ô¼ŽtAg»Ð<0×?n/XœïgŸ6Ã?Žzó™§s8›ÏØ DV¹Ô¿ÉÉ¿¿œC$öŸÜÎQ €:8GæëmÃlç† 8ßñƒˆq(#7WÞW`æš[Îî¬G¸­ÍÕ!ÆÎ1¦vé?±©üÉk‰•9šxœøÇÆ®]ªî‰g?±‰Á·m wüا±ÈÚ½ú¬¡kšÁç»`©‘}Í ÝgC61Û×ì§óîVAŒ"_Fær¼­±ó|3ø¬ñÄD=mïš8žŒáã'6áÍ;m·|bœÐÌ1úôÜA牊÷ëŠ&ûÒ{o¸\~¤Å?DzùÌúýêØ¬»m†ßrעس9.ÂÉqlÍÞ'²÷œ >Ϻ^ÞÓÖQϬÇo[ï󥿱Aê–µû>øÄ·eŽ Ë=ñz¯ÁŒ,[þ='\¿tNüøµ>á^åëâU¯jR@ߨ5*Ýü>ò4N6LÖ ‹‘E3ß,°y0úÖ Ö¤á šÇÄäO•ƒá“@¶Û{l6oFÆs8È¿¡V¿ïiañû×ÔÊ1²9©“ù³71’ç!>yÉBOl;9ÝÎÏ ðÉw­ïÓž¿á'–Œˆ×Ùò±MRKç—¼'ÞÄ’:À3¶®¿}Ùà ÷àbÎz¯ƒ}gßî1Ls-™¯z¥Ù7‰„}˜Ï<Öc›š\ü¥öÞ³ÏKáÜ(²‡?˜]—ä#“sI^&ö©…ãE gäøœìZ„cô~"yyÑK0Õ˺ԛ5˜½Ÿº£1?^× 1%Nómß36Ó¾B½IÔk`ÌÄôžS·TŠ~­/…ôÂw…Sçÿc²ëlÄØf}šzí{÷z:„o¶ï9áwuU¢©“¥^K×yt̳´ôçÝÅ÷ÚÏÍï&ùFGÆ7ó8]ìè­Oo›Ñ·ñ騿dlùö‡toTBOËaÄÈsç’äÀ;®q¸èerx8ŽØZoOfòuóŽüömù§->°ïp5³c.%–_uú¤B¼ò¢J{Á~öĦ‹ÓTøâ€Oîñ@OmoÞi‘ô@¢;‚ì»xmðçxkê°óÌ«Z¸,÷Ï̇Ç~Ñø­bFi¶Ý9N]Œ!'ëÁò<<ö!ùø:2h»3-.ç‰ ö´±Ïý5ºFÿ±›W9Žœÿ(±û»XÚŽ_ë4Sê|frÞô`w·áÛöŽ%OÆßsÂ5£vÔËk¨òžºNU?×ÝÓβ±Êè='ÞsÂ÷hö‘w†÷Ͻ²W>Ï ýÀ7ô(! )¿œqöp¹èCdÙño=Ž(¬6rWw_u'°h’Õ\­Ï™ÈáÆ ÃGc¯Ã©8ù‡½‚ã#q¾ãÈ<|º]'ï¼ãNǰéý*!›Ì±˜™oê‰$5Qˆu‰žÁDpטˆ#=“,Áä+åpò7,jÖågI+î&ûød{|šçAVˆÄsû Î8¿]YÅ  êÓ¤-Rx7w˜d¡}Ûø¢îÕˆöððÅ™öFaãÇuÀx“ä «ÒùËõ8Iu¥Ãžæø|ÅÌr~ ¨X…ò¯‚bo©„±nc×Öxë]Ÿ`›*ŽøÊ£é³æ„±¥S|éWþ¿Xg˜:Ý{8õ|Ï /ଭëäõÌqíµ•(l™DÏ`Vý®1ÐØ³5Ì€£Î÷œ¨W‘³u]žUçoµãþùÿõs¢þ/ªÃ·ÛN~d. ›;‡DzlÙ€ÙtüaÆ¢ Áƒ_â~ÄØ7Á:$ýñG úê…Ø‡¡o‚øõíÓ2Ùt†®%̃Gì'nb`¯dÍa´ǵÖŠw¯ËR^Cü9úÛGbq.Û‘ëïšužX°Úëœf™Fz_ßìñe<ØØ;—Ä0¹;vxjT—Á³çb·}Øöög êª×{NL]\Û™Sq¯]:¯µÜë0û‡%ÓþÖª` î='Øs¹GTšŸ\(kö§êØå~JÞ5ŠÝs¢žÐ¼YHLM{“I˜ è£X1l{ù¹kæô9Gæ‚Ùw¤³q-É¢¤ßúÄ2Å?9ì`›üÓß>ÂîO›‰+XKü#‡vuºØOüQå¦tí¼©îZ€”Õý©óœWR^¿¬åöýÖ‹a× ›èk¤áªÍÕ®d\OÔ Sç<<ÌAD~‘•&nè3®‘˜o¬ãLC~Òe P§.Ûö›ÌX×2Xã&žÌ³è¿­¸p$DÛ†ßOˆî§ÔÞ'Gò‰|sJW—mÇ 5(k"õßÛ÷›ÌX×8Xã²×çIoÖþÛzaŽDi®ðÿãωú-€_åk;Šsß°vnIq} $VÆ|³ur>Ø~ßß/ñC±Œ.q¨oy‹ ê‚#Û¹xþÄg‘Ðæfdülà¶þ¹pà­wÌ›÷Î}×óysS«ÎW}j7y¤¦_êcɱo@âNô5±Ï6?]r¿ç¨mù1Xý•ÁÛ‰´Iu¸ò`ÒŸ1ÉÛ7\ôÉ“xœ»\]—`w®©ÀÍ1†øKmfRÙõ%üá¸3»÷ÓÆN-'ÇXý¥þóG|ÍÑŽéüáι§ñm5Á%G{ùö çID6Ì]sp[Çœ›ô–Ž?ûý} ü]ä²*"ÇmƉCñÄó#$Ìï¼}ê1²ïë3úŒÀÍú0£Vo½cÞ¼wî“Fçšu-T‡Ôn’tyR/ö˜¸îyâŽ1í\€½ø89û(üÎIé#×äqyω)ȮۮYÖäȳ–× Ùýˆ‹W[,+¶ [dBœzƒ6Á1/Œ6G6~nžôõ×Ib’²É“ÊÖ)ù üLHÁÞ±M‘R8ç‘‚Y¿ewbØ2ÆK (ú#¤W…í+¶ŽÑÙ=ÇÜñ3÷ÍMÖ¥2H>[ü¤±ãŠÅÑ?âößg®:®ØÍ¡«äu¹Ú᪰J úˆÉÄñy`Ýy“«l9ná>üÃÉÝo¼±ÏZ¿q›9vѧ×Â÷áŠLrÝä†ÔÅËòpšÛ횅˵ٱ IN5:À'ÕþüKb÷ß±_ê=¹µ ýíaDY+矼GAa­„‰ÕúïëÐ.®Îv-jr{&ÎÉÛkP5`Bæºdæ>öÉ>2¶YôÁC¿eŒ–P†G¬…¨Ò8þØÆ_x·’N u5æÙcø·LªŸ\—ØŽ+fGÿˆû='Tä”éôÔk¯Ý© ¿ÖXrÝÔ=æYC ,?Jí#æßv–…%ý3äý#€»Þ±—'ÃÆáç›1 =ÿ‹—âfkz¬8áá­qó¡1ç$áM†~dàhÏ øœåë6E¹ 47+®þãK^áØÿK^|Ò‡gûe¼å¯t4S?I†Ký¤:‹úTè&®:òP<µb|×)9HÑ—§,s–Z¼s¬÷aâÿ¸É>ô?·¬mAÇq2D÷[bJMô{ã%¬ÊFuúoö±+vYÑOü–a‡ìÌÏŽM©m­áÓìw¿×Àæð²]Ð>ÙÆ7¹ ™óÛ•¡ó1Cì™yl9×`­òs?Y@‡ÅÅÇeŠ»ðØ~ǃvZ8ÀÇÆZ¯öÓr(dFŸñþ Hý ·âv­ˆÝµÊ|ØjUù+’6:¸­¿Ç“çì©æ7Ë‚«ºu"}àA¸Ô•šÀç8Ñ»ÎãÆ»~Ö{ È7nÏ ‚Ó+÷*}vzÖ*ÅÃò÷Ó½V&Çå¶hJx¸ùô¦Bòúc¯'L+L8~?~|-ùÎ<ºç~ÄÓÏZÙúë3qÀK¬ì‰÷œÈ:ŸBQ¸^{º÷œ˜ÊÜ#׉ý4{ªï Õp£õ}À˜öžË9ñÃÿ ]NÕP7º)ßÔÞ´>,æ°k¼Œ¼^4ä̽@îå°.I¯Wz´Øê°-»ÈÝ÷f-LÇõsq­Vê Š%¢ö£©ôø'à:Ä ¬¾äΉ©9 ðõÄR´ºÖcOüI8AHž“ÍsË:®Óhí/7q‡Ü‡¯ü |Lxr•¦lýU³ð<[Ž\).D‚q™u5ÇÄ®„NÆî(ƒaýºb@µZï" Xfa:Xý iü'Yørâ¶î”nA4,õµFÇŽ=Êkàí½°¦sZ‹ëÎ)4tœÛ–w¦hs/($õ5k.P]Žm§¿ã£®Jqš™Üýðd³ŸÅ/|ÛK.%à«ã<ÐÜOra¦÷œ`E«ï9Ñ»¢já­Qs|³Á¼Ér—ÀÍâ¿ç„Ïn×<ÛN±6…sÀ6ºŒã£y;ÙxQ:X½çD­‰ßéœ{¢j§ue=¨Ñ]Ë÷œ8»Hõé­Ucä|»^ï9á:ý3Ήç ìÍ©‚³Qµ.ÞÃÙË:E²‘­7œ ë¯"ºÕ}¹ž{|™;M_ oEÛâ‡xÏ èö×ãüüòöÅ¡a¸´ÇÙyRžšàM°ºè ÁN]Ž@ƒeéßruÜpø[lý€mf_‡·ãé\,ï(¥Zx^EûK5äÅ&¯ÖÒ¨ëµ&“­ ª»à\ ï~ Íeÿa¾¶S cíâzî?SDGy»Øþp—e°¿ïW¢ æßè‹wÇáZß2ã͵±sp/?‡nyÇ._ç§ж62ã舣¼“~­‘ÒaemSc1Ö¾ÁyÝ@í[1q1å†ô>"KÐÄJíh\K±8L‚öY—ÔØ½íDÑâ1ß{N¸»:ýØ{—5§Æþæš÷ê «×íö«Uí}a+áßsâ”͵®¥|¥¡j©Ö%ß“0ðc=Ÿî“Ürº¹0²Á±Ñtœÿ£Ï‰rÔÜ0Ì«t…Sòr!ŒÐƒê‰é Ú+š±÷xc­™•/ºTßоÊâH\óØ*éˆQ®Y,|ÃH`]‡8zç lE{s‡3 Ö-¾}S…óh[­x·o¯{Ù\óX}öûk9€í±ª.eXNâ§iŒ«Im:Æ“ãö3lºïØm·Ær]ùNg Ïêê‰$^ÃtøÖ—lÑöBÖes„wvïc™¶ýŒ#ˆËŸrE…ï-ëX´ÿ£§?M€²÷›e†tœðXõ<ùØ?ÀÎêཧ‘‘Ø®Îg3 ( ¯4WdH«ub÷3L}¿B°¥†}AÂp×W1—Â9¡:Ù¼ÐgÐÖÕ©{7ÖÝO+K[g§[Tãût½Â+"á‰Q±/ ¯›Öuˆa¾©f|s‡“´OËÄwc8£öÔ¿}gS]ò}éßs¢+[åNM]¦©?{„}¹÷ñ”2¸‘œ‘ͼ7®5Òºk+ÀÛ÷æÇº úŽ(÷Û•ùزÂ{Ë/lò% ás(xO#mИ¸kZΉ¿ývž‚4aPôwL%éD¯DQ´| {+,?Æ8¨LjèßÃ\‚„^’Ü.¶á:œX|63!·8J5üŽÆºüyRÍê%)˜mÇ,ó͢߹B!vÑ ¬Ñ"ÖPqê2d±‰Gs@•lÛ°:6³Ü-¯òW–ìÜÀ‡ý "PPH‰Ã—Q5eºV©q6ë]Câc–ñéËQ"ù´õÆÞu1FL&?×ÃR’“ÅÑ28u¬±xlêb“Äg®Ø&’Ét¤¶äšX[{Ö½T“úo­l: …Ø(uL%ñ×ñûÛo ¦=}}ævèËHVžáŸÄ‘Ýùˆ$¡òLõÞuž8boËqŒëõžYÉÚÿ IDAT—쨙gtöw/XNOí—÷œè2í=üÜs†œ:Ötï_´³‡ýßvN̮ܹÙ\%ØÓs Ö`nÒ. ù9¦xéÑ„ÛãÌyÆdI»«b— &ÌG³˜màŸJ5¶±q¬,üç°­1Ö~ë¹ídçu„¨ËPö5¶×¨ùA‰¡(:0ò)©1;?³ØiäŸÌ%¹Éã¹Äa “WrjR~¶Ÿ–·ÚÏMîÚtÄsù(ë@3ï¼`GÍ :]¬×µæ¡kDçIÑd?ðê´×¼y‚€k>ϰ¥òÒœþ gÝOB`bã@5;'“èkä0Lܦ+¸šU7~êB ´,.‚up4€Q»Gê¶ôzÁmÌ{žù÷~­>ÒÓg€†¯E½cˆgõý¶°J²í»FÊ yqmµsu¬Ž±0H dP‚œéí;9z6XÏÛ]åj§Ç¯"xωTÍ â¢»¢\kΗ†=~ωuÿVMNsÕ¼q½ gƒ‹¾FÿËΉþ5À:¼ÎA‘d\€“^ rϳœTȇLöõØ,’-ßàf½ov×Q‡ê1°Ì·9<øèøbä7]ª¯…p ¾rÈÚ_È #UÏ›ÔèÉ5>ÕÇ´&óJ.n©•h ¬ó¡$WRo…6Vl.ŽÝAÔàÙÿ2ÙHqpù¨5•ºxÀ×Ô›ûÁ¡0UGì옕fx«V‚“'óš$[¦Øù«¥[²"ÑP`–¾9èÔltAÞùÛÞycþú kÑZÛùˆŽÝdÞV„´ÄîÆÖ4Ù~îÛ& ÕóÈ×PHú×_bèBjíZtîךã£C-ùL= ß–WV•´5fé‚H& \mzü Û‚¦›Er°e¿×ËãC"#Õ÷”n:µ}ωuR>‹öQkö¥Ö“ xÖ†õó}‚L{íAõžTªö{•-÷Éúb¦}Œ´@³çÑØV%×ý€Œö='~üò ÿ‡w5-²±À×½!XxßT^ôàž‚ á|,ªÈÁ¢ý)“²9ú¶×æ;ÅI}wuäÔ\?Ƹóq7Ó<žy½`Y¸`í·Í$7]É\»a^” }^¥¯øÆÇA„‰cå-ÿ¬Ib!îÔjtróq¡>Ãþˆ¿Ñª!ãŽÍœ¸¤¥ÐÂLýFÞªæúÚaŠ8 \j|ò ˨#?Мý¬8¸±šŒAÁ2 "L«s®¥)PÖR‹q׉WÅDBHž-¾Û‡è8éƒr6Pþ㦸d¶lY-~¾k4ûŽÛà䀮€›cÇ Îþ;hHÛ×ÄÑõµÃѧh1]5`èé]›í;ú>èšµºS°(ŠÇ¤l޾íñ=‡ìæ­L+çäûžT÷³Ý{Å5{¢TC„½‡¼ÆLQ²(4óÈŽ5h;ë¾\{-{€Ëjû¬‘\äîzÏ W½®Y”R÷ZŸ ä)«j-<‹)iü…¦è…Èz”¬¸öAÉÍÿ;´e~X±íÅZÆOøI˜T:2Áƒ9¶úô³±›ªuäÀº4È6¯»l@y9-Ðg ”×Yyr•|ø³‰C‡Öâ ûª¸ÊgB±+ %\1ÒA º 4? „J@pê)\‰Ì¥ ÷¸)Žm<|éÛ—4§5;ŸFöº%(¼\µ9ö¤ÿâë±W@*#%PãÒÿ©ŸX|X 8¾IMOÜOæ¶]öWzë:¾ãiªÇæÄ&CÍJ¦·³Ê$±h%47¿¯¬½bäB]é«)–šò ®·K•}öÕç/½!£Æ¢ÇW¤ ˆuÏ‘}kÎɉÚ*±Þ5»ãúÆtdäÂ*¶Ôó=ˆŸÄOE”ÓÂsDï9A•ÎSŸÔÏÂ^×*ØÁi]¼ŽÈ@Pgí’kïœ*߃½ØÏ4dï9áÝ~JîÁ_sNÔòŸ¨Í"ŽSݪocTï*¸n†^€à¿-â¹é äž¹-µnZ¿ÚDºã ¸6Âl¨lzoÅ¢YEß³é°?%onÅ:0êm%Ö˜$Çm"fÁÑNLÂP›å{ìÊ›j<3‹m¤ë‹?ÉËän¹ÙœŽ ]¿Â)¦®w›é‰ŠŠKêzÀÂC…bœú´™:ÿù߬AOóš2·œfåÙ\¨6S-o Á¼JÍÓ  Kn‰BÈÞñ“õH=csb+àÎ7v½l ïõLý¶.fÑeþ½OÝì²®þsÛ©„V„¨þ\ŸXu¼«z¨JH&NÔ<1¥×¯^¿% §&8Ìžºp®þ©³IûêØÞsâ*JW¯jCy´_ßs‚¢¼ç„ï×"÷7³Ÿ5ct 5äuNüø¥ÜyÉíís·Ç9(V\ÚÇ5מ®>¶ àu„ø“•¡ûU*¢Xº†~÷%‚¾ÄÊ ]4;£Fsn;ã#i»š&NÚñIX±4<>ygWßùÃNŸC7ÈÃÕd©ó¶ñ8ÈšÙYŸÐ/’SrÙr¨ä5´óVU½ê_}x>CQ Å[­ãâÏèð¥1¦”dÛ$ÿ¡¨×ÈþäaÛb€E·&¶(¬ÅJìÒ*Y[ˆ‰yï=ôM¹| ™Æ2çg˜ŠWëî² %@ŽÓeoã­<ÄFÕuÁ2ƒ²wä¾öDÝG­דlÏg%ª íGOÄú§{ã:>û ÷1¨˜jàõo‘„¬ñª÷Üë.÷õKÜñC¯Ð¡a\ßï9QEX-÷IV³+­5¤`ï9QŪ½•úd#¥N«”®€¾·Æ†‘-ÞsÂ÷79·}üÿùŸ]"—TÅ›‹…ÔPµìÆQùU¥Mt=‹Z2@嵃àg˜:!üWÏ"•¹å摟6òo“b…+MÂ3iûš·â5†9q]MïpðÀkâ…w˜.7Ǹð˜4Ø>`;à†põ«3yz’&¯cwóçЀo9ö‰H{ÚzðMÝb/…˜K·ÿð 6ìð2—ï(:,ˆpëuC2Jä'¨‘Æ»¦†ýÀü†¹ŽÈìX|˜W–˜ Q’C^oO+_ÑŽhbµL\gÉWú6Ú"Þ²p5|ÅI÷Iö!>ӳøÀ<ûÿ¢CWß4®^³™«nè·À_.ÉéÀ sê76saf2øQjŒÕ{N<ëEµFk=\RŽ•VÍUO×Q×^ãYÇBuÉ)zö€-Žâ\tíû='ª„u¯ï–{ ²¬ú ó!}ƒŸ¶ˆ·,\ ÷ÖAúÏ勯ýcïÄž=à]§¥øºÞCõ‡€ÚDš~å¨B”¹¿ª¯`u9»z¦lbFy%pTÔǹm° µ©'tØí}‘+pùo914Ÿ8 c'¦±^ášÖ˜5ÎPœuÉ۩Ж.\JÀÉ•T`ù@ØB ŒÎ–LU\ìŽm #ÏÏ«ˆÿ¡ˆÜN  vÎ%šJ£/ìÒË‚¹BNEI…G'}r“Q.Bf¢Þk-ã#7Õ-;Ê5q¢ÐÀû&•·"´Š¡:àäé5>QQ»š¸ˆ?f¡A˜ÍN8Š£lÕ¯øVtÒ±vü˜dÿxIË…Œ¢]5·•ü°5‘¢f”s^:øÅR/Žf‘n©ý’üÐæguž&¼â;¹ÆÁK­`,?§fÍÜ\:"ÞsBû@ëtÕ2V¡z±Ti›âM}ßs¢÷Ôêºd–Pªª¥}Ï aΪʣÑ‘¥Žê¹×«ˆßΉùßàt°k®Âgsú Â[µyZs,q¦Õ ´¾`¢PX&¶±Vìºað)e] XsißRžÌšÁ[Ãó3îåôxëL=Þ˜s#Û?ùœÜ‡Iz1ÌW ¯íøT._j—Z"ª‰‹@­›nKÈ"ÍuòïD*l]ÐñÍ\›@“0n"°"íI™ÉVõðxÏÆ’´¸moÍî”–_öÓxcèç!Ùò¶S‡aÚyöœJÙõ<ëYvò…}tÕ[æþUÁ‰«}ßž‹¢.ϘÈ)Ü Ö„+g©ÞÉjUêÓq†gÇpù¦¸20Ò»ØüÉßõ'f[&ont‘C?²íxlf¬ód×HâÆ·¹5jNcë”Ý@Ë—°LøBJ»ø»å^ ©…Ò嘴ÍÑtpðÖð='z¹¼Zw*¤ýG‘Ï~£  @ýTÓžôøØ–cšqÍiQ ÷ª#&ÀË/{é°( qj¿&>0 ÌŽßvñÏL­ù¶<{Nt͹÷²|a]õ–õ½Ñ¾]¢aöÞœ¹(êrKz¸Áü¬¹¦¾Á(Ï€»¦ ¥ãÕxœQýàÿý¿ÿ§Dªc¡ Í3Ù1:N—V/–ÈN± Ï5À^ß(h2®¾ôæ¶@cîÐðps•Ä68†W‚\°íVÃÌd_â+.žÑAJ¡º Ñ[D —zá½}“vº0ÐHö8äÀâqÎÛBf¶ MãS7øv3¬>„×YR‰ã³€—þäad€âCRB3»ªùÐ5ät¨®LçÖê?^§/MØcsIq_¾éÚ´ë ¾×¿M‡QÑ(³ÎOyŸ Ü–§>·‚yñî±Abràøêä:¡êô*9°ŠÈˆSÔ5j¦^†%]!aÈ6¨ã)TùÚëji\¾éÉ3kZÓÕж?0Ñ´4‘á'éo;—,®vb[ doÃEì/ý¡pnp RË lÍmÆï9áõpÝRæ®àÙcï9‘Š°Ç©’7^v›êÖ›Tû½Ôž–&Eõ¦¿Î†ÿmçDý! n¦üÓɬ«Ã<%aèN%+UfÈ­šM'Q 7ÚòÆw£—ãs:0+ ?hM7!ØP@,Çîã§fŠ£ùe]¿Ý´gYu|僀Úe¨M®8Ý–?"mHƒÑ¡NœÄÛÆ#ÀNòUKäõíÏÒ¡ô+-Âѹ1mßžª% KuÍR+—ðá§Ç?atp Ä,VÙ2@ºè5yØÝŠ WÞT™ºSöP‹Nžòìऺ£h{:¸étepFzûG>Åóç?ü,òËçÂáSl­CE»b^z¿¸Œ­ë I>GõzJW¬qÁOÌGé£%׳Ÿ‚)þíO‰×ꂼçD~T•=vêϺ—ð='ÞsB·Üº·µWú>þW;'~üç¯ÿY7¿NÅËï"sJ•áãÀ3“ŽÓò¨¥ƒÄ25\g‹pûWˆóסUB3¹b¾ÏËk)ÍeŸCžCÑb[ã šË^¸ë@,\Ÿqà‡çC ž [jËdž8¾"ï`íé^"~&þÛcMQ›ŽlqåðFêzÐËoÙ)—²KžW¬Ç[ŇX¨Q êA.D]–š´< ôÀ™ËÃåßS_K¯XYk&* j‰éÚg)‰sù!†à÷Ø~ƦŽ;ºpËCÊ:…P—Ô)sé49:l¼_°kº’ÓÎ>*d\ §WÒ{^WÅD/HúÂ&7é*&ÇÇŒƒús ´\ÇßÃ/¢¶á®}#_ïð÷œ¨ªxõR5Í{Á¨º´ÌóMe{9ºŠ×½çDo´*\jêz;êÚpîÝà÷8÷Rl?sîù,kSßæ©kÒ!?q`CCèKé4)ë¸þ³Î‰úPß[”Çh>Zc³¹eØÁ¦8åXѧ±)f’\ŒÎdqéí;¨œx¦p#ý½¸íŽM,›»üÑÖ{±áp8¶ä᾵ĬWÒöõ¼²fPíú§Jì7t­¤xà5¼ªRƒDnÔ`‘ƒû™>Æá WkÕ¹…<ñ*ÇÖà“ßkÈ-ß±•äp,5«6üÝKSã„¥}R`í| [±äWÓ°“¼©C€ÌÔQ,—½·K©É¿Âwîœ]üÃñ×±§qi’r ½:69R ¹?¾ËÈë⿳ÐP¿Å“´F¯,;†FF\Ô xçV j‰äÃ8F¥QKŽL’CƲW¨ÔVÁ*gýмk#’/—øÔzʶŠÕñ®²“ Lëgü,NÅZ¶âzÏ Õ‘:y «*5èÕYUóRgɦq8z‰¡Ö±…ï9ášrÕ}–º°oÙËÌ[–=«Bþ‹Ÿ?ˆ^)h—pö>"1e¶÷ÐÌV,‘3¯>:]ç*~<›Slçç“Ê ‘Uaµé‹Ÿ)ã¼ RÑãH™yåPö¬„¹&ˆáG–Èë6§•Œr¸ÅË<@ƒ£ß= »a´5sáì°)©ˆ}ÊÀ€’¤•YZxÃò²yÎ?óIÞª±Ö·ÈÔãÄŠ[rözÕ˜?ú¶ðˆ”1{!ësbŒA÷-wæõ®óå05W ‘«õ ¸áe¢‰Í#LgrˆtÄÚz¨6¿ë­{é?ØÞ§¥òŸëµÃÃØqu$;2ï— 8‘·àÆT|Ñ3o«S‹¬‹b.»ø”-ZçåÞ"„eÀNNH–¡¼9¦)ÐãS‘¨7«ã@P£÷œPÞs¢÷BïÇÜïÚ6ûÒû?wü{Nø~ô}V·ÓßqNÔ;ü÷±Ýú P³.£å¶Ðø¶ªEKü,‹çÃLi«Ëülöö<ÄòUX}Ð £6W ¨ònÓÓ´kÚ9ôß‚n¢±âŠ­éš$ÖàÈÏ2ð|¸ñÓWyU‘j¤S0L=á#½"ìI8·_a‹SO‚\º+ÆèéÕêÁ˜‡`QÖe‡ŒØÒ».íœ9ªú¦Í:Xbÿ­-ÃàÀþ©?DÖ áφ…K-7ìpò$Êd­–íHH_-Œjç„VìO'Æ\sd¥æ'ï]¸ò}„À~[px;ý¸ü‰oÅ›¨uXñë¦Ô’õèï‹÷— ¿ù/ÇÔ»ìb"W«Pö˜,Y3Çã\º(‰­{ÕCVøÆAuКJó|f#"”†vx0‡ËT¹’§¥ðº¨ŽÇ©ó†ë='¨‘ʨ½¢z³Þ”¯{jøžU*ŽjRåY»ìÔ*{-= ö_lÊçsâ‡9u8»q,Úg½ÙwÙz(+ëz6%ãúo?Lž^‹;mkdÙñõ%XtÌöùÕÖΎ˳ŠGãâ$ ƺ‘¾Ïš+¶êóŽCj¥//²ó w8Z.ë&Hž0ó“Zâ÷l®È‰)4ç…R Mós~Ewñêx]#¼õ/7 aÈWõäîï}b—â)žNÏQ–ãø@ó–¼°K]šA±›å\å£f¬¼Éá$ñº"ÎÚ׸@òÂZåZk\ÐÔ+ ÀXR)ŒÕR`Pce [^Ùš×þÑÈTÜŒLí?õ[cIæ"¬@¾œúátù4SÛ+ s¬(ìáðD¦xÆ¿ü&™N >ŽíòãXÒIX!LýSCGÖŒ¸aôžT¦*Ñ…¦> ßs‚½Ruè}¬òdœZuÑÞs‚=äsηo]]<-].Ÿ3ëþe¯ýÀT VãY¿ê½dn|näKWmdÁÄ>\t½Íc§^1À> ?¾Ô ¨ã‡£Õd¹ææ`ó€`FËè MºøÐ¤Æîù©Þpˆ’ú>¯À ¯'¼E^?Ïåo,Ÿ9±”"qȧr?ÞÅë'ø°\×ÎÓÂ$‚šÄ!FBþÿø'6w<9°ä]?pLWÈŠ¬#nóý¡Ï‰Þk-?\ˆ^²®“dªE<•}wlN½°®ÐéÙ’WµfOãÐm€öïQÔ€C¦6¢D¦dl߉@JdõÿÄ£µo´°È®¸˜Æ?·§Ë·Û_sl.sÔ~hކËG¦ó#ϵg=gv7ÙvѼ焖û='²÷ØÞt.Lo”÷œ¸ÊQU©»©¾r×ÿO?~ù¡ô2Ñq›;¬3^Û~0­I/ªŽ…c¯³™(êB’!j¹˜$/…ptgpqKsX‰²M|.÷¤†_EmŸÄ%[ú‚æKn lpÇ_Gúêy0 Õ=šŸ4Õ£¿äüyM™aSÿŒ_V5ô4BîD¢Ñy"Pרç0>d…?o× ‚Cóû!%(nÙÖ¸f–Õøë›ÂÎ“Š±ÇŒ¦ÿx¨Èô€i‘®â­=©Ô•Ë•o?¾ bÍ'à™Oûé'—MüÅ”,±¯"Žš79%ÑÂIÃã6¶^S®^ß2„u×Tãm§z[ÀÆ>Í´æ–JîyE[^” †åµºÔÃ;YCï×A"œ>x<¦d½ÌXêì_ i7—fMJÇ“WÇZãŠãðÊ™ÜÏ…¹ PcÕ^rM¤ŒQô=–R#ì¯ÇðVs­zR…ÿ='ÞsB»M[ãì0íÙÿëçÄß~ýµn ݾÝs«Ðª]Ï ˜ÂèNì¹ñL0ðÈ ÔÍ?÷¡…5Gn;‹Â}t^Çv(d°ÈONHÅû¿u$.<˜p |…¯Ž’Æ;Žá†hl,߇Þa(ÕØõM½bëß·CžÎ²»Púðz [+‹ÒIM€þj¿® #‹Ã‰½È£<±±Öï–4ÖNN„/ŸóÄÆžÂ«ƒãœÐÐXàZò@Sóš;2ôé7V¾Îe‘bÑv¨Ís¯•õ6&…`²Ö|^±SÊR9ö-Û~Í`z= Á5ÞYµ¯O-L¡J™£°x9× ;ýëâ÷ŠÆ8ÌíK³›¼ ~bFNë@2•ŒÉ; dDmÝÈÑÙç‘99A'ã¶}tε®EÏÖÅ~“ÒÏtßsÂLÙO)_55j2zωÔC{ê‰Áœ?ª” ›êÈÜ{̾ï÷xcÂ¥}~nIuÏZôós¢þ°ÿ˰ 8Áä X…¢‰QßjZ1Û‰“L ¹¹˜û>K²X!óÜzÆ[¦¬ëíH·ô5cX®b¯‰E”Xðp¶‹6’êègæÑgþìŸ ~.Pl©ÃäÏØqN Ìdùè˜Oþá…ˆ/Çvü s=ã²äg㑜Yn.ÇÂØ˜ms×aê.]g$‰-óô?“j61<í¾ùç›k¯ªVʱÅ×]ãs×llÇμŽo¸oò™¹?ü—õùŒ&íßúø45šMƒÞqn¼ï»ºê›gª·N}[cì†/±Sgãÿ='¨RÖñ{NPƒÞ<¤Ûì vÍ‚¡ÿ™œ=ËÞ ·]ŒŸØEÿóÖìeŸcûïqNèC€$íÿ²Õ›‹”œ[N] 9ô(`älüûA|ˆáðã…›qÁY4ûpL斔ˇ û‹}ø“ñVÂézÃTÇÈycÛpX:º=÷ÆA²\ì¿-‹〉Q§äèÃ"J?ð‚~f´l~Ïìwpßb9òvþ8ìA·×ÔØØ>ëÉ\õ¬˜´ÄYæÑïñe~\ÛÉÏúÜÜî?c}r»¾“rÙybcœ}dì~%&œÐ\Ô&Îñ‚øã¬)s8ms÷®6ãllÜÛ'5¹›}kŸsðº¤þþ[ä8-ºäÁÜ~Á Ör×ý{NÌzS»Ô1•M=3ý{Nîí)ˆ‹ã¶†qzèZ"kŽê<òÕ~lãú“ ±Y–ëðX2ú{½÷XܘØ?lØ|útíÐß927™Yžk8v<©\Ÿ7TN÷:‘guï}i±IoM{/û<™…ëÐÈsp%¯kUäcŸ˜Óµpí¦.æº9íÛ×Ä΂ž~7Žq°~"É|Y3Õë¸?ƒ Ç$«‚†ÏkùÜ¿ÑÛir¾ëiVïƒíÛû(ü ‚q܃ /qzìÚ«ò »}Æ6=Ü›Ãó÷œ˜ý3õÏ:xÝríòezö…×`×9÷œ`¯ùÞú×='êÿX'Æ>¼õÂ]G›VôÜ@õj%0&ZþMS9<³øUo~vÌÈüëO³iò‡eð!]F‡âä•sblõ)rÍÑÍÏÏkV²‹y f37Iñ'¿¶@‚[áw|’Õ%|Ìê™+˜«A¥@F*ã^úüZ˜}c@=l¨ÜóuÖÌ"‰%vÎ1äãšÅØhÆ¥Z°øozbÓ±Ábî…?mHü4òÑX.ˆÇ19%xþ.ÅZç²ñ¾ ¶[>|Œp×>=Õ.¾ÂÁØæšzš%óßø•ð›¿Ç’Õ}à·É½Nò_ ò—_@í/D¤MòÁ¤ù§_­ tû+œb^ §=EÕ…{+s¬©gâÁ ¹jöðó«shý‡³@«s@ž:³ŽÏùTœ#Ø—Zˆ×óÞyÏ ª:Mk:åV-ßsâ='þQçÄÕMÉa¡CiöžGºqgrcÏÁRÖïÃÃðú 09¶`ÿ¬WâHü–ŽO'Ϲöqeñ•5š³šô\1Ôa,ÎÆ\ŒH!F˜Æ¶=)§Î¥ŽSÅ Üúõ7áwL/Ü_¸³òî~ß5}Örc¯¤[qr¡¦×pPo€'aYaóÓ'6¥ãøy8‹Cñ¹;¾ÅÚ—ÖãÒë?•ãÚ±5òc¬€6ƶíLSW}õþ´ÐëcUá•æŸXpÂe¿U ×þ.“3osPøÝ°ZZ#Y UŠæÖ~(Y|Aþìb¹óJßã_þèÏäP£p*½ÖÃ9cáˆQ ‹ýLÀÈ÷έ‚4,±"#‡ë·GbW4ø9ØãÁ\;†+~pðò¯¸w{ω] ‡µzÖôYËSO§ÞìWµ÷œðýÐåøw>'~‘Öf IDATüøådl.þ¦œ ÃÍ^{Ç›&ßÄ]7ÝÔàd# 7xië¢O÷+ö:óÅNÿôÉüìÆÃ¦ƒålRÄÙ»ÇÇ`5*=‡JÙo)ôY€­6™øí9ˆ|õƒR‡$N,”LáÉG Õ× 5á ô+/¥' rÓþs“æW瘦ÀÂs¨*|õ>`¥0 »2Pƒ‘š©µ~²Ã´‚I>ç‰døÃ¯¿òG Ê¨íŒÕ±Ñäw.ĪœºßPåA1ÄßçÈðˆ>‰Ý±Æ,ñ)‡Òå7Xþ‡Ý!³%g-;­£U²ï¡º­söÑÑè§H¦!’ªâÐTõ`äUd¬UnbÒFLõÙ'©‡@e‡)HµÀÉVãºèë(ðXø¤Äw} `5Ù2e[om$&^cFï9A½hÔI½6@U¦÷€êG…c­Þsâ='|q£y×0÷èòœÐgØÄÚ¬CâéÄÜÝGŒ{é—ļ]Nó«Ý&öÓëM¶¬.ü¸#&ñÄuq$8É™Ç 4 Z·(Ñž4¡®ð.ØÑ•®G®‡„ÈÒ¨Y½âL—wê½eÍ‚<ö’"8 £ƒ5ØzË©½ŒZEq—õhQï;Öǵ2Ûæ ›1̰ÝùåžIo¦±;¾´P ¨”Ü+guNÍÛQTXÅ8&moúða3ñÁæb«õN8Ø»‰Åâ#CøøÚU‹=\ßs!÷œ ú4¯›ëÅü='¨Íõñø÷®ï9±ÏöÓžS9ß«÷9Q?øE@ =Š>\¾Qïâ;²*Y°í<Ø‘„6ŸÄÍ!al=˜· ÇxJ"Å Šð€¨£lɶMäéÑ%®ùà -‚qÞÄ:ñÞãá@Ÿëà"Óº ›yôË£çêkX,’…+q–°[ðLí7špa›á®[A÷ ·„¦Zü,¯sŸ9P¡@z“hT—#ö!`}6„7T ?KØzˆr˜4þcï›v\ýìºßžä“¾¹±Ø{l¶lJ|ÎR܆v×Ä6©kn#Ð`×*˾!’·ýà yO0Hü$@£>¨ÀëÒ.9Ó²}“vÂ]½ýΓYûø›Ø³>©eêèùÄKì®Ç7Û9Œ‡¿,>˜™#=vÁ±.B\~™°›CÿÈz¥Ù7‰SLâvÜæ±¾<žš\ü¥†#²ôñw5%ö`îµ¥d¯>õ»uäœÐÓàŒjæXÞs"5rOí¼^Ù»f©ÝçÚ£yÚY›é÷ÿÜ+ï9ñž{e¯Ì“œú€7ç(ÙdÙœü>pƹeÇ¿õ8¢££ÜÕÁWî’å és&r¸€ñÁ„ZÛõXºŽA‡^‰ ä#q>œâ°}L0yüÁ,JiC÷5Ñï¨+ØÄböpÓÐRÍë½ã3”|gŠ]ñ˜áÄêØ°±’èwé­³ìöšŒ®Ã?~wìãÏÄçpš'×pYib^YÓʬ;c‘^Ú‚ÝÜa’­ö•Fe_Í`ŽvøâK{ãÄ…>Z›$2¬ ì/¯eŠ“:KW5Ç7QZÎg«PŸ„¶ñªQá5Þj×§¡&¬‰7.Òvªel‚+u ô½k¢Á×Kêtïá¬Û{N¸À>³\«}¯Mù}Ÿj^—s/ÕÀ«@ñïKRJ³ZÏ•v¶¥§G¦Á{NTͪjS8×gÕ*û7¢·s¢þ/ªÃ·Û÷ åMKqò–[ŠˆMÆ¢µ¨®7¿Äú½h|Óx¬CRŸúöÊùåº!§ZÔý¦*àÙh¾içÆÅ¥ ë›¶ç&Œ.¶q’Å?päÁ"¶Ãiü7þÈÀÒvrÑ}Æ7~ç41‘Gâ §{ø’{¡DY#劌ۇæðK‡Ùçܱo=·»Zw©w0V’G,þ=åêXë³XÕR'ÃåÍ’œÜÃwûÀÝ7¹ÄËëùg Žwã7þ³‡N~ŠµÚ¹ Çà6£±{]¶v·oÕÑ…dêA.KQ1á7¿¦èßôDG-Íg®Ä}Ç7=´:q}“KO3Öâs-‰žp&Þ¬ƒ9bgœñá$(Æ{ŽÕž‡ß „Ÿö~Á½çĬ‰k9sªëZ¦K½ƒQAA5ŒåÐþ–!œõ~©ôÙ³(£3Þk™q·lîøü¼=±žã÷ÄÚIÝ÷Fy)höKöÐØÀÃ>Û<ÎX·#3öég#2Þ¾UGÕÍÚ©1,EŃßÅs¢ž¸X^¼{“´û’óŦܨYˆø.”ÿè?ß‘À~óÏfy¸^Sl~†‹ùMë8ï>„Ã5ùŒöoÁ‡ÿÛøxòåàDîבAðJjÖ.ãÔtæ³!³9]C×"2ðĤkÇæu‘âë°íïzncœ«ëçõÂo¶bP,¿·æãØ9¿È&ÏHþrŸ½0Ÿ˜µ.,ÌÙ»’+¤ñïg~;ž©Åذ^cã½<óxõ:G¾9AÀÖ嫸¾¼áø¶9@½ï†×ÚìÑ…mñ³u Òþ³¸‘Þ½írs8|çƒ"æökbBfî禰]⊧`™›/9ßy†úÉÛÈ7_!>>À•œG>ï "8uËØ¼ŸuŠ¿à`øÛ¼nĵk3y€1.±o¬dZYجSËv×tû ·÷Óä[°ö$ú[>×N?ª—E'œ²[Ì`ªïÍ=²ø /–%ÛFîÏ“?ú`¿óÝü`ÈáŽÝ^mïis;çßÊ SºâÞ±<}¡ ÌÁD>tÁíýkÜqÖ{;6æ™üð³u±³ÿÉ#òÝÛî='öÞN}¼¾Ìþ¯ë³7½…ö>™ýƸ½ÁJ–E—SybòØZ7{`ršèc‡$ú[¾ÿçÄùSÀJØYs­£­*§âíEÛ‡‚`§Hc×?ÛOñŒBŽmýrÞýöZœ±ñMLá³°ùÔø–ÁÍ^ ío˃‹½{ç]úÍÁøÚo=w¾Ä7Áîc˜»íú®õÄŸCÉ–ÈËîÄ?3ÿï}bãx&NÇ“›nÖjÖu(ÚüÔÖÓ»ÎÈ~û ¾ÖªŒÇ‡4ÔÊ]SŸ%úÉ÷úf=ž3¿×Éród¿à,<ëÚëéH_Ê`å[çM| lµììKçŠë¦:#cO ‡ãY8hнçÄÙ§©¹ S¯Ñç>Bî='\)öáì1ê5û¼·Yéßs¢vMß×¾]36“J–bêÞükÏ ý -ÅÃðÐÍÏÌ~¤öfŸúE–2‡¯>H¬»1kEo¾áöÍ®$ñ³yäô§´ù¬u,‰{üͦÛ,G·ýÃy£Ô!‹||ùpý£œ¦èkì/aM\Ûá²~ÏÉ'Í.96ªaá¦OK­íõ3ÃÜSWtûÀzrež>~™?}Ï|0G†…ŸÐÇ–ÏØ1Þ-ùðêÝoÇ9A¡Oú“[ìRÌÓß®þ­èð:M\äJÍ@ã8ö¾L½ãs°Ù·Ã+qX@û¡6Îþo-ñŒ¾}8&á"ÎÄ®ÌÏ[•ØÅ5aþžZ¹ç]=êDm³¾©8²ÈÇFE†ÑSÜSjSžkì ÙC·|¸Íøž©kDÍÞsâø1Õ&7¿7›Kæ KÑ8„æÏ›‚¥˜l0÷Ìä¼ÌçP· Ý´Ä‘ßmF3pn¨pyñ‹L—­\r ÉÏþWLæ0„o0?ç—×Ëmj1BåT/Ô}ÊuÂz|N l»k1ù…÷Î'|éÕÌg8Âá¼°||ÿåks{<¹tšÅ”×?öeì·xÑ#wþ! Æyµ oj|xñh¿±ÍœÜ,ûŒ/qšûüíûzþ˜üÔÑ1ØãÎ>ˆoð΋Ñü±Ô#õ¶ÿ0l§¦ØûIXòŠ-ŒöC^ÎÝ2_“35Üò©!ÒØ¦6“ߨðxï AF~éßsÂU™ëÔYöÇì¡÷œ .lPŸG¹ŸÙkï9‘{ý{NÔúÿï›wßô.:޽Y}ƒ³8³iY2Z/> žÐ7{㱿Ø3¶½o¨ÜH± wl›óŠÝÓÆ¾Ãà{ûË!9茋?fØìCÚ1LMJ[¢ÔÑöžgœCâ³ “sÊM‘žxážüäçuŠÜ<Îs¬2J,ž§f;_47×Ä2q$¦ï|lÁ`c»¬ÚÝÐ;&ÛøÁçä¿·ŽígÖ%‚w­³,cóFF½ýjÒ—½ÇýÇvŒµz×a[µ¶‚IÎîý¡9r€7:×Ù±##‡èœÏä¶õ[·ã´÷äf¾]¸# ãBšSÃYÄþž³¶S/jÇžxÏ *áZô¨7Ù½÷r°¿ŒãÌÜëÞ‘rö¥u^“÷œp PÚ¹¡]ð)öªúTõ1Â6ªpf8³@Ã?² é­;oû¹ùŸñÝû{Ƴ=yÌFÂGâ¢O]üj }x&Wp¶ 'ºùäsC´ÓOÎÛ6ãèé‰éçÍñìóª56æÈŒ>×ñ…,ñ\cãø£1S¡Šz^ÙÁ5kîñ쯉ÙÎEÈ+žÉcê‘Øó@Ed0ÄfÇ„¾½\ªQS©±ÃémëkøÆòÉo°Þ'ñg<µšüx‹’˜Òì/mqÖ'qØ·ã vr@n¾àáÎÿĹýÅ/=êÁH"™(œ85ýz1¿yÌqÃÌ‘˜Ð ¿c¸ñÑãOôiÏønŒë´ñ±»û]C4Ž;ÿfã_Ú®™q¶EN{Ï j¶[ö*2öóÙ ®qöÎ`ïsköˬw8ÞsÂ÷PjD_(éo ÆdE‘%Ø9$½˜ÈY¨èaúÖb÷ÄFŽ :L¿ãè›7FüæÄnû°þæÂ§1éí׋1Íõç[Ð7—±ÄçæH0Æ!\ËÉ‘œÉKá’± ×këf>2F´oüú GKÎóï9°ün‘yöƒòEsûG2mrKŽÑÍÛûÉmÇ<ü9DÓ}Fî·>9{ † äs]²±»×à3¯Q°Yoê»ØìûÄ;vÄ6±fͨâèÂeh|¤É&y†/÷ z×9|c‘u0FW™‡ÃHûµŒ2q çŽ+û#ýxüÅî‰ t®9ýއÜÞs‚ª¸e¯ô¬ºYËÔ-ëGŸ=ç‚u­±³Îõžu†Ý{NP ×ûÞŸÈi®¯û–¸ûo>'îߨ¨XØYÜl/> Í÷þùdG}º{3ñcÃ=üQn2 Ŧڛñþ€R¬éwÑm›¿ì6‡ˆsäUzx'çpÙ¹¤&Ñ›;þ,Ýxbt,±˜›çH–lLJmñGx˜Ãä“XÈǤ¶Ÿ{r…ëÎ ¾yð…ßþÌiê2O€àñ+TÛàû¯iÉe°Éc×ç^»®¶Lœ“ã02BžoæpäÁùŸ}?cs­§^±ù´ÇÃgçFmâƒÞû5œÎ/õ‹×;ÇÑTçïoär®hïøY¬wï<â7XSÇ81¡}úqüÒ´-±½ç„kÅ5kéñÔKšs[›ZϺìuJíƒÍ¢ç›–=å9Bsyÿ Qîå÷œ ¶ùVe´o]H×ÝõâJ½tí:kR—¬IÖÕuöyžq°ßzü¸±NñAÿÏ?'ô@{׺7I6!B=ž‚Íác}•P[l c«¶IrÑÒ+ݺ¨xÊ_’†´uuOë+Pü1«hÊÞ\êÏÛ¨,n¿߀ă?/1‡¸Ûóþ£.Aûé°¶¿Î z"qÛ9´HºÈ;^M#³ïð¤ï¬.Þ¬{ìí—Üžk  é“7ÜOüøMÜÃÉ·ÞœKc¢ú“Ю/¢ [b»<¹ ‹ªÏŠÙ¬ÈMÐÔ"„ß­ûL/{{õµá¢’§0’={«ö *–FàêÐÖ€Ø;ª£H8ÂõÞpF‡¼"n_tx8Lž³·ãÓ㿪% `›V*Ê ]äÕ/Íg.òE`­¢©it—sPGgO³†ï9A³<Œ²D>_<ègSõ[Øö‚ vê¿ù¶gc½¦³¶ñË*?ïû³OÚ3óÜ£ÚÚëìȶÿÈ>ûÙ+­3Ñ{NÔ^a]¼w²ƒº¦=­Õ®¢ù¥zš×ºüWΉú-€¼E¿5иü[E8´*´`ˆ®?¬EÈ–ÅXI\ôö=û üaã‚8¶–KêOhø»jšw>EÖþKWóÔÁùÆ€ØmKgeÄ-TÍU0ŠÅP©ÁÖ;ú²‘gl6“o8dõ]͹¡7ý!Ò0P¢ŒÈãäÀ@²ðýõĆõ8.5’IuaÒA Í|·è ua Ó*ï0O„éTH(ÏϪ:qirSË`ügÈUስ0¥³Þ)HtÐ ¼öŠ lÛÎH‚sau÷r©$ÀOùó—ð K#l $kÒ±w'£Ò‰»`ÿ¡"ÄKÓÃ3"åžø¡ï”Õ;ˆž¦ºcÅJLøŒLC|”ÈOÔêƒiEè¸âÜV;–¤ƒS;™}|Ta:¾&uzÏ ¯«óžÞ×lïÚ%ý:î='r7¥6µaFô7Ÿ?~á·TèÇáP¼}T˜Ÿ«îv|ß>vJŒú„bª¦•>NÌÌáqTÅÂfíó>'òáLì-ü5ã°*˜z+õ P5uÈh'æH-aHMμÁ{î±Í“7ÂßÉ3fñ-²)I÷áÃ+WÂõƒEi’+ÃÐc.j–×SˆzVYJåÝ@ÙÔøÈ0 ‹ZQºî5ô”k5ñ‚j´6kꔿ̣¹îë©Í$ QÉuøœ—ÂE®4ØïŒ³/˜Ð– Ó6eøÙÄPl³ì[J‡¹q&ÖÇÕ~àWn‚ÏçÈ*zÄ1f"%rNЬ+¬ÕÀ-®lÖ$ÉÚÑ;Ó¶Ÿ®©Þs¢J¢Æþ|Ï JÁ&«Ó{^èèÑ÷<{Mâ#o‹½Ù pî Æ6ø¸¾çDU÷'çÄV%çÐ×Í]µNa©¦ «O$×+f¿AˆÆü`Y ]¯™æLÛøƒCYXdZ¨²—©Ø&cg ÀjCă{ò1ËÈo$gCDÛ~‰V.îÆ¶‰»èå&Ʊ ^ :º·[9C!°®5Î;+qëá\XðÅmqsDsYø¢PPÛG­˜:>á¢ø }Ö2¹ÙG) çKV…Æ5ùižx˜TsŒ¨U!޼9Ú&1Ÿ“ÎÚˆùOÚ¡¸v`ìq‘”ïÈ_f…-ÝÅ _©Á™ºæ!ÕÐ{uç¹M±˜œò—=‹¿Üg'7û(;Ñ;\¾çµ¬¢P—^î=V-÷ ˆo-5þkωú5Àµ¸òéƒcÞ†ª86&^+0m£¶‰Xµƒ,A1WÅw8IP{²ÎúEêàWd’ÉøøaM4šk~ž¯²7«8±mRáŽ} £Ötd†aìæÏÄî¿2Ñ`5mfÕnn½ÝÛÔõZ}ê€>õ/K1vÇ…<ä­‰jƒiµúƒËÔëSÆ…%$×Ãqð„[VltÖ(&™g]ÕÇ zâcêúSMâ#$«'Æú=Yaª‹_|\Zß~˜CO³O ²·Ãd½pèÀ–.üÌÅÒD1cÛ‚¤mͲ½ÀK@ä$Òú°ÜyóæhSM«C)·ºXòç?ÿ¢(e?c/Iû‹}jaLKBõ§Š]Ÿã¯uнç›–š"¡®G›¾ç„Š•ûLýÙÞ·LS¹÷œøçž?~û­^Î{Iº÷y£WúGÒƒZ¯•¯Z¤Úá³éÙîŸÏR‚ ÝÆËBS%  .ÞçÖ‰Ùô¥Š6ÖÎÀÊkŸNê%ζºóÀ½øBZX…„M+ï Ì=­ÀÏϨx>Óu‹´è°1w×P8Kç ‡8~ôU8°1ꡞ±¾VÝKÖh“†W´í¨5»ný…/¹=üû‰ Â+îÊñ?N±Ž‰§®ÃÖNþåoÙïqðIÍ?º8˦8ÛQCå±êãºiŸW½’ÏÔÉ<‘’qŒ+l«oñ€giv•†{‰;ð•^Ûy/´ËŽÏ³]3/.i‰Õ³©sùlE3 ït¦Ö=ÿÄÛõ{NtYì*ÈY‰©PÉÜyMÞsâÚÔË[•ú½çû废û>ö=XÕÊ^´Ë¹a>›kCzßÕðâµé~üòK~gæÐ´òö¨ý-­ÓÎ{Z¹÷ÉWãïœ -pÙ싸Ýh(Ç;¼Ì'~ãÌK<É#žTÅê|>ôÇ,ÒÇG|FNëîØFŸÜˆ‘oµê…?~QpsPOžïž'?ÿá÷øTé vŠr…:þ¬<›ãfqÜ5Åå>°x¥zd‹Ë+î¾1qc´ínMt~+»qêx²CìmYö[æöUèD6ë[q2o|˜Á¶‡­Á×HÃá7 !2Ç~ûÚãEUpà —§ßdöôÍGÜ>¨l°®àÀ„#óÄL6ÎÎqÀ½†êhIDATÑi¸mm“>-¸ëäµýÄþ<×&¾bŸØÓÔÏ<™g}¨ÁÄI=’G"ñ.ö:Ãñ¡/Y|ÆÆ}|ÄçÖÞº;6pÖ'7ø ü‚}Ï ßOï9Áîñ~bľñ^bDóë×Ħ¡xDÄÕÁ(Ö€Åéàï›$J3Ú¼±‘e+| $`úøy>±±àøl¼DF,ær|Ÿœ[>9 sÞ9%FêEK|[ÿÆNñeð“Kþ³o|ñŸ5À7¹<_Y—§bÿ'XE¿ãs ÆßNMµ„3Ê:D'²Ô‹œ3k‚]z,Ìz¯3ºØÅ&øÄhùü•=æ|ÓnÙÓÄ•ú ŽÆºÚfjÂ3¦Ñ †ä$lÿ;^ðGÝ1xî÷‹“'\É•q0ù gñëÜ&'pŽÏ¾g.F˜–dnƒ³]äΛÙSNLpy¿c?Íñ¤¦È§¦ÌÞsbêJ=~ÞÞsÂû,ûÏûÈ÷¡ïï5ëÙgàÝïûÎv{{l¬Çÿ×Ï `ݨsP¹ z5VCCpíO..²ÅuçP¥Ž:(c€ 6q†O Ô+ÏêzÚZïmjcªÏÁÓ¢c›¢Q´Ì–¸àêyDËOñs*¢“]ÅÂðFiÞMÆ.éj^ oÿ¢8éÅeojÐ×±2±SÙN÷!½áÉ–N-#àýÒø†úÆ/³ï”´±wWàpŒ~e1ëúÔ UÕë*0ãÜàó@c¾'V¿ü"ô•¤9ó¤R¤Ö³œNYV«uJ­˜KG‚V™„ÏØ {ì±’~¸™‹¸ð5«¯üídvÊ÷#×$÷`ÍøQ˜˜D¢y^b5ˆjP¶|‘ß]³Òƒé–ücøžï9ÁÖ˜=óžÜ´¹Oê–òí£{\•âÂæþ蜨ÿØ7<jñV ³˜Žñ¾ö‰]}3K²Æå´@ëfê [®‚ äÍãW¹‡MÐ‡è ¡/#§Î^„í!\Ÿ±óŒtÛK# nÙÈ1ë‹w›ÃàØˆÂ‹¼.z‹]Ç®MEAÌÄeh"PÛ2Þœ%7Øâ—­Ðìº2Ö<í×>-üËOl6§%f¼ª5¯þ“hÏÞâÔŽµ"mU—“˜DiË¢B€:d=YÃA1uþ%+ðü<[Ÿ!@ ®æÙNM˜'„’®8ycPÍ–F3ežc¦=.q‘B'ß“x³ìõ‹ï¬9sš0 D§œ÷w‚Ös©*üfОš·^1®1‘Šˆ|¶¦¶eðµµmé°e– GBCëf×A·œ"uLÁÝ<ï9‘JRŸ÷œP²U¼ñj65zÏ Šs~ €›I7Ô9\»ÜŒ9x"3ÌoQ^E-¥o̹¡ccÆÇuÝÔáÅWÆ ÍÏî‘DCÿRýáM>Α”ÞB·¯‰7‹ìË_ü[þÍWb«MU4Äòì⸠àzBÞþÛKæÆíeA ª-9Ž,²JÇ#ôÆba}*&Â'›’XØ “{Öø‚/?–wlGmäY·ôÖ4øø“^ŠÑb‹¿p0ö¶Áy¿žou0kmgÕº^A‹© ´7äÇ5kšx}ÛRŠ—½ç˜wìäÉw"5‡cブâ&#‰¸4IÉ˧µóbô☺„¡5çÔÚ þIÇwŠm±êO,®AS'4Þñ+è¥rÇO“€ZaŽôV¤^Z‹ãÃ[Õ×Ô;§wÝ.fªùž)¥éE`)»ïë/È^¨’XXZa˜3Ò€}áùu-¡ååy¢>òáÛ vÒ®JÁº+ƒ¤-*ü…‹ñ¿û9ñÿÒòã‹Å< IEND®B`‚imlib2-1.4.6/data/fonts/0000775000175000017500000000000012255306373011753 500000000000000imlib2-1.4.6/data/fonts/Makefile.in0000664000175000017500000003462512255306302013742 00000000000000# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = data/fonts DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_warnflags.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(filesdir)" DATA = $(files_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2LIBS = @BZ2LIBS@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ FREETYPE_LIBS = @FREETYPE_LIBS@ GIFLIBS = @GIFLIBS@ GREP = @GREP@ ID3LIBS = @ID3LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JPEGLIBS = @JPEGLIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PNG_CFLAGS = @PNG_CFLAGS@ PNG_LIBS = @PNG_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TIFFLIBS = @TIFFLIBS@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ZLIBLIBS = @ZLIBLIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_version = @lt_version@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = Makefile.in FILES = \ cinema.ttf \ grunge.ttf \ morpheus.ttf \ notepad.ttf filesdir = $(pkgdatadir)/data/fonts files_DATA = $(FILES) EXTRA_DIST = $(FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/fonts/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu data/fonts/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-filesDATA: $(files_DATA) @$(NORMAL_INSTALL) @list='$(files_DATA)'; test -n "$(filesdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(filesdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(filesdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(filesdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(filesdir)" || exit $$?; \ done uninstall-filesDATA: @$(NORMAL_UNINSTALL) @list='$(files_DATA)'; test -n "$(filesdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(filesdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(filesdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-filesDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-filesDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-filesDATA \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am uninstall-filesDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: imlib2-1.4.6/data/fonts/morpheus.ttf0000664000175000017500000020471412137523370014261 000000000000000ÀOS/2“ÕM Ncmapà}Î¥óøvcvt øš\¾¸,fpgmƒ3ÂO¤glyfÖ¤0 ç¢hdmx³N”.Š¢ Ï·/Œ \. ’ © @ï ¿ >N ”© 1996 Kiwi Media Inc. Design by Eric Oehler.© 1996 Kiwi Media Inc. Design by Eric Oehler.MorpheusMorpheusRegularRegularMorpheusMorpheusAltsys Fontographer 4.1 MorpheusAltsys Fontographer 4.1 MorpheusAltsys Fontographer 4.1 5/21/96Altsys Fontographer 4.1 5/21/96MorpheusMorpheus@,vE °%E#ah#h`D-ÿû_öϧK\£ZgÒ¸jø*a£@îÒ€:'U¢‡ @ ¸ÿ…EhDEhDEhDEhDEhD³F+³F+±EhD±EhD‡´wV@ @ Fv/7?ÈIw@7JJ@KC>7 8$HG?>/.I-, :3(C G.I Fv/7///<ý/ý/ý/ý/ý/<ý<.........10Ih¹ JIha°@RX87¹JÿÀ8Y>76'&&'&'&'&767&'&'&76757'676'&'~x‹N.îi./T8PPýŒ©p˜¶qg ›À|ÿã/h&3AQt@2RR@S6  B(6L!>0H%2:,4N :4!Fv/7??/†‰«;…$(IybVˆyÜu¬zA<†Šþ8$?pbWdV;"#97ú{"(·¢²UNt­™žü/ŠL05©‡‡»ö³¢°RK}­—›y@" .ì~Œ­–Qÿâ;i Vt@0WW@XAMA/.' A)% 9#T.-0/I=IQITFv/7/]}uPSµ v^b?DuÔ‹ñ´åŒ8 ++G_a;BS9&^! Å\dp! =$[Q.<©–ù¼L¸<z9@@Fv/7//....10Ih¹Iha°@RX87¹ÿÀ8Y7'7Lddxx¸ðZxx^þ“\h:@@  Fv/7///ý..10Ih¹Iha°@RX87¹ÿÀ8Y67&'.¯Rx.2åzíe cd¶Òþ þû¨·þÛ:­k\Iþ“Gh:@@  Fv/7///ý..10Ih¹Iha°@RX87¹ÿÀ8Y676'&®N…W;O~:2ÙžˆÐ~mG_±Øc·ŸW³þîþ¬þá†phHn@,II@J*EA2- G*%!<6  32@ :Fv/7///<<ý<<ýýýý..............10Ih¹IIha°@RX87¹IÿÀ8Y67&'&'&7254&'&327>7676'&/'&76/#"'&ì¡MO¢aGq€4KFd:''+Z™]O™W3[g'9&D%! %r` Fn#3/*=F_m 7¹+PQlo@J A"&-?!> /E%"Zfwž. Spg8iYBH=Ö \@& @      Fv/7?@@Fv/7/uþàï{b[|þç˜ó‘þêöãˆýøÔÀÿȯþ¶óÀºüã%^V@@   Fv/7?-NS²g^s{ E©š4Yh=ÿЯc,L@--@. '+ #+'Fv/7?///ýý/ý/ý..10Ih¹'-Iha°@RX87¹-ÿÀ8Y654'&'&276'676767#"'&547632Þ 3Fšz8)1KRâß|Æm¦ gF{LÅ4#Ie5*©galuÅÛ£•³y§~[‹þx"ˆÙþ®ûŒG'(0H»÷6 ys¬ÊŠ• ÿº˜=@@ Fv/7//......10Ih¹Iha°@RX87¹ÿÀ8Y'7'7xxxxxxx¨xxxüšxxx þè˜A@ @ Fv/7//........10Ih¹ Iha°@RX87¹ ÿÀ8Y'77'7xxxðddxx¨xxxûÈðZxx=ÿïG?@@Fv/7//.......10Ih¹Iha°@RX87¹ÿÀ8Y%5Gûö ý‡˜û7û˜þƒ=ñGS@@ Fv/7/E.V 6MME IFv/7?=6767676727654'&# !2767 '&%6! nþˆx3]e9'Bþˆ%AþÀB# )RއM3$ „\O³¤çþóÖç·^r®{&þëþÙþÒÞñøN »Í^p,/~Èšia¢pÖþÅFXXJ*,Z^XI°K˜ci’aþ¼UL«’Žáˆ|¹Èþßþô¦œ+]9±°¿$IÚÏžþþÇ©} &ÿöâ}"-1x@122@3'10/.-#" -#0/1.  Fv/7?=!!5>=677>7''5!âý³x=ýt(<-(0"<;  .$,8,-,Fv/7?rG5RV%þúuSÈßt¬ýd³Œ%Z3%L> Þ/":\Z™y:]ýìJ i+)‚F†P.58 4j¦YUË“þàl8"gse+. ;ýé3ÿ×w&'Q@((@)!  %!Fv/7//<ûA/)%€F…L .nÇþþnãF'FšÇZ$n@-%%@&""! $"  # $#Fv/7?54'&'5!!;ƒD#&~^|K%!ý¢, K†F),..O‡ûºŽ#,ÿâöZ`@& @!  Fv/7//<ýýý</<ý<ý<ý‡@=??@@ +/ ;$#&%4365+*3&#$54%$ Fv/7?54'&'5!67676'&'5!ªÆ+1':þ›xjþ×þ¬7"xý½~;"xHy% »oá&!FlE+[þXg_äü¼þÚ  ,[TˆÉ†+þD‰%",, Sœ)~', ../)~þ¾~þJ2 .( 2jþ}mþøÉZc@(@     Fv/7?++@,  %*"! &% "!  Fv/7//<ý</<ý5!567654'&'5! !ÞýÖxAþeiþP3!lý§Œ%&$xαÂwnF#r  ZžcþåúŸåD ûÜÍ@)T2¬ç‡,) þÌ4 Yƒûº‰)$!þ¨Po@-@  Fv/7//Õ\1, ]n6&X€ßm‹ýãþœuZ <u@3==@>,4 -,<  65  ;:4.-<; Fv/7?w-<W@!==@>2 &.6#:Fv/7//ýý/ý/ý/ý/ý....10Ih¹=Iha°@RX87¹=ÿÀ8Y#"'&'&767&'&'&7632'676'&'&6'&'326=”‡ÅÀ†”a7¦œ;X™ˆ¹§x…gžYHEi–TDœî|XºNBði./IR‘€–~Àqgcn¹™uBs|Nt‹²k^Xb¡68UoYoROˆhqaNf›žpà}VI®Fcfa–cnŽ/³("\@"##@$" "  Fv/7?P¢ˆ¬TŒ€9t"G93>p¤\: V…'$,,4%’™©‰þ·u˜¿idÁ›ß©’%4,,$'…þÙþ‚É¢Xjl¼­#ÿãåq W@ !!@"   Fv/7/p¤\9 t9x G93>p¤\: "t9€5>P¢ˆ¬T.M/˜¿idÁ›ß©’%4,,$'…þÙþ‚É¢Xjl½ª‹L1F$,,&&gþ‚É¢Xjl¼­$…'$,,4%’™©‰þ·u˜¿idÁ›2!Éb'O”@DPP@QD0,+$#! ONMGF,+('$# 7698@?32ON87Fv/7/=67%5554&'5!54'&'&'5!ÉýÇt)cþÎ+týÇx<-FªEÐt9x<5>C^lmssdFŒWWML>): žþ&E ,, 2)—ÄH§;$,,LdTM¸u~GLKJIG‚½ dL,,$;‡\É‚FRRTSLy­{ÇZ\@"@     Fv/7?ž¤ú f?­þPZ´þ½cKT@@  Fv/7/E(2‹Ç'0@2þmÿø©1 +/„@=00@1%   -,!/.++!.-/,  Fv/7?=!!5>=676767'&'5!©þ)_1ý÷1`þ(d, 'P#% .þT)ÿß,%&Q@''@( $ Fv/7//<j˺ÃÍÿë°å)K@**@+#& Fv/7///ýý/ý/ý...10Ih¹*Iha°@RX87¹*ÿÀ8Y#"546&'.'&'4'&3276°zŒáÃöå¢WP4H"?F˜_8ù°´Ès&¾ 8§¶I-u€¢T@€ì¹Ó4¾×ç!,Œjx•)N:Afþüþ?†:f·qŠ“Ø¶‹Ò$n@-%%@&""! $"  # $#Fv/7?ªß# ~‚ü:®JP<-JüŠ# !fkd$ %þå‚N &þINþ</2Ÿþ´©m@. @!  Fv/7?54&'5!#"'&76!2# X4$ %44_ØgN\pÑ M%:5[¢;"¶›K𥵑Ÿa{ ?þb’Cz×¢ðážÂ  !:q7%% ^þ}45-¨¹9ÅØy15š@N66@71 50/  %$#"32*)4,+54352+*  10$#Fv/7?5!'7/j5D(!_þÙsss# :m37)aü•v #­sssÿèß“N@@ Fv/7//ýý/<ý<.....10Ih¹Iha°@RX87¹ÿÀ8Y725'&'&'7^2?9/ H9H’B.1\sssÓ£˜V&P+;ý.žf€$&@aÚsssþèR9‡@=::@; (, 6! #"/.10('.# !0/"! Fv/7?54'&'5!67676'5!»Ÿ2"( -þâþª¬þð,2bþ1e/^Óa_³q­W7"Iþ­RL¶Ê—ë #w# 8"þg@ ## A}Th! %%%!eþm‘kË<=% (TþvdXÒ`@&@     Fv/7?**@+  $)!  %$ !  Fv/7//<ý</<ý5%!5>54'&'5!%!~þE_5þ·Tþ§(Wþc=drZh,Y7Y G€‚âû²·çü°¥2! Xžn! ÷÷Giü•k$ þlEf@(@  Fv/7//<ý/<ý<ý<ý54'&'5!EY{þ(Wþc=dsÞÖI#kû‰ÑR¹üª¥2! Xž)n! ·1ÿäb1 $N@%%@&!$"  #Fv/7?//ýý/ý/ý...10Ih¹%Iha°@RX87¹%ÿÀ8Y# '&767 4'&'&76'7b©—Øþþ”ƒ¥—Ý•‚º@YÅÄ[AAZÅÅY@þ¢sssŠþÀ½©ÙÀ ;¾­ÚÀþóåÝߟãåÜÞŒüässsw (f@+))@*"( '& #"(' Fv/7?,4-,<  65  ;:4 ;.-<; Fv/7?h<±þc[Æ_²þ×40vTŒ)!% /þÿcVÏl”Í[!Vþ8Í?³ª?! 2þýz .qTa & %+PÝþï8TJ±`Ÿã #FBŸsCþ}v #\ÿÞq9-9W@!::@;2 &4.#7Fv/7//ýý/ý/ý/ý/ý....10Ih¹:Iha°@RX87¹:ÿÀ8Y'&'&767&'&'&7676'676'&'&6'&'326pnj´žozQ0uo2IošŠdnZy K;:bQo@7z½gI­f£’~fji2Žd`T[™€`:OYBbq“YNKS…-2C ]Da85dPWI?Ozƒ]·nat`·”rÿè…š)t@2**@+))#" ('    )(!"#Fv/7??(“0 <<”í&/ýFx( ## qÑõ( *£{k-Fþ¶ÿÄÿóK+g@*,,@-'   +! Fv/7//</<ý3%$$#,&%=<C?>7 DC87-, >=J Fv/7/%Ó“Ù·u* ## '&#"21 4387  .-DC32Fv/7/=&'&'!5>=67755$54&'5!654&'5!¡þ9]3 O~õ"^þ8`0$9‡Ø§0``01<¯þÀ|0`È]4 J¥¼F4\Ç# ;;j[VΑìþÞl; ## >Oxl—ÉþAO> Ò >@?7  =-,+* 10'& ,+*Fv/7/Iha°@RX87¹>ÿÀ8Y!567654&'5!5&'&'&'54&'5!676767U=2 .þ…t7##' zjR;< ## “^d9=<;:9hΗQ< ## <;lI¡g9ABCB=aŠc Ò\@"@   Fv/7?޹C&- u†õ¢E/%þôþæ}="--4t; ‡v?@@Fv/7?|!*,D¨õŽF' -5H³þí‘?#G6ÇC@@ Fv/7/7'&'&76«\ 4o&&+4 áPˆ fn¹bM[6**zy-PPø-EeU…b!  oj|w§B0>=L@7¿K%zL  ;^N]s;¾|….6[+?D!^~Cn^¨]" HnhC\ zZU€K"N=F)$’þÒgnfv@2gg@h6J<:! L<'#b6G-S[@-WD+eDbFv/7///ýýý/ý/ýýý/ý/ý............10Ih¹bgIha°@RX87¹gÿÀ8Y6'&'&62&'&'&676#"547654'&#"#"'&546327676'&/&54672ýŒ^:Q‹NB>?Oþš d';ªzbQ!<7(5$8*'¤4R¡V+QI?f`%7]TyoªP.P"<,,0.OOxmÅi¾[|R:[{E,RÂQ4Pbb”<,+'5$”;>"C„F9jdxG=W4NZuH@vT*;O$"'aON\S–µi<‚Ì 6@ @  Fv/7///ý10Ih¹ Iha°@RX87¹ ÿÀ8Y&676&=«zy¨§z{¨¨z¨ªzz«¬ÿÔþÎtK7a@%88@90/&/%!  +* Fv/7//<ý/ý/<ý<ý...........10Ih¹8Iha°@RX87¹8ÿÀ8Y%6767676"'&'&676)6764767#"t:* >uþ!C µv|o_t@þEtÏA' <¤ %&tiªýÓïó ;G?¨/¡hm³kµ-7þ‚,+ýûþÙ%ÑF (·m#~ån±2,$,n!þÞÀz;g@*<<@=;-:93 !")7 % ;:Fv/7/*<<*+9<3<**<<*+;Ì<*+;;+*<ÿö¥fCŸ@IDD@E( 0/$#8765;21.<;/.10767Fv/7?=677676—þi`b4MÕþê, ù¾þÅJÃÛ[dK9]û­y!Ny=G1H$ýÜ“^e:(j(çt7##'!yÐ(g (-$å"+/‚@;00@1.-+'#"  -,#/.+/,  Fv/7/=##5676=676767'&'&'5#å±#Ä#±&  .MI* &z.4ÄÄ$&,,& +3,&[1S69P4¯.+ œ>mQ62U9r „›—M@@  Fv/7//ýý/ý/ý....10Ih¹Iha°@RX87¹ÿÀ8Y#"'&'&76324'& '718`a8028a`81Fƒ„„ƒƒ+++™eGRQGfeHQRGeâæâäþÖ+++ÿø@¢@KAA@B'-,#"54328/.+98,+.- 434Fv/7?54'&'!!!5>=6767676ßþz!€O)>ªÞ# ”˜ü:®JQ;.Kü‹Y7;°A;¶þJ1`þ(d, '<@SB†##˜þåƒM &þINþ</2Ÿþ´# 7oki"ª¸¦þÞug8 22 8~‡}iýntP?4ÿÃm /]@#00@1!) ,+! .%+*.Fv/7/=%&yQ‡T+Nz€É9>&2€L“Äv[„b}yLQZÞ²—mH>w æþûB@u¤ÌŒ“ ô‘ Økþ56P(N@))@*%"  Fv/7//ý/ý/ý.......10Ih¹ )Iha°@RX87¹)ÿÀ8Y'7#"'&5476327676&'&676"xxx‹sfŒœbh™Ž1YMnw;=GR3"3Øxxxû‡RHTX™Â´5~5 vÈ®sh«!&7\)"0-&ÜþÐØ@@@   Fv/7///ý.....10Ih¹ Iha°@RX87¹ÿÀ8Y'7'&'&73Ðxxx_« \ #`xxxúÐc7;A/Ünùâ þ{ëh8o@/99@:'&%$ 161- %$  3-- 1Fv/7?27\N ,Z)#ù'A+8Y—@/3T%2þÄ’yΧ§Y¢4@ÜtÕ$'<_I †Mþæ@þhþÚÅb¡#(=^1%,WI¥Z @E@AA@B4<84(2?Fv/7/>@?110,1& )(%$95 ('&%=59Fv/7?/Iha°@RX87¹>ÿÀ8Y'767654'&'"&#"2#6&#!"!!327673# '&76!Úb8"!5$õqQPqöVb4MÕþê, ù^þeJÃÛ[dK9]ü‰lRþÆ©ÁΞšý"ŒF) þëÇþäþáÃþî$þŸ¢a0ýÛaý J:?ÆþaÑîw‹í¶1ÿøö;y@4<<@=//.*/$'&#"73&%$#;37Fv/7??/ªÞ# ”Kþ·:®JQ;.Ký;WAü‡š¥ásssýÂokh ÞŸãæœÛëþåƒM &þINþ</2Ÿþ´§¾-;¾’ÿûœÿÿ=@@Fv/7/5!!567654'&'5!#6&+"îD(!_þj5þ\2bþ4f_—G-I¢à Ñ77)aþ•v ## :m®þRg@ ## *tTd$ %þåˆH 'þI\>Ÿ@L??@@77607:9%$*'&  +*> '$&%98Fv/7?32673#"'&''&'&76324'&#"767#"'&'&76327676'&#"Wd’wE@qwœc4,ý !4.oH>yuPDLxXh‰ZüŽ_[¤4$catB;swœ<¼!KmREzwRE0UcštE?oušÌüzSE5 +mSF°œ“©UOzŸ…‹KA[D."›†„—…ìD‚ú51_1º˜”[Qxž„‰üG?0H±•~•„¤Ž¤UOw†Œým˜€†n1²—}<(0/K@@   Fv/7?5!/j5D(!_þ# :m37)aü•v #Ššß?@@Fv/7/1¨:Of6:g0#*Ì'}Žê>@@Fv/7/Ðk9ä´€Ix(MÍÅH$[þZôÀ_ ;@ @  Fv/7//ý/ý10Ih¹ Iha°@RX87¹ ÿÀ8Y"&54632Z*<<**<<*“<**<<*+;…ƒ& E@@   Fv/7///ýý/ý/ý10Ih¹Iha°@RX87¹ÿÀ8Y2676&'&6&'&61U4HJ44IJ5VyzWWy{WÂJ43IJ45INzWWyzXWxýó4þDàP@@   Fv/7?//ý/ý.........10Ih¹Iha°@RX87¹ÿÀ8Y;67672"'&'77676'&'åH5  G.2þü#=1-2(0Z+#ˆ#'E« @  7M Qk3â A@@   Fv/7/72%676#6õþÅS-(+þLE5þêSEÇ/(-g I**ÚBÕþT^\D@@    Fv/7//<ý......10Ih¹Iha°@RX87¹ÿÀ8Y%32767&'&7½ZE6 &&Y[T~½\~6Kt3lSŸª&¦»A@@ Fv/7//<.....10Ih¹Iha°@RX87¹ÿÀ8Y #37¦ÿ€ÿGùùù»þ«UÓÓþGÉK$|@7%%@&""!"$    # $#Fv/7??5574&'5!%32767673!qCÇÇEoCn$,þù*Lè%xKVH4dû²% 9t0Šw‰émB &&"gþy»w»þ&< 6=‘þ;| k@,!!@"    Fv/7?:¢£ÇÇaþTð€q€pF' !00þ(˜r˜ý›X !{K/|@800@1*) ,+('  #+*)(Fv/7?1:OQò.-08AÎ-ºx£*/eR-0Ø-¼5n~Õµþëpx¿U;Zá³þÎy_еˆ¶#[Zg-r5i?!> t2kÔþß¡¸ áÈ’‚ÿæ> y-<CDg@*EE@FB?>2@= &.6#:CA@=Fv/7//<ý/ý/ý/ý/ý/ý.........10Ih¹EIha°@RX87¹EÿÀ8Y#"'&'&767&'&'&7632'676'&'&6'&'326#37=”‡ÅÀ†”a7¦œ;X™ˆ¹§x…gžYHEi–TDœî|XºNBði./IR‘€–Bÿ€ÿGùùù~Àqgcn¹™uBs|Nt‹²k^Xb¡68UoYoROˆhqaNf›žpà}VI®Fcfa–cnŽÂþ«UÓÓþG\ÿÞqÂ-9@Ag@*BB@C?<;2=: &4.#7@>=:Fv/7//<ý/ý/ý/ý/ý/ý.........10Ih¹BIha°@RX87¹BÿÀ8Y'&'&767&'&'&7676'676'&'&6'&'326#37pnj´žozQ0uo2IošŠdnZy K;:bQo@7z½gI­f£’~fjiVÿ€ÿGùùù2Žd`T[™€`:OYBbq“YNKS…-2C ]Da85dPWI?Ozƒ]·nat`·”r#þ«UÓÓþG!ÿºÉû CMˆ@9NN@OFE=/.# LF0/.-76*)C  I-Fv/7/t9x<5>C^lmssdFŒWWML>): þÅS-0+)žþ&E ,, 2)—ÄH§;$,,LdTM¸u~GLKJIG‚½ dL,,$;‡\É‚FRRTSLy­{PÇ/1).ÿ¹ÿÈ@ö =G‚@5HH@I@?7,+  F@=-,+* 10'&C*Fv/7/=2 .nþÅS-0+)þ…t7##' zjR;< ## “^d9=<;:9hΗQ< ## <;lI¡g9ABCB=aŠcNÇ/1).!RK&2y@433@4-+ %$1 & ,$%  ' &%Fv/7?54'"56767676#"'&'!«A!DMG}2þ‘O=d¶wG;E^¥cXsx½;(@8Aqþ1½a‹†er\+þ †þ1 9Q‚{#+/ýªI%+‹}«Ôž¥;þ¹c/ #Ç n@,@     Fv/7?ž¤ú f?­þPZ°þ«UÓÓþG Ò»n@,@   Fv/7?65" <:86.# )107%:9<;87Fv/7?54'&57272!67676&'&'6762767!3#vF8)Cï#Gþ“´ð gKO0%$#AØfEI:'§y T^†*Cýù_ü¦d!&34;rý-; ýûè ¯|Kk.#S ù;>d^]?£v A ¨múŽmÿñUc$(•@D))@* '% $# "!#"(%'&! Fv/7?54'&57272!%!33##5!5 #vF8)Cï#Gþ“íþÂ>+=ŠŠfþŠüdd¢!&34;rý-; «þW&ýÚPÌÌPQúŽr‡ý_L@@   Fv/7/76#"'&76%!33##5!5 #0K__>ZÚšoHŒ_Q;A0-¢pc—˜3gþÃ=+>‰‰fþ‰ücc¡4hLp1 0‘…†]n*/NA61«‘PFJ*?‡þW&ýÚPÌÌPQúŽr^*W@ ++@,(& " "&Fv/7//ýý/ý/ý.........10Ih¹&+Iha°@RX87¹+ÿÀ8Y656+567676'&'67632"'&5476SVù€8"—H8KH^T:Aw£td—/,;0=z:ÁH,4†45[98).QhE9¨ND',@R_!R@""@# !  !  Fv/7/762767! ñ iKP5%#•oc‘6³y T]z6,Býù%è ¯|Kk7O o‹€b`W3®v F ¨‡vU@!@ Fv/7?8  Fv/7?=!!5>=677>7''5!"&54632%2#"&'&6Óý³x=ýt*<<*+9< ?E““‚D??F©ƒ;ŠœÃin˜®ýºšFœž¶hhVžÌþ’S++<**<<*+;Ì<*+;;+*<ÿöÓ;"-1=IJš@JKK@L'5A;G  "/.#10--#0/1.8>D2>  Fv/7?=!!5>=677>7''5!2676&'&6&'&6Óý³x=ýt1¨:OO ,lúwþû§ÚûáÍ@)T2¬ç‡,) å¹f6:g0#*Ì'=ÿÝ{½ $0<`@&==@>#!$"4:(. 7%+1+Fv/7//<ý<ý/ý/ý/ý/ý/ý....10Ih¹=Iha°@RX87¹=ÿÀ8Y! &76% ''&6'7"&54632%2#"&'&6{Ô½þòþ¾¹¤Î¼C¹£éOp÷õqQPqööpPþJ>*<<**<<þ>*<<*+9<,þqíÓðO‹íØþïïþ¯ÄþêÇþäþâÄþíÅnüÇ<**<<*+;Ì<*+;;+*<!ÿðÉ /;G|@5HH@I+?E39 $  /%$B06<6Fv/7//<ý</<ýP¢ˆ¬TŒ€9t"G93>p¤\: ”*<<**<<þ>*<<*+9<V…'$,,4%’™©‰þ·u˜¿idÁ›ß©’%4,,$'…þÙþ‚É¢Xjl¼­¢<**<<*+;Ì<*+;;+*<ÿø© +/9:Ž@B;;@<21%82   -,!/.++!.-/,5  Fv/7?=!!5>=676767'&'5!#676©þ)_1ý÷1`þ(d, '=!!5>=676767'&'5!#%&5476©þ)_1ý÷1`þ(d, 'E(22 8guug8 22 8~‡}iýnÛ’˜Õ‹þ.{~8 Ÿ@ˆØ‘RTC€¦þÞC##Ç'0@2ÿø©u +/6–@F77@865430%30   -,!/.++!.-/,21  Fv/7?=!!5>=676767'&'5!3#'©þ)_1ý÷1`þ(d, '=!!5>=676767'&'5!"&54632%2#"&'&6©þ)_1ý÷1`þ(d, '*<<*+9<2 8guug8 22 8~‡}iýnÛ’˜Õ‹þ.{~8 Ÿ@ˆØ‘RTC€¦þÞC##ù<**<<*+;Ì<*+;;+*<ÿø©c +/Gš@IHH@I%C5   -,!/.++!.-/,>ECB9254  Fv/7?=!!5>=676767'&'5!3273/&'&#676©þ)_1ý÷1`þ(d, '=%T";#=wC]/''3>1¨:O2 8guug8 22 8~‡}iýnÛ’˜Õ‹þ.{~8 Ÿ@ˆØ‘RTC€¦þÞC##•f6:g0#*Ì'ÿø©ì +/;GHš@JII@J% E? 9E?3 -,!/.++!.-/,6=!!5>=676767'&'5!2676&'&6&'&6©þ)_1ý÷1`þ(d, ')"1:%$ B#" >Fv/7//<EIha°@RX87¹EÿÀ8Y%67272"'&'77676'&'73273#6'&'&767# '&7632#f.  G.2þü#=1-2(0Z+#NãZ-9!"g& <ÄÐgPZmÏ}m@G6QŠ¡þø›—ŸÿZ_u#'E« @  7M ¹?þF„P—ئçàžÂJ+Q$S>j˺ÃÍÒØ$./v@100@1"'&"! -'$"  #*$#Fv/7?ªß# ~‚ü:®JP<-JüŠ+þÅS-0+)þK# !fkd$ %þå‚N &þINþ</2Ÿþ´=Ç/1).ýDÒû$-v@1..@/"&%"! )%$"  #+$#Fv/7?ªß# ~‚ü:®JP<-JüŠ@SþÅ>E(2# !fkd$ %þå‚N &þINþ</2Ÿþ´šÇ'0@2Ò$+~@5,,@-"+*)(%"! (%$"  #'&$#Fv/7?ªß# ~‚ü:®JP<-JüЦ€Gùù# !fkd$ %þå‚N &þINþ</2Ÿþ´:Uþ«ÓÓÒG$0<ƒ@9==@>""! ($" 4:. #7%+1+$#Fv/7?ªß# ~‚ü:®JP<-JüŠš*<<**<<þ>*<<*+9<# !fkd$ %þå‚N &þINþ</2Ÿþ´{<**<<*+;Ì<*+;;+*</ U@@    Fv/7?5!?þÅS-0+)ý°j5D(!_þyÇ/1).ù :m37)aü•v #ÿ¸U@@    Fv/7?5!„SþÅ>E(2(j5D(!_þ²Ç'0@2ùB :m37)aü•v #ÿÞ^w]@#@   Fv/7?5!"€Gùù j5D(!_þ"Uþ«ÓÓû :m37)aü•v #ÿìP_ '`@&((@) ' &% !  '&Fv/7?5!ê*<<**<<þ>*<<*+9<j5D(!_þ“<**<<*+;Ì<*+;;+*<ùÄ :m37)aü•v #þlEz3z@344@5 /! *1/.%! Fv/7//54'&'5!3273/&'&#676EY{þ(Wþc=dsÞÖþ =%T";#=wC]/''3>1¨:OI#kû‰ÑR¹üª¥2! Xž)n! ·Óf6:g0#*Ì'1ÿäb $.V@ //@0'&!-'$" *#Fv/7?//ý/ý/ý/ý.......10Ih¹/Iha°@RX87¹/ÿÀ8Y# '&767 4'&'&76'7#676b©—Øþþ”ƒ¥—Ý•‚º@YÅÄ[AAZÅÅY@þ¢sss£þÅS-0+)ŠþÀ½©ÙÀ ;¾­ÚÀþóåÝߟãåÜÞŒüässsñÇ/1).1ÿäb $-V@ ..@/&%!)%$" +#Fv/7?//ý/ý/ý/ý.......10Ih¹.Iha°@RX87¹.ÿÀ8Y# '&767 4'&'&76'7#%&5476b©—Øþþ”ƒ¥—Ý•‚º@YÅÄ[AAZÅÅY@þ¢sssHSþÅ>E(2ŠþÀ½©ÙÀ ;¾­ÚÀþóåÝߟãåÜÞŒüässs6Ç'0@21ÿäbw $+^@$,,@-+*)(%!(%$" '&#Fv/7?//<ý/ý/ý/ý..........10Ih¹,Iha°@RX87¹,ÿÀ8Y# '&767 4'&'&76'7 3#'b©—Øþþ”ƒ¥—Ý•‚º@YÅÄ[AAZÅÅY@þ¢sssþZ€GùùŠþÀ½©ÙÀ ;¾­ÚÀþóåÝߟãåÜÞŒüässsšUþ«ÓÓ1ÿäbk $0<a@'==@>!$"4:(. 7%+1+#Fv/7?//<ý<ý/ý/ý/ý/ý/ý...10Ih¹=Iha°@RX87¹=ÿÀ8Y# '&767 4'&'&76'7"&54632%2#"&'&6b©—Øþþ”ƒ¥—Ý•‚º@YÅÄ[AAZÅÅY@þ¢sssN*<<**<<þ>*<<*+9<ŠþÀ½©ÙÀ ;¾­ÚÀþóåÝߟãåÜÞŒüässs<**<<*+;Ì<*+;;+*<1ÿäbv $<b@'==@>!8*$" 3:87.'*)#Fv/7?//1¨:OŠþÀ½©ÙÀ ;¾­ÚÀþóåÝߟãåÜÞŒüässs¦f6:g0#*Ì'ÿÄÿóK +5q@.66@7.-'4.   +! 1Fv/7///<ýE(2Dk< ## *uz‡nþù^Ô’Ù·u* ## ,282Fv/7//<ý</<ý*<<*+9<Dk< ## *uz‡nþù^Ô’Ù·u* ## 9O3U#" (  +$#6R<L RLOFv/7///<ýýý/<ý/<ýýý<ý>bC|r^;˜6] ·þ‘þûþúþ’oË5/-´`´ïþÙþg›%'™ÎÔ,}w, þ¬ýçU?náþñH!OUE08›goaÍ=Q ·nþ‘þûþúþ’t+# H‰›%'™þeþÛþÜÎBÿèÂh >?g@+@@@A01 (9$?=,5   Fv/7///ý<ýý/ý/<ý/ý/ý/ý...10Ih¹@Iha°@RX87¹@ÿÀ8Y% !  ! 32673#6'&'&767'&547632#nþ‘þûþúþ’o'™þeþÛþÙþg›=!" H+ˆ‘I7@M‘VM+4&8`q½lajp²=A4onþ‘þûþúþ’4þeþÛþÙþg›%'™þêþÊ]8i—t¢œoˆ4:;+I’ƒÂljP(žG¸@VHH@I>=<;:0/)$ :9('&%BG?>#  10)/.5CB$#*)65'Fv/7//5'733!56765'!567654&'5373eU9 DþÕB"Ú' Y{–þë@ Í5Ø6þÓF %<çØá¼7#<3$ýšK$Cu™( üÓ I1ýOs#ýîi *VóD+ šš -BýÝ@-ÿè6#s@1@      Fv/7/7/):3Fv/7?/AcN6%,3ndlSY€Ìc35aƒŠ]VKU‘¨_+:3Z|•YP™l£Q"Yc 0Y“aŒseOT'2LWDC>þ„oym:iqj—jw»Ut8crg/Ç o@0@     Fv/7?BABFv/7/3BFv/7/+7"Fo ;C 01†ˆ2þâ#(™] 3*z‡ HB/ 3;?3 z-ý·I7m/a—Brl:a1»ÏÈæ[0Œþ…Ò K@!!@"  Fv/7//ýýý/ý...10Ih¹!Iha°@RX87¹!ÿÀ8Y632767776&#"#"'&54‡5H@ 6[Ô±43ôx—‘«q—0Fþþx—‘«r–/CªŽtG@@Fv/7?=!!5>=677>7''5!#%&5476Óý³x=ýtE(2÷ ?E““‚D??F©ƒ;ŠœÃin˜®ýºšFœž¶hhVžÌþ’S++ Ç'0@2ýAÿöÓ‡"-1Iš@IJJ@K'E7"  /.#10--#0/1.@GED;476  Fv/7?=!!5>=677>7''5!3273/&'&#676Óý³x=ýt1¨:O ?E““‚D??F©ƒ;ŠœÃin˜®ýºšFœž¶hhVžÌþ’S++Wf6:g0#*Ì'=ÿÝ{Œ $<a@&==@>#!8*$" 3:87.'*)Fv/7//1¨:O,þqíÓðO‹íØþïïþ¯ÄþêÇþäþâÄþíÅnüf6:g0#*Ì'/%8å U@@     Fv/7//ýý/<ý</<ý<....10Ih¹Iha°@RX87¹ÿÀ8Y%#"&54632!5&'&632£A..BA/-B•û÷t@/0?B/-B•.BB./@B‰ŒŒ+/?@0.ABqÿø„W>@@ Fv/7?/......10Ih¹Iha°@RX87¹ÿÀ8Y ! û‰þwþv­þÝþÜ$WýZýG¹þþýðÿ¹ÿÈ@_ =IUŽ@=VV@W7,+  -,+* =10'&MSAGP>DJD*Fv/7/=2 .-*<<**<<þ>*<<*+9<þ…t7##' zjR;< ## “^d9=<;:9hΗQ< ## <;lI¡g9ABCB=aŠc†<**<<*+;Ì<*+;;+*<!ÿºÉ  CO[“@@\\@]=/.# 0/.-SYG76*)CMG VDJPJ-Fv/7/t9x<5>C^lmssdFŒWWML>): ”*<<**<<þ>*<<*+9<žþ&E ,, 2)—ÄH§;$,,LdTM¸u~GLKJIG‚½ dL,,$;‡\É‚FRRTSLy­{Ä<**<<*+;Ì<*+;;+*<ÿöÓ¸"-18–@F99@:87652'52"  /.#10--#0/1.43  Fv/7?=!!5>=677>7''5!3#'Óý³x=ýt43':4"  /.#10--#0/1.7  Fv/7?=!!5>=677>7''5!#676Óý³x=ýt""! $" 4:(. #7%+1+$#Fv/7?*<<*+9<,)%€F|'. .þŸ¢a0ýÛaý J:?ÆþaÔ<**<<*+;Ì<*+;;+*<Ç$-v@1..@/"&%"! )%$"  #+$#Fv/7?E(2,)%€F|'. .þŸ¢a0ýÛaý J:?Æþa·Ç'0@2;á%d@) @!     Fv/7?54'&'5!!#676;ƒD#&~^|K%!ý¢fþÅS-0+), K†F),..O‡ûºŽ#,ŠÇ/1).(¨ l@-@     Fv/7?54'&'5!!3#';ƒD#&~^|K%!ý¢€Gùù, K†F),..O‡ûºŽ#,·Uþ«ÓÓ™ !-o@0..@/ %+     ("+Fv/7?54'&'5!!"&54632%2#"&'&6;ƒD#&~^|K%!ý¢á*<<**<<þ>*<<*+9<, K†F),..O‡ûºŽ#,Ô<**<<*+;Ì<*+;;+*<™d@)@      Fv/7?54'&'5!!#%&5476;ƒD#&~^|K%!ý¢«SþÅ>E(2, K†F),..O‡ûºŽ#,ŸÇ'0@2=ÿÝ{6 $.U@//@0'&#!-'$" *Fv/7//ý/ý/ý/ý........10Ih¹/Iha°@RX87¹/ÿÀ8Y! &76% ''&6'7#676{Ô½þòþ¾¹¤Î¼C¹£éOp÷õqQPqööpPþJóþÅS-0+),þqíÓðO‹íØþïïþ¯ÄþêÇþäþâÄþíÅnüqÇ/1).=ÿÝ{Õ $+]@#,,@-+*)(%#!(%$" '&Fv/7//<ý/ý/ý/ý...........10Ih¹,Iha°@RX87¹,ÿÀ8Y! &76% ''&6'7 3#'{Ô½þòþ¾¹¤Î¼C¹£éOp÷õqQPqööpPþJþ2€Gùù,þqíÓðO‹íØþïïþ¯ÄþêÇþäþâÄþíÅnüVUþ«ÓÓÿЕ|$2N@33@4-#-' '00Fv/7//ý............10Ih¹3Iha°@RX87¹3ÿÀ8Y636#"&#"#'47672>7Li%,Ú>za47Q$B?Dg%Y„„2Ã57µ.›™–`qÆH3}78Rš´ÓGC$CE4`tqgoyˆÉBE ýÒ”¬s ž{6 ˜Ý*=ÿÝ{ $-U@..@/&%#!)%$" +Fv/7//ý/ý/ý/ý........10Ih¹.Iha°@RX87¹.ÿÀ8Y! &76% ''&6'7#%&5476{Ô½þòþ¾¹¤Î¼C¹£éOp÷õqQPqööpPþJSþÅ>E(2,þqíÓðO‹íØþïïþ¯ÄþêÇþäþâÄþíÅnüzÇ'0@2!ÿðÉ/9q@.::@;21+82 $  /%$5Fv/7///<ýP¢ˆ¬TŒ€9t"G93>p¤\: þÅS-0+)V…'$,,4%’™©‰þ·u˜¿idÁ›ß©’%4,,$'…þÙþ‚É¢Xjl¼­LÇ/1).!ÿðÉ /6y@277@865430+30 $  /%$21Fv/7//</<ýP¢ˆ¬TŒ€9t"G93>p¤\: ý`€GùùV…'$,,4%’™©‰þ·u˜¿idÁ›ß©’%4,,$'…þÙþ‚É¢Xjl¼­…Uþ«ÓÓ!ÿðÉ /8q@.99@:10+40 $  /%$6Fv/7///<ýP¢ˆ¬TŒ€9t"G93>p¤\: ÖSþÅ>E(2V…'$,,4%’™©‰þ·u˜¿idÁ›ß©’%4,,$'…þÙþ‚É¢Xjl¼­yÇ'0@2×K1¢@P22@3!"!1! +* '&  +10+ ,+Fv/7?3/KJ=/%S*E7".A9R9SRFv/7?p‚39UOv+6G#>uAT‹„Õ]X|/  G.2þü#=1-2(0Z+#N7< ;p?oPF)P$@K:B\tHD þé_8cQ@YKGs›zKGu#'E« @  7M ¹ ÿÿ3ÿ×(&&iÚ¹ÿÿ)ÿßt&Fi¼ÿÿ3ÿ× t&&•ѹÿÿ)ÿßÀ&F•³1ÿív9J@AKK@L,#!  C4;:,+$#?8G(0(4Fv/7/¢¤B CE9(Gb¬ler}Åu^49`ˆH9CQ–;6=WÐYQ.! i*aYüÆE!;{>-‡}°Ë›ªý-­bBIƒj•¡s‰$(~~~~~vÞZà8¶8 „  j   h  Ä „tèÀD\8 vòX4è:è¼Ê  ¶!~"Î#$ª%‚&`'N(\)š*°+€,v-B.Ì0Z1¬2`2ì3D3È424ˆ4ð67>88ä9Æ:˜;¦<ä=‚>*?j@.A@BBÜCÂDêF*G:H6I*IôKjLÐNNÀO’OìP¼QNRnS†UVºW"X:YbYÒZ`[Ð\Ò^p_„`8a¢b¢cxde f,ggÄij:j’jêkbkØl2lŠlâmànˆop6qŽr´ss¨tŒvVvÜwBwÜx4x¸y&yÎz„{{ |}}Ò~ææ,‚lƒì…R†f‡rˆX‰2Št‹”Œ4”Žr8² ’“¢”î•ü—0˜b™¼›œZ¦Ÿ š¢$£j¤€¥ˆ¦”§Î¨„©2©æªÆ«ê¬è­à®Þ°±4²V³p´’µÞ¶‚¸6¹~»»Ì½½¬¾6¾¼¿ðÁÁ¼ÂÂÄľÅâÆLÆÀÇ’ÈÈÉ\ÊâÌÌÎÍ@ÎÒÐ|ÑÐÒÞÔ<ÕtÖ|×NØÙÙäÚìÛôÜèÝêßàJátâ¦â¾âÖâîä^åÞåöææ&æ>ç¢<‡ôôª D”<‚ª|9QqLª^ªI†ƒ=9 ªP]9ã=@F(l=9 9 ƒ=ƒ=ƒ†^¸Ç&’ÿÔ>3‡ÿáãOÿÿÇ1Ç!ª;Ç%ã¯!¾!Ç=s!Ç=š<‚ã/Ç# `!Ç!Ç!㪴9ÿÀªDÁBªÿ쟨ÿÝE)×ÿë韟"/~Ÿ8Y˜Ÿ1Ÿ1­ÿ½c\qÿè$ÿÄä+€Ÿ ÿ¹é ך‡×Tcý’Í< ÿÔª„ªÿìÉÇ= ÿ¹5-{„:4kªÜ WZãŒ= 1ÿûñ8¬ªŒªVþªBªªU °cjª¾F "/ªª+ªªEªôªƒª4ªQªÕª&ã9Ç!6s‚\Ç!ÿ¹s!ã mmf‡4ffš‡ƒ=ƒUÇÇV3ãÇ!Ç=Ç!æÛºÛÐÛB9/9ÿ¸9ÿÞ9ÿì˜1˜1˜1˜1˜1ÿÄÿÄÿÄÿÄ3VBB†Pd-´dd/d/d*œÿcôb´–Wd81%­ƒ=dÿêd(åªôÇÇÇ=d/ôqÿ¹Ç!ÇãÇããª;ª(ªªÇ=Ç=RÇ=Ç!Ç!Ç!Ç1ª;sUgV3)V3)1ÿee$$   !"#$%&'()*+,-./0123456789:;<=>?@AB~DEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ascd€mte |u‚ƒ„…zb†‡gfˆ‰}vwŠrCiŒŽj‘’“”•{kn–lxop‹—qyh˜™š›RR@~ÿ1BSax~’ÇÉÝ”©¼À     " & 0 : D!"!&"""""""+"H"`"e"ò%Êðÿÿ  1AR`x}’ÆÉØ”©¼À     & 0 9 D!"!&"""""""+"H"`"d"ò%ÊðÿÿRÌÌÎÐÒÒÔÔÖÖààààààâæêîîîðððððððòôôôôôöööÿÿ  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`aßscdm¨ejÍnuÛ©ÌŽËѧ¦iÔg‡’¤ov£¢¥ràéç᫬k­ë®èêïìíóðñâ°ªlöôõ±œžh³²´¶µ·p¸º¹»¼¾½¿À™ÁÃÂÄÆÅãqÈÇÉÊŸå‹–—xy𛿠¡tŒ•Ž‘”“ÞÚÔØz{~ˆ|}‰b†fwŠ‚ƒ€ÎÚÕÞ×Ö©‡ÜÐÙÝÏÒÓÝäò„…D $$9þ¯$:ÿ $Yÿ$Zÿ 28ÿv29ÿ2:ÿg2<þû5$ÿà                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ¥í€6í€Öl1Alts@ ð yþ yùl‡i_<õw­Çè?­Çè?þªþ 8 y yþ `þªý% 8iE@ bÁimlib2-1.4.6/data/fonts/notepad.ttf0000664000175000017500000007512012137523370014046 000000000000000ÀOS/2[kØi|Ncmap¥ÀàGeXcvt ¡?i pfpgm§Ù^“dglyf!qúx]hdmxi°FñiÌÈhead£Ämÿü6hhea}•4$hmtx÷:$gpœkern|ép” ºloca£Úbˆ maxpìåX nameäQžxpost ¯ bd(ðprep£¨|û Zº_<õè¦Ùv¦ÙvÿJþÊ" ÿ8ÿJÿâgg§@ lû:^sP©@FWl(ù &† : ^ s P©  @F Generated by Fontographer 3.5Generated by Fontographer 3.5NotepadNotepadRegularRegularAltsys Fontographer 3.5 Notepad RegularAltsys Fontographer 3.5 Notepad RegularNotepad RegularNotepad RegularAltsys Fontographer 3.5 9/13/92Altsys Fontographer 3.5 9/13/92NotepadNotepad@,vE °%E#ah#h`D-,E °%E#ah#h`D-, ¸ÿÀ8±@68-, °@8°6¸ÿÀ8-,°Fv Gh#Fah X °%#8°%°6e8Y-@((''E¸ÿ…vEhD³F+³F+³F+³F+³F+³F+³F+³ F+³ F+³ F+³ F+³ F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³ F+³!F+³"F+³#F+³$F+³%F+³&F+EhDEhDEhDEhDEhD2î =@((''Fv/7?332-+  !P }    ´xM[N(x #'Pÿab( )ý6   ¤¸!$$@ " ]?v?.......10²%+&'&5676767632&54567>7632¸á  ($*#È""  $!ôþ°%F7B$D7 -330'5 0M'Q3%!ÿC¬^j€—¦Ö@llk\YXROLJ*'JI=}œc”˜œ}=#""q1_gga6(§9(§}(œ  (ml(E£(ˆ†(R‚(SRgf_ '1‚''=˜'uq'A1'_'XW"x1Fv/7v?<?</ý/<ý/<ý322767&'&5476327673327673#&'676%5#67675#"#&#"676&'&'23276¬“K 1%* %V!9-FM & %-J^QbŽ+&#; ((UF  þ÷9^&  ©  !  ,e   5=Í * 0J&=6|(x 1  O?;K0"#*W<# &E[-b*#  * T'.9%  &r&þò &11 *ÿJþʼ#TY}@@n\XVU6ZQ9$?(~9(3`b({t(gf$A(3 I(+V(U;?'$/'Ef'w 'j'q!]UUFv/7?v?/ý/ý/ý=)hbS2DU£F$%üŽ›   #!(?f"$Ž]-(=BI ú4•X4Kez=k.! Pˆm6'"?!e Xoþi0/( 4`ZU5 4A\ RX-.ýŒª H<5ƒJ @)[†5/LOUÿþÿÊy SI@ F:(T(#(# 'N'&64]#x&Fv/7v?v?</ý/ýýýý.......10²T&+76&'&'633276726#"&547676367676767232$?  P$;;@„]C( 0ŽCD þP'81bDs^H01Fm"#/( $,3 3h ';t›Ã, ? ýúFF`XgJJ/+-º +%EsPdRdS$   > $ ?&%J( %1ÌÜ@ ]xv?v?..10² +#"'&54767676767632Ü,'4!% ))Z>R'/5ÿ.*":V@($# #"(; (8(8(8(+('.'8]+x.Fv/7v?v?/ý/ý/<ýýýýýý......10²;.+676?5#"327673#"&547>767632Ë P% &j)3*=7Z9?9:0f# ( y–’A-+/,0c ’E L)§@VKgEg60  –sJPQB<7ÿ<>8@5%!(?4(91(9*('=9]?7#"&54654&56763676767676323676€ 2H *10  $ *F[& ñ( ! / U(>¤X :7!## 4/   5 )$F F  !G. ,+  +, $ÿþÿ÷Mû=N@!; 41-8-,%((8#,'%)] xFv/7v?v?/ý?ý/ý<99.......10²>+#&'&54654#""&546323676767654763267632367632›W - 3G% !"9 #$>=  -# H#l     "< ’  ÿGPã-@ '' ]xFv/7v?v?/ýý..10²+%676547654'&5432N ?ELEZ3_!ˆ&DW $H*O0 )1ìÁ` @  ( ?<ý<.....10² +#+"&54763>;2Á#,Uº5%$E$}*< (&  ^a @ ( '/ý?ý10² +7#"'&54632^ # )  ÿÿÿûåÿ#@<@ (A)(5( 2'$'] xFv/7v?v?/ý/ýýýý..10²A+##"'&547676767632'4&'&#"327676767676à!:€‰3).*+=Q$h""TJkI27 <2. /DRQ`V M2;L5<F!×;.JVLQ  "0Xa{7y=&6=< &A.BE %-O^ˆ")B -.=X=ÿ÷È@  ] xv?v?...10² +#"&5467>767632M%)$ (#%" ›1çlz)*? .‹p`Xi4ÿü)ž:=@3$(;(;' ]6xv?v?/ÖýýÖ<........10²;3+%&#"#676765&'&'&'&#"327632#326763!ýYj4T 1 96m  ^3!'.8-0MA+ü]kÝ _ Xi>d/%" '   0C,9-0H=^2:ÿÿÿúgïEP@$;8%! (F( 2(>'(0'B'>] xFv/7v?v?/ý/ý/ýýý<ý........10²F+##"&=6767;27654'&+#"&547676767&#"#"&54632ê(@„ )ß…H€  sd^h9BXP  ;[.d/  ½û#2&>ÿ (4%TV–@*#@BI)"!&'!I0  2? ,Hÿ=¨"VN@">=  =IH()DC(-CB'5&'T]x5Fv/7v?v?/ý/ý</ý7>7632¨8 %)!4P' <9 +' #8& 1&-<P#8(-0 *úo I+ZZ& A3¯2 !  ;p0    0L4-4(A25g L(w(B:a*ÿµÀVU@&I F L?<35(P'(L(PL'?-']x?Fv/7v?v?/ý/ý?ýýý7654'&'&#&#"#"#"&54767>3267632À#gfg€ Ñ\#?%+þ’×}CKT 3)L+bW(D¯F:T33 ³|Ä=1$?Y.7ú !#A ýÂc±39D Y 2,K! D*  !5 b!™ 09ÿ°Ä HD@ #,8'(I<0''< ]xFv/7v?v?/ý/ÖÖýÖ?ÖÖÖ.10²I+67654'&#"327654'&#"367632#"'&54767>767676~( $$) c6J5,,6SI^Ÿ€”UGYJlg(XCIHA%+'- [ELD15 P*3*=9DÆ  >+;G:9J9O_E+&@Jz@$@=7+ #33 %(?,@€0:(:%-ÿ׊6H@ $(4(4(4(. ('!'+'!4] !Fv/7?v?/ý/ýý?ýýý9..10²7!+&'&'7>76767"#"#"'&5463226767632Š%66a8F $r>C2 õ<%,, &++vFvE ë(5HG'']$º 0C'pI7T++^Qh ›:X-«Y_-$ '5Y0 #7EQ.=R'@ýí+;:S59/:FÃ!-  3'1c:,8 a#: .T4Q¥B5[3/@=1.2(20<++ ýj"(1%33T<-72<ÿHu16TVb@.VU642!  V(WU(WN(6(-<(2K'%87'1-]x Fv/7v?v?/<ý32'654'54'&#"327>76u -J .  2&0@>nN1G )‘‘@N)Í‘ 9"!%( *4:&,BM€9 ì/H BmH7_#XpS.A(2 *+0A¶cXCP´þèP/%L"  *do1UNþ2ÿ÷¤º 9@( ( '' ]xFv/7v?v?/ý/ýýý910²+&'&54632#"&54632¤   K "’   þ{  ÿúÿ7:P"2@( '' ]xFv/7v?v?/ý/ý<ý.10²#+#"'&'567632#"'&'67654632!  ?2MC YEW" ( þfSZH;4:ShV ÿCWZhc@.[UQ<840"! [  (i(i(i'@`_'@ 'ZM'VN.*x0Fv/7v?<?/ý/<ý/ý<ýýýý..............10²i0+#5>54'&#"3236327673&&5476547656765&'&5476767>767657233&767&76W .dR: Ü !g#\Ga2, >0H)* 6 ( 1JþµF' -°&%B0QB! þ—8 02' J129   !+1\GR..$2[6‚f“FA76 B7Ü--@' $ (]!xv?v?ý........10².+#""&5467676367632&'&54%>323272X2<ù€q-K-8*+ýÁ(èKaÛ8q¯ E$'   þl (o7(C?ÿû=m‘@Fk[uW cL(_&_HOETT(_(|(|kj(>PO(_7(Ž cL'cg'A3'n'‡ '|]ŽxnFv/7v?v?/ý/ý/ý/ý/ýÖý/ý767632#"'&Þ$2  '.   3 ¶,Q+ @_÷7+:$3þ XC # (8= !_ ) I O^„:(4Zba%K éýÓG-C>U)/"&H4Qd*:+ID‹SµY³hyd;+ # -%" M&E:$*" 1O)767>54&#""&5476767632#"'&'46320g8..  ‰ET!*';½]'6g15@1'7'A3Ä$ _H?54&(q7D1!W `2( #0(@AP9=0þ>!ÿu)×]|b@/^D""aD(}m(!,(Zd(;(J7a'7'N('j'Z ]JxNFv/7v?v?/ý/ý/ýýÖý?ýý?ýý9....10²}N+#"&5467>5676326767654'&#"3267676767#"'&547676767676324654&#"32727>?6767676)5T11.8@  -ZH1 42@P;E*S@(6& -'=F7BERu„L8)E%& PKkU:-4Í  <Z &2 šS%C --+ 2K 6O04*27)H/[!OIcG.!!>%55(M54';27676767>5&54565A  7CH)E* X#E=0=?ZZ%+  „ 54`+ 3 ! |)Mi %= +4 ½  & €*U D‚  `7FNSS!h@"Q=   b n .-n1 7# $   ÿÓIbk@2X;1&B>$!B$.(c(c(NM(_' J'bA'7B'7_]xFv/7v?v?/ýý/<ý/<ýý<ý<ýý9..........10²c+#"'&=3;27654'&#"&#"#"&5676765&'&54632676767654&+""&547>7632IEONLQ'5L^BU_6_^IDC/[  .%  .M9(. # J1/F"BHd009>1m:@?7T8B*;$D?FL0##P,,-p3>73#"'&=676767676767632q'3!.8 =j44DL, !½ J&F!-62:22%21HC3 ´mW<6$$`uH `54ly' <H#) /6PA:\C*!!2*!ÿýÿéºëVF@FC+(W=(J6(N+*'2'N] Fv/7?6767>3226767654'&#"&'"#"#"#"&56763>32º(#-5/0R ŒnUJ    ""6û(3)>9V)6#  !D9 7%U%0ç,RG?+&-E >6De67 x@N?T ’1>3KCO-) +"/=¿ŒQA@3 KH+/(R*(R'(R&(R#'?>ON:9 ?+327>323736;27672+"'&=767636763263>;2¿-@IIe/% h~  \;k,,&‡! 11>_->:i*+•kK s  )‹  5   E2ëTF3  ÿøìæH@@A3/.!=(D'7F*x.Fv/7v??/ý/ý............10²I.+#367632#&'&57&'&5>?&#"#"'&54637%2ìR*~ 29@  ->:- C0).5 /. A /2 ‡†-(È  &,  ÿ Ü CE‡  (< ÿÿÿù؇S[@+M*&#J6:E#P=(T+*(FE(P#76( 2'A']xFv/7v?v?/ý/ý?ý$in‘RC»36.2Ild_5B%)$ :68BŽ4*   "   6,ÿÿÿòŠÍ^O@"XI=  BA3"/.'7E'AT'\ ]x7Fv/7v?v?/ý/ý/ý<...............10²_7+3632#&'&56767>'&#"##"'&54767656765326767>76765676567632Š   K!'    Fº(  - J.(85!:1 ‡    ¥,Uo - P_J+ G%p  2 )  -/r¬j:-# !ˆ /R( ' !" ÿöï‚@ ]xv?v?..10²+#&'&56767>767632ïi6 6'Uþ,À v‹B„:ÿÍF4$@ 2"(/]xv?v?ý....10²5+#&'&'&5463232765276767>767632D    $.% $:&?8 Ž((/)(  ¸«S-,  8DW9y5#$(% ÿ÷÷/L3@B>30(M'$,];xv?v?/ýý........10²M>+#+&'.'&547>7>32#"&56765676767632÷K2@L (%$** 63  )KZA×2<#M  þ**  !  áE,8@(-5452 5mT%Á'0#< tR\•on Y-Š#G=9Uÿü¯B2@A>(C16(3(/' ]xv?v?/ýýý<ý..10²C +%#"'&5476?676767632"32632767>32—(Om&%4FQ "$ (  % LWB[/ˆC Di— / +. / 28=O6ÿö¨›dF@\VOL;)O&(e (e-(S-,'Yb]7xv?v?/ý<?ýýý...........10²e;+#"&56765676767654&'#"&5>=#&'&5476767>76763676326767632¨##  # $"(aCi) (A46&E+$ '4 >  "3[ '(g6[ d&V[[)--33&%  !QA\?  NS ”:=Œ2(=1?+wI K(Z!"k7,*,N" 2 &&a.M*ÿüj B2@."(+5( !1'@]xv?v?/ý?ý/ý<....10²C"+#"'&'&'&5&'&5##"&5467676763232767>767632j%0&BAE.,$ %(( 6 :R+&2#$L//  ×Z9gRmm]J=[   =EE@krŒ%%F0?"   CQ†XY2M&&A4ÿýê¹!K+@G7( &(3'] xv?v?/ýýý..10²L+#"&567676767632'4'&#"32767676767>7645<'Ý €Œ:&D*6G+<`}X]@!Nf$fG$s8- +GcUnH’+ X`=1DD_Vq47f5'a1  S:$sVE%  %3BRL%  ÿÝÚY3@EB3 !( /'R]xv?v?/ý/ý........10²Z+#"&'"#"&547676323276767676767654'&#&'&'#54&54767636767>3233Ú#M7-¨(&#H#`; F $4'0-W"2!$+ ?#k- 7!B c?OYV8/=-4 ÿù˜-& ˜ ;$6Q#$'       &  )3ÿþÿ=M/pi@2mlh4 m7\( IH(+`(!A'XW'20'/E'87+]xFv/7v?v?/<ý/<ý<:9NH I8"7Ea2 & m ( &:)#8832672#"&54767653÷Uh‹b3):@*$8#856P€ b*J2<,4B 4vA  * 3«l+C( þ=a/3t"0#‡?PRJ4%7,*. "/)L1@E:40:   KK  cØgr .4)2Ki#ÿ²/ sa@-pD@c` ?(tL(4(f( %'YP'-'H'3263>32§ ŒO` /n'KM&sYggNG6A  L5.$2d<9D@-[<{?^e>>Ï!>( #  ƒ&S#&   3/10Q>X>9,>6.-  (<#*?-0"+941A3<   ÿû4ÃA;@?73/,$ < ( ( ](xv?v??ýýÖ..........10²B+##""&546327636767632#"'&5465676567654>324D>3"fTœ4e ø +**hLq6#þ=F( U  & ª  !1 Ø$5::¡e ¼   ÿö^/(@.+( ''] xv?v?/ýý...10²0+#"'&54762767676329/"0¨Y039?G9 $1$,)­m\ õ¤a $2<4;FEš¯ BZ+R0*>y«/%" ÿö{U60@"%( !'3] xv?v?/ýý.......10²7+#"'&=67654&567654'323276767676767632{4F :6!V]+"# 5/C43## ;T3Z?&48-;WK(R> -(þüT*<[-D.." ÿýÿÀáub@,n_GD@/'!X5[SK(ji( ['TS98'-<'-r]x!Fv/7v?v?/ýý5>7>5&5476763232767676=67632;67657>32á#+ˆ67AF $#Q+ +$    -LH     %4eA7(  × £Vef1[9=C7S-;!7C1Fl9h'(Y$  "E@)C3;E"gic*STR.(X@ÿ÷ƒC8@):B<8'B:'B&]@xFv/7v?v?/ýý<9...10²D+&'&'&'&'&'&54632676767676767632#'&54Æ     '#5-4 )8 !@5 6%*?)56(,%=%Ž$þ§SGO)*%$))/@ YEJ(IF$p  09ÿþÿünsFH@"B5)+(=( .(:! (2(7' ?=xv?<?</ý/ýýTi,( ~ M:*BZv  - H -?¶387E'6A ÿ÷å5LC@DI(2=(% 9'(']%x(Fv/7v?v?/ý/ýÖÖý?ý...10²M(+67656765&'&5467632#"&54767676763232767>54'.#"÷2@     +:d>HA BU +2G9N;71$þ˜278„ #IR/oH\7    (GLhpF/%*64% fXF5(7¿7 '' t R6ÿþÿýËÝ-<F@5 (= (7(1(*'".'*]x"Fv/7v?v?/<ý/ýýý/ýý...10²="+#"'&'327672#"'&54767676324&#"3267>Ê É#+ KU$( +4+*R?7!;)PDNK @E8 ;jƒU31 +<54+4>0%78 ,$  =ÿAÁSo@6SGD>2 7(T(T'(T+(T6(T;(T(O 'K$#'6+'6''6O]/x>Fv/7v?v?/ýýý+#&'&#"3676326767#"&56767##"&5467>5>5676547632Á(,7!6;  # 5*;X7   "š!8Hba2&'P27+/(4T,†  $  /0! #(!#Z5"3©(C+G\Vcÿÿÿ>C‘OV@'3M/73(PE(!(9(+A'$7'/+]xFv/7v?v?/ý/ýýý/ýý?Ö9......10²P+#".'&'&7473232"&546767632'67654#3276767632C)"'204DE@(?W<8Am$G;V.'.:PL-%*' =*(<",SADºWUaBû- $ &z ( L6,{09'6'(5< %(#5+S>%-O=' ÿ\ H6@=53,#= (I(A'E/]xv?v?/ý/ýý.......10²I#+%#"&5476767654&#"#"&54767>767467667632  2/  K8F'   E$<  aMS;Q;:? †}&%G'6(<00<'&%1201;·]-.p  9KQO.R26$(i‹ÿòk34@($"0 ( ]xv?v?ý9........10²4"+#&'&567632#"&5454765676767632k $  €   %!&  ø   - þ­ 7 )K 1%0 &<: BLÿ)i Pc@051#(Q"(Q=(H ( *(DCAL 'A' 9'P '&' ]xFv/7v?v?/ý765676567654'#"'&54'567632"  P$.0-A7^C7T 4!4^'#  ë A þÆnŒ\$#S2GJ=Z/"- l  uG@" 8+N2  ÿò÷MH@@<95 KCC #(N(N '#1]x Fv/7v?v?/ýýý9.........10²N +3#"'&'.'"#"&5465476763676767632676767632è!8N%H1VH(@+-N% DU !  ( ?E& - > V". -&  G$ÒåR,eJ !& 6‚5Y MT#ÿ8]@  ] ?v?....10² +&547676767>32\(Y#)3/ = ×%:DHn7%8÷ 1$= ˆ}W(G·ŒÿöåöUX@'SG"O)%6#/(V@22=6'%' '5]DxGFv/7v?32#"&5>54767#"&546?#"&5476767632Ì~%#%* #%/P0 %V    D<32676767632Q 3 ah", s  GP(H>  )z9WV%  $6Š-_<@%$6%,' â$&-6<*  'ÿöÙ7;@)%4(4' %']x Fv/7v?v?/ý/ýý9...10²8 +%#"'&547676767632"'>7>54.#"676c2B8!!+-6X2¦=,  #7 *ì:8& 'NR*;E& M8J$a18=&  #‰ ÿ6‡›CC@B?,(D((( '"/'3]/x3Fv/7v?v?/ý/ý/ýýý.....10²D3+26767654'&'&"#"#"'>32#"'&#"&'&54767676767632%( 8¦!//) )45?BÊu>)$š%Sg> L s)$   L=#WC{9FFI*/7 Oy6/6jÌ0=K Ñ 9ü"c)G# 5ÿ/¼ëER@&-32B"(B;(*(B 3?.'?'&7'.*]x&Fv/7v?v?/ý/ý/<ýÖÖ?ýýýÖ<..10²F&+2"#"&=47676767"#"'&547632#67654'&#"3276² *..; !  !#:C \cY18#>IEPRL2 & DKQi>8J&1K 0<7632_*K'E!3    `D1+& 'ç .-*i =&45(> ! 7(E*  %Z<H@!#(=%(=(:+((( '5/':] xFv/7v?v?/ý/ýýýý<ýý..10²=++"#"'&5476332326367654'&'&547>32%  (E0>/Qˆ 1    3IN  g >:9?Ò3¥&-  i'<7632ŠS)1V ^A.5M&Œ , .)1' W !õ•HW*\iW"Q ,5HV6\ 4)Á%ÿú/=9@37'%(6':"']xFv/7v?v?/ý/ýý<....10²>+#"'&'&5&'&5467676323632767676767654&?2- "M`mD  2 + )3* J0L$7&;œ?A8M;C %•"fI#GX:]1 4*J#*ÿônF65@!  &($'4]xv?v?/<ýý........10²7+6767#"&545467463276767676767632nM-[G@V+ .,CH2M !. )3  ]6gA.=/& /•JVþè <*M!",# AFÿøµE8@>6+>2($(F ( ] xv?v?ýý...........10²F++3276767632#"'&'#"&56767>36767632f ) ?Q4 0"!QZ$2! Yb( ,3" 8B':-j Y(B mF>I /O44BI3@AFM)" 9`o1 9!!.0H*M<ÿkò<M@"- 81/(=(4 (;'""('(;]x"Fv/7v?v?/ýÝÝ1ýý?ýý.....10²="+#&'&##&'&54767654'.543232367632632k L%q %4;$G!dG  =16*/ç 3T)K, =e %;Q. '3N$W> 3 Z5'+ ÿýÿ5’n;9@8) ''')$'5 ] xFv/7v?v?/ý?B%VA%> ' b ÿþÿñcÍ;A@:3! 3(<($'(+(+7('/,+xv??</ý/ýýý?<ýý....10²Ç ~F67:#4e3*  !?¿! lEECM0qZ  @ V/)*57   (6f<<  G=ã%@  (]"?v?ý.....10² +#"#'"#3567>323= –cƒ+D#? †tTxn$9)| 2~  7   bÕ26@& 0 "'-'])#xFv/7v?v?/ý/ý......10²3+"'.547632#"'&54632 1A'8"22LUT´ˆ &# B¼9æ),?=A"L9<^j53( -9)#H3¸ÿülN1<@*"-&'1' ] #xFv/7v? (! "&6-H#4:@;)%, @1i@6; .4:7E'!" /5-†0!@ ']$xv?v?/ý..10²+#"'&54767676320,>%+./0V94 &5E/8 ù"4$$! 1-9´?Â?Â?Â?Â?Â?Â?Â@°AÜBÄCêDæFBG‚HŽI`J®KØL^M¬NŠOpPxQRpSjTVUFV W$X"YZZZZZZŠ[X\(\¨]ÿ{g  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a²´µ¶·$$  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdef4~ ­×ýA   ÿÿ  ­×ýA   ÿÿÐÐÐÐÐÐÐÒ  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abefcd 2ôô± ô¥!ÂÿJvÿþÌ+HÿþT±`ôüÿÿeÿÿ¥¶Â}s¨7ÿúV sùèVzÉÿý»ææÿÿ—ÿÿï O +¨næç6ÿþö..‰sèÿýl{|ÿþôôôôôôä3ÿþæÇÿþ»Aÿÿ^ jl[æV‰ ÆV +le—ÿý^ÿþôôôôè èÿüèèÿðSê”Þú·ãË`av´ÍÿûÿAÿ ÿxþÊÿÛÿÎÿ³ÿÀÿVÿíÌìÿ-ÿ6¤7Gg†-”FKù <d-‚UÇ”±s¼Š¼ŠÅ2Alts@  ÿ8"6l                                                                                                                                                                                                                                                                                                   °›0 r%ÿ£'ÿj(ÿc)þÅ*ÿM+ÿ,ÿÀ-ÿ.ÿj0ÿ†1ÿq2ÿ•3ÿ6ÿ[7ÿ8ÿ£9ÿj:ÿ<ÿ)=ÿqDÿ²Eÿ•Fÿ†GþÚHÿcIþþJÿœKÿªLÿ•Mÿ•NÿŽOÿŽPÿjRÿjSÿqVÿqWÿ£XÿqYÿ[ÿc\ÿ8]ÿ²(Dÿc+DÿÕ9DÿÀLDÿœ1Dÿœ'Dÿª<DÿiODÿë)Dÿ3Dÿq5Dÿ²SDÿÇUDÿ„-DÿÎVDÿdFDÿÝ6Dÿ¹GDÿqYDÿj&Dÿ•7Dÿ\Dÿ†IDÿq5EÿœUEÿÁ)EÿxLEÿÇVEÿ£9EÿÇ(EÿœGEÿª6EÿÇ.Eÿ£3Eÿœ7Eÿ•1EÿÝ(Fÿx5FÿªVFÿÝ)Fÿ 7Fÿ3Fÿ•GFÿxLFÿ²[FÿÇ.Fÿ•UFÿ¹\Fÿª6FÿÀGGÿ8(Gÿ?1Gÿ£6GÿVGÿœOGÿÝWGÿ¹)GþáFGÿ¹5Gÿq2GÿÀSGÿ²3Gÿx7Gþ¯LGÿª\Gÿ¹UGÿŽ.HÿM7Hþþ(HÿIHÿ†1HÿÎ6HÿŽ&HÿÇ9Hÿ¹5HÿŽ)Hÿ [HÿÕ3HÿäLHÿÎUHÿ<Hÿª\Hÿ£GHÿIIÿ\+Iÿ£2IÿÕ7Iÿ)Iÿj6IÿªSIÿœ5IÿœGIÿc3IÿªLIÿyHIÿÎUIÿ‡1Iÿœ(Iÿ[FIÿ£7Jÿ[6JÿÀ)Jÿq5Jÿ•UJÿäGJÿ£IJÿª.Jÿq3Kÿª.Kÿ•(KÿªUKÿªIKÿŽLKÿ²GKÿq6Kÿ†)Kÿ?VKÿÀ5KÿŽ7Kÿ01LÿòGLÿ•6Lÿœ.Lÿ[7Lÿ†3Lÿœ&Lÿ²DL9)Lÿq5Lÿ•ILÿ†(Lÿ¹(MÿUMþðLMÿ7Mþ`5MÿŽ6Mÿ[)MþÌFMÿ2Mÿ².MÿcGMÿ23NÿÇ(Nÿ•1NÿŽ5NÿÇLNÿ¢)Nÿ•7NÿÀ6NÿÀ\Nÿ²GNÿªVOÿ¹LOÿ£)OÿjGOÿ•.OÿÇ6OÿÀ&OÿÎ5OÿÇ3OÿªUOÿ•1OÿÝ7Oÿ•FOÿÇ(OÿjSOÿÕ\Oÿ•IOÿ•XPÿÝ1Pÿ¹2PÿÕUPÿÀLPÿ²7Pÿ)PþÌ3Pÿj6Pÿq5Pÿ†OPÿ¹.Pÿ²GPÿM\PÿÇ(Pÿ[1Qÿ£5QÿŽOQÿ£.Qÿ•3Qÿª6Qÿ†LQÿ²7QÿF)QþÚGQÿUUQÿœ\QÿÀ(Qÿc7Rÿ ORÿÝ<Rÿx6Rÿ†YRÿ£&RÿÀIRÿŽURÿ[Rÿœ)Rþ÷GRÿwLRÿ¹3RÿÇ.Rÿj9RÿÝ1RÿÎVRÿ£5Rÿj\RÿÕ(RÿT-Sÿ¹3Sÿ•.Sÿx7SÿF5Sÿ†PSÿÇFSÿÀ6Sÿ[USÿ²)SþÓ1Sÿ²ISÿ”2Sÿ¹SSÿªLSÿœGSÿMESÿÇVSÿ²(Sÿ¹HSÿÇDT#ET#UUÿ±9UÿÀ)UþÌ5Uÿ£2UÿÀGUÿj7Uÿ"OUÿäIUÿq6Uÿª.UÿU(Uÿ[&UÿÇLUÿÀ3Uÿ£1Uÿ•GVÿ²(Vÿc7Vÿ†1VÿÎ6Vÿ•)VþÚ5VÿœDV2JV#7WÿŽ6WÿÝ5Wÿ²IWÿ†EW+(WÿŽ)WÿjKW2GWÿÎ.Wÿ\DW97Xÿ"(Xÿ¹IXÿœLXÿ£UXÿ±.Xÿ£5XÿqGXÿœ6XÿŽ)Xÿ"<Xÿ£1XÿÇLYÿ²5Yÿ²)Yÿ7GYÿ²6Yÿ².Yÿ¹(Yÿ•3Yÿ¹UYÿ¹7Yÿ¹(ZÿŽ6Zÿ£3Zÿ•GZÿ£YZÿÝ.ZÿUUZÿÎ5Zÿ†)Zþá7ZÿF3[ÿŽ.[ÿÀR[ÿÇL[ÿ£H[ÿÜ2[ÿÀ6[ÿ5[ÿ†F[ÿ²([ÿxE[ÿª7[ÿ7X[ÿÇG[ÿUU[ÿx\[ÿ•)[ÿ"+\ÿ¹G\ÿFV\ÿ£L\ÿ²:\ÿ².\ÿcE\ÿŽ*\ÿªX\ÿ•H\ÿœ0\ÿŽ3\ÿ²2\ÿ†Y\ÿŽ7\ÿ7O\ÿÎ5\ÿ²6\ÿj[\ÿŽP\ÿ¹1\ÿœF\ÿªR\ÿŽU\ÿk(\ÿ[)\ÿD\ÿ©%\ÿœ-\ÿ²I\ÿcS\ÿŽ]\ÿ²7]ÿ0(]ÿ†.]ÿ²5]ÿÀJ]2D]+L]ÿÕH]+K]2)]þþF]9R]26]ÿœimlib2-1.4.6/data/fonts/cinema.ttf0000664000175000017500000002650412137523370013652 00000000000000 0€OS/2x‚5C&¬Ncmap… ì¼!˜”glyf­‹9TÒhdmx<"}/&üHhead²­‡¼6hheaïéô$hmtx=lå%,€locaã („maxpy+ name”KVí8post³Pp ¬éîs’G_<õè§—éç—éÃÿ·ÿœ²„„ÿœìÿ·²``˜ P@ ˆD ÒåNv>±ýDÌÞ'óh’ï ˆD  Ò å N v >± ý1.01 Cinema ©1993 By Richard William Mueller1.01 Cinema 1993 By Richard William MuellerCinemaCinemaRegularRegularAltsys Fontographer 3.5 Cinema RegularAltsys Fontographer 3.5 Cinema RegularCinema RegularCinema RegularAltsys Fontographer 3.5 2/5/93Altsys Fontographer 3.5 2/5/93Cinema RegularCinema Regular8L„3!'!88ý\„ü|8üìOÛ%!!!Ûþ>Â'þOÂþfsþx!Êk!5!Êþ®R!J. #"#4&+546;2#53e1/J2sU.Ì-VÅJJ.B-þË54;n)[Z*ýdK<P< #54&+4&546;#54&+4&546;54&#"#546;¦@þöþÄŸ]•! 8:°3.¿Üjå t-H.Æ -%!.'&5465467>3:!4&#!"3!26ÆA,ý`&G @+6 µO/"ýŸ"//"a"/…*I>'+$½&N9rå§&>"//"þÂ!//3 !#4&+4&546;3J)$ƒ;8¨ß6 iL4Á #!"3!!"&5463%2654&#%7463!Áz@ýÍ(7F-Ðý%?jkE/I7(ýKOï¸9`F+)7>37#'%"WGý6(½CCåcþ¨ jWþâL$©;þNÂSW.¿(%#!"&=33!2654&#"&5!2!"3%2¿Šjýÿ-eH;"ðBm/5ý£-`£W{ý.;!VEQ®N`\?AA 6632>n1bJ/r<(Ew-ƒ %%#!.5463!#4&#!"!24&#!3!26ƒŠmþ7=YN<¿4dDþ)3wEQC/5ý›? »An®O_ _=ì7Vþ®1E;wJ2>Ž59)^  '>654&#!5463\ JþûþÃ1ZÎŽ ý¯_=ugDÍì$ 1 Z9]0ÿÿÇ '%%"&5463!"'54&#!"35!3!26ÇF-ýv-mjp½GC ý²#66µü÷\?5„-L R-BN·kɱéz):##<ß”‰=1.ÿÿÍ (%%"&546573!>=!"&=463!4&#"3%ÍF.ýc>PQ,0R 5ýN=^cMæH,4ý¨((/¹„+N qE>V,–hG¿FJþÇ,9*$=am#53#53aJJJJ"Kþ“Kÿ·ÿœam #53#753aJJ`J`J"Kþ“ddKxÓÊ·!5!!5!Êþ®Rþ®RmJäJ(Ô !#5#463!54&#!"ÔPüþZe1P"$ýž2(ëêvAiþ ©)1--ª(À  )#!!24&#!"!264&#!!26À5*+ aCý:ý=]E@$ýÆ<•&>E$ýmrBHÊ#O'81 97 wC(N*1)|:ü,E×9'Ô %#!"&5463!#4&#!"3!265Ô_býÌFrZ.#O##ý{"4(4<6Ý`}TCþ-^þ–I0*þ¢"*_6'ÿÿÓ %#!254&#%"26ÓXPüü"5UP";ý³$4¬!5˜@X!O*ýì0<'!þ`*(¶ )"&5463!!"!!3!¶ý!?pcJÑý'*üÖP3±M4ú;jð'†O}%8(¨ !"!!#463!¨ý&.#üÝZeBÙ0,xOþâz;k(Ô &%#!"&5463!#4&#!"3%26=4&'.#53ÔO1ý`AKe; P,PýÇ*#},# 5!Å8WY4ó9gþŽZ(6.þÃ&(,!..  ?(Ô !#!#32#"!'4&+546;ÔZýZ‡G_z&3ù3&z`F‡þâ SIT$(ww($THT'" #"#4&+546;2"z&3U3&z`F¯G_0$(þä($THTSI(° +532654&+5463°lDש4S3&z`F ýi3VD7%D($THT(Ô *!#54&#%#32#"!2654&+546;ÔPU?ý’ZÝ ¹<ê 4?vFaþâ F‹!)x5-+5‹Fþ“   ŠE(* )32#"!*ýþ…G_z&3© SIT$(þ`(² !#4&#!"#463!#4&#!"”P"$þà2(\e1ôP"$þÐ2(Ö)1--þ*vAiüàÖ)1--þ*(Ô!)!#&+"#724&+654&'46;:73ÔPþ11´!ZÀC4Yð©39+|O2 # )þ (bþæË=U$B 80C'Ô %#!"&5463!54&#!"3!26Ô_býÌFrZ.$P$"ý{!4(4<6Ý`}TCþ-^ý½ÓK5*þ¢"*_(® #!#: 324&#!"!26®^?ýpZFÆG–A[J7ýµ*~.5·3fþâ ‰H~!>2 q9'ÿüö &%'#!"&5463!'54&#!"3!267'76ö6/>)ýÌFrZ.$:$"ý{!4(4 ›6‹37/TCþ-^ý½@2rÓK5*þ¢"* ›6Š-Å "!#'4&#%#!24&#!"!26ÅA.#ýPU÷=]!K*,ýéV5œ-/«*Hþâ wC.X+'>H+"(5$8e:0· .%#!"&53!2654&#!"&=463!#&'.+!"3!2·bSýÌZDN7$1%:6 ý§0X€FªG ('þ$(&3A8f¶Cs…S5ZD(&DN%ÙMiþŠ%$ 3+22o(§ !"#4&#!5463!§þÇ&3U3&þÁ`FÙ0$(þä($THT(· #%#!"&532#"3!2654&+546;·ISý©RJÁ/2o&36?53&p3/Á€G9:F S3j&$þ·*"#)I$&j2T0æ #.'532" 654Ȣæ/×sD4D"ç(+ 6[>=\3+)è"D4Ž?,±s2?+,@1­MAO¢P"3A $ …&BB&… þ÷C3"M£QA L0í <%"#&'+"#&#>5<75<'2#">54.+54637í?ÁÀYÉ`1 5˜Ïþ‡°99" / gs '99°þ‡Í™€€9‡@&m”(R;.G-n lIQ n,Híþù”n-§ 0 #532#">54.+546;§þkRþm°:9!  "‘gx &8:²2þà1  îH-o   oIU  o+J(Å )5>54&#!5463!!Åütc J%ýá+3=|þ–ƒžB…  '“/-›#+RìTaÿ­ ÿß!5! üà S2ÿÿ(Ô ÿÿ(À ÿÿ'Ô ÿÿ'ÿÿÓ  ÿÿ(¶ !ÿÿ(¨ "ÿÿ(Ô #ÿÿ(Ô $ÿÿ'" %ÿÿ(° &ÿÿ(Ô 'ÿÿ(* (ÿÿ(² )ÿÿ(Ô!*ÿÿ'Ô +ÿÿ(® ,ÿÿ'ÿüö -ÿÿ-Å .ÿÿ0· /ÿÿ(§ 0ÿÿ(· 1ÿÿ0æ 2ÿÿ5] 3ÿÿ0í 4ÿÿ-§ 5ÿÿ(Å 6'ÿœÔ„)%+#5#"&5463!53!#4&#!3265!"3Ô_bòUíFrZ.U²O##þãñ<6þHþí"4(Ý`}ddTCþ-^ddþ–I0þ_6•ç*þ¢"*f )#5332#"3#!fýþJJÎG_Â&3áá©O³SIT$(wOÚBªj #"&54632ªjJJjjJJj¶JjjJJjj:SÑì ,8#"&546324&#"326#54&#%#!2'4&+"!26ѾˆŠÇ¾‰ŠÆ"³{y­²|{«OþÊ%U*  "ñ'-¢‹ÄÁˆŠÆÂˆy­±{z¬¯6M h5O ƒ-:SÑì 5#"&546324&#"326'+"&=463!#4&#!";265ѾˆŠÇ¾‰ŠÆ"³{y­²|{«W+,þ3)j$ þÞ þ¢‹ÄÁˆŠÆÂˆy­±{z¬¯'+8&å+£ ,+µæ,#54&+"#463!#54&+"%#"#54&+5463!ò$)-È$ˆþÍ&+ HµÓÓ/þ˜ÓÓüÚÚ&!%-§ 93##'#53%532#"3>54.+546;§þë€ïRùŠþí°:9!  !{ RSc &8:²2ÅO 1  OÅîH-o   ];H  o+J3PS !;+5467%!;+5467%SʳNN× þ¯Ê³NN×  ¤ ^•¹Ѥ ^•¹Ñ3PS !#7654&+46;#7654&+46;S þþYʳNN×þV þþYʳNN×gѤ ^•¹Ѥ ^•3P© ;+5467%©Ê³NN×  ¤ ^•¹Ñ3P© #7654&+46;© þþYʳNN×gѤ ^• 6ÿüp!@HUdt€Œ—#!"&5463!2#/#543253#53275&+"'&=6;#;2'##5#53+"&'56;2##546;#"3%4&#!"3!2654+";2%#'#373#'37'ý²,+N &þç# (  '#[L#!UJ !"‹**+þË+2%2+R,RF R<ý²Nþ8 ”‰«§V/ÜÙM! åéÉË )(*'$ üëKajM_g  ! 0ggd W43h »!ýÜÔ7 6û¨¨þñýØØþ&»ååþE>ÍÍþÂ5Ô e#"&54>76#".###".#"3263232>7#".#"'&'&'.54>3232632=:~ *<3Á 4";41.+% 6:F"5 C   @  @% E#4,48.S<->)D“,1þsa#(=.1"LCuR0>J($ 9 2?YZrI(0S 9? & ((((RnºÚ Jt¬Â –Æ*¶ ‚ôHÀ<`вøzÖ * t ® r ² ò h š ð d À  þ‚¾$Žf”æ 0@P`p€ °ÀÐàð 0@P`p€ \Š.Â>ÔÔ<¦â¸Òÿ{`  $%&'()*+,-./0123456789:;<=BDEFGHIJKLMNOPQRSTUVWXYZ[\]„…‡Š‹Œ–¬´µ¶·ÂÒESCFSìñ  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_Œ. "$';=Z_z £¦©®×ýA   "!""ðÿÿ $'*=A_a ¢¥©­×ýA   !!""ðÿÿ.222TT††¸¸º¼¼¾¾¾¾ÀÂÄÄÄ  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQYRSXV U\]Z[^TW_ˆ„8ôôô3x0.Š<è0^<33x–ÿ·Â`–è$ô.^î4ò6€)å.ª-…)õ0ú.––ÿ·3x(ò(''è(è(((b'ô((X(ì(('è('-è0Þ(ü(0’50Þ-ü( (ò(''è(è(((b'ô((X(ì(('è('-è0Þ(ü(0’50Þ-ü('ŠôB::+Þ-ô¢3¢3ô3ô3H65qAlts@ ð„ÿœ„dd                                                                                                                                                                                        imlib2-1.4.6/data/fonts/Makefile.am0000664000175000017500000000026412137523370013726 00000000000000MAINTAINERCLEANFILES = Makefile.in FILES = \ cinema.ttf \ grunge.ttf \ morpheus.ttf \ notepad.ttf filesdir = $(pkgdatadir)/data/fonts files_DATA = $(FILES) EXTRA_DIST = $(FILES) imlib2-1.4.6/data/fonts/grunge.ttf0000664000175000017500000014772412137523370013715 000000000000000°OS/2—H~fÈüNcmapá–³ªÄ8cvt È^Á‚È\ fpgm§Ù^“ dglyfÑ ÷uà¼*hdmxj>KÉLˆhead¸A]Gì6hhea‘ Ž$$hmtx>þÆÈ”loca$#ê ˜maxpÀH name'K6žh£post  Ãäìprep·ÇƒpmM"_<õ©p¬©p¬ü ü ee@ ~m: ]pN¥@=‰Wi'~ó  } :  ] p N¥  @= ‰Generated by Fontographer 3.5Generated by Fontographer 3.5GrungeGrungeRegularRegularAltsys Fontographer 3.5 Grunge RegularAltsys Fontographer 3.5 Grunge RegularGrunge RegularGrunge RegularAltsys Fontographer 3.5 1/29/94Altsys Fontographer 3.5 1/29/94GrungeUpdateGrungeUpdate@,vE °%E#ah#h`D-,E °%E#ah#h`D-, ¸ÿÀ8±@68-, °@8°6¸ÿÀ8-,°Fv Gh#Fah X °%#8°%°6e8Y-@;;::))**E¸ÿ…vEhD³F+³F+³F+³F+³F+³F+³F+³ F+³ F+³ F+³ F+³ F+³F+³F+³*F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³F+³ *F+³!F+³"F+³#F+³$F+³%F+³&F+³'*F+³(F+³+*F+³,*F+³-*F+³.F+³/F+³0)F+³1)F+³2)F+³3*F+³4*F+³5)F+³6*F+³7F+³8*F+³9)F+EhDEhDEhDEhDEhDØ · &@)?2,&$@888;A>-@?;0 ! :!:8&]0*&Fv/7?v?/<ý/ýÖ<Öý573.'4&/&'46?4674'2#&546?6523' 7 !" J. 772:ŠWU7–É6 þX%²*†¾>#3…ïõ2Ò">p\P‹;‚C<5S'§/@,•n($ Nú8D*7J*d3%6873ooö;(B@% !:!]/x%Fv/7v?v?/ýÖ9.........10²)%+7'&546?65&'4'&5òI . ¥473*ê./+ . _$‹*Ž&Jd Sw=*žQ4 0)P(þÇ0' hž.N¯A¥þ÷ ×yeimux‡’–"2"#&54?67&#&'&'.'654&#%4'!&/2'7>7>57672367>7>77735#476"5#>#6?2#7>7ç(!9;¿? 4%T%1(]¶ZoV@ %3" 6¹ (#; 7%þ3%^(*VG0co”¢Ž­> %( n6 BD8\\¸''X''%¹üÕZp:|ë \P(I!Hp,HU!,þ<%%f’˜k$%ª<-.gl=D J%.'sJ'#+%)( /sF#&8%," n1*SM(b6 C$¸5E9gkJ7¸¹ð\\þì/ 0 o\%B, !&z$‚ %åÛ…ˆŒ”˜œ©¬>5746723.'"#&'&'&'.#"#.=4.#4'.5>547467.5.#>3>3357'337'353354&'4&'#=7 5:8$) 1@)K8Z'p7[8\Ã?\A7O 8%  $`bBcQ)S.  *œN +M˜r‰8rÜ%þ¢7n%þ!7%“%J%\-ïÛBASö8%U5¾(;W=>ò ,   Ë1 '% \Þ:B`Ai|18>z+'¯W*<C… #[WËA@%E/0~`K$-3 !&2# #eR;,$äh‹iXÝþ}ƒð¦þ˹þëo\\þµÞÞooþ¡-^#6%i3*#"þ4 7×ÇNb‰‘•™©­¾ 47>767>5#.54676?65"&546767>3>76767.'&'+7"#"'467676765>32#>77"3267>35.#"&'&'32>ã-\X‹Ú›,E.X1%½]I 27=gA %$i®’RLM ;z˜Z=7(XK‘Dþr 0% 3N8¹;F? ?B= 5?a=s8 ŒQ  VØzM™Š*Gh/0‡üÖ%8%þÙUj>T )*f` nËC!#F2%"FDåcôìþÐþèZe4~LŽb/d5 )~[A!JB‹:"Ox;6¹œx((-/<6\B "F$ …ÐØm$HA.pºa¹U\ƒ!!M!6F<3]DþÐ#=3HˆlbBI",  4b,Zg]PFFs}?"0%\]ËJ\1J†%) rO$c3¸¸þ¢ J!, Jçì\gx{‡™¢¦©236?>3&$&#&#"#'&546?>7.'467>56?>763267>46767>472>>76765%'675%‡%7 °f9U 6!#T0pK# )+">ˆK($Lþã¶yS.#Pp3%ï%#=    :?p[NwþÍT4;%+N<:/1+&:2e8¦61*%;%YJ4ø<üÎ)JJ4†¥ #ïJrþìXM02c3/#1yz`% +b8:%\J&%$2=X1,)Y05?)$o¹Z7¦m9;p6 5#'M;+//#:m4N8H'T4O[?UNcM==K  A(!#þ:S7 ;/7P™ý¸97Z%">"?þ‡ï\J7pm9HÊJ(X\3À%”þ JËšß{7@   ; :7 Fv/7??/ý<ý99..10² +"&57>532>3.'ßMt.#'.þþ%%@;H\ *80(øE’v c#sS%T-þF ›q!!cP&5o¼þ3:>L@ 4%:#1: >;1 :><:('])x'Fv/7v?v?/<ý/ý?ý99......10²?'+#"/&'./&'46767>3266?>737… 't6eb-)'1!~~ 5/ +‹ƒ  Zþ! %&\%þ ]+ŽœN [$ ü°M§W‰6ýט036:>AEŒ@CEA<6531. >;60.?7'/--C!987?;FD;F!;F4;:7-;/=;EBC:!>':87:9:/ ]).Fv/7?v?/ý54'&'&'7/'37?79lV0+B8  %3I##B:DSCB;d;8L84J77ð%n^%”J%Ý%8%Ç—uME³YR:pI)Q*h)5p3o6',/)T&p{oö€º¥ÃzqV8ðÝþƦoý1Ýü‹þÇ9¸”¦þ´ÞË”Åøt} @Muogc^NFB10$ ecB6WX:{zz{0/;‚$;‚w ;;;;€;W{~;~€o7)NFv/7??/<Ö</ý7>326372763'"'.'&'.#"/&'.'#4>7&/.'&'>7>767'>?274/&5654&/.52&'.#46!5!u4¶3.S/O/"O!z$»"i]$ýé%% % 82- 6*!o'2+ H5,'l42])Mœ+G!=5:=)I^$&>Zð! 1!. ­Ä7H5 ”Q([6Lþþ‡JqšRþþ3$< \JE;*'7"%)" 6% þÙ&q»W$Q?,'DCZh" .  !ï*<'í78  N.$'K"ÝJ7ï'­y°2CY@(C3/+*' 2*<@7*9*4;D;D (] )?32>7'&#./#"/.#"ª  (%%uNHg-# %7%7%7%íS0GqoŦ 78%C3  (' P$L4 &>-FE%þ}DO ÊþXn$bXEg4N=F/#&H $”¦ 7 -Jþ`– 3@ ;!;!;!;!] 5xv?v?ýýýý....10²!+747>7.#&54>7326ßIkNÈ?HQ%*Z ‚q$8L€2b„3236$3b8~Q' Îx)3!al5UÁáI'+: %þþ)ƒ:=a@*=;=<;2."==2="(#(;>.;2&%: 81xFv/7v??/<ý</ýý/ÖÖ9999.......10²>+"'.'&#&'.54&'>37275&#"&'&52?>3237)$ 87P"9&N. &L&@@M"^"- J)rC 6Dü%'C9 !M+L %6. B%5 7% !  & þœo‰2:DLVf@/SM;83/"83 =<:ELLEM;W!;W;W< ;;)=;S/])?727>74>5#46767>67>7674676?Ñn  1:[52V+4]51-)K`LGm\o@¤ÇZ&ŽML50a6;q6J$D\ð%SOQý¸!-;Sþ! #N,jÅ$I32!B0-¨ìnn3}Fþó‡kcg`bº›tmdîwËÆVM†9Ðn5-ÌX"#‰]þ©0A>#`wcýÅ#E!:aZ{üóvj6o9qCü°+K%H=ˆJcÀ7?D(FQT\i…@AiaPGB3&PGOSRRUTU\U\;ji;jB;6;aR;U33;& ];U:0:O:]+Fv/7?v?/ýý/ýý?ý?>54&'"2676?67>525'"&'&'&5>7# 2·z7$(.&&8þì&sȃ€‘9aB"'7 )fZþÑ S2.A"' E -,>Ul"»?  Ý%ý×7\<; b,$1/4%f—;BP›Nšþêy  !*JÔ v«¤Š)<'‰%R Hüø83ˆ-4=T'5‰A_))båk;+'+n35@GD&þ3þÇ7þ'$F¸5&1  JujTN@#I=:8.*"! I@ 3;U);U"!;&+]*)xv?v??ý<ýý..................10²UI+67>7673"&'4.'>7>54'77&#"467676767>=  &  & 8-" 27#7- #(%H!%n@&S" M+*8_%c™jv81ˆ*/9AU/61 6ì>) )b;n}8],,þò/ oJ1%©\ï&0J2Jù&ú70 Fg  6•«%Dhpsz­@Wxt\WUSKIGECA?9\[ !!55 !qi1 > ;{1;{l;dsr;hO;qpi( ;t ;s piri: :>r:hh.,*(&%*\Fv/7?7&'.545454545454'4'&'"#>7>32763.#"!7##26RRÈ„+*8 )da¬o([/$78'')cù>($5€4   (#, @0ª.p»”j \x¢×/;y7@$³ð6,pJ'; ¥+Ïž„þø¢44F(5€o8 % ) -C-Î    ,* R~j !5h°œµ/ ¦ Iû  ׌‘•œŸÃ@až–•’Ž‹yxuRKB<5+% “‰ueaRK5—HHY”““Yf–E-Ž; %; ;;#^;‚€x~E;Ÿž);#‘†Y::i:oy")x%Fv/7v??/ý/ýý<Ö/ý?<ý?<ýýýý/Ö?<ÖÖÖ<<9<9<..............................10² %+#>7!65"#"'2327&'&'&'&'&523767.##"467>7&'.#"&#'#&546?652?5323232?>325"5'7"7#Ó%0, e89p7D)I'›(H) EC't7<ÿ0¬D(0>"(  %1(Ý &»U Zœ+)<#d¢$7_7R.$'J% .,3E#K/ %„’!!ÝJIVJ¸¸o þB¸B0>&,3¸¦_+3e3}Z; /VFJ)\%% #//78 7  5Ç  %<8Ux$) &fJ]/J%7#B60\3 ¦oþìJ&J77ýצ)*!!É% 7{ J_cfpsw{ƒ‡•3267/&54?6767>7>54>73#4&'4&''%.#"'&5465>76$37#"%3577>5'4?65 H—M—þî²Ým9$c&* Xkfmhâp+) $‚b= 7 %  ,Boþ Hì˜8J›Oz¿nIýĦ#\%þk¹¸“on¸ lVn\“ ] J2}K’þÆÛþó%4:0gtob]’"H6=C&:WiÄ_e´Æ( o OJ_†0tƒ7".8š0?PNAoŸP7¬0 ^5›b`õþãþqýzàþ ') þ}7'ÝÝ%¸¹Þ¸% %%ûÓ *SX09o9'+<“mˆ‘¤²¶È@d¶´ª¥Ÿš’‰|yr[ZK@7-+*µ›š’‰h[/# µ°d«°dª7@;·U;·J;·7˜6˜³v; ; !^;NŒ;‡!™˜;qv7E;=Uvd:°—:ˆ =,Fv/7??</ý/ý/Öý?<ý32%.'32>37.#"#4.=326767.#"4.#.54&54&'&'6?>7">"3#'.'4?>7>5'7Ï ." r^I `5†P5j5/\N)!)CHF°VI7% @%=@7]$Q)=b2…sÖÒþãþçþ³U² 49?',T¨ˆ0$6 Wo,5@"`òhGv=sM,t{CJ=G7 3„%d‘ &[?FJ|OJ$W(%mþÚ;)…[-”“%\ > )R'H.þµ- \J%Im/cI! "& hš%7 *].!7 JþÜÐÍvq)‹Di(/* '1\'5$M,: (C1 !cI4œ)Z/W5 *'_þX 8ýà(  !ü+o5r{;7'4$ P¸¹7JøÇ\`ilzÖ@mˆ‡{lL."wlk;9-d*8_P:S‰:S_^`]‚;Žƒ;އ;Žˆ;Ž;>;r{;P ;;P;Z^]_dv;::S8:`_/:j*m:ed‚:- :a:IZ$P+xSFv/7v??/ý/ý/<ý323#&467>7235.'67>%'#&'.#"2>3267"##3d3  o“N‘HJ—k…7$I1@. n$aD±b4!o3†['9(PO†)J%rñþÀÒ§€1 ðŸ©Òü%d5IM8Cþð78o&A!A'A[ ãÇOþ> "?™=¡7>7676767"#"2"#6767>563232323232>5#637# #'27>57wrš<$:/l03uåo‰ ' @Kþì%!,E>96W„[,)GIàA<I+W+  #4=8#&2K" *tDGX³ZF  ##*ý*7%nJJª:l= R%6p ¦7JJ JmÚ<}¡þÉ–þÛž&! !ODQþ3%4;6?lÓÅ¢l]Ò³;54'467>7>32%#.#3676767>%&#67>%7%#7>.5267&#"#2676$757?676.5y  ïb6,(;Xþóµp’|w~”6v2](&Fâ¡DÖi2`,Xýú¸º;2%$‚‹-IX*!%0JþþJ % ('(ý{o%o¨o©` z{þBV AvponÏ%\=iË™V6-% M£^­ˆIûw%%ˆ}”À’JcQü€812) #ïO+1-‚N0þà’7,/KBo—V.,zQJ„Æ[*2n8o*Eo_ªu7'w /3 DTK%#Tþ¾M  !=IJ%%=I#';! 1'%CÞ3\Ý\n\d72#:@!#É H,od{&-;BFh@-<7*'<1'EF:DC:EF:DCCD;G4;"A .:" )xFv/7v??/ý/Öýý‡.Äüć.ÄüÄ.üÄ........10²G+"4'&'"'.'./467>76724>.#"#2>?637d2g>t¦1&%G9J,QlH]E%N7aižqŠýAu'IiÀ , kVPFrX9»?JI°Çþ­¥þÇÿ*U2i!! ª #,12.!RŒ86"<+=T0sL%sW\$&%$±e1OA &IiþßððN`¢ 6?@.6;" : &4xv??</<ý<<?ý9.......10²7.+"#"'46?57>?#"&'&'.546767>7`=V8Ž7[]¹J7”5  +2y 7$&011¢~À3%8SyZ%¦]ý++PT‹/ "  $B*T< I,%`y7A@/7;8;:'*xv??</<ý<</ýý9......10²8/+"#"'4>?57>?#"&'&'.546767>7`=V8Ž7"6">¹J7”5 +2y 7$&011y~À3%81OH"=%¦\ý,+#PT‹/ "  $B*T< I,%Zgl‡‘›£Ž@D¡œ˜’‰‚{xwmihc[3-)# ’ˆqh[T YciMiMi-œ-¡;¤);¤ji;M;Y;Y:HY6*??/ýýý/ý<ýý?Ö9999..............................10²¤H+5"2672.##&'.'./&/&'&'6,732?>3267>%#/&#"34&5>?67'4>36&'.'2.'2\:/+W  9 ËJb¸gS”N™$;!k³E’ôD#¬ÿ’'Dn-jJ~L7ZZŠL<¢Ü'W¸%']7"P…55;Kg)j,\ýê D5-2TW%Kþ‰n‚þj.+Es*&>>]\&sM#7? ýÞ1#;W“ & 7T3}$sÄV.•çhI7 4 6oI>32>F ;0Z @i@'q„/]?:X".- !#8!E `8{¹•]sž3C)¸-% 3)þ¢J2,B2/\_+/ 7! þïM+ .þ þA442%l;°f(48^‹@AZUKH=)#ZCB#)/#7M9=6 P 5,187;);;1 ;1;6585676:F4xFv/7v??/ý<Ö</<ý?<ýý/ýý<ÖÖ/Ö9999.............10²_+#"&#'"&#.52763?27632"6?26""32>35#3#"&'4&'4'>32>7&/&'2 ÓJohÓmÓ0¤8l5+d+ä¸$[ Ö‰]/!!W*þÙ¿K,JuDp®!““ œW¯UþBk [-2bR=@L¾n'ŽñrJ/n].. $6Q?*7|%-hþÇ8  "  ! ?#7¶‹–™œ®@Q›š‘†…|^[VQE976+ œ›‘‡†…^?,Q —™:Š‹‹Š—™:‰ˆˆ‰‰ˆ:Š‹‹Š—”k6; ;Q; ;”Œon:} +6Fv/7??/ý76$7>7'7&54?672,6?"&'&'&'&#"4.'%26767&$' 2675.'&'&'&',/7 ' 7%&/"'26/7#¶H'}W%?$%½þâþ…©‹†Rdl7 ‚>M\@7«H“K…D>ËÔžJI¾´®¹¸% " ³*ží¢%8_$J&:!ƒ3"\ç-þ|0OŸ0@þ¸ENE‡’š+FC÷'*rf®P;;„``þÍþTÕ¦Øën1ÙûD\ƒßþ!¼:'(ý÷%˦\yRf='%$  %%ŒþÃy" >7$ %.\-$œg4j?QY?I85$o% "%lëp%   & p/(;\* (–2 *¡Z A AY`J&I'B 12žµ1vl1x:zÊ"8¸¹Ë)37þ%7Á‘O_gkx{Á@_yolkjihg_P<;$;uyy(mt3g`f<_SPkjhl;zy;12;\ih;{nP;Fnm {z-`b:tS:`:A@:BCB(:(F +BFv/7??/ýÝ<Ý1ý?>32&'4.'35#5'>35Á€{tHB=B?D¸DGC"¹Ø)*1* #'‘J\Äg) $àh>=>4)Ro0$:%¹Çõ')$7 #òp–Y8#3nJJ¥Þ77/s3‰\{žZVIErCP73bIU…XU4)36hOG:3?% (`NQ|¹½‚.E]C) ï /%\È''=FCh&6k%%  þ30$ ¦ûÁ%”7%-9\ d#77 ÅD03mx‹˜œ£«´¸ $'4676767632-#"327'4?65""'467236654&'%4>?2>7"/&5"7>3''7&'&'.54?67!5!14 *$ 1cJ\JþÕýøž_“n5-n¦;;:2>;j/'$ü+JƒbbSZžQ%¦ 1p¤•m7+!%$&ÄuY‡Y—K *7Jð$zcJþF Ê 9No -í  û%%8w8ïcúý¾L8 3(ýû9þÇÁ9“"?!5 )#'3c-&0XT%ÅÑÉGþF=(8  /&A,);ÊI-Ož%”F™S,TJ7*$777* $]®Å[./‡.T+EA«þ€n%e”@PÍ‹åyJ:6Mþþ%!/f !AJ#  ¸¸¸%%ð0R[ <1¹&:'4@þä= f…HS_ceowt@2vupojed_TN?>8' _IS:@AA@bc:a``a';x3;xS;AA]+xv?v?ýýý‡.Äüć.¹? æ ÄüÄ.....................10²x?+#".'&$'&'&'&'$'4&'&'&'.546?67-%>654&'&'.'! .#&'.5 ‚7 [0oK=IgZH†þ}^w]]þΚD3'CR /( ( ;.c5ý\Ãro\()ÊüiÊf *#NC`}8a).××…þ3 ý×kNï¥ÇÛdëW4-\x>™/ 63‰T+L˜K•þÿZB”U ‘Ò/" *!"kI1§þÏ®*Gm7h[=G=;±ƒ7;4I'S­\ÊlO]z ùþò:êgmýÕâg´'Ôe,%B+ø±²ßfTí¯þȉcfþqý{\C,@`C×8% €U×{ P]`orv{”™"'&'.#'&'.#""&#5326?632672767%27632&'%&'.#275'.$#"2>7>37!5!#26"%"%"6,767676%''3% R>‚ {H.%:Vw‚h†çþ&àýÚ2 3J1! )'(=# @ ".%f$C7w(2j>? %]K‡€@}þ¶E¾þüD‘FŠJÒKå­ÿ¸þÍuøþú¬67Éû]/q÷\\úšpþ×;{TÃþ\h¯M—kq «Ÿ&ÌP$Ž9*81"ªzBXþq®`Zl,J=>DP2':“];>2>iÄWÐ)')\$ q\! . 3'KýHa""Dfp\þJN i\'L ×ýö×]5632#".'!#"&'&'.'&#.5476?>7672'3"6767>$6767673&'.'&'!76 H¹.].\TQ-*" z516>´þ´º\¸iÈÄf‹¢aT°¢H@H:y"E1U,JL91&inFZ¹/a4e~{âg9_<õ÷== i¹V¦þø´YD50)HæKýmaUOTP€ü¤>®95\4*V.{D Í>4CƒB4..‹OA?*ßH,.¶`=²v{þ²ÁA3S*P-S‹y- (7'@<6.G"N.=J¢4/!|ÄS)?2YÄ]ÐéQ@;#  LºÆÃÜÀd㤘=oâ:c,V4/%%m™ ;ÍÙ…eKD7]µgüáe`_Yû3þÍ3™ \K@  €E¸ š R=JNW…’–¢@Mމ†{zwojdXPOFB>,)&! ކdSO:MN:LKKL•–:”““”„…:ƒ‚‚ƒ!;— ;—‚g]GP >;4];F B;44)??ý?ýý?ÖÖ<ýý‡.Äüć.Äüć.ÄüÄÄ.............................10²—!+26767".#4?654'4&54>76$!2".572>77%%22.$'.#36,7>34&54'.''3…mw1”þ͉B–Oþ‹¤Š„\i´V£—p(g\¸,$aVk{Ò.Qü©—¬Lw5J\|ƒî˜þqþjˆ<+:+C¨áþŸ?f* *}0 Nkx+ )$ # \{€B;&#E%%Œ½Iá ‰åÎÅ[“c#;m»(?'S>g.m{@{¸=¸þ4= ýÖ‰š<$ ($$5*2$X0F%2) 7L:”*5fq=E£F‘þÍý×&xAFAn!fPPRþ3Í3 fH¢¥©´¹¢@Lµ±ª¥£™”Š‚ngNB6( ±°¥¤£‘@=961WU­XU­( ¶µ·©¨§¦U;­‚;€q¨§©¦œ¶·¶:‘|¢v6xFv/7v??/<ý<Ö/<Ö</<<ý/ý?<Ö7%67#263267%263 2676$63267676763 4&#"#"'&'&'4'&'#5267>767&'.'&52674?654'#67673735#"#2,#>R3($&G$\ÏÞ§lqŠ;,@%):) IȸÍ÷i{R{NF½gþmi±©ºˆ&^KK[.6 ++™R !†#;Ï>y†Cf$fÉþcÕï9Y=hÉ^·º¸1%z×eaSP’ÈüùîþÂý¹þäâFT'UtV*-\gT QP%8$|²C==šn?;{sr š=ýö¸¸Í+o]”0þ[=98ûá{J 30S%D×GHA )  5,(2[? B&‚!0-%*€ˆõ! {&  T$J%Ôé I)]™ + C#xQLL†?@Qg^³`" VE00{xƒCc(K3 # !FBXLeÇfK?ycˆ‚¥ rù)=\üG!& 5'þ͸2n= { Ž¢½ÁÄÈÑÕñ@yÐÉ£˜‡|oYWNE>;&  е wN1µ²‚G8ÇYÆÈÅ#ÄÃÒ¿¾E©ÓÒÕÔ!8;˜7;™˜e;É#ÁÀR©; –;Žt ²w²ÕÒÔÓÃÁ¾¿ÈÇÅÆÅ:¦®:‚²:‚À¿:XRŽ|)x|Fv/7v??</<ý35323267!##"2727676$3#"'./.#"67>54&'676765476546767"&'&'&#"32632763264674&#676767635#%#35!$35#¡©;.„60Iq|ˆr\KDŠªýPVµÑe\**O·G_?KwL’IOmP G;ø;?<#1%¬±\›TUìVƒg/ *R+×\@¶\Cd2II±+M.¼µ5 >.*ª* +BL4€‹  "0ZµáCw4qv‚.p*à‘ +e$Bú v€  `R ˸¸þq3¸û3×M[Ù--F'¸¸ Jþùþíþ-wl$=¹l·Xþ® ", )Q\  F"'"  >50A !   ¸{*2  \-®yò†Ú *4A!]eMþÄ÷»!ƒnµÌÏÃÔ|k9Ỹ)Ø™Jýš {úâ>¼wjŒ±ûxþñiTª¸;`þØt¢J/jwÀ«>{\××\\= 3 qIg«®ÃÞÞ@oÉÈÀ¶¯­¬¨¥–‘Ž^J(&ÈÁÀ¯¬§ ˜J50œ†œ²»ÅÎÞÉ»¨uŠÊÕ/&;ß’‘;Ž;zL;E®@­;;'¤œ# ÞÄh‚:Ïr:`U:@‚:'¡ œ:E(')@Fv/7?5465467#4'.'.5#"&$&#&'&'672&#"6767654'6,7676">$723267&'&'".7#!2,%'>35#'>%!#"26767#.'"&'.'36?>7>3 \>>  ~Se/ 2¸ s‚?};}üþ’õvB&C•8 u¤ÌÉ4Åþ`»¶¾þŒþÁ…€Y@9Bje)${xXzÁpF^ÃĤV‘O“–G¨U +·Õh=Hku&-6  8þQ××4þ5þØŽ=³l#šL9š+*{?3àþëý> b24Ke5:6P?€LBWHàA@¸þRråÆ+\R‰OKÆi"<†KT xM *®ê0M#Fs<†[|™J›WPŠKKÏ{! ;-þob3lE~Šb[//[/_²R¢"hôÃ+`~ªþó?\¯þßµ5Ô¤¯HIˆCS–E>]™{ƒß/ ¸$1J#Y1]˜>Æ}¯%CZY..&2H8þõ>þë?Ì“l?yBRb\){8q6™›Vý(öþÍ  (JIF "z? ¸×R›q]]0-76NA {šá 3”—š¤»@Z›a_YMKF7—k`B;ž––¢%um_:m_fm_še™™7›7›ts:˜šš˜Ÿž0;":Ÿ–:%:‰:Š„:•m:lk€0:—•,xMFv/7v??/<ý<54&'&'&'.5%#&'&54?654#46?6767676547>7'>72>353 2676767>5?4&54.'32'37á      -Tr:V/-   WèÚ÷ü+þì8)).™+)L#2 $þq™×|>)*\ yütŠxˆd {*[, &þÛ]]úš\{ 0 ¸aËÚ?Tf9kÒf¢a5CTÊ5>>ºJWn7¤¤O\ªF˜U"N)Zm(D4_T/WA<1-¢“Zz@¸3%-0**08F“J4{41  ¡ž)pS]ds|Pþ®lÉ–!þ®2=%Sw¯¨4þíþß 1k1ÃÖ>ª*dg\)*6D) ûÚ®\ûR)ûÌ>3ûq3L?-V\… *.47;‡@A.65-,)*4%&:/44/:9;8!4;*98), :;:/):6*4:75:::*)Fv/7?573745'35…!H$ ,\š-  5 {{=þÍ;!š> ¸‘zþ’ ‚ÿ¥þæõžþ³·þç&_10L# .d>á×êÕfÒeO^r7º  máHõ\××ú¹ƒ Xgùáþìõ¸¸š ) ®osw{ˆ–@E}|dB?8*! }{xspB8*vw:Xut:WXXWvw:uttu;mqX:l_W:q^]:yq{s:hd ],x*Fv/7v?v?/ý767>5467675#4>537 337%326767> =N'D„”C:m2 &$4lÙýõþÿ?Qs3^,-\¡ê(,>™>>\>>û¯þp[O7  q~×z¤`Šýƒùu_9V?p^¯YªþxÎl:\”±>9m5ž÷·š9)iVi V»þ¥Ÿg32_|:e R\«bc&;-O{ôp:?vý‚z6c¹]]h¯i>k\ZSRUZ-922¤É^þ8ß鸸þý×)üâ××ú×Ét  ( öö¡¸»ÅÔØÜöúþ67$7>76%327>763"32767676327"/&#"&'&'#465367>5"#"&'"',%67>36767652>327#7>767 >?  37"3467>52?67 77')6‚@c*Kx}ý±ZÐwçþO%O*0(Azf/^(RYÀ  !'¨¡a]SÁX¾)\5·‚_{5I“J4*88W_"\¼þ݆þ釛{ ëkMf²[þp*+' y÷“ýfq< Iv¥~G\=üHš]š³–Ü‘‹–—þïþ•ý # 4R)ýýö)üá=\¹þÍgY!12.š\  +W3þÍ3þÍ™šd´Y“Czþ ËfíóJ‰@}*þÍ'  {(.E’ 3"]„YV>:^¥ùþÑØŽ]4õŠ8={&M'$8KŽ?4w¤=]®o¼‡KI>#K;*p*y&5$,eD0ý½Ö L­–™â“!0,3%Cu."A õW"þ3*C=GB!_Br-.6(E‡H=þp{ýŽzMI+¬ý½þë1(sˆ…1[nO(+ºþÍ3þqš{ügëfU¸f1#=..(5 (]O þR®þþqý={{š{ q CPX@%KD<7/ HD<85 :,;Q:5]3Fv/7?v?/ýý‡.ÄüÄ9.............10²Q+ -3 #"&'>7-.#"#.546?654'267>7>"/47>7\7e›X D¹Ê‘¢¹J=‰þïþnt¹®M®uUšS'):Sˆ9YÄ”1V:(MW*2 .\×547273672'>7>6767676733' R*2 "-0 #3W $X@D,!; !^H ,+',;PL*U9=F]†69T-*-( {aX  9.*Q    $KM2&™ö{NQ*Z6 -$@*=uØdÕL¤U*' +C95 +~›ý° @0%©'2.CAw5i¥O—×=¸> Ã?ˆ/*JRb8pžU`þõ HR3pV–M’n5WL(Dn˜*õ8( [8*CYÁ*X‹b1ε†Œ-5,F`$aWa/{×*2?Z×nú°ˆ’|ƒþå¾Î×D;”ï+c2 m†'lÐ_Ô@FA(%S|?~>kþ¹·l¦AEZæKO¤K.\UÀä’mA]Ø@P­PJ}¸öš…¹_Ú‹RQp.UKŠUÄ<T׬zC0Re3.%2O_Zk2j3kħùá/„cJML`X}6ƒN™þ¥Èþ|×þëý×{™ RHw~…@54765476567676767677374>74>54>76767.'.' ×=öLšMhþë 'J@6ý5  \qO-Pr=¸  þìjIF$ A(\öH/[ó/Æ  %D=. z0-8Npú{>N3 3>lÓK@þ¸ýçØþËý†þÇý[þŽ9"' p8׌þýs[‹osO…àc3¶þŸÝJ×­ÒeÕJ8Q¾>QGÔ þR—Éé7%7#">7>35#& 547'4&'4&'4.#""&/&#&'.'4'3>767.'&>32%37353535657'7'35# {±ÉˆeT€U[J=   0Ì£G|é_xqh%I0W]p¾L6W4yãþýw-”Ð<ƒ¯8ˆûá׸UK(S60+5K)aCC*Mmi†o¦r&#>Í£=šuLLY(ú×==>š>ø ¢` tü\\{{{¤¸¸ áEÔþŬ= hovU :E$E)92c¥Ó'q€T óþR7c% .zx0"8!P•Oêc|ñv±;?m0<\]š  ØŽþ¼ªÌ…æ¨B9Á÷Ã.;`œ7Šþ3H^Çca/W*YžIå_#%&ÕáGu„Lr!884P“þég¦c"jj '{B:wiJ /-H@1?,þÓnf2T(I1-ZÖ󌂦~€5þÍOAB8 + $7>þëö××þì××{{üÃ6O"–8´!.V\s°{{ö{{þ®  Uarvz~›Ÿ§ª¿Ï .'&/>7>7'.547654>7654654&'4&' 4'&5467>32./.#" &'.'.'277'.'.'.'%&'&'&'2,5%#2>7!7&'&'&54&'4>&'4.'4> #K UY¹–?j1.4SR… /#/a¯¨¯ü… 9¹p’M!  *"/F,tµfsÝtãdý·,e;èpÙ_æ‹=þ»29L*Wv@"F&H<ƒK ×õGië/'BŸeþƒX]Lg°ªoh *µJ2þ„qþ¸^Ãn>\hbû!=zWb\\`0 6‹ý‘ * B qPMg0VýeþKþo@)*5UþìAæGf2HEW{x—ÊQ£žÂ>¸ûì9•¬Õto@#=¡i\/#Š#‡¸Q7›$;27- ‹íd(+Sѯ©@ &k4G¸7þ-)  03{ !×™C)þpQþq,s**J;Af Gd,*a©Ìš™üÃ-/(ú{GWÿv©‹\ªh?ZJ7676767676$!767>%!2.56323>54&'&/&'&767>54&'&' &'&5476654&/.'&'.'327>763#464&'&'&'&5!'7'/ æ?”~>e&/-%F%06EhURW,N3×k?Δ;]\”ºuH\\Cf.D¶X4:,ZͺtÙlÒþ™‰2MjF' =BG9]Uþè3>ý==¡+&Bþëö$C3v+(XUW"';!!%%0!#&2*dÈ&"6 ×××)\)  ] BM 8þÌ)"·Z/-{\>;!û®!J9ÏgJ"BMW u°\X[,Y'P£ù)\?6:  ( ?{Íš…šš -_|-1–á~{™L¤YF˜U5c7l—Qp4ZZCnEK~3/# ."=O›I\+1]z, 8(Nü³Æ’Iž©y+OwSZ(_KxÓþç×ý¹Q.H/FDIö=c£•Q.+Š…'2:-=)IlAl¿#U  þÌ3û{TV&{D5f6i*@Kå{[l*ýÏþÍ**0<@<'Ùf/†A¸\Œ‡Óg÷þò:rP'•ƒ>ŽKBÀr=r/,¾ ƒ´X #bý™gþë×WVüa©#M9GO;@DV`½‘þ®{þq{{ öH 3—­°ÂÆîòþ ./&'"&'&'#>54&'&'.#"'&#&'&'&'&/.'"&'7.'&'&'&'./&'.'&54>76?>32%5#4>7232'%&'&'&'&'&'.53'"&#"&#"'.''4>73267>32>%5#4&'&'%7'53'75' בØ]W…!ƒþûƒW™1œÒ* mî‚GG$(OTœÈH“IYPF\_]S«s -F$Z08%¸0C < !(%     ‡PC8\?:!=\<J7JO8'7(™LXF:auð~Ìk%R-XVFg\t/reú{>ö 1pErJùÂ>\>ö =4{ …Z[W呃±Ö¯„VPOО}.f9R“óGLˆŽL¯‘&“Db¹V1©ÌdK?< ýÏc3¦hLþàDµÜd:¨94C§2Qf5"6.:+`'[?1mO|8\5®±\BL3o[{O²{þGÔþޤŒcÏn:I¯jŸÐh¨y¿¹W,I˜QPAŠ,&¸H^صj®‚‘  þR\ø…úQQ*dv­äsî}ªþÝýðþH•××\ "!6N+G¦xS¸":H))2-02I-öm{{þëRr+Q1×&¾fX {™×þ™¸{{þ\{ûR=׸ ì ­°ËÐÔØÛäçë 265&/.'&'"237.5767676767632#"&'&'&'&#"#".'%.5467>767./2 7&$','4>76767%6$3275.#"#2%"' 5' 5%5''2>7>'%7#"'.'&/326767'5%35# q)> % 5B)O,Sj[ãÏþúþ9¢xPK„1&!i= ·W£?3--Nl=6D?¾%»]–@w¤) þìC&&Y5 $ &K°)vrJ'+-…d;.èÆb·µ¥”ŸHþä'))  m©}œ‘kþÉÐþdþfþ-®o’‹…6búaia¢ra4\2_­ùK=×%_°ƒ7$ ^˜ÑlR̨/Tû?öqÍþR\××{þQo:7ü){þÍš¸™ÓI6¤šP‰F†ßR1VÄg_U8m:sýš¸¹g2l9ý×{{ á@;>(#P²3M; 8'LþðÅsÃ?aƆ5'#5% ‹ŽGg&D':N-z (BD+'1+  XBK®soœR¯_7j9c¢Z4(\?N_s<ë'68)#* )"W£ (pf}×6‚M™¯Køv·s^Y.EaA /­ý¹]{þQŽLB *6gB BŒ: \\4({š>{¹z={þqšþ3šþÌ'Äš™™š{ý¹1 +4$C^“þq@&Ý=þì\.= = ®}Ž´@UŠ‚uiXWVJDC( Š‚uVURM>;"!qb`‡ˆ:8998€:~~5;C;Gc;a5")1)cb:a;`l:[:{ba ))xVFv/7v??</ý/ý/<<ý32654&'#"&'!5%4674676753"> 3.'&'&'×\ö{Pi0W'N*A%øþÍ0O•M.¸_þæ/K™O©(\@…E ¹éôEw2S!ƒ,Iw=\þ뺢ÏÀGS5JB¤Idƒ-þ® ,™?3   *nt2G" \=7*B*i7V= 3\=   7š3{\ -ͰMk{ÒþßÀkýöH×$#„j,F*Ó&h’?@¹ )]Q*+8k"% 2AX>¸fÉ>H[˜e==BdS!µƒc‹V5KF)ö{þÍö…=–P”‚oõnþÒŸþÔþ ¸ RZ]`h¼@^d^\[!UL65 `hJ,SaUgU UU\^a;ig;$;]8J;,,`S:=:4@:4_U:D:4E:54::::]$)4Fv/7?v?/ýýýý/<ýý/ý<ýý/<ý<?ý?<ý<ýý/Ö9999999.............10²i4+.#3>5454653'"'.'.#.'.'&'367>52?>?>7467… ,('N$>  =¸D'$HF@_7v±a'˜ƒAcBö Iˆb\  =%DNþ9\>>{=) þÍ R)X+1ˆ/‰f“ŸiGügt ;<I¤Qñø\2“xuŠ*()n‘S)H32#'&'&'.'&'2367>7636 47>76764>55' ×OH 5!(M$#¸$To /1 !!1)$Qþºîƒ_cmq2(LþëApPMm\]  (BxFBNï<gĽd,A)Rš‰’¨*u!=þ˜0X0ý>{ ìZ‘n2a*P] 1(@u9o¢áI3]­m´}S F7NMvi\I> ´Á¶Áº}ämÔWª~yu{ (ŽþÏþƆ‘š¹Iý茄A×’þØþÆiºZþ@¶6#húžSr…nRüÃ=\  ñ´·»ÊÎ×èûþ 6767>73#454&##4>54&''#&'.'".54&&'& '4&'&'7732>367>7676327>767>#36?>774>767676747>7654&'#".'23á1@&Mbê=&QL,)‘a')þR* \ 3+==+14F2H'\ ]V\›A¡t? ,@ jJîä­y¢\@ƒ†{\ö =þÍ ×{šø®  2A GÃ{{áEZ|Ar©ü½4<  U—?'û‡ !9,]0qö\üGA%5,$R>> Ãñ×iÎ\¼¼þ9&ni40a 6Qyüá $7= .! 64/5Se”%,7>©¥çID¸53bµ=‹ïGT`´R\-f9'](Y&KZ•¼_®ö$Œƒ‡. Öw 1H+)N%<+V²S¡þ´þðuD¬°âºÎ{ö(%M(H³Sª#r×T•¡T•TžlOÔïC‘B/Ò:ö®/-Q)P+þ¡þªªþÔ*G•:d=_xý™Rú\f=þQ¯üGZqÖg³dVþ*Gg4PTuþR]dƸÈV'ý”)yF$%6O:=]q=))9uA$2-Q&(5*@cS2þ¤þP Jþë \ ¤Y]amyÒ@csnb<;%! oP.BIjJ33?:kjjk`a:RQQR_^:`aa`\]:[ZZ[4;z6;zn;z3;z(;zj;I;\[^:jIH]%*xBFv/7v?v?/<<ý?<ý/ýýýýýý‡.Äüć.Äüć.Äüć.Äüć.ÄüÄ99<9................10²zB+"&''.'&'"&#"&'&''#"&'&'&'&'723567>7367>7637 7&'.'.'> " \)¢h$/ °rn×;c9b436q£]8ª-]@jrþq^Z§n-/(>1+gKQ¬\¸g4:CH:\¸Í~ŽG\¥Oš \]úþë\L!8)‹d+=þ7*†W\l6` ¤–þîX#vV$9"©—¶³ÂõØ h’Kf/& eì×]:Ì&‰µ8ö\#)# =}›L±g&L'ö] /FüÂ~ lfªJ"öØýõýö üH+˜Dm&GžCý ûR£+c ¡_eR)*=  )P\eia@+e]VQL=($e]VQ8(hi:gffg;jhg;-i<: F ] +$Fv/7?v?/ý<<?ý<ý‡.ÄüÄ...............10²j$+"&'&'"# '.'.'24633>5'67>76767/.'2&'&'&'&'3á=+QWV"2‰:>7'  />"'01ßú‰z}v°ŒC@'8y.++'s’^$‘x;j3_WQU7(# ú‚^{*s88T89N T2.2. ?>> =A~E‚ig#(9œMú×)$#  ÄÁ‹Ö…‰o 1>)4 Pyèâþ÷S!*>{‡CˆM¨›Ä !bEK")þe—Ä@Š"$";²Ùýœ+??oi>64ü þë ì {°³¶½ÀÙÀ@_ÁÀ¿¾º¸²±¥žpk`ZVU=1 Êy^$|KÊ+¨†«®††‚kpn_VÀ¿¾kn¹¸¶µ´Ò;*6S;VŠ;• ;³²/¢;gž;gµ´Ê:+|:·:¹‘)Fv/7??/ý/ý/ý/Ö?ýý?<ý/ý/ý?ý/<Ö<5676767676767"&#"'&'%"&#"#"&/"'52>5.''6$7>326$34&#232674&/&'*&'".#"'&'&'7232""#>326726326%!!'%#4/%5#"'"&'%.#32672676 öþÎý˜þº*€ÚÌÉ_t¬’þÍa~xƒCwD¨“þþþö®W®Yu†Woþ”‹ý{[1˜¥Ÿžš=9!&1-¤&:l>>þ÷#~4Š!MOJ#$8^w^ 0g\\ƒí9Ú aXì#D!;&'Q%KYPŽ=…õÍ\Q¤¿7q},¸àÊ^ÑàSK™’fDvýP;8Á!ˆ;3R%%rBþµëþR{qöHQõ &ûcšHVC&ˆ!þù>„+:?4'6QO':""- ¤llöþ¥þXþÆë  M" þpVMI=4rBEŽ‘A!"+Z}2&)q]@V’Ž®ª¶(PK-3E   zBH \\8S ] 3)_]  ,>'D  þëùN×==zþë# /  “%/5=AIVY²@\NCB= YX--@@?A>NRB;ZJ;ZC; ";**#;-;4;R3";M;=;:746W:A@?>:6J:#F:6G:6H:6:-*x4Fv/7v??/ýýý/ýý7>3!#"2$32767#"#&'.'&547>32335 #7676%'Ñ=?Ž}6q=@&72•Y'c5N$jO¦JþX]FJ5^o,XTjE[4+¹\-<!88=ž_[WRýh%% ‡+ƒ@,!ýSLÝ´ \\79C V=%%ú‡ 8Q52 $9')78i#&Iþ¡úšd/¶þæÿ§Ü {¾¢!&M@! ::&:"&&" ;'&;)???ýý‡.ÄüÄ.üć.ÄüÄ....10²'+7'&'&'&'&'&'¦„upc_8Ú B$j=8!n¦÷þ4]uhgǼ7J=xN1B 7Èåáîç›m$ýp…œ˜º¸? ^cfi†‹– ä@qœ—ihgdQMGF>94,—‹‡xd_J4&(%($({2Zee{2feg†j…„gihGPQP`œ;¡";¡;¡(;C;M ~pa_j†…x‹`_„Œ2:{’‡:p: :”:”Z-QFv/7?372672'57#5#>7>54&'&'.5354>7.5'4'"./2Ñ# 2C+G;2&F€)0C‚#8uArT| 72.X +:$3‰O/"q&8 Y\S-m9ð1_0NSŽn,ª”\77ï=@    %“ ï6F)]/';D¥¼ÙEGED̺#V (!/2'xS[) 5Ln8%ÑÅi›5”¥2.#&%  J@T2  Mi¸Û\+þ¡8þëoú‡E—S$[1o¬P[5[­(V‘IBþÛ5oþÛDvjPGbQvü A$Œ?7Áþ ! %œw$(m@1'(: &%: $:'(:&%%&;););) ;)':])xv?v?/ýýýýý‡.Äüć.Äüć.ÄüÄ.üÄ...10²)+''4>7>7'7'œ%¦þX(K )57¸)Cd24l’c/‡Xú¦¥^%¦H%2/kJ)E2Œ,7 \þþ;ž©=†¸¤G6p=m¼c´þþïJj¨3>]@,)('&  9';?;?(;);.=;7;6:4)] +?v?/Ö?ý/ý54'"46?2'#&#">73   +3"  4Vb,2* &®Œ&”  S-=78o%H'%ŠP Gk-A2jf– oJ8I44P'žt2¸%ùá:Ex  (!8&?Aj   #.9V>= %H* 7)%³N#'G"  88()Ey@wXI#•6($*3%rÚ%ýé8 W.JJ=€¡þj–RUhƒ@?UOF>0,$F [%[f;:99f;h;i0;i9;i:;i  [:f:A@ ; : U,)FFv/7??</ý/<ý/ýÖÖýýýý9<999............10²iF+6?46736$3">5"#'>74'4.'2>?654&/&567>54&' 7%$  K·7I&7 :.L ;MBN-@8&*¹% -\H-6 s"77%0u8*I" {Ã{?5$<+V/bD_v6šV %! ;ûh_L1  J-aލ[ŒŠy-=,6g?u36úP*1&l(7k(\%&+<>S-6KJ%žç_ea@-O6%6`a;fG;RK;Rc:+ :a`B:WF:W\ R*xWFv/7v??/ýý/<ý/ýýý<ý/Ö<...........10²fW+.'"2>33"'./4&/&546767>7>3"6$7"&'&7>325dY¡'9Ž~ /4A,+LXT51&þX¦eW+Y0©*>0<&JwI’²72E;'# M@e‡fÐaù9'þþÿêyÊICäxÛ¥ýc8 ,wðQYj&N‚E)CJV m9R¡F þÚJ  / !C.©W;DwG .!>? .FBe6r3@&¿"k}\¹/Ãþúþ’[GLÌ•.ÃkrU¡ýÞï$8$b“JÁjK[nw¢@Poi_^OL<72GF `Upsl!dGEG\G\;xl;!U;p4d;!E;^]o;*3O;<G::],%#!+2Fv/7?54./2#>.'67>76#27>54672u( 7 5 Ÿ:BA: "(3J7>d2f%6t4 VE"O,>E>I$+/4 7–Z $' > :å%7ð6:H,  % þ)F @ Qj$;"4”'=/C+n=Gthr@z^øONO%?4j8[FvÀo>&-1#/.P,K(ü07M4&-3   þ 9$DwYp #/ Ï^)GG 7JT IOT^mp@KoZUKJ4ZK4__#_pnnjUU#ponRSTSP2;q3;qg;J;7*;7SR(TPj:?_:32E]7+?Fv/7?v?/<<ý/ý/<Ö<<ýý/ýýý/Ö<Ö?<Ö767>33267>7633# %.'.56?>7%>76"'3>767%"'.'.#2>3'®$%¦+QF /.& KYB!L+U<&?%"ZrIqJ$":9//%¦‘þÐþ»þ÷66 ?/T&ylx±†gþkË ! 8ÿ6IýiB%Kk!qTD›@ b{ɵ<ýJJP^d7¦  *G= ( 4E5(%  7:G¸$hW&~FFZ§Mz-Ug`Ù% o7þX?r1bQ(fWpf^ BŸX6þÈJ¤ )n˜µÎÑÕà@nÑÐ϶¯¤Ž†ogaTB(¼²¯Ž~o^]=('1#7Õ22#73””#7=£fÓÒ:ÔÕÕÔ”xÏ#2;Ö3;Ö¨;ÑÐR#Á;ªx;jH} Å.‰7£:Gf¨:#:7~}:bZj ]1)TFv/7?v?/<ý7.#'"&'%4'&547'".'&'.#34'4'&/4&5>&#"27>&'.#224&'"..#'"'#"27>?5#3f-R6#JJ^QN7´n-¸©þàŸR¡d 9]bJvƒ!&o7 ?@,Q“CM86cwA‹€ !y@/JG \31|7L yœqÉSPÉ 0'#$*T/+7$_q’¶T+sZ ;‡EV ;3  ËX0D0CP=Ik?'˜H0!6;&F)# XSE/H"F$‰ü]7¦IJ ¦J{0!'2]7474'&'".'.57.5&'&547>7676763232676&#">3546!5!&546?6537277&#"364#7672>767"%7'RBc]ofRj‰9H.k0"1¸®DoOW%?Z*f=Ö->(- %Z„1G2,&!8\4².CM'1 ;ýâRTJƒJ7<„o3¼‚;óþþþ´% ! %%%«2%JILJ5gQ>6ñnJI ¸Me"%5_ȶa*85rþdJJÝ5*&72f<V8…‘þÿªAi“!IK ,  + \ñ[>67E“ƒBš_UQG68%B¢`þŠ´þ˜£=h;m×SnJ%Fo:2JïýêJ72y>+œTÃ#&@*J…J$\8%1Nd1\Ü·¦-ý¥_;3T IF9¸fJk~@;g\KD=:93,+dSIHD= 2\5;l;l%;l<;l5;\( ::J )xDFv/7v??</ýý?ýýýýý99......................10²lD+7>3"&'#.5'4.'#.'&54&'&#&#"##4&'  3&'&'.#2>?>34/&7\)]°‡HD1,>I'O 6 %% ‰°%M6T/Ê%8I=O"&I%P #H20,2 6W1p21+  þ²‘nþ!-Ûw`uþºþþöƒÝ0,/ "G$%D ›%:x*þÆSÙ RL0@>\%%6]8þXþÇnô•ÀJÄH‘m‡ßýÅ$)#4J/(   ŽV8<:84)&?=3!8+""398!<;@&;@>;@;8;"!/ "*":+) Fv/7??/ý<ÖÖ</<ý<ýýýÖÖ999..............10²@ +#&'./6?>32365473".'4>7'7'3#sK'zN0'*9E'U28IJ8"  J6*X<8;dN//%7+%ß8%h¨_094G#m ,j7'7632.5"&/.#"4'4&/'".'46746767&'.5'%7#7&$&'!"&'523267267674'&'&'.'27'w†þ¹¸ICU…8qfeKS8, ÷É”þg%b  b$GC0½" 7¸l  I¥  f777#YY6þá¡3I€/0;n;*  #'7z78 Yf+1†¡{šBLQiK˜Çë-0JWV¼õ’T]þþIJJ $ *7þë&/C!6þ! 9y@"1' #$['Nj 'Ð J**"0©Jý8+\6fâ€Õõ—16I‚6%#:  'Vx-Y³¨SŸT,kþÊ¥¦çÛorv‰´@VІ|wvthgfea.|wvsjQ?" FH` H`pr:#qr:$##$;H80;ŽŠ;IF;I€:ZIH:`?:`T:`Q:`k Z)xgFv/7v??</ý<ýýý<73&/&'.'%&#.'65&'./&'&'&'&54&/777?37&/&'.'.5.58]79VDLz¹mŒ$ !)JýüG‘FCƒ77$1'ƒZ<$€]þõU7 !)  9  @8l.\“70/qËý %@!‡eHQN²bNo&Ov‡hd|/‰‹p€!C.©W;%¸Ba;V/ .=B}ƒ„j!(<)ý²Erl<8¹mgHIK*“g6;iB-&-H<‰‰6”þì7D1«R7Qì%:p9_„:Z†IM[\gM†G%\b%6nNÉþÑ´1oïþXIIý×€b,Eµ©  Œ‰5XRÜ LQ–Û(,0a@,0/.-+*),);:#:*):,+: 0-:/. ])#Fv/7?v?/<ý7>33#Ë-J  ¹%*! (@.¦%%Ûa9.* ?f-O2CBÆJþìOx^4<Þ2Í%ÚßÕýD¦´+!?Zþ¼ýi—Êü‹çyPX[dŸ@O]\[]ZYUL7&2Y7[QR;e;e=;e2;e(;R;RQUMJ<:C=:C&:J:IH::Y:7M])HFv/7?7673267>3#"'4&'&'#46?>5'4.5&'&'&54'.'535"#237793I#M-Vq-A@*T€Y 931 %7 ï$</ .'G%1DpT8\$  >8%Q)'r "0,„%Jý uL3) "\"‚;üf(& #1S"¸t#`2h;pr'[ƒ!áu»ò¸v M£V þ!9_<5HMKI³No&–IrêJ †oþë” 0  dçLZcgn†@?hM2/$h[87$>Tffegd/M9/Q';o#;o;`Q;D`T[edfjT:gf:D ])x/Fv/7v?v?/<ý/<ý<Ö<Ö<Öý/ýýýÖ<7>7.#?67>.'&5%35!>76d87    " %) Nm% 3J.A2 *1 +75 5N!!iOE32d7þ¼ !1Cr0% Eæ ‹$"&dJý¨L*¼ýD:§€ê0X3 !0 A5f59­j4\5þý..ev7xP“a(- þìn:}B2ÞBJrQ]*g5åAhm48Û9,' þÇ#P@SbÝÝŒ›4S*N\JçDVrvz“–™¾@_™—–”ƒ{?•ƒtBAA7W3ŠiSfyts:uvvu}zwyxB;š;šŠ;F˜—;F™i;%6[;3;S;FW:7Š:jif:zyu:7xw:+:PS]F+PFv/7?v?/ý/ý?2""&'./.5472.#"546767>377'35&#"#>?67>737\&rM#Fq  7'Š]._2on82"(C3(K)d(.$6IN=½!ë> >%IdêI;Z,Q}6d0,’•Lb´#©O]ƒ77#"<`8^0]¹¸üçuM4+L7_$"L'a<B/#77üúËÕ7,. :ª_,d7hp×¾V‹-77 …6I<“C c6MgA)R,‹‚`N*E(“I-%I%<© N5ccôˆÕŒ¦!&ýæ7qHitJEBx6Ý,F2 ëËÝþ¹¹%%,{L+#  Cz17\þFݦý× E\h£§ªÀø@~»«ª¨“|oh]OF/,»«h<\ ›C†I†)))$)¤ª,5ª,‹¢¶´²¼t;Á“;Ás;Á|;Áv;Á¨;Á;Á;Á¤;Áj;U_;U¼;I;C špš›: u:)ƒj†:7:§4;:1C$0x,Fv/7v??/ý/<ý/ý<32&#"''76?67"'.'&'4654676726767>57.'&'#".5/"#"#"#"&'&'2676ú '7;51XôþvK *1$ 8   eSI$fWDQIuÅ\?ÎvG–[¤þêL84½0n-[€/*/,þì2=B,!*Æ}] \¨J*    %  ? $üÔ-/º7\p >B8 ! 74^+Uw&6)@7#5Q5$T“E~¤Ï28Õ-158 * {}e«0G!ÌÙg72%$%qÃ?"CÑti,,Oìq·§$&z^Tu.ƒJ  ¸\ KI7(w8%Ë'   -l "   j.%,«JýiKåÂþ|%%¦I \ü LXcgx|¯@SŠsg^Y6-%#ogUC9-vˆ+vˆ}ykMykƒ{z|yd8}ƒ0;Š;65;@ˆ;vCyhR=10yd5|{Kyk:zy2Fv/7??/<<ýÖ<7#.'>34'&/.'6"#3276>7>467>54.'32635&'4.##"'3?™ö‡þÊ`7ŽtA<+;*78 \;'  JËYMJ A kZ@ATUÓ,Wb…þøœ)* ýV+$ik2]-Z:etJ“>*žQ4þ‡Œÿx,OH#+$ 5< O—f6$*C`$%8%ˆ>°kd(^32#.##"&#"&'&'&'4'&/&5>?67&'.'.'u#!8<2o .",“¹gFG# $ # k D=9n8>/*F/UB $3#D€:‹P>%ý{  @A¹Á# o.?->S' O>y;#Ab-'?)A-'#7fyt™¬r"vS^Q3=Hu*% L@T1vC!üT.a2J&Qþ!%¾‹ ADIVY\Œ@CJCB6 P DP XZ X3IHE/XWY\;]Z;]%;D;=; IEHWXX: \[(:: *xFv/7v??/ý/ý<32".'63267.'&/""&'>7>3%7'"3".'&5%3'75sþÆJ$'hNŒJ(#  $kga‘¹Z;8*eYRDh¥Q"‚`VXÓ!H%!B2E-moýi“Jð@—ð4C!&R þµn%¦\T\%A-ý{7"Q3"!.'"&'&/.#4.'>7"#"'>53>35#NmK-*zv&EDC +V/I9›3"5 !]T!1 66‘˜"C|S!YÄ\7aÁ[J "nnþÙ%›#!R[²>]:b2% *9&  TÒ4+r!5D!9y4'&87vø‚•+.<;2%7E$5PG˜_þJý ?,">!\JÓyHSWº@XLI>976 @3=@3 @3G0DG0#P#P#:PRQQRUT:VWWV ;X;X ;XWT;=); -/0:G3:@#:V>]+Fv/7?v?/ý/ý/ý<?ý/<ý<ýýý‡.Äüć.ÄÄüÄÄ9999<9999..........10²X+''#"'&46?>526773267>5746546737&5476573‰]%\þµðo\%$N W:|_07%("üÕŠf 8*|%%¼)Ž%Ü{'¸%”¹8‹/$G"ÐÉ A# ïn$qDC^Y\UB;aBR0–sÓ'| -19( ”M"&Bsh.\ýü?Áa1+²ý”þ´LJ  58GKOh@-OMB810NM6"9"68JK:IHHIKH9); ":76] +xFv/7v?v?/<ýý/Ö<‡.ÄüÄ99.............10²P+"&/&'&'&'&'&'>32>7226767>72>5'&/&'.'77'37 AXOP9åHNCw?g)6‚?2,+I) 4,<0\>FM0%V:6MGzU78IZIúÓ\ +V GG(noPJ\ Ž)zvTþ¯m†1.P" [²XJAFyŽ$N4P=‚B ¦>SM‹‚ 2ÞL›WþçJ%ý×D‘ ,"F?$uO¦VÐðÝon\Ùh_cgknquø@wndca5) qncb`NHA;5 $l'.l'HNqop:tuutop:srrsih:tu:srrsjk:jk:ihhio;v$;v;v;v);vts;.(;.N:qD:A@ql:f(':t].)5Fv/7?v?/ý7"'"7&'.'&67>537>7>7>673'337/3F  o7#)7;#ŽJ,_k9€  $$@9;?)“ Æ”Iw2_I%$R4A) 5L%53$BOD&Es?/!1DdqUL7%7úã8%w”%ûø7oþ!\”n%nh.3)tO'7o.qQ€…FƒFþà•w%@ü.?Ilþþ%  ËeÙ{ï?QƃDBS$c0L>=6ï9.YpA(+6Q,qÅp2=Æ/¿þm“ÝËÝþþ˹ý²Ýþ¢^ÓøBFKO–@FKG65.*!<=F :EF:>==>EF:DCCDNO:MLLM;PN;P";P);P;PF;=])xv?v??ýýýýýý‡.Äüć.Äüć.Äüć.ÄüÄ9..............10²P5+"46?'#'>7&'&'.'57>7'4>77Ó!;7*30,KË.77Þ5ŽK=o!"+JOi†33EA+%˜vnS#%X"%'6|¶püÜ”º/tþj˸ø;KeW|c!I)ï)"(9&°M ”  Jo¶-9zE>w7 7/þXHušvþÙ¦¦þ}82O$þ븹¦ž²EHLH@!LIF&% LH0. ;M;M;MI;F(G:E,??</ý?ýýýý............10²M +4672#""#"&'2>?2327>76?>767>77'.5®C€:¡_n0)•a=*66- *"5J'zÀ…ORþF*$"B#G)0. K'! J\%ý1G{' I8‘üRfDû¤s/e7 >[…lnP (%"2.˜R*6"AB›0J  'ïI%þk"•8ÃÕ t@EkcWOLA;:91(  rk_m]L88,9F,9",%;u1;uO;uI;u<;u ;:Z];m; ,;: ]A)?v?/ý?<ý/ý<ýýýýýýÖ<99<9....................10²uO+%2!"6?67>3#"/"327>7""4>7&/"&'4&53>76767.#"&#"'7>54/.'&532?632Ãüù@g3kFæ.Lýrß%±þåµacÜ(F]z:o¸#hŠ@c:’ŒBHid@ZA*& ? K ¦þ3%þÑTRòb*L*G" %1|uJ@:`%!zW#&lbV.8n9,3#2637#"&'&'.5'7267&/&546767>326763'#6.54&'åÑÂá’2J  " AK[5(FjK$ ! ¢-˜%=*@.+B\?:dnþþˆ¹! 6LDa7€KG4^üÚn7I7]#%-   ¨vj»þéÃU‘x%5<1d!9X'Db¦H9JBV1$40  ¡~x˜P“O7%9k`2_™??]„3P û¨¦ï8üÖ%fUVk+wb3=Eo–,Z@) & ;-;-:: ': ::'!)x Fv/7v??/ý/ý/ý?67'98 !=\ <-A,)  % f\-:°X/þ„þ:`Pð$!)+[݃_t´[/*O#IU'}3 ö^u†‰˜@H|ngQK=:7q7.+2‰(‡!ƒk>q k>‰ˆˆ,C+(H+(hgbˆ‡;!2;‰b;\_k:,‡:(>:kv:\!*QFv/7??/ý/ý/ý/ýÖý/ýý<Ö<999<9<999.............10²ŠQ+'.'.'>7'6323>5"&5465&'.##.54&'&'#>76767676324&#"367>4&/&'>735y "6?@+30;?;+3; :!<']! )?<7676763233>7263Ã!PLOU"<7ZVt>#$' F&I.C6 78(+[/%1‹}A)' ¸1¨!jg[TB>>    &&\zI)  7aj_¢!þþq[ Äã ï5D@"0, : ,:: 0&.x Fv/7v??</ý/ýý99....10²6 +&'&'476?%&'&'&'4767Ë3KZXDD3(^ /J0„0)P:>0*")[?^J Æ 1&TAet\|% +Hp c÷BLAXa  FlSªo…A0))  Äì ï1D@*#..&::& :] .*Fv/7?v?/ý/ýý99.....10²2*+.567674'&'&54767.54654'&'6765ìBFZX $88/J0 #])3ýé)0@:Q (1„}INZ)# ýcBV3#%harI+ #%{]tnRoF `W@NB=*-7@†sNNNNˆP D H ä ø n¸Vì†X¨°< ð#j%Œ'r(¾)ª*œ- .È1d3–5È7Æ9´ìAÀE0H¶KZLªNæRSnVîY\*^ºaÆehPj´l®nLq†sàu’xÞz¨{~~80€P€îƒl… †¶ˆ¶Š¬Ž‘â“,•ð˜Z™V›&Ÿ’¢Ä¥&¦¢¨Rª(«ê­T¯È±\²–´|¶J·2¹\ºXºX»F¼*ÿœ2e  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a¬´µ$$  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcd~ ×ýA ÿÿ  ×ýA ÿÿÊÊÊÊÊ  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcd ب¨s`×å%37DJß¼oáÅy`JÏ%‰‰¾JÃ{7T71údo¼¼° Á f ® š ö¸ f {= ® {Ã\ à ö qš ¤\ R q¸ R ¸Hö ) =¸ Í \ \ ì/“¾Áœ%}PR7wžJÁ“T7¤‹fô\Á%úßúdç\Ŧ/\f¾åy\ ÙžÃå–o3ÕJxD~d› RH  ® )áá² ï•… ëP q 3ì  × ì ¤ {5 wN×3Ç o ¨s°#B›¸ Äöý×þþü~Dþ3š`ý{\\\×qoÝ)qo¸J%'q×L“•"fš3%š3 fAlts@  ü ãh                                                                                                                                                                                                                                                                         imlib2-1.4.6/data/Makefile.am0000664000175000017500000000007212137523370012572 00000000000000MAINTAINERCLEANFILES = Makefile.in SUBDIRS = fonts images imlib2-1.4.6/configure0000775000175000017500000176313212255306300011543 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for imlib2 1.4.6. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: enlightenment-devel@lists.sourceforge.net about your $0: system, including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='imlib2' PACKAGE_TARNAME='imlib2' PACKAGE_VERSION='1.4.6' PACKAGE_STRING='imlib2 1.4.6' PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net' PACKAGE_URL='' ac_unique_file="configure.ac" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS CWARNFLAGS ID3LIBS BUILD_ID3_LOADER_FALSE BUILD_ID3_LOADER_TRUE BZ2LIBS BUILD_BZ2_LOADER_FALSE BUILD_BZ2_LOADER_TRUE ZLIBLIBS BUILD_ZLIB_LOADER_FALSE BUILD_ZLIB_LOADER_TRUE GIFLIBS BUILD_GIF_LOADER_FALSE BUILD_GIF_LOADER_TRUE TIFFLIBS BUILD_TIFF_LOADER_FALSE BUILD_TIFF_LOADER_TRUE BUILD_PNG_LOADER_FALSE BUILD_PNG_LOADER_TRUE PNG_LIBS PNG_CFLAGS JPEGLIBS BUILD_JPEG_LOADER_FALSE BUILD_JPEG_LOADER_TRUE DLOPEN_LIBS BUILD_X11_FALSE BUILD_X11_TRUE X_EXTRA_LIBS X_LIBS X_PRE_LIBS X_CFLAGS XMKMF FREETYPE_LIBS FREETYPE_CFLAGS BUILD_AMD64_FALSE BUILD_AMD64_TRUE BUILD_MMX_FALSE BUILD_MMX_TRUE PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG lt_version OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP SED LIBTOOL am__fastdepCCAS_FALSE am__fastdepCCAS_TRUE CCASDEPMODE CCASFLAGS CCAS EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM host_os host_vendor host_cpu host build_os build_vendor build_cpu build target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_visibility_hiding enable_shared enable_static with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock enable_mmx enable_amd64 with_x with_jpeg with_png with_tiff with_gif with_zlib with_bzip2 with_id3 enable_werror ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CCAS CCASFLAGS PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR FREETYPE_CFLAGS FREETYPE_LIBS XMKMF PNG_CFLAGS PNG_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures imlib2 1.4.6 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/imlib2] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of imlib2 1.4.6:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-visibility-hiding enable visibility hiding [default=no] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-mmx attempt compiling using x86 mmx assembly [default=auto] --enable-amd64 attempt compiling using amd64 assembly [default=auto] --enable-werror treat compiler warnings as errors [default=no] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-x use the X Window System --without-jpeg Disable JPEG image loader --without-png Disable PNG image loader --without-tiff Disable TIFF image loader --without-gif Disable GIF image loader --without-zlib Disable ZLIB loader --without-bzip2 Disable BZIP2 loader --without-id3 Disable ID3 loader Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CCAS assembler compiler command (defaults to CC) CCASFLAGS assembler compiler flags (defaults to CFLAGS) PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path FREETYPE_CFLAGS C compiler flags for FREETYPE, overriding pkg-config FREETYPE_LIBS linker flags for FREETYPE, overriding pkg-config XMKMF Path to xmkmf, Makefile generator for X Window System PNG_CFLAGS C compiler flags for PNG, overriding pkg-config PNG_LIBS linker flags for PNG, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF imlib2 configure 1.4.6 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## -------------------------------------------------------- ## ## Report this to enlightenment-devel@lists.sourceforge.net ## ## -------------------------------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by imlib2 $as_me 1.4.6, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac am__api_version='1.13' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='imlib2' VERSION='1.4.6' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if ${ac_cv_c_bigendian+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi # By default we simply use the C compiler to build assembly code. test "${CCAS+set}" = set || CCAS=$CC test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS depcc="$CCAS" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CCAS_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CCAS_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CCAS_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then am__fastdepCCAS_TRUE= am__fastdepCCAS_FALSE='#' else am__fastdepCCAS_TRUE='#' am__fastdepCCAS_FALSE= fi # Check whether --enable-visibility-hiding was given. if test "${enable_visibility_hiding+set}" = set; then : enableval=$enable_visibility_hiding; enable_visibility_hiding=yes else enable_visibility_hiding=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.2' macro_revision='1.3337' ltmain="$ac_aux_dir/ltmain.sh" # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case "$ECHO" in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test "$GCC" != yes; then reload_cmds=false fi ;; darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 $as_echo "${with_sysroot}" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; powerpcle-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test x"$lt_cv_prog_compiler__b" = xyes; then archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([A-Za-z]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: VERSION_CUR=5 VERSION_REV=6 VERSION_AGE=4 lt_version=${VERSION_CUR}:${VERSION_REV}:${VERSION_AGE} if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi mmx=no amd64=no case $host_cpu in i*86) mmx="yes";; x86_64) amd64="yes";; amd64) amd64="yes";; esac case $host_os in solaris*) mmx="no";; darwin*) mmx="no";; esac # Check whether --enable-mmx was given. if test "${enable_mmx+set}" = set; then : enableval=$enable_mmx; if test x$enableval = xyes; then mmx=yes # Cannot compile with both options enabled amd64=no else mmx=no fi fi # Check whether --enable-amd64 was given. if test "${enable_amd64+set}" = set; then : enableval=$enable_amd64; if test x$enableval = xyes; then amd64=yes mmx=no else amd64=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable x86 mmx support" >&5 $as_echo_n "checking whether to enable x86 mmx support... " >&6; } if test x$mmx = xyes; then $as_echo "#define DO_MMX_ASM 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mmx" >&5 $as_echo "$mmx" >&6; } if test x$mmx = xyes; then BUILD_MMX_TRUE= BUILD_MMX_FALSE='#' else BUILD_MMX_TRUE='#' BUILD_MMX_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable amd64 asm support" >&5 $as_echo_n "checking whether to enable amd64 asm support... " >&6; } if test x$amd64 = xyes; then $as_echo "#define DO_AMD64_ASM 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amd64" >&5 $as_echo "$amd64" >&6; } if test x$amd64 = xyes; then BUILD_AMD64_TRUE= BUILD_AMD64_FALSE='#' else BUILD_AMD64_TRUE='#' BUILD_AMD64_FALSE= fi # check for freetype pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 $as_echo_n "checking for FREETYPE... " >&6; } if test -n "$FREETYPE_CFLAGS"; then pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$FREETYPE_LIBS"; then pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` else FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$FREETYPE_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (freetype2) were not met: $FREETYPE_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables FREETYPE_CFLAGS and FREETYPE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables FREETYPE_CFLAGS and FREETYPE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_dnet_ntoa=yes else ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_stub_dnet_ntoa=yes else ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes; then : fi if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if ${ac_cv_lib_bsd_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsd_gethostbyname=yes else ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" if test "x$ac_cv_func_connect" = xyes; then : fi if test $ac_cv_func_connect = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = xyes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" if test "x$ac_cv_func_remove" = xyes; then : fi if test $ac_cv_func_remove = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if ${ac_cv_lib_posix_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); int main () { return remove (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_posix_remove=yes else ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" if test "x$ac_cv_func_shmat" = xyes; then : fi if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if ${ac_cv_lib_ipc_shmat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); int main () { return shmat (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ipc_shmat=yes else ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ICE_IceConnectionNumber=yes else ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi if test "x$have_x" = "xno"; then # If --without-x was passed, this will be "disabled" instead of "no" -- # so always treat "no" as an error as_fn_error $? "no X support found. Use --x-includes and --x-libraries to specify the X path on your system, or --without-x to disable X support." "$LINENO" 5 fi if test "x$have_x" = "xyes"; then $as_echo "#define BUILD_X11 1" >>confdefs.h else have_x="no" fi if test "x$have_x" = "xyes"; then BUILD_X11_TRUE= BUILD_X11_FALSE='#' else BUILD_X11_TRUE='#' BUILD_X11_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : DLOPEN_LIBS=-ldl fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable jpeg support" >&5 $as_echo_n "checking whether to enable jpeg support... " >&6; } # Check whether --with-jpeg was given. if test "${with_jpeg+set}" = set; then : withval=$with_jpeg; if test "$withval" = no ; then jpeg_loader=no else jpeg_loader=yes fi else jpeg_loader=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jpeg_loader" >&5 $as_echo "$jpeg_loader" >&6; } if test "$jpeg_loader" != no ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; } if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ljpeg $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char jpeg_destroy_decompress (); int main () { return jpeg_destroy_decompress (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_jpeg_jpeg_destroy_decompress=yes else ac_cv_lib_jpeg_jpeg_destroy_decompress=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; } if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then : jpeg_ok=yes else jpeg_ok=no fi if test "$jpeg_ok" = yes; then ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" if test "x$ac_cv_header_jpeglib_h" = xyes; then : else jpeg_ok=no fi if test "$jpeg_ok" = yes; then JPEGLIBS="-ljpeg" fi fi if test "$jpeg_ok" = no ; then if test "$jpeg_loader" = yes ; then as_fn_error $? "JPEG support was requested but system does not support it" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Native JPEG support will not be built (JPEG not found) ***" >&5 $as_echo "$as_me: WARNING: *** Native JPEG support will not be built (JPEG not found) ***" >&2;} fi fi else jpeg_ok=no fi if test "$jpeg_ok" = yes; then BUILD_JPEG_LOADER_TRUE= BUILD_JPEG_LOADER_FALSE='#' else BUILD_JPEG_LOADER_TRUE='#' BUILD_JPEG_LOADER_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable png support" >&5 $as_echo_n "checking whether to enable png support... " >&6; } # Check whether --with-png was given. if test "${with_png+set}" = set; then : withval=$with_png; if test "$withval" = no ; then png_loader=no else png_loader=yes fi else png_loader=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $png_loader" >&5 $as_echo "$png_loader" >&6; } if test "$png_loader" != no ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 $as_echo_n "checking for PNG... " >&6; } if test -n "$PNG_CFLAGS"; then pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$PNG_LIBS"; then pkg_cv_PNG_LIBS="$PNG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1` else PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$PNG_PKG_ERRORS" >&5 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 $as_echo_n "checking for PNG... " >&6; } if test -n "$PNG_CFLAGS"; then pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng12") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$PNG_LIBS"; then pkg_cv_PNG_LIBS="$PNG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng12") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng12" 2>&1` else PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng12" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$PNG_PKG_ERRORS" >&5 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 $as_echo_n "checking for PNG... " >&6; } if test -n "$PNG_CFLAGS"; then pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng10\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng10" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$PNG_LIBS"; then pkg_cv_PNG_LIBS="$PNG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng10\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng10" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng10" 2>&1` else PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng10" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$PNG_PKG_ERRORS" >&5 png_ok="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } png_ok="no" else PNG_CFLAGS=$pkg_cv_PNG_CFLAGS PNG_LIBS=$pkg_cv_PNG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } png_ok="yes" fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 $as_echo_n "checking for PNG... " >&6; } if test -n "$PNG_CFLAGS"; then pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng10\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng10" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$PNG_LIBS"; then pkg_cv_PNG_LIBS="$PNG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng10\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng10" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng10" 2>&1` else PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng10" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$PNG_PKG_ERRORS" >&5 png_ok="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } png_ok="no" else PNG_CFLAGS=$pkg_cv_PNG_CFLAGS PNG_LIBS=$pkg_cv_PNG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } png_ok="yes" fi else PNG_CFLAGS=$pkg_cv_PNG_CFLAGS PNG_LIBS=$pkg_cv_PNG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } png_ok="yes" fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 $as_echo_n "checking for PNG... " >&6; } if test -n "$PNG_CFLAGS"; then pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng12") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$PNG_LIBS"; then pkg_cv_PNG_LIBS="$PNG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng12") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng12" 2>&1` else PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng12" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$PNG_PKG_ERRORS" >&5 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 $as_echo_n "checking for PNG... " >&6; } if test -n "$PNG_CFLAGS"; then pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng10\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng10" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$PNG_LIBS"; then pkg_cv_PNG_LIBS="$PNG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng10\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng10" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng10" 2>&1` else PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng10" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$PNG_PKG_ERRORS" >&5 png_ok="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } png_ok="no" else PNG_CFLAGS=$pkg_cv_PNG_CFLAGS PNG_LIBS=$pkg_cv_PNG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } png_ok="yes" fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 $as_echo_n "checking for PNG... " >&6; } if test -n "$PNG_CFLAGS"; then pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng10\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng10" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$PNG_LIBS"; then pkg_cv_PNG_LIBS="$PNG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng10\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng10" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng10" 2>&1` else PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng10" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$PNG_PKG_ERRORS" >&5 png_ok="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } png_ok="no" else PNG_CFLAGS=$pkg_cv_PNG_CFLAGS PNG_LIBS=$pkg_cv_PNG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } png_ok="yes" fi else PNG_CFLAGS=$pkg_cv_PNG_CFLAGS PNG_LIBS=$pkg_cv_PNG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } png_ok="yes" fi else PNG_CFLAGS=$pkg_cv_PNG_CFLAGS PNG_LIBS=$pkg_cv_PNG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } png_ok="yes" fi else png_ok="no" fi if test "$png_ok" = yes; then BUILD_PNG_LOADER_TRUE= BUILD_PNG_LOADER_FALSE='#' else BUILD_PNG_LOADER_TRUE='#' BUILD_PNG_LOADER_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tiff support" >&5 $as_echo_n "checking whether to enable tiff support... " >&6; } # Check whether --with-tiff was given. if test "${with_tiff+set}" = set; then : withval=$with_tiff; if test "$withval" = no ; then tiff_loader=no else tiff_loader=yes fi else tiff_loader=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tiff_loader" >&5 $as_echo "$tiff_loader" >&6; } if test "$tiff_loader" != no ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5 $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; } if ${ac_cv_lib_tiff_TIFFReadScanline+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ltiff $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char TIFFReadScanline (); int main () { return TIFFReadScanline (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_tiff_TIFFReadScanline=yes else ac_cv_lib_tiff_TIFFReadScanline=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5 $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; } if test "x$ac_cv_lib_tiff_TIFFReadScanline" = xyes; then : tiff_libs="-ltiff" tiff_ok=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5 $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; } if ${ac_cv_lib_tiff_TIFFReadScanline+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ltiff -ljpeg -lz -lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char TIFFReadScanline (); int main () { return TIFFReadScanline (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_tiff_TIFFReadScanline=yes else ac_cv_lib_tiff_TIFFReadScanline=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5 $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; } if test "x$ac_cv_lib_tiff_TIFFReadScanline" = xyes; then : tiff_libs="-ltiff -ljpeg -lz -lm" tiff_ok=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff34" >&5 $as_echo_n "checking for TIFFReadScanline in -ltiff34... " >&6; } if ${ac_cv_lib_tiff34_TIFFReadScanline+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ltiff34 -ljpeg -lz -lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char TIFFReadScanline (); int main () { return TIFFReadScanline (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_tiff34_TIFFReadScanline=yes else ac_cv_lib_tiff34_TIFFReadScanline=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff34_TIFFReadScanline" >&5 $as_echo "$ac_cv_lib_tiff34_TIFFReadScanline" >&6; } if test "x$ac_cv_lib_tiff34_TIFFReadScanline" = xyes; then : tiff_libs="-ltiff34 -ljpeg -lz -lm" tiff_ok=yes else tiff_ok=no fi fi fi if test "$tiff_ok" = yes; then ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" if test "x$ac_cv_header_tiffio_h" = xyes; then : else tiff_ok=no fi if test "$tiff_ok" = yes; then TIFFLIBS=$tiff_libs fi fi if test "$tiff_ok" = no ; then if test "$tiff_loader" = yes ; then as_fn_error $? "TIFF support was requested but system does not support it" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Native TIFF support will not be built (TIFF not found) ***" >&5 $as_echo "$as_me: WARNING: *** Native TIFF support will not be built (TIFF not found) ***" >&2;} fi fi else tiff_ok=no fi if test "$tiff_ok" = yes; then BUILD_TIFF_LOADER_TRUE= BUILD_TIFF_LOADER_FALSE='#' else BUILD_TIFF_LOADER_TRUE='#' BUILD_TIFF_LOADER_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable gif support" >&5 $as_echo_n "checking whether to enable gif support... " >&6; } gif_lib=any # Check whether --with-gif was given. if test "${with_gif+set}" = set; then : withval=$with_gif; if test "$withval" = no ; then gif_loader=no else gif_loader=yes case "$withval" in giflib) gif_lib=giflib;; libungif) gif_lib=libungif;; esac fi else gif_loader=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gif_loader" >&5 $as_echo "$gif_loader" >&6; } if test "$gif_loader" != no ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred gif provider" >&5 $as_echo_n "checking for preferred gif provider... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gif_lib" >&5 $as_echo "$gif_lib" >&6; } if test "$gif_lib" != libungif ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lgif" >&5 $as_echo_n "checking for DGifOpenFileName in -lgif... " >&6; } if ${ac_cv_lib_gif_DGifOpenFileName+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgif $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char DGifOpenFileName (); int main () { return DGifOpenFileName (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_gif_DGifOpenFileName=yes else ac_cv_lib_gif_DGifOpenFileName=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileName" >&5 $as_echo "$ac_cv_lib_gif_DGifOpenFileName" >&6; } if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then : gif_libs="-lgif" gif_ok=yes else gif_ok=no fi if test "$gif_ok" = yes; then ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" if test "x$ac_cv_header_gif_lib_h" = xyes; then : else gif_ok=no fi if test "$gif_ok" = yes; then GIFLIBS=$gif_libs gif_lib=giflib fi fi fi if test "$gif_lib" != giflib ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lungif" >&5 $as_echo_n "checking for DGifOpenFileName in -lungif... " >&6; } if ${ac_cv_lib_ungif_DGifOpenFileName+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lungif $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char DGifOpenFileName (); int main () { return DGifOpenFileName (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ungif_DGifOpenFileName=yes else ac_cv_lib_ungif_DGifOpenFileName=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpenFileName" >&5 $as_echo "$ac_cv_lib_ungif_DGifOpenFileName" >&6; } if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then : gif_libs="-lungif" gif_ok=yes else gif_ok=no fi if test "$gif_ok" = yes; then ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" if test "x$ac_cv_header_gif_lib_h" = xyes; then : else gif_ok=no fi if test "$gif_ok" = yes; then GIFLIBS=$gif_libs gif_lib=libungif fi fi fi if test "$gif_ok" = no ; then if test "$gif_loader" = yes ; then as_fn_error $? "GIF support was requested but system does not support it" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Native GIF support will not be built (GIF not found) ***" >&5 $as_echo "$as_me: WARNING: *** Native GIF support will not be built (GIF not found) ***" >&2;} fi fi else gif_ok=no fi if test "$gif_ok" = yes; then BUILD_GIF_LOADER_TRUE= BUILD_GIF_LOADER_FALSE='#' else BUILD_GIF_LOADER_TRUE='#' BUILD_GIF_LOADER_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zlib support" >&5 $as_echo_n "checking whether to enable zlib support... " >&6; } # Check whether --with-zlib was given. if test "${with_zlib+set}" = set; then : withval=$with_zlib; if test "$withval" = no ; then zlib_loader=no else zlib_loader=yes fi else zlib_loader=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $zlib_loader" >&5 $as_echo "$zlib_loader" >&6; } if test "$zlib_loader" != no ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 $as_echo_n "checking for uncompress in -lz... " >&6; } if ${ac_cv_lib_z_uncompress+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char uncompress (); int main () { return uncompress (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_z_uncompress=yes else ac_cv_lib_z_uncompress=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 $as_echo "$ac_cv_lib_z_uncompress" >&6; } if test "x$ac_cv_lib_z_uncompress" = xyes; then : zlib_ok=yes else zlib_ok=no fi if test "$zlib_ok" = yes; then ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" if test "x$ac_cv_header_zlib_h" = xyes; then : else zlib_ok=no fi if test "$zlib_ok" = yes; then ZLIBLIBS="-lz" fi fi if test "$zlib_ok" = no ; then if test "$zlib_loader" = yes ; then as_fn_error $? "ZLIB support was requested but system does not support it" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Native zlib support will not be built (zlib not found) ***" >&5 $as_echo "$as_me: WARNING: *** Native zlib support will not be built (zlib not found) ***" >&2;} fi fi else zlib_ok=no fi if test "$zlib_ok" = yes; then BUILD_ZLIB_LOADER_TRUE= BUILD_ZLIB_LOADER_FALSE='#' else BUILD_ZLIB_LOADER_TRUE='#' BUILD_ZLIB_LOADER_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable bzip2 support" >&5 $as_echo_n "checking whether to enable bzip2 support... " >&6; } # Check whether --with-bzip2 was given. if test "${with_bzip2+set}" = set; then : withval=$with_bzip2; if test "$withval" = no ; then bz2_loader=no else bz2_loader=yes fi else bz2_loader=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bz2_loader" >&5 $as_echo "$bz2_loader" >&6; } if test "$bz2_loader" != no ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzRead in -lbz2" >&5 $as_echo_n "checking for BZ2_bzRead in -lbz2... " >&6; } if ${ac_cv_lib_bz2_BZ2_bzRead+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbz2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char BZ2_bzRead (); int main () { return BZ2_bzRead (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bz2_BZ2_bzRead=yes else ac_cv_lib_bz2_BZ2_bzRead=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzRead" >&5 $as_echo "$ac_cv_lib_bz2_BZ2_bzRead" >&6; } if test "x$ac_cv_lib_bz2_BZ2_bzRead" = xyes; then : bz2_ok=yes else bz2_ok=no fi if test "$bz2_ok" = yes; then ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" if test "x$ac_cv_header_bzlib_h" = xyes; then : else bz2_ok=no fi if test "$bz2_ok" = yes; then BZ2LIBS="-lbz2" fi fi if test "$bz2_ok" = no ; then if test "$bz2_loader" = yes ; then as_fn_error $? "BZIP2 support was requested but system does not support it" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Native bz2 support will not be built (bzip2 not found) ***" >&5 $as_echo "$as_me: WARNING: *** Native bz2 support will not be built (bzip2 not found) ***" >&2;} fi fi else bz2_ok=no fi if test "$bz2_ok" = yes; then BUILD_BZ2_LOADER_TRUE= BUILD_BZ2_LOADER_FALSE='#' else BUILD_BZ2_LOADER_TRUE='#' BUILD_BZ2_LOADER_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable id3 support" >&5 $as_echo_n "checking whether to enable id3 support... " >&6; } # Check whether --with-id3 was given. if test "${with_id3+set}" = set; then : withval=$with_id3; if test "$withval" = no ; then id3_loader=no else id3_loader=yes fi else id3_loader=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $id3_loader" >&5 $as_echo "$id3_loader" >&6; } if test "$id3_loader" != no ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3_file_open in -lid3tag" >&5 $as_echo_n "checking for id3_file_open in -lid3tag... " >&6; } if ${ac_cv_lib_id3tag_id3_file_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lid3tag -lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char id3_file_open (); int main () { return id3_file_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_id3tag_id3_file_open=yes else ac_cv_lib_id3tag_id3_file_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_id3tag_id3_file_open" >&5 $as_echo "$ac_cv_lib_id3tag_id3_file_open" >&6; } if test "x$ac_cv_lib_id3tag_id3_file_open" = xyes; then : id3_libs="-lz -lid3tag" id3_ok=yes else id3_ok=no fi if test "$id3_ok" = yes; then ac_fn_c_check_header_mongrel "$LINENO" "id3tag.h" "ac_cv_header_id3tag_h" "$ac_includes_default" if test "x$ac_cv_header_id3tag_h" = xyes; then : else id3_ok=no fi if test "$id3_ok" = yes; then ID3LIBS=$id3_libs fi fi if test "$id3_ok" = no ; then if test "$id3_loader" = yes ; then as_fn_error $? "ID3 support was requested but system does not support it" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Native mp3 support will not be built (id3tag not found) ***" >&5 $as_echo "$as_me: WARNING: *** Native mp3 support will not be built (id3tag not found) ***" >&2;} fi fi else id3_ok=no fi if test "$id3_ok" = yes; then BUILD_ID3_LOADER_TRUE= BUILD_ID3_LOADER_FALSE='#' else BUILD_ID3_LOADER_TRUE='#' BUILD_ID3_LOADER_FALSE= fi # Check whether --enable-werror was given. if test "${enable_werror+set}" = set; then : enableval=$enable_werror; else enable_werror=no fi if test "x$GCC" = "xyes"; then CWARNFLAGS="-W -Wall -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings" CWARNFLAGS="$CWARNFLAGS -Wno-unused-parameter" CWARNFLAGS="$CWARNFLAGS -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes" if test "x$enable_werror" = "xyes"; then CWARNFLAGS="$CWARNFLAGS -Werror" fi fi if test "x$enable_visibility_hiding" = xyes ; then CPPFLAGS="$CPPFLAGS -fvisibility=hidden" fi ac_config_headers="$ac_config_headers config.h" ac_config_files="$ac_config_files Makefile imlib2.pc src/Makefile src/lib/Makefile src/bin/Makefile src/modules/Makefile src/modules/filters/Makefile src/modules/loaders/Makefile data/Makefile data/fonts/Makefile data/images/Makefile doc/Makefile imlib2-config README imlib2.spec" ac_config_commands="$ac_config_commands default" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MMX_TRUE}" && test -z "${BUILD_MMX_FALSE}"; then as_fn_error $? "conditional \"BUILD_MMX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_AMD64_TRUE}" && test -z "${BUILD_AMD64_FALSE}"; then as_fn_error $? "conditional \"BUILD_AMD64\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_X11_TRUE}" && test -z "${BUILD_X11_FALSE}"; then as_fn_error $? "conditional \"BUILD_X11\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_JPEG_LOADER_TRUE}" && test -z "${BUILD_JPEG_LOADER_FALSE}"; then as_fn_error $? "conditional \"BUILD_JPEG_LOADER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PNG_LOADER_TRUE}" && test -z "${BUILD_PNG_LOADER_FALSE}"; then as_fn_error $? "conditional \"BUILD_PNG_LOADER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_TIFF_LOADER_TRUE}" && test -z "${BUILD_TIFF_LOADER_FALSE}"; then as_fn_error $? "conditional \"BUILD_TIFF_LOADER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_GIF_LOADER_TRUE}" && test -z "${BUILD_GIF_LOADER_FALSE}"; then as_fn_error $? "conditional \"BUILD_GIF_LOADER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_ZLIB_LOADER_TRUE}" && test -z "${BUILD_ZLIB_LOADER_FALSE}"; then as_fn_error $? "conditional \"BUILD_ZLIB_LOADER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_BZ2_LOADER_TRUE}" && test -z "${BUILD_BZ2_LOADER_FALSE}"; then as_fn_error $? "conditional \"BUILD_BZ2_LOADER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_ID3_LOADER_TRUE}" && test -z "${BUILD_ID3_LOADER_FALSE}"; then as_fn_error $? "conditional \"BUILD_ID3_LOADER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by imlib2 $as_me 1.4.6, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ imlib2 config.status 1.4.6 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "imlib2.pc") CONFIG_FILES="$CONFIG_FILES imlib2.pc" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; "src/modules/filters/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/filters/Makefile" ;; "src/modules/loaders/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/Makefile" ;; "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; "data/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES data/fonts/Makefile" ;; "data/images/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "imlib2-config") CONFIG_FILES="$CONFIG_FILES imlib2-config" ;; "README") CONFIG_FILES="$CONFIG_FILES README" ;; "imlib2.spec") CONFIG_FILES="$CONFIG_FILES imlib2.spec" ;; "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool 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 (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and in which our libraries should be installed. lt_sysroot=$lt_sysroot # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) if test x"$xsi_shell" = xyes; then sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ func_dirname ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_basename ()$/,/^} # func_basename /c\ func_basename ()\ {\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ func_dirname_and_basename ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ func_stripname ()\ {\ \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ \ # positional parameters, so assign one to ordinary parameter first.\ \ func_stripname_result=${3}\ \ func_stripname_result=${func_stripname_result#"${1}"}\ \ func_stripname_result=${func_stripname_result%"${2}"}\ } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ func_split_long_opt ()\ {\ \ func_split_long_opt_name=${1%%=*}\ \ func_split_long_opt_arg=${1#*=}\ } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ func_split_short_opt ()\ {\ \ func_split_short_opt_arg=${1#??}\ \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ func_lo2o ()\ {\ \ case ${1} in\ \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ \ *) func_lo2o_result=${1} ;;\ \ esac\ } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_xform ()$/,/^} # func_xform /c\ func_xform ()\ {\ func_xform_result=${1%.*}.lo\ } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_arith ()$/,/^} # func_arith /c\ func_arith ()\ {\ func_arith_result=$(( $* ))\ } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_len ()$/,/^} # func_len /c\ func_len ()\ {\ func_len_result=${#1}\ } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$lt_shell_append" = xyes; then sed -e '/^func_append ()$/,/^} # func_append /c\ func_append ()\ {\ eval "${1}+=\\${2}"\ } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ func_append_quoted ()\ {\ \ func_quote_for_eval "${2}"\ \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; "default":C) chmod +x imlib2-config ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi ##################################################################### ## Info echo echo echo echo "------------------------------------------------------------------------" echo "$PACKAGE $VERSION" echo "------------------------------------------------------------------------" echo echo "Configuration Options Summary:" echo echo echo "Image Loaders:" echo " JPEG....................: $jpeg_ok" echo " PNG.....................: $png_ok" echo " TIFF....................: $tiff_ok" echo " GIF.....................: $gif_ok" echo " ZLIB....................: $zlib_ok" echo " BZIP2...................: $bz2_ok" echo " ID3.....................: $id3_ok" echo " X.......................: $have_x" echo echo echo "Use X86 MMX for speed.....: $mmx" echo "Use AMD64 for speed.......: $amd64" echo echo "Use visibility hiding.....: $enable_visibility_hiding" echo echo echo "Installation Path.........: $prefix" echo echo "Compilation...............: make" echo "Installation..............: make install" echo imlib2-1.4.6/install-sh0000755000175000017500000003325512255306301011632 00000000000000#!/bin/sh # install - install a program, script, or datafile 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 # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # 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 # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -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;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord 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 if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # 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 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. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then 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-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 d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # 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: imlib2-1.4.6/README0000664000175000017500000000334312255306306010510 00000000000000Imlib2 1.4.6 This is the Imlib 2 library - a library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support, etc. It does ALL of these operations FAST. Imlib2 also tries to be highly intelligent about doing them, so writing naive programs can be done easily, without sacrificing speed. This is a complete rewrite over the Imlib 1.x series. The architecture is more modular, simple, and flexible. See index.html in the doc/ directory for more information. Imlib2 requires several libraries to be already installed. These are: libjpeg http://www.ijg.org/ libpng http://www.libpng.org/pub/png/libpng.html freetype 2.1.x http://www.freetype.org/ For examples of this library in use, seek: Eterm http://www.eterm.org/ (CVS version only, currently) feh http://www.linuxbrit.co.uk/feh.html geist http://www.linuxbrit.co.uk/geist.html ------------------------------------------------------------------------------ COMPILING AND INSTALLING: ./configure make (as root unless youa re installing in your users directories): make install ------------------------------------------------------------------------------ BUILDING PACKAGES: RPM: To build rpm packages: sudo rpm -ta imlib2-1.4.6.tar.gz You will find rpm packages in your system /usr/src/redhat/* dirs (note you may not need to use sudo or root if you have your own ~/.rpmrc. see rpm documents for more details) DEB: To build deb packages: tar zvf imlib2-1.4.6.tar.gz cd imlib2-1.4.6 dpkg-buildpackage -us -uc -rfakeroot cd .. rm -rf imlib2-1.4.6 You will find all the debian source, binary etc. packages put in the directory where you first untarred the source tarball. imlib2-1.4.6/imlib2.spec0000664000175000017500000001270012255306306011657 00000000000000Summary: Powerful image loading and rendering library Name: imlib2 Version: 1.4.6 Release: 0.%(date '+%Y%m%d') License: BSD Group: System Environment/Libraries URL: http://www.enlightenment.org Source: %{name}-%{version}.tar.gz Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings } Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)} Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} #BuildSuggests: XFree86-devel xorg-x11-devel freetype-devel freetype2-devel libungif-devel BuildRequires: /usr/bin/freetype-config /usr/include/gif_lib.h BuildRequires: libid3tag-devel Requires: %{name}-loader_jpeg = %{version} Requires: %{name}-loader_png = %{version} Requires: %{name}-loader_argb = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Imlib2 is an advanced replacement library for libraries like libXpm that provides many more features with much greater flexibility and speed than standard libraries, including font rasterization, rotation, RGBA space rendering and blending, dynamic binary filters, scripting, and more. %package devel Summary: Imlib2 headers, static libraries and documentation Group: System Environment/Libraries Requires: %{name} = %{version} Requires: /usr/bin/freetype-config %description devel Headers, static libraries and documentation for Imlib2. %package filters Summary: Imlib2 basic plugin filters set Group: System Environment/Libraries Requires: %{name} = %{version} %description filters Basic set of plugin filters that come with Imlib2 %package loader_lbm Summary: Imlib2 LBM loader Group: System Environment/Libraries %description loader_lbm LBM image loader/saver for Imlib2 %package loader_jpeg Summary: Imlib2 JPEG loader Group: System Environment/Libraries BuildRequires: libjpeg-devel %description loader_jpeg JPEG image loader/saver for Imlib2 %package loader_png Summary: Imlib2 PNG loader Group: System Environment/Libraries BuildRequires: libpng-devel BuildRequires: zlib-devel %description loader_png PNG image loader/saver for Imlib2 %package loader_argb Summary: Imlib2 ARGB loader Group: System Environment/Libraries %description loader_argb ARGB image loader/saver for Imlib2 %package loader_bmp Summary: Imlib2 BMP loader Group: System Environment/Libraries %description loader_bmp BMP image loader/saver for Imlib2 %package loader_gif Summary: Imlib2 GIF loader Group: System Environment/Libraries %description loader_gif GIF image loader for Imlib2 %package loader_pnm Summary: Imlib2 PNM loader Group: System Environment/Libraries %description loader_pnm PNM image loader/saver for Imlib2 %package loader_tga Summary: Imlib2 TGA loader Group: System Environment/Libraries %description loader_tga TGA image loader/saver for Imlib2 %package loader_tiff Summary: Imlib2 TIFF loader Group: System Environment/Libraries BuildRequires: libtiff-devel %description loader_tiff TIFF image loader/saver for Imlib2 %package loader_xpm Summary: Imlib2 XPM loader Group: System Environment/Libraries %description loader_xpm XPM image loader/saver for Imlib2 %package loader_bz2 Summary: Imlib2 .bz2 loader Group: System Environment/Libraries %description loader_bz2 Bzip2 compressed image loader/saver for Imlib2 %package loader_gz Summary: Imlib2 .gz loader Group: System Environment/Libraries %description loader_gz gz compressed image loader/saver for Imlib2 %package loader_id3 Summary: Imlib2 .id3 loader Group: System Environment/Libraries %description loader_id3 id3 tag image loader/saver for Imlib2 %prep %setup -q %build %{configure} --prefix=%{_prefix} \ %ifarch x86_64 --disable-mmx \ %endif %ifarch i386 i486 i586 i686 --enable-mmx \ %endif $RPM_CONFIGURE_OPTS %{__make} %{?_smp_mflags} %{?mflags} %install %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/filters/*.a %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/loaders/*.a %clean test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %postun /sbin/ldconfig %files %defattr(-, root, root) %doc AUTHORS COPYING COPYING-PLAIN README %dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/loaders %{_libdir}/lib*.so.* %files devel %defattr(-, root, root, 0755) %{_libdir}/*.so %{_libdir}/*.la %{_libdir}/*.a %{_libdir}/imlib2/*/*.la %{_bindir}/imlib2-config %{_libdir}/pkgconfig/* %{_includedir}/* %{_datadir}/%{name} %{_bindir}/imlib2_* %files filters %dir %{_libdir}/%{name}/filters %attr(755,root,root) %{_libdir}/imlib2/filters/*.so %files loader_lbm %attr(755,root,root) %{_libdir}/imlib2/loaders/lbm.so %files loader_jpeg %attr(755,root,root) %{_libdir}/imlib2/loaders/jpeg.so %files loader_png %attr(755,root,root) %{_libdir}/imlib2/loaders/png.so %files loader_argb %attr(755,root,root) %{_libdir}/imlib2/loaders/argb.so %files loader_bmp %attr(755,root,root) %{_libdir}/imlib2/loaders/bmp.so %files loader_gif %attr(755,root,root) %{_libdir}/imlib2/loaders/gif.so %files loader_pnm %attr(755,root,root) %{_libdir}/imlib2/loaders/pnm.so %files loader_tga %attr(755,root,root) %{_libdir}/imlib2/loaders/tga.so %files loader_tiff %attr(755,root,root) %{_libdir}/imlib2/loaders/tiff.so %files loader_xpm %attr(755,root,root) %{_libdir}/imlib2/loaders/xpm.so %files loader_bz2 %attr(755,root,root) %{_libdir}/imlib2/loaders/bz2.so %files loader_gz %attr(755,root,root) %{_libdir}/imlib2/loaders/zlib.so %files loader_id3 %attr(755,root,root) %{_libdir}/imlib2/loaders/id3.so %changelog imlib2-1.4.6/ChangeLog0000664000175000017500000000042112255305635011400 00000000000000Version 1.4.6 - TGA loader: Fix for corrupt RLE format. - Fix drawing of closed polygons in certain situations (ticket 2309). - Set warning options when using gcc. - Silence compiler warnings. - Don't set -std=gnu99. - XPM loader: Simplify and fix certain case of cpp > 2. imlib2-1.4.6/COPYING0000664000175000017500000000370412255265113010664 00000000000000 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies of the Software and its Copyright notices. In addition publicly documented acknowledgment must be given that this software has been used if no source code of this software is made available publicly. Making the source available publicly means including the source for this software with the distribution, or a method to get this software via some reasonable mechanism (electronic transfer via a network or media) as well as making an offer to supply the source on request. This Copyright notice serves as an offer to supply the source on on request as well. Instead of this, supplying acknowledgments of use of this software in either Copyright notices, Manuals, Publicity and Marketing documents or any documentation provided with any product containing this software. This License does not apply to any software that links to the libraries provided by this software (statically or dynamically), but only to the software provided. Please see the COPYING-PLAIN for a plain-english explanation of this notice and its intent. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.