drumgizmo-0.9.14/0000755000076400017500000000000013106063422010624 500000000000000drumgizmo-0.9.14/AUTHORS0000644000076400017500000000064213077120601011616 00000000000000Founder and lead developer: Bent Bisballe Nyeng [deva] (deva@aasimon.org) Developer: Jonas Suhr Christensen [suhr] (jsc@umbraculum.org) Developer: André Nusser [chaot4] Developer: Christian Glöckner [cglocke] Developer, Graphics, GUI design and logo: Lars Muldjord [muldjord] (muldjordlars@gmail.com) Developer: Goran Mekić [meka] (meka@tilda.center) Patches: John Hammen (sample multichannel support) drumgizmo-0.9.14/ltmain.sh0000644000076400017500000105152213077054075012405 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 drumgizmo-0.9.14/INSTALL0000644000076400017500000003660513077054102011611 00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. drumgizmo-0.9.14/src/0000755000076400017500000000000013106063416011416 500000000000000drumgizmo-0.9.14/src/audiofile.cc0000644000076400017500000000676113103356466013627 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiofile.cc * * Tue Jul 22 17:14:11 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * Multichannel feature by John Hammen copyright 2014 */ #include "audiofile.h" #include #include #include #include AudioFile::AudioFile(const std::string& filename, std::size_t filechannel) : filename(filename) , filechannel(filechannel) , magic{this} { } AudioFile::~AudioFile() { magic = nullptr; unload(); } bool AudioFile::isValid() const { //assert(this == magic); return this == magic; } void AudioFile::unload() { // Make sure we don't unload the object while loading it... std::lock_guard guard(mutex); is_loaded = false; preloadedsize = 0; size = 0; delete[] data; data = nullptr; } #define BUFFER_SIZE 4096 void AudioFile::load(std::size_t sample_limit) { // Make sure we don't unload the object while loading it... std::lock_guard guard(mutex); if(this->data) // already loaded { return; } SF_INFO sf_info{}; SNDFILE *fh = sf_open(filename.c_str(), SFM_READ, &sf_info); if(!fh) { ERR(audiofile,"SNDFILE Error (%s): %s\n", filename.c_str(), sf_strerror(fh)); return; } if(sf_info.channels < 1) { // This should never happen but lets check just in case. return; } std::size_t size = sf_info.frames; std::size_t preloadedsize = sf_info.frames; if(preloadedsize > sample_limit) { preloadedsize = sample_limit; } sample_t* data = new sample_t[preloadedsize]; if(sf_info.channels == 1) { preloadedsize = sf_read_float(fh, data, preloadedsize); } else { // check filechannel exists if(filechannel >= (std::size_t)sf_info.channels) { filechannel = sf_info.channels - 1; } sample_t buffer[BUFFER_SIZE]; std::size_t frame_count = BUFFER_SIZE / sf_info.channels; std::size_t total_frames_read = 0; int frames_read; do { frames_read = sf_readf_float(fh, buffer, frame_count); for(int i = 0; (i < frames_read) && (total_frames_read < sample_limit); ++i) { data[total_frames_read++] = buffer[i * sf_info.channels + filechannel]; } } while( (frames_read > 0) && (total_frames_read < preloadedsize) && (total_frames_read < sample_limit) ); // set data size to total bytes read preloadedsize = total_frames_read; } sf_close(fh); this->data = data; this->size = size; this->preloadedsize = preloadedsize; is_loaded = true; } bool AudioFile::isLoaded() const { return is_loaded; } drumgizmo-0.9.14/src/latencyfilter.h0000644000076400017500000000262113077120603014354 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * latencyfilter.h * * Fri Jun 10 22:42:52 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "inputfilter.h" struct Settings; class LatencyFilter : public InputFilter { public: LatencyFilter(Settings& settings); bool filter(event_t& events, size_t pos) override; std::size_t getLatency() const override; private: //Settings& settings; }; drumgizmo-0.9.14/src/beatmapper.h0000644000076400017500000000272212677254311013642 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * beatmapper.h * * Fri Jul 25 11:17:42 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "instrument.h" #include "event.h" #include #define HISTORY_SIZE 200 class BeatMapper { public: BeatMapper(const Instrument& instrument); Sample* map(jack_nframes_t nframes); private: const Instrument& instrument; float hist[HISTORY_SIZE]; float C; size_t mindist; size_t last; }; drumgizmo-0.9.14/src/semaphore.h0000644000076400017500000000277312720112256013501 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * semaphore.h * * Sat Oct 8 17:44:13 CEST 2005 * Copyright 2005 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include struct semaphore_private_t; class Semaphore { public: Semaphore(std::size_t initial_count = 0); ~Semaphore(); void post(); //! Lock semaphore with timeout. //! \returns true if the semaphore was locked, false on timeout. bool wait(const std::chrono::milliseconds& timeout); void wait(); private: struct semaphore_private_t *prv{nullptr}; }; drumgizmo-0.9.14/src/midimapparser.cc0000644000076400017500000000262512704421442014507 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midimapparser.cc * * Mon Aug 8 16:55:30 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "midimapparser.h" void MidiMapParser::startTag(const std::string& name, const attr_t& attr) { if(name == "map") { if((attr.find("note") != attr.end()) && (attr.find("instr") != attr.end())) { midimap[std::stoi(attr.at("note"))] = attr.at("instr"); } } } drumgizmo-0.9.14/src/bytesizeparser.cc0000644000076400017500000000424613077120603014725 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * bytesize_parser.cc * * Sat Mar 4 18:00:12 CET 2017 * Copyright 2017 Goran Mekić * meka@tilda.center ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "bytesizeparser.h" #include #include static std::size_t suffixToSize(const char& suffix) { int size = 1; switch(suffix) { case 'k': size <<= 10; break; case 'M': size <<= 20; break; case 'G': size <<= 30; break; default: size = 0; break; } return size; } std::size_t byteSizeParser(const std::string& argument) { std::string::size_type suffix_index; std::size_t size; std::string suffix; bool error = false; if(argument.find('-') != std::string::npos) { error = true; } try { size = std::stoi(argument, &suffix_index); } catch(std::invalid_argument) { std::cerr << "Invalid argument for diskstreamsize" << std::endl; error = true; } catch(std::out_of_range) { std::cerr << "Number too big. Try using bigger suffix for diskstreamsize" << std::endl; error = true; } if(!error) { suffix = argument.substr(suffix_index); if (suffix.length() > 1) { error = true; } } if(!error && suffix.size() > 0) { std::size_t suffix_size = suffixToSize(suffix[0]); size *= suffix_size; } if(error) { return 0; } return size; } drumgizmo-0.9.14/src/channelmixer.cc0000644000076400017500000000551112677254311014334 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * channelmixer.cc * * Sun Oct 17 10:14:34 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "channelmixer.h" ChannelMixer::ChannelMixer(const Channels& c, const Channel* defc, float defg) : mix{} , defaultchannel{nullptr} , defaultgain{1.f} , channels(c) { setDefaults(defc, defg); } void ChannelMixer::setDefaults(const Channel* defc, float defg) { defaultchannel = defc; if(defc == nullptr && channels.size() > 0) { defaultchannel = &channels[0]; } defaultgain = defg; } MixerSettings& ChannelMixer::lookup(const InstrumentChannel& c) { auto mi = mix.find(&c); if(mi == mix.end()) { MixerSettings m; m.gain = defaultgain; m.output = defaultchannel; mix[&c] = m; return mix[&c]; } return mi->second; } #ifdef TEST_CHANNELMIXER // deps: channel.cc // cflags: // libs: #include "test.h" TEST_BEGIN; Channel ch1; Channel ch2; Channels channels; channels.push_back(ch1); channels.push_back(ch2); { ChannelMixer mixer(channels, nullptr, 1.0); InstrumentChannel ich; MixerSettings& m = mixer.lookup(&ich); TEST_EQUAL(m.output, &channels[0], "Default channel?"); TEST_EQUAL_FLOAT(m.gain, 1.0, "Default gain?"); } { ChannelMixer mixer(channels, &channels[1]); InstrumentChannel ich; MixerSettings& m = mixer.lookup(&ich); TEST_EQUAL(m.output, &channels[1], "Default channel?"); TEST_EQUAL_FLOAT(m.gain, 1.0, "Default gain?"); } { ChannelMixer mixer(channels, &channels[1]); InstrumentChannel ich; MixerSettings& m = mixer.lookup(&ich); TEST_EQUAL(m.output, &channels[1], "Default channel?"); TEST_EQUAL_FLOAT(m.gain, 1.0, "Default gain?"); m.output = &channels[0]; m.gain = 0.5; MixerSettings& m2 = mixer.lookup(&ich); TEST_EQUAL(m2.output, &channels[0], "Changed channel?"); TEST_EQUAL_FLOAT(m2.gain, 0.5, "Changed gain?"); } TEST_END; #endif /*TEST_CHANNELMIXER*/ drumgizmo-0.9.14/src/inputfilter.h0000644000076400017500000000356313077120603014062 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * inputfilter.h * * Tue Jun 14 20:42:52 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include //! An abstract filter component for the InputProcessor class filter chain. class InputFilter { public: virtual ~InputFilter() = default; //! Implement to filter a single event. //! \param[in,out] event The event being processed. The filter method //! might alter any of the event parameters. //! \param pos The absolute position of the buffer in which the event in //! event was received. Add event.pos to it to get the absolute position of //! the event in the stream. //! \return true to keep the event, false to discard it. virtual bool filter(event_t& event, std::size_t pos) = 0; //! Returns the filter delay in samples. //! Overload if needed. virtual std::size_t getLatency() const { return 0; } }; drumgizmo-0.9.14/src/audiocachefile.cc0000644000076400017500000000765412677254311014616 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * cacheaudiofile.cc * * Thu Dec 24 12:17:58 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audiocachefile.h" #include #include #include #include "audiocache.h" AudioCacheFile::AudioCacheFile(const std::string& filename, std::vector& read_buffer) : filename(filename) , read_buffer(read_buffer) { std::memset(&sf_info, 0, sizeof(SF_INFO)); fh = sf_open(filename.c_str(), SFM_READ, &sf_info); if(!fh) { ERR(audiofile,"SNDFILE Error (%s): %s\n", filename.c_str(), sf_strerror(fh)); return; } if(sf_info.frames == 0) { WARN(cache, "sf_info.frames == 0\n"); } } AudioCacheFile::~AudioCacheFile() { if(fh) { sf_close(fh); fh = nullptr; } } size_t AudioCacheFile::getSize() const { return sf_info.frames; } const std::string& AudioCacheFile::getFilename() const { return filename; } size_t AudioCacheFile::getChannelCount() const { return sf_info.channels; } void AudioCacheFile::readChunk(const CacheChannels& channels, size_t pos, size_t num_samples) { //assert(fh != nullptr); // File handle must never be nullptr if(!fh) { return; } if((int)pos > sf_info.frames) { WARN(cache, "pos (%d) > sf_info.frames (%d)\n", (int)pos, (int)sf_info.frames); return; } sf_seek(fh, pos, SEEK_SET); size_t size = sf_info.frames - pos; if(size > num_samples) { size = num_samples; } if((size * sf_info.channels) > read_buffer.size()) { read_buffer.resize(size * sf_info.channels); } size_t read_size = sf_readf_float(fh, read_buffer.data(), size); (void)read_size; for(auto it = channels.begin(); it != channels.end(); ++it) { size_t channel = it->channel; sample_t* data = it->samples; for (size_t i = 0; i < size; ++i) { data[i] = read_buffer[(i * sf_info.channels) + channel]; } } for(auto it = channels.begin(); it != channels.end(); ++it) { *(it->ready) = true; } } AudioCacheFile& AudioCacheFiles::getFile(const std::string& filename) { std::lock_guard lock(mutex); auto it = audiofiles.find(filename); if(it == audiofiles.end()) { // Construct a new AudioCacheFile in place. The in place construction is relevant. it = audiofiles.emplace(std::piecewise_construct, std::make_tuple(filename), std::make_tuple(filename, std::ref(read_buffer))).first; } auto& cache_audio_file = it->second; // Increase ref count. ++cache_audio_file.ref; return cache_audio_file; } void AudioCacheFiles::releaseFile(const std::string& filename) { std::lock_guard lock(mutex); auto it = audiofiles.find(filename); if(it == audiofiles.end()) { assert(false); // This should never happen! return; // not open } auto& audiofile = it->second; assert(audiofile.ref); // If ref is not > 0 it shouldn't be in the map. --audiofile.ref; if(audiofile.ref == 0) { audiofiles.erase(it); } } drumgizmo-0.9.14/src/configparser.h0000644000076400017500000000311212704420763014173 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * configparser.h * * Sat Jun 29 21:55:02 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "saxparser.h" class ConfigParser : public SAXParser { public: ConfigParser(); void characterData(const std::string& data) override; void startTag(const std::string& name, const attr_t& attr) override; void endTag(const std::string& name) override; std::string value(const std::string& name, const std::string& def = ""); private: std::unordered_map values; std::string* str; }; drumgizmo-0.9.14/src/audiocacheeventhandler.h0000644000076400017500000000614013103347731016177 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheeventhandler.h * * Sun Jan 3 19:57:55 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "thread.h" #include "semaphore.h" #include "audiocachefile.h" #include "audiocacheidmanager.h" class CacheEvent; class AudioCacheEventHandler : protected Thread { public: AudioCacheEventHandler(AudioCacheIDManager& id_manager); ~AudioCacheEventHandler(); //! Start event handler thread. //! This method blocks until the thread has actually been started. void start(); //! Stop event handler thread. //! This method blocks until the thread has actually been stopped. void stop(); //! Set thread status and start/stop thread accordingly. //! \param threaded Set to true to start thread or false to stop it. void setThreaded(bool threaded); //! Get current threaded status. bool isThreaded() const; //! Lock thread mutex. //! This methods are supplied to make this class lockable by std::lock_guard void lock(); //! Unlock thread mutex. //! This methods are supplied to make this class lockable by std::lock_guard void unlock(); void pushLoadNextEvent(AudioCacheFile* afile, size_t channel, size_t pos, sample_t* buffer, volatile bool* ready); void pushCloseEvent(cacheid_t id); void setChunkSize(size_t chunksize); size_t getChunkSize() const; AudioCacheFile& openFile(const std::string& filename); protected: void clearEvents(); void handleLoadNextEvent(CacheEvent& cache_event); //! Lock the mutex and calls handleCloseCache void handleCloseEvent(CacheEvent& cache_event); //! Close decrease the file ref and release the cache id. void handleCloseCache(cacheid_t id); void handleEvent(CacheEvent& cache_event); // From Thread void thread_main() override; void pushEvent(CacheEvent& cache_event); AudioCacheFiles files; std::mutex mutex; std::list eventqueue; std::atomic threaded{false}; Semaphore sem; Semaphore sem_run; bool running{false}; AudioCacheIDManager& id_manager; size_t chunksize{1024}; }; drumgizmo-0.9.14/src/path.h0000644000076400017500000000237112704421442012446 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * path.h * * Tue May 3 14:42:46 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include //! \returns path component of full filename with path. std::string getPath(const std::string& file); drumgizmo-0.9.14/src/events.h0000644000076400017500000000445013103350461013012 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * event.h * * Sat Sep 18 22:02:16 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include "audiofile.h" #include "audio.h" #include "audiocache.h" typedef unsigned int timepos_t; class Event { public: virtual ~Event() { } typedef enum { sample } type_t; virtual type_t getType() const = 0; channel_t channel; timepos_t offset; }; #define NO_RAMPDOWN -1 class EventSample : public Event { public: EventSample(channel_t c, float g, AudioFile* af, const std::string& grp, void* instr) { cache_id = CACHE_NOID; channel = c; gain = g; t = 0; file = af; group = grp; instrument = instr; rampdown = NO_RAMPDOWN; ramp_start = 0; } Event::type_t getType() const { return Event::sample; } cacheid_t cache_id; sample_t* buffer; size_t buffer_size; float gain; unsigned int t; AudioFile* file; std::string group; void* instrument; int rampdown; int ramp_start; }; class EventQueue { public: void post(Event* event, timepos_t time); Event* take(timepos_t time); bool hasEvent(timepos_t time); size_t getSize() const { return queue.size(); } private: std::multimap queue; std::mutex mutex; }; drumgizmo-0.9.14/src/saxparser.cc0000644000076400017500000000701012715562615013665 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * saxparser.cc * * Tue Jul 22 16:26:22 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "saxparser.h" #include #include #include SAXParser::SAXParser() { parser = XML_ParserCreate(nullptr); if(!parser) { ERR(sax, "Couldn't allocate memory for parser\n"); // throw Exception(...); TODO return; } XML_SetUserData(parser, this); XML_UseParserAsHandlerArg(parser); XML_SetElementHandler(parser, SAXParser::startHandler, SAXParser::endHandler); XML_SetCharacterDataHandler(parser, SAXParser::characterHandler); } SAXParser::~SAXParser() { XML_ParserFree(parser); } int SAXParser::parseFile(const std::string& filename) { if(filename.empty()) { return 0; } std::ifstream file(filename, std::ifstream::in); if(!file.is_open()) { return 1; } std::stringstream ss; ss << file.rdbuf(); std::string str = ss.str(); return parseString(str, filename); } int SAXParser::parseString(const std::string& str, const std::string& xml_source_name) { DEBUG(sax, "parse(buffer %d bytes)\n", (int)str.length()); if(!XML_Parse(parser, str.c_str(), str.length(), true)) { parseError(str, XML_ErrorString(XML_GetErrorCode(parser)), xml_source_name, (int)XML_GetCurrentLineNumber(parser)); return 1; } return 0; } void SAXParser::parseError(const std::string& buf, const std::string& error, const std::string& xml_source_name, std::size_t lineno) { std::cerr << "SAXParser error trying to parse from source: " << xml_source_name << "\n"; std::cerr << "At line " << lineno << ": " << error << "\n"; std::cerr << "Buffer " << buf.size() << " bytes: \n[\n"; std::cerr << buf; std::cerr << "\n]" << std::endl; } void SAXParser::characterHandler(void* parser, const XML_Char* cData, int len) { SAXParser* sax_parser = (SAXParser*)XML_GetUserData(parser); std::string chars(cData, len); sax_parser->characterData(chars); } void SAXParser::startHandler(void* parser, const char* el, const char** attr) { SAXParser* sax_parser = (SAXParser*)XML_GetUserData(parser); // Convert to comfy C++ values... attr_t attributes; while(*attr) { std::string at_name = *attr++; std::string at_value = *attr++; attributes.emplace(at_name, at_value); } sax_parser->startTag(std::string(el), attributes); } void SAXParser::endHandler(void* parser, const char* el) { SAXParser* sax_parser = (SAXParser*)XML_GetUserData(parser); sax_parser->endTag(std::string(el)); } drumgizmo-0.9.14/src/syncedsettings.h0000644000076400017500000000445712704421442014567 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * syncedsettings.h * * Thu Mar 31 09:23:27 CEST 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include template class Group; template class Accessor { private: std::lock_guard lock; public: Accessor(Group& parent) : lock{parent.mutex} , data(parent.data) { } T& data; }; template class Group { private: friend class Accessor; mutable std::mutex mutex; T data; public: Group() : mutex{} , data{} { } Group(Group const& other) : mutex{} , data{} { std::lock_guard lock{other.mutex}; data = other.data; } Group(Group&& other) : mutex{} , data{} { std::lock_guard lock{other.mutex}; std::swap(data, other.data); } Group& operator=(const Group& other) { if (*this != &other) { std::lock_guard lock{mutex}; std::lock_guard lock2{other.mutex}; data = other.data; } return *this; } Group& operator=(Group&& other) { if (*this != &other) { std::lock_guard lock{mutex}; std::lock_guard lock2{other.mutex}; std::swap(data, other.data); } return *this; } operator T() const { std::lock_guard lock{mutex}; return data; } }; drumgizmo-0.9.14/src/atomic.h0000644000076400017500000000714113103347674012776 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * atomic.h * * Wed Mar 23 09:15:05 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include template class Atomic; // use std::atomic if possible template class Atomic::value>::type> : public std::atomic { public: // inherit methods using std::atomic::atomic; using std::atomic::operator=; }; // else work around it using a mutex template class Atomic::value>::type> { public: using self_type = Atomic::value>::type>; Atomic() : data{} , mutex{} { } Atomic(T data) : data{std::move(data)} , mutex{} { } Atomic(self_type const & other) : data{} , mutex{} { std::lock_guard lock{other.mutex}; data = other.data; } Atomic(self_type&& other) : data{} , mutex{} { std::lock_guard lock{other.mutex}; std::swap(data, other.data); } T operator=(T data) { std::lock_guard lock{mutex}; this->data = std::move(data); return this->data; } operator T() const { return load(); } bool is_lock_free() const { return false; } void store(T data) { std::lock_guard lock{mutex}; this->data = std::move(data); } T load() const { std::lock_guard lock{mutex}; return data; } T exchange(T data){ std::lock_guard lock{mutex}; std::swap(data, this->data); return data; } bool operator==(const T& other) const { std::lock_guard lock{mutex}; return other == data; } bool operator!=(const T& other) const { std::lock_guard lock{mutex}; return !(other == data); } bool operator==(const Atomic& other) const { std::lock_guard lock{mutex}; return other.load() == data; } bool operator!=(const Atomic& other) const { std::lock_guard lock{mutex}; return !(other.load() == data); } private: T data; mutable std::mutex mutex; }; //! Getter utility class. template class SettingRef { public: SettingRef(Atomic& value) : value(value) { // string isn't lock free either assert((std::is_same::value || value.is_lock_free())); } bool hasChanged() { T tmp = cache; cache.exchange(value); if(firstAccess) { firstAccess = false; return true; } return cache != tmp; } T getValue() const { return cache; } private: bool firstAccess{true}; Atomic& value; Atomic cache; }; drumgizmo-0.9.14/src/drumkitparser.cc0000644000076400017500000001160013077120603014536 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkitparser.cc * * Tue Jul 22 16:24:59 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumkitparser.h" #include #include #include #include "cpp11fix.h" #include "instrumentparser.h" #include "path.h" #include "drumgizmo.h" DrumKitParser::DrumKitParser(Settings& settings, DrumKit& k, Random& rand) : kit(k) , refs(REFSFILE) , settings(settings) , rand(rand) { } int DrumKitParser::parseFile(const std::string& filename) { auto edited_filename(filename); if(refs.load()) { if((filename.size() > 1) && (filename[0] == '@')) { edited_filename = refs.getValue(filename.substr(1)); } } else { ERR(drumkitparser, "Error reading refs.conf"); } path = getPath(edited_filename); auto result = SAXParser::parseFile(edited_filename); if(result == 0) { kit._file = edited_filename; } return result; } void DrumKitParser::startTag(const std::string& name, const attr_t& attr) { if(name == "drumkit") { if(attr.find("name") != attr.end()) { kit._name = attr.at("name"); } if(attr.find("samplerate") != attr.end()) { kit._samplerate = std::stoi(attr.at("samplerate")); } else { // If 'samplerate' attribute is missing, assume 44k1Hz // TODO: Ask instrument what samplerate is in the audiofiles... kit._samplerate = 44100; } if(attr.find("description") != attr.end()) { kit._description = attr.at("description"); } if(attr.find("version") != attr.end()) { try { kit._version = VersionStr(attr.at("version")); } catch(const char *err) { ERR(kitparser, "Error parsing version number: %s, using 1.0\n", err); kit._version = VersionStr(1,0,0); } } else { WARN(kitparser, "Missing version number, assuming 1.0\n"); kit._version = VersionStr(1,0,0); } } if(name == "channels") { } if(name == "channel") { if(attr.find("name") == attr.end()) { ERR(kitparser, "Missing channel name.\n"); return; } Channel c(attr.at("name")); c.num = kit.channels.size(); kit.channels.push_back(c); } if(name == "instruments") { } if(name == "instrument") { if(attr.find("name") == attr.end()) { ERR(kitparser, "Missing name in instrument tag.\n"); return; } if(attr.find("file") == attr.end()) { ERR(kitparser, "Missing file in instrument tag.\n"); return; } instr_name = attr.at("name"); instr_file = attr.at("file"); if(attr.find("group") != attr.end()) { instr_group = attr.at("group"); } else { instr_group = ""; } } if(name == "channelmap") { if(attr.find("in") == attr.end()) { ERR(kitparser, "Missing 'in' in channelmap tag.\n"); return; } if(attr.find("out") == attr.end()) { ERR(kitparser, "Missing 'out' in channelmap tag.\n"); return; } channelmap[attr.at("in")] = attr.at("out"); } } void DrumKitParser::endTag(const std::string& name) { if(name == "instrument") { auto ptr = std::make_unique(settings, rand); ptr->setGroup(instr_group); InstrumentParser parser(*ptr); parser.parseFile(path + "/" + instr_file); // Transfer ownership to the DrumKit object. kit.instruments.push_back(std::move(ptr)); // Assign kit channel numbers to instruments channels. for (auto& c: parser.channellist) { std::string cname = c->name; if(channelmap.find(cname) != channelmap.end()) { cname = channelmap[cname]; } for(std::size_t cnt = 0; cnt < kit.channels.size(); cnt++) { if(kit.channels[cnt].name == cname) { c->num = kit.channels[cnt].num; } } if(c->num == NO_CHANNEL) { ERR(kitparser, "Missing channel '%s' in instrument '%s'\n", c->name.c_str(), ptr->getName().c_str()); } else { /* DEBUG(kitparser, "Assigned channel '%s' to number %d in instrument '%s'\n", c->name.c_str(), c->num, i.name().c_str()); */ } } channelmap.clear(); } } drumgizmo-0.9.14/src/path.cc0000644000076400017500000000307512704421442012606 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * path.cc * * Tue May 3 14:42:47 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "path.h" #ifndef __MINGW32__ #include #endif/*__MINGW32__*/ #include #include std::string getPath(const std::string& file) { std::string path; #ifdef __MINGW32__ char drive[_MAX_DRIVE]; char dir[_MAX_DIR]; _splitpath(file.c_str(), drive, dir, NULL, NULL); path = std::string(drive) + dir; #else // POSIX char* buffer = strdup(file.c_str()); path = dirname(buffer); free(buffer); #endif return path; } drumgizmo-0.9.14/src/instrumentparser.cc0000644000076400017500000001262213077120603015274 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * instrumentparser.cc * * Wed Mar 9 13:22:24 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "instrumentparser.h" #include #include #include #include "cpp11fix.h" #include "path.h" #include "nolocale.h" InstrumentParser::InstrumentParser(Instrument& instrument) : instrument(instrument) { } int InstrumentParser::parseFile(const std::string& filename) { path = getPath(filename); return SAXParser::parseFile(filename); } void InstrumentParser::startTag(const std::string& name, const attr_t& attr) { if(name == "instrument") { if(attr.find("name") != attr.end()) { instrument._name = attr.at("name"); } if(attr.find("description") != attr.end()) { instrument._description = attr.at("description"); } if(attr.find("version") != attr.end()) { try { instrument.version = VersionStr(attr.at("version")); } catch(const char* err) { ERR(instrparser, "Error parsing version number: %s, using 1.0\n", err); instrument.version = VersionStr(1,0,0); } } else { WARN(instrparser, "Missing version number, assuming 1.0\n"); instrument.version = VersionStr(1,0,0); } } if(name == "samples") { } if(name == "sample") { if(attr.find("name") == attr.end()) { ERR(instrparser,"Missing required attribute 'name'.\n"); return; } float power; if(attr.find("power") == attr.end()) { power = -1; } else { power = atof_nol(attr.at("power").c_str()); DEBUG(instrparser, "Instrument power set to %f\n", power); } // TODO get rid of new or delete it properly sample = new Sample(attr.at("name"), power); } if(name == "audiofile") { if(sample == nullptr) { ERR(instrparser,"Missing Sample!\n"); return; } if(attr.find("file") == attr.end()) { ERR(instrparser,"Missing required attribute 'file'.\n"); return; } if(attr.find("channel") == attr.end()) { ERR(instrparser,"Missing required attribute 'channel'.\n"); return; } std::size_t filechannel = 1; // default, override with optional attribute if(attr.find("filechannel") != attr.end()) { filechannel = std::stoi(attr.at("filechannel")); if(filechannel < 1) { ERR(instrparser,"Invalid value for attribute 'filechannel'.\n"); filechannel = 1; } } filechannel = filechannel - 1; // 1-based in file but zero-based internally. auto audio_file = std::make_unique(path + "/" + attr.at("file"), filechannel); // note: memory leak! the channels are never released // once I replaced this using unique_ptr, the channels were // destroyed when the InstrumentParser went out of scope // (see drumkitparser.cc, where the InstrumentParser lives in // local scope). // so.. we cannot replace this using smart ptr until we decided // the ownership semantics for instances InstrumentChannel InstrumentChannel *instrument_channel = new InstrumentChannel(attr.at("channel")); channellist.push_back(instrument_channel); sample->addAudioFile(instrument_channel, audio_file.get()); // Transfer audio_file ownership to the instrument. instrument.audiofiles.push_back(std::move(audio_file)); } if(name == "velocities") { } if(name == "velocity") { if(attr.find("lower") == attr.end()) { ERR(instrparser,"Missing required attribute 'lower'.\n"); return; } if(attr.find("upper") == attr.end()) { ERR(instrparser,"Missing required attribute 'upper'.\n"); return; } lower = atof_nol(attr.at("lower").c_str()); upper = atof_nol(attr.at("upper").c_str()); } if(name == "sampleref") { if(attr.find("name") == attr.end()) { ERR(instrparser,"Missing required attribute 'name'.\n"); return; } Sample* sample_ref = nullptr; for(auto& sample : instrument.samplelist) { if(sample->name == attr.at("name")) { sample_ref = sample; break; } } if(sample_ref == nullptr) { ERR(instrparser,"Samplref pointed at non-existing sample.\n"); return; } if(instrument.version == VersionStr("1.0")) { // Old "velocity group" algorithm needs this instrument.addSample(lower, upper, sample_ref); } } } void InstrumentParser::endTag(const std::string& name) { if(name == "sample") { if(sample == nullptr) { ERR(instrparser,"Missing Sample.\n"); return; } instrument.samplelist.push_back(sample); sample = nullptr; } if(name == "instrument") { instrument.finalise(); } } drumgizmo-0.9.14/src/instrument.cc0000644000076400017500000000516313077120603014061 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * instrument.cc * * Tue Jul 22 17:14:20 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "instrument.h" #include #include "sample.h" Instrument::Instrument(Settings& settings, Random& rand) : settings(settings) , rand(rand) , powerlist(rand) { DEBUG(instrument, "new %p\n", this); mod = 1.0; lastpos = 0; magic = this; } Instrument::~Instrument() { magic = nullptr; DEBUG(instrument, "delete %p\n", this); } bool Instrument::isValid() const { return this == magic; } Sample* Instrument::sample(level_t level, size_t pos) { Sample *sample = nullptr; if(version >= VersionStr("2.0")) { // Version 2.0 sample = powerlist.get(level * mod); } else { // Version 1.0 std::vector s = samples.get(level * mod); if(s.size() == 0) { return nullptr; } sample = rand.choose(s); } return sample; } void Instrument::addSample(level_t a, level_t b, Sample* s) { samples.insert(a, b, s); } void Instrument::finalise() { if(version >= VersionStr("2.0")) { std::vector::iterator s = samplelist.begin(); while(s != samplelist.end()) { powerlist.add(*s); s++; } powerlist.finalise(); } } std::string Instrument::getName() const { return _name; } std::string Instrument::getDescription() const { return _description; } std::string Instrument::getGroup() const { return _group; } void Instrument::setGroup(const std::string& g) { _group = g; } std::size_t Instrument::getNumberOfFiles() const { // Note: Each AudioFile instance contains just a single channel even for // multi-channel files. return audiofiles.size(); } drumgizmo-0.9.14/src/platform.h0000644000076400017500000000367613077120603013346 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * platform.h * * Fri May 20 18:46:17 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once //! The DG platform types: #define DG_PLATFORM_LINUX 1 //!< Platform is Linux based. #define DG_PLATFORM_WINDOWS 2 //!< Platform is Windows based #define DG_PLATFORM_OSX 3 //!< Platform is MacOSX based. #define DG_PLATFORM_FREEBSD 4 //!< Platform is FreeBSD based. #define DG_PLATFORM_UNIX 5 //!< Platform is Unix based. #ifdef __linux__ #define DG_PLATFORM DG_PLATFORM_LINUX #elif _WIN32 #define DG_PLATFORM DG_PLATFORM_WINDOWS #define WIN32_LEAN_AND_MEAN #include #elif __APPLE__ #define DG_PLATFORM DG_PLATFORM_OSX #elif __FreeBSD__ #define DG_PLATFORM DG_PLATFORM_FREEBSD #elif __unix__ // All other unices (*BSD etc) #define DG_PLATFORM DG_PLATFORM_UNIX #endif #ifndef DG_PLATFORM #error "Platform not defined!" #endif #if defined(_POSIX_VERSION) // POSIX #define DG_POSIX #endif drumgizmo-0.9.14/src/thread.cc0000644000076400017500000000336613077120604013124 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * thread.cc * * Tue Jan 24 08:11:37 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "thread.h" #include Thread::Thread() {} Thread::~Thread() {} void Thread::run() { DEBUG(thread, "Thread::run()\n"); #if DG_PLATFORM == DG_PLATFORM_WINDOWS tid = CreateThread(NULL, 0, thread_run, this, 0, NULL); #else pthread_create(&tid, NULL, thread_run, this); #endif } void Thread::wait_stop() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS WaitForSingleObject(tid, INFINITE); #else pthread_join(tid, NULL); #endif } #if DG_PLATFORM == DG_PLATFORM_WINDOWS DWORD WINAPI #else void* #endif Thread::thread_run(void *data) { DEBUG(thread, "Thread run\n"); Thread *t = (Thread*)data; t->thread_main(); return 0; } drumgizmo-0.9.14/src/semaphore.cc0000644000076400017500000001130313077120604013626 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * semaphore.cc * * Sat Oct 8 17:44:13 CEST 2005 * Copyright 2005 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "semaphore.h" #include #include #include #include #include #include #include "platform.h" #if DG_PLATFORM != DG_PLATFORM_WINDOWS // Make sure we don't include /this/ file's header... #include <../include/semaphore.h> #include #include #include #endif #if DG_PLATFORM == DG_PLATFORM_OSX //#include #include #endif struct semaphore_private_t { #if DG_PLATFORM == DG_PLATFORM_WINDOWS HANDLE semaphore; #elif DG_PLATFORM == DG_PLATFORM_OSX MPSemaphoreID semaphore; #else sem_t semaphore; #endif }; Semaphore::Semaphore(std::size_t initial_count) { prv = new struct semaphore_private_t(); #if DG_PLATFORM == DG_PLATFORM_WINDOWS prv->semaphore = CreateSemaphore(nullptr, // default security attributes initial_count, std::numeric_limits::max(), nullptr); // unnamed semaphore #elif DG_PLATFORM == DG_PLATFORM_OSX MPCreateSemaphore(std::numeric_limits::max(), initial_count, &prv->semaphore); #else const int pshared = 0; memset(&prv->semaphore, 0, sizeof(sem_t)); sem_init(&prv->semaphore, pshared, initial_count); #endif } Semaphore::~Semaphore() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS CloseHandle(prv->semaphore); #elif DG_PLATFORM == DG_PLATFORM_OSX MPDeleteSemaphore(prv->semaphore); #else sem_destroy(&prv->semaphore); #endif delete prv; } void Semaphore::post() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS ReleaseSemaphore(prv->semaphore, 1, nullptr); #elif DG_PLATFORM == DG_PLATFORM_OSX MPSignalSemaphore(prv->semaphore); #else sem_post(&prv->semaphore); #endif } bool Semaphore::wait(const std::chrono::milliseconds& timeout) { #if DG_PLATFORM == DG_PLATFORM_WINDOWS DWORD ret = WaitForSingleObject(prv->semaphore, timeout.count()); if(ret == WAIT_TIMEOUT) { return false; } assert(ret == WAIT_OBJECT_0); #elif DG_PLATFORM == DG_PLATFORM_OSX auto ret = MPWaitOnSemaphore(prv->semaphore, kDurationMillisecond * timeout.count()); if(ret == kMPTimeoutErr) { return false; } #else struct timespec ts; clock_gettime(CLOCK_REALTIME, &ts); // Add timeout time_t seconds = (time_t)(timeout.count() / 1000); ts.tv_sec += seconds; ts.tv_nsec += (long)((timeout.count() % 1000) * 1000000); // Make sure we don't overflow the nanoseconds. constexpr long nsec = 1000000000LL; if(ts.tv_nsec >= nsec) { ts.tv_nsec -= nsec; ts.tv_sec += 1; } again: int ret = sem_timedwait(&prv->semaphore, &ts); if(ret < 0) { if(errno == EINTR) { // The timed wait were interrupted prematurely so we need to wait some // more. To prevent an infinite loop-like behaviour we make a short sleep. std::this_thread::sleep_for(std::chrono::milliseconds(1)); goto again; } if(errno == ETIMEDOUT) { return false; } perror("sem_timedwait()"); assert(false); } #endif return true; } void Semaphore::wait() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS WaitForSingleObject(prv->semaphore, INFINITE); #elif DG_PLATFORM == DG_PLATFORM_OSX MPWaitOnSemaphore(prv->semaphore, kDurationForever); #else again: int ret = sem_wait(&prv->semaphore); if(ret < 0) { if(errno == EINTR) { // The wait were interrupted prematurely so we need to wait again // To prevent an infinite loop-like behaviour we make a short sleep. std::this_thread::sleep_for(std::chrono::milliseconds(1)); goto again; } perror("sem_wait()"); assert(false); } #endif } drumgizmo-0.9.14/src/drumkitparser.h0000644000076400017500000000345313077120603014407 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkitparser.h * * Tue Jul 22 16:24:58 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "saxparser.h" #include "drumkit.h" #include "configfile.h" class DrumKitParser : public SAXParser { public: DrumKitParser(Settings& setting, DrumKit& kit, Random& rand); virtual ~DrumKitParser() = default; virtual int parseFile(const std::string& filename) override; protected: void startTag(const std::string& name, const attr_t& attributes) override; void endTag(const std::string& name) override; private: DrumKit& kit; std::string path; std::unordered_map channelmap; std::string instr_file; std::string instr_name; std::string instr_group; ConfigFile refs; Settings& settings; Random& rand; }; drumgizmo-0.9.14/src/random.h0000644000076400017500000000416713077120603012776 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * random.h * * Wed Mar 23 19:17:24 CET 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include class Random { public: Random(); Random(unsigned int seed); void setSeed(unsigned int seed); //! \return random int in range [, ]. int intInRange(int lower_bound, int upper_bound); //! \return random float in range [, ]. float floatInRange(float lower_bound, float upper_bound); //! \return random float drawn from a normal distribution with mean //! and standard deviation . float normalDistribution(float mean, float stddev); //! \return uniformly at random chosen element from . template T& choose(std::vector& vec); private: // The std::default_random_engine of the gcc libstdc++ library is // minstd_rand0, so make sure we use that all platforms regardless of which // stdlib we link with. std::minstd_rand0 generator; float generateFloat(); }; template T& Random::choose(std::vector& vec) { return vec[intInRange(0, vec.size() - 1)]; } drumgizmo-0.9.14/src/audio.h0000644000076400017500000000223112677254311012616 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audio.h * * Thu Sep 16 20:15:45 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include drumgizmo-0.9.14/src/audiooutputengine.h0000644000076400017500000000423113077120603015256 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiooutputengine.h * * Thu Sep 16 10:27:01 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "channel.h" class AudioOutputEngine { public: virtual ~AudioOutputEngine() = default; virtual bool init(const Channels& channels) = 0; virtual void setParm(const std::string& parm, const std::string& value) = 0; virtual bool start() = 0; virtual void stop() = 0; virtual void pre(std::size_t nsamples) = 0; virtual void run(int ch, sample_t *samples, std::size_t nsamples) = 0; virtual void post(std::size_t nsamples) = 0; //! Overload this method to use internal buffer directly. virtual sample_t *getBuffer(int ch) const { return NULL; } //! Overload this method to force engine to use different buffer size. virtual std::size_t getBufferSize() const { return 1024; } virtual std::size_t getSamplerate() const { return 44100; } virtual bool isFreewheeling() const = 0; //! Overload this method to get notification of latency changes. //! \param latency The new latency in samples. virtual void onLatencyChange(std::size_t latency) {} }; drumgizmo-0.9.14/src/inputprocessor.cc0000644000076400017500000001105113077120603014741 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * inputprocessor.cc * * Sat Apr 23 20:39:30 CEST 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "inputprocessor.h" #include #include "hugin.hpp" #include "instrument.h" #include "staminafilter.h" #include "latencyfilter.h" #include "cpp11fix.h" InputProcessor::InputProcessor(Settings& settings, DrumKit& kit, std::list* activeevents) : kit(kit) , activeevents(activeevents) , is_stopping(false) { // Build filter list filters.emplace_back(std::make_unique(settings)); filters.emplace_back(std::make_unique(settings)); } bool InputProcessor::process(std::vector& events, std::size_t pos, double resample_ratio) { for(auto& event: events) { if(event.type == TYPE_ONSET) { if(!processOnset(event, pos, resample_ratio)) { continue; } } if(!processStop(event)) { return false; } } return true; } std::size_t InputProcessor::getLatency() const { std::size_t latency = 0; for(const auto& filter : filters) { latency += filter->getLatency(); } return latency; } bool InputProcessor::processOnset(event_t& event, std::size_t pos, double resample_ratio) { if(!kit.isValid()) { return false; } std::size_t ev_instr = event.instrument; Instrument* instr = nullptr; if(ev_instr < kit.instruments.size()) { instr = kit.instruments[ev_instr].get(); } if(instr == nullptr || !instr->isValid()) { ERR(inputprocessor, "Missing Instrument %d.\n", (int)ev_instr); return false; } if(instr->getGroup() != "") { // Add event to ramp down all existing events with the same groupname. for(Channel& ch: kit.channels) { for(Event* event: activeevents[ch.num]) { if(event->getType() == Event::sample) { auto& event_sample = *static_cast(event); if(event_sample.group == instr->getGroup() && event_sample.instrument != instr) { event_sample.rampdown = 3000; // Ramp down 3000 samples // TODO: This must be configurable at some point... // ... perhaps even by instrument (ie. in the xml file) event_sample.ramp_start = event_sample.rampdown; } } } } } for(auto& filter : filters) { // This line might change the 'event' variable bool keep = filter->filter(event, event.offset + pos); if(!keep) { return false; // Skip event completely } } Sample* sample = instr->sample(event.velocity, event.offset + pos); if(sample == nullptr) { ERR(inputprocessor, "Missing Sample.\n"); return false; } for(Channel& ch: kit.channels) { AudioFile* af = sample->getAudioFile(&ch); if(af == nullptr || !af->isValid()) { //DEBUG(inputprocessor, "Missing AudioFile.\n"); } else { //DEBUG(inputprocessor, "Adding event %d.\n", event.offset); Event* evt = new EventSample(ch.num, 1.0, af, instr->getGroup(), instr); evt->offset = (event.offset + pos) * resample_ratio; activeevents[ch.num].push_back(evt); } } return true; } bool InputProcessor::processStop(event_t& event) { if(event.type == TYPE_STOP) { is_stopping = true; } if(is_stopping) { // Count the number of active events. int num_active_events = 0; for(auto& ch: kit.channels) { num_active_events += activeevents[ch.num].size(); } if(num_active_events == 0) { // No more active events - now we can stop the engine. return false; } } return true; } drumgizmo-0.9.14/src/cpp11fix.h0000644000076400017500000000252012676564357013166 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * cpp11fix.h * * Mi 20. Jan 10:22:36 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include namespace std { template std::unique_ptr make_unique(Args&& ...args) { return std::unique_ptr{new T{std::forward(args)...}}; } } // std drumgizmo-0.9.14/src/inputprocessor.h0000644000076400017500000000360313077120603014607 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * inputprocessor.h * * Sat Apr 23 20:39:30 CEST 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "drumkit.h" #include "events.h" #include "inputfilter.h" struct Settings; class InputProcessor { public: InputProcessor(Settings& settings, DrumKit& kit, std::list* activeevents); bool process(std::vector& events, std::size_t pos, double resample_ratio); std::size_t getLatency() const; private: DrumKit& kit; std::list* activeevents; bool is_stopping; ///< Is set to true when a TYPE_STOP event has been seen. bool processOnset(event_t& event, std::size_t pos, double resample_ratio); bool processStop(event_t& event); std::vector> filters; }; drumgizmo-0.9.14/src/drumkit.cc0000644000076400017500000000365513077120603013334 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkit.cc * * Wed Mar 9 15:27:27 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumkit.h" DrumKit::DrumKit() { magic = this; } DrumKit::~DrumKit() { magic = NULL; clear(); } void DrumKit::clear() { instruments.clear(); channels.clear(); _name = ""; _description = ""; _samplerate = 44100; } bool DrumKit::isValid() const { return this == magic; } std::string DrumKit::getFile() const { return _file; } std::string DrumKit::getName() const { return _name; } std::string DrumKit::getDescription() const { return _description; } VersionStr DrumKit::getVersion() const { return _version; } std::size_t DrumKit::getSamplerate() const { return _samplerate; } std::size_t DrumKit::getNumberOfFiles() const { std::size_t number_of_files = 0; for(const auto & instrument : instruments) { number_of_files += instrument->getNumberOfFiles(); } return number_of_files; } drumgizmo-0.9.14/src/saxparser.h0000644000076400017500000000434013022063756013524 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * saxparser.h * * Tue Jul 22 16:26:21 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include class SAXParser { public: SAXParser(); virtual ~SAXParser(); //! Parses the data from the file. virtual int parseFile(const std::string& filename); //! Parses all the data in the buffer. virtual int parseString(const std::string& str, const std::string& xml_source_name = ""); protected: using attr_t = std::unordered_map; virtual void characterData(const std::string& data) {} virtual void startTag(const std::string& name, const attr_t& attr) {} virtual void endTag(const std::string& name) {} virtual void parseError(const std::string& buf, const std::string& error, const std::string& xml_source_name, std::size_t lineno); private: XML_Parser parser; std::string filename; static void characterHandler(void* parser, const XML_Char* cData, int len); static void startHandler(void* parser, const char* el, const char** attr); static void endHandler(void* parser, const char* el); }; drumgizmo-0.9.14/src/drumkitloader.cc0000644000076400017500000001704413106047433014522 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkitloader.cc * * Thu Jan 17 20:54:14 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumkitloader.h" #include #include #include "drumkitparser.h" #include "drumgizmo.h" #include "audioinputenginemidi.h" DrumKitLoader::DrumKitLoader(Settings& settings, DrumKit& kit, AudioInputEngine& ie, Resamplers& resamplers, Random& rand, AudioCache& audio_cache) : settings(settings) , getter(settings) , kit(kit) , ie(ie) , resamplers(resamplers) , rand(rand) , audio_cache(audio_cache) { } DrumKitLoader::~DrumKitLoader() { assert(!running); } void DrumKitLoader::init() { run(); run_semaphore.wait(); // Wait for the thread to actually start. } void DrumKitLoader::deinit() { if(running) { framesize_semaphore.post(); { std::lock_guard guard(mutex); load_queue.clear(); } running = false; semaphore.post(); wait_stop(); } } bool DrumKitLoader::loadkit(const std::string& file) { settings.drumkit_load_status.store(LoadStatus::Idle); settings.number_of_files_loaded.store(0); if(file == "") { if (getter.reload_counter.getValue() != 0) { settings.drumkit_load_status.store(LoadStatus::Error); // Show a full bar settings.number_of_files.store(1); settings.number_of_files_loaded.store(1); } return false; } DEBUG(drumgizmo, "loadkit(%s)\n", file.c_str()); // Remove all queue AudioFiles from loader before we actually delete them. skip(); // Delete all Channels, Instruments, Samples and AudioFiles. kit.clear(); settings.drumkit_load_status.store(LoadStatus::Loading); DrumKitParser parser(settings, kit, rand); if(parser.parseFile(file)) { ERR(drumgizmo, "Drumkit parser failed: %s\n", file.c_str()); settings.drumkit_load_status.store(LoadStatus::Error); // Show a full bar settings.number_of_files.store(1); settings.number_of_files_loaded.store(1); return false; } // Check if there is enough free RAM to load the drumkit. if(!memchecker.enoughFreeMemory(kit)) { printf("WARNING: " "There doesn't seem to be enough RAM available to load the kit.\n" "Trying to load it anyway...\n"); } // Put some information about the kit into the settings settings.drumkit_name = kit.getName(); settings.drumkit_description = kit.getDescription(); settings.drumkit_version = kit.getVersion(); settings.drumkit_samplerate = kit.getSamplerate(); loadKit(&kit); #ifdef WITH_RESAMPLER resamplers.setup(kit.getSamplerate(), settings.samplerate.load()); #endif/*WITH_RESAMPLER*/ settings.resamplig_recommended.store(resamplers.isActive()); DEBUG(loadkit, "loadkit: Success\n"); return true; } void DrumKitLoader::loadKit(DrumKit *kit) { // std::lock_guard guard(mutex); DEBUG(loader, "Create AudioFile queue from DrumKit\n"); auto cache_limit = settings.disk_cache_upper_limit.load(); auto cache_enable = settings.disk_cache_enable.load(); DEBUG(loader, "cache_enable: %s\n", cache_enable?"true":"false"); if(cache_enable) { auto number_of_files = kit->getNumberOfFiles(); auto cache_limit_per_file = cache_limit / number_of_files; assert(framesize != 0); preload_samples = cache_limit_per_file / sizeof(sample_t); if(preload_samples < 4096) { preload_samples = 4096; } DEBUG(loader, "cache_limit: %lu, number_of_files: %lu," " cache_limit_per_file: %lu, preload_samples: %lu\n", (unsigned long)cache_limit, (unsigned long)number_of_files, (unsigned long)cache_limit_per_file, (unsigned long)preload_samples); } else { preload_samples = std::numeric_limits::max(); } settings.number_of_files_loaded.store(0); // Count total number of files that need loading: settings.number_of_files.store(0); for(auto& instr_ptr: kit->instruments) { settings.number_of_files.fetch_add(instr_ptr->audiofiles.size()); } // Now actually queue them for loading: for(auto& instr_ptr: kit->instruments) { for(auto& audiofile: instr_ptr->audiofiles) { load_queue.push_back(audiofile.get()); } } DEBUG(loader, "Queued %d (size: %d) AudioFiles for loading.\n", (int)settings.number_of_files.load(), (int)load_queue.size()); audio_cache.updateChunkSize(kit->channels.size()); semaphore.post(); // Start loader loop. } void DrumKitLoader::skip() { std::lock_guard guard(mutex); load_queue.clear(); } void DrumKitLoader::setFrameSize(std::size_t framesize) { std::lock_guard guard(mutex); this->framesize = framesize; framesize_semaphore.post(); // Signal that the framesize has been set. } void DrumKitLoader::thread_main() { running = true; run_semaphore.post(); // Signal that the thread has been started. framesize_semaphore.wait(); // Wait until the framesize has been set. while(running) { std::size_t size; { std::lock_guard guard(mutex); size = load_queue.size(); } // Only sleep if queue is empty. if(size == 0) { semaphore.wait(std::chrono::milliseconds(10)); } bool newKit = false; if(getter.drumkit_file.hasChanged() || getter.reload_counter.hasChanged()) { loadkit(getter.drumkit_file.getValue()); newKit = true; } if(getter.midimap_file.hasChanged() || newKit) { auto ie_midi = dynamic_cast(&ie); // if there's a midi engine and this is not just the default midimap // name which is set. if(ie_midi && (getter.midimap_file.getValue() != "" || getter.reload_counter.getValue() != 0)) { settings.midimap_load_status.store(LoadStatus::Loading); bool ret = ie_midi->loadMidiMap(getter.midimap_file.getValue(), kit.instruments); if(ret) { settings.midimap_load_status.store(LoadStatus::Done); } else { settings.midimap_load_status.store(LoadStatus::Error); } } } std::string filename; { std::lock_guard guard(mutex); if(load_queue.size() == 0) { continue; } AudioFile *audiofile = load_queue.front(); load_queue.pop_front(); filename = audiofile->filename; try { audiofile->load(preload_samples); } catch(std::bad_alloc&) { settings.drumkit_load_status.store(LoadStatus::Error); load_queue.clear(); } } settings.number_of_files_loaded.fetch_add(1); if(settings.number_of_files.load() == settings.number_of_files_loaded.load()) { settings.drumkit_load_status.store(LoadStatus::Done); } } DEBUG(loader, "Loader thread finished."); } drumgizmo-0.9.14/src/powerlist.cc0000644000076400017500000001356213077162050013705 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * powerlist.cc * * Sun Jul 28 19:45:48 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "powerlist.h" #include #include #include // M_PI is not defined in math.h if __STRICT_ANSI__ is defined. #ifdef __STRICT_ANSI__ #undef __STRICT_ANSI__ #endif #include /** * Minimum sample set size. * Smaller means wider 'velocity groups'. * Limited by sample set size, ie. only kicks in if sample set size is smaller * than this number. */ unsigned int const MIN_SAMPLE_SET_SIZE = 26u; // Enable to calculate power on old samples without power attribute //#define AUTO_CALCULATE_POWER unsigned int const LOAD_SIZE = 500u; PowerList::PowerList(Random& rand) : rand(rand) { power_max = 0; power_min = 100000000; lastsample = nullptr; } void PowerList::add(Sample* sample) { PowerListItem item; item.power = -1; item.sample = sample; samples.push_back(item); } Channel* PowerList::getMasterChannel() { std::map count; for (auto& item: samples) { Sample* sample{item.sample}; Channel* max_channel{nullptr}; sample_t max_val{0}; for (auto& pair: sample->audiofiles) { Channel* c = pair.first; AudioFile* af = pair.second; af->load(LOAD_SIZE); float silence{0.f}; std::size_t silence_length{4u}; for (auto s = af->size; s > 0 && s > af->size - silence_length; --s) { silence += af->data[s]; } silence /= silence_length; for(auto s = 0u; s < af->size; ++s) { float val = af->data[s] * af->data[s] * (1.0 / (float)(s + 1)); if(val > max_val) { max_val = val; max_channel = c; break; } } af->unload(); } if(max_channel) { if(count.find(max_channel) == count.end()) { count[max_channel] = 0; } ++count[max_channel]; } } Channel* master{nullptr}; int max_count{-1}; for (auto& pair: count) { if (pair.second > max_count && pair.first->name.find("Alesis") == 0u) { master = pair.first; max_count = pair.second; } } return master; } void PowerList::finalise() { #ifdef AUTO_CALCULATE_POWER Channel* master_channel = getMasterChannel(); if(master_channel == nullptr) { ERR(rand, "No master channel found!\n"); return; // This should not happen... } DEBUG(rand, "Master channel: %s\n", master_channel->name.c_str()); #endif /*AUTO_CALCULATE_POWER*/ for (auto& item: samples) { Sample* sample = item.sample; #ifdef AUTO_CALCULATE_POWER DEBUG(rand, "Sample: %s\n", sample->name.c_str()); AudioFile* master{nullptr}; for (auto& af: sample->audiofiles) { if (af.first->name == master_channel->name) { master = af.second; break; } } if(master == nullptr) { continue; } master->load(); #endif /*AUTO_CALCULATE_POWER*/ #ifdef AUTO_CALCULATE_POWER if(sample->power == -1) { // Power not defined. Calculate it! DEBUG(powerlist, "Calculating power\n"); float power{0.f}; for(auto s = 0u; s < LOAD_SIZE && s < master->size; ++s) { power += master->data[s] * master->data[s]; } power = sqrt(power); sample->power = power; } #endif /*AUTO_CALCULATE_POWER*/ item.power = sample->power; if(item.power > power_max) { power_max = item.power; } if(item.power < power_min) { power_min = item.power; } DEBUG(rand, " - power: %f\n", item.power); } } Sample* PowerList::get(level_t level) { if(!samples.size()) { return nullptr; // No samples to choose from. } int retry = 3; // TODO: This must be user controllable via the UI. Sample* sample{nullptr}; float power_span = power_max - power_min; // Width is limited to at least 10. Fioxes problem with instrument with a // sample set smaller than MIN_SAMPLE_SET_SIZE. float width = fmax(samples.size(), MIN_SAMPLE_SET_SIZE); // Spread out at most ~2 samples away from center if all samples have a // uniform distribution over the power spectrum (which they probably don't). float stddev = power_span / width; // Cut off mean value with stddev/2 in both ends in order to make room for // downwards expansion on velocity 0 and upwards expansion on velocity 1. float mean = level * (power_span - stddev) + (stddev / 2.0); float power{0.f}; // note: loop is executed once + #retry do { --retry; // Select normal distributed value between // (stddev/2) and (power_span-stddev/2) float lvl = rand.normalDistribution(mean, stddev); // Adjust this value to be in range // (power_min+stddev/2) and (power_max-stddev/2) lvl += power_min; DEBUG(rand, "level: %f, lvl: %f (mean: %.2f, stddev: %.2f)\n", level, lvl, mean, stddev); for (auto& item: samples) { if (sample == nullptr || std::fabs(item.power - lvl) < std::fabs(power - lvl)) { sample = item.sample; power = item.power; } } } while (lastsample == sample && retry >= 0); DEBUG(rand, "Found sample with power %f\n", power); lastsample = sample; return sample; } drumgizmo-0.9.14/src/channel.h0000644000076400017500000000271012677254311013127 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * channel.h * * Tue Jul 22 17:14:27 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "audio.h" #define ALL_CHANNELS ((channel_t)0xffffffff) #define NO_CHANNEL ((channel_t)0xfffffffe) class Channel { public: Channel(const std::string& name = ""); std::string name; channel_t num; }; typedef Channel InstrumentChannel; typedef std::vector Channels; drumgizmo-0.9.14/src/Makefile.am0000644000076400017500000000344113103350627013374 00000000000000noinst_LTLIBRARIES = libdg.la libdg_la_CPPFLAGS = \ -I$(top_srcdir)/include -I$(top_srcdir)/hugin \ $(SSEFLAGS) \ $(ZITA_CPPFLAGS) $(SNDFILE_CFLAGS) $(EXPAT_CFLAGS) $(SAMPLERATE_CFLAGS) \ $(PTHREAD_CFLAGS) libdg_la_LIBADD = \ $(ZITA_LIBS) $(SNDFILE_LIBS) $(EXPAT_LIBS) $(SAMPLERATE_LIBS) \ $(PTHREAD_LIBS) # If you add a file here, remember to add it to plugin/Makefile.mingw32.in nodist_libdg_la_SOURCES = \ audiocachefile.cc \ audiocache.cc \ audiocacheeventhandler.cc \ audiocacheidmanager.cc \ audioinputenginemidi.cc \ audiofile.cc \ bytesizeparser.cc \ channel.cc \ channelmixer.cc \ chresampler.cc \ configfile.cc \ configparser.cc \ drumgizmo.cc \ drumkit.cc \ drumkitloader.cc \ drumkitparser.cc \ events.cc \ inputprocessor.cc \ instrument.cc \ instrumentparser.cc \ latencyfilter.cc \ memchecker.cc \ midimapparser.cc \ midimapper.cc \ path.cc \ powerlist.cc \ random.cc \ sample.cc \ semaphore.cc \ saxparser.cc \ staminafilter.cc \ thread.cc \ versionstr.cc EXTRA_DIST = \ $(nodist_libdg_la_SOURCES) \ atomic.h \ audio.h \ audiocache.h \ audiocacheeventhandler.h \ audiocachefile.h \ audiocacheidmanager.h \ audiofile.h \ audioinputengine.h \ audioinputenginemidi.h \ audiooutputengine.h \ beatmapper.h \ bytesizeparser.h \ channel.h \ channelmixer.h \ chresampler.h \ configfile.h \ configparser.h \ cpp11fix.h \ drumgizmo.h \ drumkit.h \ drumkitloader.h \ drumkitparser.h \ events.h \ inputfilter.h \ inputprocessor.h \ instrument.h \ instrumentparser.h \ latencyfilter.h \ memchecker.h \ midimapparser.h \ midimapper.h \ nolocale.h \ notifier.h \ path.h \ platform.h \ powerlist.h \ random.h \ rangemap.h \ sample.h \ saxparser.h \ semaphore.h \ settings.h \ staminafilter.h \ syncedsettings.h \ thread.h \ versionstr.hdrumgizmo-0.9.14/src/audiocachefile.h0000644000076400017500000000620313103350001014417 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * cacheaudiofile.h * * Thu Dec 24 12:17:58 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include #include //! Channel data container in the cache world. class CacheChannel { public: size_t channel; //< Channel number sample_t* samples; //< Sample buffer pointer. size_t num_samples; //< Number of samples in the sample buffer volatile bool* ready; //< Is set to true when the loading is done. }; using CacheChannels = std::list; //! This class is used to encapsulate reading from a single file source. //! The access is ref counted so that the file is only opened once and closed //! when it is no longer required. class AudioCacheFile { friend class AudioCacheFiles; friend class TestableAudioCacheFiles; public: //! Create file handle for filename. AudioCacheFile(const std::string& filename, std::vector& read_buffer); //! Closes file handle. ~AudioCacheFile(); //! Get sample count of the file connected with this cache object. size_t getSize() const; //! Get filename of the file connected with this cache object. const std::string& getFilename() const; //! Get number of channels in the file size_t getChannelCount() const; //! Read audio data from the file into the supplied channel caches. void readChunk(const CacheChannels& channels, size_t pos, size_t num_samples); private: int ref{0}; SNDFILE* fh{nullptr}; SF_INFO sf_info; std::string filename; std::vector& read_buffer; }; class AudioCacheFiles { public: //! Get the CacheAudioFile object corresponding to filename. //! If it does not exist it will be created. //! It's ref count will be increased. AudioCacheFile& getFile(const std::string& filename); //! Release the CacheAudioFile corresponding to filename. //! It's ref count will be decreased. //! If the ref count reaches 0 the object will be deleted. void releaseFile(const std::string& filename); protected: std::map audiofiles; std::mutex mutex; std::vector read_buffer; }; drumgizmo-0.9.14/src/memchecker.h0000644000076400017500000000364213075422570013624 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * memchecker.h * * Sat Jan 16 18:27:52 CET 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "drumkit.h" #include // includes cstdint automatically and is needed for the PRIu64 macro #include class MemChecker { public: //! Checks if there is enough memory left to load drumkit into RAM. //! \param drumkit The drumkit for which it is checked if there's enough memory left. //! \return True iff there is enough memory left. bool enoughFreeMemory(const DrumKit& drumkit) const; protected: // Computes how much RAM (in bytes) is left. uint64_t calcFreeMemory() const; // Computes how much memory the drumkit takes when loaded into RAM (in bytes). uint64_t calcNeededMemory(const DrumKit& drumkit) const; // Computes the number of bytes per channel of using libsnd. uint64_t calcBytesPerChannel(const std::string& filename) const; }; drumgizmo-0.9.14/src/drumkitloader.h0000644000076400017500000000565513103350425014364 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkitloader.h * * Thu Jan 17 20:54:13 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "thread.h" #include "semaphore.h" #include "drumkit.h" #include "settings.h" #include "audioinputengine.h" #include "chresampler.h" #include "memchecker.h" #include "audiocache.h" //! This class is responsible for loading the drumkits in its own thread. //! All interaction calls are simply modifying queues and not doing any //! work in-sync with the caller. //! This means that if loadKit(...) is called, one cannot assume that the //! drumkit has actually been loaded when the call returns. class DrumKitLoader : public Thread { public: DrumKitLoader(Settings& settings, DrumKit& kit, AudioInputEngine& ie, Resamplers& resamplers, Random& rand, AudioCache& audio_cache); ~DrumKitLoader(); //! Starts the loader thread. void init(); //! Signal the loader thread to stop and waits for the threads to merge //! before returning. void deinit(); bool loadkit(const std::string& file); //! Signal the loader to start loading all audio files contained in the kit. //! All other AudioFiles in queue will be removed before the new ones are //! scheduled. void loadKit(DrumKit *kit); //! Skip all queued AudioFiles. void skip(); //! Set the framesize which will be used to preloading samples in next //! loadKit call. void setFrameSize(std::size_t framesize); protected: void thread_main(); Semaphore run_semaphore; Semaphore semaphore; Semaphore framesize_semaphore; std::mutex mutex; volatile bool running{false}; std::list load_queue; std::size_t framesize{0}; Settings& settings; SettingsGetter getter; DrumKit& kit; AudioInputEngine& ie; Resamplers& resamplers; MemChecker memchecker; Random& rand; AudioCache& audio_cache; std::size_t preload_samples{std::numeric_limits::max()}; }; drumgizmo-0.9.14/src/channelmixer.h0000644000076400017500000000323112677254311014173 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * channelmixer.h * * Sun Oct 17 10:14:34 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "channel.h" class MixerSettings { public: float gain; const Channel* output; }; class ChannelMixer { public: ChannelMixer(const Channels& channels, const Channel* defaultchannel = nullptr, float defaultgain = 1.0); MixerSettings& lookup(const InstrumentChannel& channel); void setDefaults(const Channel* defaultchannel, float defaultgain); private: std::map mix; const Channel* defaultchannel; float defaultgain; const Channels& channels; }; drumgizmo-0.9.14/src/powerlist.h0000644000076400017500000000311513077162050013540 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * powerlist.h * * Sun Jul 28 19:45:47 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "sample.h" #include "random.h" class PowerList { public: PowerList(Random& rand); void add(Sample* s); void finalise(); ///< Call this when no more samples will be added. Sample* get(level_t velocity); private: struct PowerListItem { Sample* sample; float power; }; Random& rand; std::vector samples; float power_max; float power_min; Channel* getMasterChannel(); Sample* lastsample; }; drumgizmo-0.9.14/src/audioinputenginemidi.h0000644000076400017500000000366313077162050015732 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audioinputenginemidi.h * * Mon Apr 1 20:13:24 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "audioinputengine.h" #include "midimapper.h" #include "instrument.h" #include "configfile.h" class AudioInputEngineMidi : public AudioInputEngine { public: AudioInputEngineMidi(); virtual ~AudioInputEngineMidi() = default; virtual bool init(const Instruments &instruments) = 0; virtual void setParm(const std::string& parm, const std::string& value) = 0; virtual bool start() = 0; virtual void stop() = 0; virtual void pre() = 0; virtual void run(size_t pos, size_t len, std::vector& events) = 0; virtual void post() = 0; bool loadMidiMap(const std::string& file, const Instruments& i); std::string getMidimapFile() const; bool isValid() const; protected: MidiMapper mmap; private: std::string midimap; bool is_valid; ConfigFile refs; }; drumgizmo-0.9.14/src/nolocale.h0000644000076400017500000000360612677254311013320 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nolocale.h * * Fri Feb 13 12:48:10 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include static inline double atof_nol(const char* nptr) { double res; const char* locale = setlocale(LC_NUMERIC, "C"); res = atof(nptr); setlocale(LC_NUMERIC, locale); return res; } static inline int sprintf_nol(char* str, const char* format, ...) { int ret; const char* locale = setlocale(LC_NUMERIC, "C"); va_list vl; va_start(vl, format); ret = vsprintf(str, format, vl); va_end(vl); setlocale(LC_NUMERIC, locale); return ret; } static inline int snprintf_nol(char* str, size_t size, const char* format, ...) { int ret; const char* locale = setlocale(LC_NUMERIC, "C"); va_list vl; va_start(vl, format); ret = vsnprintf(str, size, format, vl); va_end(vl); setlocale(LC_NUMERIC, locale); return ret; } drumgizmo-0.9.14/src/memchecker.cc0000644000076400017500000000766213077120603013762 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * memchecker.cc * * Sat Jan 16 18:27:52 CET 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "memchecker.h" #include "platform.h" #if DG_PLATFORM == DG_PLATFORM_LINUX #include #elif DG_PLATFORM == DG_PLATFORM_OSX #include #include #include #include #elif DG_PLATFORM == DG_PLATFORM_FREEBSD #include #include #include #endif #include #include bool MemChecker::enoughFreeMemory(const DrumKit& drumkit) const { uint64_t free_memory = calcFreeMemory(); uint64_t needed_memory = calcNeededMemory(drumkit); return free_memory >= needed_memory; } uint64_t MemChecker::calcFreeMemory() const { uint64_t free_memory = 0; // Platform specific calculation of the amount of free memory. #if DG_PLATFORM == DG_PLATFORM_LINUX struct sysinfo sys_info; sysinfo(&sys_info); free_memory = sys_info.freeram * sys_info.mem_unit; #elif DG_PLATFORM == DG_PLATFORM_WINDOWS MEMORYSTATUSEX status; status.dwLength = sizeof(status); GlobalMemoryStatusEx(&status); free_memory = status.ullAvailPhys; #elif DG_PLATFORM == DG_PLATFORM_OSX vm_size_t page_size; vm_statistics64_data_t vm_stats; mach_port_t mach_port = mach_host_self(); mach_msg_type_number_t count = sizeof(vm_stats) / sizeof(natural_t); if (KERN_SUCCESS == host_page_size(mach_port, &page_size) && KERN_SUCCESS == host_statistics64(mach_port, HOST_VM_INFO, (host_info64_t)&vm_stats, &count)) { free_memory = (uint64_t)vm_stats.free_count * (uint64_t)page_size; } #elif DG_PLATFORM == DG_PLATFORM_FREEBSD u_int page_size; struct vmtotal vmt; size_t vmt_size, uint_size; vmt_size = sizeof(vmt); uint_size = sizeof(page_size); sysctlbyname("vm.vmtotal", &vmt, &vmt_size, NULL, 0); sysctlbyname("vm.stats.vm.v_page_size", &page_size, &uint_size, NULL, 0); free_memory = vmt.t_free * (u_int64_t)page_size; #elif DG_PLATFORM == DG_PLATFORM_UNIX // TODO #endif DEBUG(memchecker, "Calculated %" PRIu64 " free memory.\n", free_memory); return free_memory; } uint64_t MemChecker::calcNeededMemory(const DrumKit& drumkit) const { uint64_t needed_memory = 0; // Calculate memory usage of all instruments of drumkit. for(auto& instr_ptr: drumkit.instruments) { const auto& audiofiles = instr_ptr->audiofiles; // Calculate memory usage of all audiofiles. for(auto& audiofile: audiofiles) { needed_memory += calcBytesPerChannel(audiofile->filename); } } DEBUG(memchecker, "Calculated %" PRIu64 " needed memory.\n", needed_memory); return needed_memory; } uint64_t MemChecker::calcBytesPerChannel(const std::string& filename) const { SF_INFO sf_info{}; SNDFILE* f = sf_open(filename.c_str(), SFM_READ, &sf_info); if(!f) { ERR(memchecker, "SNDFILE Error (%s): %s\n", filename.c_str(), sf_strerror(f)); return 0; } sf_close(f); return sf_info.frames * sizeof(sample_t); } drumgizmo-0.9.14/src/drumgizmo.cc0000644000076400017500000002234613103620236013665 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmo.cc * * Thu Sep 16 10:24:40 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumgizmo.h" #include #include #include #include #include #include #include #include #include #include "drumkitparser.h" #include "audioinputenginemidi.h" DrumGizmo::DrumGizmo(Settings& settings, AudioOutputEngine& o, AudioInputEngine& i) : loader(settings, kit, i, resamplers, rand, audio_cache) , oe(o) , ie(i) , audio_cache(settings) , input_processor(settings, kit, activeevents) , settings(settings) , settings_getter(settings) { audio_cache.init(10000); // start thread events.reserve(1000); loader.init(); } DrumGizmo::~DrumGizmo() { loader.deinit(); audio_cache.deinit(); // stop thread } bool DrumGizmo::init() { if(!ie.init(kit.instruments)) { return false; } if(!oe.init(kit.channels)) { return false; } return true; } void DrumGizmo::setFrameSize(size_t framesize) { settings.buffer_size.store(framesize); // If we are resampling override the frame size. if(resamplers.isActive() && enable_resampling) { framesize = RESAMPLER_INPUT_BUFFER; } if(this->framesize != framesize) { DEBUG(drumgizmo, "New framesize: %d\n", (int)framesize); this->framesize = framesize; // Remove all active events as they are cached using the old framesize. for(std::size_t ch = 0; ch < MAX_NUM_CHANNELS; ++ch) { activeevents[ch].clear(); } // Update framesize in drumkitloader and cachemanager: loader.setFrameSize(framesize); audio_cache.setFrameSize(framesize); } } void DrumGizmo::setFreeWheel(bool freewheel) { // Freewheel = true means that we are bouncing and therefore running faster // than realtime. this->freewheel = freewheel; audio_cache.setAsyncMode(!freewheel); } void DrumGizmo::setRandomSeed(unsigned int seed) { rand.setSeed(seed); } bool DrumGizmo::run(size_t pos, sample_t *samples, size_t nsamples) { if(settings_getter.enable_resampling.hasChanged()) { enable_resampling = settings_getter.enable_resampling.getValue(); } setFrameSize(nsamples); setFreeWheel(ie.isFreewheeling() && oe.isFreewheeling()); ie.pre(); oe.pre(nsamples); // Clears all output buffers std::memset(samples, 0, nsamples * sizeof(sample_t)); // // Read new events // ie.run(pos, nsamples, events); double resample_ratio = resamplers.getRatio(); if(enable_resampling == false) { resample_ratio = 1.0; } bool active_events_left = input_processor.process(events, pos, resample_ratio); if(!active_events_left) { return false; } events.clear(); // // Write audio // #ifdef WITH_RESAMPLER if(!enable_resampling || !resamplers.isActive()) // No resampling needed { #endif for(size_t c = 0; c < kit.channels.size(); ++c) { sample_t *buf = samples; bool internal = false; if(oe.getBuffer(c)) { buf = oe.getBuffer(c); internal = true; } if(buf) { std::memset(buf, 0, nsamples * sizeof(sample_t)); getSamples(c, pos, buf, nsamples); if(!internal) { oe.run(c, samples, nsamples); } } } #ifdef WITH_RESAMPLER } else { // Resampling needed // // NOTE: Channels must be processed one buffer at a time on all channels in // parallel - NOT all buffers on one channel and then all buffer on the next // one since this would mess up the event queue (it would jump back and // forth in time) // // Prepare output buffer for(size_t c = 0; c < kit.channels.size(); ++c) { resamplers[c].setOutputSamples(resampler_output_buffer[c], nsamples); } // Process channel data size_t kitpos = pos * resamplers.getRatio(); size_t insize = sizeof(resampler_input_buffer[0]) / sizeof(sample_t); while(resamplers.getOutputSampleCount() > 0) { for(size_t c = 0; c < kit.channels.size(); ++c) { if(resamplers[c].getInputSampleCount() == 0) { sample_t *sin = resampler_input_buffer[c]; memset(resampler_input_buffer[c], 0, sizeof(resampler_input_buffer[c])); getSamples(c, kitpos, sin, insize); resamplers[c].setInputSamples(sin, insize); } resamplers[c].process(); } kitpos += insize; } // Write output data to output engine. for(size_t c = 0; c < kit.channels.size(); ++c) { oe.run(c, resampler_output_buffer[c], nsamples); } } #endif/*WITH_RESAMPLER*/ ie.post(); oe.post(nsamples); pos += nsamples; return true; } #undef SSE // SSE broken for now ... so disable it. #ifdef SSE #define N 8 typedef float vNsf __attribute__ ((vector_size(sizeof(sample_t)*N))); #endif/*SSE*/ void DrumGizmo::getSamples(int ch, int pos, sample_t* s, size_t sz) { std::vector< Event* > erase_list; std::list< Event* >::iterator i = activeevents[ch].begin(); for(; i != activeevents[ch].end(); ++i) { bool removeevent = false; Event* event = *i; Event::type_t type = event->getType(); switch(type) { case Event::sample: { EventSample& evt = *static_cast(event); AudioFile& af = *evt.file; if(!af.isLoaded() || !af.isValid() || (s == nullptr)) { removeevent = true; break; } // Don't handle event now is is scheduled for a future iteration? if(evt.offset > (pos + sz)) { continue; } if(evt.cache_id == CACHE_NOID) { size_t initial_chunksize = (pos + sz) - evt.offset; evt.buffer = audio_cache.open(af, initial_chunksize, af.filechannel, evt.cache_id); evt.buffer_size = initial_chunksize; } { std::lock_guard guard(af.mutex); size_t n = 0; // default start point is 0. // If we are not at offset 0 in current buffer: if(evt.offset > (size_t)pos) { n = evt.offset - pos; } size_t end = sz; // default end point is the end of the buffer. // Find the end point intra-buffer if((evt.t + end - n) > af.size) { end = af.size - evt.t + n; } // This should not be necessary but make absolutely sure that we do // not write over the end of the buffer. if(end > sz) { end = sz; } size_t t = 0; // Internal buffer counter if(evt.rampdown == NO_RAMPDOWN) { #ifdef SSE size_t optend = ((end - n) / N) * N + n; // Force source addr to be 16 byte aligned... // (might skip 1 or 2 samples) while((size_t)&evt.buffer[t] % 16) { ++t; } for(; (n < optend) && (t < evt.buffer_size); n += N) { *(vNsf*)&(s[n]) += *(vNsf*)&(evt.buffer[t]); t += N; } #endif for(; (n < end) && (t < evt.buffer_size); ++n) { assert(n >= 0); assert(n < sz); assert(t >= 0); assert(t < evt.buffer_size); s[n] += evt.buffer[t]; ++t; } } else { // Ramp down in progress. for(; (n < end) && (t < evt.buffer_size) && evt.rampdown; ++n) { float scale = (float)evt.rampdown/(float)evt.ramp_start; s[n] += evt.buffer[t] * scale; ++t; evt.rampdown--; } } // Add internal buffer counter to "global" event counter. evt.t += evt.buffer_size; if((evt.t < af.size) && (evt.rampdown != 0)) { evt.buffer = audio_cache.next(evt.cache_id, evt.buffer_size); } else { removeevent = true; } if(removeevent) { audio_cache.close(evt.cache_id); } } } break; } if(removeevent) { erase_list.push_back(event); // don't delete until we are out of the loop. continue; } } for(auto& event : erase_list) { activeevents[ch].remove(event); delete event; } } void DrumGizmo::stop() { // engine.stop(); } std::size_t DrumGizmo::getLatency() const { auto latency = input_processor.getLatency(); if(enable_resampling) { latency += resamplers.getLatency(); } return latency; } int DrumGizmo::samplerate() { return settings.samplerate.load(); } void DrumGizmo::setSamplerate(int samplerate) { DEBUG(dgeditor, "%s samplerate: %d\n", __PRETTY_FUNCTION__, samplerate); settings.samplerate.store(samplerate); // Notify input engine of the samplerate change. ie.setSampleRate(samplerate); #ifdef WITH_RESAMPLER resamplers.setup(kit.getSamplerate(), settings.samplerate.load()); #endif/*WITH_RESAMPLER*/ } drumgizmo-0.9.14/src/latencyfilter.cc0000644000076400017500000000275713077120603014524 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * latencyfilter.cc * * Fri Jun 10 22:42:53 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "latencyfilter.h" LatencyFilter::LatencyFilter(Settings& settings) //: settings(settings) { } bool LatencyFilter::filter(event_t& events, size_t pos) { return true; } std::size_t LatencyFilter::getLatency() const { // TODO: If enabled in settings, return the maximum number of samples // with which the latency filter can move notes forward. return 0; } drumgizmo-0.9.14/src/settings.h0000644000076400017500000001711713103620275013355 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * settings.h * * Tue Mar 22 10:59:46 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "atomic.h" #include "notifier.h" enum class LoadStatus : unsigned int { Idle, Loading, Done, Error }; //! Engine settings struct Settings { Atomic drumkit_file{""}; Atomic drumkit_load_status{LoadStatus::Idle}; Atomic drumkit_name{""}; Atomic drumkit_description{""}; Atomic drumkit_version{""}; Atomic drumkit_samplerate{0}; //! The maximum amount of memory in bytes that the AudioCache //! is allowed to use for preloading. Default is 1GB. Atomic disk_cache_upper_limit{1024 * 1024 * 1024}; //! The optimal read chunk size from the disk. Atomic disk_cache_chunk_size{1024 * 1024}; Atomic disk_cache_enable{true}; Atomic number_of_underruns{0}; //! Increment this in order to invoke a reload of the current drumkit. Atomic reload_counter{0}; Atomic midimap_file{""}; Atomic midimap_load_status{LoadStatus::Idle}; Atomic enable_velocity_modifier{true}; Atomic velocity_modifier_falloff{0.5f}; Atomic velocity_modifier_weight{0.25f}; Atomic enable_velocity_randomiser{false}; Atomic velocity_randomiser_weight{0.1f}; Atomic samplerate{44100.0}; Atomic buffer_size{1024}; // Only used to show in the UI. Atomic enable_resampling{true}; Atomic resamplig_recommended{false}; Atomic number_of_files{0}; Atomic number_of_files_loaded{0}; Atomic current_file{""}; }; //! Settings getter class. struct SettingsGetter { SettingRef drumkit_file; SettingRef drumkit_load_status; SettingRef drumkit_name; SettingRef drumkit_description; SettingRef drumkit_version; SettingRef drumkit_samplerate; SettingRef disk_cache_upper_limit; SettingRef disk_cache_chunk_size; SettingRef disk_cache_enable; SettingRef number_of_underruns; SettingRef reload_counter; SettingRef midimap_file; SettingRef midimap_load_status; SettingRef enable_velocity_modifier; SettingRef velocity_modifier_falloff; SettingRef velocity_modifier_weight; SettingRef enable_velocity_randomiser; SettingRef velocity_randomiser_weight; SettingRef samplerate; SettingRef buffer_size; SettingRef enable_resampling; SettingRef resamplig_recommended; SettingRef number_of_files; SettingRef number_of_files_loaded; SettingRef current_file; SettingsGetter(Settings& settings) : drumkit_file(settings.drumkit_file) , drumkit_load_status(settings.drumkit_load_status) , drumkit_name(settings.drumkit_name) , drumkit_description(settings.drumkit_description) , drumkit_version(settings.drumkit_version) , drumkit_samplerate(settings.drumkit_samplerate) , disk_cache_upper_limit(settings.disk_cache_upper_limit) , disk_cache_chunk_size(settings.disk_cache_chunk_size) , disk_cache_enable(settings.disk_cache_enable) , number_of_underruns(settings.number_of_underruns) , reload_counter(settings.reload_counter) , midimap_file(settings.midimap_file) , midimap_load_status(settings.midimap_load_status) , enable_velocity_modifier{settings.enable_velocity_modifier} , velocity_modifier_falloff{settings.velocity_modifier_falloff} , velocity_modifier_weight{settings.velocity_modifier_weight} , enable_velocity_randomiser{settings.enable_velocity_randomiser} , velocity_randomiser_weight{settings.velocity_randomiser_weight} , samplerate{settings.samplerate} , buffer_size(settings.buffer_size) , enable_resampling{settings.enable_resampling} , resamplig_recommended{settings.resamplig_recommended} , number_of_files{settings.number_of_files} , number_of_files_loaded{settings.number_of_files_loaded} , current_file{settings.current_file} { } }; //! Settings change notifier class. class SettingsNotifier { public: Notifier drumkit_file; Notifier drumkit_load_status; Notifier drumkit_name; Notifier drumkit_description; Notifier drumkit_version; Notifier drumkit_samplerate; Notifier disk_cache_upper_limit; Notifier disk_cache_chunk_size; Notifier disk_cache_enable; Notifier number_of_underruns; Notifier reload_counter; Notifier midimap_file; Notifier midimap_load_status; Notifier enable_velocity_modifier; Notifier velocity_modifier_falloff; Notifier velocity_modifier_weight; Notifier enable_velocity_randomiser; Notifier velocity_randomiser_weight; Notifier samplerate; Notifier buffer_size; Notifier enable_resampling; Notifier resamplig_recommended; Notifier number_of_files; Notifier number_of_files_loaded; Notifier current_file; void evaluate() { #define EVAL(x) if(settings.x.hasChanged()) { x(settings.x.getValue()); } EVAL(drumkit_file); EVAL(drumkit_load_status); EVAL(drumkit_name); EVAL(drumkit_description); EVAL(drumkit_version); EVAL(drumkit_samplerate); EVAL(disk_cache_upper_limit); EVAL(disk_cache_chunk_size); EVAL(disk_cache_enable); EVAL(number_of_underruns); EVAL(reload_counter); EVAL(midimap_file); EVAL(midimap_load_status); EVAL(enable_velocity_modifier); EVAL(velocity_modifier_falloff); EVAL(velocity_modifier_weight); EVAL(enable_velocity_randomiser); EVAL(velocity_randomiser_weight); EVAL(samplerate); EVAL(buffer_size); EVAL(enable_resampling); EVAL(resamplig_recommended); EVAL(number_of_files); EVAL(number_of_files_loaded); EVAL(current_file); } SettingsNotifier(Settings& settings) : settings(settings) { } private: SettingsGetter settings; }; // lovely reminder: NO, GLOCKE. NOOOO!! /* enum class IntParams { Foo = 0 }; struct Settings { std::array, 5> ints; Settings() : ints{} { //get(IntParams::Foo).store(3); } std::atomic& get(IntParams param) { return ints[(size_t)param]; } }; struct SettingsGetter { std::vector> ints; SettingsGetter(Settings& parent) { for(auto& atomic: parent.ints) { ints.emplace_back(atomic); } } }; */ drumgizmo-0.9.14/src/drumgizmo.h0000644000076400017500000000543113103620267013527 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmo.h * * Thu Sep 16 10:24:40 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "audiooutputengine.h" #include "audioinputengine.h" #include "events.h" #include "audiofile.h" #include "drumkit.h" #include "drumkitloader.h" #include "audiocache.h" #include "chresampler.h" #include "settings.h" #include "inputprocessor.h" #define REFSFILE "refs.conf" class DrumGizmo { public: DrumGizmo(Settings& settings, AudioOutputEngine& outputengine, AudioInputEngine& inputengine); virtual ~DrumGizmo(); bool init(); bool run(size_t pos, sample_t *samples, size_t nsamples); void stop(); void getSamples(int ch, int pos, sample_t *s, size_t sz); //! Get the current engine latency in samples. std::size_t getLatency() const; int samplerate(); void setSamplerate(int samplerate); void setFrameSize(size_t framesize); void setFreeWheel(bool freewheel); void setRandomSeed(unsigned int seed); private: static constexpr int MAX_NUM_CHANNELS = 64; static constexpr int RESAMPLER_OUTPUT_BUFFER = 4096; static constexpr int RESAMPLER_INPUT_BUFFER = 64; protected: DrumKitLoader loader; AudioOutputEngine& oe; AudioInputEngine& ie; std::list< Event* > activeevents[MAX_NUM_CHANNELS]; Resamplers resamplers; sample_t resampler_output_buffer[MAX_NUM_CHANNELS][RESAMPLER_OUTPUT_BUFFER]; sample_t resampler_input_buffer[MAX_NUM_CHANNELS][RESAMPLER_INPUT_BUFFER]; bool enable_resampling{true}; std::map audiofiles; AudioCache audio_cache; DrumKit kit; InputProcessor input_processor; size_t framesize{0}; bool freewheel{true}; std::vector events; Settings& settings; SettingsGetter settings_getter; Random rand; }; drumgizmo-0.9.14/src/configfile.cc0000644000076400017500000001556713103356510013765 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * configfile.cc * * Thu May 14 14:51:39 CEST 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "configfile.h" #include #include #include #include #include #include #include "platform.h" #if DG_PLATFORM == DG_PLATFORM_WINDOWS #include #include #include #include #else #endif #include #if DG_PLATFORM == DG_PLATFORM_WINDOWS #define SEP "\\" #else #define SEP "/" #endif #define CONFIGDIRNAME ".drumgizmo" /** * Return the path containing the config files. */ static std::string getConfigPath() { #if DG_PLATFORM == DG_PLATFORM_WINDOWS std::string configpath; TCHAR szPath[256]; if(SUCCEEDED(SHGetFolderPath( NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, szPath))) { configpath = szPath; } #else std::string configpath = getenv("HOME"); #endif configpath += SEP; configpath += CONFIGDIRNAME; return configpath; } /** * Calling this makes sure that the config path exists */ static bool createConfigPath() { std::string configpath = getConfigPath(); struct stat st; if(stat(configpath.c_str(), &st) == 0) { DEBUG(configfile, "No configuration exists, creating directory '%s'\n", configpath.c_str()); #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(mkdir(configpath.c_str()) < 0) { #else if(mkdir(configpath.c_str(), 0755) < 0) { #endif DEBUG(configfile, "Could not create config directory\n"); } return false; } return true; } ConfigFile::ConfigFile(std::string const& filename) : filename(filename) , fp(nullptr) { } ConfigFile::~ConfigFile() { if (fp != nullptr) { DEBUG(configfile, "File has not been closed by the client...\n"); } } bool ConfigFile::load() { DEBUG(configfile, "Loading config file...\n"); if(!open("r")) { return false; } values.clear(); std::string line; while(true) { line = readLine(); if(line == "") break; if(!parseLine(line)) { return false; } } close(); return true; } bool ConfigFile::save() { DEBUG(configfile, "Saving configuration...\n"); createConfigPath(); if(!open("w")) { return false; } std::map::iterator v = values.begin(); for(; v != values.end(); ++v) { fprintf(fp, "%s:%s\n", v->first.c_str(), v->second.c_str()); } close(); return true; } std::string ConfigFile::getValue(const std::string& key) const { auto i = values.find(key); if (i != values.end()) { return i->second; } return ""; } void ConfigFile::setValue(const std::string& key, const std::string& value) { values[key] = value; } bool ConfigFile::open(std::string mode) { if(fp) { close(); } std::string configpath = getConfigPath(); std::string configfile = configpath; configfile += SEP; configfile += filename; DEBUG(configfile, "Opening config file '%s'\n", configfile.c_str()); fp = fopen(configfile.c_str(), mode.c_str()); if(!fp) { return false; } return true; } void ConfigFile::close() { fclose(fp); fp = nullptr; } std::string ConfigFile::readLine() { if(!fp) { return ""; } std::string line; char buf[1024]; while(!feof(fp)) { char* s = fgets(buf, sizeof(buf), fp); if(s) { line += buf; if(buf[strlen(buf) - 1] == '\n') break; } } return line; } bool ConfigFile::parseLine(const std::string& line) { std::string key; std::string value; enum { before_key, in_key, after_key, before_value, in_value, in_value_single_quoted, in_value_double_quoted, after_value, } state = before_key; for(std::size_t p = 0; p < line.size(); ++p) { switch(state) { case before_key: if(line[p] == '#') { // Comment: Ignore line. p = line.size(); continue; } if(std::isspace(line[p])) { continue; } key += line[p]; state = in_key; break; case in_key: if(std::isspace(line[p])) { state = after_key; continue; } if(line[p] == ':' || line[p] == '=') { state = before_value; continue; } key += line[p]; break; case after_key: if(std::isspace(line[p])) { continue; } if(line[p] == ':' || line[p] == '=') { state = before_value; continue; } ERR(configfile, "Bad symbol." " Expecting only whitespace or key/value seperator: '%s'", line.c_str()); return false; case before_value: if(std::isspace(line[p])) { continue; } if(line[p] == '\'') { state = in_value_single_quoted; continue; } if(line[p] == '"') { state = in_value_double_quoted; continue; } value += line[p]; state = in_value; break; case in_value: if(std::isspace(line[p])) { state = after_value; continue; } if(line[p] == '#') { // Comment: Ignore the rest of the line. p = line.size(); state = after_value; continue; } value += line[p]; break; case in_value_single_quoted: if(line[p] == '\'') { state = after_value; continue; } value += line[p]; break; case in_value_double_quoted: if(line[p] == '"') { state = after_value; continue; } value += line[p]; break; case after_value: if(std::isspace(line[p])) { continue; } if(line[p] == '#') { // Comment: Ignore the rest of the line. p = line.size(); continue; } ERR(configfile, "Bad symbol." " Expecting only whitespace or key/value seperator: '%s'", line.c_str()); return false; } } if(state == before_key) { // Line did not contain any data (empty or comment) return true; } // If state == in_value_XXX_quoted here, the string was not terminated. if(state != after_value && state != in_value) { ERR(configfile, "Malformed line: '%s'", line.c_str()); return false; } DEBUG(configfile, "key['%s'] value['%s']\n", key.c_str(), value.c_str()); if(key != "") { values[key] = value; } return true; } drumgizmo-0.9.14/src/audiocacheidmanager.h0000644000076400017500000000534113103350057015444 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheidmanager.h * * Tue Jan 5 10:59:37 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include class AudioCacheFile; #define CACHE_DUMMYID -2 #define CACHE_NOID -1 typedef int cacheid_t; struct cache_t { cacheid_t id{CACHE_NOID}; //< Current id of this cache_t. CACHE_NOID means not in use. AudioCacheFile* afile{nullptr}; size_t channel{0}; size_t pos{0}; //< File position volatile bool ready{false}; sample_t* front{nullptr}; sample_t* back{nullptr}; size_t localpos{0}; //< Intra buffer (front) position. sample_t* preloaded_samples{nullptr}; // nullptr means preload buffer not active. size_t preloaded_samples_size{0}; }; class AudioCacheIDManager { friend class AudioCacheEventHandler; public: AudioCacheIDManager() = default; ~AudioCacheIDManager(); //! Initialise id lists with specified capacity. //! Exceeding this capacity will result in CACHE_DUMMYID on calls to //! registerID. void init(unsigned int capacity); //! Get the cache object connected with the specified cacheid. //! Note: The cacheid MUST be active. cache_t& getCache(cacheid_t id); //! Reserve a new cache object and return its cacheid. //! The contents of the supplied cache object will be copied to the new //! cache object. cacheid_t registerID(const cache_t& cache); //! Release a cache object and its correseponding cacheid. //! After this call the cacheid can no longer be used. void releaseID(cacheid_t id); protected: // For AudioCacheEventHandler void disableActive(); std::vector getActiveIDs(); std::mutex mutex; std::vector id2cache; std::vector available_ids; }; drumgizmo-0.9.14/src/audiocache.cc0000644000076400017500000001717613103622265013746 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocache.cc * * Fri Apr 10 10:39:24 CEST 2015 * Copyright 2015 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audiocache.h" #include #include #include #include #include "audiocachefile.h" AudioCache::AudioCache(Settings& settings) : settings(settings) { } AudioCache::~AudioCache() { DEBUG(cache, "~AudioCache() pre\n"); deinit(); delete[] nodata; DEBUG(cache, "~AudioCache() post\n"); } void AudioCache::init(std::size_t poolsize) { setAsyncMode(true); id_manager.init(poolsize); event_handler.start(); } void AudioCache::deinit() { event_handler.stop(); } // Invariant: initial_samples_needed < preloaded audio data sample_t* AudioCache::open(const AudioFile& file, std::size_t initial_samples_needed, int channel, cacheid_t& id) { assert(chunk_size); // Assert updateChunkSize was called before processing. if(!file.isValid()) { settings.number_of_underruns.fetch_add(1); // File preload not yet ready - skip this sample. id = CACHE_DUMMYID; assert(nodata); return nodata; } // Register a new id for this cache session. id = id_manager.registerID({}); // If we are out of available ids we get CACHE_DUMMYID if(id == CACHE_DUMMYID) { settings.number_of_underruns.fetch_add(1); // Use nodata buffer instead. assert(nodata); return nodata; } // Get the cache_t connected with the registered id. cache_t& c = id_manager.getCache(id); c.afile = nullptr; // File is opened when needed. c.channel = channel; // Next call to 'next()' will read from this point. c.localpos = initial_samples_needed; c.ready = false; c.front = nullptr; // This is allocated when needed. c.back = nullptr; // This is allocated when needed. std::size_t cropped_size; if(file.preloadedsize == file.size) { // We have preloaded the entire file, so use it. cropped_size = file.preloadedsize; } else { // Make sure that the preload-data made available to the next() calls // fit on frame boundary: // // [ all preloaded data ] // [ initial ][ biggest multiple of full frames ][ the rest ] // \ / // \----------------------v-------------------/ // cropped_size cropped_size = file.preloadedsize - c.localpos; cropped_size -= cropped_size % framesize; cropped_size += initial_samples_needed; } c.preloaded_samples = file.data; c.preloaded_samples_size = cropped_size; // Next potential read from disk will read from this point. c.pos = cropped_size; // Only load next buffer if there is more data in the file to be loaded... if(c.pos < file.size) { c.afile = &event_handler.openFile(file.filename); if(c.back == nullptr) { c.back = new sample_t[chunk_size]; } event_handler.pushLoadNextEvent(c.afile, c.channel, c.pos, c.back, &c.ready); } return c.preloaded_samples; // return preloaded data } sample_t* AudioCache::next(cacheid_t id, std::size_t& size) { size = framesize; if(id == CACHE_DUMMYID) { settings.number_of_underruns.fetch_add(1); assert(nodata); return nodata; } cache_t& c = id_manager.getCache(id); if(c.preloaded_samples) { // We are playing from memory: if(c.localpos < c.preloaded_samples_size) { sample_t* s = c.preloaded_samples + c.localpos; if((c.localpos + framesize) > c.preloaded_samples_size) { // Only a partial frame is returned. Reflect this in the size size = c.preloaded_samples_size - c.localpos; } c.localpos += framesize; return s; } c.preloaded_samples = nullptr; // Start using samples from disk. } else { // We are playing from cache: if(c.localpos < chunk_size) { if(c.front == nullptr) { // Just return silence. settings.number_of_underruns.fetch_add(1); c.localpos += framesize; // Skip these samples so we don't loose sync. assert(nodata); return nodata; } sample_t* s = c.front + c.localpos; c.localpos += framesize; return s; } } // Check for buffer underrun if(!c.ready) { // Just return silence. settings.number_of_underruns.fetch_add(1); c.localpos += framesize; // Skip these samples so we don't loose sync. assert(nodata); return nodata; } // Swap buffers std::swap(c.front, c.back); // Next time we go here we have already read the first frame. c.localpos = framesize; c.pos += chunk_size; // Does the file have remaining unread samples? assert(c.afile); // Assert that we have an audio file. if(c.pos < c.afile->getSize()) { // Do we have a back buffer to read into? if(c.back == nullptr) { c.back = new sample_t[chunk_size]; } event_handler.pushLoadNextEvent(c.afile, c.channel, c.pos, c.back, &c.ready); } // We should always have a front buffer at this point. assert(c.front); return c.front; } bool AudioCache::isReady(cacheid_t id) { if(id == CACHE_DUMMYID) { return true; } cache_t& cache = id_manager.getCache(id); return cache.ready; } void AudioCache::close(cacheid_t id) { if(id == CACHE_DUMMYID) { return; } event_handler.pushCloseEvent(id); } void AudioCache::setFrameSize(std::size_t framesize) { DEBUG(cache, "%s\n", __PRETTY_FUNCTION__); // Make sure the event handler thread is stalled while we set the framesize // state. std::lock_guard event_handler_lock(event_handler); // NOTE: Not threaded... //std::lock_guard id_manager_lock(id_manager); if(framesize > nodata_framesize) { if(nodata) { nodata_dirty.emplace_back(std::move(nodata)); // Store for later deletion. } nodata = new sample_t[framesize]; nodata_framesize = framesize; for(std::size_t i = 0; i < framesize; ++i) { nodata[i] = 0.0f; } } this->framesize = framesize; } std::size_t AudioCache::getFrameSize() const { return framesize; } void AudioCache::updateChunkSize(std::size_t output_channels) { // Make sure we won't get out-of-range chunk sizes. std::size_t disk_cache_chunk_size = std::max(settings.disk_cache_chunk_size.load(), std::size_t(512u * 1024u)); output_channels = std::max(output_channels, std::size_t(1u)); // 1MB pr. chunk divided over 16 channels, 4 bytes pr. sample. const auto ideal_chunk_size = disk_cache_chunk_size / output_channels / sizeof(sample_t); // Chunk size must match a whole number of frames. chunk_size = (ideal_chunk_size / framesize) * framesize; event_handler.setChunkSize(chunk_size); } void AudioCache::setAsyncMode(bool async) { event_handler.setThreaded(async); } bool AudioCache::isAsyncMode() const { return event_handler.isThreaded(); } drumgizmo-0.9.14/src/staminafilter.cc0000644000076400017500000000437013077120604014513 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * staminafilter.cc * * Sat Jun 11 08:49:36 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "staminafilter.h" #include "settings.h" StaminaFilter::StaminaFilter(Settings& settings) : settings(settings) { } bool StaminaFilter::filter(event_t& event, size_t pos) { // Read out all values from settings. auto samplerate = settings.samplerate.load(); auto velocity_modifier_falloff = settings.velocity_modifier_falloff.load(); auto enable_velocity_modifier = settings.enable_velocity_modifier.load(); auto velocity_modifier_weight = settings.velocity_modifier_weight.load(); if(modifiers.find(event.instrument) == modifiers.end()) { // On first lookup make sure we have sane values. auto& pair = modifiers[event.instrument]; pair.first = 1.0f; pair.second = 0; } auto& pair = modifiers[event.instrument]; auto& mod = pair.first; auto& lastpos = pair.second; if(enable_velocity_modifier == false) { mod = 1.0f; lastpos = 0; } if(enable_velocity_modifier) { mod += (pos - lastpos) / (samplerate * velocity_modifier_falloff); if(mod > 1.0f) { mod = 1.0f; } } event.velocity *= mod; if(enable_velocity_modifier) { lastpos = pos; mod *= velocity_modifier_weight; } return true; } drumgizmo-0.9.14/src/instrument.h0000644000076400017500000000460313077120603013721 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * instrument.h * * Tue Jul 22 17:14:19 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "rangemap.h" #include "powerlist.h" #include "sample.h" #include "versionstr.h" #include "random.h" #include "settings.h" class Instrument { friend class InstrumentParser; public: Instrument(Settings& settings, Random& rand); ~Instrument(); Sample* sample(level_t level, size_t pos); std::string getName() const; std::string getDescription() const; std::string getGroup() const; void setGroup(const std::string& group); // std::map channelmap; std::vector> audiofiles; bool isValid() const; //! Get the number of audio files (as in single channel) in this instrument. std::size_t getNumberOfFiles() const; private: void* magic; std::string _group; std::string _name; std::string _description; VersionStr version; RangeMap samples; void addSample(level_t a, level_t b, Sample* s); void finalise(); ///< Signal instrument that no more samples will be added. std::vector samplelist; size_t lastpos; float mod; Settings& settings; Random& rand; PowerList powerlist; }; // typedef std::map< std::string, Instrument > Instruments; using Instruments = std::vector>; drumgizmo-0.9.14/src/sample.cc0000644000076400017500000000321013103356527013127 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * sample.cc * * Mon Jul 21 10:23:20 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "sample.h" #include Sample::Sample(const std::string& name, float power) : name{name} , power{power} , audiofiles{} { } Sample::~Sample() { } void Sample::addAudioFile(Channel* c, AudioFile* a) { audiofiles[c] = a; } AudioFile* Sample::getAudioFile(Channel* c) { /* if(audiofiles.find(c) == audiofiles.end()) return nullptr; return audiofiles[c]; */ // todo: std::find_if ?? for (auto& pair: audiofiles) { if (pair.first->num == c->num) { return pair.second; } } return nullptr; } drumgizmo-0.9.14/src/configparser.cc0000644000076400017500000000346212704420763014341 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * configparser.cc * * Sat Jun 29 21:55:02 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "configparser.h" #include #include "saxparser.h" ConfigParser::ConfigParser() { str = nullptr; } void ConfigParser::characterData(const std::string& data) { if(str) { str->append(data); } } void ConfigParser::startTag(const std::string& name, const attr_t& attr) { if(name == "value" && attr.find("name") != attr.end()) { values[attr.at("name")] = ""; str = &values[attr.at("name")]; } } void ConfigParser::endTag(const std::string& name) { if(name == "value") { str = nullptr; } } std::string ConfigParser::value(const std::string& name, const std::string& def) { if(values.find(name) == values.end()) { return def; } return values[name]; } drumgizmo-0.9.14/src/random.cc0000644000076400017500000000611113077120603013123 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * random.cc * * Wed Mar 23 19:17:24 CET 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "random.h" #include #include #include Random::Random() : Random(std::chrono::system_clock::now().time_since_epoch().count()) { } Random::Random(unsigned int seed) { setSeed(seed); } void Random::setSeed(unsigned int seed) { generator.seed(seed); } int Random::intInRange(int lower_bound, int upper_bound) { auto generate = [this]() { return (int)generator() - generator.min(); }; const int in_range = generator.max() - generator.min(); const int out_range = upper_bound - lower_bound; int rand; // scale in_range DOWN to out_range. // (see: http://www.azillionmonkeys.com/qed/random.html) if (in_range > out_range) { const int rand_inv_range = in_range / (out_range + 1); do { rand = generate(); } while (rand >= (out_range + 1) * rand_inv_range); rand = lower_bound + rand/rand_inv_range; } // scale in_range UP to out_range. // (see: http://stackoverflow.com/a/30738381) else if (in_range < out_range) { int scale = out_range / (in_range + 1); do { rand = generate() + intInRange(0, scale) * (in_range + 1); } while (rand < lower_bound && rand > upper_bound); rand = lower_bound + rand; } // naive case else { rand = lower_bound + generate(); } return rand; } float Random::floatInRange(float lower_bound, float upper_bound) { return generateFloat() * (upper_bound - lower_bound) + lower_bound; } // For details regarding the algorithm see: // https://en.wikipedia.org/wiki/Marsaglia_polar_method float Random::normalDistribution(float mean, float stddev) { float u, v, s; do { u = 2.0*generateFloat() - 1.0; v = 2.0*generateFloat() - 1.0; s = (u * u) + (v * v); } while (s > 1.0 || s == 0.0); s = std::sqrt(-2*std::log(s) / s); return stddev * (v * s) + mean; } float Random::generateFloat() { return std::generate_canonical::digits, decltype(generator)>(generator); } drumgizmo-0.9.14/src/audiocache.h0000644000076400017500000001014513103622233013570 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocache.h * * Fri Apr 10 10:39:24 CEST 2015 * Copyright 2015 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "audiotypes.h" #include "audiofile.h" #include "audiocachefile.h" #include "audiocacheidmanager.h" #include "audiocacheeventhandler.h" #include "settings.h" class AudioCache { public: AudioCache(Settings& settings); //! Destroy object and stop thread if needed. ~AudioCache(); //! Initialise cache manager and allocate needed resources //! This method starts the cache manager thread. //! This method blocks until the thread has been started. //! \param poolsize The maximum number of parellel events supported. void init(std::size_t poolsize); //! Stop thread and clean up resources. //! This method blocks until the thread has stopped. void deinit(); //! Register new cache entry. //! Prepares an entry in the cache manager for future disk streaming. //! \param file A pointer to the file which is to be streamed from. //! \param initial_samples_needed The number of samples needed in the first //! read that is not nessecarily of framesize. This is the number of samples //! from the input event offset to the end of the frame in which it resides. //! initial_samples_needed <= framesize. //! \param channel The channel to which the cache id will be bound. //! \param [out] new_id The newly created cache id. //! \return A pointer to the first buffer containing the //! 'initial_samples_needed' number of samples. sample_t* open(const AudioFile& file, std::size_t initial_samples_needed, int channel, cacheid_t& new_id); //! Get next buffer. //! Returns the next buffer for reading based on cache id. //! This function will (if needed) schedule a new disk read to make sure that //! data is available in the next call to this method. //! \param id The cache id to read from. //! \param [out] size The size of the returned buffer. //! \return A pointer to the buffer. sample_t* next(cacheid_t id, std::size_t &size); //! Returns true iff the next chunk of the supplied id has been read from disk. bool isReady(cacheid_t id); //! Unregister cache entry. //! Close associated file handles and free associated buffers. //! \param id The cache id to close. void close(cacheid_t id); //! Set/get internal framesize used when iterating through cache buffers. void setFrameSize(std::size_t framesize); std::size_t getFrameSize() const; //! Signal the AudioCache sub-system to set it's internals according to the //! chunk size parameter from Settings. void updateChunkSize(std::size_t output_channels); //! Control/get reader threaded mode. //! True means reading happening threaded, false means all reading done //! synchronious. void setAsyncMode(bool async); bool isAsyncMode() const; private: std::size_t framesize{0}; sample_t* nodata{nullptr}; std::size_t nodata_framesize{0}; std::size_t chunk_size{0}; std::list> nodata_dirty; AudioCacheIDManager id_manager; AudioCacheEventHandler event_handler{id_manager}; Settings& settings; }; drumgizmo-0.9.14/src/notifier.h0000644000076400017500000000664313077665515013356 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * notifier.h * * Thu Sep 3 15:48:39 CEST 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include namespace aux { template struct placeholder { }; } namespace std { template struct is_placeholder> : integral_constant { }; } namespace aux { // std::integer_sequence introduced in C++14 so remove this once we start requiring that. template struct int_sequence { }; template struct gen_int_sequence : gen_int_sequence { }; template struct gen_int_sequence<0, Ns...> : int_sequence { }; }; //namespace GUI { class Listener; class NotifierBase { public: virtual void disconnect(Listener* object) {} }; class Listener { public: virtual ~Listener() { for(auto signal : signals) { signal->disconnect(this); } } void registerNotifier(NotifierBase* signal) { signals.insert(signal); } void unregisterNotifier(NotifierBase* signal) { signals.erase(signal); } private: std::set signals; }; template class Notifier : public NotifierBase { public: Notifier() {} //! \brief When dtor is called it will automatically disconnect all its listeners. ~Notifier() { for(auto& slot : slots) { slot.first->unregisterNotifier(this); } } using callback_type = std::function; //! \brief Connect object to this Notifier. template void connect(O* p, const F& fn) { slots[p] = std::move(construct_mem_fn(fn, p, aux::gen_int_sequence{})); if(p && dynamic_cast(p)) { dynamic_cast(p)->registerNotifier(this); } } //! \brief Disconnect object from this Notifier. void disconnect(Listener* object) { slots.erase(object); } //! \brief Activate this notifier by pretending it is a function. //! Example: Notifier foo; foo(42); void operator()(Args... args) { for(auto& slot : slots) { slot.second(args...); } } private: std::map slots; template callback_type construct_mem_fn(const F& fn, O* p, aux::int_sequence) const { return std::bind(fn, p, aux::placeholder{}...); } }; //} // GUI:: #define CONNECT(SRC, SIG, TAR, SLO) (SRC)->SIG.connect(TAR, SLO) drumgizmo-0.9.14/src/configfile.h0000644000076400017500000000324412677254311013627 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * configfile.h * * Thu May 14 14:51:38 CEST 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include class ConfigFile { public: ConfigFile(std::string const& filename); virtual ~ConfigFile(); virtual bool load(); virtual bool save(); virtual std::string getValue(const std::string& key) const; virtual void setValue(const std::string& key, const std::string& value); protected: std::map values; std::string filename; virtual bool open(std::string mode); void close(); std::string readLine(); bool parseLine(const std::string& line); FILE* fp; }; drumgizmo-0.9.14/src/chresampler.h0000644000076400017500000000524613077120603014022 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * chresampler.h * * Tue Sep 23 20:42:14 CEST 2014 * Copyright 2014 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include //! Channel resampler class using either zita-resampler or secret rabbit code //! (really!!) depending on the value of the WITH_RESAMPLER macro. //! If WITH_RESAMPLER is unset the resampler is disabled entirely. //! If WITH_RESAMPLER=="zita" zita-resampler will be used. //! If WITH_RESAMPLER=="src" Secret Rabbit Code will be used. class CHResampler { public: CHResampler(); ~CHResampler(); void setup(double input_fs, double output_fs); void setInputSamples(float* samples, std::size_t count); void setOutputSamples(float* samples, std::size_t count); void process(); std::size_t getLatency() const; std::size_t getInputSampleCount() const; std::size_t getOutputSampleCount() const; double getRatio() const; #ifdef WITH_RESAMPLER private: class Prv; std::unique_ptr prv; double input_fs{44100.0}; double output_fs{44100.0}; #endif /*WITH_RESAMPLER*/ }; //! Container class for the resampler array. class Resamplers { public: void setup(double input_fs, double output_fs) { for(auto& resampler : resamplers) { resampler.setup(input_fs, output_fs); } } bool isActive() const { return getRatio() != 1.0; } double getRatio() const { return resamplers[0].getRatio(); } CHResampler& operator[](std::size_t idx) { return resamplers[idx]; } std::size_t getOutputSampleCount() const { return resamplers[0].getOutputSampleCount(); } std::size_t getLatency() const { return resamplers[0].getLatency(); } std::array resamplers; }; drumgizmo-0.9.14/src/bytesizeparser.h0000644000076400017500000000234213077120603014562 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * bytesize_parser.h * * Sat Mar 4 18:00:12 CET 2017 * Copyright 2017 Goran Mekić * meka@tilda.center ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include //! Returns size in bytes //! \param argument The size in n{k,M,G} format std::size_t byteSizeParser(const std::string& argument); drumgizmo-0.9.14/src/drumkit.h0000644000076400017500000000350713077120603013172 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkit.h * * Wed Mar 9 15:27:26 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "channel.h" #include "instrument.h" #include "versionstr.h" class DrumKit { friend class DrumKitParser; public: DrumKit(); ~DrumKit(); std::string getFile() const; std::string getName() const; std::string getDescription() const; VersionStr getVersion() const; Instruments instruments; Channels channels; void clear(); bool isValid() const; std::size_t getSamplerate() const; //! Get the number of audio files (as in single channel) in this drumkit. std::size_t getNumberOfFiles() const; private: void* magic{nullptr}; std::string _file; std::string _name; std::string _description; std::size_t _samplerate{0}; VersionStr _version; }; drumgizmo-0.9.14/src/audioinputengine.h0000644000076400017500000000336713077120603015066 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audioinputengine.h * * Sun Feb 27 11:33:19 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "instrument.h" class AudioInputEngine { public: virtual ~AudioInputEngine() = default; virtual bool init(const Instruments& instruments) = 0; virtual void setParm(const std::string& parm, const std::string& value) = 0; virtual bool start() = 0; virtual void stop() = 0; virtual void pre() = 0; virtual void run(size_t pos, size_t len, std::vector& events) = 0; virtual void post() = 0; //! Reimplement to receive sample rate changes. virtual void setSampleRate(double sample_rate) {} virtual bool isFreewheeling() const = 0; }; drumgizmo-0.9.14/src/midimapparser.h0000644000076400017500000000251112704421442014343 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midimapparser.h * * Mon Aug 8 16:55:30 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "saxparser.h" #include "midimapper.h" class MidiMapParser : public SAXParser { public: void startTag(const std::string& name, const attr_t& attr) override; midimap_t midimap; }; drumgizmo-0.9.14/src/midimapper.h0000644000076400017500000000310113103350542013625 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midimapper.h * * Mon Jul 21 15:24:07 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include typedef std::map midimap_t; typedef std::map instrmap_t; class MidiMapper { public: //! Lookup note in map and return its index. //! \returns -1 if not found or the note index. int lookup(int note); //! Set new map sets. void swap(instrmap_t& instrmap, midimap_t& midimap); private: instrmap_t instrmap; midimap_t midimap; std::mutex mutex; }; drumgizmo-0.9.14/src/midimapper.cc0000644000076400017500000000313712713612223013777 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midimapper.cc * * Mon Jul 21 15:24:08 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "midimapper.h" int MidiMapper::lookup(int note) { std::lock_guard guard(mutex); if(midimap.find(note) == midimap.end()) { return -1; } const std::string& instr = midimap[note]; if(instrmap.find(instr) == instrmap.end()) { return -1; } return instrmap[instr]; } void MidiMapper::swap(instrmap_t& instrmap, midimap_t& midimap) { std::lock_guard guard(mutex); std::swap(this->instrmap, instrmap); std::swap(this->midimap, midimap); } drumgizmo-0.9.14/src/staminafilter.h0000644000076400017500000000305513077120604014354 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * staminafilter.h * * Sat Jun 11 08:49:36 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "inputfilter.h" struct Settings; class StaminaFilter : public InputFilter { public: StaminaFilter(Settings& settings); bool filter(event_t& event, std::size_t pos) override; // Note getLatency not overloaded because this filter doesn't add latency. private: Settings& settings; std::map> modifiers; }; drumgizmo-0.9.14/src/sample.h0000644000076400017500000000317612716402065013002 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * sample.h * * Mon Jul 21 10:23:20 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "channel.h" #include "audiofile.h" using AudioFiles = std::map; class Sample { friend class InstrumentParser; friend class PowerList; public: Sample(const std::string& name, float power); ~Sample(); AudioFile* getAudioFile(InstrumentChannel *instrument_channel); private: void addAudioFile(InstrumentChannel* instrument_channel, AudioFile* audio_file); std::string name; float power; AudioFiles audiofiles; }; drumgizmo-0.9.14/src/audiocacheeventhandler.cc0000644000076400017500000001477113077120603016343 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheeventhandler.cc * * Sun Jan 3 19:57:55 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audiocacheeventhandler.h" #include #include #include "audiocachefile.h" #include "audiocache.h" #include "audiocacheidmanager.h" enum class EventType { LoadNext, Close, }; class CacheEvent { public: EventType event_type; // For close event: cacheid_t id; // For load next event: size_t pos; AudioCacheFile* afile; CacheChannels channels; }; AudioCacheEventHandler::AudioCacheEventHandler(AudioCacheIDManager& id_manager) : id_manager(id_manager) { } AudioCacheEventHandler::~AudioCacheEventHandler() { // Close all ids already enqueued to be closed. clearEvents(); auto active_ids = id_manager.getActiveIDs(); for(auto id : active_ids) { handleCloseCache(id); } } void AudioCacheEventHandler::start() { if(running) { return; } running = true; run(); sem_run.wait(); } void AudioCacheEventHandler::stop() { if(!running) { return; } running = false; sem.post(); wait_stop(); } void AudioCacheEventHandler::setThreaded(bool threaded) { this->threaded.store(threaded); } bool AudioCacheEventHandler::isThreaded() const { return threaded.load(); } void AudioCacheEventHandler::lock() { mutex.lock(); } void AudioCacheEventHandler::unlock() { mutex.unlock(); } void AudioCacheEventHandler::pushLoadNextEvent(AudioCacheFile* afile, size_t channel, size_t pos, sample_t* buffer, volatile bool* ready) { CacheEvent cache_event; cache_event.event_type = EventType::LoadNext; cache_event.pos = pos; cache_event.afile = afile; CacheChannel c; c.channel = channel; c.samples = buffer; *ready = false; c.ready = ready; cache_event.channels.insert(cache_event.channels.end(), c); pushEvent(cache_event); } void AudioCacheEventHandler::pushCloseEvent(cacheid_t id) { CacheEvent cache_event; cache_event.event_type = EventType::Close; cache_event.id = id; pushEvent(cache_event); } void AudioCacheEventHandler::setChunkSize(size_t chunksize) { DEBUG(cache, "%s\n", __PRETTY_FUNCTION__); // We should already locked when this method is called. //assert(!mutex.try_lock()); if(this->chunksize == chunksize) { return; } DEBUG(cache, "setChunkSize 1\n"); // Remove all events from event queue. clearEvents(); DEBUG(cache, "setChunkSize 2\n"); // Skip all active cacheids and make their buffers point at nodata. id_manager.disableActive(); DEBUG(cache, "setChunkSize 3\n"); this->chunksize = chunksize; } size_t AudioCacheEventHandler::getChunkSize() const { return chunksize; } AudioCacheFile& AudioCacheEventHandler::openFile(const std::string& filename) { std::lock_guard lock(mutex); return files.getFile(filename); } void AudioCacheEventHandler::clearEvents() { // Iterate all events ignoring load events and handling close events. for(auto& event : eventqueue) { if(event.event_type == EventType::Close) { handleCloseCache(event.id); // This method does not lock. } } eventqueue.clear(); } void AudioCacheEventHandler::handleLoadNextEvent(CacheEvent& cache_event) { assert(cache_event.afile); // Assert that we have an audio file cache_event.afile->readChunk(cache_event.channels, cache_event.pos, chunksize); } void AudioCacheEventHandler::handleCloseEvent(CacheEvent& cache_event) { std::lock_guard lock(mutex); handleCloseCache(cache_event.id); } void AudioCacheEventHandler::handleCloseCache(cacheid_t id) { auto& cache = id_manager.getCache(id); // Only close the file if we have also opened it. if(cache.afile) { files.releaseFile(cache.afile->getFilename()); } delete[] cache.front; delete[] cache.back; id_manager.releaseID(id); } void AudioCacheEventHandler::handleEvent(CacheEvent& cache_event) { switch(cache_event.event_type) { case EventType::LoadNext: handleLoadNextEvent(cache_event); break; case EventType::Close: handleCloseEvent(cache_event); break; } } void AudioCacheEventHandler::thread_main() { sem_run.post(); // Signal that the thread has been started while(running) { sem.wait(); mutex.lock(); if(eventqueue.empty()) { mutex.unlock(); continue; } CacheEvent cache_event = eventqueue.front(); eventqueue.pop_front(); mutex.unlock(); handleEvent(cache_event); } } void AudioCacheEventHandler::pushEvent(CacheEvent& cache_event) { if(!threaded.load()) { handleEvent(cache_event); return; } { std::lock_guard lock(mutex); bool found = false; if(cache_event.event_type == EventType::LoadNext) { for(auto& queued_event : eventqueue) { if(queued_event.event_type == EventType::LoadNext) { assert(cache_event.afile); // Assert that we have an audio file assert(queued_event.afile); // Assert that we have an audio file if((cache_event.afile->getFilename() == queued_event.afile->getFilename()) && (cache_event.pos == queued_event.pos)) { // Append channel and buffer to the existing event. queued_event.channels.insert(queued_event.channels.end(), cache_event.channels.begin(), cache_event.channels.end()); found = true; break; } } } } if(!found) { // The event was not already on the list, create a new one. eventqueue.push_back(cache_event); } } sem.post(); } drumgizmo-0.9.14/src/Makefile.in0000644000076400017500000016510113106051611013401 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 \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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 = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libdg_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) nodist_libdg_la_OBJECTS = libdg_la-audiocachefile.lo \ libdg_la-audiocache.lo libdg_la-audiocacheeventhandler.lo \ libdg_la-audiocacheidmanager.lo \ libdg_la-audioinputenginemidi.lo libdg_la-audiofile.lo \ libdg_la-bytesizeparser.lo libdg_la-channel.lo \ libdg_la-channelmixer.lo libdg_la-chresampler.lo \ libdg_la-configfile.lo libdg_la-configparser.lo \ libdg_la-drumgizmo.lo libdg_la-drumkit.lo \ libdg_la-drumkitloader.lo libdg_la-drumkitparser.lo \ libdg_la-events.lo libdg_la-inputprocessor.lo \ libdg_la-instrument.lo libdg_la-instrumentparser.lo \ libdg_la-latencyfilter.lo libdg_la-memchecker.lo \ libdg_la-midimapparser.lo libdg_la-midimapper.lo \ libdg_la-path.lo libdg_la-powerlist.lo libdg_la-random.lo \ libdg_la-sample.lo libdg_la-semaphore.lo libdg_la-saxparser.lo \ libdg_la-staminafilter.lo libdg_la-thread.lo \ libdg_la-versionstr.lo libdg_la_OBJECTS = $(nodist_libdg_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 = 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 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(nodist_libdg_la_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) # 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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ noinst_LTLIBRARIES = libdg.la libdg_la_CPPFLAGS = \ -I$(top_srcdir)/include -I$(top_srcdir)/hugin \ $(SSEFLAGS) \ $(ZITA_CPPFLAGS) $(SNDFILE_CFLAGS) $(EXPAT_CFLAGS) $(SAMPLERATE_CFLAGS) \ $(PTHREAD_CFLAGS) libdg_la_LIBADD = \ $(ZITA_LIBS) $(SNDFILE_LIBS) $(EXPAT_LIBS) $(SAMPLERATE_LIBS) \ $(PTHREAD_LIBS) # If you add a file here, remember to add it to plugin/Makefile.mingw32.in nodist_libdg_la_SOURCES = \ audiocachefile.cc \ audiocache.cc \ audiocacheeventhandler.cc \ audiocacheidmanager.cc \ audioinputenginemidi.cc \ audiofile.cc \ bytesizeparser.cc \ channel.cc \ channelmixer.cc \ chresampler.cc \ configfile.cc \ configparser.cc \ drumgizmo.cc \ drumkit.cc \ drumkitloader.cc \ drumkitparser.cc \ events.cc \ inputprocessor.cc \ instrument.cc \ instrumentparser.cc \ latencyfilter.cc \ memchecker.cc \ midimapparser.cc \ midimapper.cc \ path.cc \ powerlist.cc \ random.cc \ sample.cc \ semaphore.cc \ saxparser.cc \ staminafilter.cc \ thread.cc \ versionstr.cc EXTRA_DIST = \ $(nodist_libdg_la_SOURCES) \ atomic.h \ audio.h \ audiocache.h \ audiocacheeventhandler.h \ audiocachefile.h \ audiocacheidmanager.h \ audiofile.h \ audioinputengine.h \ audioinputenginemidi.h \ audiooutputengine.h \ beatmapper.h \ bytesizeparser.h \ channel.h \ channelmixer.h \ chresampler.h \ configfile.h \ configparser.h \ cpp11fix.h \ drumgizmo.h \ drumkit.h \ drumkitloader.h \ drumkitparser.h \ events.h \ inputfilter.h \ inputprocessor.h \ instrument.h \ instrumentparser.h \ latencyfilter.h \ memchecker.h \ midimapparser.h \ midimapper.h \ nolocale.h \ notifier.h \ path.h \ platform.h \ powerlist.h \ random.h \ rangemap.h \ sample.h \ saxparser.h \ semaphore.h \ settings.h \ staminafilter.h \ syncedsettings.h \ thread.h \ versionstr.h all: all-am .SUFFIXES: .SUFFIXES: .cc .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/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): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_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}; \ } libdg.la: $(libdg_la_OBJECTS) $(libdg_la_DEPENDENCIES) $(EXTRA_libdg_la_DEPENDENCIES) $(AM_V_CXXLD)$(CXXLINK) $(libdg_la_OBJECTS) $(libdg_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiocache.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiocacheeventhandler.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiocachefile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiocacheidmanager.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audiofile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-audioinputenginemidi.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-bytesizeparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-channel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-channelmixer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-chresampler.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-configfile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-configparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-drumgizmo.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-drumkit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-drumkitloader.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-drumkitparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-events.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-inputprocessor.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-instrument.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-instrumentparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-latencyfilter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-memchecker.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-midimapparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-midimapper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-path.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-powerlist.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-random.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-sample.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-saxparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-semaphore.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-staminafilter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-thread.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdg_la-versionstr.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< libdg_la-audiocachefile.lo: audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiocachefile.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiocachefile.Tpo -c -o libdg_la-audiocachefile.lo `test -f 'audiocachefile.cc' || echo '$(srcdir)/'`audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiocachefile.Tpo $(DEPDIR)/libdg_la-audiocachefile.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocachefile.cc' object='libdg_la-audiocachefile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiocachefile.lo `test -f 'audiocachefile.cc' || echo '$(srcdir)/'`audiocachefile.cc libdg_la-audiocache.lo: audiocache.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiocache.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiocache.Tpo -c -o libdg_la-audiocache.lo `test -f 'audiocache.cc' || echo '$(srcdir)/'`audiocache.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiocache.Tpo $(DEPDIR)/libdg_la-audiocache.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocache.cc' object='libdg_la-audiocache.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiocache.lo `test -f 'audiocache.cc' || echo '$(srcdir)/'`audiocache.cc libdg_la-audiocacheeventhandler.lo: audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiocacheeventhandler.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiocacheeventhandler.Tpo -c -o libdg_la-audiocacheeventhandler.lo `test -f 'audiocacheeventhandler.cc' || echo '$(srcdir)/'`audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiocacheeventhandler.Tpo $(DEPDIR)/libdg_la-audiocacheeventhandler.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocacheeventhandler.cc' object='libdg_la-audiocacheeventhandler.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiocacheeventhandler.lo `test -f 'audiocacheeventhandler.cc' || echo '$(srcdir)/'`audiocacheeventhandler.cc libdg_la-audiocacheidmanager.lo: audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiocacheidmanager.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiocacheidmanager.Tpo -c -o libdg_la-audiocacheidmanager.lo `test -f 'audiocacheidmanager.cc' || echo '$(srcdir)/'`audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiocacheidmanager.Tpo $(DEPDIR)/libdg_la-audiocacheidmanager.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocacheidmanager.cc' object='libdg_la-audiocacheidmanager.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiocacheidmanager.lo `test -f 'audiocacheidmanager.cc' || echo '$(srcdir)/'`audiocacheidmanager.cc libdg_la-audioinputenginemidi.lo: audioinputenginemidi.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audioinputenginemidi.lo -MD -MP -MF $(DEPDIR)/libdg_la-audioinputenginemidi.Tpo -c -o libdg_la-audioinputenginemidi.lo `test -f 'audioinputenginemidi.cc' || echo '$(srcdir)/'`audioinputenginemidi.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audioinputenginemidi.Tpo $(DEPDIR)/libdg_la-audioinputenginemidi.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audioinputenginemidi.cc' object='libdg_la-audioinputenginemidi.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audioinputenginemidi.lo `test -f 'audioinputenginemidi.cc' || echo '$(srcdir)/'`audioinputenginemidi.cc libdg_la-audiofile.lo: audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-audiofile.lo -MD -MP -MF $(DEPDIR)/libdg_la-audiofile.Tpo -c -o libdg_la-audiofile.lo `test -f 'audiofile.cc' || echo '$(srcdir)/'`audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-audiofile.Tpo $(DEPDIR)/libdg_la-audiofile.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiofile.cc' object='libdg_la-audiofile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-audiofile.lo `test -f 'audiofile.cc' || echo '$(srcdir)/'`audiofile.cc libdg_la-bytesizeparser.lo: bytesizeparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-bytesizeparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-bytesizeparser.Tpo -c -o libdg_la-bytesizeparser.lo `test -f 'bytesizeparser.cc' || echo '$(srcdir)/'`bytesizeparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-bytesizeparser.Tpo $(DEPDIR)/libdg_la-bytesizeparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bytesizeparser.cc' object='libdg_la-bytesizeparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-bytesizeparser.lo `test -f 'bytesizeparser.cc' || echo '$(srcdir)/'`bytesizeparser.cc libdg_la-channel.lo: channel.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-channel.lo -MD -MP -MF $(DEPDIR)/libdg_la-channel.Tpo -c -o libdg_la-channel.lo `test -f 'channel.cc' || echo '$(srcdir)/'`channel.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-channel.Tpo $(DEPDIR)/libdg_la-channel.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='channel.cc' object='libdg_la-channel.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-channel.lo `test -f 'channel.cc' || echo '$(srcdir)/'`channel.cc libdg_la-channelmixer.lo: channelmixer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-channelmixer.lo -MD -MP -MF $(DEPDIR)/libdg_la-channelmixer.Tpo -c -o libdg_la-channelmixer.lo `test -f 'channelmixer.cc' || echo '$(srcdir)/'`channelmixer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-channelmixer.Tpo $(DEPDIR)/libdg_la-channelmixer.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='channelmixer.cc' object='libdg_la-channelmixer.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-channelmixer.lo `test -f 'channelmixer.cc' || echo '$(srcdir)/'`channelmixer.cc libdg_la-chresampler.lo: chresampler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-chresampler.lo -MD -MP -MF $(DEPDIR)/libdg_la-chresampler.Tpo -c -o libdg_la-chresampler.lo `test -f 'chresampler.cc' || echo '$(srcdir)/'`chresampler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-chresampler.Tpo $(DEPDIR)/libdg_la-chresampler.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='chresampler.cc' object='libdg_la-chresampler.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-chresampler.lo `test -f 'chresampler.cc' || echo '$(srcdir)/'`chresampler.cc libdg_la-configfile.lo: configfile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-configfile.lo -MD -MP -MF $(DEPDIR)/libdg_la-configfile.Tpo -c -o libdg_la-configfile.lo `test -f 'configfile.cc' || echo '$(srcdir)/'`configfile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-configfile.Tpo $(DEPDIR)/libdg_la-configfile.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='configfile.cc' object='libdg_la-configfile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-configfile.lo `test -f 'configfile.cc' || echo '$(srcdir)/'`configfile.cc libdg_la-configparser.lo: configparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-configparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-configparser.Tpo -c -o libdg_la-configparser.lo `test -f 'configparser.cc' || echo '$(srcdir)/'`configparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-configparser.Tpo $(DEPDIR)/libdg_la-configparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='configparser.cc' object='libdg_la-configparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-configparser.lo `test -f 'configparser.cc' || echo '$(srcdir)/'`configparser.cc libdg_la-drumgizmo.lo: drumgizmo.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-drumgizmo.lo -MD -MP -MF $(DEPDIR)/libdg_la-drumgizmo.Tpo -c -o libdg_la-drumgizmo.lo `test -f 'drumgizmo.cc' || echo '$(srcdir)/'`drumgizmo.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-drumgizmo.Tpo $(DEPDIR)/libdg_la-drumgizmo.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumgizmo.cc' object='libdg_la-drumgizmo.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-drumgizmo.lo `test -f 'drumgizmo.cc' || echo '$(srcdir)/'`drumgizmo.cc libdg_la-drumkit.lo: drumkit.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-drumkit.lo -MD -MP -MF $(DEPDIR)/libdg_la-drumkit.Tpo -c -o libdg_la-drumkit.lo `test -f 'drumkit.cc' || echo '$(srcdir)/'`drumkit.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-drumkit.Tpo $(DEPDIR)/libdg_la-drumkit.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit.cc' object='libdg_la-drumkit.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-drumkit.lo `test -f 'drumkit.cc' || echo '$(srcdir)/'`drumkit.cc libdg_la-drumkitloader.lo: drumkitloader.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-drumkitloader.lo -MD -MP -MF $(DEPDIR)/libdg_la-drumkitloader.Tpo -c -o libdg_la-drumkitloader.lo `test -f 'drumkitloader.cc' || echo '$(srcdir)/'`drumkitloader.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-drumkitloader.Tpo $(DEPDIR)/libdg_la-drumkitloader.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkitloader.cc' object='libdg_la-drumkitloader.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-drumkitloader.lo `test -f 'drumkitloader.cc' || echo '$(srcdir)/'`drumkitloader.cc libdg_la-drumkitparser.lo: drumkitparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-drumkitparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-drumkitparser.Tpo -c -o libdg_la-drumkitparser.lo `test -f 'drumkitparser.cc' || echo '$(srcdir)/'`drumkitparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-drumkitparser.Tpo $(DEPDIR)/libdg_la-drumkitparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkitparser.cc' object='libdg_la-drumkitparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-drumkitparser.lo `test -f 'drumkitparser.cc' || echo '$(srcdir)/'`drumkitparser.cc libdg_la-events.lo: events.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-events.lo -MD -MP -MF $(DEPDIR)/libdg_la-events.Tpo -c -o libdg_la-events.lo `test -f 'events.cc' || echo '$(srcdir)/'`events.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-events.Tpo $(DEPDIR)/libdg_la-events.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='events.cc' object='libdg_la-events.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-events.lo `test -f 'events.cc' || echo '$(srcdir)/'`events.cc libdg_la-inputprocessor.lo: inputprocessor.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-inputprocessor.lo -MD -MP -MF $(DEPDIR)/libdg_la-inputprocessor.Tpo -c -o libdg_la-inputprocessor.lo `test -f 'inputprocessor.cc' || echo '$(srcdir)/'`inputprocessor.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-inputprocessor.Tpo $(DEPDIR)/libdg_la-inputprocessor.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='inputprocessor.cc' object='libdg_la-inputprocessor.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-inputprocessor.lo `test -f 'inputprocessor.cc' || echo '$(srcdir)/'`inputprocessor.cc libdg_la-instrument.lo: instrument.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-instrument.lo -MD -MP -MF $(DEPDIR)/libdg_la-instrument.Tpo -c -o libdg_la-instrument.lo `test -f 'instrument.cc' || echo '$(srcdir)/'`instrument.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-instrument.Tpo $(DEPDIR)/libdg_la-instrument.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='instrument.cc' object='libdg_la-instrument.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-instrument.lo `test -f 'instrument.cc' || echo '$(srcdir)/'`instrument.cc libdg_la-instrumentparser.lo: instrumentparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-instrumentparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-instrumentparser.Tpo -c -o libdg_la-instrumentparser.lo `test -f 'instrumentparser.cc' || echo '$(srcdir)/'`instrumentparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-instrumentparser.Tpo $(DEPDIR)/libdg_la-instrumentparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='instrumentparser.cc' object='libdg_la-instrumentparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-instrumentparser.lo `test -f 'instrumentparser.cc' || echo '$(srcdir)/'`instrumentparser.cc libdg_la-latencyfilter.lo: latencyfilter.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-latencyfilter.lo -MD -MP -MF $(DEPDIR)/libdg_la-latencyfilter.Tpo -c -o libdg_la-latencyfilter.lo `test -f 'latencyfilter.cc' || echo '$(srcdir)/'`latencyfilter.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-latencyfilter.Tpo $(DEPDIR)/libdg_la-latencyfilter.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='latencyfilter.cc' object='libdg_la-latencyfilter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-latencyfilter.lo `test -f 'latencyfilter.cc' || echo '$(srcdir)/'`latencyfilter.cc libdg_la-memchecker.lo: memchecker.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-memchecker.lo -MD -MP -MF $(DEPDIR)/libdg_la-memchecker.Tpo -c -o libdg_la-memchecker.lo `test -f 'memchecker.cc' || echo '$(srcdir)/'`memchecker.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-memchecker.Tpo $(DEPDIR)/libdg_la-memchecker.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='memchecker.cc' object='libdg_la-memchecker.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-memchecker.lo `test -f 'memchecker.cc' || echo '$(srcdir)/'`memchecker.cc libdg_la-midimapparser.lo: midimapparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-midimapparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-midimapparser.Tpo -c -o libdg_la-midimapparser.lo `test -f 'midimapparser.cc' || echo '$(srcdir)/'`midimapparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-midimapparser.Tpo $(DEPDIR)/libdg_la-midimapparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='midimapparser.cc' object='libdg_la-midimapparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-midimapparser.lo `test -f 'midimapparser.cc' || echo '$(srcdir)/'`midimapparser.cc libdg_la-midimapper.lo: midimapper.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-midimapper.lo -MD -MP -MF $(DEPDIR)/libdg_la-midimapper.Tpo -c -o libdg_la-midimapper.lo `test -f 'midimapper.cc' || echo '$(srcdir)/'`midimapper.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-midimapper.Tpo $(DEPDIR)/libdg_la-midimapper.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='midimapper.cc' object='libdg_la-midimapper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-midimapper.lo `test -f 'midimapper.cc' || echo '$(srcdir)/'`midimapper.cc libdg_la-path.lo: path.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-path.lo -MD -MP -MF $(DEPDIR)/libdg_la-path.Tpo -c -o libdg_la-path.lo `test -f 'path.cc' || echo '$(srcdir)/'`path.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-path.Tpo $(DEPDIR)/libdg_la-path.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='path.cc' object='libdg_la-path.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-path.lo `test -f 'path.cc' || echo '$(srcdir)/'`path.cc libdg_la-powerlist.lo: powerlist.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-powerlist.lo -MD -MP -MF $(DEPDIR)/libdg_la-powerlist.Tpo -c -o libdg_la-powerlist.lo `test -f 'powerlist.cc' || echo '$(srcdir)/'`powerlist.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-powerlist.Tpo $(DEPDIR)/libdg_la-powerlist.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='powerlist.cc' object='libdg_la-powerlist.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-powerlist.lo `test -f 'powerlist.cc' || echo '$(srcdir)/'`powerlist.cc libdg_la-random.lo: random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-random.lo -MD -MP -MF $(DEPDIR)/libdg_la-random.Tpo -c -o libdg_la-random.lo `test -f 'random.cc' || echo '$(srcdir)/'`random.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-random.Tpo $(DEPDIR)/libdg_la-random.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='random.cc' object='libdg_la-random.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-random.lo `test -f 'random.cc' || echo '$(srcdir)/'`random.cc libdg_la-sample.lo: sample.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-sample.lo -MD -MP -MF $(DEPDIR)/libdg_la-sample.Tpo -c -o libdg_la-sample.lo `test -f 'sample.cc' || echo '$(srcdir)/'`sample.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-sample.Tpo $(DEPDIR)/libdg_la-sample.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sample.cc' object='libdg_la-sample.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-sample.lo `test -f 'sample.cc' || echo '$(srcdir)/'`sample.cc libdg_la-semaphore.lo: semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-semaphore.lo -MD -MP -MF $(DEPDIR)/libdg_la-semaphore.Tpo -c -o libdg_la-semaphore.lo `test -f 'semaphore.cc' || echo '$(srcdir)/'`semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-semaphore.Tpo $(DEPDIR)/libdg_la-semaphore.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='semaphore.cc' object='libdg_la-semaphore.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-semaphore.lo `test -f 'semaphore.cc' || echo '$(srcdir)/'`semaphore.cc libdg_la-saxparser.lo: saxparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-saxparser.lo -MD -MP -MF $(DEPDIR)/libdg_la-saxparser.Tpo -c -o libdg_la-saxparser.lo `test -f 'saxparser.cc' || echo '$(srcdir)/'`saxparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-saxparser.Tpo $(DEPDIR)/libdg_la-saxparser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='saxparser.cc' object='libdg_la-saxparser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-saxparser.lo `test -f 'saxparser.cc' || echo '$(srcdir)/'`saxparser.cc libdg_la-staminafilter.lo: staminafilter.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-staminafilter.lo -MD -MP -MF $(DEPDIR)/libdg_la-staminafilter.Tpo -c -o libdg_la-staminafilter.lo `test -f 'staminafilter.cc' || echo '$(srcdir)/'`staminafilter.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-staminafilter.Tpo $(DEPDIR)/libdg_la-staminafilter.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='staminafilter.cc' object='libdg_la-staminafilter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-staminafilter.lo `test -f 'staminafilter.cc' || echo '$(srcdir)/'`staminafilter.cc libdg_la-thread.lo: thread.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-thread.lo -MD -MP -MF $(DEPDIR)/libdg_la-thread.Tpo -c -o libdg_la-thread.lo `test -f 'thread.cc' || echo '$(srcdir)/'`thread.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-thread.Tpo $(DEPDIR)/libdg_la-thread.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='thread.cc' object='libdg_la-thread.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-thread.lo `test -f 'thread.cc' || echo '$(srcdir)/'`thread.cc libdg_la-versionstr.lo: versionstr.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdg_la-versionstr.lo -MD -MP -MF $(DEPDIR)/libdg_la-versionstr.Tpo -c -o libdg_la-versionstr.lo `test -f 'versionstr.cc' || echo '$(srcdir)/'`versionstr.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdg_la-versionstr.Tpo $(DEPDIR)/libdg_la-versionstr.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='versionstr.cc' object='libdg_la-versionstr.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdg_la-versionstr.lo `test -f 'versionstr.cc' || echo '$(srcdir)/'`versionstr.cc 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: 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." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 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-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: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES 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-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 # 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: drumgizmo-0.9.14/src/instrumentparser.h0000644000076400017500000000334313077120603015136 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * instrumentparser.h * * Wed Mar 9 13:22:24 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "saxparser.h" #include "instrument.h" #include #include class InstrumentParser : public SAXParser { public: InstrumentParser(Instrument &instrument); virtual ~InstrumentParser() = default; virtual int parseFile(const std::string& filename) override; std::vector channellist; protected: virtual void startTag(const std::string& name, const attr_t& attr) override; virtual void endTag(const std::string& name) override; private: Instrument& instrument; Sample* sample{nullptr}; std::string path; level_t lower{0}; level_t upper{0}; }; drumgizmo-0.9.14/src/versionstr.cc0000644000076400017500000000703712677254311014102 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * versionstr.cc * * Wed Jul 22 11:41:32 CEST 2009 * Copyright 2009 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "versionstr.h" #include #include #include // Workaround - major, minor and patch are defined as macros when using // _GNU_SOURCES #ifdef major #undef major #endif #ifdef minor #undef minor #endif #ifdef patch #undef patch #endif VersionStr::VersionStr(const std::string& v) throw(const char*) { memset(version, 0, sizeof(version)); set(v); } VersionStr::VersionStr(size_t major, size_t minor, size_t patch) { version[0] = major; version[1] = minor; version[2] = patch; } void VersionStr::set(const std::string& v) throw(const char*) { std::string num; size_t idx = 0; for(size_t i = 0; i < v.length(); i++) { if(v[i] == '.') { if(idx > 2) { throw "Version string is too long."; } version[idx] = atoi(num.c_str()); idx++; num = ""; } else if(v[i] >= '0' && v[i] <= '9') { num.append(1, v[i]); } else { throw "Version string contains illegal character."; } } if(idx > 2) { throw "Version string is too long."; } version[idx] = atoi(num.c_str()); } VersionStr::operator std::string() const { std::string v; char buf[64]; if(patch()) { sprintf(buf, "%d.%d.%d", (int)major(), (int)minor(), (int)patch()); } else { sprintf(buf, "%d.%d", (int)major(), (int)minor()); } v = buf; return v; } void VersionStr::operator=(const std::string& v) throw(const char*) { set(v); } // return a - b simplified as -1, 0 or 1 static int vdiff(const VersionStr& a, const VersionStr& b) { if(a.major() < b.major()) { return -1; } if(a.major() > b.major()) { return 1; } if(a.minor() < b.minor()) { return -1; } if(a.minor() > b.minor()) { return 1; } if(a.patch() < b.patch()) { return -1; } if(a.patch() > b.patch()) { return 1; } return 0; } bool VersionStr::operator<(const VersionStr& other) const { return vdiff(*this, other) == -1; } bool VersionStr::operator>(const VersionStr& other) const { return vdiff(*this, other) == 1; } bool VersionStr::operator==(const VersionStr& other) const { return vdiff(*this, other) == 0; } bool VersionStr::operator<=(const VersionStr& other) const { return vdiff(*this, other) != 1; } bool VersionStr::operator>=(const VersionStr& other) const { return vdiff(*this, other) != -1; } size_t VersionStr::major() const { return version[0]; } size_t VersionStr::minor() const { return version[1]; } size_t VersionStr::patch() const { return version[2]; } drumgizmo-0.9.14/src/events.cc0000644000076400017500000000327213103350520013145 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * event.cc * * Sat Sep 18 22:02:16 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "events.h" void EventQueue::post(Event* event, timepos_t time) { std::lock_guard guard(mutex); event->offset = time; queue.insert(std::pair(time, event)); } Event* EventQueue::take(timepos_t time) { std::lock_guard guard(mutex); std::multimap::iterator i = queue.find(time); if(i == queue.end()) return NULL; Event* event = i->second; queue.erase(i); return event; } bool EventQueue::hasEvent(timepos_t time) { std::lock_guard guard(mutex); return queue.find(time) != queue.end(); } drumgizmo-0.9.14/src/audiocacheidmanager.cc0000644000076400017500000000575312676564357015641 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheidmanager.cc * * Tue Jan 5 10:59:37 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audiocacheidmanager.h" #include #include AudioCacheIDManager::~AudioCacheIDManager() { assert(available_ids.size() == id2cache.size()); // All ids should be released. } void AudioCacheIDManager::init(unsigned int capacity) { std::lock_guard guard(mutex); id2cache.resize(capacity); available_ids.resize(capacity); for(size_t i = 0; i < capacity; ++i) { available_ids[i] = i; } } cache_t& AudioCacheIDManager::getCache(cacheid_t id) { std::lock_guard guard(mutex); assert(id != CACHE_NOID); assert(id != CACHE_DUMMYID); assert(id >= 0); assert(id < (int)id2cache.size()); assert(id2cache[id].id == id); return id2cache[id]; } cacheid_t AudioCacheIDManager::registerID(const cache_t& cache) { std::lock_guard guard(mutex); cacheid_t id = CACHE_NOID; if(available_ids.empty()) { return CACHE_DUMMYID; } else { id = available_ids.back(); available_ids.pop_back(); } assert(id2cache[id].id == CACHE_NOID); // Make sure it is not already in use id2cache[id] = cache; id2cache[id].id = id; return id; } void AudioCacheIDManager::releaseID(cacheid_t id) { std::lock_guard guard(mutex); assert(id2cache[id].id != CACHE_NOID); // Test if it wasn't already released. id2cache[id].id = CACHE_NOID; available_ids.push_back(id); } void AudioCacheIDManager::disableActive() { // Run through all active cache_ts and disable them. for(auto& cache : id2cache) { if(cache.id != CACHE_NOID) { // Force use of nodata in all of the rest of the next() calls: cache.localpos = std::numeric_limits::max(); cache.ready = false; } } } std::vector AudioCacheIDManager::getActiveIDs() { std::vector active_ids; for(auto& cache : id2cache) { if(cache.id != CACHE_NOID) { active_ids.push_back(cache.id); } } return active_ids; } drumgizmo-0.9.14/src/rangemap.h0000644000076400017500000000506512677254311013317 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * rangemap.h * * Wed Sep 22 19:17:49 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include template class RangeMap { public: void insert(T1 from, T1 to, T2 value); std::vector get(T1 from, T1 to); std::vector get(T1 at); private: std::multimap, T2> values; }; template void RangeMap::insert(T1 from, T1 to, T2 value) { if(from < to) { values.insert(std::make_pair(std::make_pair(from, to), value)); } else { values.insert(std::make_pair(std::make_pair(to, from), value)); } } template std::vector RangeMap::get(T1 from, T1 to) { std::vector res; typename std::multimap, T2>::iterator i = values.begin(); while(i != values.end()) { T1 a = i->first.first; T1 b = i->first.second; if((from >= a && to <= b) || // inside (from <= a && to >= b) || // containing (from <= a && to >= a && to <= b) || // overlapping lower (from >= a && from <= b && to >= b) // overlapping upper ) { res.push_back(i->second); } i++; } return res; } template std::vector RangeMap::get(T1 at) { std::vector res; typename std::multimap, T2>::iterator i = values.begin(); while(i != values.end()) { T1 a = i->first.first; T1 b = i->first.second; if(at >= a && at <= b) { res.push_back(i->second); } i++; } return res; } drumgizmo-0.9.14/src/thread.h0000644000076400017500000000307513077120604012763 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * thread.h * * Tue Jan 24 08:11:37 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "platform.h" #if DG_PLATFORM == DG_PLATFORM_WINDOWS #define WIN32_LEAN_AND_MEAN #include #else #include #endif class Thread { public: Thread(); virtual ~Thread(); void run(); void wait_stop(); protected: virtual void thread_main() = 0; private: #if DG_PLATFORM == DG_PLATFORM_WINDOWS HANDLE tid{nullptr}; static DWORD WINAPI #else pthread_t tid{0}; static void* #endif thread_run(void *data); }; drumgizmo-0.9.14/src/audiofile.h0000644000076400017500000000346313103350132013445 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiofile.h * * Tue Jul 22 17:14:11 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include #include "audio.h" class AudioFile { public: AudioFile(const std::string& filename, std::size_t filechannel); ~AudioFile(); void load(std::size_t sample_limit = std::numeric_limits::max()); void unload(); bool isLoaded() const; volatile std::size_t size{0}; // Full size of the file volatile std::size_t preloadedsize{0}; // Number of samples preloaded (in data) sample_t* data{nullptr}; std::string filename; bool isValid() const; std::mutex mutex; std::size_t filechannel; private: void* magic{nullptr}; volatile bool is_loaded{false}; }; drumgizmo-0.9.14/src/channel.cc0000644000076400017500000000323512677254311013270 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * channel.cc * * Tue Jul 22 17:14:28 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "channel.h" Channel::Channel(const std::string& name) : name{name} , num{NO_CHANNEL} { } #ifdef TEST_CHANNEL // deps: // cflags: // libs: #include "test.h" TEST_BEGIN; Channel c1; TEST_EQUAL_STR(c1.name, "", "Empty name?"); TEST_EQUAL_INT(c1.num, NO_CHANNEL, "No physical channel assigned?"); Channel c2("ch2"); TEST_EQUAL_STR(c2.name, "ch2", "Nonempty name?"); TEST_EQUAL_INT(c2.num, NO_CHANNEL, "No physical channel assigned?"); Channels channels; channels.push_back(c1); channels.push_back(c2); TEST_END; #endif /*TEST_CHANNEL*/ drumgizmo-0.9.14/src/chresampler.cc0000644000076400017500000001145613077120603014160 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * chresampler.cc * * Tue Sep 23 20:42:14 CEST 2014 * Copyright 2014 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "chresampler.h" #include "cpp11fix.h" #include #include #include #ifdef WITH_RESAMPLER #if defined(USE_ZITA) #include #elif defined(USE_SRC) #include #else #error "No resampler selected" #endif class CHResampler::Prv { public: #if defined(USE_ZITA) Resampler zita; #elif defined(USE_SRC) SRC_STATE* state; SRC_DATA data; #endif }; CHResampler::CHResampler() : prv{std::make_unique()} { #if defined(SRC) prv->state = nullptr; #endif } void CHResampler::setup(double input_fs, double output_fs) { if((input_fs == 0.0) || (output_fs == 0.0)) { return; } int nchan = 1; // always mono this->input_fs = input_fs; this->output_fs = output_fs; #if defined(USE_ZITA) DEBUG(resampler, "Using zita-resampler (%d -> %d)", (int)input_fs, (int)output_fs); // delay is 2 * hlen, 72 corresponds to delay introduced by SRC. int hlen = 72; // 16 ≤ hlen ≤ 96 prv->zita.reset(); prv->zita.setup(input_fs, output_fs, nchan, hlen); std::size_t null_size = prv->zita.inpsize() / 2 - 1; prv->zita.inp_data = nullptr; prv->zita.inp_count = null_size; prv->zita.out_data = nullptr; prv->zita.out_count = 1024 * 1024; prv->zita.process(); #elif defined(USE_SRC) DEBUG(resampler, "Using libsamplerate (%d -> %d)", (int)input_fs, (int)output_fs); int err; prv->state = src_new(SRC_SINC_BEST_QUALITY, nchan, &err); (void)err; // printf("err: %d\n", err); src_set_ratio(prv->state, output_fs / input_fs); prv->data.src_ratio = output_fs / input_fs; prv->data.end_of_input = 0; #endif } CHResampler::~CHResampler() { #if defined(USE_ZITA) #elif defined(USE_SRC) if(prv->state) { src_delete(prv->state); } #endif } void CHResampler::setInputSamples(float* samples, std::size_t count) { #if defined(USE_ZITA) prv->zita.inp_data = samples; prv->zita.inp_count = count; #elif defined(USE_SRC) prv->data.data_in = samples; prv->data.input_frames = count; #endif } void CHResampler::setOutputSamples(float* samples, std::size_t count) { #if defined(USE_ZITA) prv->zita.out_data = samples; prv->zita.out_count = count; #elif defined(USE_SRC) prv->data.data_out = samples; prv->data.output_frames = count; #endif } void CHResampler::process() { #if defined(USE_ZITA) prv->zita.process(); #elif defined(USE_SRC) src_process(prv->state, &prv->data); prv->data.output_frames -= prv->data.output_frames_gen; prv->data.data_out += prv->data.output_frames_gen; prv->data.input_frames -= prv->data.input_frames_used; prv->data.data_in += prv->data.input_frames_used; #endif } std::size_t CHResampler::getLatency() const { if (input_fs == output_fs) { return 0; } #if defined(USE_ZITA) return 0; #elif defined(USE_SRC) return 0; // TODO? #endif } std::size_t CHResampler::getInputSampleCount() const { #if defined(USE_ZITA) return prv->zita.inp_count; #elif defined(USE_SRC) return prv->data.input_frames; #endif } std::size_t CHResampler::getOutputSampleCount() const { #if defined(USE_ZITA) return prv->zita.out_count; #elif defined(USE_SRC) return prv->data.output_frames; #endif } double CHResampler::getRatio() const { return input_fs / output_fs; } #else // Dummy implementation CHResampler::CHResampler() {} CHResampler::~CHResampler() {} void CHResampler::setup(double, double) {} void CHResampler::setInputSamples(float*, std::size_t) {} void CHResampler::setOutputSamples(float*, std::size_t) {} void CHResampler::process() {} std::size_t CHResampler::getLatency() const { return 0; } std::size_t CHResampler::getInputSampleCount() const { return 0; } std::size_t CHResampler::getOutputSampleCount() const { return 0; } double CHResampler::getRatio() const { return 1; } #endif /*WITH_RESAMPLER*/ drumgizmo-0.9.14/src/audioinputenginemidi.cc0000644000076400017500000000437413077162050016070 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audioinputenginemidi.cc * * Mon Apr 1 20:13:25 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "audioinputenginemidi.h" #include "midimapparser.h" #include "drumgizmo.h" #include AudioInputEngineMidi::AudioInputEngineMidi() : refs(REFSFILE) { is_valid = false; } bool AudioInputEngineMidi::loadMidiMap(const std::string& file, const Instruments& instruments) { std::string f = file; if(refs.load()) { if(file.size() > 1 && file[0] == '@') { f = refs.getValue(file.substr(1)); } } else { ERR(drumkitparser, "Error reading refs.conf"); } midimap = ""; is_valid = false; DEBUG(mmap, "loadMidiMap(%s, i.size() == %d)\n", f.c_str(), (int)instruments.size()); if(f == "") { return false; } MidiMapParser midimap_parser; if(midimap_parser.parseFile(f)) { return false; } instrmap_t instrmap; for(size_t i = 0; i < instruments.size(); i++) { instrmap[instruments[i]->getName()] = i; } mmap.swap(instrmap, midimap_parser.midimap); midimap = file; is_valid = true; return true; } std::string AudioInputEngineMidi::getMidimapFile() const { return midimap; } bool AudioInputEngineMidi::isValid() const { return is_valid; } drumgizmo-0.9.14/src/versionstr.h0000644000076400017500000000607312677254311013743 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * versionstr.h * * Wed Jul 22 11:41:32 CEST 2009 * Copyright 2009 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include // Workaround - major, minor and patch are defined as macros when using // _GNU_SOURCES #ifdef major #undef major #endif #ifdef minor #undef minor #endif #ifdef patch #undef patch #endif /** * VersionStr class. * It hold a version number and is capable of correct sorting, as well as string * conversion both ways. */ class VersionStr { public: /** * Constructor. * Throws an exeption if the string does not parse. * @param v A std::string containing a version string on the form a.b or * a.b.c */ VersionStr(const std::string& v) throw(const char*); /** * Constructor. * @param major A size_t containing the major version number. * @param minor A size_t containing the minor version number. * @param patch A size_t containing the patch level. */ VersionStr(size_t major = 0, size_t minor = 0, size_t patch = 0); /** * Typecast to std::string operator. * It simply converts the version numbers into a string of the form * major.minor * (if patch i 0) or major.minor.patch */ operator std::string() const; /** * Assignment from std::string operator. * Same as in the VersionStr(std::string v) constructor. * Throws an exeption if the string does not parse. */ void operator=(const std::string& v) throw(const char*); /** * Comparison operator. * The version objects are sorted according to their major, minor and patch * level numbers. */ bool operator<(const VersionStr& other) const; bool operator==(const VersionStr& other) const; bool operator>(const VersionStr& other) const; bool operator>=(const VersionStr& other) const; bool operator<=(const VersionStr& other) const; /** * @return Major version number. */ size_t major() const; /** * @return Minor version number. */ size_t minor() const; /** * @return Patch level. */ size_t patch() const; private: void set(const std::string& v) throw(const char*); size_t version[3]; }; drumgizmo-0.9.14/config.rpath0000755000076400017500000004421613006712027013064 00000000000000#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2014 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally 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. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; nagfor*) wl='-Wl,-Wl,,' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; xl* | bgxl* | bgf* | mpixl*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ F* | *Sun*Fortran*) wl= ;; *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; newsos6) ;; *nto* | *qnx*) ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) wl='-Qoption ld ' ;; *) wl='-Wl,' ;; esac ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no 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 if test "$with_gnu_ld" = yes; then # 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. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 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 fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; haiku*) ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : 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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; 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 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 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) 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 hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) ;; 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. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then : else ld_shlibs=no fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd2.[01]*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) 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 ;; hpux10*) if test "$with_gnu_ld" = no; then 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 fi ;; hpux11*) 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_direct=yes # 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*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) 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 ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) case "$host_cpu" in powerpc*) library_names_spec='$libname$shrext' ;; m68k) library_names_spec='$libname.a' ;; esac ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd[23].*) library_names_spec='$libname$shrext$versuffix' ;; freebsd* | dragonfly*) library_names_spec='$libname$shrext' ;; gnu*) library_names_spec='$libname$shrext' ;; haiku*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; *nto* | *qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; tpf*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' </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 -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 test \$(( 1 + 1 )) = 2 || 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 about your system, $0: 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='drumgizmo' PACKAGE_TARNAME='drumgizmo' PACKAGE_VERSION='0.9.14' PACKAGE_STRING='drumgizmo 0.9.14' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="src/drumgizmo.cc" # 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 JACK_LIBS JACK_CFLAGS SSEFLAGS EXPAT_LIBS EXPAT_CFLAGS PTHREAD_LIBS PTHREAD_CFLAGS ZITA_LIBS ZITA_CPPFLAGS SAMPLERATE_LIBS SAMPLERATE_CFLAGS SNDFILE_LIBS SNDFILE_CFLAGS HAVE_OUTPUT_OSS_FALSE HAVE_OUTPUT_OSS_TRUE HAVE_OUTPUT_JACKAUDIO_FALSE HAVE_OUTPUT_JACKAUDIO_TRUE HAVE_OUTPUT_WAVFILE_FALSE HAVE_OUTPUT_WAVFILE_TRUE HAVE_OUTPUT_ALSA_FALSE HAVE_OUTPUT_ALSA_TRUE HAVE_OUTPUT_DUMMY_FALSE HAVE_OUTPUT_DUMMY_TRUE HAVE_INPUT_MIDIFILE_FALSE HAVE_INPUT_MIDIFILE_TRUE HAVE_INPUT_JACKMIDI_FALSE HAVE_INPUT_JACKMIDI_TRUE HAVE_INPUT_TEST_FALSE HAVE_INPUT_TEST_TRUE HAVE_INPUT_DUMMY_FALSE HAVE_INPUT_DUMMY_TRUE ENABLE_CLI_FALSE ENABLE_CLI_TRUE OUTPUT_PLUGIN_DIR INPUT_PLUGIN_DIR dgplugindir OUTPUT_PLUGINS ALSA_LIBS ALSA_CFLAGS INPUT_PLUGINS SMF_LIBS SMF_CFLAGS ENABLE_VST_FALSE ENABLE_VST_TRUE VST_CPPFLAGS VST_SOURCE_PATH ENABLE_LV2_FALSE ENABLE_LV2_TRUE LV2DIR LV2_LIBS LV2_CFLAGS ENABLE_TESTS_FALSE ENABLE_TESTS_TRUE CPPUNIT_LIBS CPPUNIT_CFLAGS ENABLE_COCOA_FALSE ENABLE_COCOA_TRUE ENABLE_X11_FALSE ENABLE_X11_TRUE ENABLE_WIN32_FALSE ENABLE_WIN32_TRUE ENABLE_PUGL_FALSE ENABLE_PUGL_TRUE GUI_LIBS GUI_CPPFLAGS XEXT_LIBS XEXT_CFLAGS X11_LIBS X11_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG FLOAT_STORE CXXCPP CPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBTOOL am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE ac_ct_CC CFLAGS CC am__fastdepOBJC_FALSE am__fastdepOBJC_TRUE OBJCDEPMODE ac_ct_OBJC OBJCFLAGS OBJC am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CXX CPPFLAGS LDFLAGS CXXFLAGS CXX 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 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_shared enable_static with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock enable_largefile with_debug enable_gui with_test enable_lv2 with_lv2dir with_vst_sources enable_vst enable_cli enable_input_dummy enable_input_test enable_input_jackmidi enable_input_midifile enable_output_dummy enable_output_jackaudio enable_output_alsa enable_output_wavfile enable_output_oss enable_resampler enable_sse ' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC OBJC OBJCFLAGS CC CFLAGS CPP CXXCPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR X11_CFLAGS X11_LIBS XEXT_CFLAGS XEXT_LIBS CPPUNIT_CFLAGS CPPUNIT_LIBS LV2_CFLAGS LV2_LIBS SMF_CFLAGS SMF_LIBS ALSA_CFLAGS ALSA_LIBS SNDFILE_CFLAGS SNDFILE_LIBS SAMPLERATE_CFLAGS SAMPLERATE_LIBS JACK_CFLAGS JACK_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 drumgizmo 0.9.14 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/drumgizmo] --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 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 drumgizmo 0.9.14:";; 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-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) --disable-largefile omit support for large files --enable-gui=backend Use specified gui backend. Can be win32, x11, pugl or auto [default=auto] --enable-lv2 Compile the LV2 plugin [default=no] --enable-vst Compile the VST plugin [default=no] --enable-cli Compile the command line interface [default=yes] --disable-input-dummy Disable input dummy plugin [default=enabled] --disable-input-test Disable input test plugin [default=enabled] --disable-input-jackmidi Disable input jackmidi plugin [default=enabled] --disable-input-midifile Disable input midifile plugin [default=enabled] --disable-output-dummy Disable output dummy plugin [default=enabled] --disable-output-jackaudio Disable output jack plugin [default=enabled] --disable-output-alsa Disable output alsa plugin [default=enabled] --disable-output-wavfile Disable output wavfile plugin [default=enabled] --disable-output-oss Disable output oss plugin [enabled by default on FreeBSD, disabled otherwise] --enable-resampler=lib Enable resampling using libzita-resampler, set to 'src' to force use of libsamplerate (slow). [default=yes] --enable-sse=level Enable SSE Level 1, 2, 3 or auto [default=auto] 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-debug Build with debug support --with-test Build unit tests --with-lv2dir=DIR Use DIR as the lv2 plugin directory [default=LIBDIR/lv2] --with-vst-sources Point this to the vstsdk24 directory Some influential environment variables: CXX C++ compiler command CXXFLAGS 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 OBJC Objective C compiler command OBJCFLAGS Objective C compiler flags CC C compiler command CFLAGS C compiler flags CPP C preprocessor CXXCPP C++ preprocessor 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 X11_CFLAGS C compiler flags for X11, overriding pkg-config X11_LIBS linker flags for X11, overriding pkg-config XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config XEXT_LIBS linker flags for XEXT, overriding pkg-config CPPUNIT_CFLAGS C compiler flags for CPPUNIT, overriding pkg-config CPPUNIT_LIBS linker flags for CPPUNIT, overriding pkg-config LV2_CFLAGS C compiler flags for LV2, overriding pkg-config LV2_LIBS linker flags for LV2, overriding pkg-config SMF_CFLAGS C compiler flags for SMF, overriding pkg-config SMF_LIBS linker flags for SMF, overriding pkg-config ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config ALSA_LIBS linker flags for ALSA, overriding pkg-config SNDFILE_CFLAGS C compiler flags for SNDFILE, overriding pkg-config SNDFILE_LIBS linker flags for SNDFILE, overriding pkg-config SAMPLERATE_CFLAGS C compiler flags for SAMPLERATE, overriding pkg-config SAMPLERATE_LIBS linker flags for SAMPLERATE, overriding pkg-config JACK_CFLAGS C compiler flags for JACK, overriding pkg-config JACK_LIBS linker flags for JACK, 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 the package provider. _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 drumgizmo configure 0.9.14 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_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_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_cxx_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_cxx_try_compile # ac_fn_objc_try_compile LINENO # ----------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_objc_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_objc_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_objc_try_compile # 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_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_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_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_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_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_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_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_cxx_preproc_warn_flag$ac_cxx_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_cxx_try_cpp # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_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_cxx_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_cxx_try_link # 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;} ;; 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 drumgizmo $as_me 0.9.14, 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 am__api_version='1.13' 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. # 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='drumgizmo' VERSION='0.9.14' 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 -' ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # 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_CXX="$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 CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$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_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" 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 CXX=$ac_ct_CXX fi fi fi fi # 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_cxx_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_cxx_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_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_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_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi 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 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 depcc="$CXX" 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_CXX_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_CXX_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_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=m ac_cpp='$OBJCPP $CPPFLAGS' ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_objc_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in gcc objcc objc cc CC 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_OBJC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJC"; then ac_cv_prog_OBJC="$OBJC" # 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_OBJC="$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 OBJC=$ac_cv_prog_OBJC if test -n "$OBJC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 $as_echo "$OBJC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$OBJC" && break done fi if test -z "$OBJC"; then ac_ct_OBJC=$OBJC for ac_prog in gcc objcc objc cc CC 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_OBJC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJC"; then ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # 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_OBJC="$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_OBJC=$ac_cv_prog_ac_ct_OBJC if test -n "$ac_ct_OBJC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 $as_echo "$ac_ct_OBJC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_OBJC" && break done if test "x$ac_ct_OBJC" = x; then OBJC="gcc" 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 OBJC=$ac_ct_OBJC fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective 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 Objective C compiler" >&5 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } if ${ac_cv_objc_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_objc_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_objc_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GOBJC=yes else GOBJC= fi ac_test_OBJCFLAGS=${OBJCFLAGS+set} ac_save_OBJCFLAGS=$OBJCFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } if ${ac_cv_prog_objc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_objc_werror_flag=$ac_objc_werror_flag ac_objc_werror_flag=yes ac_cv_prog_objc_g=no OBJCFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_objc_try_compile "$LINENO"; then : ac_cv_prog_objc_g=yes else OBJCFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_objc_try_compile "$LINENO"; then : else ac_objc_werror_flag=$ac_save_objc_werror_flag OBJCFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_objc_try_compile "$LINENO"; then : ac_cv_prog_objc_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_objc_werror_flag=$ac_save_objc_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 $as_echo "$ac_cv_prog_objc_g" >&6; } if test "$ac_test_OBJCFLAGS" = set; then OBJCFLAGS=$ac_save_OBJCFLAGS elif test $ac_cv_prog_objc_g = yes; then if test "$GOBJC" = yes; then OBJCFLAGS="-g -O2" else OBJCFLAGS="-g" fi else if test "$GOBJC" = yes; then OBJCFLAGS="-O2" else OBJCFLAGS= fi 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="$OBJC" am_compiler_list='gcc3 gcc' { $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_OBJC_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_OBJC_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_OBJC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_OBJC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then am__fastdepOBJC_TRUE= am__fastdepOBJC_FALSE='#' else am__fastdepOBJC_TRUE='#' am__fastdepOBJC_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 { $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 if test "x$CC" != xcc; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } fi set dummy $CC; ac_cc=`$as_echo "$2" | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { { 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; } && test -f conftest2.$ac_objext && { { 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 eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then # Test first that cc exists at all. if { ac_try='cc -c conftest.$ac_ext >&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_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { { 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; } && test -f conftest2.$ac_objext && { { 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 # cc works too. : else # cc exists but doesn't like -o. eval ac_cv_prog_cc_${ac_cc}_c_o=no fi fi fi else eval ac_cv_prog_cc_${ac_cc}_c_o=no fi rm -f core conftest* fi if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; 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; } $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h fi # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" 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" # 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 # 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 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 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*|ppc*-*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" ;; ppc64-*linux*|powerpc64-*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" ;; ppc*-*linux*|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 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 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 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 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 # 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* 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 # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac 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 ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; 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 # 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="/lib /usr/lib $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" if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_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; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_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_cxx_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_cxx_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_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_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_cxx_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_cxx_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 \"$CXXCPP\" 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 else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds reload_flag_CXX=$reload_flag reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$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. # 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 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* # 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 compiler_CXX=$CC 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-%%"` 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_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # 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 # 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 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$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' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${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 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= 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. archive_cmds_CXX='$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 { $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; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=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. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='${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 hardcode_direct_CXX=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_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= 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_CXX='${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_CXX=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_CXX='-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__CXX+:} 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_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`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__CXX"; then lt_cv_aix_libpath__CXX=`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__CXX"; then lt_cv_aix_libpath__CXX="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$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_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$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__CXX+:} 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_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`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__CXX"; then lt_cv_aix_libpath__CXX=`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__CXX"; then lt_cv_aix_libpath__CXX="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='${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_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${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_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' fi archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared # libraries. archive_expsym_cmds_CXX="\$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 allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=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. hardcode_libdir_flag_spec_CXX=' ' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=yes file_list_spec_CXX='@' # 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_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds_CXX='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, CXX)='true' enable_shared_with_static_runtimes_CXX=yes # Don't use ranlib old_postinstall_cmds_CXX='chmod 644 $oldlib' postlink_cmds_CXX='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, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$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... archive_expsym_cmds_CXX='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 ld_shlibs_CXX=no fi ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec_CXX='`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_CXX='' fi link_all_deplibs_CXX=yes allow_undefined_flag_CXX="$_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_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_CXX="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_CXX="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}" if test "$lt_cv_apple_cc_single_mod" != "yes"; then archive_cmds_CXX="\$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}" archive_expsym_cmds_CXX="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 ld_shlibs_CXX=no fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; haiku*) archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs_CXX=yes ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=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 ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$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 archive_cmds_CXX='$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 ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=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 ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$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*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$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 ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${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_CXX='$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_CXX='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++ archive_cmds_CXX='$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. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$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 archive_cmds_CXX='$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 link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=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. archive_cmds_CXX='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' archive_expsym_cmds_CXX='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"' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$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."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$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 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5].* | *pgcpp\ [1-5].*) prelink_cmds_CXX='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`"' old_archive_cmds_CXX='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' archive_cmds_CXX='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' archive_expsym_cmds_CXX='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 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$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 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${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++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$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 hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # 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 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds_CXX='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 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${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_CXX=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. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=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*) ld_shlibs_CXX=yes ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else ld_shlibs_CXX=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. archive_cmds_CXX='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' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$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' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$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' archive_expsym_cmds_CXX='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' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # 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 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) archive_cmds_CXX='$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' ;; *) archive_cmds_CXX='$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 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # 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 ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='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' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=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?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=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. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$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. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='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. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='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 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$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. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ '"$old_archive_cmds_CXX" reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ '"$reload_cmds_CXX" ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$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 ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$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... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _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 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 # 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 "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${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 "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${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 "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken 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. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; 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 postdeps_CXX='-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 postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-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_CXX='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-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_CXX='-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 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_CXX= ;; 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_prog_compiler_pic_CXX=-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_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-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_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--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). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+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_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-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_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-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_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) # IBM XL 8.0, 9.0 on PPC and BlueGene lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -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_CXX=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=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_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= 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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=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_CXX=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_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=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_CXX=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_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = 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; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_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 export_symbols_cmds_CXX='$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_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) export_symbols_cmds_CXX='$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_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' ;; esac ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX 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_CXX+:} 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_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 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_CXX=no else lt_cv_archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$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_CXX" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } 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}' ;; 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_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 # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac 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 ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; 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_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_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 # 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="/lib /usr/lib $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_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct_CXX" != 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, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink || test "$inherit_rpath_CXX" = 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 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_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_config_commands="$ac_config_commands libtool" # Only expand once: ac_config_headers="$ac_config_headers config.h" # Check whether --enable-largefile was given. if test "${enable_largefile+set}" = set; then : enableval=$enable_largefile; fi if test "$enable_largefile" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } if ${ac_cv_sys_largefile_CC+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC while :; do # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : break fi rm -f core conftest.err conftest.$ac_objext CC="$CC -n32" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_largefile_CC=' -n32'; break fi rm -f core conftest.err conftest.$ac_objext break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 $as_echo "$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } if ${ac_cv_sys_file_offset_bits+:} false; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _FILE_OFFSET_BITS 64 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=64; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_file_offset_bits=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits _ACEOF ;; esac rm -rf conftest* if test $ac_cv_sys_file_offset_bits = unknown; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } if ${ac_cv_sys_large_files+:} false; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGE_FILES 1 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=1; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_large_files=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 $as_echo "$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _LARGE_FILES $ac_cv_sys_large_files _ACEOF ;; esac rm -rf conftest* fi fi need_jack=no ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu TMP_CXXFLAGS="$CXXFLAGS" CXXFLAGS=-std=c++11 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXX supports -std=c++11" >&5 $as_echo_n "checking whether CXX supports -std=c++11... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; 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; } CXXFLAGS=-std=c++0x { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXX supports -std=c++0x" >&5 $as_echo_n "checking whether CXX supports -std=c++0x... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; 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; } as_fn_error $? "Compiler does not support c++11" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS="$TMP_CXXFLAGS $CXXFLAGS" 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_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'override' and 'final' keywords are supported" >&5 $as_echo_n "checking whether 'override' and 'final' keywords are supported... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ class A { virtual void foo() {} }; class B : public A { virtual void foo() override {} }; class C : public B { virtual void foo() final {} }; _ACEOF if ac_fn_cxx_try_compile "$LINENO"; 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 (deploying fix)" >&5 $as_echo "no (deploying fix)" >&6; } CXXFLAGS="$CXXFLAGS -Doverride=\"\" -Dfinal=\"\"" fi rm -f core conftest.err conftest.$ac_objext 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu TMP_CXXFLAGS="$CXXFLAGS" CXXFLAGS="-Wall -Werror -ffloat-store" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXX supports -ffloat-store" >&5 $as_echo_n "checking whether CXX supports -ffloat-store... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } FLOAT_STORE="-ffloat-store" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } FLOAT_STORE="" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS="$TMP_CXXFLAGS" 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 "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.23 { $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 HUGIN_PARM="-DDISABLE_HUGIN" # Check whether --with-debug was given. if test "${with_debug+set}" = set; then : withval=$with_debug; fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu TMP_CXXFLAGS="$CXXFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXX supports '-Wl,--no-undefined'" >&5 $as_echo_n "checking whether CXX supports '-Wl,--no-undefined'... " >&6; } CXXFLAGS="-Wall -Werror -Wl,--no-undefined" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } NO_UNDEFINED_PARAM=-Wl,--no-undefined else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXX supports '-Wl,-undefined,error'" >&5 $as_echo_n "checking whether CXX supports '-Wl,-undefined,error'... " >&6; } CXXFLAGS="-Wall -Werror -Wl,-undefined,error" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } NO_UNDEFINED_PARAM=-Wl,-undefined,error else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } NO_UNDEFINED_PARAM="" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS="$TMP_CXXFLAGS" 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 "x$with_debug" == "xyes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building with debug support!" >&5 $as_echo "$as_me: WARNING: *** Building with debug support!" >&2;} CXXFLAGS="$CXXFLAGS -Wall -Werror -g $NO_UNDEFINED_PARAM" HUGIN_PARM="" fi CXXFLAGS="$CXXFLAGS $HUGIN_PARM" # Check whether --enable-gui was given. if test "${enable_gui+set}" = set; then : enableval=$enable_gui; else enable_gui="auto" fi if test "x$enable_gui" = "xyes"; then : enable_gui="auto" fi if test "x$enable_gui" = "xauto"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Auto setting gui based on host: $host_os" >&5 $as_echo "Auto setting gui based on host: $host_os" >&6; } case $host_os in #( darwin*) : enable_gui="cocoa" ;; #( linux*|*bsd*) : enable_gui="x11" ;; #( msys|mingw*|windows*|winnt|cygwin) : enable_gui="win32" ;; #( *) : as_fn_error $? "Your platform is not currently supported" "$LINENO" 5 ;; esac fi if test "x$enable_gui" = "xx11"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to X11" >&5 $as_echo "Setting gui backend to X11" >&6; } pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 $as_echo_n "checking for X11... " >&6; } if test -n "$X11_CFLAGS"; then pkg_cv_X11_CFLAGS="$X11_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "x11 >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$X11_LIBS"; then pkg_cv_X11_LIBS="$X11_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "x11 >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 >= 1.0" 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 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.0" 2>&1` else X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$X11_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (x11 >= 1.0) were not met: $X11_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 X11_CFLAGS and X11_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 X11_CFLAGS and X11_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 X11_CFLAGS=$pkg_cv_X11_CFLAGS X11_LIBS=$pkg_cv_X11_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 $as_echo_n "checking for XEXT... " >&6; } if test -n "$XEXT_CFLAGS"; then pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "xext >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext >= 1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XEXT_LIBS"; then pkg_cv_XEXT_LIBS="$XEXT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "xext >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext >= 1.0" 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 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext >= 1.0" 2>&1` else XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext >= 1.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XEXT_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (xext >= 1.0) were not met: $XEXT_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 XEXT_CFLAGS and XEXT_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 XEXT_CFLAGS and XEXT_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 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS XEXT_LIBS=$pkg_cv_XEXT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi GUI_CPPFLAGS="-DUI_X11 $X11_CFLAGS $XEXT_CFLAGS" GUI_LIBS="$X11_LIBS $XEXT_LIBS" elif test "x$enable_gui" = "xwin32"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to Win32" >&5 $as_echo "Setting gui backend to Win32" >&6; } GUI_CPPFLAGS="-DUI_WIN32" GUI_LIBS="-lgdi32 -lsetupapi -lws2_32 -lcomctl32" elif test "x$enable_gui" = "xpugl"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to Pugl" >&5 $as_echo "Setting gui backend to Pugl" >&6; } GUI_CPPFLAGS="-DUI_PUGL -I../../pugl" GUI_LIBS="-lGLU -lGL -lglut" elif test "x$enable_gui" = "xcocoa"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to Cocoa" >&5 $as_echo "Setting gui backend to Cocoa" >&6; } GUI_CPPFLAGS="-DUI_COCOA -framework Cocoa" GUI_LIBS="-framework Cocoa" else as_fn_error $? "*** No GUI backend has been selected ***" "$LINENO" 5 fi if test "x$enable_gui" = "xpugl"; then ENABLE_PUGL_TRUE= ENABLE_PUGL_FALSE='#' else ENABLE_PUGL_TRUE='#' ENABLE_PUGL_FALSE= fi if test "x$enable_gui" = "xwin32"; then ENABLE_WIN32_TRUE= ENABLE_WIN32_FALSE='#' else ENABLE_WIN32_TRUE='#' ENABLE_WIN32_FALSE= fi if test "x$enable_gui" = "xx11"; then ENABLE_X11_TRUE= ENABLE_X11_FALSE='#' else ENABLE_X11_TRUE='#' ENABLE_X11_FALSE= fi if test "x$enable_gui" = "xcocoa"; then ENABLE_COCOA_TRUE= ENABLE_COCOA_FALSE='#' else ENABLE_COCOA_TRUE='#' ENABLE_COCOA_FALSE= fi # Check whether --with-test was given. if test "${with_test+set}" = set; then : withval=$with_test; fi if test x$with_test == xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building unittests!" >&5 $as_echo "$as_me: WARNING: *** Building unittests!" >&2;} pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5 $as_echo_n "checking for CPPUNIT... " >&6; } if test -n "$CPPUNIT_CFLAGS"; then pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" cppunit >= 1.9.6 \""; } >&5 ($PKG_CONFIG --exists --print-errors " cppunit >= 1.9.6 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags " cppunit >= 1.9.6 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CPPUNIT_LIBS"; then pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" cppunit >= 1.9.6 \""; } >&5 ($PKG_CONFIG --exists --print-errors " cppunit >= 1.9.6 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs " cppunit >= 1.9.6 " 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 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " cppunit >= 1.9.6 " 2>&1` else CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " cppunit >= 1.9.6 " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CPPUNIT_PKG_ERRORS" >&5 as_fn_error $? "$CPPUNIT_PKG_ERRORS" "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "$CPPUNIT_PKG_ERRORS" "$LINENO" 5 else CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi fi if test "x$with_test" = "xyes"; then ENABLE_TESTS_TRUE= ENABLE_TESTS_FALSE='#' else ENABLE_TESTS_TRUE='#' ENABLE_TESTS_FALSE= fi # Check whether --enable-lv2 was given. if test "${enable_lv2+set}" = set; then : enableval=$enable_lv2; else enable_lv2="no" fi if test "x$enable_lv2" = "xyes"; then : enable_lv2=yes pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LV2" >&5 $as_echo_n "checking for LV2... " >&6; } if test -n "$LV2_CFLAGS"; then pkg_cv_LV2_CFLAGS="$LV2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2 >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "lv2 >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LV2_CFLAGS=`$PKG_CONFIG --cflags "lv2 >= 1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LV2_LIBS"; then pkg_cv_LV2_LIBS="$LV2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2 >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "lv2 >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LV2_LIBS=`$PKG_CONFIG --libs "lv2 >= 1.0" 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 LV2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lv2 >= 1.0" 2>&1` else LV2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lv2 >= 1.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LV2_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (lv2 >= 1.0) were not met: $LV2_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 LV2_CFLAGS and LV2_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 LV2_CFLAGS and LV2_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 LV2_CFLAGS=$pkg_cv_LV2_CFLAGS LV2_LIBS=$pkg_cv_LV2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi # Check whether --with-lv2dir was given. if test "${with_lv2dir+set}" = set; then : withval=$with_lv2dir; LV2DIR=$with_lv2dir else LV2DIR='$(libdir)/lv2' fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** LV2 plugin will not be compiled ***" >&5 $as_echo "*** LV2 plugin will not be compiled ***" >&6; } enable_lv2=no fi if test "x$enable_lv2" = "xyes"; then ENABLE_LV2_TRUE= ENABLE_LV2_FALSE='#' else ENABLE_LV2_TRUE='#' ENABLE_LV2_FALSE= fi # Check whether --with-vst_sources was given. if test "${with_vst_sources+set}" = set; then : withval=$with_vst_sources; fi # Check whether --enable-vst was given. if test "${enable_vst+set}" = set; then : enableval=$enable_vst; else enable_vst="no" fi if test "x$enable_vst" = "xyes"; then : enable_vst=yes VST_CPPFLAGS="-D__int64='long long int'" # Set up platform specific workarounds for the VST SDK case $host_os in #( darwin*) : ;; #( linux*|*bsd*) : VST_CPPFLAGS="$VST_CPPFLAGS -D__cdecl=" ;; #( msys|mingw*|windows*|winnt|cygwin) : ;; #( *) : as_fn_error $? "Your platform is not currently supported" "$LINENO" 5 ;; esac VST_SOURCE_PATH="$with_vst_sources" ac_config_files="$ac_config_files plugin/Makefile.mingw32" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** VST plugin will not be compiled ***" >&5 $as_echo "*** VST plugin will not be compiled ***" >&6; } enable_vst=no fi if test "x$enable_vst" = "xyes"; then ENABLE_VST_TRUE= ENABLE_VST_FALSE='#' else ENABLE_VST_TRUE='#' ENABLE_VST_FALSE= fi #AC_ARG_ENABLE([au], #[ --enable-au Compile the audio units plugin [default=no]],, # [enable_au="no"]) #if test "x$enable_au" = "xyes"; then # enable_au=yes #else # AC_MSG_RESULT([*** Audio Units plugin will not be compiled ***]) # enable_au=no #fi #AM_CONDITIONAL([ENABLE_AU], [test "x$enable_au" = "xyes"]) # Check whether --enable-cli was given. if test "${enable_cli+set}" = set; then : enableval=$enable_cli; else enable_cli="yes" fi if test "x$enable_cli" = "xyes"; then : enable_cli=yes for ac_header in getopt.h do : ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" if test "x$ac_cv_header_getopt_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETOPT_H 1 _ACEOF fi done # Check whether --enable-input_dummy was given. if test "${enable_input_dummy+set}" = set; then : enableval=$enable_input_dummy; else enable_input_dummy="yes" fi if test "x$enable_input_dummy" = "xyes"; then : have_input_dummy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** input dummy plugin disabled per user request ***" >&5 $as_echo "*** input dummy plugin disabled per user request ***" >&6; } have_input_dummy=no fi # Check whether --enable-input_test was given. if test "${enable_input_test+set}" = set; then : enableval=$enable_input_test; else enable_input_test="yes" fi if test "x$enable_input_test" = "xyes"; then : have_input_test=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** input test plugin disabled per user request ***" >&5 $as_echo "*** input test plugin disabled per user request ***" >&6; } have_input_test=no fi # Check whether --enable-input_jackmidi was given. if test "${enable_input_jackmidi+set}" = set; then : enableval=$enable_input_jackmidi; else enable_input_jackmidi="yes" fi if test "x$enable_input_jackmidi" = "xyes"; then : have_input_jackmidi=yes need_jack=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** input jackmidi plugin disabled per user request ***" >&5 $as_echo "*** input jackmidi plugin disabled per user request ***" >&6; } have_input_jackmidi=no fi # Check whether --enable-input_midifile was given. if test "${enable_input_midifile+set}" = set; then : enableval=$enable_input_midifile; else enable_input_midifile="yes" fi if test "x$enable_input_midifile" = "xyes"; then : have_input_midifile=yes pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMF" >&5 $as_echo_n "checking for SMF... " >&6; } if test -n "$SMF_CFLAGS"; then pkg_cv_SMF_CFLAGS="$SMF_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"smf >= 1.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "smf >= 1.2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SMF_CFLAGS=`$PKG_CONFIG --cflags "smf >= 1.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SMF_LIBS"; then pkg_cv_SMF_LIBS="$SMF_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"smf >= 1.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "smf >= 1.2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SMF_LIBS=`$PKG_CONFIG --libs "smf >= 1.2" 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 SMF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "smf >= 1.2" 2>&1` else SMF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "smf >= 1.2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SMF_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (smf >= 1.2) were not met: $SMF_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 SMF_CFLAGS and SMF_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 SMF_CFLAGS and SMF_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 SMF_CFLAGS=$pkg_cv_SMF_CFLAGS SMF_LIBS=$pkg_cv_SMF_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** input midifile plugin disabled per user request ***" >&5 $as_echo "*** input midifile plugin disabled per user request ***" >&6; } have_input_midifile=no fi INPUT_PLUGINS="midifile jackmidi dummy test" # Check whether --enable-output_dummy was given. if test "${enable_output_dummy+set}" = set; then : enableval=$enable_output_dummy; else enable_output_dummy="yes" fi if test "x$enable_output_dummy" = "xyes"; then : have_output_dummy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output dummy plugin disabled per user request ***" >&5 $as_echo "*** output dummy plugin disabled per user request ***" >&6; } have_output_dummy=no fi # Check whether --enable-output_jackaudio was given. if test "${enable_output_jackaudio+set}" = set; then : enableval=$enable_output_jackaudio; else enable_output_jackaudio="yes" fi if test "x$enable_output_jackaudio" = "xyes"; then : have_output_jackaudio=yes need_jack=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output jack plugin disabled per user request ***" >&5 $as_echo "*** output jack plugin disabled per user request ***" >&6; } have_output_jackaudio=no fi # Check whether --enable-output_alsa was given. if test "${enable_output_alsa+set}" = set; then : enableval=$enable_output_alsa; else enable_output_alsa="yes" fi if test "x$enable_output_alsa" = "xyes"; then : have_output_alsa=yes pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 $as_echo_n "checking for ALSA... " >&6; } if test -n "$ALSA_CFLAGS"; then pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.18\""; } >&5 ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.18") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1.0.18" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ALSA_LIBS"; then pkg_cv_ALSA_LIBS="$ALSA_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.18\""; } >&5 ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.18") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 1.0.18" 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 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa >= 1.0.18" 2>&1` else ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa >= 1.0.18" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ALSA_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (alsa >= 1.0.18) were not met: $ALSA_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 ALSA_CFLAGS and ALSA_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 ALSA_CFLAGS and ALSA_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 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS ALSA_LIBS=$pkg_cv_ALSA_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output alsa plugin disabled per user request ***" >&5 $as_echo "*** output alsa plugin disabled per user request ***" >&6; } have_output_alsa=no fi # Check whether --enable-output_wavfile was given. if test "${enable_output_wavfile+set}" = set; then : enableval=$enable_output_wavfile; else enable_output_wavfile="yes" fi if test "x$enable_output_wavfile" = "xyes"; then : have_output_wavfile=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output wavfile plugin disabled per user request ***" >&5 $as_echo "*** output wavfile plugin disabled per user request ***" >&6; } have_output_wavfile=no fi case $host_os in freebsd*) enable_oss_value=yes ;; *) enable_oss_value=no ;; esac # Check whether --enable-output_oss was given. if test "${enable_output_oss+set}" = set; then : enableval=$enable_output_oss; else enable_output_oss=$enable_oss_value fi if test "x$enable_output_oss" = "xyes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS" >&5 $as_echo_n "checking for OSS... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef AFMT_S32_NE # error no oss #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : have_output_oss=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } 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 $? "no OSS headers found See \`config.log' for more details" "$LINENO" 5; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output oss plugin disabled per user request ***" >&5 $as_echo "*** output oss plugin disabled per user request ***" >&6; } have_output_oss=no fi OUTPUT_PLUGINS="dummy alsa wavfile jackaudio oss" dgplugindir=${libdir}/drumgizmo INPUT_PLUGIN_DIR=${dgplugindir}/input OUTPUT_PLUGIN_DIR=${dgplugindir}/output else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Command line interface disabled per user request ***" >&5 $as_echo "*** Command line interface disabled per user request ***" >&6; } enable_cli=no fi if test "x$enable_cli" == "xyes"; then ENABLE_CLI_TRUE= ENABLE_CLI_FALSE='#' else ENABLE_CLI_TRUE='#' ENABLE_CLI_FALSE= fi if test "x$have_input_dummy" = "xyes"; then HAVE_INPUT_DUMMY_TRUE= HAVE_INPUT_DUMMY_FALSE='#' else HAVE_INPUT_DUMMY_TRUE='#' HAVE_INPUT_DUMMY_FALSE= fi if test "x$have_input_test" = "xyes"; then HAVE_INPUT_TEST_TRUE= HAVE_INPUT_TEST_FALSE='#' else HAVE_INPUT_TEST_TRUE='#' HAVE_INPUT_TEST_FALSE= fi if test "x$have_input_jackmidi" = "xyes"; then HAVE_INPUT_JACKMIDI_TRUE= HAVE_INPUT_JACKMIDI_FALSE='#' else HAVE_INPUT_JACKMIDI_TRUE='#' HAVE_INPUT_JACKMIDI_FALSE= fi if test "x$have_input_midifile" = "xyes"; then HAVE_INPUT_MIDIFILE_TRUE= HAVE_INPUT_MIDIFILE_FALSE='#' else HAVE_INPUT_MIDIFILE_TRUE='#' HAVE_INPUT_MIDIFILE_FALSE= fi if test "x$have_output_dummy" = "xyes"; then HAVE_OUTPUT_DUMMY_TRUE= HAVE_OUTPUT_DUMMY_FALSE='#' else HAVE_OUTPUT_DUMMY_TRUE='#' HAVE_OUTPUT_DUMMY_FALSE= fi if test "x$have_output_alsa" = "xyes"; then HAVE_OUTPUT_ALSA_TRUE= HAVE_OUTPUT_ALSA_FALSE='#' else HAVE_OUTPUT_ALSA_TRUE='#' HAVE_OUTPUT_ALSA_FALSE= fi if test "x$have_output_wavfile" = "xyes"; then HAVE_OUTPUT_WAVFILE_TRUE= HAVE_OUTPUT_WAVFILE_FALSE='#' else HAVE_OUTPUT_WAVFILE_TRUE='#' HAVE_OUTPUT_WAVFILE_FALSE= fi if test "x$have_output_jackaudio" = "xyes"; then HAVE_OUTPUT_JACKAUDIO_TRUE= HAVE_OUTPUT_JACKAUDIO_FALSE='#' else HAVE_OUTPUT_JACKAUDIO_TRUE='#' HAVE_OUTPUT_JACKAUDIO_FALSE= fi if test "x$have_output_oss" = "xyes"; then HAVE_OUTPUT_OSS_TRUE= HAVE_OUTPUT_OSS_FALSE='#' else HAVE_OUTPUT_OSS_TRUE='#' HAVE_OUTPUT_OSS_FALSE= fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 $as_echo_n "checking for SNDFILE... " >&6; } if test -n "$SNDFILE_CFLAGS"; then pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.20\""; } >&5 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.20") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.20" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SNDFILE_LIBS"; then pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.20\""; } >&5 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.20") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.20" 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 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.20" 2>&1` else SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.20" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SNDFILE_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (sndfile >= 1.0.20) were not met: $SNDFILE_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 SNDFILE_CFLAGS and SNDFILE_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 SNDFILE_CFLAGS and SNDFILE_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 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi # Check whether --enable-resampler was given. if test "${enable_resampler+set}" = set; then : enableval=$enable_resampler; else enable_resampler="yes" fi if test "x$enable_resampler" = "xyes"; then : enable_resampler="zita" fi has_src=no has_zita=no if test x$enable_resampler != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building resample support!" >&5 $as_echo "$as_me: WARNING: *** Building resample support!" >&2;} $as_echo "#define WITH_RESAMPLER /**/" >>confdefs.h case $enable_resampler in #( src) : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAMPLERATE" >&5 $as_echo_n "checking for SAMPLERATE... " >&6; } if test -n "$SAMPLERATE_CFLAGS"; then pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.1.7\""; } >&5 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.1.7") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.1.7" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SAMPLERATE_LIBS"; then pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.1.7\""; } >&5 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.1.7") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.1.7" 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 SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate >= 0.1.7" 2>&1` else SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate >= 0.1.7" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SAMPLERATE_PKG_ERRORS" >&5 has_src=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } has_src=no else SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } has_src=yes fi ;; #( zita) : ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu tmp_CXXFLAGS="$CXXFLAGS" tmp_CPPFLAGS="$CPPFLAGS" tmp_CFLAGS="$CFLAGS" tmp_LDFLAGS="$LDFLAGS" tmp_LIBS="$LIBS" CXXFLAGS="" CPPFLAGS="$ZITA_CPPFLAGS" CFLAGS="" LDFLAGS="$ZITA_LDFLAGS" LIBS="-lzita-resampler -lpthread" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { Resampler r ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : has_zita=yes else has_zita=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ZITA_CPPFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS" ZITA_LIBS="$LDFLAGS $LIBS" CXXFLAGS="$tmp_CXXFLAGS" CPPFLAGS="$tmp_CPPFLAGS" CFLAGS="$tmp_CFLAGS" LDFLAGS="$tmp_LDFLAGS" LIBS="$tmp_LIBS" 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_fn_error $? "*** Bad argument '$enable_resampler'." "$LINENO" 5 ;; esac fi if test x$enable_resampler == xzita; then : if test x$has_zita == xyes; then : $as_echo "#define USE_ZITA /**/" >>confdefs.h SAMPLERATE_CFLAGS="" SAMPLERATE_LIBS="" else as_fn_error $? "*** zita-resampler library or headers not found. Set ZITA_LDFLAGS or ZITA_CPPFLAGS to add searchpath." "$LINENO" 5 fi fi if test x$enable_resampler == xsrc; then : if test x$has_src == xyes; then : $as_echo "#define USE_SRC /**/" >>confdefs.h ZITA_CPPFLAGS="" ZITA_LIBS="" else as_fn_error $? "*** Missing libsamplerate." "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5 $as_echo_n "checking for main in -lrt... " >&6; } if ${ac_cv_lib_rt_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_rt_main=yes else ac_cv_lib_rt_main=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_rt_main" >&5 $as_echo "$ac_cv_lib_rt_main" >&6; } if test "x$ac_cv_lib_rt_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBRT 1 _ACEOF LIBS="-lrt $LIBS" fi ac_cv_lib_rt=ac_cv_lib_rt_main { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -latomic" >&5 $as_echo_n "checking for main in -latomic... " >&6; } if ${ac_cv_lib_atomic_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-latomic $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_atomic_main=yes else ac_cv_lib_atomic_main=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_atomic_main" >&5 $as_echo "$ac_cv_lib_atomic_main" >&6; } if test "x$ac_cv_lib_atomic_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBATOMIC 1 _ACEOF LIBS="-latomic $LIBS" fi ac_cv_lib_atomic=ac_cv_lib_atomic_main tmp_CXXFLAGS="$CXXFLAGS" tmp_CPPFLAGS="$CPPFLAGS" tmp_CFLAGS="$CFLAGS" tmp_LDFLAGS="$LDFLAGS" tmp_LIBS="$LIBS" CXXFLAGS="" CPPFLAGS="" CFLAGS="" LDFLAGS="" LIBS="" ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_h" = xyes; then : else as_fn_error $? "*** pthread header file not found!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $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 pthread_mutex_init (); int main () { return pthread_mutex_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_mutex_init=yes else ac_cv_lib_pthread_pthread_mutex_init=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_pthread_pthread_mutex_init" >&5 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPTHREAD 1 _ACEOF LIBS="-lpthread $LIBS" else as_fn_error $? "*** pthread library not found!" "$LINENO" 5 fi PTHREAD_CFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS" PTHREAD_LIBS="$LDFLAGS $LIBS" CXXFLAGS="$tmp_CXXFLAGS" CPPFLAGS="$tmp_CPPFLAGS" CFLAGS="$tmp_CFLAGS" LDFLAGS="$tmp_LDFLAGS" LIBS="$tmp_LIBS" tmp_CXXFLAGS="$CXXFLAGS" tmp_CPPFLAGS="$CPPFLAGS" tmp_CFLAGS="$CFLAGS" tmp_LDFLAGS="$LDFLAGS" tmp_LIBS="$LIBS" CXXFLAGS="" CPPFLAGS="" CFLAGS="$EXPAT_CFLAGS" LDFLAGS="$EXPAT_LDFLAGS" LIBS="" ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" if test "x$ac_cv_header_expat_h" = xyes; then : else as_fn_error $? "*** eXpat header file not found!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; } if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lexpat $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 XML_ParserCreate (); int main () { return XML_ParserCreate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_expat_XML_ParserCreate=yes else ac_cv_lib_expat_XML_ParserCreate=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_expat_XML_ParserCreate" >&5 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; } if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBEXPAT 1 _ACEOF LIBS="-lexpat $LIBS" else as_fn_error $? "*** eXpat library not found!" "$LINENO" 5 fi EXPAT_CFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS" EXPAT_LIBS="$LDFLAGS $LIBS" CXXFLAGS="$tmp_CXXFLAGS" CPPFLAGS="$tmp_CPPFLAGS" CFLAGS="$tmp_CFLAGS" LDFLAGS="$tmp_LDFLAGS" LIBS="$tmp_LIBS" # Check whether --enable-sse was given. if test "${enable_sse+set}" = set; then : enableval=$enable_sse; else enable_sse="auto" fi if test "x$enable_sse" = "xyes"; then : enable_sse="auto" fi #AC_MSG_RESULT([SSE: $enable_sse]) if test "x$enable_sse" = "x3"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting sse level 3" >&5 $as_echo "Setting sse level 3" >&6; } SSEFLAGS="-DSSE -msse -msse2 -mss3" elif test "x$enable_sse" = "x2"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting sse level 2" >&5 $as_echo "Setting sse level 2" >&6; } SSEFLAGS="-DSSE -msse -msse2" elif test "x$enable_sse" = "x1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting sse level 1" >&5 $as_echo "Setting sse level 1" >&6; } SSEFLAGS="-DSSE -msse" elif test "x$enable_sse" = "xauto"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Auto setting sse level" >&5 $as_echo "Auto setting sse level" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sse3 instructions" >&5 $as_echo_n "checking for sse3 instructions... " >&6; } if grep -q "sse3" /proc/cpuinfo; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SSEFLAGS="-msse3" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sse2 instructions" >&5 $as_echo_n "checking for sse2 instructions... " >&6; } if grep -q "sse2" /proc/cpuinfo; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SSEFLAGS="$SSEFLAGS -msse2" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sse instructions" >&5 $as_echo_n "checking for sse instructions... " >&6; } if grep -q "sse" /proc/cpuinfo; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SSEFLAGS="$SSEFLAGS -DSSE -msse" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Disabling SSE ***" >&5 $as_echo "*** Disabling SSE ***" >&6; } fi if test "x$need_jack" = "xyes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5 $as_echo_n "checking for JACK... " >&6; } if test -n "$JACK_CFLAGS"; then pkg_cv_JACK_CFLAGS="$JACK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.120.1\""; } >&5 ($PKG_CONFIG --exists --print-errors "jack >= 0.120.1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.120.1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$JACK_LIBS"; then pkg_cv_JACK_LIBS="$JACK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.120.1\""; } >&5 ($PKG_CONFIG --exists --print-errors "jack >= 0.120.1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.120.1" 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 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.120.1" 2>&1` else JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.120.1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$JACK_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (jack >= 0.120.1) were not met: $JACK_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 JACK_CFLAGS and JACK_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 JACK_CFLAGS and JACK_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 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS JACK_LIBS=$pkg_cv_JACK_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi fi ac_config_files="$ac_config_files Makefile tools/Makefile src/Makefile plugin/Makefile plugin/vst/Makefile plugingui/Makefile include/Makefile man/Makefile test/Makefile test/dgreftest/Makefile test/uitests/Makefile drumgizmo/Makefile" 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__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepOBJC\" 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 "${ENABLE_PUGL_TRUE}" && test -z "${ENABLE_PUGL_FALSE}"; then as_fn_error $? "conditional \"ENABLE_PUGL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_WIN32_TRUE}" && test -z "${ENABLE_WIN32_FALSE}"; then as_fn_error $? "conditional \"ENABLE_WIN32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_X11_TRUE}" && test -z "${ENABLE_X11_FALSE}"; then as_fn_error $? "conditional \"ENABLE_X11\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_COCOA_TRUE}" && test -z "${ENABLE_COCOA_FALSE}"; then as_fn_error $? "conditional \"ENABLE_COCOA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_LV2_TRUE}" && test -z "${ENABLE_LV2_FALSE}"; then as_fn_error $? "conditional \"ENABLE_LV2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_VST_TRUE}" && test -z "${ENABLE_VST_FALSE}"; then as_fn_error $? "conditional \"ENABLE_VST\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_CLI_TRUE}" && test -z "${ENABLE_CLI_FALSE}"; then as_fn_error $? "conditional \"ENABLE_CLI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_INPUT_DUMMY_TRUE}" && test -z "${HAVE_INPUT_DUMMY_FALSE}"; then as_fn_error $? "conditional \"HAVE_INPUT_DUMMY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_INPUT_TEST_TRUE}" && test -z "${HAVE_INPUT_TEST_FALSE}"; then as_fn_error $? "conditional \"HAVE_INPUT_TEST\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_INPUT_JACKMIDI_TRUE}" && test -z "${HAVE_INPUT_JACKMIDI_FALSE}"; then as_fn_error $? "conditional \"HAVE_INPUT_JACKMIDI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_INPUT_MIDIFILE_TRUE}" && test -z "${HAVE_INPUT_MIDIFILE_FALSE}"; then as_fn_error $? "conditional \"HAVE_INPUT_MIDIFILE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_OUTPUT_DUMMY_TRUE}" && test -z "${HAVE_OUTPUT_DUMMY_FALSE}"; then as_fn_error $? "conditional \"HAVE_OUTPUT_DUMMY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_OUTPUT_ALSA_TRUE}" && test -z "${HAVE_OUTPUT_ALSA_FALSE}"; then as_fn_error $? "conditional \"HAVE_OUTPUT_ALSA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_OUTPUT_WAVFILE_TRUE}" && test -z "${HAVE_OUTPUT_WAVFILE_FALSE}"; then as_fn_error $? "conditional \"HAVE_OUTPUT_WAVFILE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_OUTPUT_JACKAUDIO_TRUE}" && test -z "${HAVE_OUTPUT_JACKAUDIO_FALSE}"; then as_fn_error $? "conditional \"HAVE_OUTPUT_JACKAUDIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_OUTPUT_OSS_TRUE}" && test -z "${HAVE_OUTPUT_OSS_FALSE}"; then as_fn_error $? "conditional \"HAVE_OUTPUT_OSS\" 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 drumgizmo $as_me 0.9.14, 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 the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ drumgizmo config.status 0.9.14 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"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $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 \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ reload_flag_CXX \ compiler_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_static_CXX \ lt_cv_prog_compiler_c_o_CXX \ export_dynamic_flag_spec_CXX \ whole_archive_flag_spec_CXX \ compiler_needs_object_CXX \ with_gnu_ld_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_separator_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX \ file_list_spec_CXX \ compiler_lib_search_dirs_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX; 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 \ reload_cmds_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ export_symbols_cmds_CXX \ prelink_cmds_CXX \ postlink_cmds_CXX; 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" ;; "plugin/Makefile.mingw32") CONFIG_FILES="$CONFIG_FILES plugin/Makefile.mingw32" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;; "plugin/vst/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/vst/Makefile" ;; "plugingui/Makefile") CONFIG_FILES="$CONFIG_FILES plugingui/Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; "test/dgreftest/Makefile") CONFIG_FILES="$CONFIG_FILES test/dgreftest/Makefile" ;; "test/uitests/Makefile") CONFIG_FILES="$CONFIG_FILES test/uitests/Makefile" ;; "drumgizmo/Makefile") CONFIG_FILES="$CONFIG_FILES drumgizmo/Makefile" ;; *) 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="CXX " # ### 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 # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### 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" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # 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_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # 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_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # 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_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF ;; 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 drumgizmo-0.9.14/NEWS0000644000076400017500000000000012525310660011234 00000000000000drumgizmo-0.9.14/test/0000755000076400017500000000000013106063422011603 500000000000000drumgizmo-0.9.14/test/configtest.cc0000644000076400017500000001237213103356674014217 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * configtest.cc * * Thu May 14 20:58:29 CEST 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include "../src/configfile.h" class TestConfigFile : public ConfigFile { public: TestConfigFile() : ConfigFile("") {} protected: // Overload the built-in open method to use local file instead of homedir. virtual bool open(std::string mode) { fp = fopen("test.conf", mode.c_str()); return fp != NULL; } }; class test_configtest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(test_configtest); CPPUNIT_TEST(loading_no_newline); CPPUNIT_TEST(loading_equal_sign); CPPUNIT_TEST(loading_newline); CPPUNIT_TEST(loading_padding_space); CPPUNIT_TEST(loading_padding_space_newline); CPPUNIT_TEST(loading_padding_tab); CPPUNIT_TEST(loading_padding_tab_newline); CPPUNIT_TEST(loading_comment); CPPUNIT_TEST(loading_inline_comment); CPPUNIT_TEST(loading_single_quoted_string); CPPUNIT_TEST(loading_double_quoted_string); CPPUNIT_TEST(loading_error_no_key); CPPUNIT_TEST(loading_error_no_value); CPPUNIT_TEST(loading_error_string_not_terminated_single); CPPUNIT_TEST(loading_error_string_not_terminated_double); CPPUNIT_TEST_SUITE_END(); public: void setUp() { } void tearDown() { unlink("test.conf"); } void writeFile(const char* str) { FILE* fp = fopen("test.conf", "w"); fprintf(fp, "%s", str); fclose(fp); } void loading_no_newline() { writeFile("a:b"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("b"), cf.getValue("a")); } void loading_equal_sign() { writeFile(" a =\tb\t\n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("b"), cf.getValue("a")); } void loading_newline() { writeFile("a:b\n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("b"), cf.getValue("a")); } void loading_padding_space() { writeFile(" a : b "); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("b"), cf.getValue("a")); } void loading_padding_tab() { writeFile("\ta\t:\tb\t"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("b"), cf.getValue("a")); } void loading_padding_space_newline() { writeFile(" a : b \n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("b"), cf.getValue("a")); } void loading_padding_tab_newline() { writeFile("\ta\t:\tb\t\n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("b"), cf.getValue("a")); } void loading_comment() { writeFile("# comment\na:b\n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("b"), cf.getValue("a")); } void loading_inline_comment() { writeFile("a:b #comment\n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("b"), cf.getValue("a")); } void loading_single_quoted_string() { writeFile("a: '#\"b\" ' \n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("#\"b\" "), cf.getValue("a")); } void loading_double_quoted_string() { writeFile("a: \"#'b' \" \n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(true, cf.load()); CPPUNIT_ASSERT_EQUAL(std::string("#'b' "), cf.getValue("a")); } void loading_error_no_key() { writeFile(":foo"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(false, cf.load()); } void loading_error_no_value() { writeFile("key"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(false, cf.load()); } void loading_error_string_not_terminated_single() { writeFile("a:'b\n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(false, cf.load()); } void loading_error_string_not_terminated_double() { writeFile("a:\"b\n"); TestConfigFile cf; CPPUNIT_ASSERT_EQUAL(false, cf.load()); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(test_configtest); drumgizmo-0.9.14/test/test.cc0000644000076400017500000000350713076176503013031 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * test.cc * * Fri Nov 29 17:45:40 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include int main(int argc, char* argv[]) { // Get the top level suite from the registry CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest(); // Adds the test to the list of test to run CppUnit::TextUi::TestRunner runner; runner.addTest( suite ); std::ofstream myfile; myfile.open("result_" OUTPUT ".xml"); runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), myfile)); // Run the tests. bool wasSucessful = runner.run(); myfile.close(); // Return error code 1 if the one of test failed. return wasSucessful ? 0 : 1; } drumgizmo-0.9.14/test/memcheckertest.cc0000644000076400017500000000757413077120604015055 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * memcheckertest.cc * * Mon Jan 18 15:08:31 CET 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ // This test should include: // ------------------------- // * Load a small drumkit and check that the memchecker doesn't warn. // -> this assumes that the system is not already swapping which is sane imo. // * Load a huge drumkit and check that the memchecker does warn. // * Load a kit where we exactly know the size of the audio files and check if it's correct. // * Check if the amount of free ram is in a realistic range. // // NOTE: This test will fail if your system is currently swapping or has an extremely small amount of RAM. #include #include "../src/memchecker.h" #include "../src/drumkit.h" #include "../src/drumkitparser.h" #include "drumkit_creator.h" class MemCheckerTest : public CppUnit::TestFixture , public MemChecker { CPPUNIT_TEST_SUITE(MemCheckerTest); CPPUNIT_TEST(small_drumkit); CPPUNIT_TEST(huge_drumkit); CPPUNIT_TEST(correct_size); CPPUNIT_TEST(check_free_ram); CPPUNIT_TEST_SUITE_END(); private: Settings settings; DrumKit kit; Random random; DrumkitCreator drumkit_creator; const std::string small_kit_path = drumkit_creator.createSmallKit("small_kit"); const std::string huge_kit_path = drumkit_creator.createHugeKit("huge_kit"); const std::string audiofile = drumkit_creator.createMultiChannelWav("multi_channel.wav"); public: void setUp() { // just to be sure kit.clear(); } void tearDown() {} void small_drumkit() { // load the small kit DrumKitParser parser(settings, kit, random); CPPUNIT_ASSERT(!parser.parseFile(small_kit_path)); // check if the memchecker thinks it fits into memory CPPUNIT_ASSERT(enoughFreeMemory(kit)); } void huge_drumkit() { // load the huge kit DrumKitParser parser(settings, kit, random); CPPUNIT_ASSERT(!parser.parseFile(huge_kit_path)); // check if the memchecker thinks it doesn't fit into memory CPPUNIT_ASSERT(!enoughFreeMemory(kit)); } void correct_size() { // check if the memchecker reports the right audiofile size uint64_t bytes_per_channel = 2199332; CPPUNIT_ASSERT_EQUAL(bytes_per_channel, calcBytesPerChannel(audiofile)); // load the huge kit DrumKitParser parser(settings, kit, random); CPPUNIT_ASSERT(!parser.parseFile(huge_kit_path)); // check if the protected method of the memchecker reports the correct size uint64_t needed_memory = 71478290000; CPPUNIT_ASSERT_EQUAL(needed_memory, calcNeededMemory(kit)); } void check_free_ram() { // check if the protected method reports a sane value of free ram uint64_t free_memory = calcFreeMemory(); uint64_t min_free_memory = 1000; uint64_t max_free_memory = 50000000000; CPPUNIT_ASSERT(free_memory >= min_free_memory && free_memory <= max_free_memory); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(MemCheckerTest); drumgizmo-0.9.14/test/drumkitcreatortest.cc0000644000076400017500000000321513077120604015775 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkitcreatortest.cc * * Sat Jan 14 15:55:39 CET 2017 * Copyright 2017 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "drumkit_creator.h" class DrumkitcreatorTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(DrumkitcreatorTest); CPPUNIT_TEST(testTest); CPPUNIT_TEST_SUITE_END(); DrumkitCreator drumkit_creator; public: void setUp() { } void tearDown() { } //! This just creates some drumkit. void testTest() { drumkit_creator.createStdKit("stdkit"); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(DrumkitcreatorTest); drumgizmo-0.9.14/test/lv2_test_host.cc0000644000076400017500000002267413076176503014657 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * lv2_test_host.cc * * Wed Feb 11 23:11:21 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "lv2_test_host.h" #include #include #include #include #include #include /////////////////////////////// // Base64 encoder: // #include #include #include #include class Base64 { public: Base64() { mbio = (void*)BIO_new(BIO_s_mem()); BIO *b64bio = BIO_new(BIO_f_base64()); bio = (void*)BIO_push(b64bio, (BIO*)mbio); } ~Base64() { BIO_free_all((BIO*)bio); } std::string write(std::string in) { return this->write(in.data(), in.length()); } std::string write(const char *in, size_t size) { std::string out; BIO_write((BIO*)bio, in, size); size_t osize = BIO_ctrl_pending((BIO*)mbio); char *outbuf = (char*)malloc(osize); int len = BIO_read((BIO*)mbio, outbuf, osize); if(len < 1) { return ""; } out.append(outbuf, len); free(outbuf); return out; } std::string flush() { std::string out; (void)BIO_flush((BIO*)bio); size_t size = BIO_ctrl_pending((BIO*)mbio); char *outbuf = (char*)malloc(size); int len = BIO_read((BIO*)mbio, outbuf, size); if(len < 1) { return ""; } out.append(outbuf, len); free(outbuf); return out; } private: void *bio; void *mbio; }; // // Base64 encoder /////////////////////////////// // TODO: Use map instead static char** uris = nullptr; static size_t n_uris = 0; static LV2_URID map_uri(LV2_URID_Map_Handle handle, const char* uri) { for(size_t i = 0; i < n_uris; ++i) { if(!strcmp(uris[i], uri)) { return i + 1; } } uris = (char**)realloc(uris, ++n_uris * sizeof(char*)); uris[n_uris - 1] = strdup(uri); return n_uris; } static const char* unmap_uri(LV2_URID_Map_Handle handle, LV2_URID urid) { if((urid > 0) && (urid <= n_uris)) { return uris[urid - 1]; } return nullptr; } LV2_URID_Map map = { nullptr, map_uri }; LV2_Feature map_feature = { LV2_URID_MAP_URI, &map }; LV2_URID_Unmap unmap = { nullptr, unmap_uri }; LV2_Feature unmap_feature = { LV2_URID_UNMAP_URI, &unmap }; const LV2_Feature* features[] = { &map_feature, &unmap_feature, nullptr }; LV2TestHost::Sequence::Sequence(void *buffer, size_t buffer_size) { this->buffer = buffer; this->buffer_size = buffer_size; seq = (LV2_Atom_Sequence *)buffer; seq->atom.size = sizeof(LV2_Atom_Sequence_Body); seq->atom.type = map.map(map.handle, LV2_ATOM__Sequence); seq->body.unit = 0; seq->body.pad = 0; } // Keep this to support atom extension from lv2 < 1.10 static inline void _lv2_atom_sequence_clear(LV2_Atom_Sequence* seq) { seq->atom.size = sizeof(LV2_Atom_Sequence_Body); } void LV2TestHost::Sequence::clear() { _lv2_atom_sequence_clear(seq); } // Keep this to support atom extension from lv2 < 1.10 static inline LV2_Atom_Event* _lv2_atom_sequence_append_event(LV2_Atom_Sequence* seq, uint32_t capacity, const LV2_Atom_Event* event) { const uint32_t total_size = (uint32_t)sizeof(*event) + event->body.size; if(capacity - seq->atom.size < total_size) { return nullptr; } LV2_Atom_Event* e = lv2_atom_sequence_end(&seq->body, seq->atom.size); memcpy(e, event, total_size); seq->atom.size += lv2_atom_pad_size(total_size); return e; } void LV2TestHost::Sequence::addMidiNote(uint64_t pos, uint8_t key, int8_t velocity) { typedef struct { LV2_Atom_Event event; uint8_t msg[3]; } MIDINoteEvent; uint8_t note_on = 0x90; MIDINoteEvent ev; ev.event.time.frames = pos;// sample position ev.event.body.type = map.map(map.handle, LV2_MIDI__MidiEvent); ev.event.body.size = sizeof(ev.msg); ev.msg[0] = note_on; ev.msg[1] = key; ev.msg[2] = velocity; LV2_Atom_Event *e = _lv2_atom_sequence_append_event(seq, this->buffer_size, &ev.event); (void)e; } void *LV2TestHost::Sequence::data() { return buffer; } LV2TestHost::LV2TestHost(const char *lv2_path) { if(lv2_path) { setenv("LV2_PATH", lv2_path, 1); } world = lilv_world_new(); if(world == nullptr) { return; } lilv_world_load_all(world); } LV2TestHost::~LV2TestHost() { if(world) { lilv_world_free(world); } } int LV2TestHost::open(const char *plugin_uri) { if(world == nullptr) { return 1; } plugins = lilv_world_get_all_plugins(world); if(plugins == nullptr) { return 2; } uri = lilv_new_uri(world, plugin_uri); if(uri == nullptr) { return 3; } plugin = lilv_plugins_get_by_uri(plugins, uri); if(plugin == nullptr) { return 4; } return 0; } int LV2TestHost::verify() { bool verify = lilv_plugin_verify(plugin); if(!verify) { return 1; } return 0; } int LV2TestHost::close() { // plugin is a const pointer; nothing to close here. return 0; } /* // Get metadata static void dumpNodes(LilvNodes *nodes) { LilvIter* iter = lilv_nodes_begin(nodes); while(iter) { const LilvNode* node = lilv_nodes_get(nodes, iter); printf(" - '%s'\n", lilv_node_as_uri(node)); iter = lilv_nodes_next(nodes, iter); } } void getMetadata() { LilvNode* name = lilv_plugin_get_name(plugin); if(name) printf("Name: %s\n", lilv_node_as_uri(name)); // ---> line 731 in lilv.h bool has_latency = lilv_plugin_has_latency(plugin); printf("Has latency: %d\n", has_latency); if(has_latency) { uint32_t latency_port_index = lilv_plugin_get_latency_port_index(plugin); const LilvPort* port = lilv_plugin_get_port_by_index(plugin, latency_port_index); // Do something to actually get latency from port.... } LilvNode* author = lilv_plugin_get_author_name(plugin); if(author) printf("Author: %s\n", lilv_node_as_uri(author)); LilvNode* email = lilv_plugin_get_author_email(plugin); if(email) printf("Email: %s\n", lilv_node_as_uri(email)); LilvNode* homepage = lilv_plugin_get_author_homepage(plugin); if(homepage) printf("Homepage: %s\n", lilv_node_as_uri(homepage)); LilvNodes* supported = lilv_plugin_get_supported_features(plugin); LilvNodes* required = lilv_plugin_get_required_features(plugin); LilvNodes* optional = lilv_plugin_get_optional_features(plugin); printf("Supported:\n"); dumpNodes(supported); printf("Required:\n"); dumpNodes(required); printf("Optional:\n"); dumpNodes(optional); lilv_nodes_free(supported); lilv_nodes_free(required); lilv_nodes_free(optional); } */ /* int LV2TestHost::getPorts() { // Iterate ports: const LilvPort* port; uint32_t portidx = 0; while( (port = lilv_plugin_get_port_by_index(plugin, portidx)) != 0) { printf("Port: %d\n", portidx); LilvNode* port_name = lilv_port_get_name(plugin, port); if(port_name) printf(" Name: %s\n", lilv_node_as_uri(port_name)); portidx++; } } */ int LV2TestHost::createInstance(size_t samplerate) { instance = lilv_plugin_instantiate(plugin, samplerate, features); if(instance == nullptr) { return 1; } return 0; } int LV2TestHost::destroyInstance() { if(instance) { lilv_instance_free(instance); } return 0; } int LV2TestHost::activate() { lilv_instance_activate(instance); return 0; } int LV2TestHost::deactivate() { lilv_instance_deactivate(instance); return 0; } int LV2TestHost::loadConfig(const char *config, size_t size) { Base64 b64; std::string b64_config = b64.write(config, size); b64_config += b64.flush(); //printf("Base 64 config: [%s]\n", b64_config.c_str()); const char ttl_config_fmt[] = "\n" " a pset:Preset ;\n" " lv2:appliesTo ;\n" " state:state [\n" " \"\"\"%s\"\"\"^^xsd:base64Binary\n" " ] .\n"; char ttl_config[sizeof(ttl_config_fmt) * 2 + b64_config.size()]; sprintf(ttl_config, ttl_config_fmt, b64_config.c_str()); //printf("ttl config: [%s]\n", ttl_config); { LilvState* restore_state = lilv_state_new_from_string(world, &map, ttl_config); lilv_state_restore(restore_state, instance, nullptr, nullptr, LV2_STATE_IS_POD | LV2_STATE_IS_PORTABLE, features); } return 0; } int LV2TestHost::connectPort(int port, void *portdata) { // if(lilv_port_is_a(p, port, lv2_ControlPort)) ... lilv_instance_connect_port(instance, port, portdata); return 0; } int LV2TestHost::run(int num_samples) { lilv_instance_run(instance, num_samples); return 0; } drumgizmo-0.9.14/test/bytesizeparsertest.cc0000644000076400017500000000746513077120604016024 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * bytesizeparsertest.cc * * Sun Mar 05 11:44:23 CET 2017 * Copyright 2017 Goran Mekić * meka@tilda.center ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "bytesizeparser.h" class ByteSizeParserTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(ByteSizeParserTest); CPPUNIT_TEST(suffixTest); CPPUNIT_TEST(falseSuffixTest); CPPUNIT_TEST(falseNumberTest); CPPUNIT_TEST(tooBigNumberTest); CPPUNIT_TEST_SUITE_END(); public: void setUp() {} void tearDown() {} void suffixTest() { std::size_t computed_size, expected_size; std::size_t kilo = 1024, mega = kilo * 1024, giga = mega * 1024; computed_size = byteSizeParser("3"); expected_size = 3; CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("3k"); expected_size = 3 * kilo; CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("3M"); expected_size = 3 * mega; CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("3G"); expected_size = 3 * giga; CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); } void falseSuffixTest() { std::size_t computed_size, expected_size = 0; computed_size = byteSizeParser("3K"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("3m"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("3g"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("3ddDD"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); } void falseNumberTest() { std::size_t computed_size, expected_size = 0; computed_size = byteSizeParser("K3k"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("-3"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("-3k"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("-3M"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("-3G"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("3-"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("3-k"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("k-3"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser("3-1"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); computed_size = byteSizeParser(" -3"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); } void tooBigNumberTest() { std::size_t computed_size, expected_size = 0; computed_size = byteSizeParser("999999999999999999999999999999999999G"); CPPUNIT_ASSERT_EQUAL(expected_size, computed_size); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(ByteSizeParserTest); drumgizmo-0.9.14/test/enginetest.cc0000644000076400017500000000670413103355056014212 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * engine.cc * * Fri Nov 29 18:09:02 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include "drumkit_creator.h" class AudioOutputEngineDummy : public AudioOutputEngine { public: bool init(const Channels& channels) { return true; } void setParm(const std::string& parm, const std::string& value) {} bool start() { return true; } void stop() {} void pre(size_t nsamples) {} void run(int ch, sample_t *samples, size_t nsamples) {} void post(size_t nsamples) {} bool isFreewheeling() const { return true; } }; class AudioInputEngineDummy : public AudioInputEngine { public: bool init(const Instruments& instruments) { return true; } void setParm(const std::string& parm, const std::string& value) {} bool start() { return true; } void stop() {} void pre() {} void run(size_t pos, size_t len, std::vector& events) {} void post() {} bool isFreewheeling() const { return true; } }; class test_engine : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(test_engine); CPPUNIT_TEST(loading); CPPUNIT_TEST_SUITE_END(); DrumkitCreator drumkit_creator; public: void setUp() {} void tearDown() {} void loading() { Settings settings; AudioOutputEngineDummy oe; AudioInputEngineDummy ie; DrumGizmo dg(settings, oe, ie); dg.setFrameSize(100); // Create drumkits auto kit1_file = drumkit_creator.createStdKit("kit1"); auto kit2_file = drumkit_creator.createStdKit("kit2"); // Switch kits emmidiately without giving the loader time to work: for(int i = 0; i < 100; ++i) { settings.drumkit_file.store(kit1_file); settings.drumkit_file.store(kit2_file); } // Switch kits with small delay giving the loader time to work a little: for(int i = 0; i < 100; ++i) { settings.drumkit_file.store(kit1_file); std::this_thread::sleep_for(std::chrono::microseconds(100)); settings.drumkit_file.store(kit2_file); std::this_thread::sleep_for(std::chrono::microseconds(100)); } // Switch kits with bigger delay giving the loader time to finish for(int i = 0; i < 100; ++i) { settings.drumkit_file.store(kit1_file); std::this_thread::sleep_for(std::chrono::milliseconds(10)); settings.drumkit_file.store(kit2_file); std::this_thread::sleep_for(std::chrono::milliseconds(10)); } } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(test_engine); drumgizmo-0.9.14/test/audiocacheidmanagertest.cc0000644000076400017500000000605113076176503016704 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheidmanagertest.cc * * Thu Jan 7 15:42:31 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include class TestableAudioCacheIDManager : public AudioCacheIDManager { public: int getAvailableIDs() { return available_ids.size(); } }; class AudioCacheIDManagerTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(AudioCacheIDManagerTest); CPPUNIT_TEST(registerReleaseTest); CPPUNIT_TEST_SUITE_END(); public: void setUp() {} void tearDown() {} void registerReleaseTest() { TestableAudioCacheIDManager manager; manager.init(2); cache_t c1; c1.afile = (AudioCacheFile*)1; auto id1 = manager.registerID(c1); CPPUNIT_ASSERT(id1 != CACHE_DUMMYID); CPPUNIT_ASSERT(id1 != CACHE_NOID); CPPUNIT_ASSERT_EQUAL(1, manager.getAvailableIDs()); cache_t c2; c2.afile = (AudioCacheFile*)2; auto id2 = manager.registerID(c2); CPPUNIT_ASSERT(id2 != CACHE_DUMMYID); CPPUNIT_ASSERT(id2 != CACHE_NOID); CPPUNIT_ASSERT_EQUAL(0, manager.getAvailableIDs()); cache_t c3; c3.afile = (AudioCacheFile*)3; auto id3 = manager.registerID(c3); CPPUNIT_ASSERT(id3 == CACHE_DUMMYID); CPPUNIT_ASSERT_EQUAL(0, manager.getAvailableIDs()); cache_t& tc1 = manager.getCache(id1); CPPUNIT_ASSERT_EQUAL(c1.afile, tc1.afile); cache_t& tc2 = manager.getCache(id2); CPPUNIT_ASSERT_EQUAL(c2.afile, tc2.afile); manager.releaseID(id1); CPPUNIT_ASSERT_EQUAL(1, manager.getAvailableIDs()); cache_t c4; c4.afile = (AudioCacheFile*)4; auto id4 = manager.registerID(c4); CPPUNIT_ASSERT(id4 != CACHE_DUMMYID); CPPUNIT_ASSERT(id4 != CACHE_NOID); CPPUNIT_ASSERT_EQUAL(0, manager.getAvailableIDs()); cache_t& tc4 = manager.getCache(id4); CPPUNIT_ASSERT_EQUAL(c4.afile, tc4.afile); manager.releaseID(id2); CPPUNIT_ASSERT_EQUAL(1, manager.getAvailableIDs()); manager.releaseID(id4); CPPUNIT_ASSERT_EQUAL(2, manager.getAvailableIDs()); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(AudioCacheIDManagerTest); drumgizmo-0.9.14/test/atomictest.cc0000644000076400017500000001051013077120604014206 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * atomic.cc * * Wed Mar 23 09:17:12 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include class AtomicTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(AtomicTest); CPPUNIT_TEST(podAtomicsUseStandardImpl); CPPUNIT_TEST(nonPodAtomicsUseOwnImpl); CPPUNIT_TEST(podAtomicCanBeDefaultInitialized); CPPUNIT_TEST(nonPodAtomicCanBeDefaultInitialized); CPPUNIT_TEST(podAtomicCanBeValueInitialized); CPPUNIT_TEST(nonPodAtomicCanBeValueInitialized); CPPUNIT_TEST(podAtomicCanBeValueAssigned); CPPUNIT_TEST(nonPodAtomicCanBeValueAssigned); CPPUNIT_TEST(podAtomicsAreLockFree); CPPUNIT_TEST_SUITE_END(); public: void setUp() {} void tearDown() {} void podAtomicsUseStandardImpl() { CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); CPPUNIT_ASSERT(isUsingStandardImpl()); } void nonPodAtomicsUseOwnImpl() { CPPUNIT_ASSERT(!isUsingStandardImpl()); } void podAtomicCanBeDefaultInitialized() { Atomic i; // note: i is initialized with garbage (void)i; // prevent compiler 'unused' warning } void nonPodAtomicCanBeDefaultInitialized() { Atomic s; CPPUNIT_ASSERT_EQUAL(s.load(), std::string{}); } void podAtomicCanBeValueInitialized() { Atomic i{5}; CPPUNIT_ASSERT_EQUAL(i.load(), 5); } void nonPodAtomicCanBeValueInitialized() { Atomic s{"hello world"}; CPPUNIT_ASSERT_EQUAL(s.load(), std::string{"hello world"}); } void podAtomicCanBeValueAssigned() { Atomic i; i = 5; CPPUNIT_ASSERT_EQUAL(i.load(), 5); } void nonPodAtomicCanBeValueAssigned() { Atomic s; s = "hello world"; CPPUNIT_ASSERT_EQUAL(s.load(), std::string{"hello world"}); } void podAtomicsAreLockFree() { CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); CPPUNIT_ASSERT(isLockFree()); // compile error: undefined reference to `__atomic_is_lock_free' //CPPUNIT_ASSERT(isLockFree()); } // todo: further testing private: template bool isUsingStandardImpl() { return std::is_base_of, Atomic>::value; } template bool isLockFree() { Atomic a; return a.is_lock_free(); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(AtomicTest); drumgizmo-0.9.14/test/drumkit_creator.h0000644000076400017500000000727413077120604015107 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkit_creator.h * * Thu Jan 12 18:51:34 CET 2017 * Copyright 2017 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include class DrumkitCreator { public: using Sample = uint16_t; //! If is_random is true then this overrules the sample member. If is_random //! is false however, every sample is chosen as the one in the member variable. struct WavInfo { const std::string filename; const std::size_t length; const bool is_random; const Sample sample; WavInfo(const std::string& filename, std::size_t length) : filename(filename), length(length), is_random(true), sample(0) {} WavInfo(const std::string& filename, std::size_t length, Sample sample) : filename(filename), length(length), is_random(false), sample(sample) {} }; struct Audiofile { WavInfo* wav_info; std::size_t filechannel; }; struct SampleData { std::string name; // Vector of non-owning pointers and therefore it is raw. std::vector audiofiles; }; struct InstrumentData { std::string name; std::string filename; std::vector sample_data; }; struct DrumkitData { std::string name; std::size_t number_of_channels; std::vector instruments; std::vector wav_infos; }; DrumkitCreator() = default; //! This destructor removes all the created temporary files and directories. ~DrumkitCreator(); //! Creates a drumkit from data in the temporary directory of the OS and //! returns its filename. std::string create(const DrumkitData& data); //! Creates a single wav file void createWav(const WavInfo& wav_info, std::size_t number_of_channels, const std::string& dir); //! Those functions create some special wav files, drumkits, and midimaps //@{ std::string createStdKit(const std::string& name); std::string createSmallKit(const std::string& name); std::string createHugeKit(const std::string& name); std::string createSingleChannelWav(const std::string& name); std::string createMultiChannelWav(const std::string& name); std::string create0000Wav(const std::string& name); std::string createStdMidimap(const std::string& name); //@} private: std::vector created_files; std::vector created_directories; bool is_valid(const DrumkitData& data); std::string createTemporaryDirectory(const std::string& name); std::vector createData(const WavInfo& wav_info, std::size_t number_of_channels); void createInstrument(const InstrumentData& data, std::size_t number_of_channels, const std::string& dir); std::string createDrumkitFile(const DrumkitData& data, const std::string& dir); }; drumgizmo-0.9.14/test/paintertest.cc0000644000076400017500000001137113077120604014402 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * paintertest.cc * * Fri Nov 29 18:08:57 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "../plugingui/canvas.h" #include "../plugingui/painter.h" #include "../plugingui/image.h" #include "../plugingui/font.h" class TestableCanvas : public GUI::Canvas { public: TestableCanvas(std::size_t width, std::size_t height) : pixbuf(width, height) {} GUI::PixelBufferAlpha& GetPixelBuffer() override { return pixbuf; } private: GUI::PixelBufferAlpha pixbuf; }; class PainterTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(PainterTest); CPPUNIT_TEST(testDrawImage); CPPUNIT_TEST(testDrawText); CPPUNIT_TEST_SUITE_END(); public: void setUp() {} void tearDown() {} void testDrawImage() { // Success criterion is simply to not assert in the drawing routines... GUI::Image image(":resources/logo.png"); { // Image fits in pixelbuffer TestableCanvas canvas(image.width(), image.height()); GUI::Painter painter(canvas); painter.drawImage(0, 0, image); } { // Image fits in pixelbuffer, negative offset TestableCanvas canvas(image.width(), image.height()); GUI::Painter painter(canvas); painter.drawImage(-10, -10, image); } { // Image too big for pixelbuffer TestableCanvas canvas(image.width() / 2, image.height() / 2); GUI::Painter painter(canvas); painter.drawImage(0, 0, image); } { // Image fits in pixelbuffer but offset so it is drawn over the edge. TestableCanvas canvas(image.width(), image.height()); GUI::Painter painter(canvas); painter.drawImage(10, 10, image); } { // Image is offset to the right and down so nothing is to be drawn. TestableCanvas canvas(image.width(), image.height()); GUI::Painter painter(canvas); painter.drawImage(image.width() + 1, image.height() + 1, image); } { // Image is offset to the left and up so nothing is to be drawn. TestableCanvas canvas(image.width(), image.height()); GUI::Painter painter(canvas); painter.drawImage(-1 * (image.width() + 1), -1 * (image.height() + 1), image); } } void testDrawText() { // Success criterion is simply to not assert in the drawing routines... GUI::Font font; // a string with unicode characters std::string someText = "Hello World - лæ Библиотека"; std::size_t width = font.textWidth(someText); std::size_t height = font.textHeight(someText); { // Text fits in pixelbuffer TestableCanvas canvas(width, height); GUI::Painter painter(canvas); painter.drawText(0, 0, font, someText); } { // Text fits in pixelbuffer, negative offset TestableCanvas canvas(width, height); GUI::Painter painter(canvas); painter.drawText(-10, -10, font, someText); } { // Text too big for pixelbuffer TestableCanvas canvas(width / 2, height / 2); GUI::Painter painter(canvas); painter.drawText(0, 0, font, someText); } { // Text fits in pixelbuffer but offset so it is drawn over the edge. TestableCanvas canvas(width, height); GUI::Painter painter(canvas); painter.drawText(10, 10, font, someText); } { // Text is offset to the right and down so nothing is to be drawn. TestableCanvas canvas(width, height); GUI::Painter painter(canvas); painter.drawText(width + 1, height + 1, font, someText); } { // Text is offset to the left and up so nothing is to be drawn. TestableCanvas canvas(width, height); GUI::Painter painter(canvas); painter.drawText(-1 * (width + 1), -1 * (height + 1), font, someText); } } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(PainterTest); drumgizmo-0.9.14/test/Makefile.am0000644000076400017500000001530213103350645013563 00000000000000# Rules for the test code (use `make check` to execute) SUBDIRS = dgreftest uitests if ENABLE_TESTS TESTS = resource enginetest paintertest resampler configfile audiocache \ audiocachefile audiocacheidmanager audiocacheeventhandler \ memchecker randomtest atomictest syncedsettingstest imagecachetest \ semaphoretest drumkitcreatortest bytesizeparsertest if ENABLE_LV2 TESTS += lv2 endif check_PROGRAMS = $(TESTS) resource_CXXFLAGS = -DOUTPUT=\"resource\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin resource_LDFLAGS = $(CPPUNIT_LIBS) $(SNDFILE_LIBS) resource_SOURCES = \ $(top_srcdir)/plugingui/resource.cc \ $(top_srcdir)/plugingui/resource_data.cc \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/src/random.cc \ test.cc \ drumkit_creator.cc \ resource_test.cc audiocache_CXXFLAGS = -DOUTPUT=\"audiocache\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/include \ -I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS) audiocache_LDFLAGS = $(PTHREAD_LIBS) $(CPPUNIT_LIBS) $(SNDFILE_LIBS) audiocache_SOURCES = \ $(top_srcdir)/src/audiocache.cc \ $(top_srcdir)/src/audiocacheeventhandler.cc \ $(top_srcdir)/src/audiocachefile.cc \ $(top_srcdir)/src/audiocacheidmanager.cc \ $(top_srcdir)/src/thread.cc \ $(top_srcdir)/src/semaphore.cc \ $(top_srcdir)/src/audiofile.cc \ $(top_srcdir)/src/random.cc \ test.cc \ drumkit_creator.cc \ audiocachetest.cc audiocachefile_CXXFLAGS = -DOUTPUT=\"audiocachefile\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/include \ -I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS) audiocachefile_LDFLAGS = $(PTHREAD_LIBS) $(CPPUNIT_LIBS) $(SNDFILE_LIBS) audiocachefile_SOURCES = \ $(top_srcdir)/src/audiocachefile.cc \ $(top_srcdir)/src/thread.cc \ $(top_srcdir)/src/semaphore.cc \ $(top_srcdir)/src/audiofile.cc \ $(top_srcdir)/src/random.cc \ test.cc \ drumkit_creator.cc \ audiocachefiletest.cc audiocacheidmanager_CXXFLAGS = -DOUTPUT=\"audiocacheidmanager\" \ $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/include \ -I$(top_srcdir)/hugin -DDISABLE_HUGIN $(SNDFILE_CFLAGS) audiocacheidmanager_LDFLAGS = $(CPPUNIT_LIBS) $(SNDFILE_LIBS) audiocacheidmanager_SOURCES = \ $(top_srcdir)/src/audiocacheidmanager.cc \ test.cc \ audiocacheidmanagertest.cc audiocacheeventhandler_CXXFLAGS = -DOUTPUT=\"audiocacheeventhandler\" \ $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/include \ -I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS) audiocacheeventhandler_LDFLAGS = $(PTHREAD_LIBS) $(CPPUNIT_LIBS) $(SNDFILE_LIBS) audiocacheeventhandler_SOURCES = \ $(top_srcdir)/src/audiocacheeventhandler.cc \ $(top_srcdir)/src/audiocacheidmanager.cc \ $(top_srcdir)/src/audiocachefile.cc \ $(top_srcdir)/src/thread.cc \ $(top_srcdir)/src/semaphore.cc \ test.cc \ audiocacheeventhandlertest.cc enginetest_CXXFLAGS = -DOUTPUT=\"enginetest\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/include \ -I$(top_srcdir)/hugin $(PTHREAD_CFLAGS) enginetest_LDFLAGS = $(CPPUNIT_LIBS) $(PTHREAD_LIBS) $(SNDFILE_LIBS) \ $(top_srcdir)/src/libdg.la enginetest_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ test.cc \ drumkit_creator.cc \ enginetest.cc paintertest_CXXFLAGS = -DOUTPUT=\"paintertest\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/hugin $(PTHREAD_CFLAGS) paintertest_LDFLAGS = $(CPPUNIT_LIBS) $(top_srcdir)/plugingui/libdggui.la paintertest_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ test.cc \ paintertest.cc resampler_CXXFLAGS = -DOUTPUT=\"resampler\" $(CPPUNIT_CFLAGS) \ $(ZITA_CXXFLAGS) $(SAMPLERATE_CFLAGS) \ -I$(top_srcdir)/hugin -DDISABLE_HUGIN resampler_LDFLAGS = $(ZITA_LIBS) $(SAMPLERATE_LIBS) $(CPPUNIT_LIBS) resampler_SOURCES = \ $(top_srcdir)/src/chresampler.cc \ test.cc \ resampler.cc lv2_CXXFLAGS = -DOUTPUT=\"lv2\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src \ `pkg-config --cflags serd-0` `pkg-config --cflags lilv-0` \ -DLV2_PATH=\"@LV2DIR@\" lv2_LDFLAGS = $(CPPUNIT_LIBS) `pkg-config --libs serd-0` \ `pkg-config --libs lilv-0` -lcrypto \ $(SNDFILE_LIBS) lv2_SOURCES = \ $(top_srcdir)/src/random.cc \ test.cc \ drumkit_creator.cc \ lv2_test_host.cc \ lv2.cc configfile_CXXFLAGS = -DOUTPUT=\"configfile\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/hugin configfile_LDFLAGS = $(CPPUNIT_LIBS) configfile_SOURCES = \ $(top_srcdir)/src/configfile.cc \ $(top_srcdir)/hugin/hugin.c \ test.cc \ configtest.cc memchecker_CXXFLAGS = -DOUTPUT=\"memchecker\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/include \ -I$(top_srcdir)/hugin $(PTHREAD_CFLAGS) memchecker_LDFLAGS = $(CPPUNIT_LIBS) $(PTHREAD_LIBS) \ $(top_srcdir)/src/libdg.la memchecker_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ test.cc \ drumkit_creator.cc \ memcheckertest.cc randomtest_CXXFLAGS = -DOUTPUT=\"randomtest\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin -DDISABLE_HUGIN randomtest_CFLAGS = -DDISABLE_HUGIN randomtest_LDFLAGS = $(CPPUNIT_LIBS) randomtest_SOURCES = \ $(top_srcdir)/src/random.cc \ test.cc \ randomtest.cc atomictest_CXXFLAGS = -DOUTPUT=\"atomictest\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/hugin atomictest_LDFLAGS = $(CPPUNIT_LIBS) atomictest_SOURCES = atomictest.cc test.cc syncedsettingstest_CXXFLAGS = -DOUTPUT=\"syncedsettingstest\" \ $(CPPUNIT_CFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/hugin syncedsettingstest_LDFLAGS = $(CPPUNIT_LIBS) syncedsettingstest_SOURCES = syncedsettings.cc test.cc EXTRA_DIST = \ lv2_test_host.h \ drumkit_creator.h imagecachetest_CXXFLAGS = -DOUTPUT=\"imagecachetest\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/plugingui -I$(top_srcdir)/hugin imagecachetest_LDFLAGS = $(CPPUNIT_LIBS) $(top_srcdir)/plugingui/libdggui.la imagecachetest_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ imagecachetest.cc \ test.cc semaphoretest_CXXFLAGS = -DOUTPUT=\"semaphoretest\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/hugin $(PTHREAD_CFLAGS) semaphoretest_LDFLAGS = $(CPPUNIT_LIBS) $(PTHREAD_LIBS) semaphoretest_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/src/semaphore.cc \ semaphoretest.cc \ test.cc drumkitcreatortest_CXXFLAGS = -DOUTPUT=\"drumkitcreatortest\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin -DDISABLE_HUGIN drumkitcreatortest_CFLAGS = -DDISABLE_HUGIN drumkitcreatortest_LDFLAGS = $(CPPUNIT_LIBS) $(SNDFILE_LIBS) drumkitcreatortest_SOURCES = \ $(top_srcdir)/src/random.cc \ test.cc \ drumkit_creator.cc \ drumkitcreatortest.cc bytesizeparsertest_CXXFLAGS = -DOUTPUT=\"bytesizeparsertest\" $(CPPUNIT_CFLAGS) \ -I$(top_srcdir)/src bytesizeparsertest_LDFLAGS = $(CPPUNIT_LIBS) bytesizeparsertest_SOURCES = \ $(top_srcdir)/src/bytesizeparser.cc \ bytesizeparsertest.cc \ test.cc endif drumgizmo-0.9.14/test/syncedsettings.cc0000644000076400017500000001162513077120604015110 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * syncedsettings.cc * * Wed Mar 31 09:32:12 CET 2016 * Copyright 2016 Christian Glöckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include class SyncedSettingsTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(SyncedSettingsTest); CPPUNIT_TEST(groupCanBeDefaultInitialized); CPPUNIT_TEST(groupDataCanBeCopied); CPPUNIT_TEST(accessorCanGetFields); CPPUNIT_TEST(accessorCanSetFields); CPPUNIT_TEST(groupHasCopyCtor); CPPUNIT_TEST(groupHasMoveCtor); CPPUNIT_TEST(groupHasCopyAssignOp); CPPUNIT_TEST(groupHasMoveAssignOp); CPPUNIT_TEST(mimicRealUse); CPPUNIT_TEST_SUITE_END(); private: struct TestData { float foo; bool bar; std::string msg; }; public: void setUp() {} void tearDown() {} void groupCanBeDefaultInitialized() { Group data; } void groupDataCanBeCopied() { Group data; (TestData)data; // copies } void accessorCanSetFields() { Group data; { Accessor a{data}; a.data.foo = 3.f; a.data.bar = false; a.data.msg = "hello"; } TestData copy = data; CPPUNIT_ASSERT_EQUAL(copy.foo, 3.f); CPPUNIT_ASSERT_EQUAL(copy.bar, false); CPPUNIT_ASSERT_EQUAL(copy.msg, std::string{"hello"}); } void accessorCanGetFields() { Group data; { Accessor a{data}; a.data.foo = 3.f; a.data.bar = false; a.data.msg = "hello"; } // now read { Accessor a{data}; CPPUNIT_ASSERT_EQUAL(a.data.foo, 3.f); CPPUNIT_ASSERT_EQUAL(a.data.bar, false); CPPUNIT_ASSERT_EQUAL(a.data.msg, std::string{"hello"}); } } void groupHasCopyCtor() { Group tmp; { Accessor a{tmp}; a.data.foo = 3.f; a.data.bar = false; a.data.msg = "hello"; } Group data{tmp}; TestData copy = data; CPPUNIT_ASSERT_EQUAL(copy.foo, 3.f); CPPUNIT_ASSERT_EQUAL(copy.bar, false); CPPUNIT_ASSERT_EQUAL(copy.msg, std::string{"hello"}); } void groupHasMoveCtor() { Group tmp; { Accessor a{tmp}; a.data.foo = 3.f; a.data.bar = false; a.data.msg = "hello"; } Group data{std::move(tmp)}; TestData copy = data; CPPUNIT_ASSERT_EQUAL(copy.foo, 3.f); CPPUNIT_ASSERT_EQUAL(copy.bar, false); CPPUNIT_ASSERT_EQUAL(copy.msg, std::string{"hello"}); } void groupHasCopyAssignOp() { Group tmp; { Accessor a{tmp}; a.data.foo = 3.f; a.data.bar = false; a.data.msg = "hello"; } Group data = tmp; TestData copy = data; CPPUNIT_ASSERT_EQUAL(copy.foo, 3.f); CPPUNIT_ASSERT_EQUAL(copy.bar, false); CPPUNIT_ASSERT_EQUAL(copy.msg, std::string{"hello"}); } void groupHasMoveAssignOp() { Group tmp; { Accessor a{tmp}; a.data.foo = 3.f; a.data.bar = false; a.data.msg = "hello"; } Group data = std::move(tmp); TestData copy = data; CPPUNIT_ASSERT_EQUAL(copy.foo, 3.f); CPPUNIT_ASSERT_EQUAL(copy.bar, false); CPPUNIT_ASSERT_EQUAL(copy.msg, std::string{"hello"}); } void mimicRealUse() { struct Settings { struct Foo { float a{5}; float b{3}; bool enabled{true}; }; struct Bar { std::string label{"empty"}; float bla{0.f}; }; Group foo; Group bar; }; Settings s; // set bar settings { Accessor tmp{s.bar}; tmp.data.label = "hello world"; tmp.data.bla = 3.14f; } // read foo settings { Accessor tmp{s.foo}; if (tmp.data.enabled) { // do some while locked } } // or: Settings::Foo copy = s.foo; if (copy.enabled) { // do some stuff without locking } CPPUNIT_ASSERT(copy.enabled); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(SyncedSettingsTest); drumgizmo-0.9.14/test/audiocacheeventhandlertest.cc0000644000076400017500000000325413076176503017436 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocacheeventhandlertest.cc * * Thu Jan 7 15:44:14 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include class AudioCacheEventHandlerTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(AudioCacheEventHandlerTest); CPPUNIT_TEST(threadedTest); CPPUNIT_TEST_SUITE_END(); public: void setUp() {} void tearDown() {} void threadedTest() { AudioCacheIDManager id_manager; id_manager.init(10); AudioCacheEventHandler event_handler(id_manager); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(AudioCacheEventHandlerTest); drumgizmo-0.9.14/test/semaphoretest.cc0000644000076400017500000000516313077120604014725 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * semaphoretest.cc * * Tue Jun 14 22:04:24 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include "../src/semaphore.h" std::chrono::nanoseconds dist(const std::chrono::duration& a, const std::chrono::duration& b) { if(a > b) { return std::chrono::duration_cast(a - b); } return std::chrono::duration_cast(b - a); } class SemaphoreTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(SemaphoreTest); CPPUNIT_TEST(timeoutTest); CPPUNIT_TEST_SUITE_END(); public: void setUp() {} void tearDown() {} void timeoutTest() { Semaphore sem(0); { // 1000ms timeout auto start = std::chrono::steady_clock::now(); bool res = sem.wait(std::chrono::milliseconds(1000)); CPPUNIT_ASSERT(!res); // false means timeout auto stop = std::chrono::steady_clock::now(); // Allow +/-1ms skew CPPUNIT_ASSERT(dist((stop - start), std::chrono::milliseconds(1000)) < std::chrono::milliseconds(60)); } { // 100ms timeout auto start = std::chrono::steady_clock::now(); bool res = sem.wait(std::chrono::milliseconds(100)); CPPUNIT_ASSERT(!res); // false means timeout auto stop = std::chrono::steady_clock::now(); // Allow +/-1ms skew CPPUNIT_ASSERT(dist((stop - start), std::chrono::milliseconds(100)) < std::chrono::milliseconds(60)); } } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(SemaphoreTest); drumgizmo-0.9.14/test/resampler.cc0000644000076400017500000000651013103356132014026 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * resampler.cc * * Sun Oct 5 20:16:22 CEST 2014 * Copyright 2014 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "../src/chresampler.h" #define BUFSZ 500 static float round(float a) { return a<0.5?0:1; } class test_resampler : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(test_resampler); CPPUNIT_TEST(resampling); CPPUNIT_TEST(resampling_buffer_sizes); CPPUNIT_TEST_SUITE_END(); public: void setUp() {} void tearDown() {} void resampling() { CHResampler r; CPPUNIT_ASSERT_EQUAL(1.0, r.getRatio()); r.setup(44100, 48000); CPPUNIT_ASSERT_EQUAL(44100.0/48000.0, r.getRatio()); float in[BUFSZ]; for(int i = 0; i < BUFSZ; i++) in[i] = 0;//(float)i/(float)BUFSZ; in[100] = 1.0; float out[BUFSZ]; r.setInputSamples(in, sizeof(in) / sizeof(float)); r.setOutputSamples(out, sizeof(out) / sizeof(float)); r.process(); CPPUNIT_ASSERT_EQUAL((size_t)0, r.getInputSampleCount()); // CPPUNIT_ASSERT_EQUAL(, r.getOutputSampleCount()); int outidx = -1; int inidx = -1; for(int i = 0; i < BUFSZ - (int)r.getOutputSampleCount(); i++) { if(in[i] == 1.0) inidx = i; if(round(out[i]) == 1.0) outidx = i; //printf("in[% 4d]\t= %f\t", i, in[i]); //printf("out[% 4d]\t= %f\n", i, out[i]); } CPPUNIT_ASSERT(inidx != -1); CPPUNIT_ASSERT(outidx != -1); //printf("inidx: %d - outidx: %d\n", inidx, outidx); //CPPUNIT_ASSERT_EQUAL(71, inidx - outidx); // This does not make sense... } void resampling_buffer_sizes() { CHResampler r; CPPUNIT_ASSERT_EQUAL(1.0, r.getRatio()); double infs = 24000; double outfs = 48000; r.setup(infs, outfs); CPPUNIT_ASSERT_EQUAL(infs / outfs, r.getRatio()); float in[BUFSZ]; float out[(int)(BUFSZ / r.getRatio())]; // Preload resampler r.setOutputSamples(out, 1); while(r.getOutputSampleCount()) { r.setInputSamples(in, 1); r.process(); } r.setInputSamples(in, sizeof(in) / sizeof(float)); r.setOutputSamples(out, sizeof(out) / sizeof(float)); r.process(); CPPUNIT_ASSERT_EQUAL((size_t)0, r.getInputSampleCount()); CPPUNIT_ASSERT_EQUAL((size_t)0, r.getOutputSampleCount()); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(test_resampler); drumgizmo-0.9.14/test/drumkit_creator.cc0000644000076400017500000002341613103356655015250 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumkit_creator.cc * * Thu Jan 12 18:51:34 CET 2017 * Copyright 2017 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumkit_creator.h" #include #include "../src/random.h" #include #include #include #include #include DrumkitCreator::~DrumkitCreator() { for (const auto& file: created_files) { auto error = unlink(file.c_str()); if (error) { std::cerr << "File could not be deleted in DrumkitCreator destructor" << std::endl; } } for (const auto& dir: created_directories) { auto error = rmdir(dir.c_str()); if (error) { std::cerr << "Directory could not be deleted in DrumkitCreator destructor" << std::endl; } } } std::string DrumkitCreator::create(const DrumkitData& data) { std::string drumkit_filename; if (is_valid(data)) { auto dir = createTemporaryDirectory("drumkit"); for (const auto& wav_info: data.wav_infos) { createWav(wav_info, data.number_of_channels, dir); } for (const auto& instrument: data.instruments) { createInstrument(instrument, data.number_of_channels, dir); } drumkit_filename = createDrumkitFile(data, dir); } else { throw "DrumkitData not valid"; } return drumkit_filename; } void DrumkitCreator::createWav(const WavInfo& wav_info, std::size_t number_of_channels, const std::string& dir) { SF_INFO sfinfo; sfinfo.samplerate = 44100; sfinfo.channels = number_of_channels; sfinfo.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16; std::string filename = dir + "/" + wav_info.filename; auto sndfile = sf_open(filename.c_str(), SFM_WRITE, &sfinfo); if (!sndfile) { throw "The wav file could not be created"; } created_files.push_back(filename); auto data_vec = createData(wav_info, number_of_channels); sf_write_raw(sndfile, data_vec.data(), 2*data_vec.size()); sf_write_sync(sndfile); sf_close(sndfile); } std::string DrumkitCreator::createStdKit(const std::string& name) { std::vector wav_infos = { WavInfo("1011.wav", 1, 0x1110), WavInfo("2122.wav", 1, 0x2221) }; std::vector audiofiles1(4, Audiofile{&wav_infos.front(), 1}); std::vector audiofiles2(4, Audiofile{&wav_infos.back(), 1}); std::vector sample_data1{{"stroke1", std::move(audiofiles1)}}; std::vector sample_data2{{"stroke1", std::move(audiofiles2)}}; std::vector instruments = { InstrumentData{"instr1", "instr1.xml", std::move(sample_data1)}, InstrumentData{"instr2", "instr2.xml", std::move(sample_data2)} }; auto kit_data = DrumkitData{name, 4, instruments, wav_infos}; return create(kit_data); } std::string DrumkitCreator::createSmallKit(const std::string& name) { std::vector wav_infos = { WavInfo("small_instr.wav", 549833) }; std::vector audiofiles; for (std::size_t i = 0; i < 13; ++i) { audiofiles.push_back({&wav_infos.front(), i+1}); } std::vector sample_data{{"stroke1", std::move(audiofiles)}}; std::vector instruments = { InstrumentData{"small_instr", "small_instr.xml", std::move(sample_data)} }; auto kit_data = DrumkitData{name, 13, instruments, wav_infos}; return create(kit_data); } std::string DrumkitCreator::createHugeKit(const std::string& name) { std::vector wav_infos = { WavInfo("huge_instr.wav", 549833) }; std::vector audiofiles; for (std::size_t i = 0; i < 13; ++i) { audiofiles.push_back({&wav_infos.front(), i+1}); } std::vector sample_data; for (std::size_t i = 0; i < 50; ++i) { sample_data.push_back({"stroke" + std::to_string(i), audiofiles}); } std::vector instruments; for (std::size_t i = 0; i < 50; ++i) { instruments.push_back({"huge_instr" + std::to_string(i), "huge_instr.xml", sample_data}); } auto kit_data = DrumkitData{name, 13, instruments, wav_infos}; return create(kit_data); } std::string DrumkitCreator::createSingleChannelWav(const std::string& name) { auto dir = createTemporaryDirectory("wavfiles"); auto wav_info = WavInfo(name, 173516); createWav(wav_info, 1, dir); return dir + "/" + name; } std::string DrumkitCreator::createMultiChannelWav(const std::string& name) { auto dir = createTemporaryDirectory("wavfiles"); auto wav_info = WavInfo(name, 549833); createWav(wav_info, 13, dir); return dir + "/" + name; } std::string DrumkitCreator::create0000Wav(const std::string& name) { auto dir = createTemporaryDirectory("wavfiles"); auto wav_info = WavInfo(name, 1, 0x0000); createWav(wav_info, 1, dir); return dir + "/" + name; } std::string DrumkitCreator::createStdMidimap(const std::string& name) { auto dir = createTemporaryDirectory("midimap"); std::string content = "\n" "\n" "\n" "\n" "\n"; std::string filename = dir + "/" + name + ".xml"; std::ofstream file; file.open(filename); if (file.is_open()) { created_files.push_back(filename); file << content; } else { throw "File could not be opened"; } file.close(); return filename; } // // private member functions // bool DrumkitCreator::is_valid(const DrumkitData& data) { // TODO Check the consistency of the data. return true; } std::string DrumkitCreator::createTemporaryDirectory(const std::string& name) { std::string dir_template = "/tmp/drumgizmo_" + name + "XXXXXX"; const auto dir_name = mkdtemp(&dir_template[0]); if (dir_name) { created_directories.push_back(dir_name); return std::string(dir_name); } return ""; } auto DrumkitCreator::createData(const WavInfo& wav_info, std::size_t number_of_channels) -> std::vector { std::vector data_vec(number_of_channels * wav_info.length, wav_info.sample); if (wav_info.is_random) { Random rand(42); // Fix the seed to make it reproducable. int lower_bound = std::numeric_limits::min(); int upper_bound = std::numeric_limits::max(); std::generate(data_vec.begin(), data_vec.end(), [&](){ return Sample(rand.intInRange(lower_bound, upper_bound)); }); } return data_vec; } void DrumkitCreator::createInstrument(const InstrumentData& data, std::size_t number_of_channels, const std::string& dir) { std::string prefix = "\n" "\n"; // FIXME sampleref std::string postfix = "\n" "\n" "\n" "\n" "\n" "\n"; std::string samples; for (const auto& sample: data.sample_data) { samples += "\n"; for (std::size_t i = 0; i < sample.audiofiles.size(); ++i) { const auto& audiofile = sample.audiofiles[i]; samples += "filename + "\" filechannel=\"" + std::to_string(audiofile.filechannel) + "\"/>\n"; } samples += "\n"; } // Write to file std::string filename = dir + "/" + data.filename; std::ofstream file; file.open(filename); if (file.is_open()) { created_files.push_back(filename); file << prefix + samples + postfix; } else { throw "File could not be opened"; } file.close(); } std::string DrumkitCreator::createDrumkitFile(const DrumkitData& data, const std::string& dir) { // Pre- and postfix string std::string prefix = "\n" "\n"; std::string postfix = "\n"; // Channel string std::string channels; channels += "\n"; for (std::size_t i = 0; i < data.number_of_channels; ++i) { channels += "\n"; } channels += "\n"; // Instrument string std::string instruments; instruments += "\n"; for (const auto& instrument: data.instruments) { instruments += "\n"; for (std::size_t i = 0; i < data.number_of_channels; ++i) { std::string i_str = std::to_string(i); instruments += "\n"; } instruments += "\n"; } instruments += "\n"; // Write everything to a drumkit file std::string filename = dir + "/" + data.name + ".xml"; std::ofstream file; file.open(filename); if (file.is_open()) { created_files.push_back(filename); file << prefix + channels + instruments + postfix; } else { throw "File could not be opened"; } file.close(); return filename; } drumgizmo-0.9.14/test/dgreftest/0000755000076400017500000000000013106063422013572 500000000000000drumgizmo-0.9.14/test/dgreftest/compareoutputengine.h0000644000076400017500000000352013077120604017763 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * compareoutputengine.h * * Sat May 14 13:27:04 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include class CompareOutputEngine : public AudioOutputEngine { public: CompareOutputEngine(); ~CompareOutputEngine(); // based on AudioOutputEngine bool init(const Channels& data) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre(size_t nsamples) override; void run(int ch, sample_t* samples, size_t nsamples) override; void post(size_t nsamples) override; size_t getSamplerate() const override; bool isFreewheeling() const override; private: SF_INFO info; SNDFILE* handle; std::string file; sample_t buffer[4096 * 16]; std::size_t diff_samples{0}; }; drumgizmo-0.9.14/test/dgreftest/wavfileoutputengine.cc0000644000076400017500000000567413077120604020144 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * wavfileoutputengine.cc * * Sat May 14 13:26:51 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "wavfileoutputengine.h" #include WavfileOutputEngine::WavfileOutputEngine() : AudioOutputEngine{} , info{} , file{"output"} { info.samplerate = 44100; info.channels = 1; info.format = SF_FORMAT_WAV | SF_FORMAT_FLOAT; } WavfileOutputEngine::~WavfileOutputEngine() { sf_close(handle); } bool WavfileOutputEngine::init(const Channels& data) { info.channels = data.size(); handle = sf_open(file.c_str(), SFM_WRITE, &info); if(handle == nullptr) { std::cerr << "[WavfileOutputEngine] Failed to open " << file << " for writing.\n"; return false; } return true; } void WavfileOutputEngine::setParm(const std::string& parm, const std::string& value) { if(parm == "file") { // apply output filename prefix file = value; } else if(parm == "srate") { // try to apply samplerate try { info.samplerate = std::stoi(value); } catch(...) { std::cerr << "[WavfileOutputEngine] Invalid samplerate " << value << "\n"; } } else { std::cerr << "[WavfileOutputEngine] Unsupported parameter '" << parm << "'\n"; } } bool WavfileOutputEngine::start() { return true; } void WavfileOutputEngine::stop() { } void WavfileOutputEngine::pre(size_t nsamples) { } void WavfileOutputEngine::run(int ch, sample_t* samples, size_t nsamples) { if(ch >= info.channels) { std::cerr << "[WavfileOutputEngine] cannot access channel #" << ch << " (" << info.channels << " channels available)\n"; return; } for(std::size_t i = 0; i < nsamples; ++i) { buffer[i * info.channels + ch] = samples[i]; } } void WavfileOutputEngine::post(size_t nsamples) { sf_writef_float(handle, buffer, nsamples); } size_t WavfileOutputEngine::getSamplerate() const { return info.samplerate; } bool WavfileOutputEngine::isFreewheeling() const { return true; } drumgizmo-0.9.14/test/dgreftest/midiinputengine.h0000644000076400017500000000367213077120604017066 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midiinputengine.h * * Sat May 14 13:26:22 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include #include class MidifileInputEngine : public AudioInputEngineMidi { public: MidifileInputEngine(); ~MidifileInputEngine(); // based on AudioInputEngineMidi bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre() override; void run(size_t pos, size_t len, std::vector& events) override; void post() override; bool isFreewheeling() const override; private: smf_t* smf; smf_event_t* current_event; std::string midimap_filename; std::string file; float speed; int track; bool loop; double offset, samplerate; }; drumgizmo-0.9.14/test/dgreftest/compareoutputengine.cc0000644000076400017500000000643113077120604020125 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * compareoutputengine.cc * * Sat May 14 13:27:04 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "compareoutputengine.h" #include CompareOutputEngine::CompareOutputEngine() : AudioOutputEngine{} , info{} , file{"output"} { info.samplerate = 44100; info.channels = 1; info.format = SF_FORMAT_WAV | SF_FORMAT_FLOAT; } CompareOutputEngine::~CompareOutputEngine() { std::cout << "diff_samples: " << diff_samples << std::endl; sf_close(handle); } bool CompareOutputEngine::init(const Channels& data) { info.channels = data.size(); handle = sf_open(file.c_str(), SFM_READ, &info); if(handle == nullptr) { std::cerr << "[CompareOutputEngine] Failed to open " << file << " for writing.\n"; return false; } return true; } void CompareOutputEngine::setParm(const std::string& parm, const std::string& value) { if(parm == "file") { // apply output filename prefix file = value; } else if(parm == "srate") { // try to apply samplerate try { info.samplerate = std::stoi(value); } catch(...) { std::cerr << "[CompareOutputEngine] Invalid samplerate " << value << "\n"; } } else { std::cerr << "[CompareOutputEngine] Unsupported parameter '" << parm << "'\n"; } } bool CompareOutputEngine::start() { return true; } void CompareOutputEngine::stop() { } void CompareOutputEngine::pre(size_t nsamples) { } void CompareOutputEngine::run(int ch, sample_t* samples, size_t nsamples) { if(ch >= info.channels) { std::cerr << "[CompareOutputEngine] cannot access channel #" << ch << " (" << info.channels << " channels available)\n"; return; } for(std::size_t i = 0; i < nsamples; ++i) { buffer[i * info.channels + ch] = samples[i]; } } void CompareOutputEngine::post(size_t nsamples) { sample_t ref_buffer[sizeof(buffer) / sizeof(sample_t)]; sf_readf_float(handle, ref_buffer, nsamples); for(std::size_t i = 0; i < nsamples; ++i) { for(std::size_t ch = 0; ch < (std::size_t)info.channels; ++ch) { if(buffer[i * info.channels + ch] != ref_buffer[i * info.channels + ch]) { ++diff_samples; } } } } size_t CompareOutputEngine::getSamplerate() const { return info.samplerate; } bool CompareOutputEngine::isFreewheeling() const { return true; } drumgizmo-0.9.14/test/dgreftest/Makefile.am0000644000076400017500000000142113077120604015547 00000000000000if ENABLE_CLI if HAVE_INPUT_MIDIFILE bin_PROGRAMS = dgreftest dgreftest_LDADD = $(PTHREAD_LIBS) $(JACK_LIBS) \ $(SMF_LIBS) $(top_srcdir)/src/libdg.la dgreftest_LDFLAGS = dgreftest_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) \ -I$(top_srcdir)/include -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin -DWITH_HUG_MUTEX -DWITH_HUG_FILTER \ $(JACK_CFLAGS) $(SSEFLAGS) $(SMF_CFLAGS) $(FLOAT_STORE) dgreftest_CFLAGS = -DWITH_HUG_MUTEX -DWITH_HUG_FILTER dgreftest_SOURCES = \ dgreftest.cc \ midiinputengine.cc \ wavfileoutputengine.cc \ compareoutputengine.cc \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/hugin/hugin_filter.c endif # HAVE_INPUT_MIDIFILE EXTRA_DIST = \ midiinputengine.h \ wavfileoutputengine.h \ compareoutputengine.h endif # ENABLE_CLI drumgizmo-0.9.14/test/dgreftest/dgreftest.cc0000644000076400017500000000725313103355134016020 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * dgreftest.cc * * Thu May 12 17:50:08 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #include #include #include #include "compareoutputengine.h" #include "midiinputengine.h" #include "wavfileoutputengine.h" #include // required for c++11 std::unique_ptr createOutput(const std::string& name) { struct stat sb; if((stat(name.c_str(), &sb) == -1) && (errno == ENOENT)) { // Ref file doesn't exist - create it. return std::make_unique(); } else { // Ref file exists, do compare. return std::make_unique(); } } int main(int argc, char* argv[]) { if(argc < 4) { std::cerr << "Usage: " << argv[0] << " testname drumkit midimap [seed]" << std::endl; return 1; } Settings settings; std::string test = argv[1]; std::string kitfile = argv[2]; std::string midimap = argv[3]; unsigned int seed = 0; if(argc == 5) { seed = atoi(argv[4]); } std::string midifile = test + ".mid"; std::string reffile = test + ".wav"; MidifileInputEngine ie; ie.setParm("file", midifile.c_str()); auto oe = createOutput(reffile); oe->setParm("file", reffile.c_str()); oe->setParm("srate", "44100"); DrumGizmo drumgizmo(settings, *oe.get(), ie); drumgizmo.setRandomSeed(seed); drumgizmo.setFrameSize(oe->getBufferSize()); // settings.enable_resampling.store(false); // Bypass resampler - BROKEN settings.drumkit_file.store(kitfile); settings.midimap_file.store(midimap); printf("Loading drumkit, this may take a while:\n"); while(settings.drumkit_load_status.load() != LoadStatus::Done) { std::this_thread::sleep_for(std::chrono::milliseconds(10)); int total = settings.number_of_files.load(); int loaded = settings.number_of_files_loaded.load(); printf("\r%d of %d ", loaded, total); fflush(stdout); if(settings.drumkit_load_status.load() == LoadStatus::Error) { printf("\nFailed to load \"%s\".\n", kitfile.c_str()); return 1; } if(loaded == total) { //break; } } printf("\ndone\n"); drumgizmo.setSamplerate(oe->getSamplerate()); if(!drumgizmo.init()) { printf("Failed init engine.\n"); return 1; } // former drumgizmo run call size_t pos = 0; size_t nsamples = oe->getBufferSize(); sample_t *samples = (sample_t *)malloc(nsamples * sizeof(sample_t)); drumgizmo.setFrameSize(oe->getBufferSize()); ie.start(); oe->start(); while(drumgizmo.run(pos, samples, nsamples) == true) { pos += nsamples; } ie.stop(); oe->stop(); free(samples); // end former drumgizmo run call return 0; } drumgizmo-0.9.14/test/dgreftest/Makefile.in0000644000076400017500000011225613106051611015563 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@ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@bin_PROGRAMS = \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ dgreftest$(EXEEXT) subdir = test/dgreftest DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am__dgreftest_SOURCES_DIST = dgreftest.cc midiinputengine.cc \ wavfileoutputengine.cc compareoutputengine.cc \ $(top_srcdir)/hugin/hugin.c $(top_srcdir)/hugin/hugin_filter.c @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@am_dgreftest_OBJECTS = dgreftest-dgreftest.$(OBJEXT) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ dgreftest-midiinputengine.$(OBJEXT) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ dgreftest-wavfileoutputengine.$(OBJEXT) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ dgreftest-compareoutputengine.$(OBJEXT) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ dgreftest-hugin.$(OBJEXT) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ dgreftest-hugin_filter.$(OBJEXT) dgreftest_OBJECTS = $(am_dgreftest_OBJECTS) am__DEPENDENCIES_1 = @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@dgreftest_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ $(top_srcdir)/src/libdg.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 = dgreftest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(dgreftest_CXXFLAGS) \ $(CXXFLAGS) $(dgreftest_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 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(dgreftest_SOURCES) DIST_SOURCES = $(am__dgreftest_SOURCES_DIST) 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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@dgreftest_LDADD = $(PTHREAD_LIBS) $(JACK_LIBS) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ $(SMF_LIBS) $(top_srcdir)/src/libdg.la @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@dgreftest_LDFLAGS = @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@dgreftest_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ -I$(top_srcdir)/include -I$(top_srcdir)/src \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ -I$(top_srcdir)/hugin -DWITH_HUG_MUTEX -DWITH_HUG_FILTER \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ $(JACK_CFLAGS) $(SSEFLAGS) $(SMF_CFLAGS) $(FLOAT_STORE) @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@dgreftest_CFLAGS = -DWITH_HUG_MUTEX -DWITH_HUG_FILTER @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@dgreftest_SOURCES = \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ dgreftest.cc \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ midiinputengine.cc \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ wavfileoutputengine.cc \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ compareoutputengine.cc \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ $(top_srcdir)/hugin/hugin.c \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ $(top_srcdir)/hugin/hugin_filter.c @ENABLE_CLI_TRUE@EXTRA_DIST = \ @ENABLE_CLI_TRUE@ midiinputengine.h \ @ENABLE_CLI_TRUE@ wavfileoutputengine.h \ @ENABLE_CLI_TRUE@ compareoutputengine.h all: all-am .SUFFIXES: .SUFFIXES: .c .cc .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 test/dgreftest/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/dgreftest/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 dgreftest$(EXEEXT): $(dgreftest_OBJECTS) $(dgreftest_DEPENDENCIES) $(EXTRA_dgreftest_DEPENDENCIES) @rm -f dgreftest$(EXEEXT) $(AM_V_CXXLD)$(dgreftest_LINK) $(dgreftest_OBJECTS) $(dgreftest_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dgreftest-compareoutputengine.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dgreftest-dgreftest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dgreftest-hugin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dgreftest-hugin_filter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dgreftest-midiinputengine.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dgreftest-wavfileoutputengine.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 $@ $< dgreftest-hugin.o: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CFLAGS) $(CFLAGS) -MT dgreftest-hugin.o -MD -MP -MF $(DEPDIR)/dgreftest-hugin.Tpo -c -o dgreftest-hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-hugin.Tpo $(DEPDIR)/dgreftest-hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='dgreftest-hugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CFLAGS) $(CFLAGS) -c -o dgreftest-hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c dgreftest-hugin.obj: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CFLAGS) $(CFLAGS) -MT dgreftest-hugin.obj -MD -MP -MF $(DEPDIR)/dgreftest-hugin.Tpo -c -o dgreftest-hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-hugin.Tpo $(DEPDIR)/dgreftest-hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='dgreftest-hugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CFLAGS) $(CFLAGS) -c -o dgreftest-hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` dgreftest-hugin_filter.o: $(top_srcdir)/hugin/hugin_filter.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CFLAGS) $(CFLAGS) -MT dgreftest-hugin_filter.o -MD -MP -MF $(DEPDIR)/dgreftest-hugin_filter.Tpo -c -o dgreftest-hugin_filter.o `test -f '$(top_srcdir)/hugin/hugin_filter.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin_filter.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-hugin_filter.Tpo $(DEPDIR)/dgreftest-hugin_filter.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin_filter.c' object='dgreftest-hugin_filter.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CFLAGS) $(CFLAGS) -c -o dgreftest-hugin_filter.o `test -f '$(top_srcdir)/hugin/hugin_filter.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin_filter.c dgreftest-hugin_filter.obj: $(top_srcdir)/hugin/hugin_filter.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CFLAGS) $(CFLAGS) -MT dgreftest-hugin_filter.obj -MD -MP -MF $(DEPDIR)/dgreftest-hugin_filter.Tpo -c -o dgreftest-hugin_filter.obj `if test -f '$(top_srcdir)/hugin/hugin_filter.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin_filter.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin_filter.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-hugin_filter.Tpo $(DEPDIR)/dgreftest-hugin_filter.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin_filter.c' object='dgreftest-hugin_filter.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CFLAGS) $(CFLAGS) -c -o dgreftest-hugin_filter.obj `if test -f '$(top_srcdir)/hugin/hugin_filter.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin_filter.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin_filter.c'; fi` .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< dgreftest-dgreftest.o: dgreftest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -MT dgreftest-dgreftest.o -MD -MP -MF $(DEPDIR)/dgreftest-dgreftest.Tpo -c -o dgreftest-dgreftest.o `test -f 'dgreftest.cc' || echo '$(srcdir)/'`dgreftest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-dgreftest.Tpo $(DEPDIR)/dgreftest-dgreftest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dgreftest.cc' object='dgreftest-dgreftest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -c -o dgreftest-dgreftest.o `test -f 'dgreftest.cc' || echo '$(srcdir)/'`dgreftest.cc dgreftest-dgreftest.obj: dgreftest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -MT dgreftest-dgreftest.obj -MD -MP -MF $(DEPDIR)/dgreftest-dgreftest.Tpo -c -o dgreftest-dgreftest.obj `if test -f 'dgreftest.cc'; then $(CYGPATH_W) 'dgreftest.cc'; else $(CYGPATH_W) '$(srcdir)/dgreftest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-dgreftest.Tpo $(DEPDIR)/dgreftest-dgreftest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dgreftest.cc' object='dgreftest-dgreftest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -c -o dgreftest-dgreftest.obj `if test -f 'dgreftest.cc'; then $(CYGPATH_W) 'dgreftest.cc'; else $(CYGPATH_W) '$(srcdir)/dgreftest.cc'; fi` dgreftest-midiinputengine.o: midiinputengine.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -MT dgreftest-midiinputengine.o -MD -MP -MF $(DEPDIR)/dgreftest-midiinputengine.Tpo -c -o dgreftest-midiinputengine.o `test -f 'midiinputengine.cc' || echo '$(srcdir)/'`midiinputengine.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-midiinputengine.Tpo $(DEPDIR)/dgreftest-midiinputengine.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='midiinputengine.cc' object='dgreftest-midiinputengine.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -c -o dgreftest-midiinputengine.o `test -f 'midiinputengine.cc' || echo '$(srcdir)/'`midiinputengine.cc dgreftest-midiinputengine.obj: midiinputengine.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -MT dgreftest-midiinputengine.obj -MD -MP -MF $(DEPDIR)/dgreftest-midiinputengine.Tpo -c -o dgreftest-midiinputengine.obj `if test -f 'midiinputengine.cc'; then $(CYGPATH_W) 'midiinputengine.cc'; else $(CYGPATH_W) '$(srcdir)/midiinputengine.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-midiinputengine.Tpo $(DEPDIR)/dgreftest-midiinputengine.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='midiinputengine.cc' object='dgreftest-midiinputengine.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -c -o dgreftest-midiinputengine.obj `if test -f 'midiinputengine.cc'; then $(CYGPATH_W) 'midiinputengine.cc'; else $(CYGPATH_W) '$(srcdir)/midiinputengine.cc'; fi` dgreftest-wavfileoutputengine.o: wavfileoutputengine.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -MT dgreftest-wavfileoutputengine.o -MD -MP -MF $(DEPDIR)/dgreftest-wavfileoutputengine.Tpo -c -o dgreftest-wavfileoutputengine.o `test -f 'wavfileoutputengine.cc' || echo '$(srcdir)/'`wavfileoutputengine.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-wavfileoutputengine.Tpo $(DEPDIR)/dgreftest-wavfileoutputengine.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='wavfileoutputengine.cc' object='dgreftest-wavfileoutputengine.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -c -o dgreftest-wavfileoutputengine.o `test -f 'wavfileoutputengine.cc' || echo '$(srcdir)/'`wavfileoutputengine.cc dgreftest-wavfileoutputengine.obj: wavfileoutputengine.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -MT dgreftest-wavfileoutputengine.obj -MD -MP -MF $(DEPDIR)/dgreftest-wavfileoutputengine.Tpo -c -o dgreftest-wavfileoutputengine.obj `if test -f 'wavfileoutputengine.cc'; then $(CYGPATH_W) 'wavfileoutputengine.cc'; else $(CYGPATH_W) '$(srcdir)/wavfileoutputengine.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-wavfileoutputengine.Tpo $(DEPDIR)/dgreftest-wavfileoutputengine.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='wavfileoutputengine.cc' object='dgreftest-wavfileoutputengine.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -c -o dgreftest-wavfileoutputengine.obj `if test -f 'wavfileoutputengine.cc'; then $(CYGPATH_W) 'wavfileoutputengine.cc'; else $(CYGPATH_W) '$(srcdir)/wavfileoutputengine.cc'; fi` dgreftest-compareoutputengine.o: compareoutputengine.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -MT dgreftest-compareoutputengine.o -MD -MP -MF $(DEPDIR)/dgreftest-compareoutputengine.Tpo -c -o dgreftest-compareoutputengine.o `test -f 'compareoutputengine.cc' || echo '$(srcdir)/'`compareoutputengine.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-compareoutputengine.Tpo $(DEPDIR)/dgreftest-compareoutputengine.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='compareoutputengine.cc' object='dgreftest-compareoutputengine.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -c -o dgreftest-compareoutputengine.o `test -f 'compareoutputengine.cc' || echo '$(srcdir)/'`compareoutputengine.cc dgreftest-compareoutputengine.obj: compareoutputengine.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -MT dgreftest-compareoutputengine.obj -MD -MP -MF $(DEPDIR)/dgreftest-compareoutputengine.Tpo -c -o dgreftest-compareoutputengine.obj `if test -f 'compareoutputengine.cc'; then $(CYGPATH_W) 'compareoutputengine.cc'; else $(CYGPATH_W) '$(srcdir)/compareoutputengine.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dgreftest-compareoutputengine.Tpo $(DEPDIR)/dgreftest-compareoutputengine.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='compareoutputengine.cc' object='dgreftest-compareoutputengine.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dgreftest_CXXFLAGS) $(CXXFLAGS) -c -o dgreftest-compareoutputengine.obj `if test -f 'compareoutputengine.cc'; then $(CYGPATH_W) 'compareoutputengine.cc'; else $(CYGPATH_W) '$(srcdir)/compareoutputengine.cc'; fi` 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." 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: drumgizmo-0.9.14/test/dgreftest/wavfileoutputengine.h0000644000076400017500000000346213077120604017777 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * wavfileoutputengine.h * * Sat May 14 13:26:51 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include class WavfileOutputEngine : public AudioOutputEngine { public: WavfileOutputEngine(); ~WavfileOutputEngine(); // based on AudioOutputEngine bool init(const Channels& data) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre(size_t nsamples) override; void run(int ch, sample_t* samples, size_t nsamples) override; void post(size_t nsamples) override; size_t getSamplerate() const override; bool isFreewheeling() const override; private: SF_INFO info; SNDFILE* handle; std::string file; sample_t buffer[4096 * 16]; }; drumgizmo-0.9.14/test/dgreftest/midiinputengine.cc0000644000076400017500000001052313106047433017216 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midiinputengine.cc * * Sat May 14 13:26:23 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "midiinputengine.h" #include static int const NOTE_ON = 0x90; static int const NOTE_MASK = 0xF0; MidifileInputEngine::MidifileInputEngine() : AudioInputEngineMidi{} , smf{nullptr} , current_event{nullptr} , file{} , speed{1.f} , track{-1} // all tracks , loop{false} , offset{0.0} , samplerate{44100.0} // todo: via ctor arg { } MidifileInputEngine::~MidifileInputEngine() { if(smf != nullptr) { smf_delete(smf); } } bool MidifileInputEngine::init(const Instruments& instruments) { if(file == "") { std::cerr << "[MidifileInputEngine] Missing midi filename\n"; return false; } //if(midimap_filename == "") //{ // std::cerr << "[MidifileInputEngine] Missing midimap filename\n"; // return false; //} smf = smf_load(file.c_str()); if(smf == nullptr) { std::cerr << "[MidifileInputEngine] Failed to load midifile '" << file << "'\n"; return false; } //if(!loadMidiMap(midimap_filename, instruments)) //{ // std::cerr << "[MidifileInputEngine] Failed to parse midimap '" // << midimap_filename << "'\n"; // return false; //} return true; } void MidifileInputEngine::setParm(const std::string& parm, const std::string& value) { if(parm == "file") { // apply midi input filename file = value; } else if(parm == "speed") { // try to apply speed try { speed = std::stof(value); } catch(...) { std::cerr << "[MidifileInputEngine] Invalid speed " << value << "\n"; } } //else if(parm == "midimap") //{ // // apply midimap filename // midimap_filename = value; //} else if(parm == "loop") { // apply looping loop = true; } else { std::cerr << "[MidifileInputEngine] Unsupported parameter '" << parm << "'\n"; } } bool MidifileInputEngine::start() { return true; } void MidifileInputEngine::stop() { } void MidifileInputEngine::pre() { } void MidifileInputEngine::run(size_t pos, size_t len, std::vector& events) { assert(events.empty()); double current_max_time = (1.0 + pos + len) / (samplerate / speed); current_max_time -= offset; if(!current_event) { current_event = smf_get_next_event(smf); } while(current_event && current_event->time_seconds < current_max_time) { if(!smf_event_is_metadata(current_event)) { if((current_event->midi_buffer_length == 3) && ((current_event->midi_buffer[0] & NOTE_MASK) == NOTE_ON) && (track == -1 || current_event->track_number == track) && current_event->midi_buffer[2] > 0) { int key = current_event->midi_buffer[1]; int velocity = current_event->midi_buffer[2]; events.emplace_back(); auto& event = events.back(); event.type = TYPE_ONSET; size_t evpos = current_event->time_seconds * (samplerate / speed); event.offset = evpos - pos; int i = mmap.lookup(key); if(i != -1) { event.instrument = i; event.velocity = velocity / 127.0; } } } current_event = smf_get_next_event(smf); } if(!current_event) { if(loop) { smf_rewind(smf); offset += current_max_time; } else { assert(len >= 1); events.push_back({TYPE_STOP, 0, len-1, 0.f}); } } } void MidifileInputEngine::post() { } bool MidifileInputEngine::isFreewheeling() const { return true; } drumgizmo-0.9.14/test/resource_test.cc0000644000076400017500000000426013077120604014725 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * resource_test.cc * * Fri Nov 13 18:50:52 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "../plugingui/resource.h" #include "drumkit_creator.h" class ResourceTester : public GUI::Resource { public: ResourceTester(const std::string& name) : Resource(name) {} bool probeIsInternal() { return isInternal; } }; class ResourceTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(ResourceTest); CPPUNIT_TEST(externalReadTest); CPPUNIT_TEST(internalReadTest); CPPUNIT_TEST_SUITE_END(); DrumkitCreator drumkit_creator; public: void setUp() {} void tearDown() {} void externalReadTest() { auto filename = drumkit_creator.create0000Wav("0000.wav"); ResourceTester rc(filename); CPPUNIT_ASSERT(!rc.probeIsInternal()); CPPUNIT_ASSERT(rc.valid()); CPPUNIT_ASSERT_EQUAL((size_t)46, rc.size()); } void internalReadTest() { ResourceTester rc(":resources/bg.png"); CPPUNIT_ASSERT(rc.probeIsInternal()); CPPUNIT_ASSERT(rc.valid()); CPPUNIT_ASSERT_EQUAL((size_t)1123, rc.size()); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(ResourceTest); drumgizmo-0.9.14/test/audiocachetest.cc0000644000076400017500000001317413103355307015030 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * cachemanagertest.cc * * Sun Apr 19 10:15:59 CEST 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #include #include "drumkit_creator.h" #define FRAMESIZE 64 class AudioCacheTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(AudioCacheTest); CPPUNIT_TEST(singleChannelNonThreaded); CPPUNIT_TEST(singleChannelThreaded); CPPUNIT_TEST(multiChannelNonThreaded); CPPUNIT_TEST(multiChannelThreaded); CPPUNIT_TEST_SUITE_END(); DrumkitCreator drumkit_creator; public: void setUp() {} void tearDown() {} //! Test runner. //! \param filename The name of the file to read. //! \param channel The channel number to do comparison on. //! \param thread Control if this test is running in threaded mode or not. //! \param framesize The initial framesize to use. void testHelper(const char* filename, int channel, bool threaded, int framesize, int num_channels) { // Reference file: AudioFile audio_file_ref(filename, channel); printf("audio_file_ref.load\n"); audio_file_ref.load(); // Input file: AudioFile audio_file(filename, channel); printf("audio_file.load\n"); audio_file.load(4096); Settings settings; AudioCache audio_cache(settings); printf("audio_cache.init\n"); audio_cache.init(100); audio_cache.setAsyncMode(threaded); // Set initial (upper limit) framesize audio_cache.setFrameSize(framesize); audio_cache.updateChunkSize(num_channels); cacheid_t id; for(size_t initial_samples_needed = 0; initial_samples_needed < (size_t)(framesize + 1); ++initial_samples_needed) { printf("open: initial_samples_needed: %d\n", (int)initial_samples_needed); sample_t *samples = audio_cache.open(audio_file, initial_samples_needed, channel, id); size_t size = initial_samples_needed; size_t offset = 0; // Test pre cache: for(size_t i = 0; i < size; ++i) { CPPUNIT_ASSERT_EQUAL(audio_file_ref.data[offset], samples[i]); ++offset; } // Test the rest while(offset < audio_file_ref.size) { if(threaded) { // Wait until we are finished reading int timeout = 1000; while(!audio_cache.isReady(id)) { std::this_thread::sleep_for(std::chrono::milliseconds(1)); if(--timeout == 0) { CPPUNIT_ASSERT(false); // timeout } } } samples = audio_cache.next(id, size); CPPUNIT_ASSERT_EQUAL(std::size_t(0), settings.number_of_underruns.load()); for(size_t i = 0; (i < size) && (offset < audio_file_ref.size); ++i) { if(audio_file_ref.data[offset] != samples[i]) { printf("-----> offset: %d, size: %d, diff: %d," " i: %d, size: %d, block-diff: %d\n", (int)offset, (int)audio_file_ref.size, (int)(audio_file_ref.size - offset), (int)i, (int)size, (int)(size - i)); } CPPUNIT_ASSERT_EQUAL(audio_file_ref.data[offset], samples[i]); ++offset; } } audio_cache.close(id); } printf("done\n"); } void singleChannelNonThreaded() { printf("\nsinglechannel_nonthreaded()\n"); auto filename = drumkit_creator.createSingleChannelWav("single_channel.wav"); // Conduct test int channel = 0; bool threaded = false; int num_channels = 1; testHelper(filename.c_str(), channel, threaded, FRAMESIZE, num_channels); } void singleChannelThreaded() { printf("\nsinglechannel_threaded()\n"); auto filename = drumkit_creator.createSingleChannelWav("single_channel.wav"); // Conduct test int channel = 0; bool threaded = true; int num_channels = 1; testHelper(filename.c_str(), channel, threaded, FRAMESIZE, num_channels); } void multiChannelNonThreaded() { printf("\nmultichannel_nonthreaded()\n"); auto filename = drumkit_creator.createMultiChannelWav("multi_channel.wav"); // Conduct test int channel = 0; bool threaded = false; int num_channels = 13; testHelper(filename.c_str(), channel, threaded, FRAMESIZE, num_channels); ++channel; testHelper(filename.c_str(), channel, threaded, FRAMESIZE, num_channels); } void multiChannelThreaded() { printf("\nmultichannel_threaded()\n"); auto filename = drumkit_creator.createMultiChannelWav("multi_channel.wav"); // Conduct test int channel = 0; bool threaded = true; int num_channels = 13; testHelper(filename.c_str(), channel, threaded, FRAMESIZE, num_channels); ++channel; testHelper(filename.c_str(), channel, threaded, FRAMESIZE, num_channels); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(AudioCacheTest); drumgizmo-0.9.14/test/Makefile.in0000644000076400017500000071631213106051611013577 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@ @ENABLE_TESTS_TRUE@TESTS = resource$(EXEEXT) enginetest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ paintertest$(EXEEXT) resampler$(EXEEXT) \ @ENABLE_TESTS_TRUE@ configfile$(EXEEXT) audiocache$(EXEEXT) \ @ENABLE_TESTS_TRUE@ audiocachefile$(EXEEXT) \ @ENABLE_TESTS_TRUE@ audiocacheidmanager$(EXEEXT) \ @ENABLE_TESTS_TRUE@ audiocacheeventhandler$(EXEEXT) \ @ENABLE_TESTS_TRUE@ memchecker$(EXEEXT) randomtest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ atomictest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ syncedsettingstest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ imagecachetest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ semaphoretest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ drumkitcreatortest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ bytesizeparsertest$(EXEEXT) $(am__EXEEXT_1) @ENABLE_LV2_TRUE@@ENABLE_TESTS_TRUE@am__append_1 = lv2 @ENABLE_TESTS_TRUE@check_PROGRAMS = $(am__EXEEXT_2) subdir = test DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp $(top_srcdir)/test-driver ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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 = @ENABLE_LV2_TRUE@@ENABLE_TESTS_TRUE@am__EXEEXT_1 = lv2$(EXEEXT) @ENABLE_TESTS_TRUE@am__EXEEXT_2 = resource$(EXEEXT) \ @ENABLE_TESTS_TRUE@ enginetest$(EXEEXT) paintertest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ resampler$(EXEEXT) configfile$(EXEEXT) \ @ENABLE_TESTS_TRUE@ audiocache$(EXEEXT) audiocachefile$(EXEEXT) \ @ENABLE_TESTS_TRUE@ audiocacheidmanager$(EXEEXT) \ @ENABLE_TESTS_TRUE@ audiocacheeventhandler$(EXEEXT) \ @ENABLE_TESTS_TRUE@ memchecker$(EXEEXT) randomtest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ atomictest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ syncedsettingstest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ imagecachetest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ semaphoretest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ drumkitcreatortest$(EXEEXT) \ @ENABLE_TESTS_TRUE@ bytesizeparsertest$(EXEEXT) $(am__EXEEXT_1) am__atomictest_SOURCES_DIST = atomictest.cc test.cc @ENABLE_TESTS_TRUE@am_atomictest_OBJECTS = \ @ENABLE_TESTS_TRUE@ atomictest-atomictest.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ atomictest-test.$(OBJEXT) atomictest_OBJECTS = $(am_atomictest_OBJECTS) atomictest_LDADD = $(LDADD) 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 = atomictest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(atomictest_CXXFLAGS) \ $(CXXFLAGS) $(atomictest_LDFLAGS) $(LDFLAGS) -o $@ am__audiocache_SOURCES_DIST = $(top_srcdir)/src/audiocache.cc \ $(top_srcdir)/src/audiocacheeventhandler.cc \ $(top_srcdir)/src/audiocachefile.cc \ $(top_srcdir)/src/audiocacheidmanager.cc \ $(top_srcdir)/src/thread.cc $(top_srcdir)/src/semaphore.cc \ $(top_srcdir)/src/audiofile.cc $(top_srcdir)/src/random.cc \ test.cc drumkit_creator.cc audiocachetest.cc @ENABLE_TESTS_TRUE@am_audiocache_OBJECTS = \ @ENABLE_TESTS_TRUE@ audiocache-audiocache.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-audiocacheeventhandler.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-audiocachefile.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-audiocacheidmanager.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-thread.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-semaphore.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-audiofile.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-random.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-drumkit_creator.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocache-audiocachetest.$(OBJEXT) audiocache_OBJECTS = $(am_audiocache_OBJECTS) audiocache_LDADD = $(LDADD) audiocache_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(audiocache_CXXFLAGS) \ $(CXXFLAGS) $(audiocache_LDFLAGS) $(LDFLAGS) -o $@ am__audiocacheeventhandler_SOURCES_DIST = \ $(top_srcdir)/src/audiocacheeventhandler.cc \ $(top_srcdir)/src/audiocacheidmanager.cc \ $(top_srcdir)/src/audiocachefile.cc \ $(top_srcdir)/src/thread.cc $(top_srcdir)/src/semaphore.cc \ test.cc audiocacheeventhandlertest.cc @ENABLE_TESTS_TRUE@am_audiocacheeventhandler_OBJECTS = audiocacheeventhandler-audiocacheeventhandler.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocacheeventhandler-audiocacheidmanager.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocacheeventhandler-audiocachefile.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocacheeventhandler-thread.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocacheeventhandler-semaphore.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocacheeventhandler-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocacheeventhandler-audiocacheeventhandlertest.$(OBJEXT) audiocacheeventhandler_OBJECTS = $(am_audiocacheeventhandler_OBJECTS) audiocacheeventhandler_LDADD = $(LDADD) audiocacheeventhandler_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) \ $(audiocacheeventhandler_LDFLAGS) $(LDFLAGS) -o $@ am__audiocachefile_SOURCES_DIST = $(top_srcdir)/src/audiocachefile.cc \ $(top_srcdir)/src/thread.cc $(top_srcdir)/src/semaphore.cc \ $(top_srcdir)/src/audiofile.cc $(top_srcdir)/src/random.cc \ test.cc drumkit_creator.cc audiocachefiletest.cc @ENABLE_TESTS_TRUE@am_audiocachefile_OBJECTS = \ @ENABLE_TESTS_TRUE@ audiocachefile-audiocachefile.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocachefile-thread.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocachefile-semaphore.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocachefile-audiofile.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocachefile-random.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocachefile-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocachefile-drumkit_creator.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocachefile-audiocachefiletest.$(OBJEXT) audiocachefile_OBJECTS = $(am_audiocachefile_OBJECTS) audiocachefile_LDADD = $(LDADD) audiocachefile_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(audiocachefile_CXXFLAGS) $(CXXFLAGS) \ $(audiocachefile_LDFLAGS) $(LDFLAGS) -o $@ am__audiocacheidmanager_SOURCES_DIST = \ $(top_srcdir)/src/audiocacheidmanager.cc test.cc \ audiocacheidmanagertest.cc @ENABLE_TESTS_TRUE@am_audiocacheidmanager_OBJECTS = audiocacheidmanager-audiocacheidmanager.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocacheidmanager-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ audiocacheidmanager-audiocacheidmanagertest.$(OBJEXT) audiocacheidmanager_OBJECTS = $(am_audiocacheidmanager_OBJECTS) audiocacheidmanager_LDADD = $(LDADD) audiocacheidmanager_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) \ $(audiocacheidmanager_LDFLAGS) $(LDFLAGS) -o $@ am__bytesizeparsertest_SOURCES_DIST = \ $(top_srcdir)/src/bytesizeparser.cc bytesizeparsertest.cc \ test.cc @ENABLE_TESTS_TRUE@am_bytesizeparsertest_OBJECTS = bytesizeparsertest-bytesizeparser.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ bytesizeparsertest-bytesizeparsertest.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ bytesizeparsertest-test.$(OBJEXT) bytesizeparsertest_OBJECTS = $(am_bytesizeparsertest_OBJECTS) bytesizeparsertest_LDADD = $(LDADD) bytesizeparsertest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) \ $(bytesizeparsertest_LDFLAGS) $(LDFLAGS) -o $@ am__configfile_SOURCES_DIST = $(top_srcdir)/src/configfile.cc \ $(top_srcdir)/hugin/hugin.c test.cc configtest.cc @ENABLE_TESTS_TRUE@am_configfile_OBJECTS = \ @ENABLE_TESTS_TRUE@ configfile-configfile.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ hugin.$(OBJEXT) configfile-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ configfile-configtest.$(OBJEXT) configfile_OBJECTS = $(am_configfile_OBJECTS) configfile_LDADD = $(LDADD) configfile_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(configfile_CXXFLAGS) \ $(CXXFLAGS) $(configfile_LDFLAGS) $(LDFLAGS) -o $@ am__drumkitcreatortest_SOURCES_DIST = $(top_srcdir)/src/random.cc \ test.cc drumkit_creator.cc drumkitcreatortest.cc @ENABLE_TESTS_TRUE@am_drumkitcreatortest_OBJECTS = \ @ENABLE_TESTS_TRUE@ drumkitcreatortest-random.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ drumkitcreatortest-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ drumkitcreatortest-drumkit_creator.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ drumkitcreatortest-drumkitcreatortest.$(OBJEXT) drumkitcreatortest_OBJECTS = $(am_drumkitcreatortest_OBJECTS) drumkitcreatortest_LDADD = $(LDADD) drumkitcreatortest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) \ $(drumkitcreatortest_LDFLAGS) $(LDFLAGS) -o $@ am__enginetest_SOURCES_DIST = $(top_srcdir)/hugin/hugin.c test.cc \ drumkit_creator.cc enginetest.cc @ENABLE_TESTS_TRUE@am_enginetest_OBJECTS = hugin.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ enginetest-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ enginetest-drumkit_creator.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ enginetest-enginetest.$(OBJEXT) enginetest_OBJECTS = $(am_enginetest_OBJECTS) enginetest_LDADD = $(LDADD) enginetest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(enginetest_CXXFLAGS) \ $(CXXFLAGS) $(enginetest_LDFLAGS) $(LDFLAGS) -o $@ am__imagecachetest_SOURCES_DIST = $(top_srcdir)/hugin/hugin.c \ imagecachetest.cc test.cc @ENABLE_TESTS_TRUE@am_imagecachetest_OBJECTS = hugin.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ imagecachetest-imagecachetest.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ imagecachetest-test.$(OBJEXT) imagecachetest_OBJECTS = $(am_imagecachetest_OBJECTS) imagecachetest_LDADD = $(LDADD) imagecachetest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(imagecachetest_CXXFLAGS) $(CXXFLAGS) \ $(imagecachetest_LDFLAGS) $(LDFLAGS) -o $@ am__lv2_SOURCES_DIST = $(top_srcdir)/src/random.cc test.cc \ drumkit_creator.cc lv2_test_host.cc lv2.cc @ENABLE_TESTS_TRUE@am_lv2_OBJECTS = lv2-random.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ lv2-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ lv2-drumkit_creator.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ lv2-lv2_test_host.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ lv2-lv2.$(OBJEXT) lv2_OBJECTS = $(am_lv2_OBJECTS) lv2_LDADD = $(LDADD) lv2_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(lv2_CXXFLAGS) \ $(CXXFLAGS) $(lv2_LDFLAGS) $(LDFLAGS) -o $@ am__memchecker_SOURCES_DIST = $(top_srcdir)/hugin/hugin.c test.cc \ drumkit_creator.cc memcheckertest.cc @ENABLE_TESTS_TRUE@am_memchecker_OBJECTS = hugin.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ memchecker-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ memchecker-drumkit_creator.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ memchecker-memcheckertest.$(OBJEXT) memchecker_OBJECTS = $(am_memchecker_OBJECTS) memchecker_LDADD = $(LDADD) memchecker_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(memchecker_CXXFLAGS) \ $(CXXFLAGS) $(memchecker_LDFLAGS) $(LDFLAGS) -o $@ am__paintertest_SOURCES_DIST = $(top_srcdir)/hugin/hugin.c test.cc \ paintertest.cc @ENABLE_TESTS_TRUE@am_paintertest_OBJECTS = hugin.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ paintertest-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ paintertest-paintertest.$(OBJEXT) paintertest_OBJECTS = $(am_paintertest_OBJECTS) paintertest_LDADD = $(LDADD) paintertest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(paintertest_CXXFLAGS) \ $(CXXFLAGS) $(paintertest_LDFLAGS) $(LDFLAGS) -o $@ am__randomtest_SOURCES_DIST = $(top_srcdir)/src/random.cc test.cc \ randomtest.cc @ENABLE_TESTS_TRUE@am_randomtest_OBJECTS = \ @ENABLE_TESTS_TRUE@ randomtest-random.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ randomtest-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ randomtest-randomtest.$(OBJEXT) randomtest_OBJECTS = $(am_randomtest_OBJECTS) randomtest_LDADD = $(LDADD) randomtest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(randomtest_CXXFLAGS) \ $(CXXFLAGS) $(randomtest_LDFLAGS) $(LDFLAGS) -o $@ am__resampler_SOURCES_DIST = $(top_srcdir)/src/chresampler.cc test.cc \ resampler.cc @ENABLE_TESTS_TRUE@am_resampler_OBJECTS = \ @ENABLE_TESTS_TRUE@ resampler-chresampler.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ resampler-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ resampler-resampler.$(OBJEXT) resampler_OBJECTS = $(am_resampler_OBJECTS) resampler_LDADD = $(LDADD) resampler_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(resampler_CXXFLAGS) \ $(CXXFLAGS) $(resampler_LDFLAGS) $(LDFLAGS) -o $@ am__resource_SOURCES_DIST = $(top_srcdir)/plugingui/resource.cc \ $(top_srcdir)/plugingui/resource_data.cc \ $(top_srcdir)/hugin/hugin.c $(top_srcdir)/src/random.cc \ test.cc drumkit_creator.cc resource_test.cc @ENABLE_TESTS_TRUE@am_resource_OBJECTS = resource-resource.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ resource-resource_data.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ hugin.$(OBJEXT) resource-random.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ resource-test.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ resource-drumkit_creator.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ resource-resource_test.$(OBJEXT) resource_OBJECTS = $(am_resource_OBJECTS) resource_LDADD = $(LDADD) resource_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(resource_CXXFLAGS) \ $(CXXFLAGS) $(resource_LDFLAGS) $(LDFLAGS) -o $@ am__semaphoretest_SOURCES_DIST = $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/src/semaphore.cc semaphoretest.cc test.cc @ENABLE_TESTS_TRUE@am_semaphoretest_OBJECTS = hugin.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ semaphoretest-semaphore.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ semaphoretest-semaphoretest.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ semaphoretest-test.$(OBJEXT) semaphoretest_OBJECTS = $(am_semaphoretest_OBJECTS) semaphoretest_LDADD = $(LDADD) semaphoretest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(semaphoretest_CXXFLAGS) $(CXXFLAGS) $(semaphoretest_LDFLAGS) \ $(LDFLAGS) -o $@ am__syncedsettingstest_SOURCES_DIST = syncedsettings.cc test.cc @ENABLE_TESTS_TRUE@am_syncedsettingstest_OBJECTS = syncedsettingstest-syncedsettings.$(OBJEXT) \ @ENABLE_TESTS_TRUE@ syncedsettingstest-test.$(OBJEXT) syncedsettingstest_OBJECTS = $(am_syncedsettingstest_OBJECTS) syncedsettingstest_LDADD = $(LDADD) syncedsettingstest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(syncedsettingstest_CXXFLAGS) $(CXXFLAGS) \ $(syncedsettingstest_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 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(atomictest_SOURCES) $(audiocache_SOURCES) \ $(audiocacheeventhandler_SOURCES) $(audiocachefile_SOURCES) \ $(audiocacheidmanager_SOURCES) $(bytesizeparsertest_SOURCES) \ $(configfile_SOURCES) $(drumkitcreatortest_SOURCES) \ $(enginetest_SOURCES) $(imagecachetest_SOURCES) $(lv2_SOURCES) \ $(memchecker_SOURCES) $(paintertest_SOURCES) \ $(randomtest_SOURCES) $(resampler_SOURCES) $(resource_SOURCES) \ $(semaphoretest_SOURCES) $(syncedsettingstest_SOURCES) DIST_SOURCES = $(am__atomictest_SOURCES_DIST) \ $(am__audiocache_SOURCES_DIST) \ $(am__audiocacheeventhandler_SOURCES_DIST) \ $(am__audiocachefile_SOURCES_DIST) \ $(am__audiocacheidmanager_SOURCES_DIST) \ $(am__bytesizeparsertest_SOURCES_DIST) \ $(am__configfile_SOURCES_DIST) \ $(am__drumkitcreatortest_SOURCES_DIST) \ $(am__enginetest_SOURCES_DIST) \ $(am__imagecachetest_SOURCES_DIST) $(am__lv2_SOURCES_DIST) \ $(am__memchecker_SOURCES_DIST) $(am__paintertest_SOURCES_DIST) \ $(am__randomtest_SOURCES_DIST) $(am__resampler_SOURCES_DIST) \ $(am__resource_SOURCES_DIST) $(am__semaphoretest_SOURCES_DIST) \ $(am__syncedsettingstest_SOURCES_DIST) 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 \ check recheck 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 am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no am__tty_colors = { \ $(am__tty_colors_dummy); \ if test "X$(AM_COLOR_TESTS)" = Xno; then \ am__color_tests=no; \ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ am__color_tests=yes; \ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ am__color_tests=yes; \ fi; \ if test $$am__color_tests = yes; then \ red=''; \ grn=''; \ lgn=''; \ blu=''; \ mgn=''; \ brg=''; \ std=''; \ fi; \ } 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__recheck_rx = ^[ ]*:recheck:[ ]* am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* # A command that, given a newline-separated list of test names on the # standard input, print the name of the tests that are to be re-run # upon "make recheck". am__list_recheck_tests = $(AWK) '{ \ recheck = 1; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ { \ if ((getline line2 < ($$0 ".log")) < 0) \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ { \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ { \ break; \ } \ }; \ if (recheck) \ print $$0; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # A command that, given a newline-separated list of test names on the # standard input, create the global log from their .trs and .log files. am__create_global_log = $(AWK) ' \ function fatal(msg) \ { \ print "fatal: making $@: " msg | "cat >&2"; \ exit 1; \ } \ function rst_section(header) \ { \ print header; \ len = length(header); \ for (i = 1; i <= len; i = i + 1) \ printf "="; \ printf "\n\n"; \ } \ { \ copy_in_global_log = 1; \ global_test_result = "RUN"; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".trs"); \ if (line ~ /$(am__global_test_result_rx)/) \ { \ sub("$(am__global_test_result_rx)", "", line); \ sub("[ ]*$$", "", line); \ global_test_result = line; \ } \ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ copy_in_global_log = 0; \ }; \ if (copy_in_global_log) \ { \ rst_section(global_test_result ": " $$0); \ while ((rc = (getline line < ($$0 ".log"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".log"); \ print line; \ }; \ printf "\n"; \ }; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # Restructured Text title. am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } # Solaris 10 'make', and several other traditional 'make' implementations, # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it # by disabling -e (using the XSI extension "set +e") if it's set. am__sh_e_setup = case $$- in *e*) set +e;; esac # Default flags passed to test drivers. am__common_driver_flags = \ --color-tests "$$am__color_tests" \ --enable-hard-errors "$$am__enable_hard_errors" \ --expect-failure "$$am__expect_failure" # To be inserted before the command running the test. Creates the # directory for the log if needed. Stores in $dir the directory # containing $f, in $tst the test, in $log the log. Executes the # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and # passes TESTS_ENVIRONMENT. Set up options for the wrapper that # will run the test scripts (or their associated LOG_COMPILER, if # thy have one). am__check_pre = \ $(am__sh_e_setup); \ $(am__vpath_adj_setup) $(am__vpath_adj) \ $(am__tty_colors); \ srcdir=$(srcdir); export srcdir; \ case "$@" in \ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ *) am__odir=.;; \ esac; \ test "x$$am__odir" = x"." || test -d "$$am__odir" \ || $(MKDIR_P) "$$am__odir" || exit $$?; \ if test -f "./$$f"; then dir=./; \ elif test -f "$$f"; then dir=; \ else dir="$(srcdir)/"; fi; \ tst=$$dir$$f; log='$@'; \ if test -n '$(DISABLE_HARD_ERRORS)'; then \ am__enable_hard_errors=no; \ else \ am__enable_hard_errors=yes; \ fi; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ am__expect_failure=yes;; \ *) \ am__expect_failure=no;; \ esac; \ $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) # A shell command to get the names of the tests scripts with any registered # extension removed (i.e., equivalently, the names of the test logs, with # the '.log' extension removed). The result is saved in the shell variable # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", # since that might cause problem with VPATH rewrites for suffix-less tests. # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. am__set_TESTS_bases = \ bases='$(TEST_LOGS)'; \ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ bases=`echo $$bases` RECHECK_LOGS = $(TEST_LOGS) TEST_SUITE_LOG = test-suite.log TEST_EXTENSIONS = @EXEEXT@ .test LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) am__set_b = \ case '$@' in \ */*) \ case '$*' in \ */*) b='$*';; \ *) b=`echo '$@' | sed 's/\.log$$//'`; \ esac;; \ *) \ b='$*';; \ esac am__test_logs1 = $(TESTS:=.log) am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) TEST_LOGS = $(am__test_logs2:.test.log=.log) TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ $(TEST_LOG_FLAGS) 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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ # Rules for the test code (use `make check` to execute) SUBDIRS = dgreftest uitests @ENABLE_TESTS_TRUE@resource_CXXFLAGS = -DOUTPUT=\"resource\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin @ENABLE_TESTS_TRUE@resource_LDFLAGS = $(CPPUNIT_LIBS) $(SNDFILE_LIBS) @ENABLE_TESTS_TRUE@resource_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/plugingui/resource.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/plugingui/resource_data.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/hugin/hugin.c \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/random.cc \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ drumkit_creator.cc \ @ENABLE_TESTS_TRUE@ resource_test.cc @ENABLE_TESTS_TRUE@audiocache_CXXFLAGS = -DOUTPUT=\"audiocache\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/include \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS) @ENABLE_TESTS_TRUE@audiocache_LDFLAGS = $(PTHREAD_LIBS) $(CPPUNIT_LIBS) $(SNDFILE_LIBS) @ENABLE_TESTS_TRUE@audiocache_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiocache.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiocacheeventhandler.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiocachefile.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiocacheidmanager.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/thread.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/semaphore.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiofile.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/random.cc \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ drumkit_creator.cc \ @ENABLE_TESTS_TRUE@ audiocachetest.cc @ENABLE_TESTS_TRUE@audiocachefile_CXXFLAGS = -DOUTPUT=\"audiocachefile\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/include \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS) @ENABLE_TESTS_TRUE@audiocachefile_LDFLAGS = $(PTHREAD_LIBS) $(CPPUNIT_LIBS) $(SNDFILE_LIBS) @ENABLE_TESTS_TRUE@audiocachefile_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiocachefile.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/thread.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/semaphore.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiofile.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/random.cc \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ drumkit_creator.cc \ @ENABLE_TESTS_TRUE@ audiocachefiletest.cc @ENABLE_TESTS_TRUE@audiocacheidmanager_CXXFLAGS = -DOUTPUT=\"audiocacheidmanager\" \ @ENABLE_TESTS_TRUE@ $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/include \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin -DDISABLE_HUGIN $(SNDFILE_CFLAGS) @ENABLE_TESTS_TRUE@audiocacheidmanager_LDFLAGS = $(CPPUNIT_LIBS) $(SNDFILE_LIBS) @ENABLE_TESTS_TRUE@audiocacheidmanager_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiocacheidmanager.cc \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ audiocacheidmanagertest.cc @ENABLE_TESTS_TRUE@audiocacheeventhandler_CXXFLAGS = -DOUTPUT=\"audiocacheeventhandler\" \ @ENABLE_TESTS_TRUE@ $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/include \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS) @ENABLE_TESTS_TRUE@audiocacheeventhandler_LDFLAGS = $(PTHREAD_LIBS) $(CPPUNIT_LIBS) $(SNDFILE_LIBS) @ENABLE_TESTS_TRUE@audiocacheeventhandler_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiocacheeventhandler.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiocacheidmanager.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/audiocachefile.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/thread.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/semaphore.cc \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ audiocacheeventhandlertest.cc @ENABLE_TESTS_TRUE@enginetest_CXXFLAGS = -DOUTPUT=\"enginetest\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/include \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin $(PTHREAD_CFLAGS) @ENABLE_TESTS_TRUE@enginetest_LDFLAGS = $(CPPUNIT_LIBS) $(PTHREAD_LIBS) $(SNDFILE_LIBS) \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/libdg.la @ENABLE_TESTS_TRUE@enginetest_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/hugin/hugin.c \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ drumkit_creator.cc \ @ENABLE_TESTS_TRUE@ enginetest.cc @ENABLE_TESTS_TRUE@paintertest_CXXFLAGS = -DOUTPUT=\"paintertest\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/plugingui \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin $(PTHREAD_CFLAGS) @ENABLE_TESTS_TRUE@paintertest_LDFLAGS = $(CPPUNIT_LIBS) $(top_srcdir)/plugingui/libdggui.la @ENABLE_TESTS_TRUE@paintertest_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/hugin/hugin.c \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ paintertest.cc @ENABLE_TESTS_TRUE@resampler_CXXFLAGS = -DOUTPUT=\"resampler\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ $(ZITA_CXXFLAGS) $(SAMPLERATE_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin -DDISABLE_HUGIN @ENABLE_TESTS_TRUE@resampler_LDFLAGS = $(ZITA_LIBS) $(SAMPLERATE_LIBS) $(CPPUNIT_LIBS) @ENABLE_TESTS_TRUE@resampler_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/chresampler.cc \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ resampler.cc @ENABLE_TESTS_TRUE@lv2_CXXFLAGS = -DOUTPUT=\"lv2\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src \ @ENABLE_TESTS_TRUE@ `pkg-config --cflags serd-0` `pkg-config --cflags lilv-0` \ @ENABLE_TESTS_TRUE@ -DLV2_PATH=\"@LV2DIR@\" @ENABLE_TESTS_TRUE@lv2_LDFLAGS = $(CPPUNIT_LIBS) `pkg-config --libs serd-0` \ @ENABLE_TESTS_TRUE@ `pkg-config --libs lilv-0` -lcrypto \ @ENABLE_TESTS_TRUE@ $(SNDFILE_LIBS) @ENABLE_TESTS_TRUE@lv2_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/random.cc \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ drumkit_creator.cc \ @ENABLE_TESTS_TRUE@ lv2_test_host.cc \ @ENABLE_TESTS_TRUE@ lv2.cc @ENABLE_TESTS_TRUE@configfile_CXXFLAGS = -DOUTPUT=\"configfile\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin @ENABLE_TESTS_TRUE@configfile_LDFLAGS = $(CPPUNIT_LIBS) @ENABLE_TESTS_TRUE@configfile_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/configfile.cc \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/hugin/hugin.c \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ configtest.cc @ENABLE_TESTS_TRUE@memchecker_CXXFLAGS = -DOUTPUT=\"memchecker\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/include \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin $(PTHREAD_CFLAGS) @ENABLE_TESTS_TRUE@memchecker_LDFLAGS = $(CPPUNIT_LIBS) $(PTHREAD_LIBS) \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/libdg.la @ENABLE_TESTS_TRUE@memchecker_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/hugin/hugin.c \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ drumkit_creator.cc \ @ENABLE_TESTS_TRUE@ memcheckertest.cc @ENABLE_TESTS_TRUE@randomtest_CXXFLAGS = -DOUTPUT=\"randomtest\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin -DDISABLE_HUGIN @ENABLE_TESTS_TRUE@randomtest_CFLAGS = -DDISABLE_HUGIN @ENABLE_TESTS_TRUE@randomtest_LDFLAGS = $(CPPUNIT_LIBS) @ENABLE_TESTS_TRUE@randomtest_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/random.cc \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ randomtest.cc @ENABLE_TESTS_TRUE@atomictest_CXXFLAGS = -DOUTPUT=\"atomictest\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/hugin @ENABLE_TESTS_TRUE@atomictest_LDFLAGS = $(CPPUNIT_LIBS) @ENABLE_TESTS_TRUE@atomictest_SOURCES = atomictest.cc test.cc @ENABLE_TESTS_TRUE@syncedsettingstest_CXXFLAGS = -DOUTPUT=\"syncedsettingstest\" \ @ENABLE_TESTS_TRUE@ $(CPPUNIT_CFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/hugin @ENABLE_TESTS_TRUE@syncedsettingstest_LDFLAGS = $(CPPUNIT_LIBS) @ENABLE_TESTS_TRUE@syncedsettingstest_SOURCES = syncedsettings.cc test.cc @ENABLE_TESTS_TRUE@EXTRA_DIST = \ @ENABLE_TESTS_TRUE@ lv2_test_host.h \ @ENABLE_TESTS_TRUE@ drumkit_creator.h @ENABLE_TESTS_TRUE@imagecachetest_CXXFLAGS = -DOUTPUT=\"imagecachetest\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/plugingui -I$(top_srcdir)/hugin @ENABLE_TESTS_TRUE@imagecachetest_LDFLAGS = $(CPPUNIT_LIBS) $(top_srcdir)/plugingui/libdggui.la @ENABLE_TESTS_TRUE@imagecachetest_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/hugin/hugin.c \ @ENABLE_TESTS_TRUE@ imagecachetest.cc \ @ENABLE_TESTS_TRUE@ test.cc @ENABLE_TESTS_TRUE@semaphoretest_CXXFLAGS = -DOUTPUT=\"semaphoretest\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/hugin $(PTHREAD_CFLAGS) @ENABLE_TESTS_TRUE@semaphoretest_LDFLAGS = $(CPPUNIT_LIBS) $(PTHREAD_LIBS) @ENABLE_TESTS_TRUE@semaphoretest_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/hugin/hugin.c \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/semaphore.cc \ @ENABLE_TESTS_TRUE@ semaphoretest.cc \ @ENABLE_TESTS_TRUE@ test.cc @ENABLE_TESTS_TRUE@drumkitcreatortest_CXXFLAGS = -DOUTPUT=\"drumkitcreatortest\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/hugin -DDISABLE_HUGIN @ENABLE_TESTS_TRUE@drumkitcreatortest_CFLAGS = -DDISABLE_HUGIN @ENABLE_TESTS_TRUE@drumkitcreatortest_LDFLAGS = $(CPPUNIT_LIBS) $(SNDFILE_LIBS) @ENABLE_TESTS_TRUE@drumkitcreatortest_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/random.cc \ @ENABLE_TESTS_TRUE@ test.cc \ @ENABLE_TESTS_TRUE@ drumkit_creator.cc \ @ENABLE_TESTS_TRUE@ drumkitcreatortest.cc @ENABLE_TESTS_TRUE@bytesizeparsertest_CXXFLAGS = -DOUTPUT=\"bytesizeparsertest\" $(CPPUNIT_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir)/src @ENABLE_TESTS_TRUE@bytesizeparsertest_LDFLAGS = $(CPPUNIT_LIBS) @ENABLE_TESTS_TRUE@bytesizeparsertest_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_srcdir)/src/bytesizeparser.cc \ @ENABLE_TESTS_TRUE@ bytesizeparsertest.cc \ @ENABLE_TESTS_TRUE@ test.cc all: all-recursive .SUFFIXES: .SUFFIXES: .c .cc .lo .log .o .obj .test .test$(EXEEXT) .trs $(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 test/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/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): clean-checkPROGRAMS: @list='$(check_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 atomictest$(EXEEXT): $(atomictest_OBJECTS) $(atomictest_DEPENDENCIES) $(EXTRA_atomictest_DEPENDENCIES) @rm -f atomictest$(EXEEXT) $(AM_V_CXXLD)$(atomictest_LINK) $(atomictest_OBJECTS) $(atomictest_LDADD) $(LIBS) audiocache$(EXEEXT): $(audiocache_OBJECTS) $(audiocache_DEPENDENCIES) $(EXTRA_audiocache_DEPENDENCIES) @rm -f audiocache$(EXEEXT) $(AM_V_CXXLD)$(audiocache_LINK) $(audiocache_OBJECTS) $(audiocache_LDADD) $(LIBS) audiocacheeventhandler$(EXEEXT): $(audiocacheeventhandler_OBJECTS) $(audiocacheeventhandler_DEPENDENCIES) $(EXTRA_audiocacheeventhandler_DEPENDENCIES) @rm -f audiocacheeventhandler$(EXEEXT) $(AM_V_CXXLD)$(audiocacheeventhandler_LINK) $(audiocacheeventhandler_OBJECTS) $(audiocacheeventhandler_LDADD) $(LIBS) audiocachefile$(EXEEXT): $(audiocachefile_OBJECTS) $(audiocachefile_DEPENDENCIES) $(EXTRA_audiocachefile_DEPENDENCIES) @rm -f audiocachefile$(EXEEXT) $(AM_V_CXXLD)$(audiocachefile_LINK) $(audiocachefile_OBJECTS) $(audiocachefile_LDADD) $(LIBS) audiocacheidmanager$(EXEEXT): $(audiocacheidmanager_OBJECTS) $(audiocacheidmanager_DEPENDENCIES) $(EXTRA_audiocacheidmanager_DEPENDENCIES) @rm -f audiocacheidmanager$(EXEEXT) $(AM_V_CXXLD)$(audiocacheidmanager_LINK) $(audiocacheidmanager_OBJECTS) $(audiocacheidmanager_LDADD) $(LIBS) bytesizeparsertest$(EXEEXT): $(bytesizeparsertest_OBJECTS) $(bytesizeparsertest_DEPENDENCIES) $(EXTRA_bytesizeparsertest_DEPENDENCIES) @rm -f bytesizeparsertest$(EXEEXT) $(AM_V_CXXLD)$(bytesizeparsertest_LINK) $(bytesizeparsertest_OBJECTS) $(bytesizeparsertest_LDADD) $(LIBS) configfile$(EXEEXT): $(configfile_OBJECTS) $(configfile_DEPENDENCIES) $(EXTRA_configfile_DEPENDENCIES) @rm -f configfile$(EXEEXT) $(AM_V_CXXLD)$(configfile_LINK) $(configfile_OBJECTS) $(configfile_LDADD) $(LIBS) drumkitcreatortest$(EXEEXT): $(drumkitcreatortest_OBJECTS) $(drumkitcreatortest_DEPENDENCIES) $(EXTRA_drumkitcreatortest_DEPENDENCIES) @rm -f drumkitcreatortest$(EXEEXT) $(AM_V_CXXLD)$(drumkitcreatortest_LINK) $(drumkitcreatortest_OBJECTS) $(drumkitcreatortest_LDADD) $(LIBS) enginetest$(EXEEXT): $(enginetest_OBJECTS) $(enginetest_DEPENDENCIES) $(EXTRA_enginetest_DEPENDENCIES) @rm -f enginetest$(EXEEXT) $(AM_V_CXXLD)$(enginetest_LINK) $(enginetest_OBJECTS) $(enginetest_LDADD) $(LIBS) imagecachetest$(EXEEXT): $(imagecachetest_OBJECTS) $(imagecachetest_DEPENDENCIES) $(EXTRA_imagecachetest_DEPENDENCIES) @rm -f imagecachetest$(EXEEXT) $(AM_V_CXXLD)$(imagecachetest_LINK) $(imagecachetest_OBJECTS) $(imagecachetest_LDADD) $(LIBS) lv2$(EXEEXT): $(lv2_OBJECTS) $(lv2_DEPENDENCIES) $(EXTRA_lv2_DEPENDENCIES) @rm -f lv2$(EXEEXT) $(AM_V_CXXLD)$(lv2_LINK) $(lv2_OBJECTS) $(lv2_LDADD) $(LIBS) memchecker$(EXEEXT): $(memchecker_OBJECTS) $(memchecker_DEPENDENCIES) $(EXTRA_memchecker_DEPENDENCIES) @rm -f memchecker$(EXEEXT) $(AM_V_CXXLD)$(memchecker_LINK) $(memchecker_OBJECTS) $(memchecker_LDADD) $(LIBS) paintertest$(EXEEXT): $(paintertest_OBJECTS) $(paintertest_DEPENDENCIES) $(EXTRA_paintertest_DEPENDENCIES) @rm -f paintertest$(EXEEXT) $(AM_V_CXXLD)$(paintertest_LINK) $(paintertest_OBJECTS) $(paintertest_LDADD) $(LIBS) randomtest$(EXEEXT): $(randomtest_OBJECTS) $(randomtest_DEPENDENCIES) $(EXTRA_randomtest_DEPENDENCIES) @rm -f randomtest$(EXEEXT) $(AM_V_CXXLD)$(randomtest_LINK) $(randomtest_OBJECTS) $(randomtest_LDADD) $(LIBS) resampler$(EXEEXT): $(resampler_OBJECTS) $(resampler_DEPENDENCIES) $(EXTRA_resampler_DEPENDENCIES) @rm -f resampler$(EXEEXT) $(AM_V_CXXLD)$(resampler_LINK) $(resampler_OBJECTS) $(resampler_LDADD) $(LIBS) resource$(EXEEXT): $(resource_OBJECTS) $(resource_DEPENDENCIES) $(EXTRA_resource_DEPENDENCIES) @rm -f resource$(EXEEXT) $(AM_V_CXXLD)$(resource_LINK) $(resource_OBJECTS) $(resource_LDADD) $(LIBS) semaphoretest$(EXEEXT): $(semaphoretest_OBJECTS) $(semaphoretest_DEPENDENCIES) $(EXTRA_semaphoretest_DEPENDENCIES) @rm -f semaphoretest$(EXEEXT) $(AM_V_CXXLD)$(semaphoretest_LINK) $(semaphoretest_OBJECTS) $(semaphoretest_LDADD) $(LIBS) syncedsettingstest$(EXEEXT): $(syncedsettingstest_OBJECTS) $(syncedsettingstest_DEPENDENCIES) $(EXTRA_syncedsettingstest_DEPENDENCIES) @rm -f syncedsettingstest$(EXEEXT) $(AM_V_CXXLD)$(syncedsettingstest_LINK) $(syncedsettingstest_OBJECTS) $(syncedsettingstest_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atomictest-atomictest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atomictest-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-audiocache.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-audiocacheeventhandler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-audiocachefile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-audiocacheidmanager.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-audiocachetest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-audiofile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-drumkit_creator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-random.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-semaphore.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocache-thread.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheeventhandler-audiocacheeventhandler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheeventhandler-audiocacheeventhandlertest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheeventhandler-audiocachefile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheeventhandler-audiocacheidmanager.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheeventhandler-semaphore.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheeventhandler-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheeventhandler-thread.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocachefile-audiocachefile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocachefile-audiocachefiletest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocachefile-audiofile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocachefile-drumkit_creator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocachefile-random.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocachefile-semaphore.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocachefile-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocachefile-thread.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheidmanager-audiocacheidmanager.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheidmanager-audiocacheidmanagertest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiocacheidmanager-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bytesizeparsertest-bytesizeparser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bytesizeparsertest-bytesizeparsertest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bytesizeparsertest-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/configfile-configfile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/configfile-configtest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/configfile-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumkitcreatortest-drumkit_creator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumkitcreatortest-drumkitcreatortest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumkitcreatortest-random.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumkitcreatortest-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enginetest-drumkit_creator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enginetest-enginetest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enginetest-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hugin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imagecachetest-imagecachetest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imagecachetest-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lv2-drumkit_creator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lv2-lv2.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lv2-lv2_test_host.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lv2-random.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lv2-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memchecker-drumkit_creator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memchecker-memcheckertest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memchecker-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/paintertest-paintertest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/paintertest-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/randomtest-random.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/randomtest-randomtest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/randomtest-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resampler-chresampler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resampler-resampler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resampler-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resource-drumkit_creator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resource-random.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resource-resource.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resource-resource_data.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resource-resource_test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resource-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/semaphoretest-semaphore.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/semaphoretest-semaphoretest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/semaphoretest-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/syncedsettingstest-syncedsettings.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/syncedsettingstest-test.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 $@ $< hugin.o: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hugin.o -MD -MP -MF $(DEPDIR)/hugin.Tpo -c -o hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hugin.Tpo $(DEPDIR)/hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='hugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c hugin.obj: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hugin.obj -MD -MP -MF $(DEPDIR)/hugin.Tpo -c -o hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hugin.Tpo $(DEPDIR)/hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='hugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< atomictest-atomictest.o: atomictest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(atomictest_CXXFLAGS) $(CXXFLAGS) -MT atomictest-atomictest.o -MD -MP -MF $(DEPDIR)/atomictest-atomictest.Tpo -c -o atomictest-atomictest.o `test -f 'atomictest.cc' || echo '$(srcdir)/'`atomictest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/atomictest-atomictest.Tpo $(DEPDIR)/atomictest-atomictest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='atomictest.cc' object='atomictest-atomictest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(atomictest_CXXFLAGS) $(CXXFLAGS) -c -o atomictest-atomictest.o `test -f 'atomictest.cc' || echo '$(srcdir)/'`atomictest.cc atomictest-atomictest.obj: atomictest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(atomictest_CXXFLAGS) $(CXXFLAGS) -MT atomictest-atomictest.obj -MD -MP -MF $(DEPDIR)/atomictest-atomictest.Tpo -c -o atomictest-atomictest.obj `if test -f 'atomictest.cc'; then $(CYGPATH_W) 'atomictest.cc'; else $(CYGPATH_W) '$(srcdir)/atomictest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/atomictest-atomictest.Tpo $(DEPDIR)/atomictest-atomictest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='atomictest.cc' object='atomictest-atomictest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(atomictest_CXXFLAGS) $(CXXFLAGS) -c -o atomictest-atomictest.obj `if test -f 'atomictest.cc'; then $(CYGPATH_W) 'atomictest.cc'; else $(CYGPATH_W) '$(srcdir)/atomictest.cc'; fi` atomictest-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(atomictest_CXXFLAGS) $(CXXFLAGS) -MT atomictest-test.o -MD -MP -MF $(DEPDIR)/atomictest-test.Tpo -c -o atomictest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/atomictest-test.Tpo $(DEPDIR)/atomictest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='atomictest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(atomictest_CXXFLAGS) $(CXXFLAGS) -c -o atomictest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc atomictest-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(atomictest_CXXFLAGS) $(CXXFLAGS) -MT atomictest-test.obj -MD -MP -MF $(DEPDIR)/atomictest-test.Tpo -c -o atomictest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/atomictest-test.Tpo $(DEPDIR)/atomictest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='atomictest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(atomictest_CXXFLAGS) $(CXXFLAGS) -c -o atomictest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` audiocache-audiocache.o: $(top_srcdir)/src/audiocache.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocache.o -MD -MP -MF $(DEPDIR)/audiocache-audiocache.Tpo -c -o audiocache-audiocache.o `test -f '$(top_srcdir)/src/audiocache.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocache.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocache.Tpo $(DEPDIR)/audiocache-audiocache.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocache.cc' object='audiocache-audiocache.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocache.o `test -f '$(top_srcdir)/src/audiocache.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocache.cc audiocache-audiocache.obj: $(top_srcdir)/src/audiocache.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocache.obj -MD -MP -MF $(DEPDIR)/audiocache-audiocache.Tpo -c -o audiocache-audiocache.obj `if test -f '$(top_srcdir)/src/audiocache.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocache.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocache.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocache.Tpo $(DEPDIR)/audiocache-audiocache.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocache.cc' object='audiocache-audiocache.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocache.obj `if test -f '$(top_srcdir)/src/audiocache.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocache.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocache.cc'; fi` audiocache-audiocacheeventhandler.o: $(top_srcdir)/src/audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocacheeventhandler.o -MD -MP -MF $(DEPDIR)/audiocache-audiocacheeventhandler.Tpo -c -o audiocache-audiocacheeventhandler.o `test -f '$(top_srcdir)/src/audiocacheeventhandler.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocacheeventhandler.Tpo $(DEPDIR)/audiocache-audiocacheeventhandler.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheeventhandler.cc' object='audiocache-audiocacheeventhandler.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocacheeventhandler.o `test -f '$(top_srcdir)/src/audiocacheeventhandler.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheeventhandler.cc audiocache-audiocacheeventhandler.obj: $(top_srcdir)/src/audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocacheeventhandler.obj -MD -MP -MF $(DEPDIR)/audiocache-audiocacheeventhandler.Tpo -c -o audiocache-audiocacheeventhandler.obj `if test -f '$(top_srcdir)/src/audiocacheeventhandler.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheeventhandler.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheeventhandler.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocacheeventhandler.Tpo $(DEPDIR)/audiocache-audiocacheeventhandler.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheeventhandler.cc' object='audiocache-audiocacheeventhandler.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocacheeventhandler.obj `if test -f '$(top_srcdir)/src/audiocacheeventhandler.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheeventhandler.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheeventhandler.cc'; fi` audiocache-audiocachefile.o: $(top_srcdir)/src/audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocachefile.o -MD -MP -MF $(DEPDIR)/audiocache-audiocachefile.Tpo -c -o audiocache-audiocachefile.o `test -f '$(top_srcdir)/src/audiocachefile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocachefile.Tpo $(DEPDIR)/audiocache-audiocachefile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocachefile.cc' object='audiocache-audiocachefile.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocachefile.o `test -f '$(top_srcdir)/src/audiocachefile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocachefile.cc audiocache-audiocachefile.obj: $(top_srcdir)/src/audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocachefile.obj -MD -MP -MF $(DEPDIR)/audiocache-audiocachefile.Tpo -c -o audiocache-audiocachefile.obj `if test -f '$(top_srcdir)/src/audiocachefile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocachefile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocachefile.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocachefile.Tpo $(DEPDIR)/audiocache-audiocachefile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocachefile.cc' object='audiocache-audiocachefile.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocachefile.obj `if test -f '$(top_srcdir)/src/audiocachefile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocachefile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocachefile.cc'; fi` audiocache-audiocacheidmanager.o: $(top_srcdir)/src/audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocacheidmanager.o -MD -MP -MF $(DEPDIR)/audiocache-audiocacheidmanager.Tpo -c -o audiocache-audiocacheidmanager.o `test -f '$(top_srcdir)/src/audiocacheidmanager.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocacheidmanager.Tpo $(DEPDIR)/audiocache-audiocacheidmanager.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheidmanager.cc' object='audiocache-audiocacheidmanager.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocacheidmanager.o `test -f '$(top_srcdir)/src/audiocacheidmanager.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheidmanager.cc audiocache-audiocacheidmanager.obj: $(top_srcdir)/src/audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocacheidmanager.obj -MD -MP -MF $(DEPDIR)/audiocache-audiocacheidmanager.Tpo -c -o audiocache-audiocacheidmanager.obj `if test -f '$(top_srcdir)/src/audiocacheidmanager.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheidmanager.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheidmanager.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocacheidmanager.Tpo $(DEPDIR)/audiocache-audiocacheidmanager.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheidmanager.cc' object='audiocache-audiocacheidmanager.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocacheidmanager.obj `if test -f '$(top_srcdir)/src/audiocacheidmanager.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheidmanager.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheidmanager.cc'; fi` audiocache-thread.o: $(top_srcdir)/src/thread.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-thread.o -MD -MP -MF $(DEPDIR)/audiocache-thread.Tpo -c -o audiocache-thread.o `test -f '$(top_srcdir)/src/thread.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/thread.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-thread.Tpo $(DEPDIR)/audiocache-thread.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/thread.cc' object='audiocache-thread.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-thread.o `test -f '$(top_srcdir)/src/thread.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/thread.cc audiocache-thread.obj: $(top_srcdir)/src/thread.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-thread.obj -MD -MP -MF $(DEPDIR)/audiocache-thread.Tpo -c -o audiocache-thread.obj `if test -f '$(top_srcdir)/src/thread.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/thread.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/thread.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-thread.Tpo $(DEPDIR)/audiocache-thread.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/thread.cc' object='audiocache-thread.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-thread.obj `if test -f '$(top_srcdir)/src/thread.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/thread.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/thread.cc'; fi` audiocache-semaphore.o: $(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-semaphore.o -MD -MP -MF $(DEPDIR)/audiocache-semaphore.Tpo -c -o audiocache-semaphore.o `test -f '$(top_srcdir)/src/semaphore.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-semaphore.Tpo $(DEPDIR)/audiocache-semaphore.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/semaphore.cc' object='audiocache-semaphore.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-semaphore.o `test -f '$(top_srcdir)/src/semaphore.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/semaphore.cc audiocache-semaphore.obj: $(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-semaphore.obj -MD -MP -MF $(DEPDIR)/audiocache-semaphore.Tpo -c -o audiocache-semaphore.obj `if test -f '$(top_srcdir)/src/semaphore.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/semaphore.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/semaphore.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-semaphore.Tpo $(DEPDIR)/audiocache-semaphore.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/semaphore.cc' object='audiocache-semaphore.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-semaphore.obj `if test -f '$(top_srcdir)/src/semaphore.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/semaphore.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/semaphore.cc'; fi` audiocache-audiofile.o: $(top_srcdir)/src/audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiofile.o -MD -MP -MF $(DEPDIR)/audiocache-audiofile.Tpo -c -o audiocache-audiofile.o `test -f '$(top_srcdir)/src/audiofile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiofile.Tpo $(DEPDIR)/audiocache-audiofile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiofile.cc' object='audiocache-audiofile.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiofile.o `test -f '$(top_srcdir)/src/audiofile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiofile.cc audiocache-audiofile.obj: $(top_srcdir)/src/audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiofile.obj -MD -MP -MF $(DEPDIR)/audiocache-audiofile.Tpo -c -o audiocache-audiofile.obj `if test -f '$(top_srcdir)/src/audiofile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiofile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiofile.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiofile.Tpo $(DEPDIR)/audiocache-audiofile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiofile.cc' object='audiocache-audiofile.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiofile.obj `if test -f '$(top_srcdir)/src/audiofile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiofile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiofile.cc'; fi` audiocache-random.o: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-random.o -MD -MP -MF $(DEPDIR)/audiocache-random.Tpo -c -o audiocache-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-random.Tpo $(DEPDIR)/audiocache-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='audiocache-random.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc audiocache-random.obj: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-random.obj -MD -MP -MF $(DEPDIR)/audiocache-random.Tpo -c -o audiocache-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-random.Tpo $(DEPDIR)/audiocache-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='audiocache-random.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` audiocache-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-test.o -MD -MP -MF $(DEPDIR)/audiocache-test.Tpo -c -o audiocache-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-test.Tpo $(DEPDIR)/audiocache-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='audiocache-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc audiocache-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-test.obj -MD -MP -MF $(DEPDIR)/audiocache-test.Tpo -c -o audiocache-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-test.Tpo $(DEPDIR)/audiocache-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='audiocache-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` audiocache-drumkit_creator.o: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-drumkit_creator.o -MD -MP -MF $(DEPDIR)/audiocache-drumkit_creator.Tpo -c -o audiocache-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-drumkit_creator.Tpo $(DEPDIR)/audiocache-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='audiocache-drumkit_creator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc audiocache-drumkit_creator.obj: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-drumkit_creator.obj -MD -MP -MF $(DEPDIR)/audiocache-drumkit_creator.Tpo -c -o audiocache-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-drumkit_creator.Tpo $(DEPDIR)/audiocache-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='audiocache-drumkit_creator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` audiocache-audiocachetest.o: audiocachetest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocachetest.o -MD -MP -MF $(DEPDIR)/audiocache-audiocachetest.Tpo -c -o audiocache-audiocachetest.o `test -f 'audiocachetest.cc' || echo '$(srcdir)/'`audiocachetest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocachetest.Tpo $(DEPDIR)/audiocache-audiocachetest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocachetest.cc' object='audiocache-audiocachetest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocachetest.o `test -f 'audiocachetest.cc' || echo '$(srcdir)/'`audiocachetest.cc audiocache-audiocachetest.obj: audiocachetest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -MT audiocache-audiocachetest.obj -MD -MP -MF $(DEPDIR)/audiocache-audiocachetest.Tpo -c -o audiocache-audiocachetest.obj `if test -f 'audiocachetest.cc'; then $(CYGPATH_W) 'audiocachetest.cc'; else $(CYGPATH_W) '$(srcdir)/audiocachetest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocache-audiocachetest.Tpo $(DEPDIR)/audiocache-audiocachetest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocachetest.cc' object='audiocache-audiocachetest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocache_CXXFLAGS) $(CXXFLAGS) -c -o audiocache-audiocachetest.obj `if test -f 'audiocachetest.cc'; then $(CYGPATH_W) 'audiocachetest.cc'; else $(CYGPATH_W) '$(srcdir)/audiocachetest.cc'; fi` audiocacheeventhandler-audiocacheeventhandler.o: $(top_srcdir)/src/audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-audiocacheeventhandler.o -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandler.Tpo -c -o audiocacheeventhandler-audiocacheeventhandler.o `test -f '$(top_srcdir)/src/audiocacheeventhandler.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandler.Tpo $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandler.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheeventhandler.cc' object='audiocacheeventhandler-audiocacheeventhandler.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-audiocacheeventhandler.o `test -f '$(top_srcdir)/src/audiocacheeventhandler.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheeventhandler.cc audiocacheeventhandler-audiocacheeventhandler.obj: $(top_srcdir)/src/audiocacheeventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-audiocacheeventhandler.obj -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandler.Tpo -c -o audiocacheeventhandler-audiocacheeventhandler.obj `if test -f '$(top_srcdir)/src/audiocacheeventhandler.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheeventhandler.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheeventhandler.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandler.Tpo $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandler.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheeventhandler.cc' object='audiocacheeventhandler-audiocacheeventhandler.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-audiocacheeventhandler.obj `if test -f '$(top_srcdir)/src/audiocacheeventhandler.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheeventhandler.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheeventhandler.cc'; fi` audiocacheeventhandler-audiocacheidmanager.o: $(top_srcdir)/src/audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-audiocacheidmanager.o -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-audiocacheidmanager.Tpo -c -o audiocacheeventhandler-audiocacheidmanager.o `test -f '$(top_srcdir)/src/audiocacheidmanager.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-audiocacheidmanager.Tpo $(DEPDIR)/audiocacheeventhandler-audiocacheidmanager.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheidmanager.cc' object='audiocacheeventhandler-audiocacheidmanager.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-audiocacheidmanager.o `test -f '$(top_srcdir)/src/audiocacheidmanager.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheidmanager.cc audiocacheeventhandler-audiocacheidmanager.obj: $(top_srcdir)/src/audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-audiocacheidmanager.obj -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-audiocacheidmanager.Tpo -c -o audiocacheeventhandler-audiocacheidmanager.obj `if test -f '$(top_srcdir)/src/audiocacheidmanager.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheidmanager.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheidmanager.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-audiocacheidmanager.Tpo $(DEPDIR)/audiocacheeventhandler-audiocacheidmanager.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheidmanager.cc' object='audiocacheeventhandler-audiocacheidmanager.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-audiocacheidmanager.obj `if test -f '$(top_srcdir)/src/audiocacheidmanager.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheidmanager.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheidmanager.cc'; fi` audiocacheeventhandler-audiocachefile.o: $(top_srcdir)/src/audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-audiocachefile.o -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-audiocachefile.Tpo -c -o audiocacheeventhandler-audiocachefile.o `test -f '$(top_srcdir)/src/audiocachefile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-audiocachefile.Tpo $(DEPDIR)/audiocacheeventhandler-audiocachefile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocachefile.cc' object='audiocacheeventhandler-audiocachefile.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-audiocachefile.o `test -f '$(top_srcdir)/src/audiocachefile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocachefile.cc audiocacheeventhandler-audiocachefile.obj: $(top_srcdir)/src/audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-audiocachefile.obj -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-audiocachefile.Tpo -c -o audiocacheeventhandler-audiocachefile.obj `if test -f '$(top_srcdir)/src/audiocachefile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocachefile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocachefile.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-audiocachefile.Tpo $(DEPDIR)/audiocacheeventhandler-audiocachefile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocachefile.cc' object='audiocacheeventhandler-audiocachefile.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-audiocachefile.obj `if test -f '$(top_srcdir)/src/audiocachefile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocachefile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocachefile.cc'; fi` audiocacheeventhandler-thread.o: $(top_srcdir)/src/thread.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-thread.o -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-thread.Tpo -c -o audiocacheeventhandler-thread.o `test -f '$(top_srcdir)/src/thread.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/thread.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-thread.Tpo $(DEPDIR)/audiocacheeventhandler-thread.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/thread.cc' object='audiocacheeventhandler-thread.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-thread.o `test -f '$(top_srcdir)/src/thread.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/thread.cc audiocacheeventhandler-thread.obj: $(top_srcdir)/src/thread.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-thread.obj -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-thread.Tpo -c -o audiocacheeventhandler-thread.obj `if test -f '$(top_srcdir)/src/thread.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/thread.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/thread.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-thread.Tpo $(DEPDIR)/audiocacheeventhandler-thread.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/thread.cc' object='audiocacheeventhandler-thread.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-thread.obj `if test -f '$(top_srcdir)/src/thread.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/thread.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/thread.cc'; fi` audiocacheeventhandler-semaphore.o: $(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-semaphore.o -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-semaphore.Tpo -c -o audiocacheeventhandler-semaphore.o `test -f '$(top_srcdir)/src/semaphore.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-semaphore.Tpo $(DEPDIR)/audiocacheeventhandler-semaphore.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/semaphore.cc' object='audiocacheeventhandler-semaphore.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-semaphore.o `test -f '$(top_srcdir)/src/semaphore.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/semaphore.cc audiocacheeventhandler-semaphore.obj: $(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-semaphore.obj -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-semaphore.Tpo -c -o audiocacheeventhandler-semaphore.obj `if test -f '$(top_srcdir)/src/semaphore.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/semaphore.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/semaphore.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-semaphore.Tpo $(DEPDIR)/audiocacheeventhandler-semaphore.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/semaphore.cc' object='audiocacheeventhandler-semaphore.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-semaphore.obj `if test -f '$(top_srcdir)/src/semaphore.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/semaphore.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/semaphore.cc'; fi` audiocacheeventhandler-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-test.o -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-test.Tpo -c -o audiocacheeventhandler-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-test.Tpo $(DEPDIR)/audiocacheeventhandler-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='audiocacheeventhandler-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc audiocacheeventhandler-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-test.obj -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-test.Tpo -c -o audiocacheeventhandler-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-test.Tpo $(DEPDIR)/audiocacheeventhandler-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='audiocacheeventhandler-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` audiocacheeventhandler-audiocacheeventhandlertest.o: audiocacheeventhandlertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-audiocacheeventhandlertest.o -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandlertest.Tpo -c -o audiocacheeventhandler-audiocacheeventhandlertest.o `test -f 'audiocacheeventhandlertest.cc' || echo '$(srcdir)/'`audiocacheeventhandlertest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandlertest.Tpo $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandlertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocacheeventhandlertest.cc' object='audiocacheeventhandler-audiocacheeventhandlertest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-audiocacheeventhandlertest.o `test -f 'audiocacheeventhandlertest.cc' || echo '$(srcdir)/'`audiocacheeventhandlertest.cc audiocacheeventhandler-audiocacheeventhandlertest.obj: audiocacheeventhandlertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -MT audiocacheeventhandler-audiocacheeventhandlertest.obj -MD -MP -MF $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandlertest.Tpo -c -o audiocacheeventhandler-audiocacheeventhandlertest.obj `if test -f 'audiocacheeventhandlertest.cc'; then $(CYGPATH_W) 'audiocacheeventhandlertest.cc'; else $(CYGPATH_W) '$(srcdir)/audiocacheeventhandlertest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandlertest.Tpo $(DEPDIR)/audiocacheeventhandler-audiocacheeventhandlertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocacheeventhandlertest.cc' object='audiocacheeventhandler-audiocacheeventhandlertest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheeventhandler_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheeventhandler-audiocacheeventhandlertest.obj `if test -f 'audiocacheeventhandlertest.cc'; then $(CYGPATH_W) 'audiocacheeventhandlertest.cc'; else $(CYGPATH_W) '$(srcdir)/audiocacheeventhandlertest.cc'; fi` audiocachefile-audiocachefile.o: $(top_srcdir)/src/audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-audiocachefile.o -MD -MP -MF $(DEPDIR)/audiocachefile-audiocachefile.Tpo -c -o audiocachefile-audiocachefile.o `test -f '$(top_srcdir)/src/audiocachefile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-audiocachefile.Tpo $(DEPDIR)/audiocachefile-audiocachefile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocachefile.cc' object='audiocachefile-audiocachefile.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-audiocachefile.o `test -f '$(top_srcdir)/src/audiocachefile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocachefile.cc audiocachefile-audiocachefile.obj: $(top_srcdir)/src/audiocachefile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-audiocachefile.obj -MD -MP -MF $(DEPDIR)/audiocachefile-audiocachefile.Tpo -c -o audiocachefile-audiocachefile.obj `if test -f '$(top_srcdir)/src/audiocachefile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocachefile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocachefile.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-audiocachefile.Tpo $(DEPDIR)/audiocachefile-audiocachefile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocachefile.cc' object='audiocachefile-audiocachefile.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-audiocachefile.obj `if test -f '$(top_srcdir)/src/audiocachefile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocachefile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocachefile.cc'; fi` audiocachefile-thread.o: $(top_srcdir)/src/thread.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-thread.o -MD -MP -MF $(DEPDIR)/audiocachefile-thread.Tpo -c -o audiocachefile-thread.o `test -f '$(top_srcdir)/src/thread.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/thread.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-thread.Tpo $(DEPDIR)/audiocachefile-thread.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/thread.cc' object='audiocachefile-thread.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-thread.o `test -f '$(top_srcdir)/src/thread.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/thread.cc audiocachefile-thread.obj: $(top_srcdir)/src/thread.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-thread.obj -MD -MP -MF $(DEPDIR)/audiocachefile-thread.Tpo -c -o audiocachefile-thread.obj `if test -f '$(top_srcdir)/src/thread.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/thread.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/thread.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-thread.Tpo $(DEPDIR)/audiocachefile-thread.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/thread.cc' object='audiocachefile-thread.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-thread.obj `if test -f '$(top_srcdir)/src/thread.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/thread.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/thread.cc'; fi` audiocachefile-semaphore.o: $(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-semaphore.o -MD -MP -MF $(DEPDIR)/audiocachefile-semaphore.Tpo -c -o audiocachefile-semaphore.o `test -f '$(top_srcdir)/src/semaphore.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-semaphore.Tpo $(DEPDIR)/audiocachefile-semaphore.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/semaphore.cc' object='audiocachefile-semaphore.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-semaphore.o `test -f '$(top_srcdir)/src/semaphore.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/semaphore.cc audiocachefile-semaphore.obj: $(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-semaphore.obj -MD -MP -MF $(DEPDIR)/audiocachefile-semaphore.Tpo -c -o audiocachefile-semaphore.obj `if test -f '$(top_srcdir)/src/semaphore.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/semaphore.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/semaphore.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-semaphore.Tpo $(DEPDIR)/audiocachefile-semaphore.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/semaphore.cc' object='audiocachefile-semaphore.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-semaphore.obj `if test -f '$(top_srcdir)/src/semaphore.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/semaphore.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/semaphore.cc'; fi` audiocachefile-audiofile.o: $(top_srcdir)/src/audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-audiofile.o -MD -MP -MF $(DEPDIR)/audiocachefile-audiofile.Tpo -c -o audiocachefile-audiofile.o `test -f '$(top_srcdir)/src/audiofile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-audiofile.Tpo $(DEPDIR)/audiocachefile-audiofile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiofile.cc' object='audiocachefile-audiofile.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-audiofile.o `test -f '$(top_srcdir)/src/audiofile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiofile.cc audiocachefile-audiofile.obj: $(top_srcdir)/src/audiofile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-audiofile.obj -MD -MP -MF $(DEPDIR)/audiocachefile-audiofile.Tpo -c -o audiocachefile-audiofile.obj `if test -f '$(top_srcdir)/src/audiofile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiofile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiofile.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-audiofile.Tpo $(DEPDIR)/audiocachefile-audiofile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiofile.cc' object='audiocachefile-audiofile.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-audiofile.obj `if test -f '$(top_srcdir)/src/audiofile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiofile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiofile.cc'; fi` audiocachefile-random.o: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-random.o -MD -MP -MF $(DEPDIR)/audiocachefile-random.Tpo -c -o audiocachefile-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-random.Tpo $(DEPDIR)/audiocachefile-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='audiocachefile-random.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc audiocachefile-random.obj: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-random.obj -MD -MP -MF $(DEPDIR)/audiocachefile-random.Tpo -c -o audiocachefile-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-random.Tpo $(DEPDIR)/audiocachefile-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='audiocachefile-random.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` audiocachefile-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-test.o -MD -MP -MF $(DEPDIR)/audiocachefile-test.Tpo -c -o audiocachefile-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-test.Tpo $(DEPDIR)/audiocachefile-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='audiocachefile-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc audiocachefile-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-test.obj -MD -MP -MF $(DEPDIR)/audiocachefile-test.Tpo -c -o audiocachefile-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-test.Tpo $(DEPDIR)/audiocachefile-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='audiocachefile-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` audiocachefile-drumkit_creator.o: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-drumkit_creator.o -MD -MP -MF $(DEPDIR)/audiocachefile-drumkit_creator.Tpo -c -o audiocachefile-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-drumkit_creator.Tpo $(DEPDIR)/audiocachefile-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='audiocachefile-drumkit_creator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc audiocachefile-drumkit_creator.obj: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-drumkit_creator.obj -MD -MP -MF $(DEPDIR)/audiocachefile-drumkit_creator.Tpo -c -o audiocachefile-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-drumkit_creator.Tpo $(DEPDIR)/audiocachefile-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='audiocachefile-drumkit_creator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` audiocachefile-audiocachefiletest.o: audiocachefiletest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-audiocachefiletest.o -MD -MP -MF $(DEPDIR)/audiocachefile-audiocachefiletest.Tpo -c -o audiocachefile-audiocachefiletest.o `test -f 'audiocachefiletest.cc' || echo '$(srcdir)/'`audiocachefiletest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-audiocachefiletest.Tpo $(DEPDIR)/audiocachefile-audiocachefiletest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocachefiletest.cc' object='audiocachefile-audiocachefiletest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-audiocachefiletest.o `test -f 'audiocachefiletest.cc' || echo '$(srcdir)/'`audiocachefiletest.cc audiocachefile-audiocachefiletest.obj: audiocachefiletest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -MT audiocachefile-audiocachefiletest.obj -MD -MP -MF $(DEPDIR)/audiocachefile-audiocachefiletest.Tpo -c -o audiocachefile-audiocachefiletest.obj `if test -f 'audiocachefiletest.cc'; then $(CYGPATH_W) 'audiocachefiletest.cc'; else $(CYGPATH_W) '$(srcdir)/audiocachefiletest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocachefile-audiocachefiletest.Tpo $(DEPDIR)/audiocachefile-audiocachefiletest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocachefiletest.cc' object='audiocachefile-audiocachefiletest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocachefile_CXXFLAGS) $(CXXFLAGS) -c -o audiocachefile-audiocachefiletest.obj `if test -f 'audiocachefiletest.cc'; then $(CYGPATH_W) 'audiocachefiletest.cc'; else $(CYGPATH_W) '$(srcdir)/audiocachefiletest.cc'; fi` audiocacheidmanager-audiocacheidmanager.o: $(top_srcdir)/src/audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -MT audiocacheidmanager-audiocacheidmanager.o -MD -MP -MF $(DEPDIR)/audiocacheidmanager-audiocacheidmanager.Tpo -c -o audiocacheidmanager-audiocacheidmanager.o `test -f '$(top_srcdir)/src/audiocacheidmanager.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheidmanager-audiocacheidmanager.Tpo $(DEPDIR)/audiocacheidmanager-audiocacheidmanager.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheidmanager.cc' object='audiocacheidmanager-audiocacheidmanager.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheidmanager-audiocacheidmanager.o `test -f '$(top_srcdir)/src/audiocacheidmanager.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/audiocacheidmanager.cc audiocacheidmanager-audiocacheidmanager.obj: $(top_srcdir)/src/audiocacheidmanager.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -MT audiocacheidmanager-audiocacheidmanager.obj -MD -MP -MF $(DEPDIR)/audiocacheidmanager-audiocacheidmanager.Tpo -c -o audiocacheidmanager-audiocacheidmanager.obj `if test -f '$(top_srcdir)/src/audiocacheidmanager.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheidmanager.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheidmanager.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheidmanager-audiocacheidmanager.Tpo $(DEPDIR)/audiocacheidmanager-audiocacheidmanager.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/audiocacheidmanager.cc' object='audiocacheidmanager-audiocacheidmanager.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheidmanager-audiocacheidmanager.obj `if test -f '$(top_srcdir)/src/audiocacheidmanager.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/audiocacheidmanager.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/audiocacheidmanager.cc'; fi` audiocacheidmanager-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -MT audiocacheidmanager-test.o -MD -MP -MF $(DEPDIR)/audiocacheidmanager-test.Tpo -c -o audiocacheidmanager-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheidmanager-test.Tpo $(DEPDIR)/audiocacheidmanager-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='audiocacheidmanager-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheidmanager-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc audiocacheidmanager-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -MT audiocacheidmanager-test.obj -MD -MP -MF $(DEPDIR)/audiocacheidmanager-test.Tpo -c -o audiocacheidmanager-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheidmanager-test.Tpo $(DEPDIR)/audiocacheidmanager-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='audiocacheidmanager-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheidmanager-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` audiocacheidmanager-audiocacheidmanagertest.o: audiocacheidmanagertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -MT audiocacheidmanager-audiocacheidmanagertest.o -MD -MP -MF $(DEPDIR)/audiocacheidmanager-audiocacheidmanagertest.Tpo -c -o audiocacheidmanager-audiocacheidmanagertest.o `test -f 'audiocacheidmanagertest.cc' || echo '$(srcdir)/'`audiocacheidmanagertest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheidmanager-audiocacheidmanagertest.Tpo $(DEPDIR)/audiocacheidmanager-audiocacheidmanagertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocacheidmanagertest.cc' object='audiocacheidmanager-audiocacheidmanagertest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheidmanager-audiocacheidmanagertest.o `test -f 'audiocacheidmanagertest.cc' || echo '$(srcdir)/'`audiocacheidmanagertest.cc audiocacheidmanager-audiocacheidmanagertest.obj: audiocacheidmanagertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -MT audiocacheidmanager-audiocacheidmanagertest.obj -MD -MP -MF $(DEPDIR)/audiocacheidmanager-audiocacheidmanagertest.Tpo -c -o audiocacheidmanager-audiocacheidmanagertest.obj `if test -f 'audiocacheidmanagertest.cc'; then $(CYGPATH_W) 'audiocacheidmanagertest.cc'; else $(CYGPATH_W) '$(srcdir)/audiocacheidmanagertest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/audiocacheidmanager-audiocacheidmanagertest.Tpo $(DEPDIR)/audiocacheidmanager-audiocacheidmanagertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='audiocacheidmanagertest.cc' object='audiocacheidmanager-audiocacheidmanagertest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(audiocacheidmanager_CXXFLAGS) $(CXXFLAGS) -c -o audiocacheidmanager-audiocacheidmanagertest.obj `if test -f 'audiocacheidmanagertest.cc'; then $(CYGPATH_W) 'audiocacheidmanagertest.cc'; else $(CYGPATH_W) '$(srcdir)/audiocacheidmanagertest.cc'; fi` bytesizeparsertest-bytesizeparser.o: $(top_srcdir)/src/bytesizeparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -MT bytesizeparsertest-bytesizeparser.o -MD -MP -MF $(DEPDIR)/bytesizeparsertest-bytesizeparser.Tpo -c -o bytesizeparsertest-bytesizeparser.o `test -f '$(top_srcdir)/src/bytesizeparser.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/bytesizeparser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bytesizeparsertest-bytesizeparser.Tpo $(DEPDIR)/bytesizeparsertest-bytesizeparser.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/bytesizeparser.cc' object='bytesizeparsertest-bytesizeparser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -c -o bytesizeparsertest-bytesizeparser.o `test -f '$(top_srcdir)/src/bytesizeparser.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/bytesizeparser.cc bytesizeparsertest-bytesizeparser.obj: $(top_srcdir)/src/bytesizeparser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -MT bytesizeparsertest-bytesizeparser.obj -MD -MP -MF $(DEPDIR)/bytesizeparsertest-bytesizeparser.Tpo -c -o bytesizeparsertest-bytesizeparser.obj `if test -f '$(top_srcdir)/src/bytesizeparser.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/bytesizeparser.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/bytesizeparser.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bytesizeparsertest-bytesizeparser.Tpo $(DEPDIR)/bytesizeparsertest-bytesizeparser.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/bytesizeparser.cc' object='bytesizeparsertest-bytesizeparser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -c -o bytesizeparsertest-bytesizeparser.obj `if test -f '$(top_srcdir)/src/bytesizeparser.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/bytesizeparser.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/bytesizeparser.cc'; fi` bytesizeparsertest-bytesizeparsertest.o: bytesizeparsertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -MT bytesizeparsertest-bytesizeparsertest.o -MD -MP -MF $(DEPDIR)/bytesizeparsertest-bytesizeparsertest.Tpo -c -o bytesizeparsertest-bytesizeparsertest.o `test -f 'bytesizeparsertest.cc' || echo '$(srcdir)/'`bytesizeparsertest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bytesizeparsertest-bytesizeparsertest.Tpo $(DEPDIR)/bytesizeparsertest-bytesizeparsertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bytesizeparsertest.cc' object='bytesizeparsertest-bytesizeparsertest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -c -o bytesizeparsertest-bytesizeparsertest.o `test -f 'bytesizeparsertest.cc' || echo '$(srcdir)/'`bytesizeparsertest.cc bytesizeparsertest-bytesizeparsertest.obj: bytesizeparsertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -MT bytesizeparsertest-bytesizeparsertest.obj -MD -MP -MF $(DEPDIR)/bytesizeparsertest-bytesizeparsertest.Tpo -c -o bytesizeparsertest-bytesizeparsertest.obj `if test -f 'bytesizeparsertest.cc'; then $(CYGPATH_W) 'bytesizeparsertest.cc'; else $(CYGPATH_W) '$(srcdir)/bytesizeparsertest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bytesizeparsertest-bytesizeparsertest.Tpo $(DEPDIR)/bytesizeparsertest-bytesizeparsertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bytesizeparsertest.cc' object='bytesizeparsertest-bytesizeparsertest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -c -o bytesizeparsertest-bytesizeparsertest.obj `if test -f 'bytesizeparsertest.cc'; then $(CYGPATH_W) 'bytesizeparsertest.cc'; else $(CYGPATH_W) '$(srcdir)/bytesizeparsertest.cc'; fi` bytesizeparsertest-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -MT bytesizeparsertest-test.o -MD -MP -MF $(DEPDIR)/bytesizeparsertest-test.Tpo -c -o bytesizeparsertest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bytesizeparsertest-test.Tpo $(DEPDIR)/bytesizeparsertest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='bytesizeparsertest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -c -o bytesizeparsertest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc bytesizeparsertest-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -MT bytesizeparsertest-test.obj -MD -MP -MF $(DEPDIR)/bytesizeparsertest-test.Tpo -c -o bytesizeparsertest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bytesizeparsertest-test.Tpo $(DEPDIR)/bytesizeparsertest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='bytesizeparsertest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bytesizeparsertest_CXXFLAGS) $(CXXFLAGS) -c -o bytesizeparsertest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` configfile-configfile.o: $(top_srcdir)/src/configfile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -MT configfile-configfile.o -MD -MP -MF $(DEPDIR)/configfile-configfile.Tpo -c -o configfile-configfile.o `test -f '$(top_srcdir)/src/configfile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/configfile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/configfile-configfile.Tpo $(DEPDIR)/configfile-configfile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/configfile.cc' object='configfile-configfile.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -c -o configfile-configfile.o `test -f '$(top_srcdir)/src/configfile.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/configfile.cc configfile-configfile.obj: $(top_srcdir)/src/configfile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -MT configfile-configfile.obj -MD -MP -MF $(DEPDIR)/configfile-configfile.Tpo -c -o configfile-configfile.obj `if test -f '$(top_srcdir)/src/configfile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/configfile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/configfile.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/configfile-configfile.Tpo $(DEPDIR)/configfile-configfile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/configfile.cc' object='configfile-configfile.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -c -o configfile-configfile.obj `if test -f '$(top_srcdir)/src/configfile.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/configfile.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/configfile.cc'; fi` configfile-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -MT configfile-test.o -MD -MP -MF $(DEPDIR)/configfile-test.Tpo -c -o configfile-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/configfile-test.Tpo $(DEPDIR)/configfile-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='configfile-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -c -o configfile-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc configfile-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -MT configfile-test.obj -MD -MP -MF $(DEPDIR)/configfile-test.Tpo -c -o configfile-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/configfile-test.Tpo $(DEPDIR)/configfile-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='configfile-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -c -o configfile-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` configfile-configtest.o: configtest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -MT configfile-configtest.o -MD -MP -MF $(DEPDIR)/configfile-configtest.Tpo -c -o configfile-configtest.o `test -f 'configtest.cc' || echo '$(srcdir)/'`configtest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/configfile-configtest.Tpo $(DEPDIR)/configfile-configtest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='configtest.cc' object='configfile-configtest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -c -o configfile-configtest.o `test -f 'configtest.cc' || echo '$(srcdir)/'`configtest.cc configfile-configtest.obj: configtest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -MT configfile-configtest.obj -MD -MP -MF $(DEPDIR)/configfile-configtest.Tpo -c -o configfile-configtest.obj `if test -f 'configtest.cc'; then $(CYGPATH_W) 'configtest.cc'; else $(CYGPATH_W) '$(srcdir)/configtest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/configfile-configtest.Tpo $(DEPDIR)/configfile-configtest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='configtest.cc' object='configfile-configtest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(configfile_CXXFLAGS) $(CXXFLAGS) -c -o configfile-configtest.obj `if test -f 'configtest.cc'; then $(CYGPATH_W) 'configtest.cc'; else $(CYGPATH_W) '$(srcdir)/configtest.cc'; fi` drumkitcreatortest-random.o: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -MT drumkitcreatortest-random.o -MD -MP -MF $(DEPDIR)/drumkitcreatortest-random.Tpo -c -o drumkitcreatortest-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumkitcreatortest-random.Tpo $(DEPDIR)/drumkitcreatortest-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='drumkitcreatortest-random.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -c -o drumkitcreatortest-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc drumkitcreatortest-random.obj: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -MT drumkitcreatortest-random.obj -MD -MP -MF $(DEPDIR)/drumkitcreatortest-random.Tpo -c -o drumkitcreatortest-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumkitcreatortest-random.Tpo $(DEPDIR)/drumkitcreatortest-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='drumkitcreatortest-random.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -c -o drumkitcreatortest-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` drumkitcreatortest-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -MT drumkitcreatortest-test.o -MD -MP -MF $(DEPDIR)/drumkitcreatortest-test.Tpo -c -o drumkitcreatortest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumkitcreatortest-test.Tpo $(DEPDIR)/drumkitcreatortest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='drumkitcreatortest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -c -o drumkitcreatortest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc drumkitcreatortest-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -MT drumkitcreatortest-test.obj -MD -MP -MF $(DEPDIR)/drumkitcreatortest-test.Tpo -c -o drumkitcreatortest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumkitcreatortest-test.Tpo $(DEPDIR)/drumkitcreatortest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='drumkitcreatortest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -c -o drumkitcreatortest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` drumkitcreatortest-drumkit_creator.o: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -MT drumkitcreatortest-drumkit_creator.o -MD -MP -MF $(DEPDIR)/drumkitcreatortest-drumkit_creator.Tpo -c -o drumkitcreatortest-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumkitcreatortest-drumkit_creator.Tpo $(DEPDIR)/drumkitcreatortest-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='drumkitcreatortest-drumkit_creator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -c -o drumkitcreatortest-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc drumkitcreatortest-drumkit_creator.obj: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -MT drumkitcreatortest-drumkit_creator.obj -MD -MP -MF $(DEPDIR)/drumkitcreatortest-drumkit_creator.Tpo -c -o drumkitcreatortest-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumkitcreatortest-drumkit_creator.Tpo $(DEPDIR)/drumkitcreatortest-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='drumkitcreatortest-drumkit_creator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -c -o drumkitcreatortest-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` drumkitcreatortest-drumkitcreatortest.o: drumkitcreatortest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -MT drumkitcreatortest-drumkitcreatortest.o -MD -MP -MF $(DEPDIR)/drumkitcreatortest-drumkitcreatortest.Tpo -c -o drumkitcreatortest-drumkitcreatortest.o `test -f 'drumkitcreatortest.cc' || echo '$(srcdir)/'`drumkitcreatortest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumkitcreatortest-drumkitcreatortest.Tpo $(DEPDIR)/drumkitcreatortest-drumkitcreatortest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkitcreatortest.cc' object='drumkitcreatortest-drumkitcreatortest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -c -o drumkitcreatortest-drumkitcreatortest.o `test -f 'drumkitcreatortest.cc' || echo '$(srcdir)/'`drumkitcreatortest.cc drumkitcreatortest-drumkitcreatortest.obj: drumkitcreatortest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -MT drumkitcreatortest-drumkitcreatortest.obj -MD -MP -MF $(DEPDIR)/drumkitcreatortest-drumkitcreatortest.Tpo -c -o drumkitcreatortest-drumkitcreatortest.obj `if test -f 'drumkitcreatortest.cc'; then $(CYGPATH_W) 'drumkitcreatortest.cc'; else $(CYGPATH_W) '$(srcdir)/drumkitcreatortest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumkitcreatortest-drumkitcreatortest.Tpo $(DEPDIR)/drumkitcreatortest-drumkitcreatortest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkitcreatortest.cc' object='drumkitcreatortest-drumkitcreatortest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumkitcreatortest_CXXFLAGS) $(CXXFLAGS) -c -o drumkitcreatortest-drumkitcreatortest.obj `if test -f 'drumkitcreatortest.cc'; then $(CYGPATH_W) 'drumkitcreatortest.cc'; else $(CYGPATH_W) '$(srcdir)/drumkitcreatortest.cc'; fi` enginetest-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -MT enginetest-test.o -MD -MP -MF $(DEPDIR)/enginetest-test.Tpo -c -o enginetest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enginetest-test.Tpo $(DEPDIR)/enginetest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='enginetest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -c -o enginetest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc enginetest-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -MT enginetest-test.obj -MD -MP -MF $(DEPDIR)/enginetest-test.Tpo -c -o enginetest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enginetest-test.Tpo $(DEPDIR)/enginetest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='enginetest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -c -o enginetest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` enginetest-drumkit_creator.o: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -MT enginetest-drumkit_creator.o -MD -MP -MF $(DEPDIR)/enginetest-drumkit_creator.Tpo -c -o enginetest-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enginetest-drumkit_creator.Tpo $(DEPDIR)/enginetest-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='enginetest-drumkit_creator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -c -o enginetest-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc enginetest-drumkit_creator.obj: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -MT enginetest-drumkit_creator.obj -MD -MP -MF $(DEPDIR)/enginetest-drumkit_creator.Tpo -c -o enginetest-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enginetest-drumkit_creator.Tpo $(DEPDIR)/enginetest-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='enginetest-drumkit_creator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -c -o enginetest-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` enginetest-enginetest.o: enginetest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -MT enginetest-enginetest.o -MD -MP -MF $(DEPDIR)/enginetest-enginetest.Tpo -c -o enginetest-enginetest.o `test -f 'enginetest.cc' || echo '$(srcdir)/'`enginetest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enginetest-enginetest.Tpo $(DEPDIR)/enginetest-enginetest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='enginetest.cc' object='enginetest-enginetest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -c -o enginetest-enginetest.o `test -f 'enginetest.cc' || echo '$(srcdir)/'`enginetest.cc enginetest-enginetest.obj: enginetest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -MT enginetest-enginetest.obj -MD -MP -MF $(DEPDIR)/enginetest-enginetest.Tpo -c -o enginetest-enginetest.obj `if test -f 'enginetest.cc'; then $(CYGPATH_W) 'enginetest.cc'; else $(CYGPATH_W) '$(srcdir)/enginetest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enginetest-enginetest.Tpo $(DEPDIR)/enginetest-enginetest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='enginetest.cc' object='enginetest-enginetest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enginetest_CXXFLAGS) $(CXXFLAGS) -c -o enginetest-enginetest.obj `if test -f 'enginetest.cc'; then $(CYGPATH_W) 'enginetest.cc'; else $(CYGPATH_W) '$(srcdir)/enginetest.cc'; fi` imagecachetest-imagecachetest.o: imagecachetest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(imagecachetest_CXXFLAGS) $(CXXFLAGS) -MT imagecachetest-imagecachetest.o -MD -MP -MF $(DEPDIR)/imagecachetest-imagecachetest.Tpo -c -o imagecachetest-imagecachetest.o `test -f 'imagecachetest.cc' || echo '$(srcdir)/'`imagecachetest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/imagecachetest-imagecachetest.Tpo $(DEPDIR)/imagecachetest-imagecachetest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='imagecachetest.cc' object='imagecachetest-imagecachetest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(imagecachetest_CXXFLAGS) $(CXXFLAGS) -c -o imagecachetest-imagecachetest.o `test -f 'imagecachetest.cc' || echo '$(srcdir)/'`imagecachetest.cc imagecachetest-imagecachetest.obj: imagecachetest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(imagecachetest_CXXFLAGS) $(CXXFLAGS) -MT imagecachetest-imagecachetest.obj -MD -MP -MF $(DEPDIR)/imagecachetest-imagecachetest.Tpo -c -o imagecachetest-imagecachetest.obj `if test -f 'imagecachetest.cc'; then $(CYGPATH_W) 'imagecachetest.cc'; else $(CYGPATH_W) '$(srcdir)/imagecachetest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/imagecachetest-imagecachetest.Tpo $(DEPDIR)/imagecachetest-imagecachetest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='imagecachetest.cc' object='imagecachetest-imagecachetest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(imagecachetest_CXXFLAGS) $(CXXFLAGS) -c -o imagecachetest-imagecachetest.obj `if test -f 'imagecachetest.cc'; then $(CYGPATH_W) 'imagecachetest.cc'; else $(CYGPATH_W) '$(srcdir)/imagecachetest.cc'; fi` imagecachetest-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(imagecachetest_CXXFLAGS) $(CXXFLAGS) -MT imagecachetest-test.o -MD -MP -MF $(DEPDIR)/imagecachetest-test.Tpo -c -o imagecachetest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/imagecachetest-test.Tpo $(DEPDIR)/imagecachetest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='imagecachetest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(imagecachetest_CXXFLAGS) $(CXXFLAGS) -c -o imagecachetest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc imagecachetest-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(imagecachetest_CXXFLAGS) $(CXXFLAGS) -MT imagecachetest-test.obj -MD -MP -MF $(DEPDIR)/imagecachetest-test.Tpo -c -o imagecachetest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/imagecachetest-test.Tpo $(DEPDIR)/imagecachetest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='imagecachetest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(imagecachetest_CXXFLAGS) $(CXXFLAGS) -c -o imagecachetest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` lv2-random.o: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-random.o -MD -MP -MF $(DEPDIR)/lv2-random.Tpo -c -o lv2-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-random.Tpo $(DEPDIR)/lv2-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='lv2-random.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc lv2-random.obj: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-random.obj -MD -MP -MF $(DEPDIR)/lv2-random.Tpo -c -o lv2-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-random.Tpo $(DEPDIR)/lv2-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='lv2-random.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` lv2-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-test.o -MD -MP -MF $(DEPDIR)/lv2-test.Tpo -c -o lv2-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-test.Tpo $(DEPDIR)/lv2-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='lv2-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc lv2-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-test.obj -MD -MP -MF $(DEPDIR)/lv2-test.Tpo -c -o lv2-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-test.Tpo $(DEPDIR)/lv2-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='lv2-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` lv2-drumkit_creator.o: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-drumkit_creator.o -MD -MP -MF $(DEPDIR)/lv2-drumkit_creator.Tpo -c -o lv2-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-drumkit_creator.Tpo $(DEPDIR)/lv2-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='lv2-drumkit_creator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc lv2-drumkit_creator.obj: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-drumkit_creator.obj -MD -MP -MF $(DEPDIR)/lv2-drumkit_creator.Tpo -c -o lv2-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-drumkit_creator.Tpo $(DEPDIR)/lv2-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='lv2-drumkit_creator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` lv2-lv2_test_host.o: lv2_test_host.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-lv2_test_host.o -MD -MP -MF $(DEPDIR)/lv2-lv2_test_host.Tpo -c -o lv2-lv2_test_host.o `test -f 'lv2_test_host.cc' || echo '$(srcdir)/'`lv2_test_host.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-lv2_test_host.Tpo $(DEPDIR)/lv2-lv2_test_host.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='lv2_test_host.cc' object='lv2-lv2_test_host.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-lv2_test_host.o `test -f 'lv2_test_host.cc' || echo '$(srcdir)/'`lv2_test_host.cc lv2-lv2_test_host.obj: lv2_test_host.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-lv2_test_host.obj -MD -MP -MF $(DEPDIR)/lv2-lv2_test_host.Tpo -c -o lv2-lv2_test_host.obj `if test -f 'lv2_test_host.cc'; then $(CYGPATH_W) 'lv2_test_host.cc'; else $(CYGPATH_W) '$(srcdir)/lv2_test_host.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-lv2_test_host.Tpo $(DEPDIR)/lv2-lv2_test_host.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='lv2_test_host.cc' object='lv2-lv2_test_host.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-lv2_test_host.obj `if test -f 'lv2_test_host.cc'; then $(CYGPATH_W) 'lv2_test_host.cc'; else $(CYGPATH_W) '$(srcdir)/lv2_test_host.cc'; fi` lv2-lv2.o: lv2.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-lv2.o -MD -MP -MF $(DEPDIR)/lv2-lv2.Tpo -c -o lv2-lv2.o `test -f 'lv2.cc' || echo '$(srcdir)/'`lv2.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-lv2.Tpo $(DEPDIR)/lv2-lv2.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='lv2.cc' object='lv2-lv2.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-lv2.o `test -f 'lv2.cc' || echo '$(srcdir)/'`lv2.cc lv2-lv2.obj: lv2.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -MT lv2-lv2.obj -MD -MP -MF $(DEPDIR)/lv2-lv2.Tpo -c -o lv2-lv2.obj `if test -f 'lv2.cc'; then $(CYGPATH_W) 'lv2.cc'; else $(CYGPATH_W) '$(srcdir)/lv2.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lv2-lv2.Tpo $(DEPDIR)/lv2-lv2.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='lv2.cc' object='lv2-lv2.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lv2_CXXFLAGS) $(CXXFLAGS) -c -o lv2-lv2.obj `if test -f 'lv2.cc'; then $(CYGPATH_W) 'lv2.cc'; else $(CYGPATH_W) '$(srcdir)/lv2.cc'; fi` memchecker-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -MT memchecker-test.o -MD -MP -MF $(DEPDIR)/memchecker-test.Tpo -c -o memchecker-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/memchecker-test.Tpo $(DEPDIR)/memchecker-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='memchecker-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -c -o memchecker-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc memchecker-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -MT memchecker-test.obj -MD -MP -MF $(DEPDIR)/memchecker-test.Tpo -c -o memchecker-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/memchecker-test.Tpo $(DEPDIR)/memchecker-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='memchecker-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -c -o memchecker-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` memchecker-drumkit_creator.o: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -MT memchecker-drumkit_creator.o -MD -MP -MF $(DEPDIR)/memchecker-drumkit_creator.Tpo -c -o memchecker-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/memchecker-drumkit_creator.Tpo $(DEPDIR)/memchecker-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='memchecker-drumkit_creator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -c -o memchecker-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc memchecker-drumkit_creator.obj: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -MT memchecker-drumkit_creator.obj -MD -MP -MF $(DEPDIR)/memchecker-drumkit_creator.Tpo -c -o memchecker-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/memchecker-drumkit_creator.Tpo $(DEPDIR)/memchecker-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='memchecker-drumkit_creator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -c -o memchecker-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` memchecker-memcheckertest.o: memcheckertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -MT memchecker-memcheckertest.o -MD -MP -MF $(DEPDIR)/memchecker-memcheckertest.Tpo -c -o memchecker-memcheckertest.o `test -f 'memcheckertest.cc' || echo '$(srcdir)/'`memcheckertest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/memchecker-memcheckertest.Tpo $(DEPDIR)/memchecker-memcheckertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='memcheckertest.cc' object='memchecker-memcheckertest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -c -o memchecker-memcheckertest.o `test -f 'memcheckertest.cc' || echo '$(srcdir)/'`memcheckertest.cc memchecker-memcheckertest.obj: memcheckertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -MT memchecker-memcheckertest.obj -MD -MP -MF $(DEPDIR)/memchecker-memcheckertest.Tpo -c -o memchecker-memcheckertest.obj `if test -f 'memcheckertest.cc'; then $(CYGPATH_W) 'memcheckertest.cc'; else $(CYGPATH_W) '$(srcdir)/memcheckertest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/memchecker-memcheckertest.Tpo $(DEPDIR)/memchecker-memcheckertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='memcheckertest.cc' object='memchecker-memcheckertest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(memchecker_CXXFLAGS) $(CXXFLAGS) -c -o memchecker-memcheckertest.obj `if test -f 'memcheckertest.cc'; then $(CYGPATH_W) 'memcheckertest.cc'; else $(CYGPATH_W) '$(srcdir)/memcheckertest.cc'; fi` paintertest-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(paintertest_CXXFLAGS) $(CXXFLAGS) -MT paintertest-test.o -MD -MP -MF $(DEPDIR)/paintertest-test.Tpo -c -o paintertest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/paintertest-test.Tpo $(DEPDIR)/paintertest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='paintertest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(paintertest_CXXFLAGS) $(CXXFLAGS) -c -o paintertest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc paintertest-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(paintertest_CXXFLAGS) $(CXXFLAGS) -MT paintertest-test.obj -MD -MP -MF $(DEPDIR)/paintertest-test.Tpo -c -o paintertest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/paintertest-test.Tpo $(DEPDIR)/paintertest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='paintertest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(paintertest_CXXFLAGS) $(CXXFLAGS) -c -o paintertest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` paintertest-paintertest.o: paintertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(paintertest_CXXFLAGS) $(CXXFLAGS) -MT paintertest-paintertest.o -MD -MP -MF $(DEPDIR)/paintertest-paintertest.Tpo -c -o paintertest-paintertest.o `test -f 'paintertest.cc' || echo '$(srcdir)/'`paintertest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/paintertest-paintertest.Tpo $(DEPDIR)/paintertest-paintertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='paintertest.cc' object='paintertest-paintertest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(paintertest_CXXFLAGS) $(CXXFLAGS) -c -o paintertest-paintertest.o `test -f 'paintertest.cc' || echo '$(srcdir)/'`paintertest.cc paintertest-paintertest.obj: paintertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(paintertest_CXXFLAGS) $(CXXFLAGS) -MT paintertest-paintertest.obj -MD -MP -MF $(DEPDIR)/paintertest-paintertest.Tpo -c -o paintertest-paintertest.obj `if test -f 'paintertest.cc'; then $(CYGPATH_W) 'paintertest.cc'; else $(CYGPATH_W) '$(srcdir)/paintertest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/paintertest-paintertest.Tpo $(DEPDIR)/paintertest-paintertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='paintertest.cc' object='paintertest-paintertest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(paintertest_CXXFLAGS) $(CXXFLAGS) -c -o paintertest-paintertest.obj `if test -f 'paintertest.cc'; then $(CYGPATH_W) 'paintertest.cc'; else $(CYGPATH_W) '$(srcdir)/paintertest.cc'; fi` randomtest-random.o: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -MT randomtest-random.o -MD -MP -MF $(DEPDIR)/randomtest-random.Tpo -c -o randomtest-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/randomtest-random.Tpo $(DEPDIR)/randomtest-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='randomtest-random.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -c -o randomtest-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc randomtest-random.obj: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -MT randomtest-random.obj -MD -MP -MF $(DEPDIR)/randomtest-random.Tpo -c -o randomtest-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/randomtest-random.Tpo $(DEPDIR)/randomtest-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='randomtest-random.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -c -o randomtest-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` randomtest-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -MT randomtest-test.o -MD -MP -MF $(DEPDIR)/randomtest-test.Tpo -c -o randomtest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/randomtest-test.Tpo $(DEPDIR)/randomtest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='randomtest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -c -o randomtest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc randomtest-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -MT randomtest-test.obj -MD -MP -MF $(DEPDIR)/randomtest-test.Tpo -c -o randomtest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/randomtest-test.Tpo $(DEPDIR)/randomtest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='randomtest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -c -o randomtest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` randomtest-randomtest.o: randomtest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -MT randomtest-randomtest.o -MD -MP -MF $(DEPDIR)/randomtest-randomtest.Tpo -c -o randomtest-randomtest.o `test -f 'randomtest.cc' || echo '$(srcdir)/'`randomtest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/randomtest-randomtest.Tpo $(DEPDIR)/randomtest-randomtest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='randomtest.cc' object='randomtest-randomtest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -c -o randomtest-randomtest.o `test -f 'randomtest.cc' || echo '$(srcdir)/'`randomtest.cc randomtest-randomtest.obj: randomtest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -MT randomtest-randomtest.obj -MD -MP -MF $(DEPDIR)/randomtest-randomtest.Tpo -c -o randomtest-randomtest.obj `if test -f 'randomtest.cc'; then $(CYGPATH_W) 'randomtest.cc'; else $(CYGPATH_W) '$(srcdir)/randomtest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/randomtest-randomtest.Tpo $(DEPDIR)/randomtest-randomtest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='randomtest.cc' object='randomtest-randomtest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(randomtest_CXXFLAGS) $(CXXFLAGS) -c -o randomtest-randomtest.obj `if test -f 'randomtest.cc'; then $(CYGPATH_W) 'randomtest.cc'; else $(CYGPATH_W) '$(srcdir)/randomtest.cc'; fi` resampler-chresampler.o: $(top_srcdir)/src/chresampler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -MT resampler-chresampler.o -MD -MP -MF $(DEPDIR)/resampler-chresampler.Tpo -c -o resampler-chresampler.o `test -f '$(top_srcdir)/src/chresampler.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/chresampler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resampler-chresampler.Tpo $(DEPDIR)/resampler-chresampler.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/chresampler.cc' object='resampler-chresampler.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -c -o resampler-chresampler.o `test -f '$(top_srcdir)/src/chresampler.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/chresampler.cc resampler-chresampler.obj: $(top_srcdir)/src/chresampler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -MT resampler-chresampler.obj -MD -MP -MF $(DEPDIR)/resampler-chresampler.Tpo -c -o resampler-chresampler.obj `if test -f '$(top_srcdir)/src/chresampler.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/chresampler.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/chresampler.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resampler-chresampler.Tpo $(DEPDIR)/resampler-chresampler.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/chresampler.cc' object='resampler-chresampler.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -c -o resampler-chresampler.obj `if test -f '$(top_srcdir)/src/chresampler.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/chresampler.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/chresampler.cc'; fi` resampler-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -MT resampler-test.o -MD -MP -MF $(DEPDIR)/resampler-test.Tpo -c -o resampler-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resampler-test.Tpo $(DEPDIR)/resampler-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='resampler-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -c -o resampler-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc resampler-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -MT resampler-test.obj -MD -MP -MF $(DEPDIR)/resampler-test.Tpo -c -o resampler-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resampler-test.Tpo $(DEPDIR)/resampler-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='resampler-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -c -o resampler-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` resampler-resampler.o: resampler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -MT resampler-resampler.o -MD -MP -MF $(DEPDIR)/resampler-resampler.Tpo -c -o resampler-resampler.o `test -f 'resampler.cc' || echo '$(srcdir)/'`resampler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resampler-resampler.Tpo $(DEPDIR)/resampler-resampler.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resampler.cc' object='resampler-resampler.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -c -o resampler-resampler.o `test -f 'resampler.cc' || echo '$(srcdir)/'`resampler.cc resampler-resampler.obj: resampler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -MT resampler-resampler.obj -MD -MP -MF $(DEPDIR)/resampler-resampler.Tpo -c -o resampler-resampler.obj `if test -f 'resampler.cc'; then $(CYGPATH_W) 'resampler.cc'; else $(CYGPATH_W) '$(srcdir)/resampler.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resampler-resampler.Tpo $(DEPDIR)/resampler-resampler.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resampler.cc' object='resampler-resampler.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resampler_CXXFLAGS) $(CXXFLAGS) -c -o resampler-resampler.obj `if test -f 'resampler.cc'; then $(CYGPATH_W) 'resampler.cc'; else $(CYGPATH_W) '$(srcdir)/resampler.cc'; fi` resource-resource.o: $(top_srcdir)/plugingui/resource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-resource.o -MD -MP -MF $(DEPDIR)/resource-resource.Tpo -c -o resource-resource.o `test -f '$(top_srcdir)/plugingui/resource.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugingui/resource.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-resource.Tpo $(DEPDIR)/resource-resource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugingui/resource.cc' object='resource-resource.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-resource.o `test -f '$(top_srcdir)/plugingui/resource.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugingui/resource.cc resource-resource.obj: $(top_srcdir)/plugingui/resource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-resource.obj -MD -MP -MF $(DEPDIR)/resource-resource.Tpo -c -o resource-resource.obj `if test -f '$(top_srcdir)/plugingui/resource.cc'; then $(CYGPATH_W) '$(top_srcdir)/plugingui/resource.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/plugingui/resource.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-resource.Tpo $(DEPDIR)/resource-resource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugingui/resource.cc' object='resource-resource.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-resource.obj `if test -f '$(top_srcdir)/plugingui/resource.cc'; then $(CYGPATH_W) '$(top_srcdir)/plugingui/resource.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/plugingui/resource.cc'; fi` resource-resource_data.o: $(top_srcdir)/plugingui/resource_data.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-resource_data.o -MD -MP -MF $(DEPDIR)/resource-resource_data.Tpo -c -o resource-resource_data.o `test -f '$(top_srcdir)/plugingui/resource_data.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugingui/resource_data.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-resource_data.Tpo $(DEPDIR)/resource-resource_data.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugingui/resource_data.cc' object='resource-resource_data.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-resource_data.o `test -f '$(top_srcdir)/plugingui/resource_data.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugingui/resource_data.cc resource-resource_data.obj: $(top_srcdir)/plugingui/resource_data.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-resource_data.obj -MD -MP -MF $(DEPDIR)/resource-resource_data.Tpo -c -o resource-resource_data.obj `if test -f '$(top_srcdir)/plugingui/resource_data.cc'; then $(CYGPATH_W) '$(top_srcdir)/plugingui/resource_data.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/plugingui/resource_data.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-resource_data.Tpo $(DEPDIR)/resource-resource_data.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugingui/resource_data.cc' object='resource-resource_data.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-resource_data.obj `if test -f '$(top_srcdir)/plugingui/resource_data.cc'; then $(CYGPATH_W) '$(top_srcdir)/plugingui/resource_data.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/plugingui/resource_data.cc'; fi` resource-random.o: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-random.o -MD -MP -MF $(DEPDIR)/resource-random.Tpo -c -o resource-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-random.Tpo $(DEPDIR)/resource-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='resource-random.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-random.o `test -f '$(top_srcdir)/src/random.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/random.cc resource-random.obj: $(top_srcdir)/src/random.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-random.obj -MD -MP -MF $(DEPDIR)/resource-random.Tpo -c -o resource-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-random.Tpo $(DEPDIR)/resource-random.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/random.cc' object='resource-random.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-random.obj `if test -f '$(top_srcdir)/src/random.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/random.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/random.cc'; fi` resource-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-test.o -MD -MP -MF $(DEPDIR)/resource-test.Tpo -c -o resource-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-test.Tpo $(DEPDIR)/resource-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='resource-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc resource-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-test.obj -MD -MP -MF $(DEPDIR)/resource-test.Tpo -c -o resource-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-test.Tpo $(DEPDIR)/resource-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='resource-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` resource-drumkit_creator.o: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-drumkit_creator.o -MD -MP -MF $(DEPDIR)/resource-drumkit_creator.Tpo -c -o resource-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-drumkit_creator.Tpo $(DEPDIR)/resource-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='resource-drumkit_creator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-drumkit_creator.o `test -f 'drumkit_creator.cc' || echo '$(srcdir)/'`drumkit_creator.cc resource-drumkit_creator.obj: drumkit_creator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-drumkit_creator.obj -MD -MP -MF $(DEPDIR)/resource-drumkit_creator.Tpo -c -o resource-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-drumkit_creator.Tpo $(DEPDIR)/resource-drumkit_creator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkit_creator.cc' object='resource-drumkit_creator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-drumkit_creator.obj `if test -f 'drumkit_creator.cc'; then $(CYGPATH_W) 'drumkit_creator.cc'; else $(CYGPATH_W) '$(srcdir)/drumkit_creator.cc'; fi` resource-resource_test.o: resource_test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-resource_test.o -MD -MP -MF $(DEPDIR)/resource-resource_test.Tpo -c -o resource-resource_test.o `test -f 'resource_test.cc' || echo '$(srcdir)/'`resource_test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-resource_test.Tpo $(DEPDIR)/resource-resource_test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resource_test.cc' object='resource-resource_test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-resource_test.o `test -f 'resource_test.cc' || echo '$(srcdir)/'`resource_test.cc resource-resource_test.obj: resource_test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -MT resource-resource_test.obj -MD -MP -MF $(DEPDIR)/resource-resource_test.Tpo -c -o resource-resource_test.obj `if test -f 'resource_test.cc'; then $(CYGPATH_W) 'resource_test.cc'; else $(CYGPATH_W) '$(srcdir)/resource_test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resource-resource_test.Tpo $(DEPDIR)/resource-resource_test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resource_test.cc' object='resource-resource_test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resource_CXXFLAGS) $(CXXFLAGS) -c -o resource-resource_test.obj `if test -f 'resource_test.cc'; then $(CYGPATH_W) 'resource_test.cc'; else $(CYGPATH_W) '$(srcdir)/resource_test.cc'; fi` semaphoretest-semaphore.o: $(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -MT semaphoretest-semaphore.o -MD -MP -MF $(DEPDIR)/semaphoretest-semaphore.Tpo -c -o semaphoretest-semaphore.o `test -f '$(top_srcdir)/src/semaphore.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/semaphoretest-semaphore.Tpo $(DEPDIR)/semaphoretest-semaphore.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/semaphore.cc' object='semaphoretest-semaphore.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -c -o semaphoretest-semaphore.o `test -f '$(top_srcdir)/src/semaphore.cc' || echo '$(srcdir)/'`$(top_srcdir)/src/semaphore.cc semaphoretest-semaphore.obj: $(top_srcdir)/src/semaphore.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -MT semaphoretest-semaphore.obj -MD -MP -MF $(DEPDIR)/semaphoretest-semaphore.Tpo -c -o semaphoretest-semaphore.obj `if test -f '$(top_srcdir)/src/semaphore.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/semaphore.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/semaphore.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/semaphoretest-semaphore.Tpo $(DEPDIR)/semaphoretest-semaphore.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/src/semaphore.cc' object='semaphoretest-semaphore.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -c -o semaphoretest-semaphore.obj `if test -f '$(top_srcdir)/src/semaphore.cc'; then $(CYGPATH_W) '$(top_srcdir)/src/semaphore.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/semaphore.cc'; fi` semaphoretest-semaphoretest.o: semaphoretest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -MT semaphoretest-semaphoretest.o -MD -MP -MF $(DEPDIR)/semaphoretest-semaphoretest.Tpo -c -o semaphoretest-semaphoretest.o `test -f 'semaphoretest.cc' || echo '$(srcdir)/'`semaphoretest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/semaphoretest-semaphoretest.Tpo $(DEPDIR)/semaphoretest-semaphoretest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='semaphoretest.cc' object='semaphoretest-semaphoretest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -c -o semaphoretest-semaphoretest.o `test -f 'semaphoretest.cc' || echo '$(srcdir)/'`semaphoretest.cc semaphoretest-semaphoretest.obj: semaphoretest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -MT semaphoretest-semaphoretest.obj -MD -MP -MF $(DEPDIR)/semaphoretest-semaphoretest.Tpo -c -o semaphoretest-semaphoretest.obj `if test -f 'semaphoretest.cc'; then $(CYGPATH_W) 'semaphoretest.cc'; else $(CYGPATH_W) '$(srcdir)/semaphoretest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/semaphoretest-semaphoretest.Tpo $(DEPDIR)/semaphoretest-semaphoretest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='semaphoretest.cc' object='semaphoretest-semaphoretest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -c -o semaphoretest-semaphoretest.obj `if test -f 'semaphoretest.cc'; then $(CYGPATH_W) 'semaphoretest.cc'; else $(CYGPATH_W) '$(srcdir)/semaphoretest.cc'; fi` semaphoretest-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -MT semaphoretest-test.o -MD -MP -MF $(DEPDIR)/semaphoretest-test.Tpo -c -o semaphoretest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/semaphoretest-test.Tpo $(DEPDIR)/semaphoretest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='semaphoretest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -c -o semaphoretest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc semaphoretest-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -MT semaphoretest-test.obj -MD -MP -MF $(DEPDIR)/semaphoretest-test.Tpo -c -o semaphoretest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/semaphoretest-test.Tpo $(DEPDIR)/semaphoretest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='semaphoretest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(semaphoretest_CXXFLAGS) $(CXXFLAGS) -c -o semaphoretest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` syncedsettingstest-syncedsettings.o: syncedsettings.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syncedsettingstest_CXXFLAGS) $(CXXFLAGS) -MT syncedsettingstest-syncedsettings.o -MD -MP -MF $(DEPDIR)/syncedsettingstest-syncedsettings.Tpo -c -o syncedsettingstest-syncedsettings.o `test -f 'syncedsettings.cc' || echo '$(srcdir)/'`syncedsettings.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/syncedsettingstest-syncedsettings.Tpo $(DEPDIR)/syncedsettingstest-syncedsettings.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='syncedsettings.cc' object='syncedsettingstest-syncedsettings.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syncedsettingstest_CXXFLAGS) $(CXXFLAGS) -c -o syncedsettingstest-syncedsettings.o `test -f 'syncedsettings.cc' || echo '$(srcdir)/'`syncedsettings.cc syncedsettingstest-syncedsettings.obj: syncedsettings.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syncedsettingstest_CXXFLAGS) $(CXXFLAGS) -MT syncedsettingstest-syncedsettings.obj -MD -MP -MF $(DEPDIR)/syncedsettingstest-syncedsettings.Tpo -c -o syncedsettingstest-syncedsettings.obj `if test -f 'syncedsettings.cc'; then $(CYGPATH_W) 'syncedsettings.cc'; else $(CYGPATH_W) '$(srcdir)/syncedsettings.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/syncedsettingstest-syncedsettings.Tpo $(DEPDIR)/syncedsettingstest-syncedsettings.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='syncedsettings.cc' object='syncedsettingstest-syncedsettings.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syncedsettingstest_CXXFLAGS) $(CXXFLAGS) -c -o syncedsettingstest-syncedsettings.obj `if test -f 'syncedsettings.cc'; then $(CYGPATH_W) 'syncedsettings.cc'; else $(CYGPATH_W) '$(srcdir)/syncedsettings.cc'; fi` syncedsettingstest-test.o: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syncedsettingstest_CXXFLAGS) $(CXXFLAGS) -MT syncedsettingstest-test.o -MD -MP -MF $(DEPDIR)/syncedsettingstest-test.Tpo -c -o syncedsettingstest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/syncedsettingstest-test.Tpo $(DEPDIR)/syncedsettingstest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='syncedsettingstest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syncedsettingstest_CXXFLAGS) $(CXXFLAGS) -c -o syncedsettingstest-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc syncedsettingstest-test.obj: test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syncedsettingstest_CXXFLAGS) $(CXXFLAGS) -MT syncedsettingstest-test.obj -MD -MP -MF $(DEPDIR)/syncedsettingstest-test.Tpo -c -o syncedsettingstest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/syncedsettingstest-test.Tpo $(DEPDIR)/syncedsettingstest-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test.cc' object='syncedsettingstest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syncedsettingstest_CXXFLAGS) $(CXXFLAGS) -c -o syncedsettingstest-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi` 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 # Recover from deleted '.trs' file; this should ensure that # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells # to avoid problems with "make -n". .log.trs: rm -f $< $@ $(MAKE) $(AM_MAKEFLAGS) $< # Leading 'am--fnord' is there to ensure the list of targets does not # expand to empty, as could happen e.g. with make check TESTS=''. am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) am--force-recheck: @: $(TEST_SUITE_LOG): $(TEST_LOGS) @$(am__set_TESTS_bases); \ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ redo_bases=`for i in $$bases; do \ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ done`; \ if test -n "$$redo_bases"; then \ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ if $(am__make_dryrun); then :; else \ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ fi; \ fi; \ if test -n "$$am__remaking_logs"; then \ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ "recursion detected" >&2; \ else \ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ fi; \ if $(am__make_dryrun); then :; else \ st=0; \ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ for i in $$redo_bases; do \ test -f $$i.trs && test -r $$i.trs \ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ test -f $$i.log && test -r $$i.log \ || { echo "$$errmsg $$i.log" >&2; st=1; }; \ done; \ test $$st -eq 0 || exit 1; \ fi @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ ws='[ ]'; \ results=`for b in $$bases; do echo $$b.trs; done`; \ test -n "$$results" || results=/dev/null; \ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ if test `expr $$fail + $$xpass + $$error` -eq 0; then \ success=true; \ else \ success=false; \ fi; \ br='==================='; br=$$br$$br$$br$$br; \ result_count () \ { \ if test x"$$1" = x"--maybe-color"; then \ maybe_colorize=yes; \ elif test x"$$1" = x"--no-color"; then \ maybe_colorize=no; \ else \ echo "$@: invalid 'result_count' usage" >&2; exit 4; \ fi; \ shift; \ desc=$$1 count=$$2; \ if test $$maybe_colorize = yes && test $$count -gt 0; then \ color_start=$$3 color_end=$$std; \ else \ color_start= color_end=; \ fi; \ echo "$${color_start}# $$desc $$count$${color_end}"; \ }; \ create_testsuite_report () \ { \ result_count $$1 "TOTAL:" $$all "$$brg"; \ result_count $$1 "PASS: " $$pass "$$grn"; \ result_count $$1 "SKIP: " $$skip "$$blu"; \ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ result_count $$1 "FAIL: " $$fail "$$red"; \ result_count $$1 "XPASS:" $$xpass "$$red"; \ result_count $$1 "ERROR:" $$error "$$mgn"; \ }; \ { \ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ $(am__rst_title); \ create_testsuite_report --no-color; \ echo; \ echo ".. contents:: :depth: 2"; \ echo; \ for b in $$bases; do echo $$b; done \ | $(am__create_global_log); \ } >$(TEST_SUITE_LOG).tmp || exit 1; \ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ if $$success; then \ col="$$grn"; \ else \ col="$$red"; \ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ fi; \ echo "$${col}$$br$${std}"; \ echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ echo "$${col}$$br$${std}"; \ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ if $$success; then :; else \ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ if test -n "$(PACKAGE_BUGREPORT)"; then \ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ fi; \ echo "$$col$$br$$std"; \ fi; \ $$success || exit 1 check-TESTS: @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ log_list=`for i in $$bases; do echo $$i.log; done`; \ trs_list=`for i in $$bases; do echo $$i.trs; done`; \ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ exit $$?; recheck: all $(check_PROGRAMS) @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ bases=`for i in $$bases; do echo $$i; done \ | $(am__list_recheck_tests)` || exit 1; \ log_list=`for i in $$bases; do echo $$i.log; done`; \ log_list=`echo $$log_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ am__force_recheck=am--force-recheck \ TEST_LOGS="$$log_list"; \ exit $$? resource.log: resource$(EXEEXT) @p='resource$(EXEEXT)'; \ b='resource'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) enginetest.log: enginetest$(EXEEXT) @p='enginetest$(EXEEXT)'; \ b='enginetest'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) paintertest.log: paintertest$(EXEEXT) @p='paintertest$(EXEEXT)'; \ b='paintertest'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) resampler.log: resampler$(EXEEXT) @p='resampler$(EXEEXT)'; \ b='resampler'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) configfile.log: configfile$(EXEEXT) @p='configfile$(EXEEXT)'; \ b='configfile'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) audiocache.log: audiocache$(EXEEXT) @p='audiocache$(EXEEXT)'; \ b='audiocache'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) audiocachefile.log: audiocachefile$(EXEEXT) @p='audiocachefile$(EXEEXT)'; \ b='audiocachefile'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) audiocacheidmanager.log: audiocacheidmanager$(EXEEXT) @p='audiocacheidmanager$(EXEEXT)'; \ b='audiocacheidmanager'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) audiocacheeventhandler.log: audiocacheeventhandler$(EXEEXT) @p='audiocacheeventhandler$(EXEEXT)'; \ b='audiocacheeventhandler'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) memchecker.log: memchecker$(EXEEXT) @p='memchecker$(EXEEXT)'; \ b='memchecker'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) randomtest.log: randomtest$(EXEEXT) @p='randomtest$(EXEEXT)'; \ b='randomtest'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) atomictest.log: atomictest$(EXEEXT) @p='atomictest$(EXEEXT)'; \ b='atomictest'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) syncedsettingstest.log: syncedsettingstest$(EXEEXT) @p='syncedsettingstest$(EXEEXT)'; \ b='syncedsettingstest'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) imagecachetest.log: imagecachetest$(EXEEXT) @p='imagecachetest$(EXEEXT)'; \ b='imagecachetest'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) semaphoretest.log: semaphoretest$(EXEEXT) @p='semaphoretest$(EXEEXT)'; \ b='semaphoretest'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) drumkitcreatortest.log: drumkitcreatortest$(EXEEXT) @p='drumkitcreatortest$(EXEEXT)'; \ b='drumkitcreatortest'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) bytesizeparsertest.log: bytesizeparsertest$(EXEEXT) @p='bytesizeparsertest$(EXEEXT)'; \ b='bytesizeparsertest'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) lv2.log: lv2$(EXEEXT) @p='lv2$(EXEEXT)'; \ b='lv2'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) .test.log: @p='$<'; \ $(am__set_b); \ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) @am__EXEEXT_TRUE@.test$(EXEEXT).log: @am__EXEEXT_TRUE@ @p='$<'; \ @am__EXEEXT_TRUE@ $(am__set_b); \ @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) 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 $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS 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: -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) 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." clean: clean-recursive clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile 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 -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) check-am install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-TESTS check-am clean clean-checkPROGRAMS 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-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-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am recheck 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: drumgizmo-0.9.14/test/audiocachefiletest.cc0000644000076400017500000001352413077120604015667 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * audiocachefiletest.cc * * Thu Jan 7 15:43:12 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include "drumkit_creator.h" class TestableAudioCacheFiles : public AudioCacheFiles { public: //CacheAudioFile& getAudioFile(const std::string& filename); //void release(const std::string& filename); int getRef(const std::string& filename) { auto it = audiofiles.find(filename); if(it == audiofiles.end()) { return -1; } return (it->second).ref; } }; class AudioCacheFileTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(AudioCacheFileTest); CPPUNIT_TEST(refTest); CPPUNIT_TEST(readTest); CPPUNIT_TEST(noFileTest); CPPUNIT_TEST_SUITE_END(); DrumkitCreator drumkit_creator; public: void setUp() {} void tearDown() {} void refTest() { // Create the audio file auto filename = drumkit_creator.createSingleChannelWav("single_channel.wav"); // Conduct tests TestableAudioCacheFiles audiofiles; CPPUNIT_ASSERT_EQUAL(-1, audiofiles.getRef(filename)); audiofiles.getFile(filename); CPPUNIT_ASSERT_EQUAL(1, audiofiles.getRef(filename)); audiofiles.getFile(filename); CPPUNIT_ASSERT_EQUAL(2, audiofiles.getRef(filename)); audiofiles.releaseFile(filename); CPPUNIT_ASSERT_EQUAL(1, audiofiles.getRef(filename)); audiofiles.releaseFile(filename); CPPUNIT_ASSERT_EQUAL(-1, audiofiles.getRef(filename)); } void readTestHelper(size_t buffer_size) { printf("Test buffer size: %d samples\n", (int)buffer_size); // Create the audio file auto filename = drumkit_creator.createMultiChannelWav("multi_channel.wav"); // Conduct tests AudioFile* ref_file[13]; for(size_t c = 0; c < 13; ++c) { ref_file[c] = new AudioFile(filename, c); ref_file[c]->load(); } std::vector read_buffer; AudioCacheFile file(filename, read_buffer); CPPUNIT_ASSERT_EQUAL(filename, file.getFilename()); CPPUNIT_ASSERT_EQUAL(13, (int)file.getChannelCount()); // Sanity check CacheChannels channels; sample_t samples[13][buffer_size]; volatile bool ready[13]; for(size_t c = 0; c < 13; ++c) { for(size_t i = 0; i < buffer_size; ++i) { samples[c][i] = 42; } channels.push_back( { c, // channel samples[c], // samples buffer_size, // max_num_samples &ready[c] // ready } ); } for(size_t offset = 0; offset < file.getSize(); offset += buffer_size) { for(size_t c = 0; c < 13; ++c) { ready[c] = false; } size_t read_size = file.getSize() - offset; if(read_size > buffer_size) { read_size = buffer_size; } else { printf("Last read: %d samples\n", (int)read_size); } file.readChunk(channels, offset, read_size); for(size_t c = 0; c < 13; ++c) { CPPUNIT_ASSERT_EQUAL(true, ready[c]?true:false); } sample_t diff[13] = {0.0}; for(size_t c = 0; c < 13; ++c) { for(size_t i = 0; i < read_size; ++i) { diff[c] += abs((long)(ref_file[c]->data[i + offset] - samples[c][i])); } } for(int c = 0; c < 13; ++c) { CPPUNIT_ASSERT_EQUAL((sample_t)0.0, diff[c]); } } for(size_t c = 0; c < 13; ++c) { delete ref_file[c]; } } void readTest() { // Exhaustive test for 1...64 for(size_t buffer_size = 1; buffer_size < 64; ++buffer_size) { readTestHelper(buffer_size); } // Binary test for 64 .. 4096 for(size_t buffer_size = 64; buffer_size < 4096; buffer_size *= 2) { readTestHelper(buffer_size); } // And some sporadic tests for some "wierd" sizes. for(size_t buffer_size = 65; buffer_size < 4096; buffer_size *= 1.1) { readTestHelper(buffer_size); } } void noFileTest() { size_t buffer_size = 64; std::string filename = "kits/no-such-file.wav"; std::vector read_buffer; AudioCacheFile file(filename, read_buffer); CPPUNIT_ASSERT_EQUAL(filename, file.getFilename()); CPPUNIT_ASSERT_EQUAL(0u, (unsigned int)file.getSize()); CPPUNIT_ASSERT_EQUAL(0u, (unsigned int)file.getChannelCount()); CacheChannels channels; sample_t samples[13][buffer_size]; volatile bool ready[13]; for(size_t c = 0; c < 13; ++c) { for(size_t i = 0; i < buffer_size; ++i) { samples[c][i] = 42.0f; } channels.push_back( { c, // channel samples[c], // samples buffer_size, // max_num_samples &ready[c] // ready } ); } for(size_t c = 0; c < 13; ++c) { ready[c] = false; } file.readChunk(channels, 0, buffer_size); for(size_t c = 0; c < 13; ++c) { CPPUNIT_ASSERT_EQUAL(false, ready[c]?true:false); } for(size_t c = 0; c < 13; ++c) { for(size_t i = 0; i < buffer_size; ++i) { CPPUNIT_ASSERT_EQUAL(42.0f, samples[c][i]); } } } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(AudioCacheFileTest); drumgizmo-0.9.14/test/lv2_test_host.h0000644000076400017500000000374713076176503014521 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * lv2_test_host.h * * Wed Feb 11 23:11:20 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include class LV2TestHost { public: class Sequence { public: Sequence(void *buffer, size_t buffer_size); void clear(); void addMidiNote(uint64_t pos, uint8_t key, int8_t velocity); void *data(); private: void *buffer; size_t buffer_size; LV2_Atom_Sequence *seq; }; LV2TestHost(const char *lv2_path); ~LV2TestHost(); int open(const char *plugin_uri); int close(); int verify(); //void getMetadata(); //int getPorts(); int createInstance(size_t samplerate); int destroyInstance(); int connectPort(int port, void *portdata); int activate(); int deactivate(); int loadConfig(const char *config, size_t size); int run(int num_samples); private: LilvWorld* world; const LilvPlugins* plugins; LilvNode* uri; const LilvPlugin* plugin; LilvInstance* instance; }; drumgizmo-0.9.14/test/uitests/0000755000076400017500000000000013106063422013303 500000000000000drumgizmo-0.9.14/test/uitests/framewidgettest.cc0000644000076400017500000001042713103352277016742 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * framewidgettest.cc * * Sat Feb 11 23:36:04 CET 2017 * Copyright 2017 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #include #include #include #include #include #include // TODO: fix segfault on close class Widget1 : public GUI::Widget { public: Widget1(GUI::Widget* parent) : GUI::Widget(parent) { layout.setResizeChildren(true); layout.setHAlignment(GUI::HAlignment::center); label1.setText("Label1"); label1.setAlignment(GUI::TextAlignment::left); layout.addItem(&label1); label2.setText("Label2"); label2.setAlignment(GUI::TextAlignment::center); layout.addItem(&label2); label3.setText("Label3"); label3.setAlignment(GUI::TextAlignment::right); layout.addItem(&label3); } private: GUI::VBoxLayout layout{this}; GUI::Label label1{this}; GUI::Label label2{this}; GUI::Label label3{this}; }; class Widget2 : public GUI::Widget { public: Widget2(GUI::Widget* parent) : GUI::Widget(parent) { layout.setSpacing(10); layout.setResizeChildren(true); layout.setVAlignment(GUI::VAlignment::top); label1.setText("Label1"); label1.setAlignment(GUI::TextAlignment::right); layout.addItem(&label1); label2.setText("Label2"); label2.setAlignment(GUI::TextAlignment::left); layout.addItem(&label2); layout.addItem(&checkbox); } private: GUI::HBoxLayout layout{this}; GUI::Label label1{this}; GUI::Label label2{this}; GUI::CheckBox checkbox{this}; }; class TestWindow : public GUI::Window { public: TestWindow() : GUI::Window(nullptr) { setCaption("FrameWidgetTest Window"); CONNECT(eventHandler(), closeNotifier, this, &TestWindow::closeEventHandler); CONNECT(this, sizeChangeNotifier, this, &TestWindow::sizeChanged); layout.setSpacing(10); layout.setResizeChildren(true); layout.setHAlignment(GUI::HAlignment::center); layout.addItem(&frame1); layout.addItem(&frame2); layout.addItem(&frame3); layout.addItem(&frame4); frame1.setTitle("Frame 1 Title"); frame2.setTitle("Frame 2 Title"); frame3.setTitle("Frame 3 Title"); frame4.setTitle("Frame 4 Title"); frame1.setContent(&w1_1); frame2.setContent(&w1_2); frame3.setContent(&w2_1); frame4.setContent(&w2_2); } void sizeChanged(std::size_t width, std::size_t height) { // TODO: Do we have to do anything here? } void closeEventHandler() { closing = true; } bool processEvents() { eventHandler()->processEvents(); return !closing; } void repaintEvent(GUI::RepaintEvent* repaintEvent) override { GUI::Painter painter(*this); painter.setColour(GUI::Colour(0.85)); painter.drawFilledRectangle(0, 0, width() - 1, height() - 1); } private: bool closing{false}; GUI::VBoxLayout layout{this}; GUI::FrameWidget frame1{this, true}; GUI::FrameWidget frame2{this, false}; GUI::FrameWidget frame3{this, true}; GUI::FrameWidget frame4{this, false}; Widget1 w1_1{this}; Widget1 w1_2{this}; Widget2 w2_1{this}; Widget2 w2_2{this}; }; int main() { INFO(example, "We are up and running"); TestWindow test_window; test_window.show(); test_window.resize(300, 300); while(test_window.processEvents()) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); } return 0; } drumgizmo-0.9.14/test/uitests/Makefile.am0000644000076400017500000000200213077120604015254 00000000000000noinst_PROGRAMS = resizetest tabwidgettest framewidgettest \ filebrowsertest resizetest_LDADD = $(top_srcdir)/plugingui/libdggui.la resizetest_CXXFLAGS = \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin resizetest_SOURCES = \ resizetest.cc \ $(top_srcdir)/hugin/hugin.c tabwidgettest_LDADD = $(top_srcdir)/plugingui/libdggui.la tabwidgettest_CXXFLAGS = \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin tabwidgettest_SOURCES = \ tabwidgettest.cc \ $(top_srcdir)/hugin/hugin.c filebrowsertest_LDADD = $(top_srcdir)/plugingui/libdggui.la filebrowsertest_CXXFLAGS = \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin filebrowsertest_SOURCES = \ filebrowsertest.cc \ $(top_srcdir)/hugin/hugin.c framewidgettest_LDADD = $(top_srcdir)/plugingui/libdggui.la framewidgettest_CXXFLAGS = \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin framewidgettest_SOURCES = \ framewidgettest.cc \ $(top_srcdir)/hugin/hugin.c drumgizmo-0.9.14/test/uitests/resizetest.cc0000644000076400017500000000733113103352140015732 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * resizetest.cc * * Sun Feb 5 20:05:24 CET 2017 * Copyright 2017 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #include #include class TestWindow : public GUI::Window { public: TestWindow() : GUI::Window(nullptr) { setCaption("ResizeTest Window"); CONNECT(eventHandler(), closeNotifier, this, &TestWindow::closeEventHandler); CONNECT(this, sizeChangeNotifier, this, &TestWindow::sizeChanged); CONNECT(this, positionChangeNotifier, this, &TestWindow::positionChanged); } void sizeChanged(std::size_t width, std::size_t height) { reportedSize = std::make_pair(width, height); repaintEvent(nullptr); } void positionChanged(int x, int y) { reportedPosition = std::make_pair(x, y); repaintEvent(nullptr); } void closeEventHandler() { closing = true; } bool processEvents() { eventHandler()->processEvents(); return !closing; } void repaintEvent(GUI::RepaintEvent* repaintEvent) { GUI::Painter painter(*this); //painter.clear(); painter.setColour(GUI::Colour(0,1,0)); painter.drawFilledRectangle(0, 0, width(), height()); auto currentSize = std::make_pair(width(), height()); auto currentPosition = std::make_pair(x(), y()); { painter.setColour(GUI::Colour(1,0,0)); char str[64]; sprintf(str, "reported: (%d, %d); (%d, %d)", (int)reportedPosition.first, (int)reportedPosition.second, (int)reportedSize.first, (int)reportedSize.second); auto stringWidth = font.textWidth(str); auto stringHeight = font.textHeight(str); painter.drawText(reportedSize.first / 2 - stringWidth / 2, reportedSize.second / 2 + stringHeight / 2 - 7, font, str, false); } { painter.setColour(GUI::Colour(1,0,0)); char str[64]; sprintf(str, "current: (%d, %d); (%d, %d)", (int)currentPosition.first, (int)currentPosition.second, (int)currentSize.first, (int)currentSize.second); auto stringWidth = font.textWidth(str); auto stringHeight = font.textHeight(str); painter.drawText(currentSize.first / 2 - stringWidth / 2, currentSize.second / 2 + stringHeight / 2 + 7, font, str, false); } } private: bool closing{false}; GUI::Font font{":font.png"}; std::pair reportedSize; std::pair reportedPosition; }; int main() { INFO(example, "We are up and running"); TestWindow test_window; test_window.show(); test_window.resize(300,300); while(test_window.processEvents()) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); } return 0; } drumgizmo-0.9.14/test/uitests/tabwidgettest.cc0000644000076400017500000000676413103352150016415 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * tabwidgettest.cc * * Thu Feb 9 19:20:06 CET 2017 * Copyright 2017 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #include #include #include #include #include class Widget1 : public GUI::Widget { public: Widget1(GUI::Widget* parent) : GUI::Widget(parent) { layout.setResizeChildren(true); layout.setHAlignment(GUI::HAlignment::center); label1.setText("Label1"); label1.setAlignment(GUI::TextAlignment::left); layout.addItem(&label1); label2.setText("Label2"); label2.setAlignment(GUI::TextAlignment::center); layout.addItem(&label2); label3.setText("Label3"); label3.setAlignment(GUI::TextAlignment::right); layout.addItem(&label3); } private: GUI::VBoxLayout layout{this}; GUI::Label label1{this}; GUI::Label label2{this}; GUI::Label label3{this}; }; class Widget2 : public GUI::Button { public: Widget2(GUI::Widget* parent) : GUI::Button(parent) { setText("Widget2"); } }; class Widget3 : public GUI::Widget { public: Widget3(GUI::Widget* parent) : GUI::Widget(parent) { label.move(100, 80); label.resize(100, 20); label.setText("Widget3"); } private: GUI::Label label{this}; }; class TestWindow : public GUI::Window { public: TestWindow() : GUI::Window(nullptr) { setCaption("TabWidgetTest Window"); CONNECT(eventHandler(), closeNotifier, this, &TestWindow::closeEventHandler); CONNECT(this, sizeChangeNotifier, this, &TestWindow::sizeChanged); tabs.move(0, 0); tabs.addTab("Tab1", &widget1); tabs.addTab("Tab2", &widget2); tabs.addTab("Tab3", &widget3); } void sizeChanged(std::size_t width, std::size_t height) { tabs.resize(this->width(), this->height()); } void closeEventHandler() { closing = true; } bool processEvents() { eventHandler()->processEvents(); return !closing; } void repaintEvent(GUI::RepaintEvent* repaintEvent) override { GUI::Painter painter(*this); painter.setColour(GUI::Colour(0.85)); painter.drawFilledRectangle(0, 0, width() - 1, height() - 1); } private: bool closing{false}; GUI::TabWidget tabs{this}; Widget1 widget1{this}; Widget2 widget2{this}; Widget3 widget3{this}; }; int main() { INFO(example, "We are up and running"); TestWindow test_window; test_window.show(); test_window.resize(300,300); while(test_window.processEvents()) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); } return 0; } drumgizmo-0.9.14/test/uitests/Makefile.in0000644000076400017500000010336013106051611015270 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@ noinst_PROGRAMS = resizetest$(EXEEXT) tabwidgettest$(EXEEXT) \ framewidgettest$(EXEEXT) filebrowsertest$(EXEEXT) subdir = test/uitests DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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 = PROGRAMS = $(noinst_PROGRAMS) am_filebrowsertest_OBJECTS = \ filebrowsertest-filebrowsertest.$(OBJEXT) hugin.$(OBJEXT) filebrowsertest_OBJECTS = $(am_filebrowsertest_OBJECTS) filebrowsertest_DEPENDENCIES = $(top_srcdir)/plugingui/libdggui.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 = filebrowsertest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(filebrowsertest_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_framewidgettest_OBJECTS = \ framewidgettest-framewidgettest.$(OBJEXT) hugin.$(OBJEXT) framewidgettest_OBJECTS = $(am_framewidgettest_OBJECTS) framewidgettest_DEPENDENCIES = $(top_srcdir)/plugingui/libdggui.la framewidgettest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(framewidgettest_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_resizetest_OBJECTS = resizetest-resizetest.$(OBJEXT) \ hugin.$(OBJEXT) resizetest_OBJECTS = $(am_resizetest_OBJECTS) resizetest_DEPENDENCIES = $(top_srcdir)/plugingui/libdggui.la resizetest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(resizetest_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_tabwidgettest_OBJECTS = tabwidgettest-tabwidgettest.$(OBJEXT) \ hugin.$(OBJEXT) tabwidgettest_OBJECTS = $(am_tabwidgettest_OBJECTS) tabwidgettest_DEPENDENCIES = $(top_srcdir)/plugingui/libdggui.la tabwidgettest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(tabwidgettest_CXXFLAGS) $(CXXFLAGS) $(AM_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 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(filebrowsertest_SOURCES) $(framewidgettest_SOURCES) \ $(resizetest_SOURCES) $(tabwidgettest_SOURCES) DIST_SOURCES = $(filebrowsertest_SOURCES) $(framewidgettest_SOURCES) \ $(resizetest_SOURCES) $(tabwidgettest_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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ resizetest_LDADD = $(top_srcdir)/plugingui/libdggui.la resizetest_CXXFLAGS = \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin resizetest_SOURCES = \ resizetest.cc \ $(top_srcdir)/hugin/hugin.c tabwidgettest_LDADD = $(top_srcdir)/plugingui/libdggui.la tabwidgettest_CXXFLAGS = \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin tabwidgettest_SOURCES = \ tabwidgettest.cc \ $(top_srcdir)/hugin/hugin.c filebrowsertest_LDADD = $(top_srcdir)/plugingui/libdggui.la filebrowsertest_CXXFLAGS = \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin filebrowsertest_SOURCES = \ filebrowsertest.cc \ $(top_srcdir)/hugin/hugin.c framewidgettest_LDADD = $(top_srcdir)/plugingui/libdggui.la framewidgettest_CXXFLAGS = \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin framewidgettest_SOURCES = \ framewidgettest.cc \ $(top_srcdir)/hugin/hugin.c all: all-am .SUFFIXES: .SUFFIXES: .c .cc .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 test/uitests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/uitests/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): clean-noinstPROGRAMS: @list='$(noinst_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 filebrowsertest$(EXEEXT): $(filebrowsertest_OBJECTS) $(filebrowsertest_DEPENDENCIES) $(EXTRA_filebrowsertest_DEPENDENCIES) @rm -f filebrowsertest$(EXEEXT) $(AM_V_CXXLD)$(filebrowsertest_LINK) $(filebrowsertest_OBJECTS) $(filebrowsertest_LDADD) $(LIBS) framewidgettest$(EXEEXT): $(framewidgettest_OBJECTS) $(framewidgettest_DEPENDENCIES) $(EXTRA_framewidgettest_DEPENDENCIES) @rm -f framewidgettest$(EXEEXT) $(AM_V_CXXLD)$(framewidgettest_LINK) $(framewidgettest_OBJECTS) $(framewidgettest_LDADD) $(LIBS) resizetest$(EXEEXT): $(resizetest_OBJECTS) $(resizetest_DEPENDENCIES) $(EXTRA_resizetest_DEPENDENCIES) @rm -f resizetest$(EXEEXT) $(AM_V_CXXLD)$(resizetest_LINK) $(resizetest_OBJECTS) $(resizetest_LDADD) $(LIBS) tabwidgettest$(EXEEXT): $(tabwidgettest_OBJECTS) $(tabwidgettest_DEPENDENCIES) $(EXTRA_tabwidgettest_DEPENDENCIES) @rm -f tabwidgettest$(EXEEXT) $(AM_V_CXXLD)$(tabwidgettest_LINK) $(tabwidgettest_OBJECTS) $(tabwidgettest_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filebrowsertest-filebrowsertest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/framewidgettest-framewidgettest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hugin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resizetest-resizetest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tabwidgettest-tabwidgettest.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 $@ $< hugin.o: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hugin.o -MD -MP -MF $(DEPDIR)/hugin.Tpo -c -o hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hugin.Tpo $(DEPDIR)/hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='hugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c hugin.obj: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hugin.obj -MD -MP -MF $(DEPDIR)/hugin.Tpo -c -o hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hugin.Tpo $(DEPDIR)/hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='hugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< filebrowsertest-filebrowsertest.o: filebrowsertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(filebrowsertest_CXXFLAGS) $(CXXFLAGS) -MT filebrowsertest-filebrowsertest.o -MD -MP -MF $(DEPDIR)/filebrowsertest-filebrowsertest.Tpo -c -o filebrowsertest-filebrowsertest.o `test -f 'filebrowsertest.cc' || echo '$(srcdir)/'`filebrowsertest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/filebrowsertest-filebrowsertest.Tpo $(DEPDIR)/filebrowsertest-filebrowsertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='filebrowsertest.cc' object='filebrowsertest-filebrowsertest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(filebrowsertest_CXXFLAGS) $(CXXFLAGS) -c -o filebrowsertest-filebrowsertest.o `test -f 'filebrowsertest.cc' || echo '$(srcdir)/'`filebrowsertest.cc filebrowsertest-filebrowsertest.obj: filebrowsertest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(filebrowsertest_CXXFLAGS) $(CXXFLAGS) -MT filebrowsertest-filebrowsertest.obj -MD -MP -MF $(DEPDIR)/filebrowsertest-filebrowsertest.Tpo -c -o filebrowsertest-filebrowsertest.obj `if test -f 'filebrowsertest.cc'; then $(CYGPATH_W) 'filebrowsertest.cc'; else $(CYGPATH_W) '$(srcdir)/filebrowsertest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/filebrowsertest-filebrowsertest.Tpo $(DEPDIR)/filebrowsertest-filebrowsertest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='filebrowsertest.cc' object='filebrowsertest-filebrowsertest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(filebrowsertest_CXXFLAGS) $(CXXFLAGS) -c -o filebrowsertest-filebrowsertest.obj `if test -f 'filebrowsertest.cc'; then $(CYGPATH_W) 'filebrowsertest.cc'; else $(CYGPATH_W) '$(srcdir)/filebrowsertest.cc'; fi` framewidgettest-framewidgettest.o: framewidgettest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(framewidgettest_CXXFLAGS) $(CXXFLAGS) -MT framewidgettest-framewidgettest.o -MD -MP -MF $(DEPDIR)/framewidgettest-framewidgettest.Tpo -c -o framewidgettest-framewidgettest.o `test -f 'framewidgettest.cc' || echo '$(srcdir)/'`framewidgettest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/framewidgettest-framewidgettest.Tpo $(DEPDIR)/framewidgettest-framewidgettest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='framewidgettest.cc' object='framewidgettest-framewidgettest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(framewidgettest_CXXFLAGS) $(CXXFLAGS) -c -o framewidgettest-framewidgettest.o `test -f 'framewidgettest.cc' || echo '$(srcdir)/'`framewidgettest.cc framewidgettest-framewidgettest.obj: framewidgettest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(framewidgettest_CXXFLAGS) $(CXXFLAGS) -MT framewidgettest-framewidgettest.obj -MD -MP -MF $(DEPDIR)/framewidgettest-framewidgettest.Tpo -c -o framewidgettest-framewidgettest.obj `if test -f 'framewidgettest.cc'; then $(CYGPATH_W) 'framewidgettest.cc'; else $(CYGPATH_W) '$(srcdir)/framewidgettest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/framewidgettest-framewidgettest.Tpo $(DEPDIR)/framewidgettest-framewidgettest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='framewidgettest.cc' object='framewidgettest-framewidgettest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(framewidgettest_CXXFLAGS) $(CXXFLAGS) -c -o framewidgettest-framewidgettest.obj `if test -f 'framewidgettest.cc'; then $(CYGPATH_W) 'framewidgettest.cc'; else $(CYGPATH_W) '$(srcdir)/framewidgettest.cc'; fi` resizetest-resizetest.o: resizetest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resizetest_CXXFLAGS) $(CXXFLAGS) -MT resizetest-resizetest.o -MD -MP -MF $(DEPDIR)/resizetest-resizetest.Tpo -c -o resizetest-resizetest.o `test -f 'resizetest.cc' || echo '$(srcdir)/'`resizetest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resizetest-resizetest.Tpo $(DEPDIR)/resizetest-resizetest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resizetest.cc' object='resizetest-resizetest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resizetest_CXXFLAGS) $(CXXFLAGS) -c -o resizetest-resizetest.o `test -f 'resizetest.cc' || echo '$(srcdir)/'`resizetest.cc resizetest-resizetest.obj: resizetest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resizetest_CXXFLAGS) $(CXXFLAGS) -MT resizetest-resizetest.obj -MD -MP -MF $(DEPDIR)/resizetest-resizetest.Tpo -c -o resizetest-resizetest.obj `if test -f 'resizetest.cc'; then $(CYGPATH_W) 'resizetest.cc'; else $(CYGPATH_W) '$(srcdir)/resizetest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resizetest-resizetest.Tpo $(DEPDIR)/resizetest-resizetest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resizetest.cc' object='resizetest-resizetest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resizetest_CXXFLAGS) $(CXXFLAGS) -c -o resizetest-resizetest.obj `if test -f 'resizetest.cc'; then $(CYGPATH_W) 'resizetest.cc'; else $(CYGPATH_W) '$(srcdir)/resizetest.cc'; fi` tabwidgettest-tabwidgettest.o: tabwidgettest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tabwidgettest_CXXFLAGS) $(CXXFLAGS) -MT tabwidgettest-tabwidgettest.o -MD -MP -MF $(DEPDIR)/tabwidgettest-tabwidgettest.Tpo -c -o tabwidgettest-tabwidgettest.o `test -f 'tabwidgettest.cc' || echo '$(srcdir)/'`tabwidgettest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/tabwidgettest-tabwidgettest.Tpo $(DEPDIR)/tabwidgettest-tabwidgettest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tabwidgettest.cc' object='tabwidgettest-tabwidgettest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tabwidgettest_CXXFLAGS) $(CXXFLAGS) -c -o tabwidgettest-tabwidgettest.o `test -f 'tabwidgettest.cc' || echo '$(srcdir)/'`tabwidgettest.cc tabwidgettest-tabwidgettest.obj: tabwidgettest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tabwidgettest_CXXFLAGS) $(CXXFLAGS) -MT tabwidgettest-tabwidgettest.obj -MD -MP -MF $(DEPDIR)/tabwidgettest-tabwidgettest.Tpo -c -o tabwidgettest-tabwidgettest.obj `if test -f 'tabwidgettest.cc'; then $(CYGPATH_W) 'tabwidgettest.cc'; else $(CYGPATH_W) '$(srcdir)/tabwidgettest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/tabwidgettest-tabwidgettest.Tpo $(DEPDIR)/tabwidgettest-tabwidgettest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tabwidgettest.cc' object='tabwidgettest-tabwidgettest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tabwidgettest_CXXFLAGS) $(CXXFLAGS) -c -o tabwidgettest-tabwidgettest.obj `if test -f 'tabwidgettest.cc'; then $(CYGPATH_W) 'tabwidgettest.cc'; else $(CYGPATH_W) '$(srcdir)/tabwidgettest.cc'; fi` 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: 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." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ 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-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: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS 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-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 # 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: drumgizmo-0.9.14/test/uitests/filebrowsertest.cc0000644000076400017500000000577213103352160016765 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * filebrowsertest.cc * * Sat Apr 15 22:24:06 CEST 2017 * Copyright 2017 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #include #include #include class TestWindow : public GUI::Window { public: TestWindow() : GUI::Window(nullptr) { setCaption("FileBrowserTest Window"); CONNECT(eventHandler(), closeNotifier, this, &TestWindow::closeEventHandler); CONNECT(file_browser.eventHandler(), closeNotifier, this, &TestWindow::dialogCloseEventHandler); CONNECT(&file_browser, fileSelectNotifier, this, &TestWindow::fileSelected); CONNECT(&file_browser, fileSelectCancelNotifier, this, &TestWindow::fileCanceled); button.move(0, 0); button.resize(120, 30); button.setText("Browse..."); label.move(0, 40); label.resize(120, 30); label.setText("Filename will be shown here."); CONNECT(&button, clickNotifier, this, &TestWindow::dialogShow); } void fileSelected(const std::string& filename) { label.setText(filename); } void fileCanceled() { label.setText("[Canceled]"); } void closeEventHandler() { closing = true; } void dialogCloseEventHandler() { file_browser.hide(); } void dialogShow() { file_browser.show(); file_browser.resize(300, 300); } bool processEvents() { eventHandler()->processEvents(); return !closing; } void repaintEvent(GUI::RepaintEvent* repaintEvent) { GUI::Painter painter(*this); label.resize(width(), 30); //painter.clear(); painter.setColour(GUI::Colour(0,1,0)); painter.drawFilledRectangle(0, 0, width(), height()); } private: bool closing{false}; GUI::Button button{this}; GUI::Label label{this}; GUI::FileBrowser file_browser{this}; }; int main() { INFO(example, "We are up and running"); TestWindow test_window; test_window.show(); test_window.resize(300,300); while(test_window.processEvents()) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); } return 0; } drumgizmo-0.9.14/test/imagecachetest.cc0000644000076400017500000000574613077120604015017 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * imagecachetest.cc * * Thu Jun 2 18:54:31 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include class TestableImageCache : public GUI::ImageCache { public: std::size_t count(const std::string& filename) { if(imageCache.find(filename) == imageCache.end()) { return 0; } auto it = imageCache.find(filename); auto& val = it->second; return val.first; } }; class ImageCacheTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(ImageCacheTest); CPPUNIT_TEST(refCountTest); CPPUNIT_TEST_SUITE_END(); public: void setUp() {} void tearDown() {} void refCountTest() { TestableImageCache imageCache; CPPUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(0u)); CPPUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(0u)); { auto image1{imageCache.getImage("foo")}; (void)image1; CPPUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(1u)); CPPUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(0u)); auto image2 = imageCache.getImage("bar"); CPPUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(1u)); CPPUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); auto image3 = imageCache.getImage("foo"); CPPUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(2u)); CPPUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); { auto image4 = imageCache.getImage("foo"); CPPUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(3u)); CPPUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); } CPPUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(2u)); CPPUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); } CPPUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(0u)); CPPUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(0u)); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(ImageCacheTest); drumgizmo-0.9.14/test/lv2.cc0000644000076400017500000002416013103355361012543 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * lv2.cc * * Thu Feb 12 14:55:41 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #include #include "drumkit_creator.h" #include "lv2_test_host.h" #define DG_URI "http://drumgizmo.org/lv2" enum class Ports { FreeWheel = 0, Latency, MidiPort, AudioPortOffset, }; /** * Tests that should be performed: * ------------------------------- * - Run without port connects (shouldn't crash) * - Run without output ports connects (shouldn't crash) * - Run with buffer size 0 * - Run with VERY LARGE buffer size (>1MB?) * - Run with buffer size a prime number (and thereby not power of 2) * - Run with HUGE number of midi events in one buffer (10000) */ class test_lv2 : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(test_lv2); CPPUNIT_TEST(open_and_verify); CPPUNIT_TEST(run_no_ports_connected); CPPUNIT_TEST(run_no_output_ports_connected); CPPUNIT_TEST(test1); CPPUNIT_TEST_SUITE_END(); DrumkitCreator drumkit_creator; public: void setUp() {} void tearDown() {} void open_and_verify() { int res; LV2TestHost h(LV2_PATH); res = h.open(DG_URI); CPPUNIT_ASSERT_EQUAL(0, res); res = h.verify(); CPPUNIT_ASSERT_EQUAL(0, res); res = h.close(); CPPUNIT_ASSERT_EQUAL(0, res); } void run_no_ports_connected() { int res; LV2TestHost h(LV2_PATH); res = h.open(DG_URI); CPPUNIT_ASSERT_EQUAL(0, res); res = h.verify(); CPPUNIT_ASSERT_EQUAL(0, res); res = h.createInstance(44100); CPPUNIT_ASSERT_EQUAL(0, res); const char config_fmt[] = "\n" " %s\n" " %s\n" " %s\n" " %f\n" " %f\n" " %s\n" " %f\n" " %s\n" ""; // Create drumkit auto kit1_file = drumkit_creator.createStdKit("kit1"); auto midimapfile = drumkit_creator.createStdMidimap("midimap"); bool enable_velocity_modifier = true; float velocity_modifier_falloff = 0.5; float velocity_modifier_weight = 0.25; bool enable_velocity_randomiser = false; float velocity_randomiser_weight = 0.1; bool enable_resampling = false; char config[sizeof(config_fmt) * 2]; sprintf(config, config_fmt, kit1_file.c_str(), midimapfile.c_str(), enable_velocity_modifier?"true":"false", velocity_modifier_falloff, velocity_modifier_weight, enable_velocity_randomiser?"true":"false", velocity_randomiser_weight, enable_resampling?"true":"false"); res = h.loadConfig(config, strlen(config)); CPPUNIT_ASSERT_EQUAL(0, res); // run for 1 samples to trigger kit loading res = h.run(1); CPPUNIT_ASSERT_EQUAL(0, res); std::this_thread::sleep_for(std::chrono::milliseconds(1)); // wait for kit to get loaded (async), res = h.run(100); CPPUNIT_ASSERT_EQUAL(0, res); res = h.destroyInstance(); CPPUNIT_ASSERT_EQUAL(0, res); res = h.close(); CPPUNIT_ASSERT_EQUAL(0, res); } void run_no_output_ports_connected() { int res; LV2TestHost h(LV2_PATH); res = h.open(DG_URI); CPPUNIT_ASSERT_EQUAL(0, res); res = h.verify(); CPPUNIT_ASSERT_EQUAL(0, res); res = h.createInstance(44100); CPPUNIT_ASSERT_EQUAL(0, res); const char config_fmt[] = "\n" " %s\n" " %s\n" " %s\n" " %f\n" " %f\n" " %s\n" " %f\n" " %s\n" ""; // Create drumkit auto kit1_file = drumkit_creator.createStdKit("kit1"); auto midimapfile = drumkit_creator.createStdMidimap("midimap"); bool enable_velocity_modifier = true; float velocity_modifier_falloff = 0.5; float velocity_modifier_weight = 0.25; bool enable_velocity_randomiser = false; float velocity_randomiser_weight = 0.1; bool enable_resampling = false; char config[sizeof(config_fmt) * 2]; sprintf(config, config_fmt, kit1_file.c_str(), midimapfile.c_str(), enable_velocity_modifier?"true":"false", velocity_modifier_falloff, velocity_modifier_weight, enable_velocity_randomiser?"true":"false", velocity_randomiser_weight, enable_resampling?"true":"false"); res = h.loadConfig(config, strlen(config)); CPPUNIT_ASSERT_EQUAL(0, res); // Port buffers: char sequence_buffer[4096]; bool freeWheel = false; // Free wheel port res = h.connectPort((int)Ports::FreeWheel, (void*)&freeWheel); LV2TestHost::Sequence seq(sequence_buffer, sizeof(sequence_buffer)); res = h.connectPort((int)Ports::MidiPort, seq.data()); CPPUNIT_ASSERT_EQUAL(0, res); // run for 1 samples to trigger kit loading res = h.run(1); CPPUNIT_ASSERT_EQUAL(0, res); std::this_thread::sleep_for(std::chrono::milliseconds(1)); // wait for kit to get loaded (async), seq.addMidiNote(5, 1, 127); res = h.run(100); CPPUNIT_ASSERT_EQUAL(0, res); res = h.destroyInstance(); CPPUNIT_ASSERT_EQUAL(0, res); res = h.close(); CPPUNIT_ASSERT_EQUAL(0, res); } void test1() { int res; LV2TestHost h(LV2_PATH); res = h.open(DG_URI); CPPUNIT_ASSERT_EQUAL(0, res); res = h.verify(); CPPUNIT_ASSERT_EQUAL(0, res); res = h.createInstance(44100); CPPUNIT_ASSERT_EQUAL(0, res); const char config_fmt[] = "\n" " %s\n" " %s\n" " %s\n" " %f\n" " %f\n" " %s\n" " %f\n" " %s\n" ""; // Create drumkit auto kit1_file = drumkit_creator.createStdKit("kit1"); auto midimapfile = drumkit_creator.createStdMidimap("midimap"); bool enable_velocity_modifier = true; float velocity_modifier_falloff = 0.5; float velocity_modifier_weight = 0.25; bool enable_velocity_randomiser = false; float velocity_randomiser_weight = 0.1; bool enable_resampling = false; char config[sizeof(config_fmt) * 2]; sprintf(config, config_fmt, kit1_file.c_str(), midimapfile.c_str(), enable_velocity_modifier?"true":"false", velocity_modifier_falloff, velocity_modifier_weight, enable_velocity_randomiser?"true":"false", velocity_randomiser_weight, enable_resampling?"true":"false"); res = h.loadConfig(config, strlen(config)); CPPUNIT_ASSERT_EQUAL(0, res); // Port buffers: char sequence_buffer[4096]; float pcm_buffer[16][10]; bool freeWheel = true; // Free wheel port res = h.connectPort((int)Ports::FreeWheel, (void*)&freeWheel); LV2TestHost::Sequence seq(sequence_buffer, sizeof(sequence_buffer)); res = h.connectPort((int)Ports::MidiPort, seq.data()); CPPUNIT_ASSERT_EQUAL(0, res); for(int i = 0; i < 16; ++i) { for(int j = 0; j < 10; ++j) { pcm_buffer[i][j] = 0.42; } res += h.connectPort((int)Ports::AudioPortOffset + i, pcm_buffer[i]); } CPPUNIT_ASSERT_EQUAL(0, res); // run for 1 samples to trigger kit loading res = h.run(1); CPPUNIT_ASSERT_EQUAL(0, res); std::this_thread::sleep_for(std::chrono::seconds(1)); // wait for kit to get loaded (async), seq.addMidiNote(5, 1, 127); for(int i = 0; i < 10; i++) { res = h.run(10); std::this_thread::sleep_for(std::chrono::milliseconds(1)); CPPUNIT_ASSERT_EQUAL(0, res); //printf("Iteration:\n"); //for(int k = 0; k < 16; k++) { // printf("#%d ", k); // for(int j = 0; j < 10; j++) printf("[%f]", pcm_buffer[k][j]); // printf("\n"); //} //printf("\n"); seq.clear(); } seq.addMidiNote(5, 1, 127); res = h.run(10); std::this_thread::sleep_for(std::chrono::milliseconds(1)); CPPUNIT_ASSERT_EQUAL(0, res); /* printf("Iteration:\n"); for(int k = 0; k < 4; k++) { printf("#%d ", k); for(int j = 0; j < 10; j++) printf("[%f]", pcm_buffer[k][j]); printf("\n"); } printf("\n"); */ union { float f; unsigned int u; } comp_val; comp_val.u = 1040744448; // floating point value 0.133301.... for(int k = 0; k < 4; k++) { for(int j = 0; j < 10; j++) { CPPUNIT_ASSERT_EQUAL(((j==5)?comp_val.f:0), pcm_buffer[k][j]); } } seq.clear(); res = h.destroyInstance(); CPPUNIT_ASSERT_EQUAL(0, res); res = h.close(); CPPUNIT_ASSERT_EQUAL(0, res); } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(test_lv2); drumgizmo-0.9.14/test/randomtest.cc0000644000076400017500000000640313076176503014230 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * randomtest.cc * * Sat Mar 26 08:48:53 CET 2016 * Copyright 2016 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include class RandomTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(RandomTest); CPPUNIT_TEST(rangeTest); CPPUNIT_TEST(normalTest); CPPUNIT_TEST(chooseTest); CPPUNIT_TEST_SUITE_END(); public: void setUp() { } void tearDown() { } void rangeTest() { // check if random numbers are in the wanted range Random rand; float float_lb = -42.23; float float_ub = 666.666; int int_lb = -42; int int_ub = 23; for (int i = 0; i<10000; i++) { float rand_float = rand.floatInRange(float_lb, float_ub); float rand_int = rand.intInRange(int_lb, int_ub); CPPUNIT_ASSERT(rand_float >= float_lb && rand_float <= float_ub); CPPUNIT_ASSERT(rand_int >= int_lb && rand_int <= int_ub); } // check if the series of random numbers is the one we expect // for a certain seed. rand = Random(666); CPPUNIT_ASSERT_EQUAL(0, rand.intInRange(0,100)); CPPUNIT_ASSERT_EQUAL(61, rand.intInRange(0,100)); CPPUNIT_ASSERT_EQUAL(23, rand.intInRange(0,100)); } void normalTest() { // This test might theoretically fail but it is extremely unlikely to happen. Random rand; float real_mean = 42.0; float real_stddev = 2.0; int nr_of_samples = 50000; float sum = 0.; float sum_of_squares = 0.; for (int i=0; i= real_mean-epsilon && estimated_mean <= real_mean+epsilon); CPPUNIT_ASSERT(estimated_stddev >= real_stddev-epsilon && estimated_stddev <= real_stddev+epsilon); } void chooseTest() { Random rand; std::vector vec = { 42, 42, 42 }; int nr_of_samples = 1000; for (int i=0; i= 1.0) PKG_CHECK_MODULES(XEXT, xext >= 1.0) GUI_CPPFLAGS="-DUI_X11 $X11_CFLAGS $XEXT_CFLAGS" GUI_LIBS="$X11_LIBS $XEXT_LIBS"], [test "x$enable_gui" = "xwin32"], [AC_MSG_RESULT([Setting gui backend to Win32]) GUI_CPPFLAGS="-DUI_WIN32" GUI_LIBS="-lgdi32 -lsetupapi -lws2_32 -lcomctl32"], [test "x$enable_gui" = "xpugl"], [AC_MSG_RESULT([Setting gui backend to Pugl]) GUI_CPPFLAGS="-DUI_PUGL -I../../pugl" GUI_LIBS="-lGLU -lGL -lglut"], [test "x$enable_gui" = "xcocoa"], [AC_MSG_RESULT([Setting gui backend to Cocoa]) GUI_CPPFLAGS="-DUI_COCOA -framework Cocoa" GUI_LIBS="-framework Cocoa"], AC_MSG_ERROR([*** No GUI backend has been selected ***]) ) AC_SUBST(GUI_CPPFLAGS) AC_SUBST(GUI_LIBS) AM_CONDITIONAL([ENABLE_PUGL], [test "x$enable_gui" = "xpugl"]) AM_CONDITIONAL([ENABLE_WIN32], [test "x$enable_gui" = "xwin32"]) AM_CONDITIONAL([ENABLE_X11], [test "x$enable_gui" = "xx11"]) AM_CONDITIONAL([ENABLE_COCOA], [test "x$enable_gui" = "xcocoa"]) dnl ====================== dnl Compile unit tests dnl ====================== AC_ARG_WITH([test], AS_HELP_STRING([--with-test], [Build unit tests])) AS_IF([test x$with_test == xyes], [ AC_MSG_WARN([*** Building unittests!]) PKG_CHECK_MODULES([CPPUNIT], [ cppunit >= 1.9.6 ], [], [ AC_MSG_ERROR([$CPPUNIT_PKG_ERRORS]) ]) ] ) AM_CONDITIONAL([ENABLE_TESTS], [test "x$with_test" = "xyes"]) dnl ====================== dnl Compile LV2 plugin dnl ====================== AC_ARG_ENABLE([lv2], AS_HELP_STRING([--enable-lv2], [Compile the LV2 plugin [default=no]]),, [enable_lv2="no"]) AS_IF( [test "x$enable_lv2" = "xyes"], [enable_lv2=yes dnl ====================== dnl Check for lv2core dnl ====================== PKG_CHECK_MODULES(LV2, lv2 >= 1.0) AC_ARG_WITH([lv2dir], AS_HELP_STRING([--with-lv2dir=DIR], [Use DIR as the lv2 plugin directory [default=LIBDIR/lv2]]), [LV2DIR=$with_lv2dir], [LV2DIR='$(libdir)/lv2']) AC_SUBST(LV2DIR) ], [AC_MSG_RESULT([*** LV2 plugin will not be compiled ***]) enable_lv2=no] ) AM_CONDITIONAL([ENABLE_LV2], [test "x$enable_lv2" = "xyes"]) dnl ====================== dnl Compile VST plugin dnl ====================== AC_ARG_WITH([vst_sources], AS_HELP_STRING([--with-vst-sources], [Point this to the vstsdk24 directory])) AC_ARG_ENABLE([vst], AS_HELP_STRING([--enable-vst], [Compile the VST plugin [default=no]]),, [enable_vst="no"]) AS_IF( [test "x$enable_vst" = "xyes"], [enable_vst=yes VST_CPPFLAGS="-D__int64='long long int'" # Set up platform specific workarounds for the VST SDK AS_CASE([$host_os], [darwin*], [ ], [linux*|*bsd*], [VST_CPPFLAGS="$VST_CPPFLAGS -D__cdecl="], [msys|mingw*|windows*|winnt|cygwin], [ ], AC_MSG_ERROR([Your platform is not currently supported]) ) VST_SOURCE_PATH="$with_vst_sources" AC_SUBST(VST_SOURCE_PATH) AC_SUBST(VST_CPPFLAGS) AC_CONFIG_FILES(plugin/Makefile.mingw32)], [AC_MSG_RESULT([*** VST plugin will not be compiled ***]) enable_vst=no] ) AM_CONDITIONAL([ENABLE_VST], [test "x$enable_vst" = "xyes"]) dnl ====================== dnl Compile AU plugin dnl ====================== #AC_ARG_ENABLE([au], #[ --enable-au Compile the audio units plugin [default=no]],, # [enable_au="no"]) #if test "x$enable_au" = "xyes"; then # enable_au=yes #else # AC_MSG_RESULT([*** Audio Units plugin will not be compiled ***]) # enable_au=no #fi #AM_CONDITIONAL([ENABLE_AU], [test "x$enable_au" = "xyes"]) dnl ====================== dnl Compile cli client dnl ====================== AC_ARG_ENABLE([cli], AS_HELP_STRING([--enable-cli], [Compile the command line interface [default=yes]]),, [enable_cli="yes"]) AS_IF( [test "x$enable_cli" = "xyes"], [enable_cli=yes dnl ====================== dnl Check for getopt dnl ====================== AC_CHECK_HEADERS(getopt.h) dnl *** dnl *** Input plugins dnl *** dnl *** Dummy AC_ARG_ENABLE([input_dummy], AS_HELP_STRING([--disable-input-dummy], [Disable input dummy plugin [default=enabled]]),, [enable_input_dummy="yes"]) AS_IF( [test "x$enable_input_dummy" = "xyes"], [have_input_dummy=yes], [AC_MSG_RESULT([*** input dummy plugin disabled per user request ***]) have_input_dummy=no] ) dnl *** Test AC_ARG_ENABLE([input_test], AS_HELP_STRING([--disable-input-test], [Disable input test plugin [default=enabled]]),, [enable_input_test="yes"]) AS_IF( [test "x$enable_input_test" = "xyes"], [have_input_test=yes], [AC_MSG_RESULT([*** input test plugin disabled per user request ***]) have_input_test=no] ) dnl *** Jackmidi AC_ARG_ENABLE([input_jackmidi], AS_HELP_STRING([--disable-input-jackmidi], [Disable input jackmidi plugin [default=enabled]]),, [enable_input_jackmidi="yes"]) AS_IF( [test "x$enable_input_jackmidi" = "xyes"], [have_input_jackmidi=yes need_jack=yes], [AC_MSG_RESULT([*** input jackmidi plugin disabled per user request ***]) have_input_jackmidi=no] ) dnl *** Midifile AC_ARG_ENABLE([input_midifile], AS_HELP_STRING([--disable-input-midifile], [Disable input midifile plugin [default=enabled]]),, [enable_input_midifile="yes"]) AS_IF( [test "x$enable_input_midifile" = "xyes"], [have_input_midifile=yes dnl ====================== dnl Check for libsmf dnl ====================== PKG_CHECK_MODULES(SMF, smf >= 1.2)], [AC_MSG_RESULT([*** input midifile plugin disabled per user request ***]) have_input_midifile=no] ) INPUT_PLUGINS="midifile jackmidi dummy test" AC_SUBST(INPUT_PLUGINS) dnl *** dnl *** Output plugins dnl *** dnl *** dummy AC_ARG_ENABLE([output_dummy], AS_HELP_STRING([--disable-output-dummy], [Disable output dummy plugin [default=enabled]]),, [enable_output_dummy="yes"]) AS_IF( [test "x$enable_output_dummy" = "xyes"], [have_output_dummy=yes], [AC_MSG_RESULT([*** output dummy plugin disabled per user request ***]) have_output_dummy=no] ) dnl *** Jackaudio AC_ARG_ENABLE([output_jackaudio], AS_HELP_STRING([--disable-output-jackaudio], [Disable output jack plugin [default=enabled]]),, [enable_output_jackaudio="yes"]) AS_IF( [test "x$enable_output_jackaudio" = "xyes"], [have_output_jackaudio=yes need_jack=yes], [AC_MSG_RESULT([*** output jack plugin disabled per user request ***]) have_output_jackaudio=no] ) dnl *** alsa AC_ARG_ENABLE([output_alsa], AS_HELP_STRING([--disable-output-alsa], [Disable output alsa plugin [default=enabled]]),, [enable_output_alsa="yes"]) AS_IF( [test "x$enable_output_alsa" = "xyes"], [have_output_alsa=yes dnl ====================== dnl Check for alsa library dnl ====================== PKG_CHECK_MODULES(ALSA, alsa >= 1.0.18)], [AC_MSG_RESULT([*** output alsa plugin disabled per user request ***]) have_output_alsa=no] ) dnl *** wavfile AC_ARG_ENABLE([output_wavfile], AS_HELP_STRING([--disable-output-wavfile], [Disable output wavfile plugin [default=enabled]]),, [enable_output_wavfile="yes"]) AS_IF( [test "x$enable_output_wavfile" = "xyes"], [have_output_wavfile=yes], [AC_MSG_RESULT([*** output wavfile plugin disabled per user request ***]) have_output_wavfile=no] ) dnl *** oss case $host_os in freebsd*) enable_oss_value=yes ;; *) enable_oss_value=no ;; esac AC_ARG_ENABLE([output_oss], AS_HELP_STRING( [--disable-output-oss], [Disable output oss plugin [enabled by default on FreeBSD, disabled otherwise]]),, [enable_output_oss=$enable_oss_value] ) AS_IF( [test "x$enable_output_oss" = "xyes"], [AC_MSG_CHECKING(for OSS) AC_COMPILE_IFELSE( [AC_LANG_SOURCE([[ #include #ifndef AFMT_S32_NE # error no oss #endif ]])], [ have_output_oss=yes AC_MSG_RESULT(yes) ], [AC_MSG_FAILURE([no OSS headers found])] )], [AC_MSG_RESULT([*** output oss plugin disabled per user request ***]) have_output_oss=no] ) OUTPUT_PLUGINS="dummy alsa wavfile jackaudio oss" AC_SUBST(OUTPUT_PLUGINS) dnl dnl Setup plugin paths dnl dgplugindir=${libdir}/drumgizmo AC_SUBST([dgplugindir]) INPUT_PLUGIN_DIR=${dgplugindir}/input OUTPUT_PLUGIN_DIR=${dgplugindir}/output AC_SUBST([INPUT_PLUGIN_DIR]) AC_SUBST([OUTPUT_PLUGIN_DIR])], [AC_MSG_RESULT([*** Command line interface disabled per user request ***]) enable_cli=no] ) AM_CONDITIONAL([ENABLE_CLI], [test "x$enable_cli" == "xyes"]) AM_CONDITIONAL([HAVE_INPUT_DUMMY], [test "x$have_input_dummy" = "xyes"]) AM_CONDITIONAL([HAVE_INPUT_TEST], [test "x$have_input_test" = "xyes"]) AM_CONDITIONAL([HAVE_INPUT_JACKMIDI], [test "x$have_input_jackmidi" = "xyes"]) AM_CONDITIONAL([HAVE_INPUT_MIDIFILE], [test "x$have_input_midifile" = "xyes"]) AM_CONDITIONAL([HAVE_OUTPUT_DUMMY], [test "x$have_output_dummy" = "xyes"]) AM_CONDITIONAL([HAVE_OUTPUT_ALSA], [test "x$have_output_alsa" = "xyes"]) AM_CONDITIONAL([HAVE_OUTPUT_WAVFILE], [test "x$have_output_wavfile" = "xyes"]) AM_CONDITIONAL([HAVE_OUTPUT_JACKAUDIO], [test "x$have_output_jackaudio" = "xyes"]) AM_CONDITIONAL([HAVE_OUTPUT_OSS], [test "x$have_output_oss" = "xyes"]) dnl ====================== dnl Check for sndfile dnl ====================== PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.20) AC_ARG_ENABLE([resampler], AS_HELP_STRING([--enable-resampler[=lib]], [Enable resampling using libzita-resampler, set to 'src' to force use of libsamplerate (slow). [default=yes]]),, [enable_resampler="yes"]) AS_IF([test "x$enable_resampler" = "xyes"], [enable_resampler="zita"]) has_src=no has_zita=no AS_IF([test x$enable_resampler != xno], [AC_MSG_WARN([*** Building resample support!]) AC_DEFINE(WITH_RESAMPLER, [], [Use resample]) AS_CASE([$enable_resampler], [src], [dnl ====================== dnl Check for libsamplerate dnl ====================== PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.1.7, has_src=yes, has_src=no)], [zita], [dnl ====================== dnl Check for the zitaresampler library dnl ====================== AC_LANG_PUSH([C++]) tmp_CXXFLAGS="$CXXFLAGS" tmp_CPPFLAGS="$CPPFLAGS" tmp_CFLAGS="$CFLAGS" tmp_LDFLAGS="$LDFLAGS" tmp_LIBS="$LIBS" CXXFLAGS="" CPPFLAGS="$ZITA_CPPFLAGS" CFLAGS="" LDFLAGS="$ZITA_LDFLAGS" LIBS="-lzita-resampler -lpthread" AC_LINK_IFELSE( [AC_LANG_PROGRAM([#include ], [Resampler r] ) ], has_zita=yes, has_zita=no) ZITA_CPPFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS" ZITA_LIBS="$LDFLAGS $LIBS" CXXFLAGS="$tmp_CXXFLAGS" CPPFLAGS="$tmp_CPPFLAGS" CFLAGS="$tmp_CFLAGS" LDFLAGS="$tmp_LDFLAGS" LIBS="$tmp_LIBS" AC_SUBST(ZITA_CPPFLAGS) AC_SUBST(ZITA_LIBS) AC_LANG_POP([C++])], [AC_MSG_ERROR([*** Bad argument '$enable_resampler'.])] ) ] ) AS_IF([test x$enable_resampler == xzita], [AS_IF([test x$has_zita == xyes], [AC_DEFINE(USE_ZITA, [], [zita-resampler is present]) SAMPLERATE_CFLAGS="" SAMPLERATE_LIBS="" ], [AC_MSG_ERROR([*** zita-resampler library or headers not found. Set ZITA_LDFLAGS or ZITA_CPPFLAGS to add searchpath.])] )] ) AS_IF([test x$enable_resampler == xsrc], [AS_IF([test x$has_src == xyes], [AC_DEFINE(USE_SRC, [], [libsamplerate is present]) ZITA_CPPFLAGS="" ZITA_LIBS="" ], [AC_MSG_ERROR([*** Missing libsamplerate.])] )] ) dnl ====================== dnl Check for the rt library dnl ====================== AC_HAVE_LIBRARY([rt],[],[]) dnl ====================== dnl Check for the atomic library dnl ====================== AC_HAVE_LIBRARY([atomic],[],[]) dnl ====================== dnl Check for the pthread library dnl ====================== tmp_CXXFLAGS="$CXXFLAGS" tmp_CPPFLAGS="$CPPFLAGS" tmp_CFLAGS="$CFLAGS" tmp_LDFLAGS="$LDFLAGS" tmp_LIBS="$LIBS" CXXFLAGS="" CPPFLAGS="" CFLAGS="" LDFLAGS="" LIBS="" AC_CHECK_HEADER(pthread.h, , AC_MSG_ERROR([*** pthread header file not found!])) AC_CHECK_LIB(pthread, pthread_mutex_init, , AC_MSG_ERROR([*** pthread library not found!])) PTHREAD_CFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS" PTHREAD_LIBS="$LDFLAGS $LIBS" CXXFLAGS="$tmp_CXXFLAGS" CPPFLAGS="$tmp_CPPFLAGS" CFLAGS="$tmp_CFLAGS" LDFLAGS="$tmp_LDFLAGS" LIBS="$tmp_LIBS" AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_LIBS) dnl ====================== dnl Check for eXpat library dnl ====================== tmp_CXXFLAGS="$CXXFLAGS" tmp_CPPFLAGS="$CPPFLAGS" tmp_CFLAGS="$CFLAGS" tmp_LDFLAGS="$LDFLAGS" tmp_LIBS="$LIBS" CXXFLAGS="" CPPFLAGS="" CFLAGS="$EXPAT_CFLAGS" LDFLAGS="$EXPAT_LDFLAGS" LIBS="" AC_CHECK_HEADER(expat.h, , AC_MSG_ERROR([*** eXpat header file not found!])) AC_CHECK_LIB(expat, XML_ParserCreate, , AC_MSG_ERROR([*** eXpat library not found!])) EXPAT_CFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS" EXPAT_LIBS="$LDFLAGS $LIBS" CXXFLAGS="$tmp_CXXFLAGS" CPPFLAGS="$tmp_CPPFLAGS" CFLAGS="$tmp_CFLAGS" LDFLAGS="$tmp_LDFLAGS" LIBS="$tmp_LIBS" AC_SUBST(EXPAT_CFLAGS) AC_SUBST(EXPAT_LIBS) dnl =========================== dnl Check for SSE instructions dnl =========================== AC_ARG_ENABLE([sse], AS_HELP_STRING([--enable-sse[=level]], [Enable SSE Level 1, 2, 3 or auto [default=auto]]),, [enable_sse="auto"]) AS_IF([test "x$enable_sse" = "xyes"], [enable_sse="auto"]) #AC_MSG_RESULT([SSE: $enable_sse]) AS_IF([test "x$enable_sse" = "x3"], [AC_MSG_RESULT([Setting sse level 3]) SSEFLAGS="-DSSE -msse -msse2 -mss3"], [test "x$enable_sse" = "x2"], [AC_MSG_RESULT([Setting sse level 2]) SSEFLAGS="-DSSE -msse -msse2"], [test "x$enable_sse" = "x1"], [AC_MSG_RESULT([Setting sse level 1]) SSEFLAGS="-DSSE -msse"], [test "x$enable_sse" = "xauto"], [AC_MSG_RESULT([Auto setting sse level]) AC_MSG_CHECKING([for sse3 instructions]) AS_IF([grep -q "sse3" /proc/cpuinfo], [AC_MSG_RESULT([yes]) SSEFLAGS="-msse3" AC_SUBST(SSEFLAGS)], [AC_MSG_RESULT([no])] ) AC_MSG_CHECKING([for sse2 instructions]) AS_IF([grep -q "sse2" /proc/cpuinfo], [AC_MSG_RESULT([yes]) SSEFLAGS="$SSEFLAGS -msse2" AC_SUBST(SSEFLAGS)], [AC_MSG_RESULT([no])] ) AC_MSG_CHECKING([for sse instructions]) AS_IF([grep -q "sse" /proc/cpuinfo], [AC_MSG_RESULT([yes]) SSEFLAGS="$SSEFLAGS -DSSE -msse" AC_SUBST(SSEFLAGS)], [AC_MSG_RESULT([no])] )], [AC_MSG_RESULT([*** Disabling SSE ***])] ) dnl ====================== dnl Check for jack dnl ====================== AS_IF([test "x$need_jack" = "xyes"], [PKG_CHECK_MODULES(JACK, jack >= 0.120.1)]) AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(CXXFLAGS) AC_SUBST(LDFLAGS) AC_SUBST(LIBS) AC_CONFIG_FILES( Makefile tools/Makefile src/Makefile plugin/Makefile plugin/vst/Makefile plugingui/Makefile include/Makefile man/Makefile test/Makefile test/dgreftest/Makefile test/uitests/Makefile drumgizmo/Makefile) AC_OUTPUT() drumgizmo-0.9.14/aclocal.m40000644000076400017500000126701113106051610012410 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'.])]) # 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 # 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], [[!?.]$], [], [.]) )]) # _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*|ppc*-*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" ;; ppc64-*linux*|powerpc64-*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" ;; ppc*-*linux*|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 # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac 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 ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; 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 # 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="/lib /usr/lib $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 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 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 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 # 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 # _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], []) 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])]) # 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 ]) # 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) ]) # 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])]) # 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 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # ------------------------------------------- # Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])# PKG_CHECK_VAR # 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]))]) # 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 ]) # 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_PROG_CC_C_O # -------------- # Like AC_PROG_CC_C_O, but changed for automake. AC_DEFUN([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC_C_O])dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi dnl Make sure AC_PROG_CC is never called again, or it will override our dnl setting of CC. m4_define([AC_PROG_CC], [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) ]) # 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 drumgizmo-0.9.14/tools/0000755000076400017500000000000013106063415011766 500000000000000drumgizmo-0.9.14/tools/MocList0000755000076400017500000000056712525310663013222 00000000000000# -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*- if [ "$1" = "cc" ]; then grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.cc/g'| xargs echo; elif [ "$1" = "o" ]; then grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.o/g'| xargs echo; elif [ "$1" = "h" ]; then grep "Q_OBJECT" *.h | cut -d: -f1 | cut -d'/' -f3 | xargs echo; fi drumgizmo-0.9.14/tools/Makefile.am0000644000076400017500000000004312525310663013743 00000000000000EXTRA_DIST = \ MocList \ add_filedrumgizmo-0.9.14/tools/Makefile.in0000644000076400017500000003107013106051611013747 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 = tools DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ EXTRA_DIST = \ MocList \ add_file 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 tools/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tools/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." 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: drumgizmo-0.9.14/tools/add_file0000755000076400017500000000515613077120604013373 00000000000000#!/bin/bash PROJECT="DrumGizmo" function allfile() { if [ "$USER" == "nemo" ] then NAME="Jonas Suhr Christensen"; EMAIL="jsc@umbraculum.org" fi if [ "$USER" == "deva" ] then NAME="Bent Bisballe Nyeng"; EMAIL="deva@aasimon.org" fi if [ "$USER" == "senator" ] then NAME="Lars Bisballe Jensen"; EMAIL="elsenator@gmail.com" fi if [ "$USER" == "chaot" ] then NAME="André Nusser"; EMAIL="andre.nusser@googlemail.com" fi if [ "$DGUSER" == "glocke" ] then NAME="Christian Glöckner"; EMAIL="cgloeckner@freenet.de" fi if [ "$USER" == "meka" ] then NAME="Goran Mekić"; EMAIL="meka@tilda.center" fi echo "/* -*- Mode: c++ -*- */" > $1; echo "/***************************************************************************" >> $1; echo " * $1" >> $1; echo " *" >> $1 ; echo " * `LANG=C date`" >> $1; echo " * Copyright "`date +%Y | xargs`" $NAME" >> $1; echo " * $EMAIL" >> $1; echo " ****************************************************************************/" >> $1; echo "" >> $1; echo "/*" >> $1; echo " * This file is part of $PROJECT." >> $1; echo " *" >> $1; echo " * $PROJECT is free software; you can redistribute it and/or modify" >> $1; echo " * it under the terms of the GNU Lesser General Public License as published by" >> $1; echo " * the Free Software Foundation; either version 3 of the License, or" >> $1; echo " * (at your option) any later version." >> $1; echo " *" >> $1; echo " * $PROJECT is distributed in the hope that it will be useful," >> $1; echo " * but WITHOUT ANY WARRANTY; without even the implied warranty of" >> $1; echo " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" >> $1; echo " * GNU Lesser General Public License for more details." >> $1; echo " *" >> $1; echo " * You should have received a copy of the GNU Lesser General Public License" >> $1; echo " * along with $PROJECT; if not, write to the Free Software" >> $1; echo " * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA." >> $1; echo " */" >> $1; } function ccfile() { local hf=`echo -n $1 | cut -d'.' -f1`.h; hfile $hf; allfile $1; echo -n '#include "' >> $1; echo -n $hf >> $1; echo '"' >> $1; echo '' >> $1; } function hfile() { allfile $1; local hn=`echo $1 | tr 'a-z.' 'A-Z_'` local pr=`echo $PROJECT | tr 'a-z.' 'A-Z_'` echo "#pragma once" >> $1; } if [ "$#" = "1" ]; then if [ "CC" = `echo $1 | cut -d'.' -f2 | tr 'a-z' 'A-Z'` ]; then ccfile $1; fi; if [ "H" = `echo $1 | cut -d'.' -f2 | tr 'a-z' 'A-Z'` ]; then hfile $1; fi; else echo "Usage: $0 filename"; fi; drumgizmo-0.9.14/depcomp0000755000076400017500000005601613077054103012134 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: drumgizmo-0.9.14/ABOUT-NLS0000644000076400017500000026713313006712027012010 000000000000001 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. 1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. Installers may use special options at configuration time for changing the default behaviour. The command: ./configure --disable-nls will _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl' library and will decide to use it. If not, you may have to to use the `--with-libintl-prefix' option to tell `configure' where to look for it. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.2 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. If you happen to have the `LC_ALL' or some other `LC_xxx' environment variables set, you should unset them before setting `LANG', otherwise the setting of `LANG' will not have the desired effect. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `coordinator@translationproject.org' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skills are praised more than programming skills, here. 1.4 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of June 2010. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca +--------------------------------------------------+ a2ps | [] [] | aegis | | ant-phone | | anubis | | aspell | [] [] | bash | | bfd | | bibshelf | [] | binutils | | bison | | bison-runtime | [] | bluez-pin | [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] [] | cpio | | cppi | | cpplib | [] | cryptsetup | | dfarc | | dialog | [] [] | dico | | diffutils | [] | dink | | doodle | | e2fsprogs | [] | enscript | [] | exif | | fetchmail | [] | findutils | [] | flex | [] | freedink | | gas | | gawk | [] [] | gcal | [] | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] [] | gettext-tools | [] [] | gip | [] | gjay | | gliv | [] | glunarclock | [] [] | gnubiff | | gnucash | [] | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | | gold | | gpe-aerial | | gpe-beam | | gpe-bluetooth | | gpe-calendar | | gpe-clock | [] | gpe-conf | | gpe-contacts | | gpe-edit | | gpe-filemanager | | gpe-go | | gpe-login | | gpe-ownerinfo | [] | gpe-package | | gpe-sketchbook | | gpe-su | [] | gpe-taskmanager | [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | [] [] | gsasl | | gss | | gst-plugins-bad | [] | gst-plugins-base | [] | gst-plugins-good | [] | gst-plugins-ugly | [] | gstreamer | [] [] [] | gtick | | gtkam | [] | gtkorphan | [] | gtkspell | [] [] [] | gutenprint | | hello | [] | help2man | | hylafax | | idutils | | indent | [] [] | iso_15924 | | iso_3166 | [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | | iso_639 | [] [] [] [] | iso_639_3 | | jwhois | | kbd | | keytouch | [] | keytouch-editor | | keytouch-keyboa... | [] | klavaro | [] | latrine | | ld | [] | leafpad | [] [] | libc | [] [] | libexif | () | libextractor | | libgnutls | | libgpewidget | | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | [] | libidn | | lifelines | | liferea | [] [] | lilypond | | linkdr | [] | lordsawar | | lprng | | lynx | [] | m4 | | mailfromd | | mailutils | | make | | man-db | | man-db-manpages | | minicom | | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | | psmisc | | pspp | [] | pwdutils | | radius | [] | recode | [] [] | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] [] | sed | [] [] | sharutils | [] [] | shishi | | skencil | | solfege | | solfege-manual | | soundtracker | | sp | | sysstat | | tar | [] | texinfo | | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] [] | wyslij-po | | xchat | [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] | +--------------------------------------------------+ af am an ar as ast az be be@latin bg bn_IN bs ca 6 0 1 2 3 19 1 10 3 28 3 1 38 crh cs da de el en en_GB en_ZA eo es et eu fa +-------------------------------------------------+ a2ps | [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] () | anubis | [] [] | aspell | [] [] [] [] [] | bash | [] [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] | bison | [] [] | bison-runtime | [] [] [] [] | bluez-pin | [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] [] [] | cflow | [] [] | clisp | [] [] [] [] | coreutils | [] [] [] [] | cpio | | cppi | | cpplib | [] [] [] | cryptsetup | [] | dfarc | [] [] [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] | dink | [] [] [] | doodle | [] | e2fsprogs | [] [] [] | enscript | [] [] [] | exif | () [] [] | fetchmail | [] [] () [] [] [] | findutils | [] [] [] | flex | [] [] | freedink | [] [] [] | gas | [] | gawk | [] [] [] | gcal | [] | gcc | [] [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] [] | gip | [] [] [] [] | gjay | [] | gliv | [] [] [] | glunarclock | [] [] | gnubiff | () | gnucash | [] () () () () | gnuedu | [] [] | gnulib | [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] | gpe-aerial | [] [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] | gpe-conf | [] [] [] | gpe-contacts | [] [] [] | gpe-edit | [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] | gpe-taskmanager | [] [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] () [] [] [] | gprof | [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] | grub | [] [] | gsasl | [] | gss | | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] () [] | gtkam | [] [] () [] [] | gtkorphan | [] [] [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | [] [] [] | hello | [] [] [] [] | help2man | [] | hylafax | [] [] | idutils | [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] [] [] [] () [] [] [] () | iso_3166_2 | () | iso_4217 | [] [] [] () [] [] | iso_639 | [] [] [] [] () [] [] | iso_639_3 | [] | jwhois | [] | kbd | [] [] [] [] [] | keytouch | [] [] | keytouch-editor | [] [] | keytouch-keyboa... | [] | klavaro | [] [] [] [] | latrine | [] () | ld | [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | [] [] | libgphoto2 | [] () | libgphoto2_port | [] () [] | libgsasl | | libiconv | [] [] [] [] [] | libidn | [] [] [] | lifelines | [] () | liferea | [] [] [] [] [] | lilypond | [] [] [] | linkdr | [] [] [] | lordsawar | [] | lprng | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailfromd | | mailutils | [] | make | [] [] [] | man-db | | man-db-manpages | | minicom | [] [] [] [] | mkisofs | | myserver | | nano | [] [] [] | opcodes | [] [] | parted | [] [] | pies | | popt | [] [] [] [] [] | psmisc | [] [] [] | pspp | [] | pwdutils | [] | radius | [] | recode | [] [] [] [] [] [] | rosegarden | () () () | rpm | [] [] [] | rush | | sarg | | screem | | scrollkeeper | [] [] [] [] [] | sed | [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | | skencil | [] () [] | solfege | [] [] [] | solfege-manual | [] [] | soundtracker | [] [] [] | sp | [] | sysstat | [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] | tin | [] [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] | vice | () () | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] | wyslij-po | | xchat | [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] | +-------------------------------------------------+ crh cs da de el en en_GB en_ZA eo es et eu fa 5 64 105 117 18 1 8 0 28 89 18 19 0 fi fr ga gl gu he hi hr hu hy id is it ja ka kn +----------------------------------------------------+ a2ps | [] [] [] [] | aegis | [] [] | ant-phone | [] [] | anubis | [] [] [] [] | aspell | [] [] [] [] | bash | [] [] [] [] | bfd | [] [] [] | bibshelf | [] [] [] [] [] | binutils | [] [] [] | bison | [] [] [] [] | bison-runtime | [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] | cflow | [] [] [] | clisp | [] | coreutils | [] [] [] [] [] | cpio | [] [] [] [] | cppi | [] [] | cpplib | [] [] [] | cryptsetup | [] [] [] | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] [] [] [] | dink | [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] | freedink | [] [] [] | gas | [] [] | gawk | [] [] [] [] () [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] | gip | [] [] [] [] [] [] | gjay | [] | gliv | [] () | glunarclock | [] [] [] [] | gnubiff | () [] () | gnucash | () () () () () [] | gnuedu | [] [] | gnulib | [] [] [] [] [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] [] | gpe-aerial | [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] [] [] | gpe-calendar | [] [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] [] [] | gpe-contacts | [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] [] | gpe-go | [] [] [] [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] [] [] [] [] | gprof | [] [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] [] | grub | [] [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] | gtkorphan | [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] | gutenprint | [] [] [] [] | hello | [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] [] | indent | [] [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | () [] [] [] | iso_4217 | [] () [] [] [] [] | iso_639 | [] () [] [] [] [] [] [] [] | iso_639_3 | () [] [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] [] [] [] [] [] | keytouch-editor | [] [] [] [] [] | keytouch-keyboa... | [] [] [] [] [] | klavaro | [] [] | latrine | [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] () | libc | [] [] [] [] [] | libexif | [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] [] | libidn | [] [] [] [] | lifelines | () | liferea | [] [] [] [] | lilypond | [] [] | linkdr | [] [] [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] [] [] | m4 | [] [] [] [] [] [] | mailfromd | | mailutils | [] [] | make | [] [] [] [] [] [] [] [] [] | man-db | [] [] | man-db-manpages | [] | minicom | [] [] [] [] [] | mkisofs | [] [] [] [] | myserver | | nano | [] [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] [] | pies | | popt | [] [] [] [] [] [] [] [] [] | psmisc | [] [] [] | pspp | | pwdutils | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () () () () | rpm | [] [] | rush | | sarg | [] | screem | [] [] | scrollkeeper | [] [] [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] | shishi | [] | skencil | [] | solfege | [] [] [] [] | solfege-manual | [] [] | soundtracker | [] [] | sp | [] () | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux-ng | [] [] [] [] [] [] | vice | () () () | vmm | [] | vorbis-tools | [] | wastesedge | () () | wdiff | [] | wget | [] [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] | +----------------------------------------------------+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne +-----------------------------------------------+ a2ps | [] | aegis | | ant-phone | | anubis | [] [] | aspell | [] | bash | | bfd | | bibshelf | [] [] | binutils | | bison | [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] | cpio | | cppi | | cpplib | | cryptsetup | | dfarc | [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] | dink | | doodle | | e2fsprogs | | enscript | | exif | [] | fetchmail | | findutils | | flex | | freedink | [] | gas | | gawk | | gcal | | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] | gettext-tools | [] | gip | [] [] | gjay | | gliv | | glunarclock | [] | gnubiff | | gnucash | () () () () | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | [] | gold | | gpe-aerial | [] | gpe-beam | [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] | gpe-contacts | [] [] | gpe-edit | [] | gpe-filemanager | [] [] | gpe-go | [] [] [] | gpe-login | [] | gpe-ownerinfo | [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] | gpe-timesheet | [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | | gsasl | | gss | | gst-plugins-bad | [] [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | | gtick | | gtkam | [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | | hello | [] [] [] | help2man | | hylafax | | idutils | | indent | | iso_15924 | [] [] | iso_3166 | [] [] () [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] [] | iso_639 | [] [] | iso_639_3 | [] | jwhois | [] | kbd | | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | klavaro | [] | latrine | [] | ld | | leafpad | [] [] [] | libc | [] | libexif | | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | | libidn | | lifelines | | liferea | | lilypond | | linkdr | | lordsawar | | lprng | | lynx | | m4 | | mailfromd | | mailutils | | make | [] | man-db | | man-db-manpages | | minicom | [] | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | [] [] [] | psmisc | | pspp | | pwdutils | | radius | | recode | | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] | sed | | sharutils | | shishi | | skencil | | solfege | [] | solfege-manual | | soundtracker | | sp | | sysstat | [] | tar | [] | texinfo | [] | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] | wyslij-po | | xchat | [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +-----------------------------------------------+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr +---------------------------------------------------+ a2ps | [] [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] [] | anubis | [] [] [] | aspell | [] [] [] [] [] | bash | [] [] | bfd | [] | bibshelf | [] [] | binutils | [] [] | bison | [] [] [] | bison-runtime | [] [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] () | buzztard | [] [] | cflow | [] | clisp | [] [] | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cppi | [] | cpplib | [] | cryptsetup | [] | dfarc | [] | dialog | [] [] [] [] | dico | [] | diffutils | [] [] [] [] [] [] | dink | () | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | exif | [] [] [] () [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] [] | freedink | [] [] | gas | | gawk | [] [] [] [] | gcal | | gcc | [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] | gip | [] [] [] [] [] | gjay | | gliv | [] [] [] [] [] [] | glunarclock | [] [] [] [] [] | gnubiff | [] () | gnucash | [] () () () | gnuedu | [] | gnulib | [] [] [] [] | gnunet | | gnunet-gtk | | gnutls | [] [] | gold | | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] [] | gpe-contacts | [] [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] [] | gphoto2 | [] [] [] [] [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] | gramadoir | [] [] | grep | [] [] [] [] | grub | [] [] [] | gsasl | [] [] [] [] | gss | [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] [] [] | gutenprint | [] [] | hello | [] [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] [] [] [] | iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | iso_3166_2 | [] [] [] | iso_4217 | [] [] [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] [] [] | keytouch-editor | [] [] [] | keytouch-keyboa... | [] [] [] | klavaro | [] [] | latrine | [] [] | ld | | leafpad | [] [] [] [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] | libgphoto2_port | [] [] [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] | libidn | [] [] | lifelines | [] [] | liferea | [] [] [] [] [] () () [] | lilypond | [] | linkdr | [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] | make | [] [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] [] | minicom | [] [] [] [] | mkisofs | [] [] [] | myserver | | nano | [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | pies | [] | popt | [] [] [] [] | psmisc | [] [] [] | pspp | [] [] | pwdutils | [] | radius | [] [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () | rpm | [] [] [] | rush | [] [] | sarg | | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | skencil | [] [] | solfege | [] [] [] [] | solfege-manual | [] [] [] | soundtracker | [] | sp | | sysstat | [] [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] [] | vice | [] | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +---------------------------------------------------+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ a2ps | [] [] [] [] [] | 27 aegis | [] | 9 ant-phone | [] [] [] [] | 9 anubis | [] [] [] [] | 15 aspell | [] [] [] | 20 bash | [] [] [] | 12 bfd | [] | 6 bibshelf | [] [] [] | 16 binutils | [] [] | 8 bison | [] [] | 12 bison-runtime | [] [] [] [] [] [] | 29 bluez-pin | [] [] [] [] [] [] [] [] | 37 bombono-dvd | [] | 4 buzztard | [] | 7 cflow | [] [] [] | 9 clisp | | 10 coreutils | [] [] [] [] | 22 cpio | [] [] [] [] [] [] | 13 cppi | [] [] | 5 cpplib | [] [] [] [] [] [] | 14 cryptsetup | [] [] | 7 dfarc | [] | 9 dialog | [] [] [] [] [] [] [] | 30 dico | [] | 2 diffutils | [] [] [] [] [] [] | 30 dink | | 4 doodle | [] [] | 7 e2fsprogs | [] [] [] | 11 enscript | [] [] [] [] | 17 exif | [] [] [] | 16 fetchmail | [] [] [] | 17 findutils | [] [] [] [] [] | 20 flex | [] [] [] [] | 15 freedink | [] | 10 gas | [] | 4 gawk | [] [] [] [] | 18 gcal | [] [] | 5 gcc | [] [] [] | 7 gettext-examples | [] [] [] [] [] [] [] | 34 gettext-runtime | [] [] [] [] [] [] [] | 29 gettext-tools | [] [] [] [] [] [] | 22 gip | [] [] [] [] | 22 gjay | [] | 3 gliv | [] [] [] | 14 glunarclock | [] [] [] [] [] | 19 gnubiff | [] [] | 4 gnucash | () [] () [] () | 10 gnuedu | [] [] | 7 gnulib | [] [] [] [] | 16 gnunet | [] | 1 gnunet-gtk | [] [] [] | 5 gnutls | [] [] [] | 10 gold | [] | 4 gpe-aerial | [] [] [] | 18 gpe-beam | [] [] [] | 19 gpe-bluetooth | [] [] [] | 13 gpe-calendar | [] [] [] [] | 12 gpe-clock | [] [] [] [] [] | 28 gpe-conf | [] [] [] [] | 20 gpe-contacts | [] [] [] | 17 gpe-edit | [] [] [] | 12 gpe-filemanager | [] [] [] [] | 16 gpe-go | [] [] [] [] [] | 25 gpe-login | [] [] [] | 11 gpe-ownerinfo | [] [] [] [] [] | 25 gpe-package | [] [] [] | 13 gpe-sketchbook | [] [] [] | 20 gpe-su | [] [] [] [] [] | 30 gpe-taskmanager | [] [] [] [] [] | 29 gpe-timesheet | [] [] [] [] [] | 25 gpe-today | [] [] [] [] [] [] | 30 gpe-todo | [] [] [] [] | 17 gphoto2 | [] [] [] [] [] | 24 gprof | [] [] [] | 15 gpsdrive | [] [] [] | 11 gramadoir | [] [] [] | 11 grep | [] [] [] | 10 grub | [] [] [] | 14 gsasl | [] [] [] [] | 14 gss | [] [] [] | 11 gst-plugins-bad | [] [] [] [] | 26 gst-plugins-base | [] [] [] [] [] | 24 gst-plugins-good | [] [] [] [] | 24 gst-plugins-ugly | [] [] [] [] [] | 29 gstreamer | [] [] [] [] | 22 gtick | [] [] [] | 13 gtkam | [] [] [] | 20 gtkorphan | [] [] [] | 14 gtkspell | [] [] [] [] [] [] [] [] [] | 45 gutenprint | [] | 10 hello | [] [] [] [] [] [] | 21 help2man | [] [] | 7 hylafax | [] | 5 idutils | [] [] [] [] | 17 indent | [] [] [] [] [] [] | 30 iso_15924 | () [] () [] [] | 16 iso_3166 | [] [] () [] [] () [] [] [] () | 53 iso_3166_2 | () [] () [] | 9 iso_4217 | [] () [] [] () [] [] | 26 iso_639 | [] [] [] () [] () [] [] [] [] | 38 iso_639_3 | [] () | 8 jwhois | [] [] [] [] [] | 16 kbd | [] [] [] [] [] | 15 keytouch | [] [] [] | 16 keytouch-editor | [] [] [] | 14 keytouch-keyboa... | [] [] [] | 14 klavaro | [] | 11 latrine | [] [] [] | 10 ld | [] [] [] [] | 11 leafpad | [] [] [] [] [] [] | 33 libc | [] [] [] [] [] | 21 libexif | [] () | 7 libextractor | [] | 1 libgnutls | [] [] [] | 9 libgpewidget | [] [] [] | 14 libgpg-error | [] [] [] | 9 libgphoto2 | [] [] | 8 libgphoto2_port | [] [] [] [] | 14 libgsasl | [] [] [] | 13 libiconv | [] [] [] [] | 21 libidn | () [] [] | 11 lifelines | [] | 4 liferea | [] [] [] | 21 lilypond | [] | 7 linkdr | [] [] [] [] [] | 17 lordsawar | | 1 lprng | [] | 3 lynx | [] [] [] [] | 17 m4 | [] [] [] [] | 19 mailfromd | [] [] | 3 mailutils | [] | 5 make | [] [] [] [] | 21 man-db | [] [] [] | 8 man-db-manpages | | 4 minicom | [] [] | 16 mkisofs | [] [] | 9 myserver | | 0 nano | [] [] [] [] | 21 opcodes | [] [] [] | 11 parted | [] [] [] [] [] | 15 pies | [] [] | 3 popt | [] [] [] [] [] [] | 27 psmisc | [] [] | 11 pspp | | 4 pwdutils | [] [] | 6 radius | [] [] | 9 recode | [] [] [] [] | 28 rosegarden | () | 0 rpm | [] [] [] | 11 rush | [] [] | 4 sarg | | 1 screem | [] | 3 scrollkeeper | [] [] [] [] [] | 27 sed | [] [] [] [] [] | 30 sharutils | [] [] [] [] [] | 22 shishi | [] | 3 skencil | [] [] | 7 solfege | [] [] [] [] | 16 solfege-manual | [] | 8 soundtracker | [] [] [] | 9 sp | [] | 3 sysstat | [] [] | 15 tar | [] [] [] [] [] [] | 23 texinfo | [] [] [] [] [] | 17 tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux-ng | [] [] [] [] | 20 vice | () () | 1 vmm | [] | 4 vorbis-tools | [] | 6 wastesedge | | 2 wdiff | [] [] | 7 wget | [] [] [] [] [] | 26 wyslij-po | [] [] | 8 xchat | [] [] [] [] [] [] | 36 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If June 2010 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://translationproject.org/extra/matrix.html'. 1.5 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `coordinator@translationproject.org' to make the `.pot' files available to the translation teams. drumgizmo-0.9.14/config.guess0000755000076400017500000013031313077054102013067 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. timestamp='2009-12-30' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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. # Originally written by Per Bothner. Please send patches (context # diff format) to and include a ChangeLog # entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # 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 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 (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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/*) eval $set_cc_for_build cat <<-EOF > $dummy.c #include #ifdef __UCLIBC__ # ifdef __UCLIBC_CONFIG_VERSION__ LIBC=uclibc __UCLIBC_CONFIG_VERSION__ # else LIBC=uclibc # endif #else # ifdef __dietlibc__ LIBC=dietlibc # else LIBC=gnu # endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-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 ;; *: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'` exit ;; 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:*:[456]) 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:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 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 ;; 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 ;; 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 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo cris-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo frv-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; } ;; or32:Linux:*:*) echo or32-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 ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux 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 ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo x86_64-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 ;; 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 case $UNAME_PROCESSOR in i386) eval $set_cc_for_build 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 UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac 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 ;; 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 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # 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: drumgizmo-0.9.14/Makefile.am0000644000076400017500000000053613077120601012604 00000000000000AUTOMAKE_OPTIONS = gnu SUBDIRS = tools include src plugingui plugin drumgizmo man test DISTDIRS = tools include src plugingui plugin drumgizmo man test EXTRA_DIST = \ version.h \ hugin/hugin.h \ hugin/hugin.hpp \ hugin/hugin.c \ hugin/hugin_util.h \ hugin/hugin_syslog.h \ hugin/hugin_syslog.c \ hugin/hugin_filter.h \ hugin/hugin_filter.c drumgizmo-0.9.14/config.h.in0000644000076400017500000000500413106051627012572 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_GETOPT_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `atomic' library (-latomic). */ #undef HAVE_LIBATOMIC /* Define to 1 if you have the `expat' library (-lexpat). */ #undef HAVE_LIBEXPAT /* Define to 1 if you have the `pthread' library (-lpthread). */ #undef HAVE_LIBPTHREAD /* Define to 1 if you have the `rt' library (-lrt). */ #undef HAVE_LIBRT /* 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 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ #undef NO_MINUS_C_MINUS_O /* 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 /* libsamplerate is present */ #undef USE_SRC /* zita-resampler is present */ #undef USE_ZITA /* Version number of package */ #undef VERSION /* Use resample */ #undef WITH_RESAMPLER /* Enable large inode numbers on Mac OS X 10.5. */ #ifndef _DARWIN_USE_64_BIT_INODE # define _DARWIN_USE_64_BIT_INODE 1 #endif /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES drumgizmo-0.9.14/version.h0000644000076400017500000000003113106051527012377 00000000000000#define VERSION "0.9.14" drumgizmo-0.9.14/config.sub0000755000076400017500000010402313077054102012531 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. timestamp='2010-01-22' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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. # Please send patches to . Submit a context # diff and a properly formatted GNU ChangeLog entry. # # 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 (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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-dietlibc | linux-newlib* | 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/'` ;; *) 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*) 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 \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx | dvp \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | 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 \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | ubicom32 \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | picochip) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-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-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | 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-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | 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-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile-* | tilegx-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | 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 ;; 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) 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'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; 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 ;; 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 ;; mipsEE* | ee | ps2) basic_machine=mips64r5900el-scei case $os in -linux*) ;; *) os=-elf ;; esac ;; iop) basic_machine=mipsel-scei os=-irx ;; dvp) basic_machine=dvp-scei os=-elf ;; 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-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; 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 ;; 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) basic_machine=powerpc-unknown ;; ppc-*) 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-*) 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) 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 ;; 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 ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; # This must be matched before tile*. tilegx*) basic_machine=tilegx-unknown os=-linux-gnu ;; tile*) basic_machine=tile-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 ;; 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* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \ | -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 ;; -kaos*) os=-kaos ;; -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 ;; # 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 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) 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: drumgizmo-0.9.14/test-driver0000755000076400017500000000761113077054103012752 00000000000000#! /bin/sh # test-driver - basic testsuite driver script. scriptversion=2012-06-27.10; # UTC # Copyright (C) 2011-2013 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . # Make unconditional expansion of undefined variables an error. This # helps a lot in preventing typo-related bugs. set -u usage_error () { echo "$0: $*" >&2 print_usage >&2 exit 2 } print_usage () { cat <$log_file 2>&1 estatus=$? if test $enable_hard_errors = no && test $estatus -eq 99; then estatus=1 fi case $estatus:$expect_failure in 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; 0:*) col=$grn res=PASS recheck=no gcopy=no;; 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; *:*) col=$red res=FAIL recheck=yes gcopy=yes;; esac # Report outcome to console. echo "${col}${res}${std}: $test_name" # Register the test result, and other relevant metadata. echo ":test-result: $res" > $trs_file echo ":global-test-result: $res" >> $trs_file echo ":recheck: $recheck" >> $trs_file echo ":copy-in-global-log: $gcopy" >> $trs_file # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: drumgizmo-0.9.14/man/0000755000076400017500000000000013106063422011377 500000000000000drumgizmo-0.9.14/man/drumgizmo.10000644000076400017500000000602213077162325013427 00000000000000.TH "DRUMGIZMO" "1" "23 April 2017" "drumgizmo" "" .SH NAME drumgizmo \- drum application .SH SYNOPSIS \fBdrumgizmo\fR [OPTIONS] drumkitfile .SH "DESCRIPTION" .PP \fBDrumGizmo\fR is an open source cross-platform drum plugin and stand-alone application. It is comparable to several commercial drum plugin products. .PP DrumGizmo uses an open drumkit file format, allowing the community to create their own drumkits. It has multichannel output, making it possible to mix it just the way you would a real drumkit. The optional built-in humanizer analyzes the midi notes, adjusting velocities on-the-fly. This client can be a stand-alone midi renderer, generating .wav files, 1 for each channel. Or use DrumGizmo as a software sampler for an electronic drumkit. There are also plugin versions available. .SH "OPTIONS" .PD 0 .RE .RS 7 \fB-i, --inputengine \fR{dummy|test|jackmidi|midifile} .RS 7 Use said event input engine. .RE \fB-I, --inputparms parmlist\fR .RS 7 Set input engine parameters. \fBjackmidi:\fR .P midimap= \fBmidifile:\fR .P file= .P speed= (default 1.0) .P track= (default -1, all tracks) .P midimap= .P loop= \fBtest:\fR .P p= (default 0.1) .P instr= (default -1, random instrument) .P len= (default -1, forever) \fBdummy:\fR .RE \fB-o, --outputengine \fR{dummy|alsa|jackaudio|wavfile|oss} .RS 7 Use said audio output engine. .RE \fB-O, --outputparms parmlist\fR .RS 7 Set output engine parameters. \fBalsa:\fR .P dev= (default 'default') .P frames= (default 32) .P srate= (default 44100) \fBwavfile:\fR .P file= (default 'output') .P srate= (default 44100) \fBoss:\fR .P dev= (default /dev/dsp) .P srate= (default 44100) .P max_fragments= (default 4) .P fragment_size= (default 8) .P More info on \fBmax_fragments\fR and \fBfragment_size\fR on http://manuals.opensound.com/developer/SNDCTL_DSP_SETFRAGMENT.html \fBjackaudio:\fR \fBdummy:\fR .RE \fB-e, --endpos\fR .RS 7 Number of samples to process, (default -1: infinite) .RE \fB-s, --streaming\fR .RS 7 Enable diskstreaming .RE \fB-S, --strimingparms parmlist\fR .RS 7 Parameters for controling the streaming buffers. .P \fBlimit\fR= (Limit the amount of preloaded drumkit data to the size) \" .P \" \fBchunk_size\fR= (chunk size in k,M,G) .RE \fB-v, --version\fR .RS 7 Print drumgizmo version and exit. .RE \fB-h, --help\fR .RS 7 Print command line help and exit. .RE \fBdrumkitfile\fR .RS 7 Load the drumkitfile. .RE .SH "EXAMPLES" \fBRender midifile to wav files:\fR .RS 7 drumgizmo -i midifile -I file=file.mid,midimap=midimap.xml -o wavfile -O file=prefix drumkit.xml .RE \fBReceive midi from Jack and send audio output to speakers:\fR .RS 7 drumgizmo -i jackmidi -I midimap=midimap.xml -o jackaudio drumkit.xml .RE .SH "BUGS" Report bugs to http://www.drumgizmo.org/wiki/doku.php?id=bugs. .SH "ADDITIONAL INFORMATION" For further information, visit the website http://www.drumgizmo.org. drumgizmo-0.9.14/man/Makefile.am0000644000076400017500000000010713077120602013352 00000000000000man_MANS = \ drumgizmo.1 \ drumgizmo.fr.1 EXTRA_DIST = $(man_MANS) drumgizmo-0.9.14/man/drumgizmo.fr.10000644000076400017500000000745113077162326014045 00000000000000.TH "DRUMGIZMO" "1" "23 April 2017" "drumgizmo" "" .SH NOM drumgizmo \- application de batterie .SH SYNOPSIS \fBdrumgizmo\fR [OPTIONS] fichier_de_kit_de_batterie .SH "DESCRIPTION" .PP \fBDrumGizmo\fR est un greffon ainsi qu'une application autonome de batterie multi-plateforme et à source ouverte. Il est comparable à plusieurs produits commerciaux de greffon de batterie. .PP DrumGizmo utilise un format de fichier de kit de batterie ouvert, permettant à la communauté de créer ses propres kits de batterie. Il possède une sortie multi-canaux, rendant possible de mixer exactement de même la manière que vous le feriez avec un kit de batterie réel. L'humaniseur optionnel inclu analyse les notes MIDI, en ajustant leurs vélocités à-la-volée. Ce client peut être utilisé comme un logiciel autonome effectuant un rendu MIDI, générant des fichiers .wav, 1 pour chaque canal. Ou bien, vous pouvez utilisez DrumGizmo comme un échantillonneur logiciel pour un kit de batterie électronique. Une version en greffon est également disponible. .SH "OPTIONS" .PD 0 .RE .RS 7 \fB-i, --inputengine \fR{dummy|test|jackmidi|midifile} .RS 7 Utilise le moteur d'entrée d'évènements indiqué. .RE \fB-I, --inputparms liste_de_paramètres\fR .RS 7 Attribue des paramètres au moteur d'entrée. \fBjackmidi:\fR .P midimap= \fBmidifile:\fR .P file= .P speed= (1.0 par défaut) .P track= (-1 par défaut, toutes les pistes) .P midimap= .P loop= \fBtest:\fR .P p= (0.1 par défaut) .P instr= (-1 par défaut, instrument aléatoire) .P len= (-1 par défaut, toujours) \fBdummy:\fR .RE \fB-o, --outputengine \fR{dummy|alsa|jackaudio|wavfile|oss} .RS 7 Utilise le moteur de sortie audio indiqué. .RE \fB-O, --outputparms liste_de_paramètres\fR .RS 7 Attribue des paramètres au moteur de sortie. \fBalsa:\fR .P dev= ('default' par défaut) .P frames= (32 par défaut) .P srate= (44100 par défaut) \fBwavfile:\fR .P file= ('output' par défaut) .P srate= (44100 par défaut) \fBoss:\fR .P dev= (/dev/dsp par défaut) .P srate= (44100 par défaut) .P max_fragments= (4 par défaut) .P fragment_size= (8 par défaut) .P Davantage d'informations sur \fBmax_fragments\fR et \fBfragment_size\fR sur la page http://manuals.opensound.com/developer/SNDCTL_DSP_SETFRAGMENT.html (en anglais) \fBjackaudio:\fR \fBdummy:\fR .RE \fB-e, --endpos\fR .RS 7 Nombre d'échantillons à traiter, (-1 par défaut : infini) .RE \fB-s, --streaming\fR .RS 7 Active le streaming du disque .RE \fB-S, --strimingparms liste_de_paramètres\fR .RS 7 Paramètres pour le contrôle des tampons de streaming. .P \fBlimit\fR= (Limite à cette taille, la quantité de données du kit de batterie préchargées) \" .P \" \fBchunk_size\fR= (taille de la quantité en k,M,G) .RE \fB-v, --version\fR .RS 7 Affiche la version de drumgizmo puis quitte. .RE \fB-h, --help\fR .RS 7 Affiche l'aide de commande terminal puis quitte. .RE \fBfichier_de_kit_de_batterie\fR .RS 7 Charge le fichier_de_kit_de_batterie. .RE .SH "EXEMPLES" \fBEffectuer un rendu d'un fichier_midi vers des fichiers wav :\fR .RS 7 drumgizmo -i fichier_midi -I file=fichier.mid,midimap=midimap.xml -o wavfile -O file=prefix drumkit.xml .RE \fBRecevoir le MIDI depuis Jack et envoyer la sortie audio vers les haut-parleurs :\fR .RS 7 drumgizmo -i jackmidi -I midimap=midimap.xml -o jackaudio drumkit.xml .RE .SH "BOGUES" Rapporter les bogues à http://www.drumgizmo.org/wiki/doku.php?id=bugs (en anglais). .SH "INFORMATION ADDITIONELLE" Pour davantage d'informations, visitez le site internet http://www.drumgizmo.org. drumgizmo-0.9.14/man/Makefile.in0000644000076400017500000003717413106051610013374 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 = man DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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; }; \ } man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ man_MANS = \ drumgizmo.1 \ drumgizmo.fr.1 EXTRA_DIST = $(man_MANS) 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 man/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu man/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-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(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 $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; 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." 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-man 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-man1 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-man uninstall-man: uninstall-man1 .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-man1 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-man \ uninstall-man1 # 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: drumgizmo-0.9.14/install-sh0000755000076400017500000003325513077054102012562 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: drumgizmo-0.9.14/README0000644000076400017500000000515213106047433011433 00000000000000Installation Instructions ************************* NOTE1: Certain audio-centric Linux distros such as KxStudio has DrumGizmo included in the repository. To install it on such systems, use the distros package manager, search for it and install it. Please refer to each distro's documentation for detailed instructions on how to do this. NOTE2: Be aware that if you are planning on running the LV2 plugin from within one of the binary releases of Ardour, you must make sure that drumgizmo is using the same version of libpng, pthread and expat as Ardour was compiled with (or at least versions matching the ABI), otherwise the plugin will show strange behaviour or even crash upon load. Compiling and Installing on linux (LV2) ======================================= This guide will show you how to unpack, compile and install the lv2 version of the drumgizmo plugin. It will also show how to make it usable for the LV2 host Ardour3. Prerequisites ------------- * lv2-devel package >= 1.0 * libsndfile-devel >= 1.0.21 * zita-resampler-devel (no minimal version specified) * libexpat-devel (no minimal version specified) * pkg-config >= 0.23 * Xlib >= 1.0 * libpng >= 1.2 * libsmf (no minimal version specified) * pthread (no minimal version specified) * libcppunit-dev (only necessary when compiling from git sources) Compiling source tarball ------------------------ $ tar xvzf drumgizmo-[version].tar.gz (you probably already did this) $ cd drumgizmo-[version] $ ./configure --prefix=$PWD/install --enable-lv2 $ make $ make install Compiling from git sources -------------------------- $ git clone http://git.drumgizmo.org/drumgizmo.git $ cd drumgizmo $ git submodule init $ git submodule update $ ./autogen.sh $ ./configure --prefix=$PWD/install --enable-lv2 If you want to compile only the LV2 parts of the plugin use '--disable-editor --disable-cli' as additional parameters to the configure script. Now compile and install $ make $ make install Installing for use with Ardour3 ------------------------------- When the make install step has been successfully performed the source directory will contain a folder named install. In this folder the: install/lib/lv2/drumgizmo.lv2 ... is located. This folder contain all the files needed for the plugin to run. In order to make it work with Ardour3, either copy this directory to the lv2 plugin dir (usually /usr/lib/lv2) or create a symbolic link to the directory $ ln -s [dg path]/install/lib/lv2/drumgizmo.lv2 /usr/lib/lv2/drumgizmo.lv2 You need to be root to do this. Keep in mind that the lv2 directory differs from distro to distro, so do a search for it in order to verify the correct location. drumgizmo-0.9.14/ABOUT0000644000076400017500000000044413077120601011343 00000000000000DrumGizmo is an open source, multichannel, multilayered, cross-platform drum plugin and stand-alone application. It enables you to compose drums in midi and mix them with a multichannel approach. It is comparable to that of mixing a real drumkit that has been recorded with a multimic setup. drumgizmo-0.9.14/ChangeLog0000644000076400017500000003377613106063235012340 00000000000000Version 0.9.14 ============== Note: LAC2017 release Release date: May 14th 2017 Contributors: deva, chaot4, Muldjord, meka, Hans Petter Selasky Special extra thanks with a cherry on top: Robin Gareus Features: - Introduced new resampler module in ui Bugfixes: - CLI - CLI exits right away, doesn't do anything - Make ''-i midifile -I midimap=~/...'' recognize the home directory. Replace "~" by the home directory in ./drumgizmo/input/midifile.cc - Properly get/set OSS buffers - Add ---no-resampling option - Engine - Fix midi note on/off mask - Streamer BUG: If there is a cache miss on one of the audiofiles (1 channel) in a sample that one sample will get delayed compared to the others - Streamer BUG: When nodata buffer is being reallocated we need to make sure that the old buffer is not being used by one of the cache ids - Resampler BUG: Fix corruption/crash when enabling/disabling resampler at run-time - Update Window build environment to a more recent mingw64 - Remove obsolete old mingw32 thread hacks - Introduce clear signal, showing if we had an underrun because of diskstreaming - Fix crash on with low preload size - Initial status of drumkit is "Error" on first opening the plugin - UI - Scroll-wheel on tab buttons should iterate through the tabs - Refactor TextEdit. (use vector in preprocessing etc.) - Fix "unexpected easter egg" - Fix high CPU load of plugingui when shown in a host (All platforms/DAWs) - Return handle to the newly created window in ''PluginLV2::uiInstantiate'' in the ''widget'' pointer - Add bypass button for the resampler - Fix redraw on changing desktops - General - Don't put .a and .la files in lv2 folder on install Version 0.9.13 ============== Release date: April 23rd 2017 Contributors: deva, chaot4, Muldjord, meka Highlighted changes / fixes: - New ui - Diskstreaming - OSS support All changes / fixes: - Fixed rcgen compilation with BSD make - Made ui and engine compile as internal libs instead of compiling all sources in each component - Implemented settings for controlling diskstreaming - Complete gui makeover - Made changes to UI to incorporate diskstreaming controls - Now generates resources at compile-time - Made window resize flicker-free on X11 - Fixed missing redraw on resize event on X11 - Now uses XShmImage for rendering on X11 - Refactored event system on X11 and Win32 - Now supports size and position changes in the same event on X11 - New rendering system based on ''dirty'' flag - Added "partial rendering" support in rendering system - Fixed double click - Scroll-wheel inside textareas now works - Made diskstreaming controls work in the engine - Made DrumKitLoader use disk streaming settings - Fixed crash or channel overload on stop/start command or loop due to invalid pointer returned to the engine from the diskstreamer - Made AudioCache use configurable fixed size chunks - Stores memory limit and chunk size in config as ints instead of floats - Made cli support for disk cache controls - ''-s'' and ''-S'' enables diskstreaming and set its parameters - Updated man page - Changed onsite info for cli - Added FreeBSD OSS audio output support - Added buffer size control for OSS audio output module - Fixed the dgreftest for aasimonster2 - Added dependency check for rcgen so resource_data.cc is regenerated whenever one of the resource png files change Version 0.9.12 ============== Release date: January 18th 2017 Contributors: deva, chaot4, Muldjord, meka - Fix semaphore EINT assertion in MusE - Fix atomic link check - always link with atomic - Draw boxes instead of nothing when trying to render characters not in the font map - Extend character map to include full latin1 character set - Added full support for FreeBSD - Fix missing "mouse-up" events when runnnig lv2 plugin on linux in a JUCE based host (Helio or Tracktion) - Added missing ttl as per: https://github.com/falkTX/Carla/issues/412 - Algorithmically generate the test .wav files to be able to run the tests also with the tarball - Add --lv2dir parameter to configure Version 0.9.11 ============== Release date: October 29th 2016 Contributors: deva, cglocke, chaot4, Jin^Eld - Unicode crash bug fixed - lv2 inline display - Fixed problems when running more than one instance of DrumGizmo plugin in the same host Special thanks to 'Maxim Alexandrovich (Ljutingr)' for helping debugging the unicode problem. Version 0.9.10 ============== Release date: March 30th 2016 Contributors: deva, suhr - Fix the 'no sound from plugin when resampler active' bug. - Fix the 'freeze on tempo change' bug. - Fix backspace in lineedits. Version 0.9.9 ============= Release date: March 24th 2016 Contributors: cglocke, chaot4, deva, muldjord, suhr, viccuad Highlighted changes / fixes: - Switch to LGPLv3 - Linux VST - Embedded UI - Prepped for diskstreaming (but not yet implemented in UI) - Load of bug fixes All changes / fixes: - Remove unused libraries - Headers are currently a mix and gpl2 and gpl3. Should be fixed - UI refactor - Move textedit widget to refactor branch - Move autolayout to refactor branch - Use new notifier and refactor to new code guidelines: - LineEdit fixes: - Follow marker - Scroll with long line and cursor in beginning of line - Update Linux build agents so they support C++11 - Refactor CLI - Rewrite all modules to be compiled directly into the binary - Modernise all cli files - Add diskstreaming feature with infinite buffer size: - Test on windows - Make sure on-the-fly framesize change is working - Set pre-cache size to "infinite" - Make std::mutex work with mingw - Make unit tests: - AudioCacheIDManager - AudioCacheFile - AudioCacheEventHandler - AudioCache - Design and implement AudioCache - Use AudioCache in inner-loop - Get framesize dynamically from output engine - Handle snd files with refcounter - Collapse events from same file and position into single multichannel event - Make sure free-wheel-mode works in jack, lv2 and vst - Add referenced drumkit/midi files feature - Remove version number from man page - Make benchmark performance comparisons with the "old" engine - Add a valgrind test script - Fix some problems reported by valgrind - Add memory check to warn the user if the drumkit about to be loaded cannot fit into memory - LV2/VST: Make UI event handling based on idle/run calls from the plugin host instead of in a thread - Port "The Aasimonster" to new velocity format Version 0.9.8.1-hotfix ====================== Released March 16th 2015 - Fixed bug where resampling resulted in sample skewing over the output channels Version 0.9.8 ============= Released February 22nd 2015 - Fix deprecated autoconf/automake macros. (Nils Tonnätt) - Update LV2 plugin to use new URID extension (http://lv2plug.in/ns/ext/urid/). (deva) - Fix state store so it does not store terminating zero in config xml. (deva) - "No sound" bug in resampler code. See: http://drumgizmo.org/irc-logs/drumgizmo.log.11Jan2015 - Make cli wait for drumkit to finish loading before starting the engine. (Jin^eLD) - Make cli TYPE_STOP event wait until active events is empty. (deva) - Add basic man page. (Nils Tonnätt) - Reflect input/output parms in cli help text. (suhr) - Reflect input/output parms in cli man page. (muldjord) - Make resampler depend directly on zita-resampler and make libsamplerate an active opt-in. (suhr) - Include test directory in dist. (suhr) - Don't AC_SUBST zita libs and cflags if not used/detected by configure. (suhr) - Make all use of atof and sprintf("%f") locale independent. (deva) - Fix crash after rendering midi file to wav files via DG cli. (deva) - Remove wavfile.la in output dir. (deva) - Replace obsolete cli -p argument (preload) with -a (async-load) argument. (deva) Version 0.9.7 ============= Released December 7th 2014 - Resampling on channel output to match system. (in 'resample' branch) (deva) - Zita on windows, configure lib detection - Add missing resampler unit test files. - Make resample work on VST. - Fix LV2 UI crash on open. (deva) - Global config file. (suhr) - Remember last browse path. (suhr) - Don't show hidden folder in file browser. (suhr) - Lineedit follow marker. (suhr) - LineEdit, scroll when in end on line and arrow right typed. - Remove printf and uncommented code Version 0.9.6 ============= Released September 9th 2014 - Editor split out into own project. (deva,suhr) - Integrate VST build into autotools. (deva) - Make 64bit VST binary. (deva) - Accept loading the same kit twice. (deva) - Reduce probability of playing the same sample twice in a row. (deva) - Normalise velocity range (was 0 to hardest sample, now is weakest sample to hardest sample). (deva) - Make sure loading a new kit after another works properly. (muldjord) Version 0.9.5 ============= Released April 27th 2014 - Editor changes: - Add stroke power attribute to drumkit xml format. (suhr) - Realtime update of waveform view when dragging fadeout slider. (deva) - Export energy levels to .xml file. (deva) - Clicking hit circles in velocity view selects corresponding in waveform view. (deva) - After selecting a hit by clicking a circle, allow direct deletion using "delete" kbd key. (deva) - Make hits in velocity view dragable. (deva) - Marked selection (ie. its values) is shown as lineedits in "edit" tab, changable by-value. (deva) - Enable multichannel export both for .wav and for .xml. (deva) - Turn volume slider into actual mixer fader instead of sample multiplier. (suhr) - Create filebrowser for selecting export path. (suhr) - Create main config file for saving and loading current values. (suhr) - Make player use fadein/out while playing (controllable through checkbox somewhere?) (deva) - Make engine use version number in order to select velocity algorithms and remove --with-experimental configure parameter. (deva) - Use Atom lv2 midi events. (suhr) - Make jack backend work on all buffer sizes. (deva) Version 0.9.4 ============== Released March 5th 2014 - Add multichannel sample support. (John Hammen) - Write README, ChangeLog and AUTHORS files. (deva) - Delete old partially broken unit test system. (deva) - Fix double click on toggle button to not leave the button in its middle state. (deva) - Make plugin gui window fixed in size. (deva) - Fix lineedit mouseclick to the right of the text, which should position text cursor to the right of the text. (unassigned) - Handle sse optimisation toggling in configure.in. (suhr) - Fix memory leak in Image class (png structure currently not free'd). (deva) - Improve FileBrowser functionality. (suhr) - If filename lineedit is empty and the other one is not, use the non/empty lineedit path initially when opening filebrowser. (deva) - Make it possible to type a path and have the browser switch accordingly. (suhr) - Sort list by directories first and files next. (suhr) - Filter out non-drumkit files. (suhr) - Identify folders by appending '/' to their names. (suhr) - Remove double '\\' after drive letter in filebrowser on Windows. (suhr) - Test new filebrowser on Windows. (suhr) - Handle directory that can not be opened. (suhr) - Scrollbar is drawed wrong when few elements in list. (deva) - Refactor GUI::EventHandler. (deva) - Make Carla store plugin setting. (deva) - Make it work in QTractor. (deva) - Add jackaudio output module. (deva) - Support multiple samplerates by resampling at load-time (feature request from Cédric 'SxDx'). (deva) - Modernise autoconf. (deva) - Add new unit test system. (deva) - Find and fix LV2 midi velocities magically disappearing. (suhr) We can't reproduce this. Please contact us if you have this problem. Version 0.9.3 ============== Released on May 7th 2013, ie. LAC 2013 version - Make filebrowser use strings instead of chdir. (suhr) - Set "Creator" in the LV2 config. (deva) - Prevent mouse button up events from propagating after a double click if the window if closed. (deva) - libpng error handling (especially ubuntu libpng version mismatch vs. ardour, 12.49 vs. 1.6). (deva) - Optimise GUI rendering so that it doesn't feel sluggish to work with. (deva) - Fix bug, where the plugin starts using 100% cpu even with no notes playing. (deva) - Make midifile load send load status to GUI. (deva) - Make DrumKitLoader stop loading on plugin deletion and if a new drumkit is being loaded. (deva) - Make listview scrollbar knob work. (deva) - Make "give me all parameter value" message with engine respons for GUI initialisation. (deva) - Make humaniser parameters value set/get work using messages. (deva) - Create GUI::ProgressBar class for use in load feedback. (deva) - Implement engine -> GUI signaling mechanism (for load status, etc). (deva) - Implement GUI -> engine signaling mechanism (reload drumkit, read parameter, etc). (deva) - Make layout engine classes (Painter::Box/Painter::Bar). (deva) - Refactor GUI::Font. (deva) - Design and render as png-pixmaps new fonts. (muldjord) - Design new layout widgets. (muldjord) * Pushbutton * Knob * On/off switch * Lineedit * Combobox * Item view with scrollbars - Implement new layout as a new layout engine. (deva) - Create PNG loader. (deva) - Make GUI::Image class able to use libpng 1.2. (nemo) - Create RC handler (embed PNG images and fonts directly in the binary). (deva) - Make 'instrument group' feature that can stop an open hihat, when a closed hihat is played. (deva) - Check for x11 lib and headers in configure. (deva) Version 0.9.2 and older (prehistoric) ===================================== Released on March 25th 2013. - Make autotools project. - Make event interface. - Make midi-node -> sample mapping. - Make drumkit xml file format spec. - Make xml reader/parser. - Make alternative audio backends work * ALSA (output) * ALSA Midi (input) * Jack (output) * JackMidi (input) * SndFile (output) * Midifile (input) - Make Win32 port. - Make plugin-able * LV2 * VST - Make basic drumkit editor. drumgizmo-0.9.14/Makefile.in0000644000076400017500000006312313106051610012612 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 = INSTALL NEWS README AUTHORS ChangeLog \ $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/configure $(am__configure_deps) \ $(srcdir)/config.h.in ABOUT-NLS COPYING compile config.guess \ config.rpath config.sub depcomp install-sh missing ltmain.sh ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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 = 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 \ 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 GZIP_ENV = --best DIST_TARGETS = 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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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 = gnu SUBDIRS = tools include src plugingui plugin drumgizmo man test DISTDIRS = tools include src plugingui plugin drumgizmo man test EXTRA_DIST = \ version.h \ hugin/hugin.h \ hugin/hugin.hpp \ hugin/hugin.c \ hugin/hugin_util.h \ hugin/hugin_syslog.h \ hugin/hugin_syslog.c \ hugin/hugin_filter.h \ hugin/hugin_filter.c 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) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu 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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # 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 config.h 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." 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-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 $(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: .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-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: drumgizmo-0.9.14/include/0000755000076400017500000000000013106063415012251 500000000000000drumgizmo-0.9.14/include/Makefile.am0000644000076400017500000000004712525310660014227 00000000000000EXTRA_DIST = \ audiotypes.h \ event.hdrumgizmo-0.9.14/include/Makefile.in0000644000076400017500000003110213106051610014225 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 = include DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ EXTRA_DIST = \ audiotypes.h \ event.h 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 include/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/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." 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: drumgizmo-0.9.14/include/event.h0000644000076400017500000000302213077121242013460 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * event.h * * Fri Jun 3 12:10:50 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include // TODO: Make enum class //! Event types #define TYPE_ONSET 0 #define TYPE_STOP 1 //! POD datatype for input event transport. struct event_t { std::size_t type; //!< The type of the event. std::size_t instrument; //!< The instrument number. std::size_t offset; //!< The offset position in the input buffer float velocity; //!< The velocity if the type is a note on [0; 1] }; drumgizmo-0.9.14/include/audiotypes.h0000644000076400017500000000257012676564355014560 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * sample.h * * Fri Jun 3 12:12:17 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef __DRUMGIZMO_AUDIOTYPES_H__ #define __DRUMGIZMO_AUDIOTYPES_H__ //typedef signed short int sample_t; typedef float sample_t; typedef unsigned int channels_t; typedef unsigned int channel_t; typedef float level_t; #endif/*__DRUMGIZMO_AUDIOTYPES_H__*/ drumgizmo-0.9.14/plugin/0000755000076400017500000000000013106063421012121 500000000000000drumgizmo-0.9.14/plugin/manifest.ttl0000644000076400017500000000032012673467205014407 00000000000000@prefix lv2: . @prefix rdfs: . a lv2:Plugin ; lv2:binary ; rdfs:seeAlso . drumgizmo-0.9.14/plugin/vst/0000755000076400017500000000000013106063421012735 500000000000000drumgizmo-0.9.14/plugin/vst/Makefile.am0000644000076400017500000000556213077120602014723 00000000000000if ENABLE_VST noinst_LTLIBRARIES = libvstsdk.la endif # We know there are warnings in the VSTSDK code, so don't consider them errors. CXXFLAGS:=$(filter-out -Werror -Wall ,$(CXXFLAGS)) # Targets to copy vst source files pluginterfaces/vst2.x: $(MKDIR_P) pluginterfaces/vst2.x pluginterfaces/vst2.x/aeffect.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffect.h cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffect.h $@ pluginterfaces/vst2.x/aeffectx.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffectx.h cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffectx.h $@ #pluginterfaces/vst2.x/vstfxstore.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/vstfxstore.h # cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/vstfxstore.h $@ public.sdk/source/vst2.x: $(MKDIR_P) public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffectx.h: public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffect.h pluginterfaces/vst2.x/aeffect.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.h $@ public.sdk/source/vst2.x/audioeffectx.cpp: public.sdk/source/vst2.x public.sdk/source/vst2.x/aeffeditor.h pluginterfaces/vst2.x/aeffectx.h public.sdk/source/vst2.x/audioeffectx.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.cpp $@ public.sdk/source/vst2.x/audioeffect.h: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.h $@ public.sdk/source/vst2.x/audioeffect.cpp: public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffect.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.cpp $@ public.sdk/source/vst2.x/aeffeditor.h: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/aeffeditor.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/aeffeditor.h $@ public.sdk/source/vst2.x/vstplugmain.cpp: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/vstplugmain.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/vstplugmain.cpp $@ # Hack to compile vst sources without -Wall -Werror libvstsdk_la_CXXFLAGS = -w $(VST_CPPFLAGS) -Ipublic.sdk/source/vst2.x -I. nodist_libvstsdk_la_SOURCES = \ public.sdk/source/vst2.x/audioeffectx.cpp \ public.sdk/source/vst2.x/audioeffect.cpp \ public.sdk/source/vst2.x/vstplugmain.cpp CLEANFILES = \ pluginterfaces/vst2.x/aeffect.h \ pluginterfaces/vst2.x/aeffectx.h \ public.sdk/source/vst2.x/audioeffectx.h \ public.sdk/source/vst2.x/audioeffectx.cpp \ public.sdk/source/vst2.x/audioeffect.h \ public.sdk/source/vst2.x/audioeffect.cpp \ public.sdk/source/vst2.x/aeffeditor.h \ public.sdk/source/vst2.x/vstplugmain.cpp clean-local: -rm -rf public.sdk pluginterfaces #pluginterfaces/vst2.x/vstfxstore.hdrumgizmo-0.9.14/plugin/vst/Makefile.in0000644000076400017500000006222713106051611014731 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 = plugin/vst DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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 = LTLIBRARIES = $(noinst_LTLIBRARIES) libvstsdk_la_LIBADD = nodist_libvstsdk_la_OBJECTS = libvstsdk_la-audioeffectx.lo \ libvstsdk_la-audioeffect.lo libvstsdk_la-vstplugmain.lo libvstsdk_la_OBJECTS = $(nodist_libvstsdk_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 = libvstsdk_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(libvstsdk_la_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ @ENABLE_VST_TRUE@am_libvstsdk_la_rpath = 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 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(nodist_libvstsdk_la_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) # 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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ # We know there are warnings in the VSTSDK code, so don't consider them errors. CXXFLAGS := $(filter-out -Werror -Wall ,$(CXXFLAGS)) CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ @ENABLE_VST_TRUE@noinst_LTLIBRARIES = libvstsdk.la # Hack to compile vst sources without -Wall -Werror libvstsdk_la_CXXFLAGS = -w $(VST_CPPFLAGS) -Ipublic.sdk/source/vst2.x -I. nodist_libvstsdk_la_SOURCES = \ public.sdk/source/vst2.x/audioeffectx.cpp \ public.sdk/source/vst2.x/audioeffect.cpp \ public.sdk/source/vst2.x/vstplugmain.cpp CLEANFILES = \ pluginterfaces/vst2.x/aeffect.h \ pluginterfaces/vst2.x/aeffectx.h \ public.sdk/source/vst2.x/audioeffectx.h \ public.sdk/source/vst2.x/audioeffectx.cpp \ public.sdk/source/vst2.x/audioeffect.h \ public.sdk/source/vst2.x/audioeffect.cpp \ public.sdk/source/vst2.x/aeffeditor.h \ public.sdk/source/vst2.x/vstplugmain.cpp all: all-am .SUFFIXES: .SUFFIXES: .cpp .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 plugin/vst/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu plugin/vst/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): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_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}; \ } libvstsdk.la: $(libvstsdk_la_OBJECTS) $(libvstsdk_la_DEPENDENCIES) $(EXTRA_libvstsdk_la_DEPENDENCIES) $(AM_V_CXXLD)$(libvstsdk_la_LINK) $(am_libvstsdk_la_rpath) $(libvstsdk_la_OBJECTS) $(libvstsdk_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvstsdk_la-audioeffect.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvstsdk_la-audioeffectx.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvstsdk_la-vstplugmain.Plo@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< libvstsdk_la-audioeffectx.lo: public.sdk/source/vst2.x/audioeffectx.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -MT libvstsdk_la-audioeffectx.lo -MD -MP -MF $(DEPDIR)/libvstsdk_la-audioeffectx.Tpo -c -o libvstsdk_la-audioeffectx.lo `test -f 'public.sdk/source/vst2.x/audioeffectx.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/audioeffectx.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvstsdk_la-audioeffectx.Tpo $(DEPDIR)/libvstsdk_la-audioeffectx.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='public.sdk/source/vst2.x/audioeffectx.cpp' object='libvstsdk_la-audioeffectx.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -c -o libvstsdk_la-audioeffectx.lo `test -f 'public.sdk/source/vst2.x/audioeffectx.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/audioeffectx.cpp libvstsdk_la-audioeffect.lo: public.sdk/source/vst2.x/audioeffect.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -MT libvstsdk_la-audioeffect.lo -MD -MP -MF $(DEPDIR)/libvstsdk_la-audioeffect.Tpo -c -o libvstsdk_la-audioeffect.lo `test -f 'public.sdk/source/vst2.x/audioeffect.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/audioeffect.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvstsdk_la-audioeffect.Tpo $(DEPDIR)/libvstsdk_la-audioeffect.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='public.sdk/source/vst2.x/audioeffect.cpp' object='libvstsdk_la-audioeffect.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -c -o libvstsdk_la-audioeffect.lo `test -f 'public.sdk/source/vst2.x/audioeffect.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/audioeffect.cpp libvstsdk_la-vstplugmain.lo: public.sdk/source/vst2.x/vstplugmain.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -MT libvstsdk_la-vstplugmain.lo -MD -MP -MF $(DEPDIR)/libvstsdk_la-vstplugmain.Tpo -c -o libvstsdk_la-vstplugmain.lo `test -f 'public.sdk/source/vst2.x/vstplugmain.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/vstplugmain.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvstsdk_la-vstplugmain.Tpo $(DEPDIR)/libvstsdk_la-vstplugmain.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='public.sdk/source/vst2.x/vstplugmain.cpp' object='libvstsdk_la-vstplugmain.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvstsdk_la_CXXFLAGS) $(CXXFLAGS) -c -o libvstsdk_la-vstplugmain.lo `test -f 'public.sdk/source/vst2.x/vstplugmain.cpp' || echo '$(srcdir)/'`public.sdk/source/vst2.x/vstplugmain.cpp 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: 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: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 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." clean: clean-am clean-am: clean-generic clean-libtool clean-local \ clean-noinstLTLIBRARIES 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-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: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-local clean-noinstLTLIBRARIES \ 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-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 # Targets to copy vst source files pluginterfaces/vst2.x: $(MKDIR_P) pluginterfaces/vst2.x pluginterfaces/vst2.x/aeffect.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffect.h cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffect.h $@ pluginterfaces/vst2.x/aeffectx.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffectx.h cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/aeffectx.h $@ #pluginterfaces/vst2.x/vstfxstore.h: pluginterfaces/vst2.x @VST_SOURCE_PATH@/pluginterfaces/vst2.x/vstfxstore.h # cp @VST_SOURCE_PATH@/pluginterfaces/vst2.x/vstfxstore.h $@ public.sdk/source/vst2.x: $(MKDIR_P) public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffectx.h: public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffect.h pluginterfaces/vst2.x/aeffect.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.h $@ public.sdk/source/vst2.x/audioeffectx.cpp: public.sdk/source/vst2.x public.sdk/source/vst2.x/aeffeditor.h pluginterfaces/vst2.x/aeffectx.h public.sdk/source/vst2.x/audioeffectx.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffectx.cpp $@ public.sdk/source/vst2.x/audioeffect.h: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.h $@ public.sdk/source/vst2.x/audioeffect.cpp: public.sdk/source/vst2.x public.sdk/source/vst2.x/audioeffect.h @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/audioeffect.cpp $@ public.sdk/source/vst2.x/aeffeditor.h: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/aeffeditor.h cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/aeffeditor.h $@ public.sdk/source/vst2.x/vstplugmain.cpp: public.sdk/source/vst2.x @VST_SOURCE_PATH@/public.sdk/source/vst2.x/vstplugmain.cpp cp @VST_SOURCE_PATH@/public.sdk/source/vst2.x/vstplugmain.cpp $@ clean-local: -rm -rf public.sdk pluginterfaces #pluginterfaces/vst2.x/vstfxstore.h # 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: drumgizmo-0.9.14/plugin/drumgizmo_plugin.cc0000644000076400017500000003120413106047433015750 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmo_lv2.cc * * Wed Mar 2 17:31:32 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumgizmo_plugin.h" #include #include #include #include #include #include "configparser.h" #include "nolocale.h" #ifdef LV2 // Entry point for lv2 plugin instantiation. PluginLV2* createEffectInstance() { return new DrumGizmoPlugin(); } #endif #ifdef VST // Entry point for vst plugin instantiation. AudioEffect* createEffectInstance(audioMasterCallback audioMaster) { return new DrumGizmoPlugin(audioMaster); } DrumGizmoPlugin::DrumGizmoPlugin(audioMasterCallback audioMaster) : PluginVST(audioMaster), #else DrumGizmoPlugin::DrumGizmoPlugin() : #endif config_string_io(settings) { init(); drumgizmo = std::make_shared(settings, output, input); resizeWindow(width, height); drumgizmo->setFreeWheel(true); drumgizmo->setSamplerate(44100); drumgizmo->setFrameSize(2048); } void DrumGizmoPlugin::onSamplerateChange(float samplerate) { drumgizmo->setSamplerate(samplerate); } void DrumGizmoPlugin::onFramesizeChange(size_t framesize) { drumgizmo->setFrameSize(framesize); } void DrumGizmoPlugin::onActiveChange(bool active) { } std::string DrumGizmoPlugin::onStateSave() { return config_string_io.get(); } void DrumGizmoPlugin::onStateRestore(const std::string& config) { config_string_io.set(config); } size_t DrumGizmoPlugin::getNumberOfMidiInputs() { return 1; } size_t DrumGizmoPlugin::getNumberOfMidiOutputs() { return 0; } size_t DrumGizmoPlugin::getNumberOfAudioInputs() { return 0; } size_t DrumGizmoPlugin::getNumberOfAudioOutputs() { return 16; } std::string DrumGizmoPlugin::getId() { return "DrumGizmo"; } std::string DrumGizmoPlugin::getEffectName() { return "DrumGizmo"; } std::string DrumGizmoPlugin::getVendorString() { return "DrumGizmo Team"; } std::string DrumGizmoPlugin::getProductString() { return "DrumGizmo"; } PluginCategory DrumGizmoPlugin::getPluginCategory() { return PluginCategory::Synth; } static float g_samples[16* 4096]; void DrumGizmoPlugin::process(size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, size_t count) { setLatency(drumgizmo->getLatency()); this->input_events = &input_events; this->output_samples = &output_samples; drumgizmo->run(pos, g_samples, count); this->input_events = nullptr; this->output_samples = nullptr; } bool DrumGizmoPlugin::hasInlineGUI() { return true; } class InlinePixelBufferAlpha : public GUI::PixelBufferAlpha { public: InlinePixelBufferAlpha(Plugin::InlineDrawContext& context) { buf = context.data; width = context.width; height = context.height; x = 0; y = 0; } }; class InlineCanvas : public GUI::Canvas { public: InlineCanvas(Plugin::InlineDrawContext& context) : pixbuf(context) { } // From Canvas: GUI::PixelBufferAlpha& GetPixelBuffer() override { return pixbuf; } private: InlinePixelBufferAlpha pixbuf; }; void DrumGizmoPlugin::onInlineRedraw(std::size_t width, std::size_t max_height, InlineDrawContext& context) { std::size_t height = std::min(std::size_t(11), max_height); if(!context.data || (context.width != width) || (context.height != height) || settingsGetter.number_of_files.hasChanged() || settingsGetter.number_of_files_loaded.hasChanged() || settingsGetter.drumkit_load_status.hasChanged()) { context.width = width; context.height = height; assert(context.width * context.height <= sizeof(inlineDisplayBuffer)); context.data = (unsigned char*)inlineDisplayBuffer; box.setSize(context.width, context.height); InlineCanvas canvas(context); GUI::Painter painter(canvas); painter.clear(); painter.drawImage(0, 0, box); double progress = (double)settingsGetter.number_of_files_loaded.getValue() / (double)settingsGetter.number_of_files.getValue(); int brd = 4; int val = (width - (2 * brd)) * progress; switch(settingsGetter.drumkit_load_status.getValue()) { case LoadStatus::Error: bar_red.setSize(val, height); painter.drawImage(brd, 0, bar_red); break; case LoadStatus::Done: bar_green.setSize(val, height); painter.drawImage(brd, 0, bar_green); break; case LoadStatus::Loading: case LoadStatus::Idle: bar_blue.setSize(val, height); painter.drawImage(brd, 0, bar_blue); break; } // Convert to correct pixel format for(std::size_t i = 0; i < context.height * context.width; ++i) { std::uint32_t pixel = inlineDisplayBuffer[i]; unsigned char* p = (unsigned char*)&pixel; inlineDisplayBuffer[i] = pgzRGBA(p[0], p[1], p[2], p[3]); } } } bool DrumGizmoPlugin::hasGUI() { return true; } void* DrumGizmoPlugin::createWindow(void *parent) { plugin_gui = std::make_shared(settings, parent); resizeWindow(width, height); onShowWindow(); return plugin_gui->getNativeWindowHandle(); } void DrumGizmoPlugin::onDestroyWindow() { plugin_gui = nullptr; } void DrumGizmoPlugin::onShowWindow() { plugin_gui->show(); } void DrumGizmoPlugin::onHideWindow() { plugin_gui->hide(); } void DrumGizmoPlugin::onIdle() { plugin_gui->processEvents(); } void DrumGizmoPlugin::closeWindow() { } // // Input Engine // DrumGizmoPlugin::Input::Input(DrumGizmoPlugin& plugin) : plugin(plugin) { } bool DrumGizmoPlugin::Input::init(const Instruments &instruments) { this->instruments = &instruments; return true; } void DrumGizmoPlugin::Input::setParm(const std::string& parm, const std::string& value) { } bool DrumGizmoPlugin::Input::start() { return true; } void DrumGizmoPlugin::Input::stop() { } void DrumGizmoPlugin::Input::pre() { } void DrumGizmoPlugin::Input::run(size_t pos, size_t len, std::vector& events) { assert(events.empty()); assert(plugin.input_events); events.reserve(plugin.input_events->size()); for(auto& event : *plugin.input_events) { if(event.type != MidiEventType::NoteOn) { continue; } int i = mmap.lookup(event.key); if(event.velocity && (i != -1)) { events.push_back({TYPE_ONSET, (size_t)i, (size_t)event.getTime(), event.velocity / 127.0f}); } } } void DrumGizmoPlugin::Input::post() { } bool DrumGizmoPlugin::Input::isFreewheeling() const { return plugin.getFreeWheel(); } // // Output Engine // DrumGizmoPlugin::Output::Output(DrumGizmoPlugin& plugin) : plugin(plugin) { } bool DrumGizmoPlugin::Output::init(const Channels& channels) { return true; } void DrumGizmoPlugin::Output::setParm(const std::string& parm, const std::string& value) { } bool DrumGizmoPlugin::Output::start() { return true; } void DrumGizmoPlugin::Output::stop() { } void DrumGizmoPlugin::Output::pre(size_t nsamples) { // Clear all channels for(auto& channel : *plugin.output_samples) { if(channel) { std::memset(channel, 0, nsamples * sizeof(sample_t)); } } } void DrumGizmoPlugin::Output::run(int ch, sample_t *samples, size_t nsamples) { assert(plugin.output_samples); assert(sizeof(float) == sizeof(sample_t)); if((std::size_t)ch >= plugin.output_samples->size()) { return; } if((*plugin.output_samples)[ch] == nullptr) { // Port not connected. return; } // We are not running directly on the internal buffer: do a copy. if((*plugin.output_samples)[ch] != samples) { memcpy((*plugin.output_samples)[ch], samples, nsamples * sizeof(sample_t)); } } void DrumGizmoPlugin::Output::post(size_t nsamples) { } sample_t* DrumGizmoPlugin::Output::getBuffer(int ch) const { assert(plugin.output_samples); if((std::size_t)ch >= plugin.output_samples->size()) { return nullptr; } return (*plugin.output_samples)[ch]; } size_t DrumGizmoPlugin::Output::getBufferSize() const { return plugin.getFramesize(); } bool DrumGizmoPlugin::Output::isFreewheeling() const { return plugin.getFreeWheel(); } // // ConfigStringIO // // anonymous namespace for helper furnctions of ConfigStringIO namespace { std::string float2str(float a) { char buf[256]; snprintf_nol(buf, sizeof(buf) - 1, "%f", a); return buf; } std::string bool2str(bool a) { return a?"true":"false"; } std::string int2str(int a) { char buf[256]; snprintf(buf, sizeof(buf) - 1, "%d", a); return buf; } float str2float(std::string a) { if(a == "") { return 0.0; } return atof_nol(a.c_str()); } int str2int(std::string a) { try { return std::stoi(a); } catch(...) { return 0; } } } // end anonymous namespace DrumGizmoPlugin::ConfigStringIO::ConfigStringIO(Settings& settings) : settings(settings) { } std::string DrumGizmoPlugin::ConfigStringIO::get() { return "\n" " " + settings.drumkit_file.load() + "\n" " " + settings.midimap_file.load() + "\n" " " + bool2str(settings.enable_velocity_modifier.load()) + "\n" " " + float2str(settings.velocity_modifier_falloff.load()) + "\n" " " + float2str(settings.velocity_modifier_weight.load()) + "\n" " " + bool2str(settings.enable_velocity_randomiser.load()) + "\n" " " + float2str(settings.velocity_randomiser_weight.load()) + "\n" " " + bool2str(settings.enable_resampling.load()) + "\n" " " + int2str(settings.disk_cache_upper_limit.load()) + "\n" " " + int2str(settings.disk_cache_chunk_size.load()) + "\n" " " + bool2str(settings.disk_cache_enable.load()) + "\n" ""; } bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string) { DEBUG(config, "Load config: %s\n", config_string.c_str()); ConfigParser p; if(p.parseString(config_string)) { ERR(config, "Config parse error.\n"); return false; } if(p.value("enable_velocity_modifier") != "") { settings.enable_velocity_modifier.store(p.value("enable_velocity_modifier") == "true"); } if(p.value("velocity_modifier_falloff") != "") { settings.velocity_modifier_falloff.store(str2float(p.value("velocity_modifier_falloff"))); } if(p.value("velocity_modifier_weight") != "") { settings.velocity_modifier_weight.store(str2float(p.value("velocity_modifier_weight"))); } if(p.value("enable_velocity_randomiser") != "") { settings.enable_velocity_randomiser.store(p.value("enable_velocity_randomiser") == "true"); } if(p.value("velocity_randomiser_weight") != "") { settings.velocity_randomiser_weight.store(str2float(p.value("velocity_randomiser_weight"))); } if(p.value("enable_resampling") != "") { settings.enable_resampling.store(p.value("enable_resampling") == "true"); } if(p.value("disk_cache_upper_limit") != "") { settings.disk_cache_upper_limit.store(str2int(p.value("disk_cache_upper_limit"))); } if(p.value("disk_cache_chunk_size") != "") { settings.disk_cache_chunk_size.store(str2int(p.value("disk_cache_chunk_size"))); } if(p.value("disk_cache_enable") != "") { settings.disk_cache_enable.store(p.value("disk_cache_enable") == "true"); } std::string newkit = p.value("drumkitfile"); if(newkit != "") { settings.drumkit_file.store(newkit); } std::string newmidimap = p.value("midimapfile"); if(newmidimap != "") { settings.midimap_file.store(newmidimap); } return true; } drumgizmo-0.9.14/plugin/Makefile.am0000644000076400017500000000353313103331117014076 00000000000000SUBDIRS = vst ####### # LV2 ### if ENABLE_LV2 lv2plugindir = @LV2DIR@/drumgizmo.lv2 lv2plugin_LTLIBRARIES = drumgizmo.la lv2plugin_DATA = manifest.ttl drumgizmo.ttl endif drumgizmo_la_CXXFLAGS = -DLV2 -DLV2_PLUGIN_URI=\"http://drumgizmo.org/lv2\" \ $(LV2_CFLAGS) \ $(SNDFILE_CFLAGS) \ -I$(top_srcdir)/include \ -I$(top_srcdir)/plugin/plugingizmo \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin drumgizmo_la_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/plugin/plugingizmo/midievent.cc \ $(top_srcdir)/plugin/plugingizmo/pluginlv2.cc \ drumgizmo_plugin.cc drumgizmo_la_LDFLAGS = -shared -module -avoid-version drumgizmo_la_LIBADD = $(LV2_LIBS) \ $(top_srcdir)/plugingui/libdggui.la \ $(top_srcdir)/src/libdg.la ####### # VST ### if ENABLE_VST vstplugindir = $(libdir)/vst vstplugin_LTLIBRARIES = drumgizmo_vst.la vstplugin_DATA = endif drumgizmo_vst_la_CXXFLAGS = -DVST \ $(SNDFILE_CFLAGS) \ -I$(top_srcdir)/include \ -I$(top_srcdir)/plugin/plugingizmo \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin \ $(VST_CPPFLAGS) -Ivst drumgizmo_vst_la_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/plugin/plugingizmo/midievent.cc \ $(top_srcdir)/plugin/plugingizmo/pluginvst.cc \ drumgizmo_plugin.cc drumgizmo_vst_la_LDFLAGS = -shared -module -avoid-version drumgizmo_vst_la_LIBADD = vst/libvstsdk.la \ $(top_srcdir)/plugingui/libdggui.la \ $(top_srcdir)/src/libdg.la install-data-hook: rm -f $(lv2plugindir)/drumgizmo.la rm -f $(vstplugindir)/drumgizmo_vst.la EXTRA_DIST = \ $(lv2plugin_DATA) \ $(vstplugin_DATA) \ drumgizmo_plugin.h \ $(top_srcdir)/plugin/plugingizmo/plugin.h \ $(top_srcdir)/plugin/plugingizmo/midievent.h \ $(top_srcdir)/plugin/plugingizmo/pluginlv2.h \ $(top_srcdir)/plugin/plugingizmo/pluginvst.h \ $(top_srcdir)/plugin/plugingizmo/inline-display.h drumgizmo-0.9.14/plugin/Makefile.mingw32.in0000644000076400017500000001270213103427335015402 00000000000000# -*- Makefile -*- VST_BASE=@VST_SOURCE_PATH@ VST_SRC_BASE = ${VST_BASE}/public.sdk/source/vst2.x/ VST_SRC = \ ${VST_SRC_BASE}/audioeffectx.cpp \ ${VST_SRC_BASE}/audioeffect.cpp \ ${VST_SRC_BASE}/vstplugmain.cpp VST_CFLAGS=-I$(VST_BASE) DG_SRC = \ @top_srcdir@/src/audiocachefile.cc \ @top_srcdir@/src/audiocache.cc \ @top_srcdir@/src/audiocacheeventhandler.cc \ @top_srcdir@/src/audiocacheidmanager.cc \ @top_srcdir@/src/audioinputenginemidi.cc \ @top_srcdir@/src/audiofile.cc \ @top_srcdir@/src/channel.cc \ @top_srcdir@/src/channelmixer.cc \ @top_srcdir@/src/chresampler.cc \ @top_srcdir@/src/configfile.cc \ @top_srcdir@/src/configparser.cc \ @top_srcdir@/src/drumgizmo.cc \ @top_srcdir@/src/drumkit.cc \ @top_srcdir@/src/drumkitloader.cc \ @top_srcdir@/src/drumkitparser.cc \ @top_srcdir@/src/events.cc \ @top_srcdir@/src/inputprocessor.cc \ @top_srcdir@/src/instrument.cc \ @top_srcdir@/src/instrumentparser.cc \ @top_srcdir@/src/latencyfilter.cc \ @top_srcdir@/src/memchecker.cc \ @top_srcdir@/src/midimapparser.cc \ @top_srcdir@/src/midimapper.cc \ @top_srcdir@/src/path.cc \ @top_srcdir@/src/powerlist.cc \ @top_srcdir@/src/random.cc \ @top_srcdir@/src/sample.cc \ @top_srcdir@/src/semaphore.cc \ @top_srcdir@/src/saxparser.cc \ @top_srcdir@/src/staminafilter.cc \ @top_srcdir@/src/thread.cc \ @top_srcdir@/src/versionstr.cc DG_CFLAGS = -I@top_srcdir@ -I@top_srcdir@/include -I@top_srcdir@/src \ -I@top_srcdir@/plugin/plugingizmo -DVST -DSSE -msse -msse2 # -DDISABLE_HUGIN GUI_SRC = \ @top_srcdir@/plugingui/abouttab.cc \ @top_srcdir@/plugingui/button.cc \ @top_srcdir@/plugingui/button_base.cc \ @top_srcdir@/plugingui/checkbox.cc \ @top_srcdir@/plugingui/colour.cc \ @top_srcdir@/plugingui/combobox.cc \ @top_srcdir@/plugingui/dialog.cc \ @top_srcdir@/plugingui/directory.cc \ @top_srcdir@/plugingui/diskstreamingframecontent.cc \ @top_srcdir@/plugingui/drumkitframecontent.cc \ @top_srcdir@/plugingui/eventhandler.cc \ @top_srcdir@/plugingui/filebrowser.cc \ @top_srcdir@/plugingui/font.cc \ @top_srcdir@/plugingui/frame.cc \ @top_srcdir@/plugingui/humanizerframecontent.cc \ @top_srcdir@/plugingui/image.cc \ @top_srcdir@/plugingui/imagecache.cc \ @top_srcdir@/plugingui/knob.cc \ @top_srcdir@/plugingui/label.cc \ @top_srcdir@/plugingui/layout.cc \ @top_srcdir@/plugingui/led.cc \ @top_srcdir@/plugingui/lineedit.cc \ @top_srcdir@/plugingui/listbox.cc \ @top_srcdir@/plugingui/listboxbasic.cc \ @top_srcdir@/plugingui/listboxthin.cc \ @top_srcdir@/plugingui/maintab.cc \ @top_srcdir@/plugingui/mainwindow.cc \ @top_srcdir@/plugingui/nativewindow_win32.cc \ @top_srcdir@/plugingui/painter.cc \ @top_srcdir@/plugingui/pixelbuffer.cc \ @top_srcdir@/plugingui/pluginconfig.cc \ @top_srcdir@/plugingui/powerbutton.cc \ @top_srcdir@/plugingui/progressbar.cc \ @top_srcdir@/plugingui/resamplingframecontent.cc \ @top_srcdir@/plugingui/resource.cc \ @top_srcdir@/plugingui/resource_data.cc \ @top_srcdir@/plugingui/scrollbar.cc \ @top_srcdir@/plugingui/slider.cc \ @top_srcdir@/plugingui/stackedwidget.cc \ @top_srcdir@/plugingui/statusframecontent.cc \ @top_srcdir@/plugingui/tabbutton.cc \ @top_srcdir@/plugingui/tabwidget.cc \ @top_srcdir@/plugingui/textedit.cc \ @top_srcdir@/plugingui/texture.cc \ @top_srcdir@/plugingui/texturedbox.cc \ @top_srcdir@/plugingui/toggle.cc \ @top_srcdir@/plugingui/utf8.cc \ @top_srcdir@/plugingui/verticalline.cc \ @top_srcdir@/plugingui/widget.cc \ @top_srcdir@/plugingui/window.cc \ @top_srcdir@/plugingui/lodepng/lodepng.cpp GUI_CPPFLAGS=-I@top_srcdir@/plugingui/ -DUSE_THREAD @GUI_CPPFLAGS@ GUI_LIBS=@GUI_LIBS@ DBG_SRC = \ @top_srcdir@/hugin/hugin.c \ @top_srcdir@/hugin/hugin_syslog.c DBG_CFLAGS=-I../hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX # -DDISABLE_HUGIN # # http://old.nabble.com/using-VC%2B%2B-.lib-with-mingw-td23151303.html # Given `-lfoo', the win32 build of GNU ld will search for libfoo.a and foo.lib # EXPAT_CFLAGS=@EXPAT_CFLAGS@ EXPAT_LIBS=@EXPAT_LIBS@ SNDFILE_CFLAGS=@SNDFILE_CFLAGS@ SNDFILE_LIBS=@SNDFILE_LIBS@ SRC_CFLAGS=@SAMPLERATE_CFLAGS@ SRC_LIBS=@SAMPLERATE_LIBS@ ZITA_CXXFLAGS=@ZITA_CPPFLAGS@ ZITA_LIBS=@ZITA_LIBS@ SRC = \ @top_srcdir@/plugin/plugingizmo/midievent.cc \ @top_srcdir@/plugin/plugingizmo/pluginvst.cc \ drumgizmo_plugin.cc RES = \ resources/bg.png \ resources/bypass_button.png \ resources/font.png \ resources/fontemboss.png \ resources/knob.png \ resources/logo.png \ resources/png_error \ resources/progress.png \ resources/pushbutton.png \ resources/sidebar.png \ resources/slider.png \ resources/switch_back_off.png \ resources/switch_back_on.png \ resources/switch_front.png \ resources/tab.png \ resources/thinlistbox.png \ resources/topbar.png \ resources/toplogo.png \ resources/vertline.png \ resources/widget.png \ ../ABOUT \ ../AUTHORS \ ../COPYING all: g++ @top_srcdir@/plugingui/rcgen.cc -o @top_srcdir@/plugingui/rcgen (cd @top_srcdir@/plugingui; ./rcgen $(RES) > resource_data.cc) gcc $(DBG_CFLAGS) @top_srcdir@/hugin/hugin.c -c gcc $(DBG_CFLAGS) @top_srcdir@/hugin/hugin_syslog.c -c g++ $(CXXFLAGS) -std=c++11 -static -static-libgcc -O2 -g -Wall $(DBG_CFLAGS) $(DG_CFLAGS) $(DG_LIBS) $(VST_CFLAGS) hugin.o hugin_syslog.o $(DG_SRC) $(VST_SRC) ${SRC} ${GUI_SRC} ${GUI_CPPFLAGS} $(GUI_LIBS) $(EXPAT_CFLAGS) $(SRC_CFLAGS) $(ZITA_CXXFLAGS) $(EXPAT_LIBS) $(SNDFILE_CFLAGS) $(SNDFILE_LIBS) $(SRC_LIBS) $(ZITA_LIBS) -latomic -shared -o drumgizmo_vst.dll -Wl,--out-implib,libdrumgizmo_vst.a clean: del -f drumgizmo_vst.dll libdrumgizmo_vst.a drumgizmo-0.9.14/plugin/plugingizmo/0000755000076400017500000000000013106063421014465 500000000000000drumgizmo-0.9.14/plugin/plugingizmo/pluginlv2.h0000644000076400017500000002041613106047455016514 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginlv2.h * * Sun Feb 7 15:15:23 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include #include #define DISPLAY_INTERFACE #ifdef DISPLAY_INTERFACE #include "inline-display.h" #endif enum class LV2Ports { FreeWheel = 0, Latency = 1, PortOffset = 2, }; class PluginLV2 : public Plugin { public: virtual ~PluginLV2() = default; //! Not used in LV2 void init() override {} //! Get current free-wheel mode. bool getFreeWheel() const override; //! Call this to get current samplerate. float getSamplerate() override; //! This method is called by the host when the samplerate changes. virtual void onSamplerateChange(float samplerate) override = 0; //! Call this to get current frame-size. std::size_t getFramesize() override; //! This method is called by the host when the frame-size changes. virtual void onFramesizeChange(std::size_t framesize) override = 0; //! Call this to get current active state bool getActive() override; //! This method is called by the host when the active state changes. virtual void onActiveChange(bool active) override = 0; //! This method is called by the host to get the current state for storing. virtual std::string onStateSave() override = 0; //! This method is called by the host when a new state has been loaded. virtual void onStateRestore(const std::string& config) override = 0; //! This is method is called by the host to get the current latency. //! \param The latency in samples. float getLatency() override; //! Call this method to signal a latency change to the host. //! \param latency The latency in samples. void setLatency(float latency) override; //! Called by the the host to get the number of audio input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioInputs() override = 0; //! Called by the the host to get the number of audio output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioOutputs() override = 0; //! Called by the the host to get the number of midi input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiInputs() override = 0; //! Called by the the host to get the number of midi output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiOutputs() override = 0; //! Get unique plugin id. std::string getId() override = 0; // Functions used to set plugin information. std::string getEffectName() override = 0; std::string getVendorString() override = 0; std::string getProductString() override = 0; PluginCategory getPluginCategory() override = 0; virtual void process(std::size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, std::size_t count) override = 0; // // Inline GUI (optional) // //! Return true if a GUI implementation is to be used. virtual bool hasInlineGUI() override { return false; } //! Render call back. //! \param width The client area width as specified by the host. //! \param max_height The maximum allowed clieant area height as specified //! by the host. //! \param context The render context filled an maintained by the plugin. virtual void onInlineRedraw(std::size_t width, std::size_t max_height, InlineDrawContext& context) override {} // // GUI (optional) // //! Return true if a GUI implementation is to be used. virtual bool hasGUI() override { return false; } //! Create new window. virtual void* createWindow(void *parent) override { return nullptr; } //! Destroy window. virtual void onDestroyWindow() override {} //! Show window. virtual void onShowWindow() override {} //! Hide window. virtual void onHideWindow() override {} //! Called regularly by host; process ui events. virtual void onIdle() override {} //! Signal new window size to host. void resizeWindow(std::size_t width, std::size_t height) override; //! Signal close window event to the host. void closeWindow() override; public: static LV2_Handle instantiate(const struct _LV2_Descriptor* descriptor, double sample_rate, const char* bundle_path, const LV2_Feature* const * features); static void connectPort(LV2_Handle instance, uint32_t port, void *data_location); static void run(LV2_Handle instance, uint32_t sample_count); static void activate(LV2_Handle instance); static void deactivate(LV2_Handle instance); static void cleanup(LV2_Handle instance); static const void* extensionData(const char *uri); static LV2_State_Status save(LV2_Handle instance, LV2_State_Store_Function store, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const * features); static LV2_State_Status restore(LV2_Handle instance, LV2_State_Retrieve_Function retrieve, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const * features); static LV2UI_Handle uiInstantiate(const struct _LV2UI_Descriptor * descriptor, const char * plugin_uri, const char * bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget * widget, const LV2_Feature * const * features); static void uiCleanup(LV2UI_Handle handle); static int uiIdle(LV2UI_Handle handle); static const void* uiExtensionData(const char* uri); private: float* free_wheel_port{nullptr}; bool free_wheel{false}; float sample_rate{0}; float* latency_port{nullptr}; std::size_t frame_size{0}; std::size_t pos{0}; std::vector input_event_ports; std::vector output_event_ports; std::vector input_audio_ports; std::vector output_audio_ports; LV2_URID_Map* map{nullptr}; #ifdef DISPLAY_INTERFACE LV2_Inline_Display_Image_Surface surf; LV2_Inline_Display* queue_draw{nullptr}; InlineDrawContext drawContext; static LV2_Inline_Display_Image_Surface *inlineRender(LV2_Handle instance, uint32_t w, uint32_t max_h); #endif bool active{false}; // // GUI // LV2UI_Resize* resize{nullptr}; }; PluginLV2* createEffectInstance(); drumgizmo-0.9.14/plugin/plugingizmo/midievent.cc0000644000076400017500000000357712741724445016732 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midievent.cc * * Sun Feb 7 15:09:01 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "midievent.h" #include MidiEvent::MidiEvent(int64_t time, const char* data, std::size_t size) : time(time) { //std::cout << __PRETTY_FUNCTION__ << // " data: " << (void*)data << // " size: " << size << // std::endl; this->data.resize(size); for(std::size_t i = 0; i < size; ++i) { this->data[i] = data[i]; } if ((data[0] & 0xF0) == 0x80) { // note off type = MidiEventType::NoteOff; key = data[1]; velocity = data[2]; } if ((data[0] & 0xF0) == 0x90) { // note on type = MidiEventType::NoteOn; key = data[1]; velocity = data[2]; } } int64_t MidiEvent::getTime() const { return time; } const char* MidiEvent::getData() const { return data.data(); } std::size_t MidiEvent::getSize() const { return data.size(); } drumgizmo-0.9.14/plugin/plugingizmo/inline-display.h0000644000076400017500000000627212754064354017524 00000000000000/* Copyright 2012 David Robillard Copyright 2016 Robin Gareus Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /** @defgroup inlinedisplay Inline-Display Support for displaying a miniaturized, non-interactive view in the host's mixer strip. @{ */ #ifndef LV2_INLINE_DISPLAY_H #define LV2_INLINE_DISPLAY_H #include #include "lv2/lv2plug.in/ns/lv2core/lv2.h" #define LV2_INLINEDISPLAY_URI "http://harrisonconsoles.com/lv2/inlinedisplay" #define LV2_INLINEDISPLAY_PREFIX LV2_INLINEDISPLAY_URI "#" #define LV2_INLINEDISPLAY__interface LV2_INLINEDISPLAY_PREFIX "interface" #define LV2_INLINEDISPLAY__queue_draw LV2_INLINEDISPLAY_PREFIX "queue_draw" #ifdef __cplusplus extern "C" { #endif /** Opaque handle for LV2_Inline_Display::queue_draw() */ typedef void* LV2_Inline_Display_Handle; /** raw image pixmap format is ARGB32, * the data pointer is owned by the plugin and must be valid * from the first call to render until cleanup. */ typedef struct { unsigned char *data; int width; int height; int stride; } LV2_Inline_Display_Image_Surface; /** a LV2 Feature provided by the Host to the plugin * * This allows a the plugin during in realtime context to * invalidate the currently displayed data and request from * the host to call render() as soon as feasible. */ typedef struct { /** Opaque host data */ LV2_Inline_Display_Handle handle; /** Request from run() that the host should call render() at a later * time to update the inline display */ void (*queue_draw)(LV2_Inline_Display_Handle handle); } LV2_Inline_Display; /** * Plugin Inline-Display Interface. */ typedef struct { /** * The render method. This is called by the host in the main GUI thread * (non realtime, the context with access to graphics drawing APIs). * * The data pointer is owned by the plugin and must be valid * from the first call to render until cleanup. * * The host specifies a maxium available area for the plugin to draw. * the returned Image Surface contains the actual area which * the plugin allocated. * * @param instance The LV2 instance * @param w the max available width * @param h the max available height * @return pointer to a LV2_Inline_Display_Image_Surface or NULL */ LV2_Inline_Display_Image_Surface* (*render)( LV2_Handle instance, uint32_t w, uint32_t h); } LV2_Inline_Display_Interface; #ifdef __cplusplus } /* extern "C" */ #endif #endif /* LV2_INLINE_DISPLAY_H */ /** @} */ drumgizmo-0.9.14/plugin/plugingizmo/pluginlv2.cc0000644000076400017500000004002713106047455016652 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginlv2.cc * * Sun Feb 7 15:15:24 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "pluginlv2.h" #include #include #include "midievent.h" #define LV2_PLUGIN_URI__atom LV2_PLUGIN_URI "/atom#" #define LV2_PLUGIN_URI__instance LV2_PLUGIN_URI "#plugin-instance" #define LV2_PLUGIN_URI__ui LV2_PLUGIN_URI "#ui" #include "lv2/lv2plug.in/ns/ext/atom/util.h" #include #include bool PluginLV2::getFreeWheel() const { return free_wheel; } float PluginLV2::getSamplerate() { return sample_rate; } std::size_t PluginLV2::getFramesize() { return frame_size; } bool PluginLV2::getActive() { return active; } float PluginLV2::getLatency() { if(latency_port) { return *latency_port; } return 0.0f; } void PluginLV2::setLatency(float latency) { if(latency_port) { *latency_port = latency; } } LV2_Handle PluginLV2::instantiate(const struct _LV2_Descriptor* descriptor, double sample_rate, const char* bundle_path, const LV2_Feature *const *features) { PluginLV2* plugin_lv2 = createEffectInstance(); plugin_lv2->sample_rate = sample_rate; plugin_lv2->input_event_ports.resize(plugin_lv2->getNumberOfMidiInputs(), nullptr); plugin_lv2->output_event_ports.resize(plugin_lv2->getNumberOfMidiOutputs(), nullptr); plugin_lv2->input_audio_ports.resize(plugin_lv2->getNumberOfAudioInputs()); plugin_lv2->output_audio_ports.resize(plugin_lv2->getNumberOfAudioOutputs()); for(auto& port : plugin_lv2->output_audio_ports) { port = nullptr; } for(auto& port : plugin_lv2->input_audio_ports) { port = nullptr; } while(*features != nullptr) { std::string uri = (*features)->URI; void* data = (*features)->data; if(uri == LV2_URID__map) { plugin_lv2->map = (LV2_URID_Map*)data; } #ifdef DISPLAY_INTERFACE if(uri == LV2_INLINEDISPLAY__queue_draw) { plugin_lv2->queue_draw = (LV2_Inline_Display*)data; } #endif ++features; } // Only reported on creation. plugin_lv2->onSamplerateChange(sample_rate); return (LV2_Handle)plugin_lv2; } void PluginLV2::connectPort(LV2_Handle instance, uint32_t port, void *data_location) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; if(port == static_cast(LV2Ports::FreeWheel)) { plugin_lv2->free_wheel_port = (float*)data_location; if(plugin_lv2->free_wheel_port) { plugin_lv2->free_wheel = (*plugin_lv2->free_wheel_port != 0.0f); // Signal first time. plugin_lv2->onFreeWheelChange(plugin_lv2->free_wheel); } } if(port == static_cast(LV2Ports::Latency)) { plugin_lv2->latency_port = (float*)data_location; } uint32_t port_offset = static_cast(LV2Ports::PortOffset); if((port >= port_offset) && (port < (port_offset + plugin_lv2->getNumberOfMidiInputs()))) { int port_index = port - port_offset; plugin_lv2->input_event_ports[port_index] = (LV2_Atom_Sequence*)data_location; } port_offset += plugin_lv2->getNumberOfMidiInputs(); if((port >= port_offset) && (port < (port_offset + plugin_lv2->getNumberOfMidiOutputs()))) { int port_index = port - port_offset; plugin_lv2->output_event_ports[port_index] = (LV2_Atom_Sequence*)data_location; } port_offset += plugin_lv2->getNumberOfMidiOutputs(); if((port >= port_offset) && (port < (port_offset + plugin_lv2->getNumberOfAudioInputs()))) { int port_index = port - port_offset; plugin_lv2->input_audio_ports[port_index] = (float*)data_location; } port_offset += plugin_lv2->getNumberOfAudioInputs(); if((port >= port_offset) && (port < (port_offset + plugin_lv2->getNumberOfAudioOutputs()))) { int port_index = port - port_offset; plugin_lv2->output_audio_ports[port_index] = (float*)data_location; } } class Sequence { public: Sequence(LV2_URID_Map& map, void* buffer, std::size_t buffer_size); void clear(); void addMidiEvent(std::size_t pos, const char* data, std::size_t size); void* data(); private: void *buffer; std::size_t buffer_size; LV2_Atom_Sequence *seq; LV2_URID_Map& map; }; Sequence::Sequence(LV2_URID_Map& map, void* buffer, std::size_t buffer_size) : map(map) { this->buffer = buffer; this->buffer_size = buffer_size; seq = (LV2_Atom_Sequence*)buffer; seq->atom.size = sizeof(LV2_Atom_Sequence_Body); seq->atom.type = map.map(map.handle, LV2_ATOM__Sequence); seq->body.unit = 0; seq->body.pad = 0; } // Keep this to support atom extension from lv2 < 1.10 static inline void _lv2_atom_sequence_clear(LV2_Atom_Sequence* seq) { seq->atom.size = sizeof(LV2_Atom_Sequence_Body); } void Sequence::clear() { _lv2_atom_sequence_clear(seq); } // Keep this to support atom extension from lv2 < 1.10 static inline LV2_Atom_Event* _lv2_atom_sequence_append_event(LV2_Atom_Sequence* seq, uint32_t capacity, const LV2_Atom_Event* event) { const uint32_t total_size = (uint32_t)sizeof(*event) + event->body.size; if(capacity - seq->atom.size < total_size) { return nullptr; } LV2_Atom_Event* e = lv2_atom_sequence_end(&seq->body, seq->atom.size); memcpy(e, event, total_size); seq->atom.size += lv2_atom_pad_size(total_size); return e; } void Sequence::addMidiEvent(std::size_t pos, const char* data, std::size_t size) { typedef struct { LV2_Atom_Event event; uint8_t msg[6]; } MIDINoteEvent; MIDINoteEvent ev; ev.event.time.frames = pos; ev.event.body.type = map.map(map.handle, LV2_MIDI__MidiEvent); ev.event.body.size = size;//sizeof(LV2_Atom_Event) + size; assert(size <= sizeof(ev.msg)); // Assert that we have room for the message memcpy(ev.msg, data, size + sizeof(LV2_Atom_Event)); _lv2_atom_sequence_append_event(seq, this->buffer_size, &ev.event); } void* Sequence::data() { return buffer; } void PluginLV2::run(LV2_Handle instance, uint32_t sample_count) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; // Handle free-wheel state if(plugin_lv2->free_wheel_port != nullptr) { bool new_free_wheel = *plugin_lv2->free_wheel_port != 0.0f; if(new_free_wheel != plugin_lv2->free_wheel) { plugin_lv2->free_wheel = new_free_wheel; plugin_lv2->onFreeWheelChange(plugin_lv2->free_wheel); } } // Handle frame size if(plugin_lv2->frame_size != sample_count) { plugin_lv2->frame_size = sample_count; plugin_lv2->onFramesizeChange(plugin_lv2->frame_size); } // Convert input lv2 events to input events. std::vector input_events; for(std::size_t port = 0; port < plugin_lv2->getNumberOfMidiInputs(); ++port) { if(plugin_lv2->input_event_ports[port] == nullptr) { continue; // Not yet connected. } auto& event_port = plugin_lv2->input_event_ports[port]; for(LV2_Atom_Event* ev = lv2_atom_sequence_begin(&event_port->body); !lv2_atom_sequence_is_end(&event_port->body, event_port->atom.size, ev); ev = lv2_atom_sequence_next(ev)) { if(ev->body.type != plugin_lv2->map->map(plugin_lv2->map->handle, LV2_MIDI__MidiEvent)) { continue; // not a midi event. } const char* data = (char*)(ev + 1); input_events.emplace_back(ev->time.frames, data, ev->body.size); } } std::vector output_events; // Process events and audio plugin_lv2->process(plugin_lv2->pos, input_events, output_events, plugin_lv2->input_audio_ports, plugin_lv2->output_audio_ports, sample_count); // Convert output events to lv2 events if(plugin_lv2->getNumberOfMidiOutputs() > 0) { if(plugin_lv2->map != nullptr) { if(plugin_lv2->output_event_ports[0] != nullptr) // Not yet connected? { auto& event_port = plugin_lv2->output_event_ports[0]; // TODO: Split? Sequence seq(*plugin_lv2->map, &event_port->body + 1, event_port->atom.size); for(auto midi_event : output_events) { seq.addMidiEvent(midi_event.getTime(), midi_event.getData(), midi_event.getSize()); } } } } plugin_lv2->pos += sample_count; #ifdef DISPLAY_INTERFACE if(plugin_lv2->queue_draw) { plugin_lv2->queue_draw->queue_draw(plugin_lv2->queue_draw->handle); } #endif } void PluginLV2::activate(LV2_Handle instance) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; plugin_lv2->active = true; plugin_lv2->onActiveChange(plugin_lv2->active); } void PluginLV2::deactivate(LV2_Handle instance) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; plugin_lv2->active = false; plugin_lv2->onActiveChange(plugin_lv2->active); } void PluginLV2::cleanup(LV2_Handle instance) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; delete plugin_lv2; } // // State handling // LV2_State_Status PluginLV2::save(LV2_Handle instance, LV2_State_Store_Function store, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const * features) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; if(plugin_lv2->map == nullptr) { // Missing urid feature? return LV2_STATE_ERR_NO_FEATURE; } std::string config = plugin_lv2->onStateSave(); store(handle, plugin_lv2->map->map(plugin_lv2->map->handle, LV2_PLUGIN_URI__atom "config"), config.data(), config.length(), plugin_lv2->map->map(plugin_lv2->map->handle, LV2_ATOM__Chunk), LV2_STATE_IS_POD | LV2_STATE_IS_PORTABLE); return LV2_STATE_SUCCESS; } LV2_State_Status PluginLV2::restore(LV2_Handle instance, LV2_State_Retrieve_Function retrieve, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const * features) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; if(plugin_lv2->map == nullptr) { // Missing urid feature? return LV2_STATE_ERR_NO_FEATURE; } std::size_t size; uint32_t type; const char* data = (const char*)retrieve(handle, plugin_lv2->map->map(plugin_lv2->map->handle, LV2_PLUGIN_URI__atom "config"), &size, &type, &flags); if(data && size) { std::string config; config.append(data, size); plugin_lv2->onStateRestore(config); } return LV2_STATE_SUCCESS; } static LV2_State_Interface persist = { PluginLV2::save, PluginLV2::restore }; LV2_Inline_Display_Image_Surface* PluginLV2::inlineRender(LV2_Handle instance, uint32_t w, uint32_t max_h) { PluginLV2* plugin_lv2 = (PluginLV2*)instance; plugin_lv2->onInlineRedraw(w, max_h, plugin_lv2->drawContext); plugin_lv2->surf.width = plugin_lv2->drawContext.width; plugin_lv2->surf.height = plugin_lv2->drawContext.height; plugin_lv2->surf.stride = plugin_lv2->surf.width * 4; // stride is in bytes plugin_lv2->surf.data = plugin_lv2->drawContext.data; return &plugin_lv2->surf; } const void* PluginLV2::extensionData(const char *uri) { if(!strcmp(uri, LV2_STATE__interface)) { return &persist; } #ifdef DISPLAY_INTERFACE static const LV2_Inline_Display_Interface display = { inlineRender }; if(!strcmp(uri, LV2_INLINEDISPLAY__interface)) { return &display; } #endif return nullptr; } // // GUI // LV2UI_Handle PluginLV2::uiInstantiate(const struct _LV2UI_Descriptor*descriptor, const char * plugin_uri, const char * bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget* widget, const LV2_Feature * const * features) { LV2_Handle instance = nullptr; void* parent = nullptr; LV2UI_Resize* resize = nullptr; while(*features != nullptr) { std::string uri = (*features)->URI; void *data = (*features)->data; if(uri == LV2_INSTANCE_ACCESS_URI) { instance = (LV2_Handle)data; } if(uri == LV2_UI__parent) { parent = data; } if(uri == LV2_UI__resize) { resize = (LV2UI_Resize*)data; } features++; } if(instance == nullptr) { return nullptr; } PluginLV2* plugin_lv2 = (PluginLV2*)instance; // Do we have a GUI? if(plugin_lv2->hasGUI() == false) { return nullptr; } plugin_lv2->resize = resize; *widget = plugin_lv2->createWindow(parent); return plugin_lv2; } void PluginLV2::resizeWindow(std::size_t width, std::size_t height) { if(resize) { resize->ui_resize(resize->handle, width, height); } } void PluginLV2::closeWindow() { } static const LV2_Descriptor descriptor = { LV2_PLUGIN_URI, PluginLV2::instantiate, PluginLV2::connectPort, PluginLV2::activate, PluginLV2::run, PluginLV2::deactivate, PluginLV2::cleanup, PluginLV2::extensionData }; void PluginLV2::uiCleanup(LV2UI_Handle handle) { PluginLV2* plugin_lv2 = (PluginLV2*)handle; plugin_lv2->onDestroyWindow () ; } int PluginLV2::uiIdle(LV2UI_Handle handle) { PluginLV2* plugin_lv2 = (PluginLV2*)handle; plugin_lv2->onIdle(); return 0; } static const LV2UI_Idle_Interface idle_iface = { PluginLV2::uiIdle }; const void* PluginLV2::uiExtensionData(const char* uri) { if(!strcmp(uri, LV2_UI__idleInterface)) { return &idle_iface; } return NULL; } static LV2UI_Descriptor ui_descriptor = { LV2_PLUGIN_URI__ui, PluginLV2::uiInstantiate, PluginLV2::uiCleanup, nullptr,//PluginLV2::ui_port_event, PluginLV2::uiExtensionData }; #ifdef __cplusplus extern "C" { #endif LV2_SYMBOL_EXPORT const LV2_Descriptor* lv2_descriptor(uint32_t index) { switch (index) { case 0: return &descriptor; default: return nullptr; } } LV2_SYMBOL_EXPORT const LV2UI_Descriptor *lv2ui_descriptor(uint32_t index) { switch(index) { case 0: return &ui_descriptor; default: return nullptr; } } // // DynManifest experiments failed, but the code is kept here for nostalgic // reasons :-) // // //int lv2_dyn_manifest_open(LV2_Dyn_Manifest_Handle* handle, // const LV2_Feature* const* features) //{ // *handle = createEffectInstance(); // return 0; //} // //int lv2_dyn_manifest_get_subjects(LV2_Dyn_Manifest_Handle handle, FILE* fp) //{ //// PluginLV2* plugin_lv2 = (PluginLV2*)handle; // // fprintf(fp, "@prefix lv2: .\n"); // fprintf(fp, "<" LV2_PLUGIN_URI "> a lv2:Plugin .\n"); // return 0; //} // //int lv2_dyn_manifest_get_data(LV2_Dyn_Manifest_Handle handle, FILE* fp, // const char* uri) //{ // //PluginLV2* plugin_lv2 = (PluginLV2*)handle; // printf("%s '%s'\n", __PRETTY_FUNCTION__, uri); // return 0; //} // //void lv2_dyn_manifest_close(LV2_Dyn_Manifest_Handle handle) //{ // PluginLV2* plugin_lv2 = (PluginLV2*)handle; // delete plugin_lv2; //} #ifdef __cplusplus } #endif drumgizmo-0.9.14/plugin/plugingizmo/plugin.h0000644000076400017500000001433013106047455016066 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * plugin.h * * Sun Feb 7 14:11:40 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include class MidiEvent; //! Plugin categories. enum class PluginCategory { Unknown = 0, // Unknown, category not implemented Effect, // Simple Effect Synth, // Instrument (Synths, samplers,...) Analysis, // Scope, Tuner, ... Mastering, // Dynamics, ... Spacializer, // Panners, ... RoomFx, // Delays and Reverbs SurroundFx, // Dedicated surround processor Restoration, // Denoiser, ... OfflineProcess, // Offline Process Shell, // Plug-in is container of other plug-ins Generator // ToneGenerator, ... }; //! Abstract base-class for plugin implementations. class Plugin { public: //! Implement this to create a new plugin instance. static Plugin* create(); //! Init function for setting up plugin parameters. virtual void init() = 0; //! Get current free-wheel mode. virtual bool getFreeWheel() const = 0; //! This method is called by the host when the free-wheel mode changes. virtual void onFreeWheelChange(bool freewheel) {} //! Call this to get current samplerate. virtual float getSamplerate() = 0; //! This method is called by the host when the samplerate changes. virtual void onSamplerateChange(float samplerate) = 0; //! Call this to get current frame-size. virtual std::size_t getFramesize() = 0; //! This method is called by the host when the frame-size changes. virtual void onFramesizeChange(std::size_t framesize) = 0; //! Call this to get current active state virtual bool getActive() = 0; //! This method is called by the host when the active state changes. virtual void onActiveChange(bool active) = 0; //! This method is called by the host to get the current state for storing. virtual std::string onStateSave() = 0; //! This method is called by the host when a new state has been loaded. virtual void onStateRestore(const std::string& config) = 0; //! This is method is called by the host to get the current latency. //! \param The latency in samples. virtual float getLatency() = 0; //! Call this method to signal a latency change to the host. //! \param latency The latency in samples. virtual void setLatency(float latency) = 0; //! Called by the the host to get the number of midi input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiInputs() = 0; //! Called by the the host to get the number of midi output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiOutputs() = 0; //! Called by the the host to get the number of audio input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioInputs() = 0; //! Called by the the host to get the number of audio output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioOutputs() = 0; //! Get unique plugin id. virtual std::string getId() = 0; // Functions used to set plugin information. virtual std::string getEffectName() = 0; virtual std::string getVendorString() = 0; virtual std::string getProductString() = 0; virtual PluginCategory getPluginCategory() = 0; //! Process callback. virtual void process(std::size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, std::size_t count) = 0; // // Inline GUI (optional) // //! Return true if a GUI implementation is to be used. virtual bool hasInlineGUI() { return false; } struct InlineDrawContext { std::size_t width{0}; //< Width of the render buffer. std::size_t height{0}; //< Height of the render buffer. std::uint8_t* data{nullptr}; //< Allocated (or reused) RGBA buffer, filled by the plugin. }; #define pgzRGBA(r, g, b, a) ((b) | (g) << 8 | (r) << 16 | (a) << 24) //! Render call back. //! \param width The client area width as specified by the host. //! \param max_height The maximum allowed clieant area height as specified //! by the host. //! \param context The render context filled an maintained by the plugin. virtual void onInlineRedraw(std::size_t width, std::size_t max_height, InlineDrawContext& context) {} // // GUI (optional) // //! Return true if a GUI implementation is to be used. virtual bool hasGUI() { return false; } //! Create new window. virtual void* createWindow(void *parent) { return nullptr; } //! Destroy window. virtual void onDestroyWindow() {} //! Show window. virtual void onShowWindow() {} //! Hide window. virtual void onHideWindow() {} //! Called regularly by host; process ui events. virtual void onIdle() {} //! Signal new window size to host. virtual void resizeWindow(std::size_t width, std::size_t height) = 0; //! Signal close window event to the host. virtual void closeWindow() = 0; }; drumgizmo-0.9.14/plugin/plugingizmo/pluginvst.h0000644000076400017500000001574013106047455016631 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginvst.h * * Mon Feb 8 19:24:39 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #if defined(WIN32) #define WIN32_LEAN_AND_MEAN #include #endif // defined(WIN32) class PluginVST : public Plugin , public AudioEffectX { public: //! Call this to set up number of inputs/outpus, unique id etc... //! IMPORTANT: This must be called form the constructor. void init() override; //! Get current free-wheel mode. bool getFreeWheel() const override; //! Call this to get current samplerate. float getSamplerate() override; //! This method is called by the host when the free-wheel mode changes. virtual void onSamplerateChange(float samplerate) override = 0; //! Call this to get current frame-size. std::size_t getFramesize() override; //! This method is called by the host when the frame-size changes. virtual void onFramesizeChange(std::size_t framesize) override = 0; //! Call this to get current active state bool getActive() override; //! This method is called by the host when the active state changes. virtual void onActiveChange(bool active) override = 0; //! This method is called by the host to get the current state for storing. virtual std::string onStateSave() override = 0; //! This method is called by the host when a new state has been loaded. virtual void onStateRestore(const std::string& config) override = 0; //! This is method is called by the host to get the current latency. //! \param The latency in samples. float getLatency() override; //! Call this method to signal a latency change to the host. //! \param latency The latency in samples. void setLatency(float latency) override; //! Called by the the host to get the number of audio input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioInputs() override = 0; //! Called by the the host to get the number of audio output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfAudioOutputs() override = 0; //! Called by the the host to get the number of midi input channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiInputs() override = 0; //! Called by the the host to get the number of midi output channels. //! This must remain constant during the lifespan of the plugin instance. virtual std::size_t getNumberOfMidiOutputs() override = 0; // VST plugin information //! Get unique plugin id. std::string getId() override = 0; // Functions used to set plugin information for VST //! Returns value which is then used by getEffectName std::string getEffectName() override = 0; //! Returns value which is then used by getVendorString std::string getVendorString() override = 0; //! Returns value which is then used by getProductString std::string getProductString() override = 0; //! Returns value which is then used by getPlugCategory PluginCategory getPluginCategory() override = 0; //! Fill \e text with a string identifying the effect bool getEffectName(char* name); //! Fill \e text with a string identifying the vendor bool getVendorString(char* text); //! Fill \e text with a string identifying the product name bool getProductString(char* text); //! Specify a category that fits the plug (#VstPlugCategory) virtual VstPlugCategory getPlugCategory() override; virtual void process(std::size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, std::size_t count) = 0; // // GUI // //! Return true if a GUI implementation is to be used. virtual bool hasGUI() override { return false; } //! Create new window. virtual void* createWindow(void *parent) override { return nullptr; } //! Destroy window. virtual void onDestroyWindow() override {} //! Show window. virtual void onShowWindow() override {} //! Hide window. virtual void onHideWindow() override {} //! Called regularly by host; process ui events. virtual void onIdle() override {} //! Signal new window size to host. void resizeWindow(std::size_t width, std::size_t height) override; //! Signal close window event to the host. void closeWindow() override; protected: bool active{false}; void updateLatency(); float current_latency{0.0f}; float update_latency{0.0f}; bool free_wheel{true}; std::vector input_events; std::size_t pos{0}; public: PluginVST(audioMasterCallback audioMaster); virtual ~PluginVST(); // From AudioEffect: void open() override; void close() override; void suspend() override; void resume() override; bool getInputProperties(VstInt32 index, VstPinProperties* props) override; bool getOutputProperties(VstInt32 index, VstPinProperties* props) override; // Callbacks: void setSampleRate(float sampleRate) override; void setBlockSize(VstInt32 blockSize) override; VstInt32 getChunk(void **data, bool isPreset) override; VstInt32 setChunk(void *data, VstInt32 byteSize, bool isPreset) override; // From AudioEffectX: VstInt32 canDo(char* text) override; void processReplacing(float** inputs, float** outputs, VstInt32 sampleFrames) override; VstInt32 processEvents(VstEvents *events) override; // UI class UI : public AEffEditor { public: UI(PluginVST& plugin_vst); bool open(void* ptr) override; void close() override; bool isOpen() override; void idle() override; bool getRect(ERect** rect) override; PluginVST& plugin_vst; bool is_open{false}; ERect rect{0,0,100,100}; }; private: std::shared_ptr editor; }; AudioEffect* createEffectInstance(audioMasterCallback audioMaster); drumgizmo-0.9.14/plugin/plugingizmo/pluginvst.cc0000644000076400017500000002566312741724445017001 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginvst.cc * * Mon Feb 8 19:24:40 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "pluginvst.h" #include "midievent.h" #include #include bool PluginVST::getFreeWheel() const { return free_wheel; } float PluginVST::getSamplerate() { return AudioEffectX::getSampleRate(); } std::size_t PluginVST::getFramesize() { return AudioEffectX::getBlockSize(); } bool PluginVST::getActive() { return active; } float PluginVST::getLatency() { return current_latency; } void PluginVST::setLatency(float latency) { update_latency = latency; } void PluginVST::updateLatency() { if(update_latency != current_latency) { AudioEffectX::setInitialDelay(current_latency); AudioEffectX::ioChanged(); current_latency = update_latency; } } static uint32_t sdbm_hash(std::string input) { unsigned long hash = 0; for(auto& cha : input) { hash = (unsigned char)cha + (hash << 6) + (hash << 16) - hash; } return hash; } // // VST AudioEffectX implementation: // PluginVST::PluginVST(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 0, 0) { } PluginVST::~PluginVST() { } void PluginVST::init() { // virtual void setUniqueID (VstInt32 iD) // Must be called to set the plug-ins unique ID! uint32_t hash = sdbm_hash(getId()); AudioEffect::setUniqueID(hash); // virtual void setNumInputs (VstInt32 inputs) // Set the number of inputs the plug-in will handle. For a plug-in which // could change its IO configuration, this number is the maximun available // inputs. AudioEffect::setNumInputs(getNumberOfAudioInputs()); // virtual void setNumOutputs (VstInt32 outputs) // Set the number of outputs the plug-in will handle. For a plug-in which // could change its IO configuration, this number is the maximun available // ouputs. AudioEffect::setNumOutputs(getNumberOfAudioOutputs()); // virtual void canProcessReplacing (bool state=true) // Tells that processReplacing() could be used. Mandatory in VST 2.4! AudioEffect::canProcessReplacing(true); // virtual void canDoubleReplacing (bool state=true) // Tells that processDoubleReplacing() is implemented. AudioEffect::canDoubleReplacing(false); // virtual void programsAreChunks (bool state=true) // Program data is handled in formatless chunks (using getChunk-setChunks). AudioEffect::programsAreChunks(true); // for generic config string support. // virtual void setInitialDelay (VstInt32 delay) // Use to report the plug-in's latency (Group Delay). AudioEffect::setInitialDelay(0); AudioEffectX::isSynth(getNumberOfMidiInputs() > 0); // We might produce output when there is no input. AudioEffectX::noTail(false); if(hasGUI()) { editor = std::make_shared(*this); setEditor(editor.get()); } } void PluginVST::open() { // Called when plug-in is initialized. } void PluginVST::close() { // Called when plug-in will be released. setEditor(nullptr); editor = nullptr; } void PluginVST::suspend() { // Called when plug-in is switched to off. active = false; onActiveChange(active); updateLatency(); } void PluginVST::resume() { updateLatency(); // Called when plug-in is switched to on. active = true; onActiveChange(active); } bool PluginVST::getInputProperties(VstInt32 index, VstPinProperties* props) { if(index < (VstInt32)getNumberOfAudioInputs()) { vst_strncpy(props->label, "Channel ", 63); char temp[11] = {0}; int2string(index + 1, temp, 10); vst_strncat(props->label, temp, 63); props->flags = kVstPinIsActive; return true; } return false; } bool PluginVST::getOutputProperties(VstInt32 index, VstPinProperties* props) { if(index < (VstInt32)getNumberOfAudioOutputs()) { vst_strncpy(props->label, "Channel ", 63); char temp[11] = {0}; int2string(index + 1, temp, 10); vst_strncat(props->label, temp, 63); props->flags = kVstPinIsActive; return true; } return false; } void PluginVST::setSampleRate(float sampleRate) { // Called when the sample rate changes (always in a suspend state). onSamplerateChange(sampleRate); } void PluginVST::setBlockSize(VstInt32 blockSize) { // Called when the Maximun block size changes (always in a suspend state). // Note that the sampleFrames in Process Calls could be smaller than this // block size, but NOT bigger. onFramesizeChange(blockSize); } bool PluginVST::getEffectName(char* name) { vst_strncpy (name, this->getEffectName().c_str(), kVstMaxEffectNameLen); return true; } bool PluginVST::getVendorString(char* text) { vst_strncpy (text, this->getVendorString().c_str(), kVstMaxVendorStrLen); return true; } bool PluginVST::getProductString(char* text) { vst_strncpy (text, this->getProductString().c_str(), kVstMaxProductStrLen); return true; } VstPlugCategory PluginVST::getPlugCategory() { switch(this->getPluginCategory()) { case PluginCategory::Unknown: return kPlugCategUnknown; case PluginCategory::Effect: return kPlugCategEffect; case PluginCategory::Synth: return kPlugCategSynth; case PluginCategory::Analysis: return kPlugCategAnalysis; case PluginCategory::Mastering: return kPlugCategMastering; case PluginCategory::Spacializer: return kPlugCategSpacializer; case PluginCategory::RoomFx: return kPlugCategRoomFx; case PluginCategory::SurroundFx: return kPlugSurroundFx; case PluginCategory::Restoration: return kPlugCategRestoration; case PluginCategory::OfflineProcess: return kPlugCategOfflineProcess; case PluginCategory::Shell: return kPlugCategShell; case PluginCategory::Generator: return kPlugCategGenerator; } return kPlugCategUnknown; } VstInt32 PluginVST::processEvents(VstEvents* events) { // For each process cycle, processEvents() is called once before a // processReplacing() call. for(VstInt32 i = 0; i < events->numEvents; ++i) { auto event = events->events[i]; if(event->type != kVstMidiType) { continue; } auto midi_event = (VstMidiEvent*)event; input_events.emplace_back(midi_event->deltaFrames, midi_event->midiData, midi_event->byteSize); } return 0; } void PluginVST::processReplacing(float** inputs, float** outputs, VstInt32 sampleFrames) { // Process 32 bit (single precision) floats (always in a resume state). // 0 = realtime/normal // 1 = non-realtime/rendering // 2 = offline processing long lvl = AudioEffectX::getCurrentProcessLevel(); bool last_free_wheel = free_wheel; free_wheel = (lvl != 0); if(last_free_wheel != free_wheel) { onFreeWheelChange(free_wheel); } std::vector input_audio_ports; for(std::size_t i = 0; i < getNumberOfAudioInputs(); ++i) { input_audio_ports.emplace_back(inputs[i]); } std::vector output_audio_ports; output_audio_ports.resize(getNumberOfAudioOutputs()); for(std::size_t i = 0; i < getNumberOfAudioOutputs(); ++i) { output_audio_ports[i] = outputs[i]; } std::vector output_events; // Process events and audio process(pos, input_events, output_events, input_audio_ports, output_audio_ports, (std::size_t)sampleFrames); input_events.clear(); if(getNumberOfMidiOutputs()) { // Translate output_events to VST midi events. std::vector vst_output_event_list; vst_output_event_list.resize(output_events.size()); for(std::size_t i = 0; i < output_events.size(); ++i) { vst_output_event_list[i].deltaFrames = output_events[i].getTime(); vst_output_event_list[i].type = kVstMidiType; const char* data = output_events[i].getData(); for(std::size_t j = 0; j < output_events[i].getSize(); ++j) { vst_output_event_list[i].midiData[j] = data[j]; } vst_output_event_list[i].byteSize = output_events[i].getSize(); } if(!vst_output_event_list.empty()) { // Dispatch output events to host VstEvents vst_output_events; vst_output_events.numEvents = vst_output_event_list.size(); vst_output_events.events[0] = (VstEvent*)vst_output_event_list.data(); sendVstEventsToHost(&vst_output_events); } } pos += sampleFrames; } VstInt32 PluginVST::getChunk(void **data, bool isPreset) { std::string state = onStateSave(); char* chunk = (char*)malloc(state.size() + 1); memcpy(chunk, state.data(), state.size()); *data = chunk; return state.size(); } VstInt32 PluginVST::setChunk(void *data, VstInt32 byteSize, bool isPreset) { std::string state; state.append((const char*)data, (std::size_t)byteSize); onStateRestore(state); return 0; } VstInt32 PluginVST::canDo(char* text) { std::string feature = text; // Midi input if((feature == "receiveVstMidiEvent") &&//PlugCanDos::canDoReceiveVstMidiEvent (getNumberOfMidiInputs() > 0)) { return 1; } // Midi output if((feature == "sendVstMidiEvent") && // PlugCanDos::canDoSendVstMidiEvent (getNumberOfMidiOutputs() > 0)) { return 1; } // For FreeWheel functionality. if(feature == "offline") // PlugCanDos::canDoOffline { return 1; } // TODO: For soft-bypass state. //if(feature == "bypass") // PlugCanDos::canDoBypass) //{ // return 1; //} // TODO: For receiving metronome ticks? //if(feature == "receiveVstTimeInfo") // PlugCanDos::canDoReceiveVstTimeInfo) //{ // return 1; //} return 0; } void PluginVST::resizeWindow(std::size_t width, std::size_t height) { if(editor) { editor->rect.top = 0; editor->rect.left = 0; editor->rect.right = width; editor->rect.bottom = height; } } void PluginVST::closeWindow() { } PluginVST::UI::UI(PluginVST& plugin_vst) : AEffEditor(&plugin_vst) , plugin_vst(plugin_vst) { } bool PluginVST::UI::open(void* ptr) { plugin_vst.createWindow(ptr); AEffEditor::open(ptr); is_open = true; return true; } void PluginVST::UI::close() { is_open = false; plugin_vst.onDestroyWindow(); AEffEditor::close(); } bool PluginVST::UI::isOpen() { return is_open; } void PluginVST::UI::idle() { if(is_open) { plugin_vst.onIdle(); } AEffEditor::idle(); } bool PluginVST::UI::getRect(ERect** rect) { *rect = &this->rect; return true; } drumgizmo-0.9.14/plugin/plugingizmo/midievent.h0000644000076400017500000000311412673467220016556 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midievent.h * * Sun Feb 7 15:09:01 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of PluginGizmo. * * PluginGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * PluginGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with PluginGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include enum class MidiEventType { Unknown, NoteOn, NoteOff, }; class MidiEvent { public: MidiEvent() = default; MidiEvent(int64_t time, const char* data, std::size_t size); int64_t getTime() const; const char* getData() const; std::size_t getSize() const; MidiEventType type{MidiEventType::Unknown}; int key{0}; int velocity{0}; private: int64_t time; std::vector data; }; drumgizmo-0.9.14/plugin/drumgizmo_plugin.h0000644000076400017500000001251413106047433015615 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmo_lv2.h * * Wed Mar 2 17:31:31 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #ifdef LV2 #include #endif #ifdef VST #include #endif #include #include #include #include #include #include class DrumGizmoPlugin #ifdef LV2 : public PluginLV2 #endif #ifdef VST : public PluginVST #endif { public: #ifdef VST DrumGizmoPlugin(audioMasterCallback audioMaster); #else DrumGizmoPlugin(); #endif void onFramesizeChange(size_t framesize) override; void onSamplerateChange(float samplerate) override; void onActiveChange(bool active) override; std::string onStateSave() override; void onStateRestore(const std::string& config) override; size_t getNumberOfMidiInputs() override; size_t getNumberOfMidiOutputs() override; size_t getNumberOfAudioInputs() override; size_t getNumberOfAudioOutputs() override; // Functions used to set VST plugin information std::string getId() override; std::string getEffectName() override; std::string getVendorString() override; std::string getProductString() override; PluginCategory getPluginCategory() override; void process(size_t pos, const std::vector& input_events, std::vector& output_events, const std::vector& input_samples, const std::vector& output_samples, size_t count) override; // // Inline GUI // bool hasInlineGUI() override; void onInlineRedraw(std::size_t width, std::size_t max_height, InlineDrawContext& context) override; // // GUI // bool hasGUI() override; void* createWindow(void *parent) override; void onDestroyWindow() override; void onShowWindow() override; void onHideWindow() override; void onIdle() override; void closeWindow() override; private: class Input : public AudioInputEngineMidi { public: Input(DrumGizmoPlugin& plugin); bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre() override; void run(size_t pos, size_t len, std::vector& events) override; void post() override; bool isFreewheeling() const override; protected: DrumGizmoPlugin& plugin; const Instruments* instruments{nullptr}; }; class Output : public AudioOutputEngine { public: Output(DrumGizmoPlugin& plugin); bool init(const Channels& channels) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre(size_t nsamples) override; void run(int ch, sample_t *samples, size_t nsamples) override; void post(size_t nsamples) override; sample_t *getBuffer(int ch) const override; size_t getBufferSize() const override; bool isFreewheeling() const override; protected: DrumGizmoPlugin& plugin; }; class ConfigStringIO { public: ConfigStringIO(Settings& settings); std::string get(); bool set(std::string config_string); private: Settings& settings; }; Input input{*this}; const std::vector* input_events{nullptr}; Output output{*this}; const std::vector* output_samples{nullptr}; Settings settings; ConfigStringIO config_string_io; SettingsGetter settingsGetter{settings}; GUI::ImageCache imageCache; GUI::TexturedBox box{imageCache, ":resources/progress.png", 0, 0, // atlas offset (x, y) 6, 1, 6, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 GUI::TexturedBox bar_red{imageCache, ":resources/progress.png", 13, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 GUI::TexturedBox bar_green{imageCache, ":resources/progress.png", 18, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 GUI::TexturedBox bar_blue{imageCache, ":resources/progress.png", 23, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 std::shared_ptr plugin_gui; std::shared_ptr drumgizmo; std::uint32_t inlineDisplayBuffer[1024*1024]; static constexpr std::size_t width{750}; static constexpr std::size_t height{400}; }; drumgizmo-0.9.14/plugin/Makefile.in0000644000076400017500000012553413106051611014116 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 = plugin DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(srcdir)/Makefile.mingw32.in $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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 = Makefile.mingw32 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)$(lv2plugindir)" \ "$(DESTDIR)$(vstplugindir)" "$(DESTDIR)$(lv2plugindir)" \ "$(DESTDIR)$(vstplugindir)" LTLIBRARIES = $(lv2plugin_LTLIBRARIES) $(vstplugin_LTLIBRARIES) am__DEPENDENCIES_1 = drumgizmo_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(top_srcdir)/plugingui/libdggui.la $(top_srcdir)/src/libdg.la am_drumgizmo_la_OBJECTS = hugin.lo drumgizmo_la-midievent.lo \ drumgizmo_la-pluginlv2.lo drumgizmo_la-drumgizmo_plugin.lo drumgizmo_la_OBJECTS = $(am_drumgizmo_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 = drumgizmo_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(drumgizmo_la_CXXFLAGS) \ $(CXXFLAGS) $(drumgizmo_la_LDFLAGS) $(LDFLAGS) -o $@ @ENABLE_LV2_TRUE@am_drumgizmo_la_rpath = -rpath $(lv2plugindir) drumgizmo_vst_la_DEPENDENCIES = vst/libvstsdk.la \ $(top_srcdir)/plugingui/libdggui.la $(top_srcdir)/src/libdg.la am_drumgizmo_vst_la_OBJECTS = hugin.lo drumgizmo_vst_la-midievent.lo \ drumgizmo_vst_la-pluginvst.lo \ drumgizmo_vst_la-drumgizmo_plugin.lo drumgizmo_vst_la_OBJECTS = $(am_drumgizmo_vst_la_OBJECTS) drumgizmo_vst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) \ $(drumgizmo_vst_la_LDFLAGS) $(LDFLAGS) -o $@ @ENABLE_VST_TRUE@am_drumgizmo_vst_la_rpath = -rpath $(vstplugindir) 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 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(drumgizmo_la_SOURCES) $(drumgizmo_vst_la_SOURCES) DIST_SOURCES = $(drumgizmo_la_SOURCES) $(drumgizmo_vst_la_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 = $(lv2plugin_DATA) $(vstplugin_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 \ 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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ SUBDIRS = vst ####### # LV2 ### @ENABLE_LV2_TRUE@lv2plugindir = @LV2DIR@/drumgizmo.lv2 @ENABLE_LV2_TRUE@lv2plugin_LTLIBRARIES = drumgizmo.la @ENABLE_LV2_TRUE@lv2plugin_DATA = manifest.ttl drumgizmo.ttl drumgizmo_la_CXXFLAGS = -DLV2 -DLV2_PLUGIN_URI=\"http://drumgizmo.org/lv2\" \ $(LV2_CFLAGS) \ $(SNDFILE_CFLAGS) \ -I$(top_srcdir)/include \ -I$(top_srcdir)/plugin/plugingizmo \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin drumgizmo_la_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/plugin/plugingizmo/midievent.cc \ $(top_srcdir)/plugin/plugingizmo/pluginlv2.cc \ drumgizmo_plugin.cc drumgizmo_la_LDFLAGS = -shared -module -avoid-version drumgizmo_la_LIBADD = $(LV2_LIBS) \ $(top_srcdir)/plugingui/libdggui.la \ $(top_srcdir)/src/libdg.la ####### # VST ### @ENABLE_VST_TRUE@vstplugindir = $(libdir)/vst @ENABLE_VST_TRUE@vstplugin_LTLIBRARIES = drumgizmo_vst.la @ENABLE_VST_TRUE@vstplugin_DATA = drumgizmo_vst_la_CXXFLAGS = -DVST \ $(SNDFILE_CFLAGS) \ -I$(top_srcdir)/include \ -I$(top_srcdir)/plugin/plugingizmo \ -I$(top_srcdir)/plugingui \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin \ $(VST_CPPFLAGS) -Ivst drumgizmo_vst_la_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/plugin/plugingizmo/midievent.cc \ $(top_srcdir)/plugin/plugingizmo/pluginvst.cc \ drumgizmo_plugin.cc drumgizmo_vst_la_LDFLAGS = -shared -module -avoid-version drumgizmo_vst_la_LIBADD = vst/libvstsdk.la \ $(top_srcdir)/plugingui/libdggui.la \ $(top_srcdir)/src/libdg.la EXTRA_DIST = \ $(lv2plugin_DATA) \ $(vstplugin_DATA) \ drumgizmo_plugin.h \ $(top_srcdir)/plugin/plugingizmo/plugin.h \ $(top_srcdir)/plugin/plugingizmo/midievent.h \ $(top_srcdir)/plugin/plugingizmo/pluginlv2.h \ $(top_srcdir)/plugin/plugingizmo/pluginvst.h \ $(top_srcdir)/plugin/plugingizmo/inline-display.h all: all-recursive .SUFFIXES: .SUFFIXES: .c .cc .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 plugin/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu plugin/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): Makefile.mingw32: $(top_builddir)/config.status $(srcdir)/Makefile.mingw32.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-lv2pluginLTLIBRARIES: $(lv2plugin_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lv2plugin_LTLIBRARIES)'; test -n "$(lv2plugindir)" || 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)$(lv2plugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lv2plugindir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(lv2plugindir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(lv2plugindir)"; \ } uninstall-lv2pluginLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lv2plugin_LTLIBRARIES)'; test -n "$(lv2plugindir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(lv2plugindir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(lv2plugindir)/$$f"; \ done clean-lv2pluginLTLIBRARIES: -test -z "$(lv2plugin_LTLIBRARIES)" || rm -f $(lv2plugin_LTLIBRARIES) @list='$(lv2plugin_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}; \ } install-vstpluginLTLIBRARIES: $(vstplugin_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(vstplugin_LTLIBRARIES)'; test -n "$(vstplugindir)" || 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)$(vstplugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(vstplugindir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(vstplugindir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(vstplugindir)"; \ } uninstall-vstpluginLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(vstplugin_LTLIBRARIES)'; test -n "$(vstplugindir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(vstplugindir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(vstplugindir)/$$f"; \ done clean-vstpluginLTLIBRARIES: -test -z "$(vstplugin_LTLIBRARIES)" || rm -f $(vstplugin_LTLIBRARIES) @list='$(vstplugin_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}; \ } drumgizmo.la: $(drumgizmo_la_OBJECTS) $(drumgizmo_la_DEPENDENCIES) $(EXTRA_drumgizmo_la_DEPENDENCIES) $(AM_V_CXXLD)$(drumgizmo_la_LINK) $(am_drumgizmo_la_rpath) $(drumgizmo_la_OBJECTS) $(drumgizmo_la_LIBADD) $(LIBS) drumgizmo_vst.la: $(drumgizmo_vst_la_OBJECTS) $(drumgizmo_vst_la_DEPENDENCIES) $(EXTRA_drumgizmo_vst_la_DEPENDENCIES) $(AM_V_CXXLD)$(drumgizmo_vst_la_LINK) $(am_drumgizmo_vst_la_rpath) $(drumgizmo_vst_la_OBJECTS) $(drumgizmo_vst_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_la-drumgizmo_plugin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_la-midievent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_la-pluginlv2.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_vst_la-drumgizmo_plugin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_vst_la-midievent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo_vst_la-pluginvst.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hugin.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 $@ $< hugin.lo: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hugin.lo -MD -MP -MF $(DEPDIR)/hugin.Tpo -c -o hugin.lo `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hugin.Tpo $(DEPDIR)/hugin.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='hugin.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 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hugin.lo `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< drumgizmo_la-midievent.lo: $(top_srcdir)/plugin/plugingizmo/midievent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_la-midievent.lo -MD -MP -MF $(DEPDIR)/drumgizmo_la-midievent.Tpo -c -o drumgizmo_la-midievent.lo `test -f '$(top_srcdir)/plugin/plugingizmo/midievent.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/midievent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_la-midievent.Tpo $(DEPDIR)/drumgizmo_la-midievent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/midievent.cc' object='drumgizmo_la-midievent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_la-midievent.lo `test -f '$(top_srcdir)/plugin/plugingizmo/midievent.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/midievent.cc drumgizmo_la-pluginlv2.lo: $(top_srcdir)/plugin/plugingizmo/pluginlv2.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_la-pluginlv2.lo -MD -MP -MF $(DEPDIR)/drumgizmo_la-pluginlv2.Tpo -c -o drumgizmo_la-pluginlv2.lo `test -f '$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_la-pluginlv2.Tpo $(DEPDIR)/drumgizmo_la-pluginlv2.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc' object='drumgizmo_la-pluginlv2.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_la-pluginlv2.lo `test -f '$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/pluginlv2.cc drumgizmo_la-drumgizmo_plugin.lo: drumgizmo_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_la-drumgizmo_plugin.lo -MD -MP -MF $(DEPDIR)/drumgizmo_la-drumgizmo_plugin.Tpo -c -o drumgizmo_la-drumgizmo_plugin.lo `test -f 'drumgizmo_plugin.cc' || echo '$(srcdir)/'`drumgizmo_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_la-drumgizmo_plugin.Tpo $(DEPDIR)/drumgizmo_la-drumgizmo_plugin.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumgizmo_plugin.cc' object='drumgizmo_la-drumgizmo_plugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_la-drumgizmo_plugin.lo `test -f 'drumgizmo_plugin.cc' || echo '$(srcdir)/'`drumgizmo_plugin.cc drumgizmo_vst_la-midievent.lo: $(top_srcdir)/plugin/plugingizmo/midievent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_vst_la-midievent.lo -MD -MP -MF $(DEPDIR)/drumgizmo_vst_la-midievent.Tpo -c -o drumgizmo_vst_la-midievent.lo `test -f '$(top_srcdir)/plugin/plugingizmo/midievent.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/midievent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_vst_la-midievent.Tpo $(DEPDIR)/drumgizmo_vst_la-midievent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/midievent.cc' object='drumgizmo_vst_la-midievent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_vst_la-midievent.lo `test -f '$(top_srcdir)/plugin/plugingizmo/midievent.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/midievent.cc drumgizmo_vst_la-pluginvst.lo: $(top_srcdir)/plugin/plugingizmo/pluginvst.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_vst_la-pluginvst.lo -MD -MP -MF $(DEPDIR)/drumgizmo_vst_la-pluginvst.Tpo -c -o drumgizmo_vst_la-pluginvst.lo `test -f '$(top_srcdir)/plugin/plugingizmo/pluginvst.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/pluginvst.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_vst_la-pluginvst.Tpo $(DEPDIR)/drumgizmo_vst_la-pluginvst.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/plugin/plugingizmo/pluginvst.cc' object='drumgizmo_vst_la-pluginvst.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_vst_la-pluginvst.lo `test -f '$(top_srcdir)/plugin/plugingizmo/pluginvst.cc' || echo '$(srcdir)/'`$(top_srcdir)/plugin/plugingizmo/pluginvst.cc drumgizmo_vst_la-drumgizmo_plugin.lo: drumgizmo_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo_vst_la-drumgizmo_plugin.lo -MD -MP -MF $(DEPDIR)/drumgizmo_vst_la-drumgizmo_plugin.Tpo -c -o drumgizmo_vst_la-drumgizmo_plugin.lo `test -f 'drumgizmo_plugin.cc' || echo '$(srcdir)/'`drumgizmo_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo_vst_la-drumgizmo_plugin.Tpo $(DEPDIR)/drumgizmo_vst_la-drumgizmo_plugin.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumgizmo_plugin.cc' object='drumgizmo_vst_la-drumgizmo_plugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_vst_la_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo_vst_la-drumgizmo_plugin.lo `test -f 'drumgizmo_plugin.cc' || echo '$(srcdir)/'`drumgizmo_plugin.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-lv2pluginDATA: $(lv2plugin_DATA) @$(NORMAL_INSTALL) @list='$(lv2plugin_DATA)'; test -n "$(lv2plugindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(lv2plugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lv2plugindir)" || 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)$(lv2plugindir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(lv2plugindir)" || exit $$?; \ done uninstall-lv2pluginDATA: @$(NORMAL_UNINSTALL) @list='$(lv2plugin_DATA)'; test -n "$(lv2plugindir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(lv2plugindir)'; $(am__uninstall_files_from_dir) install-vstpluginDATA: $(vstplugin_DATA) @$(NORMAL_INSTALL) @list='$(vstplugin_DATA)'; test -n "$(vstplugindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(vstplugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(vstplugindir)" || 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)$(vstplugindir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(vstplugindir)" || exit $$?; \ done uninstall-vstpluginDATA: @$(NORMAL_UNINSTALL) @list='$(vstplugin_DATA)'; test -n "$(vstplugindir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(vstplugindir)'; $(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" 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 $(LTLIBRARIES) $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(lv2plugindir)" "$(DESTDIR)$(vstplugindir)" "$(DESTDIR)$(lv2plugindir)" "$(DESTDIR)$(vstplugindir)"; 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." clean: clean-recursive clean-am: clean-generic clean-libtool clean-lv2pluginLTLIBRARIES \ clean-vstpluginLTLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-lv2pluginDATA install-lv2pluginLTLIBRARIES \ install-vstpluginDATA install-vstpluginLTLIBRARIES @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook 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 -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-lv2pluginDATA uninstall-lv2pluginLTLIBRARIES \ uninstall-vstpluginDATA uninstall-vstpluginLTLIBRARIES .MAKE: $(am__recursive_targets) install-am install-data-am \ install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool \ clean-lv2pluginLTLIBRARIES clean-vstpluginLTLIBRARIES \ 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-data-hook install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-lv2pluginDATA install-lv2pluginLTLIBRARIES install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip install-vstpluginDATA \ install-vstpluginLTLIBRARIES installcheck installcheck-am \ installdirs installdirs-am 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-lv2pluginDATA \ uninstall-lv2pluginLTLIBRARIES uninstall-vstpluginDATA \ uninstall-vstpluginLTLIBRARIES install-data-hook: rm -f $(lv2plugindir)/drumgizmo.la rm -f $(vstplugindir)/drumgizmo_vst.la # 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: drumgizmo-0.9.14/plugin/drumgizmo.ttl0000644000076400017500000001103013104412274014600 00000000000000# LV2 DrumGizmo Plugin # Copyright 2011 Bent Bisballe Nyeng # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. @prefix doap: . @prefix foaf: . @prefix lv2: . @prefix atom: . @prefix ui: . @prefix state: . @prefix pprops: . @prefix lv2: . @prefix rdfs: . @prefix idpy: . a ui:X11UI ; lv2:requiredFeature ui:resize ; lv2:extensionData ui:resize ; lv2:requiredFeature ui:idleInterface ; lv2:extensionData ui:idleInterface ; lv2:requiredFeature ; ui:binary . a lv2:InstrumentPlugin ; doap:name "DrumGizmo" ; doap:maintainer [ foaf:name "DrumGizmo Team" ; foaf:homepage ; ] ; doap:license ; ui:ui ; doap:license ; lv2:optionalFeature ; lv2:optionalFeature ; lv2:optionalFeature idpy:queue_draw ; lv2:extensionData state:interface ; lv2:port [ a lv2:InputPort, lv2:ControlPort ; lv2:index 0 ; lv2:symbol "lv2_freewheel" ; lv2:name "Freewheel" ; lv2:default 0.0 ; lv2:minimum 0.0 ; lv2:maximum 1.0 ; lv2:designation ; lv2:portProperty lv2:toggled ; lv2:portProperty pprops:hasStrictBounds; ] , [ a lv2:OutputPort, lv2:ControlPort ; lv2:designation ; lv2:index 1; lv2:symbol "latency"; lv2:name "Latency"; lv2:minimum 0; lv2:maximum 192000; lv2:portProperty lv2:reportsLatency, lv2:integer; ] , [ a atom:AtomPort , lv2:InputPort; atom:bufferType atom:Sequence ; atom:supports ; lv2:index 2 ; lv2:symbol "control" ; lv2:name "Control" ] , [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 3 ; lv2:symbol "out1" ; lv2:name "Out1" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 4 ; lv2:symbol "out2" ; lv2:name "Out2" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 5 ; lv2:symbol "out3" ; lv2:name "Out3" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 6 ; lv2:symbol "out4" ; lv2:name "Out4" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 7 ; lv2:symbol "out5" ; lv2:name "Out5" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 8 ; lv2:symbol "out6" ; lv2:name "Out6" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 9 ; lv2:symbol "out7" ; lv2:name "Out7" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 10 ; lv2:symbol "out8" ; lv2:name "Out8" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 11 ; lv2:symbol "out9" ; lv2:name "Out9" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 12 ; lv2:symbol "out10" ; lv2:name "Out10" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 13 ; lv2:symbol "out11" ; lv2:name "Out11" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 14 ; lv2:symbol "out12" ; lv2:name "Out12" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 15 ; lv2:symbol "out13" ; lv2:name "Out13" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 16 ; lv2:symbol "out14" ; lv2:name "Out14" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 17 ; lv2:symbol "out15" ; lv2:name "Out15" ], [ a lv2:AudioPort , lv2:OutputPort ; lv2:index 18 ; lv2:symbol "out16" ; lv2:name "Out16" ] . drumgizmo-0.9.14/plugingui/0000755000076400017500000000000013106063421012626 500000000000000drumgizmo-0.9.14/plugingui/maintab.h0000644000076400017500000000443513103427335014345 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * maintab.h * * Fri Mar 24 20:39:59 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "layout.h" #include "frame.h" #include "drumkitframecontent.h" #include "statusframecontent.h" #include "humanizerframecontent.h" #include "diskstreamingframecontent.h" #include "resamplingframecontent.h" struct Settings; class SettingsNotifier; class Config; namespace GUI { class MainTab : public Widget { public: MainTab(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier, Config& config); // From Widget: void resize(std::size_t width, std::size_t height) override; private: void humanizerOnChange(bool on); void resamplingOnChange(bool on); Image logo{":resources/logo.png"}; GridLayout layout{this, 2, 40}; FrameWidget drumkit_frame{this, false}; FrameWidget status_frame{this, false}; FrameWidget humanizer_frame{this, true}; FrameWidget diskstreaming_frame{this, false}; FrameWidget resampling_frame{this, true}; DrumkitframeContent drumkitframe_content; StatusframeContent statusframe_content; HumanizerframeContent humanizerframe_content; DiskstreamingframeContent diskstreamingframe_content; ResamplingframeContent resamplingframe_content; Settings& settings; SettingsNotifier& settings_notifier; }; } // GUI:: drumgizmo-0.9.14/plugingui/pluginconfig.h0000644000076400017500000000252613076174173015425 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginconfig.h * * Tue Jun 3 13:51:29 CEST 2014 * Copyright 2014 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include namespace GUI { class Config : public ConfigFile { public: Config(); ~Config(); bool load(); bool save(); std::string lastkit; std::string lastmidimap; }; } // GUI:: drumgizmo-0.9.14/plugingui/humanizerframecontent.cc0000644000076400017500000000507013077120602017471 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * humanizerframecontent.cc * * Fri Mar 24 21:49:58 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "humanizerframecontent.h" #include #include "painter.h" namespace GUI { HumanizerframeContent::HumanizerframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : Widget(parent) , settings(settings) , settings_notifier(settings_notifier) { layout.setResizeChildren(false); attack.resize(80, 80); attack_knob.resize(30, 30); attack_knob.showValue(false); attack.setControl(&attack_knob); layout.addItem(&attack); falloff.resize(80, 80); falloff_knob.resize(30, 30); falloff_knob.showValue(false); falloff.setControl(&falloff_knob); layout.addItem(&falloff); layout.setPosition(&attack, GridLayout::GridRange{1, 2, 0, 1}); layout.setPosition(&falloff, GridLayout::GridRange{2, 3, 0, 1}); CONNECT(this, settings_notifier.velocity_modifier_falloff, &falloff_knob, &Knob::setValue); CONNECT(this, settings_notifier.velocity_modifier_weight, &attack_knob, &Knob::setValue); CONNECT(&attack_knob, valueChangedNotifier, this, &HumanizerframeContent::attackValueChanged); CONNECT(&falloff_knob, valueChangedNotifier, this, &HumanizerframeContent::falloffValueChanged); } void HumanizerframeContent::attackValueChanged(float value) { settings.velocity_modifier_weight.store(value); } void HumanizerframeContent::falloffValueChanged(float value) { settings.velocity_modifier_falloff.store(value); } } // GUI:: drumgizmo-0.9.14/plugingui/humanizerframecontent.h0000644000076400017500000000525613077120602017341 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * humanizerframecontent.h * * Fri Mar 24 21:49:58 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "knob.h" #include "label.h" #include "layout.h" #include "widget.h" #include #include struct Settings; class SettingsNotifier; namespace GUI { // TODO move this to an own file? class LabeledControl : public Widget { public: LabeledControl(Widget* parent, const std::string& name) : Widget(parent) { layout.setResizeChildren(false); layout.setHAlignment(HAlignment::center); layout.setSpacing(2); caption.setText(name); caption.resize(100, 20); caption.setAlignment(TextAlignment::center); layout.addItem(&caption); } void setControl(Knob* control) { layout.addItem(control); CONNECT(control, valueChangedNotifier, this, &LabeledControl::setValue); setValue(control->value()); value.resize(100, 20); value.setAlignment(TextAlignment::center); layout.addItem(&value); } private: VBoxLayout layout{this}; Label caption{this}; Label value{this}; void setValue(float new_value) { std::stringstream stream; stream << std::fixed << std::setprecision(2) << new_value; value.setText(stream.str()); } }; class HumanizerframeContent : public Widget { public: HumanizerframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); private: void attackValueChanged(float value); void falloffValueChanged(float value); GridLayout layout{this, 4, 1}; LabeledControl attack{this, "Attack"}; LabeledControl falloff{this, "Release"}; Knob attack_knob{&attack}; Knob falloff_knob{&falloff}; Settings& settings; SettingsNotifier& settings_notifier; }; } // GUI:: drumgizmo-0.9.14/plugingui/statusframecontent.h0000644000076400017500000000421313103427335016655 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * statusframecontent.h * * Fri Mar 24 21:49:50 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "settings.h" #include "textedit.h" #include "widget.h" class SettingsNotifier; namespace GUI { class StatusframeContent : public Widget { public: StatusframeContent(Widget* parent, SettingsNotifier& settings_notifier); // From Widget virtual void resize(std::size_t width, std::size_t height) override; void updateContent(); void updateDrumkitLoadStatus(LoadStatus load_status); void updateDrumkitName(std::string const& drumkit_name); void updateDrumkitDescription(std::string const& drumkit_description); void updateDrumkitVersion(std::string const& drumkit_version); void updateMidimapLoadStatus(LoadStatus load_status); void updateBufferSize(std::size_t buffer_size); void updateNumberOfUnderruns(std::size_t number_of_underruns); private: TextEdit text_field{this}; SettingsNotifier& settings_notifier; std::string drumkit_load_status; std::string drumkit_name; std::string drumkit_description; std::string drumkit_version; std::string midimap_load_status; std::string buffer_size; std::string number_of_underruns; }; } // GUI:: drumgizmo-0.9.14/plugingui/pluginconfig.cc0000644000076400017500000000320613076174172015556 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pluginconfig.cc * * Tue Jun 3 13:54:05 CEST 2014 * Copyright 2014 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "pluginconfig.h" #include #define CONFIGFILENAME "plugingui.conf" namespace GUI { Config::Config() : ConfigFile(CONFIGFILENAME) { } Config::~Config() { } bool Config::load() { lastkit.clear(); lastmidimap.clear(); if(!ConfigFile::load()) { return false; } lastkit = getValue("lastkit"); lastmidimap = getValue("lastmidimap"); return true; } bool Config::save() { setValue("lastkit", lastkit); setValue("lastmidimap", lastmidimap); return ConfigFile::save(); } } // GUI:: drumgizmo-0.9.14/plugingui/checkbox.h0000644000076400017500000000271113077120602014510 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * checkbox.h * * Sat Nov 26 15:07:44 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "toggle.h" #include "texture.h" namespace GUI { class CheckBox : public Toggle { public: CheckBox(Widget *parent); virtual ~CheckBox() = default; protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: Texture bg_on; Texture bg_off; Texture knob; }; } // GUI:: drumgizmo-0.9.14/plugingui/mainwindow.h0000644000076400017500000000442413077120602015101 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * mainwindow.h * * Sat Nov 26 14:27:28 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "abouttab.h" #include "image.h" #include "tabwidget.h" #include "texturedbox.h" #include "window.h" #include "maintab.h" #include "pluginconfig.h" namespace GUI { class MainWindow : public Window { public: MainWindow(Settings& settings, void* native_window); ~MainWindow(); //! Process all events and messages in queue //! \return true if not closing, returns false if closing. bool processEvents(); //! Notify when window is closing. Notifier<> closeNotifier; void closeEventHandler(); private: void sizeChanged(std::size_t width, std::size_t height); // From Widget void repaintEvent(RepaintEvent* repaintEvent) override final; Config config; SettingsNotifier settings_notifier; TabWidget tabs{this}; MainTab main_tab; AboutTab about_tab{&tabs}; Image back{":resources/bg.png"}; TexturedBox sidebar{getImageCache(), ":resources/sidebar.png", 0, 0, // offset 16, 0, 0, // delta-x 14, 1, 14}; // delta-y TexturedBox topbar{getImageCache(), ":resources/topbar.png", 0, 0, // atlas offset (x, y) 1, 1, 1, // dx1, dx2, dx3 17, 1, 1}; // dy1, dy2, dy3 bool closing{false}; }; } // GUI:: drumgizmo-0.9.14/plugingui/tabwidget.cc0000644000076400017500000000671113101320167015032 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * tabwidget.cc * * Thu Nov 24 17:46:22 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "tabwidget.h" #include "painter.h" namespace GUI { TabWidget::TabWidget(Widget *parent) : Widget(parent) , stack(this) { CONNECT(this, sizeChangeNotifier, this, &TabWidget::sizeChanged); CONNECT(&stack, currentChanged, this, &TabWidget::setActiveButtons); } void TabWidget::addTab(const std::string& title, Widget* widget) { buttons.emplace_back(this, widget); auto& button = buttons.back(); button.setText(title); stack.addWidget(widget); CONNECT(&button, switchTabNotifier, this, &TabWidget::switchTab); CONNECT(&button, scrollNotifier, this, &TabWidget::rotateTab); sizeChanged(width(), height()); } std::size_t TabWidget::getBarHeight() const { return topbar.height(); } void TabWidget::rotateTab(float delta) { Widget* widget{nullptr}; if(delta > 0.0f) { widget = stack.getWidgetAfter(stack.getCurrentWidget()); } else { widget = stack.getWidgetBefore(stack.getCurrentWidget()); } if(widget) { switchTab(widget); } } void TabWidget::switchTab(Widget* tabWidget) { stack.setCurrentWidget(tabWidget); } void TabWidget::setActiveButtons(Widget* current_widget) { for (auto& button : buttons) { if (button.getTabWidget() == current_widget) { button.setActive(true); } else { button.setActive(false); } } } void TabWidget::sizeChanged(int width, int height) { std::size_t pos = 0; std::size_t button_width = 1; std::size_t bar_height = 25; std::size_t button_border_width = 10; std::size_t button_padding_left = 25; std::size_t button_padding_inner = 3; std::size_t logo_padding_right = button_padding_left / 2; Painter p(*this); if(buttons.size() > 0) { for (auto& button : buttons) { auto min_width = button.getMinimalWidth(); button_width = std::max(button_width, min_width + button_border_width); } button_width = std::min(button_width, width / buttons.size()); } // draw the upper bar topbar.setSize(width, bar_height); p.drawImage(0, 0, topbar); auto x_logo = width - toplogo.width() - logo_padding_right; auto y_logo = (bar_height - toplogo.height()) / 2; p.drawImage(x_logo, y_logo, toplogo); // place the buttons pos = button_padding_left; for(auto& button : buttons) { button.resize(button_width, bar_height); button.move(pos, 0); pos += button_width + button_padding_inner; } stack.move(0, bar_height); stack.resize(width, height - bar_height); } } // GUI:: drumgizmo-0.9.14/plugingui/frame.h0000644000076400017500000000512013077162325014021 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * frame.h * * Tue Feb 7 21:07:56 CET 2017 * Copyright 2017 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "font.h" #include "powerbutton.h" #include "widget.h" namespace GUI { class FrameWidget : public Widget { public: FrameWidget(Widget* parent, bool has_switch = false); virtual ~FrameWidget() = default; // From Widget: virtual bool isFocusable() override { return false; } virtual bool catchMouse() override { return false; } bool isSwitchedOn() { return is_switched_on; } void setTitle(std::string const& title); void setContent(Widget* content); void setOnSwitch(bool on); Notifier onSwitchChangeNotifier; // (bool on) protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; //! Callback for Widget::sizeChangeNotifier void sizeChanged(int width, int height); private: // // upper bar // // label Font font; std::string title; GUI::Colour label_colour{0.1}; std::size_t label_width; // switch bool is_switched_on; PowerButton power_button{this}; void powerButtonStateChanged(bool clicked); // grey box std::size_t bar_height; GUI::Colour grey_box_colour{0.7}; GUI::Colour background_colour{0.85, 0.8}; // // content // // content frame GUI::Colour frame_colour_top{0.95}; GUI::Colour frame_colour_bottom{0.4}; GUI::Colour frame_colour_side{0.6}; // content box Widget* content{nullptr}; std::size_t content_margin{12}; std::size_t content_start_x; std::size_t content_start_y; std::size_t content_width; std::size_t content_height; }; } // GUI:: drumgizmo-0.9.14/plugingui/dialog.h0000644000076400017500000000365613077120602014172 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * dialog.h * * Sun Apr 16 10:31:04 CEST 2017 * Copyright 2017 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "window.h" namespace GUI { //! This class is used the base window for pop-up dialogs, such as a file //! browser. class Dialog : public Window { public: //! - The dialog is placed near the parent window. //! - The parent window event handler will call the dialog event handler //! - While the dialog is visible, all mouse click and keyboard events //! are ignored by the parent event handler. //! - The Dialog registers itself in the parent event handler when contructed //! and removes itself when destructed. //! - The parent event handler will delete all registered Dialogs when itself //! deleted. Dialog(Widget* parent, bool modal = false); ~Dialog(); //! Change modality. void setModal(bool modal); //! Get current modality state. bool isModal() const; private: bool is_modal{false}; Widget* parent{nullptr}; }; } // GUI:: drumgizmo-0.9.14/plugingui/eventhandler.h0000644000076400017500000000414613077120602015405 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * eventhandler.h * * Sun Oct 9 18:58:29 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "guievent.h" #include "nativewindow.h" namespace GUI { class Window; class Dialog; class EventHandler { public: EventHandler(NativeWindow& nativeWindow, Window& window); //! Process all events currently in the event queue. void processEvents(); //! Query if any events are currently in the event queue. bool hasEvent(); //! Query if the topmost event in the event queue is of type. bool queryNextEventType(EventType type); //! Get a single event from the event queue. //! \return A pointer to the event or nullptr if there are none. std::shared_ptr getNextEvent(); void registerDialog(Dialog* dialog); void unregisterDialog(Dialog* dialog); Notifier<> closeNotifier; private: Window& window; NativeWindow& nativeWindow; // Used to ignore mouse button release after a double click. bool lastWasDoubleClick; EventQueue events; std::list dialogs; }; } // GUI:: drumgizmo-0.9.14/plugingui/listboxthin.h0000644000076400017500000000414413077120602015273 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listboxthin.h * * Sun Apr 7 19:39:35 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "widget.h" #include "painter.h" #include "listboxbasic.h" #include "texturedbox.h" namespace GUI { class ListBoxThin : public Widget { public: ListBoxThin(Widget *parent); virtual ~ListBoxThin(); void addItem(std::string name, std::string value); void addItems(std::vector &items); void clear(); bool selectItem(int index); std::string selectedName(); std::string selectedValue(); // From Widget: virtual void repaintEvent(GUI::RepaintEvent* repaintEvent) override; virtual void resize(std::size_t height, std::size_t width) override; // Forwarded notifier from ListBoxBasic::basic Notifier<>& selectionNotifier; Notifier<>& clickNotifier; Notifier<>& valueChangedNotifier; private: ListBoxBasic basic; TexturedBox box{getImageCache(), ":resources/thinlistbox.png", 0, 0, // atlas offset (x, y) 1, 1, 1, // dx1, dx2, dx3 1, 1, 1}; // dy1, dy2, dy3 }; } // GUI:: drumgizmo-0.9.14/plugingui/filebrowser.cc0000644000076400017500000001371213103356314015407 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * filebrowser.cc * * Mon Feb 25 21:09:44 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "filebrowser.h" #include "painter.h" #include "button.h" #include "directory.h" #include #include #include #include #include #include #include #ifdef __MINGW32__ #include #endif namespace GUI { FileBrowser::FileBrowser(Widget* parent) : Dialog(parent, true) , dir(Directory::cwd()) , lbl_path(this) , lineedit(this) , listbox(this) , btn_sel(this) , btn_esc(this) , back(":resources/bg.png") { #if DG_PLATFORM == DG_PLATFORM_WINDOWS above_root = false; #endif setCaption("Open file..."); lbl_path.setText("Path:"); //lineedit.setReadOnly(true); CONNECT(&lineedit, enterPressedNotifier, this, &FileBrowser::handleKeyEvent); CONNECT(&listbox, selectionNotifier, this, &FileBrowser::listSelectionChanged); CONNECT(this, fileSelectNotifier, this, &FileBrowser::select); CONNECT(eventHandler(), closeNotifier, this, &FileBrowser::cancel); btn_sel.setText("Select"); CONNECT(&btn_sel, clickNotifier, this, &FileBrowser::selectButtonClicked); btn_esc.setText("Cancel"); CONNECT(&btn_esc, clickNotifier, this, &FileBrowser::cancelButtonClicked); changeDir(); } void FileBrowser::setPath(const std::string& path) { INFO(filebrowser, "Setting path to '%s'\n", path.c_str()); if(!path.empty()) { dir.setPath(Directory::pathDirectory(path)); } else { dir.setPath(Directory::pathDirectory(Directory::cwd())); } listbox.clear(); changeDir(); } void FileBrowser::resize(std::size_t width, std::size_t height) { Dialog::resize(width, height); int offset = 0; int brd = 5; // border int btn_h = 30; offset += brd; lbl_path.move(brd, offset); lineedit.move(60, offset); offset += btn_h; lbl_path.resize(60, btn_h); lineedit.resize(width - 60 - brd, btn_h); offset += brd; listbox.move(brd, offset); listbox.resize(width - 1 - 2*brd, height - btn_h - 2*brd - offset); btn_esc.move(brd, height - btn_h - brd); btn_esc.resize((width - 1 - 2*brd) / 2 - brd / 2, btn_h); btn_sel.move(brd + width / 2 - brd / 2, height - btn_h - brd); btn_sel.resize((width - 1 - 2*brd) / 2, btn_h); } void FileBrowser::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.drawImageStretched(0,0, back, width(), height()); } void FileBrowser::listSelectionChanged() { changeDir(); } void FileBrowser::selectButtonClicked() { changeDir(); } void FileBrowser::cancelButtonClicked() { cancel(); } void FileBrowser::handleKeyEvent() { listbox.clearSelectedValue(); std::string value = lineedit.getText(); if((value.size() > 1) && (value[0] == '@')) { DEBUG(filebrowser, "Selecting ref-file '%s'\n", value.c_str()); fileSelectNotifier(value); return; } dir.setPath(lineedit.getText()); changeDir(); } void FileBrowser::cancel() { has_filename = false; hide(); fileSelectCancelNotifier(); } void FileBrowser::select(const std::string& file) { has_filename = true; filename = file; hide(); } void FileBrowser::changeDir() { std::string value = listbox.selectedValue(); // if(!Directory::isDir(dir->path() + dir->seperator())) // { // return; // } listbox.clear(); INFO(filebrowser, "Changing path to '%s'\n", (dir.path() + dir.seperator() + value).c_str()); #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(above_root && !value.empty()) { dir.setPath(value + dir.seperator()); value.clear(); above_root = false; } #endif if(value.empty() && !dir.isDir() && Directory::exists(dir.path())) { DEBUG(filebrowser, "Selecting file '%s'\n", dir.path().c_str()); fileSelectNotifier(dir.path()); return; } if(!value.empty() && dir.fileExists(value)) { std::string file = dir.path() + dir.seperator() + value; DEBUG(filebrowser, "Selecting file '%s'\n", file.c_str()); fileSelectNotifier(file); return; } std::vector items; #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(Directory::isRoot(dir.path()) && (value == "..")) { DEBUG(filebrowser, "Showing partitions...\n"); for(auto drive : dir.drives()) { ListBoxBasic::Item item; item.name = drive.name; item.value = drive.name; items.push_back(item); } above_root = true; } else #endif { if(!value.empty() && !dir.cd(value)) { DEBUG(filebrowser, "Error changing to '%s'\n", (dir.path() + dir.seperator() + value).c_str()); return; } Directory::EntryList entries = dir.entryList(); if(entries.empty()) { dir.cdUp(); entries = dir.entryList(); } DEBUG(filebrowser, "Setting path of lineedit to %s\n", dir.path().c_str()); lineedit.setText(dir.path()); for(auto entry : entries) { ListBoxBasic::Item item; item.name = entry; item.value = entry; items.push_back(item); } } listbox.addItems(items); } std::string FileBrowser::getFilename() const { return filename; } bool FileBrowser::hasFilename() const { return has_filename; } } // GUI:: drumgizmo-0.9.14/plugingui/listbox.h0000644000076400017500000000412013077120602014402 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listbox.h * * Mon Feb 25 21:21:40 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "widget.h" #include "painter.h" #include "listboxbasic.h" #include "texturedbox.h" namespace GUI { class ListBox : public Widget { public: ListBox(Widget *parent); virtual ~ListBox(); void addItem(std::string name, std::string value); void addItems(std::vector &items); void clear(); bool selectItem(int index); std::string selectedName(); std::string selectedValue(); void clearSelectedValue(); // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void resize(std::size_t width, std::size_t height) override; // Forwarded notifiers from ListBoxBasic::basic Notifier<>& selectionNotifier; Notifier<>& clickNotifier; Notifier<>& valueChangedNotifier; private: ListBoxBasic basic; TexturedBox box{getImageCache(), ":resources/widget.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 }; } // GUI:: drumgizmo-0.9.14/plugingui/utf8.h0000644000076400017500000000307213077120603013612 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * utf8.h * * Tue Feb 27 19:18:23 CET 2007 * Copyright 2006 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include // Class to convert utf8 to latin1 and the other way around. class UTF8 { public: UTF8(); // Encode a string from latin1 to UTF-8. std::string fromLatin1(std::string const& s); // Decode a string from UTF-8 to latin1. std::string toLatin1(std::string const& s); private: std::unordered_map map_encode; std::unordered_map map_decode; }; drumgizmo-0.9.14/plugingui/textedit.cc0000644000076400017500000001000413103211624014677 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * lineedit.cc * * Tue Oct 21 11:25:26 CEST 2014 * Copyright 2014 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "textedit.h" #include "painter.h" namespace GUI { TextEdit::TextEdit(Widget* parent) : Widget(parent), scroll(this) { setReadOnly(true); scroll.move(width() - 2*x_border - 3, y_border - 1); scroll.resize(16, 100); CONNECT(&scroll, valueChangeNotifier, this, &TextEdit::scrolled); } TextEdit::~TextEdit() { } void TextEdit::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); needs_preprocessing = true; scroll.move(width - 2*x_border - 3, y_border - 1); scroll.resize(scroll.width(), height - 2*(y_border - 1)); } void TextEdit::setReadOnly(bool readonly) { this->readonly = readonly; } bool TextEdit::readOnly() { return readonly; } void TextEdit::setText(const std::string& text) { this->text = text; needs_preprocessing = true; redraw(); textChangedNotifier(); } std::string TextEdit::getText() { return text; } void TextEdit::preprocessText() { std::vector lines; preprocessed_text.clear(); std::string text = this->text; // Handle tab characters for(std::size_t i = 0; i < text.length(); ++i) { char ch = text.at(i); if(ch == '\t') { text.erase(i, 1); text.insert(i, 4, ' '); } } // Handle "\r" for(std::size_t i = 0; i < text.length(); ++i) { char ch = text.at(i); if(ch == '\r') { text.erase(i, 1); } } // Handle new line characters std::size_t pos = 0; do { pos = text.find("\n"); lines.push_back(text.substr(0, pos)); text = text.substr(pos + 1); } while(pos != std::string::npos); // Wrap long lines for(auto it = lines.begin(); it != lines.end(); ++it) { auto line = *it; for(std::size_t i = 0; i < line.length(); ++i) { auto linewidth = font.textWidth(line.substr(0, i)); if(linewidth >= width() - 2*x_border - 10 - scroll.width()) { preprocessed_text.push_back(line.substr(0, i)); line = line.substr(i); i = 0; } } preprocessed_text.push_back(line); } } void TextEdit::repaintEvent(RepaintEvent* repaintEvent) { if(needs_preprocessing) { preprocessText(); } Painter p(*this); // update values of scroll bar scroll.setRange(height() / font.textHeight()); scroll.setMaximum(preprocessed_text.size()); if((width() == 0) || (height() == 0)) { return; } box.setSize(width(), height()); p.drawImage(0, 0, box); p.setColour(Colour(183.0 / 255.0, 219.0 / 255.0, 255.0 / 255.0, 1)); int ypos = font.textHeight() + y_border; auto scroll_value = scroll.value(); for(std::size_t i = 0; i < preprocessed_text.size() - scroll_value; ++i) { if(i * font.textHeight() >= (height() - y_border - font.textHeight())) { break; } auto const& line = preprocessed_text[scroll_value + i]; p.drawText(x_border, ypos, font, line); ypos += font.textHeight(); } } void TextEdit::scrollEvent(ScrollEvent* scrollEvent) { scroll.setValue(scroll.value() + scrollEvent->delta); } void TextEdit::scrolled(int value) { (void)value; redraw(); } } // GUI:: drumgizmo-0.9.14/plugingui/utf8.cc0000644000076400017500000002577213077120603013763 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * utf8.cc * * Tue Feb 27 19:18:23 CET 2007 * Copyright 2006 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo 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. * * DrumGizmo 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 DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "utf8.h" UTF8::UTF8() { // Encode Map map_encode["\x80"] = "\xc2\x80"; map_encode["\x81"] = "\xc2\x81"; map_encode["\x82"] = "\xc2\x82"; map_encode["\x83"] = "\xc2\x83"; map_encode["\x84"] = "\xc2\x84"; map_encode["\x85"] = "\xc2\x85"; map_encode["\x86"] = "\xc2\x86"; map_encode["\x87"] = "\xc2\x87"; map_encode["\x88"] = "\xc2\x88"; map_encode["\x89"] = "\xc2\x89"; map_encode["\x8a"] = "\xc2\x8a"; map_encode["\x8b"] = "\xc2\x8b"; map_encode["\x8c"] = "\xc2\x8c"; map_encode["\x8d"] = "\xc2\x8d"; map_encode["\x8e"] = "\xc2\x8e"; map_encode["\x8f"] = "\xc2\x8f"; map_encode["\x90"] = "\xc2\x90"; map_encode["\x91"] = "\xc2\x91"; map_encode["\x92"] = "\xc2\x92"; map_encode["\x93"] = "\xc2\x93"; map_encode["\x94"] = "\xc2\x94"; map_encode["\x95"] = "\xc2\x95"; map_encode["\x96"] = "\xc2\x96"; map_encode["\x97"] = "\xc2\x97"; map_encode["\x98"] = "\xc2\x98"; map_encode["\x99"] = "\xc2\x99"; map_encode["\x9a"] = "\xc2\x9a"; map_encode["\x9b"] = "\xc2\x9b"; map_encode["\x9c"] = "\xc2\x9c"; map_encode["\x9d"] = "\xc2\x9d"; map_encode["\x9e"] = "\xc2\x9e"; map_encode["\x9f"] = "\xc2\x9f"; map_encode["\xa0"] = "\xc2\xa0"; map_encode["\xa1"] = "\xc2\xa1"; map_encode["\xa2"] = "\xc2\xa2"; map_encode["\xa3"] = "\xc2\xa3"; map_encode["\xa4"] = "\xc2\xa4"; map_encode["\xa5"] = "\xc2\xa5"; map_encode["\xa6"] = "\xc2\xa6"; map_encode["\xa7"] = "\xc2\xa7"; map_encode["\xa8"] = "\xc2\xa8"; map_encode["\xa9"] = "\xc2\xa9"; map_encode["\xaa"] = "\xc2\xaa"; map_encode["\xab"] = "\xc2\xab"; map_encode["\xac"] = "\xc2\xac"; map_encode["\xad"] = "\xc2\xad"; map_encode["\xae"] = "\xc2\xae"; map_encode["\xaf"] = "\xc2\xaf"; map_encode["\xb0"] = "\xc2\xb0"; map_encode["\xb1"] = "\xc2\xb1"; map_encode["\xb2"] = "\xc2\xb2"; map_encode["\xb3"] = "\xc2\xb3"; map_encode["\xb4"] = "\xc2\xb4"; map_encode["\xb5"] = "\xc2\xb5"; map_encode["\xb6"] = "\xc2\xb6"; map_encode["\xb7"] = "\xc2\xb7"; map_encode["\xb8"] = "\xc2\xb8"; map_encode["\xb9"] = "\xc2\xb9"; map_encode["\xba"] = "\xc2\xba"; map_encode["\xbb"] = "\xc2\xbb"; map_encode["\xbc"] = "\xc2\xbc"; map_encode["\xbd"] = "\xc2\xbd"; map_encode["\xbe"] = "\xc2\xbe"; map_encode["\xbf"] = "\xc2\xbf"; map_encode["\xc0"] = "\xc3\x80"; map_encode["\xc1"] = "\xc3\x81"; map_encode["\xc2"] = "\xc3\x82"; map_encode["\xc3"] = "\xc3\x83"; map_encode["\xc4"] = "\xc3\x84"; map_encode["\xc5"] = "\xc3\x85"; map_encode["\xc6"] = "\xc3\x86"; map_encode["\xc7"] = "\xc3\x87"; map_encode["\xc8"] = "\xc3\x88"; map_encode["\xc9"] = "\xc3\x89"; map_encode["\xca"] = "\xc3\x8a"; map_encode["\xcb"] = "\xc3\x8b"; map_encode["\xcc"] = "\xc3\x8c"; map_encode["\xcd"] = "\xc3\x8d"; map_encode["\xce"] = "\xc3\x8e"; map_encode["\xcf"] = "\xc3\x8f"; map_encode["\xd0"] = "\xc3\x90"; map_encode["\xd1"] = "\xc3\x91"; map_encode["\xd2"] = "\xc3\x92"; map_encode["\xd3"] = "\xc3\x93"; map_encode["\xd4"] = "\xc3\x94"; map_encode["\xd5"] = "\xc3\x95"; map_encode["\xd6"] = "\xc3\x96"; map_encode["\xd7"] = "\xc3\x97"; map_encode["\xd8"] = "\xc3\x98"; map_encode["\xd9"] = "\xc3\x99"; map_encode["\xda"] = "\xc3\x9a"; map_encode["\xdb"] = "\xc3\x9b"; map_encode["\xdc"] = "\xc3\x9c"; map_encode["\xdd"] = "\xc3\x9d"; map_encode["\xde"] = "\xc3\x9e"; map_encode["\xdf"] = "\xc3\x9f"; map_encode["\xe0"] = "\xc3\xa0"; map_encode["\xe1"] = "\xc3\xa1"; map_encode["\xe2"] = "\xc3\xa2"; map_encode["\xe3"] = "\xc3\xa3"; map_encode["\xe4"] = "\xc3\xa4"; map_encode["\xe5"] = "\xc3\xa5"; map_encode["\xe6"] = "\xc3\xa6"; map_encode["\xe7"] = "\xc3\xa7"; map_encode["\xe8"] = "\xc3\xa8"; map_encode["\xe9"] = "\xc3\xa9"; map_encode["\xea"] = "\xc3\xaa"; map_encode["\xeb"] = "\xc3\xab"; map_encode["\xec"] = "\xc3\xac"; map_encode["\xed"] = "\xc3\xad"; map_encode["\xee"] = "\xc3\xae"; map_encode["\xef"] = "\xc3\xaf"; map_encode["\xf0"] = "\xc3\xb0"; map_encode["\xf1"] = "\xc3\xb1"; map_encode["\xf2"] = "\xc3\xb2"; map_encode["\xf3"] = "\xc3\xb3"; map_encode["\xf4"] = "\xc3\xb4"; map_encode["\xf5"] = "\xc3\xb5"; map_encode["\xf6"] = "\xc3\xb6"; map_encode["\xf7"] = "\xc3\xb7"; map_encode["\xf8"] = "\xc3\xb8"; map_encode["\xf9"] = "\xc3\xb9"; map_encode["\xfa"] = "\xc3\xba"; map_encode["\xfb"] = "\xc3\xbb"; map_encode["\xfc"] = "\xc3\xbc"; map_encode["\xfd"] = "\xc3\xbd"; map_encode["\xfe"] = "\xc3\xbe"; map_encode["\xff"] = "\xc3\xbf"; // Decode Map map_decode["\xc2\x80"] = "\x80"; map_decode["\xc2\x81"] = "\x81"; map_decode["\xc2\x82"] = "\x82"; map_decode["\xc2\x83"] = "\x83"; map_decode["\xc2\x84"] = "\x84"; map_decode["\xc2\x85"] = "\x85"; map_decode["\xc2\x86"] = "\x86"; map_decode["\xc2\x87"] = "\x87"; map_decode["\xc2\x88"] = "\x88"; map_decode["\xc2\x89"] = "\x89"; map_decode["\xc2\x8a"] = "\x8a"; map_decode["\xc2\x8b"] = "\x8b"; map_decode["\xc2\x8c"] = "\x8c"; map_decode["\xc2\x8d"] = "\x8d"; map_decode["\xc2\x8e"] = "\x8e"; map_decode["\xc2\x8f"] = "\x8f"; map_decode["\xc2\x90"] = "\x90"; map_decode["\xc2\x91"] = "\x91"; map_decode["\xc2\x92"] = "\x92"; map_decode["\xc2\x93"] = "\x93"; map_decode["\xc2\x94"] = "\x94"; map_decode["\xc2\x95"] = "\x95"; map_decode["\xc2\x96"] = "\x96"; map_decode["\xc2\x97"] = "\x97"; map_decode["\xc2\x98"] = "\x98"; map_decode["\xc2\x99"] = "\x99"; map_decode["\xc2\x9a"] = "\x9a"; map_decode["\xc2\x9b"] = "\x9b"; map_decode["\xc2\x9c"] = "\x9c"; map_decode["\xc2\x9d"] = "\x9d"; map_decode["\xc2\x9e"] = "\x9e"; map_decode["\xc2\x9f"] = "\x9f"; map_decode["\xc2\xa0"] = "\xa0"; map_decode["\xc2\xa1"] = "\xa1"; map_decode["\xc2\xa2"] = "\xa2"; map_decode["\xc2\xa3"] = "\xa3"; map_decode["\xc2\xa4"] = "\xa4"; map_decode["\xc2\xa5"] = "\xa5"; map_decode["\xc2\xa6"] = "\xa6"; map_decode["\xc2\xa7"] = "\xa7"; map_decode["\xc2\xa8"] = "\xa8"; map_decode["\xc2\xa9"] = "\xa9"; map_decode["\xc2\xaa"] = "\xaa"; map_decode["\xc2\xab"] = "\xab"; map_decode["\xc2\xac"] = "\xac"; map_decode["\xc2\xad"] = "\xad"; map_decode["\xc2\xae"] = "\xae"; map_decode["\xc2\xaf"] = "\xaf"; map_decode["\xc2\xb0"] = "\xb0"; map_decode["\xc2\xb1"] = "\xb1"; map_decode["\xc2\xb2"] = "\xb2"; map_decode["\xc2\xb3"] = "\xb3"; map_decode["\xc2\xb4"] = "\xb4"; map_decode["\xc2\xb5"] = "\xb5"; map_decode["\xc2\xb6"] = "\xb6"; map_decode["\xc2\xb7"] = "\xb7"; map_decode["\xc2\xb8"] = "\xb8"; map_decode["\xc2\xb9"] = "\xb9"; map_decode["\xc2\xba"] = "\xba"; map_decode["\xc2\xbb"] = "\xbb"; map_decode["\xc2\xbc"] = "\xbc"; map_decode["\xc2\xbd"] = "\xbd"; map_decode["\xc2\xbe"] = "\xbe"; map_decode["\xc2\xbf"] = "\xbf"; map_decode["\xc3\x80"] = "\xc0"; map_decode["\xc3\x81"] = "\xc1"; map_decode["\xc3\x82"] = "\xc2"; map_decode["\xc3\x83"] = "\xc3"; map_decode["\xc3\x84"] = "\xc4"; map_decode["\xc3\x85"] = "\xc5"; map_decode["\xc3\x86"] = "\xc6"; map_decode["\xc3\x87"] = "\xc7"; map_decode["\xc3\x88"] = "\xc8"; map_decode["\xc3\x89"] = "\xc9"; map_decode["\xc3\x8a"] = "\xca"; map_decode["\xc3\x8b"] = "\xcb"; map_decode["\xc3\x8c"] = "\xcc"; map_decode["\xc3\x8d"] = "\xcd"; map_decode["\xc3\x8e"] = "\xce"; map_decode["\xc3\x8f"] = "\xcf"; map_decode["\xc3\x90"] = "\xd0"; map_decode["\xc3\x91"] = "\xd1"; map_decode["\xc3\x92"] = "\xd2"; map_decode["\xc3\x93"] = "\xd3"; map_decode["\xc3\x94"] = "\xd4"; map_decode["\xc3\x95"] = "\xd5"; map_decode["\xc3\x96"] = "\xd6"; map_decode["\xc3\x97"] = "\xd7"; map_decode["\xc3\x98"] = "\xd8"; map_decode["\xc3\x99"] = "\xd9"; map_decode["\xc3\x9a"] = "\xda"; map_decode["\xc3\x9b"] = "\xdb"; map_decode["\xc3\x9c"] = "\xdc"; map_decode["\xc3\x9d"] = "\xdd"; map_decode["\xc3\x9e"] = "\xde"; map_decode["\xc3\x9f"] = "\xdf"; map_decode["\xc3\xa0"] = "\xe0"; map_decode["\xc3\xa1"] = "\xe1"; map_decode["\xc3\xa2"] = "\xe2"; map_decode["\xc3\xa3"] = "\xe3"; map_decode["\xc3\xa4"] = "\xe4"; map_decode["\xc3\xa5"] = "\xe5"; map_decode["\xc3\xa6"] = "\xe6"; map_decode["\xc3\xa7"] = "\xe7"; map_decode["\xc3\xa8"] = "\xe8"; map_decode["\xc3\xa9"] = "\xe9"; map_decode["\xc3\xaa"] = "\xea"; map_decode["\xc3\xab"] = "\xeb"; map_decode["\xc3\xac"] = "\xec"; map_decode["\xc3\xad"] = "\xed"; map_decode["\xc3\xae"] = "\xee"; map_decode["\xc3\xaf"] = "\xef"; map_decode["\xc3\xb0"] = "\xf0"; map_decode["\xc3\xb1"] = "\xf1"; map_decode["\xc3\xb2"] = "\xf2"; map_decode["\xc3\xb3"] = "\xf3"; map_decode["\xc3\xb4"] = "\xf4"; map_decode["\xc3\xb5"] = "\xf5"; map_decode["\xc3\xb6"] = "\xf6"; map_decode["\xc3\xb7"] = "\xf7"; map_decode["\xc3\xb8"] = "\xf8"; map_decode["\xc3\xb9"] = "\xf9"; map_decode["\xc3\xba"] = "\xfa"; map_decode["\xc3\xbb"] = "\xfb"; map_decode["\xc3\xbc"] = "\xfc"; map_decode["\xc3\xbd"] = "\xfd"; map_decode["\xc3\xbe"] = "\xfe"; map_decode["\xc3\xbf"] = "\xff"; // FIXME: This is just a hack to make Goran Mekic's name work. map_decode["\xc4\x87"] = "c"; } std::string UTF8::fromLatin1(std::string const& s) { std::string ret; for(int i = 0; i < (int)s.length(); i++) { std::string c; if((unsigned char)s[i] <= 0x7F) { c = s.substr(i, 1); } else { c = map_encode[s.substr(i, 1)]; } // If c == "", the character wasn't found in the map. // Ignore this case for now and just push an empty string in this case. ret.append(c); } return ret; } std::string UTF8::toLatin1(std::string const& s) { std::string ret; int width = 1; for(int i = 0; i < (int)s.length(); i += width) { if(/*(unsigned char)s[i]>=0x00&&*/ (unsigned char)s[i] <= 0x7F) { width = 1; // 00-7F -> 1 byte } if((unsigned char)s[i] >= 0xC2 && (unsigned char)s[i] <= 0xDF) { width = 2; // C2-DF -> 2 bytes } if((unsigned char)s[i] >= 0xE0 && (unsigned char)s[i] <= 0xEF) { width = 3; // E0-EF -> 3 bytes } if((unsigned char)s[i] >= 0xF0 && (unsigned char)s[i] <= 0xF4) { width = 4; // F0-F4 -> 4 bytes } std::string c; if(width == 1) { c = s.substr(i, 1); } else { c = map_decode[s.substr(i, width)]; } // If c == "", the character wasn't found in the map. // Ignore this case for now and just push an empty string in this case. ret.append(c); } return ret; } drumgizmo-0.9.14/plugingui/button_base.cc0000644000076400017500000000446213077713326015405 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * button_base.cc * * Sat Apr 15 21:45:30 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "button_base.h" namespace GUI { ButtonBase::ButtonBase(Widget *parent) : Widget(parent) , draw_state(State::Up) , button_state(State::Up) { } ButtonBase::~ButtonBase() { } void ButtonBase::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(!enabled || buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->direction == Direction::down) { draw_state = State::Down; button_state = State::Down; in_button = true; redraw(); } if(buttonEvent->direction == Direction::up) { draw_state = State::Up; button_state = State::Up; redraw(); if(in_button) { clicked(); clickNotifier(); } } } void ButtonBase::setText(const std::string& text) { this->text = text; redraw(); } void ButtonBase::setEnabled(bool enabled) { this->enabled = enabled; redraw(); } bool ButtonBase::isEnabled() const { return enabled; } void ButtonBase::mouseLeaveEvent() { if (!enabled) { return; } in_button = false; if(button_state == State::Down) { draw_state = State::Up; redraw(); } } void ButtonBase::mouseEnterEvent() { if (!enabled) { return; } in_button = true; if(button_state == State::Down) { draw_state = State::Down; redraw(); } } } // GUI:: drumgizmo-0.9.14/plugingui/directory.cc0000644000076400017500000002404213103356410015063 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * directory.cc * * Tue Apr 23 22:01:07 CEST 2013 * Copyright 2013 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "directory.h" #include #include #include #include #include #include #include #include #if DG_PLATFORM == DG_PLATFORM_WINDOWS #include #include #endif #include #define DRUMKIT_SUFFIX ".xml" // http://en.wikipedia.org/wiki/Path_(computing) #if DG_PLATFORM == DG_PLATFORM_WINDOWS #define SEP "\\" #else #define SEP "/" #endif namespace GUI { Directory::Directory(std::string path) { setPath(path); } Directory::~Directory() { } std::string Directory::seperator() { return SEP; } void Directory::setPath(std::string path) { //DEBUG(directory, "Setting path to '%s'\n", path.c_str()); this->_path = cleanPath(path); refresh(); } size_t Directory::count() { return _files.size(); } void Directory::refresh() { _files = listFiles(_path, DIRECTORY_HIDDEN); //_files = listFiles(_path); } bool Directory::cd(std::string dir) { //TODO: Should this return true or false? if(dir.empty() || dir == ".") { return true; } //DEBUG(directory, "Changing to '%s'\n", dir.c_str()); if(exists(_path + SEP + dir)) { std::string path = _path + SEP + dir; setPath(path); refresh(); return true; } else { return false; } } bool Directory::cdUp() { return this->cd(".."); } std::string Directory::path() { return cleanPath(_path); } Directory::EntryList Directory::entryList() { return _files; } #define MAX_FILE_LENGTH 1024 std::string Directory::cwd() { char path[MAX_FILE_LENGTH]; char* c = getcwd(path, MAX_FILE_LENGTH); if(c) { return c; } else { return ""; } } std::string Directory::cleanPath(std::string path) { //DEBUG(directory, "Cleaning path '%s'\n", path.c_str()); Directory::Path pathlst = parsePath(path); return Directory::pathToStr(pathlst); } Directory::EntryList Directory::listFiles(std::string path, unsigned char filter) { DEBUG(directory, "Listing files in '%s'\n", path.c_str()); Directory::EntryList entries; DIR *dir = opendir(path.c_str()); if(!dir) { //DEBUG(directory, "Couldn't open directory '%s\n", path.c_str()); return entries; } std::vector directories; std::vector files; struct dirent *entry; while((entry = readdir(dir)) != nullptr) { std::string name = entry->d_name; if(name == ".") { continue; } if(Directory::isRoot(path) && name == "..") { continue; } unsigned char entryinfo = 0; if(isHidden(path + SEP + name)) { entryinfo |= DIRECTORY_HIDDEN; } std::string entrypath = path; entrypath += SEP; entrypath += entry->d_name; if(Directory::isDir(entrypath)) { if(!(entryinfo && filter)) { if(name == "..") { directories.push_back(entry->d_name); } else { directories.push_back(std::string(SEP) + entry->d_name); } } } else { int drumkit_suffix_length = strlen(DRUMKIT_SUFFIX); if((int)name.size() < drumkit_suffix_length) { continue; } if(name.substr(name.length() - drumkit_suffix_length, drumkit_suffix_length) != DRUMKIT_SUFFIX) { continue; } //if(!(entryinfo && filter)) { files.push_back(entry->d_name); //} } } #if DG_PLATFORM == DG_PLATFORM_WINDOWS //DEBUG(directory, "Root is %s\n", Directory::root(path).c_str()); //DEBUG(directory, "Current path %s is root? %d", path.c_str(), // Directory::isRoot(path)); if(Directory::isRoot(path)) { entries.push_back(".."); } #endif // sort for(int x = 0; x < (int)directories.size(); x++) { for(int y = 0; y < (int)directories.size(); y++) { if(directories[x] < directories[y]) { std::string tmp = directories[x]; directories[x] = directories[y]; directories[y] = tmp; } } } for(int x = 0; x < (int)files.size(); x++) { for(int y = 0; y < (int)files.size(); y++) { if(files[x] < files[y]) { std::string tmp = files[x]; files[x] = files[y]; files[y] = tmp; } } } for(auto directory : directories) { entries.push_back(directory); } for(auto file : files) { entries.push_back(file); } closedir(dir); return entries; } bool Directory::isRoot(std::string path) { #if DG_PLATFORM == DG_PLATFORM_WINDOWS std::transform(path.begin(), path.end(), path.begin(), ::tolower); std::string root_str = Directory::root(path); std::transform(root_str.begin(), root_str.end(), root_str.begin(), ::tolower); // TODO: This is not a correct root calculation, but works with partitions if(path.size() == 2) { if(path == root_str) { return true; } else { return false; } } else { if (path.size() == 3) { if(path == root_str + SEP) { return true; } return false; } else { return false; } } #else if(path == SEP) { return true; } else { return false; } #endif } std::string Directory::root() { return root(cwd()); } std::string Directory::root(std::string path) { #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(path.size() < 2) { return "c:"; // just something default when input is bad } else { return path.substr(0, 2); } #else return SEP; #endif } Directory::DriveList Directory::drives() { Directory::DriveList drives; #if DG_PLATFORM == DG_PLATFORM_WINDOWS unsigned int d = GetLogicalDrives(); for(int i = 0; i < 32; ++i) { if(d & (1 << i)) { drive_t drive; char name[] = "x:"; name[0] = i + 'a'; drive.name = name; drive.number = i; drives.push_back(drive); } } #endif return drives; } bool Directory::isDir() { return isDir(_path); } bool Directory::isDir(std::string path) { //DEBUG(directory, "Is '%s' a directory?\n", path.c_str()); struct stat st; if(stat(path.c_str(), &st) == 0) { if((st.st_mode & S_IFDIR) != 0) { //DEBUG(directory, "\t...yes!\n"); return true; } } //DEBUG(directory, "\t...no!\n"); return false; } bool Directory::fileExists(std::string filename) { return !isDir(_path + SEP + filename); } bool Directory::exists(std::string path) { struct stat st; if(stat(path.c_str(), &st) == 0) { return true; } else { return false; } } bool Directory::isHidden(std::string path) { //DEBUG(directory, "Is '%s' hidden?\n", path.c_str()); #if DG_PLATFORM == DG_PLATFORM_WINDOWS // We dont want to filter out '..' pointing to root of a partition unsigned pos = path.find_last_of("/\\"); std::string entry = path.substr(pos+1); if(entry == "..") { return false; } DWORD fattribs = GetFileAttributes(path.c_str()); if(fattribs & FILE_ATTRIBUTE_HIDDEN) { //DEBUG(directory, "\t...yes!\n"); return true; } else { if(fattribs & FILE_ATTRIBUTE_SYSTEM) { //DEBUG(directory, "\t...yes!\n"); return true; } else { //DEBUG(directory, "\t...no!\n"); return false; } } #else unsigned pos = path.find_last_of("/\\"); std::string entry = path.substr(pos+1); if(entry.size() > 1 && entry.at(0) == '.' && entry.at(1) != '.') { //DEBUG(directory, "\t...yes!\n"); return true; } else { //DEBUG(directory, "\t...no!\n"); return false; } #endif } Directory::Path Directory::parsePath(std::string path_str) { //TODO: Handle "." input and propably other special cases //DEBUG(directory, "Parsing path '%s'", path_str.c_str()); Directory::Path path; std::string current_char; std::string prev_char; std::string dir; for(size_t c = 0; c < path_str.size(); ++c) { current_char = path_str.at(c); if(current_char == SEP) { if(prev_char == SEP) { dir.clear(); prev_char = current_char; continue; } else { if(prev_char == ".") { prev_char = current_char; continue; } } if(!dir.empty()) { path.push_back(dir); } dir.clear(); continue; } else { if(current_char == ".") { if(prev_char == ".") { dir.clear(); if(!path.empty()) { path.pop_back(); } continue; } } } dir += current_char; prev_char = current_char; } if(!dir.empty()) { path.push_back(dir); } return path; } std::string Directory::pathToStr(Directory::Path& path) { std::string cleaned_path; //DEBUG(directory, "Number of directories in path is %d\n", (int)path.size()); for(auto it = path.begin(); it != path.end(); ++it) { std::string dir = *it; //DEBUG(directory, "\tDir '%s'\n", dir.c_str()); #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(it != path.begin()) { cleaned_path += SEP; } cleaned_path += dir; #else cleaned_path += SEP + dir; #endif } //DEBUG(directory, "Cleaned path '%s'\n", cleaned_path.c_str()); if(cleaned_path.empty()) { cleaned_path = Directory::root(); #if DG_PLATFORM == DG_PLATFORM_WINDOWS cleaned_path += SEP; #endif } #if DG_PLATFORM == DG_PLATFORM_WINDOWS if(cleaned_path.size() == 2) { cleaned_path += SEP; } #endif return cleaned_path; } std::string Directory::pathDirectory(std::string filepath) { if(Directory::isDir(filepath)) { return filepath; } Directory::Path path = parsePath(filepath); if(path.size() > 0) { path.pop_back(); } return Directory::pathToStr(path); } } // GUI:: drumgizmo-0.9.14/plugingui/image.h0000644000076400017500000000344713077120602014013 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * image.h * * Sat Mar 16 15:05:08 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "drawable.h" #include "colour.h" #include "resource.h" namespace GUI { class Image : public Drawable { public: Image(const char* data, size_t size); Image(const std::string& filename); Image(Image&& other); virtual ~Image(); Image& operator=(Image&& other); size_t width() const override; size_t height() const override; const Colour& getPixel(size_t x, size_t y) const override; private: void setError(); void load(const char* data, size_t size); std::size_t _width{0}; std::size_t _height{0}; std::vector image_data; Colour out_of_range{0.0f, 0.0f, 0.0f, 0.0f}; std::string filename; }; } // GUI:: drumgizmo-0.9.14/plugingui/drumkitframecontent.h0000644000076400017500000000521513077120602017011 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * drumkitframecontent.h * * Fri Mar 24 21:49:42 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "button.h" #include "label.h" #include "lineedit.h" #include "progressbar.h" #include "widget.h" #include "filebrowser.h" namespace GUI { class Config; class BrowseFile : public Widget { public: BrowseFile(Widget* parent); // From Widget virtual void resize(std::size_t width, std::size_t height) override; std::size_t getLineEditWidth(); std::size_t getButtonWidth(); Button& getBrowseButton(); LineEdit& getLineEdit(); private: HBoxLayout layout{this}; LineEdit lineedit{this}; Button browse_button{this}; std::size_t lineedit_width; std::size_t button_width; std::size_t gap{10}; }; class DrumkitframeContent : public Widget { public: DrumkitframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier, Config& config); // From Widget virtual void resize(std::size_t width, std::size_t height) override; void kitBrowseClick(); void midimapBrowseClick(); private: void selectKitFile(const std::string& filename); void selectMapFile(const std::string& filename); void setDrumKitLoadStatus(LoadStatus load_status); void setMidiMapLoadStatus(LoadStatus load_status); VBoxLayout layout{this}; Label drumkit_caption{this}; Label midimap_caption{this}; BrowseFile drumkit_file{this}; BrowseFile midimap_file{this}; ProgressBar drumkit_file_progress{this}; ProgressBar midimap_file_progress{this}; FileBrowser file_browser{this}; Settings& settings; SettingsNotifier& settings_notifier; Config& config; }; } // GUI:: drumgizmo-0.9.14/plugingui/resources/0000755000076400017500000000000013106063420014637 500000000000000drumgizmo-0.9.14/plugingui/resources/thinlistbox.png0000644000076400017500000000027413077120603017643 00000000000000PNG  IHDRV(bKGD pHYs B(xtIME/+ iiTXtCommentCreated with GIMPd.e IDATc~(`b```,,}N1yIENDB`drumgizmo-0.9.14/plugingui/resources/knob.png0000644000076400017500000000701512525310661016227 00000000000000PNG  IHDR99bKGD pHYs B(xtIME *GKtEXtCommentCreated with GIMPW uIDATh͛}hǧ43zFockeےksG0G϶ehQJaKC8JiwPJ[(dǦW-GGWuHdYdhTq=c=yyDQu ] 3i1 %Q- )C7lmf( (ݬO~3o 4\EQfH88mONNzT|Hį(TrL&S=w\unno( R n$I#G:kll쑁&4Ν;w>^0e?QR`iQpϞ={)rI joGF`uM]4H,K}zgs7bV[[oAEQz & ߞxWv}^u0 c0  !qZZZ㫯*\^ ħ~O?=`i7,X!Y[ޯN81mBeDQN!l \_|őѽWUuS`88:~̙^|3&b޿E1{[ =˲oh4F<{3> t(~m ӧO B- :ڕwwj(( {6sa9HA0P?Hz;TGni)`Ccv؊xryގTU]5 8vǚAo iVS!5~0 F!l7$Ǐ',܌'fN:t:GnAD}r2?`LNNz_x?´Yyj /ZaBٶ4h?m !|of֘pŬC -Iz衇Ay`izЖDuAz JRd2-<11& #+.\8kolnT*]$Iŋ xH$-}ǃr7H$yP(-...A}[t~+W\i>44&Ir  9;;{a~56|k)l6eQ/b1%L۷oq|yqq'Ng0R><<,k pY]]B$I x\M&D H _.4M;vR|ՙz޶{X,B^o^!ϯT*?N*R6%]rbbB3 wht4JA2`kzz,˚\.R鞇h6rڞ|'J)d|;=9yaȈH$$UtB֦X,B6';I`nnjڵkHDN&T*Xl'B7EQ'˲&u׻:22ضmZ:i~Jv~ }var6]|2IȾS) P^/$y n{QFgaaa%N:Dn_FcRldhQ{mm͝H$B.$ Àa$I Irx\UUPUEFZ dYXVVVbqev<_& \gۂ@"~L&BVaql3޲ 7 eY[ZZj*塡f*ji'˲v}yq#eM(HK}HpEB-//׮]`0HLYiFXl^q\y9L*x/f2}ͤkR$IinnrA\6j^Vx<9j6J^WZV(5HDy^x2 ӧ+7%m ԩSԻ$,z.,--9JRF$ 0 0 I"I!0Sꊢ芢VKiZ tt׫,a%X5 mb_pae_4R-..*bVD^[jHQ̜00!dM=BBAp8t ˥~=(HD8B$3(r/Mt])(f.$K.=zh+ eZZ o4jN)M,@@t:u˥ni,`0y>޽{/Z*߾#{Aɓ'(a4 ^w4I Y1S+00 \.dfU'&&$ݮ6nȳ^|ttG= hRU)˲jG7 IID$I]XX30O5IENDB`drumgizmo-0.9.14/plugingui/resources/switch_back_on.png0000644000076400017500000000471012525310662020253 00000000000000PNG  IHDR;!ghNbKGD pHYs B(xtIME tEXtCommentCreated with GIMPW 0IDATXݙ]lW;^gqSI?RC%BC/TZD%x*'BH <@%~ *3M4G8N^0wvgv4F3;ss.eY94eu5s8Yutif0 `u<: xe lmns ,{a4 W 6ns ,66MSpCwA! "v e,[@z?  (KO-*B},˖[fpI BJ#TAUuxJ kت嘈43Kx4Ke[¦i:a/21ӾgS)L}/Dň* ~0>*TYsX[>Fʍe"RfVV""1^)c3s'23 5->ܞ!34>Du03L bDFhUBE *E/u@g /hȿÿ_xuf""ZiNfYv/flJcS<з/޵&Mhh\M}*e`Eދ ?ԳO^>vQU̼\eU3iPafi6͡{3a"=FDݾKYU , Jjmh(ccߚ8q*{'"/"^#j478gСCõZ2 JDhz7Ǩ1lPc*1h hR^_(黰{xx_{:C_Z9 .wιXUGQDQԉH231n7Yc(]d B:d xg/†q/<^z^Jh\3MSj(<!"bf2HvQUc˫h{&yf CH@`0&yx_Y9hE;pTSz ,BvtL}mmBAHzP0333n#"뽏XUoYzIZ=esS> i?}mR{9ͣ[-FQ /jƌ1::kbbsj콏[{2zwϝáߢRɉȩw3c|bS%";>>{ddm<׹꒪Fj使C/y{/H*5j)3EL| 3C/^BQfy v4"QѨK/^o? d}}xxDQ'(y.Xkׇot:+G"RS}s?>G/}d^1_c μو.fQ &"Wcz$9jĪ@kWHL\Ǎ5oO.=S۠*)?+bo=/ޕՁOmV(go'*q?H9ؔYZnEءdU&iJ8jy{;UuaOyeuMWV|5XeQRyY_k^~-Y{Lr쥏NE2jHYfmC,__sj%gرcǎMvqqy pҤIl@ok oeSJl,#g[5vȑՃ@G /ȶY?TնG5C5)UѾR]`JfJrwԎeeVutT%ecq\Gyջ2:I-۪W^euJ2&أrؔGZnEءdU&iJ8jy{;UuaOyeuMWV|5XeQRyY_5jdG%}J#{RN)ζ8=?RSw1~V_Me'j@D𥉉EDӉ(RKDD=!|$@%D:"#(چok\V[{j mJ6)[ ۪$/YX= K-dVjۣ[ZU-; UͨKm mlV/Я\q,󟿺lNns`tLt DF$Gp%2&(fr+0 {  K2*ĕ(3|%{(5k_E|>3Ȧ`c!2p@7,`SeY".I?"`S![2ܧ#$ 8 }ٴ<ޞɤ2^FXv/N"K!ڳR6` ,}1T&/`BI HP{f*Pf 8+k Q^OF|8, h +m U~ Qjr uߟOg<J{G;^ }%gEN*J~H|B'J_I ƕˠGivQzl6 [eJ~DEe/9*`97HT[ρ90Y{{{߰x{E!V oKa&;>?z`D;9s|[%r`5R>DQ)4z?,&~ LtSkw*(#NKJE >ߖk4G ϣ%ۓlBl99ɁL=,"o/R`/)h1/$ +$G*GVc\[bc5THVS_; tT[IۡJ{_o{USl(lb5T:&S6;g:0*DZoׯ_wkժ / &Nx;[0aB"qEb^0Ad2eN2ԩSQ_陱tD3C"*}nnnv!ՠ:v츾u֭[oNuֆׯoӦ͹-[dUYU0!ј+yK.~ZĽo?3Ǯ\.%%%m۶Kul*UFJxoٲeҾ}߽{w /ph4f4]߾}ӧئ5kּֿ_WӧoEEٰaܬRRRVwTkvpD;ڿ7o\tY֥VZo6l}gddlܾ}Ν;tP3(((I&AAA 5??ӹsڴisd2g8kn޼~ƍL&C1_"8a„DFSa,Q!#ap„ gD>j LK (ԑ-' UW10!PEB,Y]FFƚK.=zjZO;nvچ_|dSZj ɓ7Pj*[77nЩS`]t9|չ>ӼyGR돈<==st[nUb:\5ihkڴ 6>..v;۷oh4>.Ptf9}۶mD.+)2߹sglνxbkEߺu;v\gi>Y!Y`O y¬qPGepHl"&'L#mh6 S^Ee/9j0s=Lߚ5kF*8v`́YG8;;7{{{իשwnx7~}>[}ˬYyxxd :R䔿bŊ_̙󫫫#V^%...Ν/!!gFS+&E5 C΂ ,X`sNiҺeϞ={UtF)S~_h''1^ݩ5~~~7$86h \l60`ѻw۷q|WI """b[l'M%''iذ̂ 99EEE׫Wӳg"uΝ;-< I y<wʕ+{ì#N Ëj՚yҥm'i5ZJMM}f͚?իWj D..y?p!99o q֦rv= x2qnxb9\/ hժ3g mҤ,VFkӦMWy6۶m{GChw^M_zu|ppG999Ns|uDpqFߐzoڤ~[n`/I&=ndzw1cF$i8 R4y3ӧOqA!voe˖>| 9L=Zp$ri߾}ݻwqzswh"O.+,,l?y̅ njѼϽ{cԨQ\|׮]5--S``zŴiӦ]޽g_r*r9|Eb[jtւ_Mw޷|ɩyyyN 7~_,X,++7ۄ1xv޼yO?[0soܸ'>ygeeۛǍUܹ󁬬Sk׮tڹsg8!!!^!#CBB&8\cݺu/[ .A[`A[$v6zjǏ^rrrڵkųfAkԨq0::͛7֭#G֊Dxʕ  8nT8s΁5qO>rXvN=]vy:;;g_|9QR2> WkߦlgѣGO9s|S;/ዴ%qqq"##=W\&𽓓ݻ_۰aC-!+QN+cR݁q !ԁV˗/?-%%{xx_jj28p`^'իC]\\~`g[BVd2"zj|.9r%ilڲ uQQFn^U`/m۴M07m4.Iiii|||O8e0JY>*36\dcο{hD 2tc-ڥBLk hOI9x| q\͏a3q+ jwiy[fk3 |`V_:uNk.v2eddx(dٲ]].CrVvZiR OD'~W6:0*c/TD "q…>l|X^{1΢#8L~?uʔ)uxȐ!/if}xx웮D4@Դi#z:%ϞnҤa1nmٳGoogn/GdrX^/}v v^_믿6۷/B6mOD$EX`Ak PVDDDdJ+/-qgStOU™n{kԨ(>>SoϯQFNNN`VGΛ7>v|U7|}}oϜ9bED3g{ [E"r^{m;knM4DDmox3*9D/^ I)&&fG۶moSnzMGWD˗[ ϟ G䴂eRz 0"R,??gw}\aB+OOχ]O }vS6quuͽyxWW\[% k5^->4E Wg8~^ ~۠|I.W_ ߿VKz~~~-2V>g<7ĭ'J- \>%>@Rrr؅tGVdc"~3҉[pS #aUwڀogJc/;Ԁ'8/^4 f5Ts`ҷƋ4YuQƣ>}f}YNbYfm 6 roߑ~~~›ZalYv~+DDo޼1669V-\bƍKeK)i?DhԩS 3mڴ i|nܸqk)&> /'z4Q`f!;K._ܹ>>>6Ɯ9sv dܱcR"*x5HVB7Νk-i>%p>? kڷoJDJcӖϖѡ294 mS6^ 2} p!ڵk\zVv*G.khåK7ljXXXS|/AGxT"ǚZn}9q={-]kk>tE`-W0lذm>@={dw5!͏l̲%"o=|}[~}v.8O ̖PN- zXbbs ZP6:;;=zlkҶm;vx~w!qE&L8Eoo,"j.' C_ٳg?T }t)6fs E""D+|+Wtd9xw=֯_?|{(99ɓnF"j-OnݾرU)xQh篐]Q-\"??i&~AE_x/ߔWjcǎKxkDdƍ N$ V[ye"ްa{?p S)$l7)~C򰕈Ȣ}N".Ubz>wƌ{DQFGy睵B]]]tr[N8nݺ)Ys<'ggUV}k׮9ð?~Whå$7xq66R[2"J\ W3/2^VZ.\@D1cƮ rzi4T3d회^۷_ղe["GݻTαcǂ%[jժն ovk`x Wn[XG^re@DرcÒn[G6*!".:::O>{n@֭w}1gb J8iҤIФImN SνSuԹKD!J8mڴٛcr i#""2z9GFVM~'ne˖i]tR._yÖIYZF5##ck. :u$ݸq)Sذab^zz뭟׎1}czŝwޚs7uŊK=z_~6mv#?׿6B͚5;y֭S ׿uYfIDG&5i̍7V;Gf۶myry5m̍7b 6<ЫWiii#;U^"VvӃ>N:??:ujq\Q~.n5j櫬mm9i7vv,::hV||رcF) qqq+Du uM&ӃY9Vqqq+ر6888{ܸq6[pNn3V\:h^ &yԝ/r\ځ90f[J5M1cz}a׮]χcV&LXڴi3○}gIx AճFcf5(M1w^-: k֬,-LDDԇ>* VZh4իWCH}i}g[߆aÆwqq)`19->.$F |L^_f͚^^^+cڵkY"~6mڬi۶%/4hQ"٪u۷om2y{j}:\]]s~R IDAT{DNmӯDdH!wB/K\y ,ܷV^%oi6O81~k"j^_V+>e!r;qdVxoCٳ?+ǚZ0ɔ9xk֬Y|VVU%'95LcRHR@^u Cy<"hѢ_P```O"u§U͚5oL6'Xy`0䅇g 'Hx-LvO?#y!J3f'vڗ sG_~eCfSi~L yR&nժmYHaaaL#+[ĝ }[&uԹtU[4""$'b:((((gz޽iiiۻtZV"~)WZmKv~H|ӓO>y}*kAbD4cǎU^7o޼߈?ްaCCݻw@D֠GbbmڴwԻw ~~~DTSȿ_qol|}b4WJj4~Az~&Rql07mڴ9ܼyxxnEFFSqqq5 `h֬YをMAiG6lBJJj{Yظqϰhڂ\rCDayyy_}WtH5n c.=KWOL&av/wwǏw +ƍ[ӧO6,,*4l÷K믿)q*'֭[Z~B%DZ4pM*&O/\Yb'PY3"!"?m۶m.9?s 8"D4v9۷otqqɽ~z"ٳ: Ǐ'"m۶},1))i HfżN/,,$DD.ѣo 7KuСrKѣGsbbs͛Ç_1 Ŏ^/pBw"rݰai~{ypׯߛB,T-'m„ BBBn@hhho(92VZ~:U^=zz}DEE#&&&x7!ȹ. l QϞ=? -ޭDZ׵jzЫWD,44ӧoܸ͛_prr]v]Ts`ҷdq-S'NzܹСCDm<NNW$7tDBD!Q&>t˗/{CBB؇AZټ^%UD4؇zF1kժU_ƬcǎPWN>"Nќ9s~Kg-(qJaYr~EѷD==+1M+h )֫ ;v ~RB|cKetLj~ǿx K^puu͒V<9uꔧ;uꔧdZ N0e[AjpuTZ}S NӦM7kԨq|P& 3µZm˧ddرsٜ~Eu1h4}G%VEϛ7/d2Z٦-oQ'&)w,5~nnnRYƎl4%"#:DM]pa;>~Qv,@f'''b~F:PVPVoQbreddd4svvKNN 7vqq斓'M h4Ξ=h|( )'W^*W~.b>'8 ,ֱUDJDs)}}:Lw~~~8+vޜ.1Oe(ҥ6`w@;sLgz899UCz}c$6ruu}|љl:V^BaӦM_mѣDD?N'9Ui.-rjjjVZֽ{D"ґC/\h̃$MqƿߚVǎSi-ZvhGD۷ofmQ.2Gn?o/4BCCϏ1PHH#F"f\92c%%%0` ܹsN35ȔQ6^mK#S??; ̩K$SG庳#8bĈCjպ0bĈC7`HHHX%/nIubMM&ä`2|G~y2|y<}}}㭷zNZ sss{$ǗڎM[N?"Ooʱ2,H&Gy08 " nj,5FD-`ʔ)be+#Fv"444ݡKAaa͚5K.ñVwzw@ "DOɿCWVL bNMM-]?1v"hΜ9}L&SVbb6N0kSQBɃnk4pGp*(SN$]ڵ-"J q\.OSի>|~N7}W>W=rرx^?cǎ+|||nzPtttLNWm6/i֭[}Ʌq\#_j8+e˖g[n\ń5k/111qW G8hϞ=;433EƟ<1is|r7lpoEs9K8.o޽ 9ԩSڴis{Rt:ծ]{qy8qGVq'8nÇ2 1lذΜ9󸯯<|eEaĈ[8siii >dff 2R<\ Z"""(**>SKY믿I&]&v27soffVVmo߮:>q\͛z}qEFF޿[,0~| o"_n#GLN9rS~0_lٲe|%R~AAA?VVo߾%ޜeC\\ܴFevs6y7]VAs:5o&ب'q9[q\GGGؿ?9r:uKetgfΜr||.]qcqq9[qءN(EQaÆYoذaq\hƌc222jxݻg-Nd@@@VXXqoo܈BЇ!!!ׯ4mLL̊'xѣjNLL <8!|ߔ;uyXXأ~.Zll{W+q8qw qjρVZ?~իW,W^mcsr2 CҥKk |XLeggouttvv.\r/lڴ8.d*^z饤/ULB8NvEk׮5 ܥsm۶ !!ٹPwqq)LHHk֬)U5j4֭[o0`e^2!SVC~~~9'G 22rlk׮W5ZoN ~~~9SLߢE_7n2pf͚Y1rscǎmTw>|xYfpq\*qy@J̷jP4{Mzꩍ58IHH/Kk.g;;;_ѣG˗/Ĺ%qψB عsAAA9NNN?qzܸq~jղ:'qjBBB:th3TΩZGfffN3fff&rV9R:߮W޳~5:Z}Ԅ }Q!e:p 333Q333ZA"##wtO?=̘1c2|ȗ3V)Fbz}xeJڵk'߿֭[?pss ;ľ ٳ{kk>tE` ǁ㸎ѣG^e+c.\F͚5w}з~{`0(=;Sf.((8 z>zUZ&ƩY-ǸqQF}/兆>h߾ZD7𲟟CleV[Ʈ`~F_}#U_//#Fg#G~,l9-8D jѢ=z8%;w|iӦ0v]d;GX&33n|~"D4An2>#..n{tu69cbbDEEfu6Lٟ~ n =ڵk^2>OwO?^ޒysY/y,N[9R<==sDFFf` з~K//۷o kժzqL"O"""9))iD{zz>m{4hkF)Zv'J}od5jte˖(66vmTTF 2:͝;wmMsgڴi;7|!7ް8˕+=zfsg9oNԻw2icFcvZZZHKKh4b86 ɓ'ߑ Gn(zqEҳC 9j9~?~u랔E 48wSZn}CĢoo v9|QTTQQQ7h0+Yf~t_C-[Lk۶m?*ձD1XHD}lOˤUߪh֬;~;>>~aÆ طC[lY/Ʀ} WjG9;0mC Y*3 q|ܸq}}$tSA׮] ..F)?#v̺w:r:w|㸢_|$'7NDOV"8šTNo0rzy9--mYXXXJfvr DO<ĵN:%@Nڶm{ER9+t6D`xŊHݻwY=V[j o&%%*q\\\ e;vYfV-0 ۷o<++Z-[֊u:]~xxխ[&ҥKNoEdkڢ~)F&Ú6msz}n&MSSSe˶1c~!:2JyK$ťvb;^z>5 N3dO߽{mFNѩСCfsWk"& rذLY\+W:hڢUVa9O~JЖ-[H\ 9M4鷀+)[xxrnnn҅=$Y+Zhܸqܲ ݻ.qر]\\CBB^xƅ\j/_1 xm̓'ON Nj֮]Z'N_zt3dȐ%4K#~wk֬yC&VǑ#GjN8{1ŋDڵk_t;w>f-?ѢEvLrs ^x"N"իW@˖-ϟ >䓏`֬Y ~r}?w_c̝;wڸql:WWW8park""=Ṕ90Kߒ/\0/ #FDDyuԹ_|rB.]u:]~۶m]ԣ8QFuww!~ W|Ga+'۾j9lx5,GÆ /k4&M\"|C%60L;E:s_fmi2?~|$w3 IDAT ryxzz[zRJS04000BeVvYl99́L%qKy: AGov%;SWv VM_29%"S6x%Θ1cԯV%l̙{]]]i4[{ݺrٞZmA``|%|z,o7T+ך]٘r 48ߺuKNNNy9rdY+}mԼysZ@nf͚߾ht`́U,!7]hIB<<"'y %"z}EO+F;"!DB7~\l63Y}l6gΛ7 JD͚5KWhC"ZH2g"'M%~JB-1c+Wv+AOD5h o1+•o"+5]!k2x(+V rexW_T """YDm@jS%K󳆫0e}~ȑ}}}_>j"4#ڵk@2S$YB.+}J2+w#Y Lnʴk Gj^ K!,5Bk/"zBr`LUQ#yH"Z.|Fsֱ-{Jdy0"ZFDӦMfC/?" HDI|P)&ھ%/hAʑ∿Nd{N_?5$2\vPh"H¹9 ?&lğ+m C?+ #C|_~Zї]M[)\[ J8ZKd?VYݤ6T#~q7{y=_'Ti:%JyYD4I(KKQF?yNI&}B2s AQDrb?~Bg0 GC$:M&ƌ'rVZd2$"k8| ;Nl>BUK;0,}K'"'ON$~.\HS };D"+O.b"5fp3f\kYYe)9UZӓ 1ⷭHo'}dȯ3]h(~+ ?O)/ u [?̃u/W"oJx3lHy\V:_mPft(O6&) \mnܸqSabbdϖ5+#M8GoOe<@ ~D A"2Ke _29L)6[׷$kJX#}D{$^իvrr*LJJ,kE"0O.$*ѕYkL7?&Id+ʾ6ofD=t\.]RSSsqq9|pkgs`q7qb 6Q< D 3322X+`ϛekqykrI j׶ٽd'%9+5F^yuڙqѢE?Fׯ__ g;t |4eLNY[^[-"절58DUjj9HcoJUmY)Ą<,i޼/^4'|q4"ReG{]*0@rt:TDAOTTjwwݻw&;whGa1>jmbeVs`ҷdq^>vS 4 &wNv&[ݎ#G>qj٣GN2eJOkn\^ٕVa>OIvq?tѢEk{f999.1w+b fxxxٷoPY111Oofddm4Jk<}=}ÿ3@ q9wZ: 5_P3)#~%7㸯Ϋs`0WīZ{/jߺu&FiC=7yQg?pXd h x$ܚK#:CT'))iСC:uLZNsϝOvk4唦ۣ ɱG أ/jaʒU{Nm6y2\P"}YDO8駟1_jWŶ]믿>7~>tU֙1Uz{{?ܻw龜K.]) oh8 +ɋ/Vߪ6v`́Yb_I |<㐃v=feNV} vwSUyAoK\ִ @x*.fuKۚV-M+cW4_ҳgΝ @7sY^^^k_HKl*(Og/ʶ?wlKeVu"9trys`r|(_75%-QS{NJrl/Wp[U+2,~k^o#Ew–mKW^c^zV*KVer쑦4i!IrUu!YDHآK]`sY~<: ,38X#Gy <B֖'ύ545#SduG^_ ϲ2C:+o![o&> 56Z;#[}Rdp6PX\hA XH =0x +"/94C!r&_C(c x.DXA 'I*Yny @rF&Rt˜"+h[Ou\o#ޥw˦*Iag XnGi&`•-$&|WhHS-m"ظ9uC2MuȒ狔ׄgv0þ:RO-P;=Mmpߎ9el֙ Ϙ%}M`5'q}▽|8Zg{kzuIENDB`drumgizmo-0.9.14/plugingui/resources/widget.png0000644000076400017500000000174213077120603016560 00000000000000PNG  IHDRMyF>-bKGD pHYs B(xtIME6iTXtCommentCreated with GIMPd.eFIDATXýn+Esff\B_T "!!*J*'@1]! 4"^DnHX؞ݝKzo~ߜ932tz%?߁˲h7@Ǭ~(x:~\˲x㻁BWit\r{{mBH|?L#www3do?4V,"u.U8!鲭5,-Ohvc㰓zl?HF%,7g0t#$Z{ðʟ$`l3R2.hyv:e%wR,I{'$:w`wg;uޛ&[X;7k3[!Cu9M#o263B}b ánնsoV۹lڛNιp`lEQ>jع^(U۽sn:sgm簿<{"x/CsUlłǜ??`>!9EQRf/vEQK\d2yv/}6W 3f-LD%9^ofrUUMV"r#"_u3 VDd[j r+>IENDB`drumgizmo-0.9.14/plugingui/resources/switch_front.png0000644000076400017500000000336012525310662020007 00000000000000PNG  IHDR&(7bKGD pHYs B(xtIME +ktEXtCommentCreated with GIMPWXIDATXŘOly??3mf^˔-]dxĒ =FNz ,)q]$ 4HZZu~o3̶˶,Óp'5X*ٻw{'eYJ'N8]xKR܏5M @)uv huO>] NjjjT{{뺸 vS}0;22rѣSR)͛7e"X=lAdmBbDž-Q+@Jiod(q̙Y/k !8p@:J SIg }GeY-4 !x|4ͷo,|{M]Wa5 W)=|^0X4ͮ6j [Ǒ#GffffPjz#`+( E۶}kyG^ },j)T^}\׭acA6]BPZ! ϯB0?N$\.^.R&B&YN&=jH$ҲPELLL|bP ӓJҖU*jrw>ʍ`.~beccJU\~*8|>xΝ[B2 {rTUVVVw[ Æ%"rʕZ\fii)U,d2x,q +ҌϟP*j|~S/+ a~޽¹/,,L]ti ɰ-%ySSS/UEXo>UÇہ='O<.T*zzzbk2 \]x/+6WJ5F.0N__WO:n"ݴ}n\.G6EJ2Hӷnܸ0 ,eqg.@ 0F~kxxK=H۶,LDFZP(P*6k׮M?f[E@6.[.@ mǎ?bryyyybbbrff汪(_JP/;* ov4baFUYT*?ydizzzЭN : $t~%C)kF8b*(eК ;>C5~<[%-֕TThSVA1M)+E7ye5nYZA$> *z9K0IENDB`drumgizmo-0.9.14/plugingui/resources/logo.png0000644000076400017500000003355612525310661016247 00000000000000PNG  IHDRFbKGD pHYs B(xtIME jtEXtCommentCreated with GIMPW IDATx}gwHdev{?yI`?d0 $@蔑&2ֱV @9JNGp0дg#CW\].Z9g?";߉^jp $f :^tiƎY X["\.`fJMš>#oҸ}3U+|3d˞V5 GU k)|Wt. U0M R=1Oj^^cUROXCtbײTo=lN>«9z=AU M"`MNz2^]VhW4PL;?s)\JGӾ:1iVB>;6n|3a PcsW'F8-%UV$mL&RA6=1e%5 dBe]^뚈[!ܿMv7cz5<Mcs>=f {ߕ=/zd0۹}죉N~;#jUwe0yfl}i_}ԗa]sضSL0@þ"up̈a&_Pwv+1Bܘ[`Jc [L}nDڴ=bؿ#$pWخ.8LZf_L My6|SW #r:4scE!50ѓ׸!WG$Zr+'cre)D1ʼn\a☄0|io^Yb%@IECvdc'Өf&xus{uHΧ-5V uHӲ󽼟mɔ{ŇE[pOvnW횖d=p5yۢHď4 15mZkr(uL<8лd xmucdӮSc6^fvݬ~v &3B `u]mi ∪)x `nTb>djï vLl%Ks^E̦s̙:?ى5 ̡Z&51ޘx&bڇEhxk$ym1 !\p"bYaC-\o]ΰ!fli6#S#"ܬc 5e"6fX,{ͪ,:o0y 5NKJ#w 5~!=^D yNPR. WۖoLdϞ93a ^=gi7˼/%~[.1A0 /'ɾ4hznc[]WeV=4<0Mp+wZU$#\kE=7 Fu) Ӟȯ$!e'FX_ӟ+txe"if]‚B߳Q%WnTcXykÁsD 1=o=qu'C H@g _',60H 5̮pGg2&V13JoP픙mQc4^JK0E"~/{oaߣ pP*CN %îDB 69gYے~2A=4g`ۅ+jY#2%5G$i[lFlaLpG+{檤%T ѤpAvAn M(nLRFpqx7)`ZkX1 hug3Ҽ5ݛID t1jFۇu"w\ hdz-e|^gNZb82 6yS'&aFU2B.Z7/Q.Y{􈅙-gj5,s{11E@+ڨQ30zOa0ָ,ٍy@aƙGXmdccbZK^maz&5$)6f0o/S*FhQ4Bl )c$%@ԇ"Cjqv'kHAveC(D[>- 9vd*̌Q/ K3IwuTew'4k pgMVAl{pMO`ٌT1-U-K{ڇ'gdԸ2>4Use(>^)0P-i@(yrDSup$<z+N;b=`p/li%CǓU0ͅiADcs@Ix"s m4~Dv^FmHmyR9@ 쾚 aMUL 9L͸S(Mdl|oE+f͍y8nE !46i;N`pw.P>k)Y!GGj-meZ``2J*rnWϸ~gMmi"Iv\R!<$SgBaC*lrNѕd'ϕea,֟];)\ILg;}9q9\tܲ{t2~6#dpagryiI{cL 1:2Sƛ"9O|qyhU?0?=Fv.1[[u2M%.I2c6d'OC/t!5-`FMܣ| ~4B ڟ :ey8e>G.ԈjZl6g͔a}3v4eOdK3o= Im5$#ĝ2fD$v{ݍG.FT `.+E8ܰgP..B3$@1\0iqlk#A佚?fb۳G&d9&N[fm-`-ϾYc]\^5֯(w>~ MD~t>3uV `"`ס ?Au÷5I]BVpFz<_]T`׋2Z3-c͢L 徝; 37dhI/e\/LI-?0sapWTv Vʱ뗤V5ԱTm^B -#sӈ;Q=G*oƝa4aY5K]\RBQ? nAiF0mh0=~/- 1NF x$ Pe]G4t3`5QnCax*Ti-cUĉfs>wY4=1FfPF|is5~ S}֔;k1;#0=9Pb3rʹPv^p~QbB Q6K& V>*͊wG7=5diWKlv;?(#4#Q~dΰ$Z-; 6 EJNG?Xcr1-\zo?CTm(fDz(}iE#e~31 &ni ppYh4LI܏,L9Br+$4jVea[TI5Dޚz>gq}:2lŹ9.qUTڻ}NFbI^:ѱ1Aȿ5suZˡ``_cLYxڶw71b TTXٵ,`a*h~Pˀm䘮Eбo%*l6,Ӭ\<d 1-h["Z`a,R ,k _tbg 'Rx2f* 8tJ!gp٬wu BL ӊ/ts!iŞVvGp$=60Qa8/ƆZR7mULPz!X clnN3 cC\΂W-# >!\?(gfzܢOe4&2 HMwo8i4a " os&T_a Ib>B~$өy!u ̠D̑5a7,`~LZS_.`p f$>O-QB\v78: ..i?1 :2Dv1UkXä-o_En d#ƶ6Lp7SfB#SCA>vcq&TlQvUh5GcCP5=`9w3o;em53G)ڗw;c~ssɛ$f̎O;T$萐`*S!m t u_ BǙ?ԲߛGigpue\_9R]}Z~A9ƠD FX ޞwԟPULf(zC IaV=9ǟÖwOu ;ʕ@}q0;ߘ"lyHbxSx G![y}=Cjrg39'ef.&X6܁ >C Sm%M6^f{p32;bG?Lk';ǀ5ikc_q0-3r-x;1}POȋ&KCĞdd*RM p!s19tu>=Y=wY5'1O OlmcoDowZx}̊.f!?c3)ؓ X( pA>XĞ?pÑr2|Xi <_ZMc{"V#!RtW6 >s2&KfM&|.%.6Tsylޥ,Ťmyv'aXaE:YhC3b-zv9Kmeaӎ쯔K pics @ٍb 7-=̃7 }|t8NMT3K9ĩZB}^f9Sy^*Bf\9lL>Bh %6D mci27 >  J0D/[eKLL%aZd"؞YVn]qu=9tH1h=&اXƍHyoa=ow@Qw)~D{ꂫ`D>#]]ģ:\cY2w똠Q4agB5@[~yhU+\-YhN1mV ̡q{O/SVgbN¥Ln[Mh>xRwlABPW3s^tѼ{gWD m2}nswqoMUi&hŃ]x{c ^#YkL9^T7E]$r1ͩ5=؇I91J@Y@Z? S.r .ęfx~Ga^Nnm a7/PYTSwmCOj%b.pgLAmS^;leתwdkW h4?ʬgy! Pg /KjVXc3.`2ώ:\ޱRPg'|Cd?ڮzk 8{?`r,mo 7* sFtn b^ xY:=C#>31^٫l44\칧H8g20[0)ۤp>YbGRՁK@BXF +-tS3d`y(-A)#~d@*A7^rv3Ҏu<%ѱ;CٟE|~7P*psTXqՓq&\r nM&QZ'<^T~ kбHЖG D;,oZeVp[LMY1P#,o᪢1M`H4j8%U3`a.{oxfkY)$"d:P@Ps^Mk]J_f!7䗂kqP; =>T # >|X=f͗w r" \b+r+š]NKo33y`& My\<-Ocь WXmV(.)G0} !3#f_' 0M),Viz̋ZU%7Bh$3碖[5~Vh-73|>ŷ{`+̡aVpsrn^<}@º"1{TQBs1>s]|&h1B%6 != 17X_]vImOMHo?^%p[[{vwƐxRnLCK,~ !ѤʏuD.NM D ʔS7遨$?n_kNSOct/Yl@ʽ@tށ-wYmީ庠^ Ӯ4 sWO4K3UpRj "Q춡 L\G[e-v[糡Msfw#s2'oۈ66>Xjf]i)v , Cga3(Iv 3!O<,ϑ_zߎgf{iuٞtC\'uw¡,,e7oÄƢ=rAtxXf@Sc< Ai^#]1vnȿ6 cOCgSq6ia3F3SSù7&*P< /OÝSt;Km\e.ppBD;QBk0 e+!g#3xKqU'SNdX"c?kxYĨ`K@aeB\|,XYS+I1"M8G8L}ЄE4SiTkvl5==H_Xb -sH9Mh0_GSKl&/)~Avf4ozڃcʙ_l75ّq|]1\[>}FNb]>J29,:+lBHc*,О?D{4W9\*g?#Ӵ>u qӹw>dKXD`\={ y6Fw =(Gmq"JZi0k2Ojҥ$VDqPLv~~&ˆ9fe_>r?3 `-1J%^ Fi \8f67\ NG|ZF21s}B%Iq6صgC8Nʳp l)W#iv)!3Ah&B> 24 ~Pq}&p)#zu!ξOnP|-/֔maï'q0gjn %dO`:j-")h4P}n;^8^̨ڥN,JrcIq[zSK񲶠!жMø_jx!;џ[P$`=ܞh>AF;7[0/{hNTe #$Nfgv!LP#Je@&bs<!q&6#fWvb2L[,ٷI W_LUe)^P?3d9pEiYȝL:|iV2' }K9*<_b%"栶PW]31,7Ϣ~ l|01lW$r1)y_M@c̭&Y^uwh֡ziBa32=f+BT2E R`&alټ $)DMikdK9KLyĩxfK*wSo?D֥h+7nmy`Վr[EZ -ff {va;$A~H"s-+#a_)]φ3nY_0*Q+yV`Sl't) (R^::pcFӱ:9#LUNCm fW`خmC(<\}'opfEHQ9pDs^ѕ+Ol CFK%.95z!~a gO!4`sO}Om={G pyG+!\΁?:~[*.lE7j0m2[|;1Xņg#Gd!Fh&8o zk34Cu@e>(g ԗ#~Lؽ.Ce|1&#g9u9dkS/EH\d,LpH  _.en&ʵ{DZ! Z}&*wҀZS^2v$+}d7qxx8vO z"(,ǷuK =4L $:O;K;XbNw'ʥw.ߤ.#s/|¿;${/ luk<+Q;̩J/{:M9/oU1BiXBy5J"2"m'y!(^u2oJXODlۥþka ^wpqYMO[gdg2L <!bbuG9$҈ɒY[EXatct)q6_L[HIY&?a87RJC'6U`sҘP<.6d&h_&!U޷ADz0؅c!C?|ķ{CRe<+ff+23ڂ=f'#fAQG9e֏͚z(߅9B(ӗ&zL."Di2rM1@mӂKHW:QTrBWJDʕM( @<[5#$ ړzv~fЇ+yWȓLf-XDG rOK"$hd#& ME"zIjG8%k4VFu#wҬBј"4y͙1 ly hkp=-Ds{2AUAѠE,jzcE(.gC͗9{gB,em@bW<^!3w8p7x9tR{Zl `]hߥ*>HyB̓G,$qUp#1 %"Yfe͒K16U#381"d a3(H7j,hj"mU0v0/!6/@Ma6DA"G9Y-3+ػsP`UmLُO=fu";䏇:7y%ynɕ3BsC<l3bb17(.Y_gG/ZzÆWG/sp΍Lc* F-c~B;1mxx!Mu 4SDzȡ/(& ؞8ϱgk‡Qȹ[}o‚}x9OB#@hh'7qqP2'-[/hiZemCٿ+9/i/ִg各I4}s?=yocmFcf<rsȹe.6lk Qhh坳V%mI*РC1nf?ag-@ tBM!21hx 폃%IIMw'=1f`{W s cF Np/#Tr71/+r~GLin:ܦ&8ʫG'?c ̴@ifgֆGBC~Z ?v ep]1!\˶O!}qo#}Č{XJ- Ĉ"?0"D+E~(  (Dsf\%2g!% n0yǒ3 l\ t i]is]MQFb'XC1b2dni7{615e6-lV5Ц浱 t?5#eTuE7sz}392B#BT+{v'Gٯyrْ{嵕zx/B$/;Of![/#d4s"fCH3{( 5hH c9;Hw!CD#VxeJF`4åH̲!?fOͱGindeĆ- I:RA>vUK1֙юi"f;bͤvYF L4G!χx-+'y_LU2*ZW($BS_ٗEUQ 2ĺ\:=W-fWIyDbpi0Ydo q*P `Imf4{'t`:%΍ ؆C͘VѲ''F)y\U5P{wᬂi⌠d e1B0J&nH,&ٞJ]Ittj( L&$ iɆ03||>t,(,%c\..96 i@RJ ]W܇1F#n% 떰)ΘJc(;*R>kp W!4 XGb6cdWʽ|>ssO^n'iNkV14M yڻz~])"fM[iWUiJE=ok`ݱ8&6y0N bOhGc Z6Ǎ aŐܫf$76c.* dfzp^F$qLNrhty ѣYDFK_-x#Iυ X(QIY P*Q(<`GK$z=z7`Y $"T=A-*׉HafLH;6fn!>B(jBٌ1Ed@Ѳ{5^zo86HY.F)u㘔RK̜@ffⱱ?Z6a1 ",2t^/ZXkz}mm헷o~{{=y"rZq$IrcgzyY&&&Vr"\w=J|`^snׯjuu^{qA]̛[[[$Ju&">zffyԩoWܰ\Qe"nyZ?vj%IWk#"w^2FO4={^V53)DVVVVW\"nEG)\-fQk|g9La1ƘH sss̓~ZK\;b72\ _#~ `eyyy孷#91ihZc#"cI)ggg'-C Z/?W4Kkm97sh6OLOO~OTsZFhUZkbMlɲlɖ}"x^/\">ez*mooVxn۽nZ`,ˎȮ#0S.BPfY?O1[<|0YkZ 99GZk(R˕MD("͛7񿒴nf8|`(^YYy"R"E0Z_^m #qyp*amh~~ IV3O>dEx׻KD9WERVׯ\N3C& P呹QnZh4հ fV5v!LLL&k-8*Vҭ/Nv>Q$caDHOMMMtT."FD*"bsw}ٿ\vW^ap>PTcQOE=ܵn-$Mٜ 罯x 1Z7ϟ?W_{Hr93gd'N3!RcnijzheS6d~Ͻkil*.\=}J劈`挈 Z)~3뉢0k}ED*43tݯ]tiիuV_u,,,رcܹswdDdyGD2fδ̼}av޿O?{DTcc^ocZ1,s;;;ccc7DC-"elؓWGi޼/RAD3ADn,"JD>4| @YkIDs7BJ,!T!,aժODV)UafΣ,_"rС(fZD6DӠ  `řF h V"98<*ႺDDKD4M_PjE"pAU{\*F*c2B~(2s[#~8HEQE$l屩(\:{T6WUJr_>3*^H{>| wDdFN { @ Mh}(xwgn&K{<ֻ -4}8`@ `z}GTw\FIENDB`drumgizmo-0.9.14/plugingui/resources/sidebar.png0000644000076400017500000000072013077120603016701 00000000000000PNG  IHDR,{ pHYs  tIME  &7oIDAT8풿@d"!FH/ # `c%v 3bc2[,f??C&Ikv1^4}eB~mZjZ,Ƙ21#t|w]w:~2lRJ?(Rz}<^ yoyQeY$fh48q{nW:N2I4MR9cs~\ nR2ƴք8Xem[JY0jZR)J `0ۭm8BH)@ƘjZ.p8Ra !'ZSJ-x<,ZiOg_3EQ$/vsHߴIENDB`drumgizmo-0.9.14/plugingui/resources/progress.png0000644000076400017500000000113513077120603017135 00000000000000PNG  IHDR lbKGDC pHYs B(xtIME IiTXtCommentCreated with GIMPd.eIDAT8˥ORQo\h"V \6f9lG`  2 !}YJY1b"ЫsN Mgj̞wr pN ߱ H?0 π+1Z|]h i6K`g;ju60:Ђq@kA{ϺfHu3]wER{x--d*sa7S sU:&iJ)f(Z1h1,==Sbx0XfEy,Lv2Lt3̀r-";Q]GuMTj]͖\i7$ZXkKU׻?M&&Ͽ<|]keǕxZ_pgqȗu@~?&Xkp dGWΠIENDB`drumgizmo-0.9.14/plugingui/resources/slider.png0000644000076400017500000000232213077120603016552 00000000000000PNG  IHDR(WgAMA7tEXtSoftwareAdobe ImageReadyqe<dIDATxڌK+Wϝ$&Q-\KZ$+ၫ "[ n<7ō+I&m^d2nNf2I.9ssfFH)):JBP.hZsnYWe wnibbGBRpbcV$'> [uLX𘜜Tsjjh|iy?.`Og 𗘤94x||,'>Jh{{[ym A%r0 Q9}333g8bFO9[0ffnKVsBh{&z;rOʽj?j^d El؎CiCO/r^8 zocc;8ϳRrnO`q1l~g-/&? W6PnxO#ufizz:T,Z>N$mC "IeR"=¾s ~6~ja@ WlL"Ŋ( %o!5׸Ԋ葮akbFxwdpGs5ӯD @Sy%4AЇ3WbXyAEzH!dun,,,ccc PѠuHqKkʝ))!%SǢs ՖzDՋt*yUX\\$f%YEV/L*ކ\S$1]_h9NCf׼@, rjQ ?uj %P=~4fq7\ёS>)z÷o(6рYo_U3aXkr,A0*`:o]]]͵Z͢8y7VpM =< 8 PKTFN[};|Rr@tQyZch_ZNɾi>d'c@S5ݮ A׍VPPa6y-Cq3rV<|}*c+7}:г-ދbydbY(氋ngg3 TtK_FobQʗC5S(9=ï8@&Snk˷P#csR˓tWIENDB`drumgizmo-0.9.14/plugingui/resources/font.png0000644000076400017500000002511313077120603016241 00000000000000PNG  IHDR]]f pHYs+ IDATxy]U?t1b EJ,iF͊ˁF --KD(4"JZRԂRGđvb,;Ί` f w޻^zw>3!:ZppwGrC_W~e^O^~OmU~ێ{DIӄ~iJ;ra4NATM9&_~MaM_74KZ㚲鷕k4=&4MSfqeUaà'Tk,N}ίw-0YA( M#|ʶJ֐gZ?ߏ JYEltЄ6S'|j*Q8؋5E^$Lkq;Ҵו{^l/+۪ѫ״8J4M臐fM|k4MĩwP4U|ӎMunO 7h*aQ^϶fה>HW]11iJ*4;(J c}8|tWbyR|gS%2t"گ]F[zhU!RU5- YE.كJYtlt7 =NV}d:btޚLC/QŵWqiZ~= Wow—mU~Ձom4M臐fM|k4MĩwP4U|ӎMunO 7h*aQ^϶fWgUՏ)yk4=&4=SI2aGUn0iڿq -3^:M~Kzkwvyn43W75EBB CNۇYh7Y:)_v`b0ox~*G!+cPƁz`?&_OI*u?θBk&$p;W4v?Vy !"!`p*;Ghf>h=pL P99n=`r> [ hbm AHZ6Ar:MG^/u,]a~ד"2^:`)p-_S芥/s A ; yH=Нa|O&S7#=NǏW[C~ y5\"&WveX=4&o:2\ -g&dk:%; "|x?)CȦ~ qƁ+*.ԑg&6d?ՁSm9| 'O]F@fT_EG "f #~*s܆*J2l@ 󘤚:> h /J35Д+rY;v:o@⇗{, q^>d^F{d(|p/F 1xwA/VO GM.YL2^h?![tt> <<KoDD .F<s Z4=1ěBy&evo'[#3}=V)|'ϡE? 1P>vwr"[P~d"Q\hh>'G`-N#Icߵ ^0XW§Cޝ r4>ǣMUy}0H!,NL'_E= X(஄\KQj4OD'"=qZ ܓO3_?G狌瑑 ˭FK^tBu5M䝾k&_x~<>i+/w "Cwn+O't"&/>j7'4)c/AB}5QxE,jWƂ(^JoDhW~0wPr5ŧ"n*g-Z\|}m2#&A_KZW<[yad| Gtt̾ub6٫_e]yގ+ܻFܭhnwfN滞l ~)*ߑdd<މ.+DzyATS|cYxAo1mw$k;hNc{>xO wсoz3{\~sQ9pC'>?Oц` _VM统NaO2g8lRZ@q~wNoS|:_A1h hm'8&2r#t:tV1v"O-:BƳB+Fnj΢봲h~>9n>^9 RK7t_ZD}rT||gR2+^ s?!w:m!V߆Mx×-@i$߁H~5H; pK3фf9O{@]&\_e_ќ3ϴ܄gx"<~4q:B'xRD\k :P HhA9V͕栅Wȵp Ḁ"/*9^\ڋv77o]t=P]Hd,b}&4>әOnDF'.GFؤGjo^M$Q7NL?tlr9-7voLXħ΢kj' עx)ʣq\ݲ\M񩑗Hc'kQ[\kqoYG./SMO9my)\_lEo+K'o݆1d܉lΣCΪ:&!(KȂ5xoG:htl5-AqЃ=3 1d|m)+<6GE0 ۴Y@rdi蟌65O5Fz9Zot:,p6 &lq*U]!>ДBM#'s+z]?<= aGk?/MJ:Y؂Yy>%:W ו{ %Ȱ Ӝp*\a`e"IZL^M4=j [:Kwz֣9pQ#]6' u\a,F:{}/N!?]͜x4*8pˑNDmnDGҾK-8T]+oGa_:?/C[ tz}NGrg>$ĭ@$žAY߅,[mކN_][na*)w^*Dq[Zsml;d=f˿`/ yt]0tkq-.qoBr`ˑv{TfdAV {R4WNÅo:׿*q1&'xZ~Kl  )qW"oC:?7U>}pj"cž)Ǒ ݋N.D )SS| f#{5闠9 ܧ c6RϹ'Ђ|oH`q!ȷ򉅧hsi4:ݕw7Io/'' oW-a@Yz+|Q½ջ&@Ž"z8Hu-w/~qvt:hFTߟ@7VS+k<3\o4l'er`}rhz8r,49L/H,ͻ0@c S|BZ)GDp#^Ӻ/0NIފ&S= ˗76&û{lζeס+Y2y T#Ghj[]Azt-סzw-rWZ\v6oyACk?ߣĮE+gB{F2(} 9(+atRqSAz:wroGhGB4EuX^o@¾t5ʼnY|":%h"nq,-EN>V~byz~2B/=ni^Z򋟹]m=v={\y^NyAHx up-$8CDZM f&5zŵ7,sFx\dOAl Ga mʽ{-H܆w;RPסD f-e7mVd45{ ߊt;gƴA¶ߧ9Gz_zqQ>#~m2]]/*+t7K҈B>N 򝶢6$tU HE(D4_A  H8"ȇmlЦoЛ=l\!| ._NT確9brZ\px;~X-~&bt'"tO(ۑ#/rq4?:mQ9yd|:n0=Vn^?9_`o- GIwL~ hqLr+"'##oMD]eɓW .l󏠾p=@ܮۅtt/D݅PIuw,MZELGѠ_O;IQgxlW?žJ֮N:7Q0RǣqN\ ܣK,?~< 'wܰ(= oXVpބvoʿ.DA7|찰{񣇍b@s51XF9\!g }tpC]TUXYDkBp&ODжgaӤ|42 qs7<Ӑiaix8{(Z58|ԓhRЂ` W*/ۀh]]v5pvTfμ썌]^}<݋rm!}4 ;^44xTI+Gh!k-|ot׉}}0a%XtH\w;vpY|Htgtj94%:z*+S^yI*Oc2NE$xDr:A *}Bm cU,b~hp c=\N 2/@|O.At!"W^j _jr4~xOG)\\W>|[.A[ŵbzy>qMN.&} wC շ~쯻 \JS8[xIx<~h=\j_v)ˏ3C:~8&]L$"d#:aڼ%&wDʏ ?q>?X͉DU}ݝv6cQ oIR\\ǣNw n[Y^084Qŗ&e ?= k4 t;٢qRu=l耰NxG-򣇍+G}uŧӫA"_{g/g -00/gcdFK$l!s:ЉwYz_kN [l a6DvO7ct+i;O&>9hk?"0]QЉ@ẅx 'ٕ~$ZBDA!c6Gx'݋cn,Tf6TFd׈9hL>8.xz4o"OgQ@m2?MTL6d$!&G5e?>_G6r5)"`x;;n'fxyp9體R blMgO@eP{h^-~.A#ދ)];MXOo-`T.xLgUݷ0}J,gtvݜ^6"-#_vCn1 ԐqU49{%>>f;-B{P~_~~xl _F'J~m\B0~ -vtB Lm*n؈t*2%\@-G+#tsξ}:hE lj12o!)gP6 JQ_C8}٭>l$}-_r 3-7@ zww(1ǣN< zbmX x:]B/ΫI*0iWQ~!8q -XQ­P9?!{=u=\oW"?z8RD4x{.+g.uq1Hd#Lֶ][t;w7]݂v9%e*W¸!MXN0@ 1gcbCpK]Ed#/n_0/B\u &^[sݿwI[Td'_fz6ŽТr(~#*g25W`W#F2gj*KAO+P8ϙdo IDAT3hby.+oI+˾7rYqdU_b/ˑy-FާqW|;U| jkg}2&ɿu'r1jy:ҭ.Rh{R}l.s59h73@km9*rv`p]QDrhNݻgr)hdm;%;fBcRt=SQ_(f::qaE}ٷ]rztEh<م P}$q_DҀĽKdo>@~wYGυA:IA[ŵ>~5%ې={ ҫl&Mq>1ʧι[*¸1AM~*yzhʥS~VPw2y9 |O}=mL78 mPޛ|ݙ4ttMg |b)ZǣNý |;äg%:A[!¹"up[:wWBȿ.#K?:7}?"?zظB0Oy_ރA `nTrZ\pxCn;ٮm<'~ɿ) \t ts4~ -tzi^Y`* p[4ҝ!gaʋ:u'0`kЂ*__9hnBd=WN9elEhB}#$Z l{$B#UWnroA]hA6!, 9s8c/7d؂&4Ï=Z&ƪ׏Ҋh(K&QXS?7@ܔ\ h@ ?G ;[5bO6d^B^xEF 7H_.;!ӹhwʾϋ0\g?dKP;W>冄L%ໆFn]Ћ-44nDm6A2Ԯ-rc^#by d\mh*7~)ؕ8]_[&4'\V.6}ga'ň 8rzv'rvϝޱ5{g6t"o g+;~kC5 xckq-n$pa_BvECuO.pqAqpi[ٹEr]_L'![,S%^?BcEIኮ^&Sއ2:t>H ӸSϹ;Ӿn]Jۮg Hb LV@U|adA%?>~;H{=F[sj}=A^]1ޑta hnD74>~"{8H?AK4>Z`q8.)RʼMӾ_w>lWiJz7S]'K_Tu+V]St~SUM~Zn&A^E'K^eo:q9#)^否W~EW</fKs1'۪ *&}ϢBߊ%[ŵ>kSx2-(U>k60&왪<:wX.\YV|fދ3NhѺ<[Jqsm}M2Fͮ+3- uL (RvYF㍡O'Cbkq-n1pqls A]U?<^0{|2ͷ;tHSO^~O{~Gס;']F0i!M)k4MiZ4`@Uo8 ߉6]*{>py,/0:b؟_3{7ragSU[\kqoǠ%ml$rLwxյOz= {saA{a;F7Yw_ش'Жĝ׶I}פo+ v7]WBߥ'fZAꀙ[QpE6mdXZZ\8;F_Qo"d-crJ)K)ʯ_nz^x pۈdg%%ߨ4B&tISrWD9 0iS'n4; K|)]6?6D$,Do]Wgߟ%~nYJg=VMWg]?Df}Oa;VwTzkq-.sҾ=RW?r$䩕N]<{qL{|ƁUȧW9IY!tO\Np76I%qsm}M2ݰkwUp%]zbe5E Wka2 ?g5IENDB`drumgizmo-0.9.14/plugingui/resources/bypass_button.png0000644000076400017500000000311713077120603020167 00000000000000PNG  IHDR@)~gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxڴVKO[G{'@ɆHHH+??#]6d2HBJЀQx$8G9uE93g Aoo/OX\[[VF_N<sf z;KE-xz`@=V!|2#\ &ĬьVJIeJ/|.6ix6כ7=ag@7JC`񬁿G yogmkhYlzGkL߽!0_)ĔR,-Ajy)6BR[tkeǻKK]14 ˈz۱QB8x"=hN`\ #``.ߍ/g}XD<A.)!P1em 'ssBE`˸dV!$—A!TAwVad !^߿L0 2  !f2W4IX㹿Cx՘@x&j"m0c#1!rX";bzDWyek7,~#RU<g7X^/C m =Tqci30=17Ii/ n:NG3C<'љ%d;m!P`t ?TJBU_rcLL`e MJ}}‹e)^(xeX?\𪁷\Oy^h&Ju o+voFm !TM~WRסuIb7};XR,e($<#|0{ 0OasgAPa"`H MlQ~^ >P5-L CtB2ֻa?PRH1*^^H"dUa)1 l_!#9,P&ޥа ֕|v<C ɍ 'Mųnó3-g_'Sogƞg}]_E ^?~~iO[[uC9>:gj)!H[[b('FGya^pis+{`7Kw6up s;ד +wm K 7 } Cܺ-M7ɏ=tWK y nT,^OON~!I_ȅTtomWDx|lWIENDB`drumgizmo-0.9.14/plugingui/resources/pushbutton.png0000644000076400017500000000260013077120603017502 00000000000000PNG  IHDR-9*gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxڤXoF)Je[q;Htk]4hKKGt-݊4<~Z}ȓL{Q"y}߽ݝ(.*KPĶ,˔de>(* YV,\XZ*@ t:UCTYӺĢt6}`=y7á #SIȭ:# ZJDC&-j4Ilm1ZAH} ',<l7&) ?]@v\]KB,>+ =o0q} ~iI/,]U!ϞMpaqVvQO@ s_܁Q9ZuXKq+5&gHi&{I! ma"Y4eKs2 u>I8Cer-]b!hLFO]-`:s.IbY)E7-ceeB 71Q1ڠGV!onTF*K)yĞj[k[pKo-^TjtSb"oBhI_mtLDo"Waw啘6"*x-]u]ւCki3f,:|JvTe~rѺ1̼a:ӵZ.O 9B |ѽ!@! E B 9 9B ,!@!@9?r@r\X9B 9}V,r!r! "@r!@s` 9 9B 9B94 "@r!@rB,r!r>W+9B9Br~` 9 Zr@r\X9B 9B9B Bx>r@rC!@! E B X9B 9}V,r!r>W+9B9B B 90O,r!r! "@r!@s` 9 9!9B9B@!@!@9?r@r!r!@_+9B9Br~` 9 Zr@rC!@! E B X9B 9B9B !@!@9?r@r\X9B 9B@!E Bj"@r!@rB,r!r>W+9B9B B 90O,r!r>W+9B9Br~` 9 Zr@rC7={KSvYIENDB`drumgizmo-0.9.14/plugingui/colour.cc0000644000076400017500000000411613077120602014364 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * colour.cc * * Fri Oct 14 09:38:28 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "colour.h" #include namespace GUI { Colour::Colour() { data = new float[4]; data[0] = data[1] = data[2] = data[3] = 1.0f; } Colour::Colour(float grey, float a) { data = new float[4]; data[0] = data[1] = data[2] = grey; data[3] = a; } Colour::Colour(float r, float g, float b, float a) { data = new float[4]; data[0] = r; data[1] = g; data[2] = b; data[3] = a; } Colour::Colour(Colour&& other) { if(data) { delete[] data; } data = other.data; other.data = nullptr; } Colour::Colour(const Colour& other) { if(data) { delete[] data; } data = new float[4]; std::memcpy(data, other.data, 4 * sizeof(float)); } Colour::~Colour() { if(data) { delete[] data; } } Colour& Colour::operator=(const Colour& other) { std::memcpy(data, other.data, 4 * sizeof(float)); return *this; } Colour& Colour::operator=(Colour&& other) { if(data) { delete[] data; } data = other.data; other.data = nullptr; return *this; } } // GUI:: drumgizmo-0.9.14/plugingui/guievent.h0000644000076400017500000000547613077120602014563 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * event.h * * Sun Oct 9 16:11:47 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include namespace GUI { enum class EventType { mouseMove, repaint, button, scroll, key, close, resize, move }; class Event { public: virtual ~Event() {} virtual EventType type() = 0; }; class MouseMoveEvent : public Event { public: EventType type() { return EventType::mouseMove; } int x; int y; }; enum class Direction { up, down, }; enum class MouseButton { right, middle, left, }; class ButtonEvent : public Event { public: EventType type() { return EventType::button; } int x; int y; Direction direction; MouseButton button; bool doubleClick; }; class ScrollEvent : public Event { public: EventType type() { return EventType::scroll; } int x; int y; int delta; }; class RepaintEvent : public Event { public: EventType type() { return EventType::repaint; } int x; int y; size_t width; size_t height; }; enum class Key { unknown, left, right, up, down, deleteKey, backspace, home, end, pageDown, pageUp, enter, character, //!< The actual character is stored in KeyEvent::text }; class KeyEvent : public Event { public: EventType type() { return EventType::key; } Direction direction; Key keycode; std::string text; }; class CloseEvent : public Event { public: EventType type() { return EventType::close; } }; class ResizeEvent : public Event { public: EventType type() { return EventType::resize; } size_t width; size_t height; }; class MoveEvent : public Event { public: EventType type() { return EventType::move; } int x; int y; }; using EventQueue = std::list>; struct Rect { std::size_t x1; std::size_t y1; std::size_t x2; std::size_t y2; }; } // GUI:: drumgizmo-0.9.14/plugingui/textedit.h0000644000076400017500000000443413103211624014553 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * textedit.h * * Tue Oct 21 11:23:58 CEST 2014 * Copyright 2014 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "font.h" #include "notifier.h" #include "scrollbar.h" #include "texturedbox.h" #include "widget.h" namespace GUI { class TextEdit : public Widget { public: TextEdit(Widget* parent); virtual ~TextEdit(); // From Widget bool isFocusable() override { return true; } void resize(std::size_t width, std::size_t height) override; std::string getText(); void setText(const std::string& text); void setReadOnly(bool readonly); bool readOnly(); void preprocessText(); Notifier<> textChangedNotifier; protected: // From Widget virtual void repaintEvent(RepaintEvent* repaintEvent) override; void scrollEvent(ScrollEvent* scrollEvent) override; private: void scrolled(int value); TexturedBox box{getImageCache(), ":resources/widget.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 static constexpr std::size_t x_border{10}; static constexpr std::size_t y_border{8}; ScrollBar scroll; Font font; std::string text; bool readonly{true}; bool needs_preprocessing{false}; std::vector preprocessed_text; }; } // GUI:: drumgizmo-0.9.14/plugingui/canvas.h0000644000076400017500000000262013077120602014174 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * canvas.h * * Sun Sep 4 13:03:51 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "pixelbuffer.h" namespace GUI { //! Abstract class that can be used by the Paiter to draw on. class Canvas { public: virtual ~Canvas() = default; //! @returns a reference to the pixel buffer. virtual PixelBufferAlpha& GetPixelBuffer() = 0; }; } // GUI:: drumgizmo-0.9.14/plugingui/colour.h0000644000076400017500000000323613077120602014230 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * colour.h * * Fri Oct 14 09:38:28 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once namespace GUI { class Colour { public: Colour(); Colour(float grey, float alpha = 1.0f); Colour(float red, float green, float blue, float alpha = 1.0f); Colour(Colour&& other); Colour(const Colour& other); ~Colour(); Colour& operator=(const Colour& other); Colour& operator=(Colour&& other); inline float red() const { return data[0]; } inline float green() const { return data[1]; } inline float blue() const { return data[2]; } inline float alpha() const { return data[3]; } private: float *data{nullptr}; }; } // GUI:: drumgizmo-0.9.14/plugingui/nativewindow_cocoa.h0000644000076400017500000000352713077120602016612 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_cocoa.h * * Sun Dec 4 15:55:14 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "nativewindow.h" namespace GUI { class Window; class NativeWindowCocoa : public NativeWindow { public: NativeWindowCocoa(void* native_window, Window& window); ~NativeWindowCocoa(); // From NativeWindow: void setFixedSize(int width, int height) override; void resize(int width, int height) override; void move(int x, int y) override; void show() override; void hide() override; void setCaption(const std::string &caption) override; void handleBuffer() override; void redraw() override; void grabMouse(bool grab) override; bool hasEvent() override; std::shared_ptr getNextEvent() override; std::shared_ptr peekNextEvent() override; private: Window& window; }; } // GUI:: drumgizmo-0.9.14/plugingui/painter.cc0000644000076400017500000002635713077120602014536 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * painter.cc * * Wed Oct 12 19:48:45 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "painter.h" #include #include #include "pixelbuffer.h" #include "font.h" #include "drawable.h" #include "image.h" #include "canvas.h" namespace GUI { Painter::Painter(Canvas& canvas) : pixbuf(canvas.GetPixelBuffer()) { colour = Colour(0.0f, 0.0f, 0.0f, 0.5f); } Painter::~Painter() { } void Painter::setColour(const Colour& colour) { this->colour = colour; } static void plot(PixelBufferAlpha& pixbuf, const Colour& colour, int x, int y, double c) { if((x >= (int)pixbuf.width) || (y >= (int)pixbuf.height) || (x < 0) || (y < 0)) { return; } // plot the pixel at (x, y) with brightness c (where 0 ≤ c ≤ 1) pixbuf.addPixel(x, y, (unsigned char)(colour.red() * 255.0), (unsigned char)(colour.green() * 255.0), (unsigned char)(colour.blue() * 255.0), (unsigned char)(colour.alpha() * 255 * c)); } static inline double fpart(double x) { return x - std::floor(x);// fractional part of x } static inline double rfpart(double x) { return 1 - fpart(x); // reverse fractional part of x } void Painter::drawLine(int x0, int y0, int x1, int y1) { bool steep = abs(y1 - y0) > abs(x1 - x0); if(steep) { std::swap(x0, y0); std::swap(x1, y1); } if(x0 > x1) { std::swap(x0, x1); std::swap(y0, y1); } double dx = x1 - x0; double dy = y1 - y0; double gradient = dy / dx; // Handle first endpoint: double xend = std::round(x0); double yend = y0 + gradient * (xend - x0); double xpxl1 = xend; // this will be used in the main loop double ypxl1 = std::floor(yend); if(steep) { plot(pixbuf, colour, ypxl1, xpxl1, 1); } else { plot(pixbuf, colour, xpxl1, ypxl1, 1); } double intery = yend + gradient; // first y-intersection for the main loop // Handle second endpoint: xend = std::round(x1); yend = y1 + gradient * (xend - x1); double xpxl2 = xend; // this will be used in the main loop double ypxl2 = std::floor(yend); if(steep) { plot(pixbuf, colour, ypxl2, xpxl2, 1); } else { plot(pixbuf, colour, xpxl2, ypxl2, 1); } // main loop for(int x = xpxl1 + 1; x <= xpxl2 - 1; ++x) { if(steep) { plot(pixbuf, colour, std::floor(intery) , x, rfpart(intery)); plot(pixbuf, colour, std::floor(intery)+1, x, fpart(intery)); } else { plot(pixbuf, colour, x, std::floor(intery), rfpart(intery)); plot(pixbuf, colour, x, std::floor(intery)+1, fpart(intery)); } intery += gradient; } } void Painter::drawRectangle(int x1, int y1, int x2, int y2) { drawLine(x1, y1, x2 - 1, y1); drawLine(x2, y1, x2, y2 - 1); drawLine(x1 + 1, y2, x2, y2); drawLine(x1, y1 + 1, x1, y2); } void Painter::drawFilledRectangle(int x1, int y1, int x2, int y2) { for(int y = y1; y <= y2; ++y) { drawLine(x1, y, x2, y); } } void Painter::clear() { for(int x = 0; x < (int)pixbuf.width; ++x) { for(int y = 0; y < (int)pixbuf.height; ++y) { pixbuf.setPixel(x, y, 0, 0, 0, 0); } } } void Painter::drawText(int x0, int y0, const Font& font, const std::string& text, bool nocolour) { PixelBufferAlpha* textbuf = font.render(text); y0 -= textbuf->height; // The y0 offset (baseline) is the bottom of the text. // If the text offset is outside the buffer; skip it. if((x0 > (int)pixbuf.width) || (y0 > (int)pixbuf.height)) { delete textbuf; return; } // Make sure we don't try to draw outside the pixbuf. int renderWidth = textbuf->width; if(renderWidth > (int)(pixbuf.width - x0)) { renderWidth = pixbuf.width - x0; } int renderHeight = textbuf->height; if(renderHeight > ((int)pixbuf.height - y0)) { renderHeight = ((int)pixbuf.height - y0); } if(nocolour) { for(int y = -1 * std::min(0, y0); y < renderHeight; ++y) { for(int x = -1 * std::min(0, x0); x < renderWidth; ++x) { unsigned char r, g, b, a; assert(x >= 0); assert(y >= 0); assert(x < (int)textbuf->width); assert(y < (int)textbuf->height); textbuf->pixel(x, y, &r, &g, &b, &a); assert(x + x0 >= 0); assert(y + y0 >= 0); assert(x + x0 < (int)pixbuf.width); assert(y + y0 < (int)pixbuf.height); pixbuf.addPixel(x + x0, y + y0, r, g, b, a); } } } else { for(int y = -1 * std::min(0, y0); y < renderHeight; ++y) { for(int x = -1 * std::min(0, x0); x < renderWidth; ++x) { unsigned char r,g,b,a; assert(x >= 0); assert(y >= 0); assert(x < (int)textbuf->width); assert(y < (int)textbuf->height); textbuf->pixel(x, y, &r, &g, &b, &a); assert(x + x0 >= 0); assert(y + y0 >= 0); assert(x + x0 < (int)pixbuf.width); assert(y + y0 < (int)pixbuf.height); pixbuf.addPixel(x + x0, y + y0, colour.red() * 255, colour.green() * 255, colour.blue() * 255, colour.alpha() * a); } } } delete textbuf; } void Painter::drawPoint(int x, int y) { pixbuf.setPixel(x, y, (unsigned char)(colour.red() * 255.0), (unsigned char)(colour.green() * 255.0), (unsigned char)(colour.blue() * 255.0), (unsigned char)(colour.alpha() * 255.0)); } static void plot4points(Painter *p, int cx, int cy, int x, int y) { p->drawPoint(cx + x, cy + y); if(x != 0) { p->drawPoint(cx - x, cy + y); } if(y != 0) { p->drawPoint(cx + x, cy - y); } if(x != 0 && y != 0) { p->drawPoint(cx - x, cy - y); } } void Painter::drawCircle(int cx, int cy, double radius) { int error = -radius; int x = radius; int y = 0; while(x >= y) { plot4points(this, cx, cy, x, y); if(x != y) { plot4points(this, cx, cy, y, x); } error += y; ++y; error += y; if(error >= 0) { --x; error -= x; error -= x; } } } static void plot4lines(Painter *p, int cx, int cy, int x, int y) { p->drawLine(cx + x, cy + y, cx - x, cy + y); if(x != 0) { p->drawLine(cx - x, cy + y, cx + x, cy + y); } if(y != 0) { p->drawLine(cx + x, cy - y, cx - x, cy - y); } if(x != 0 && y != 0) { p->drawLine(cx - x, cy - y, cx + x, cy - y); } } void Painter::drawFilledCircle(int cx, int cy, int radius) { int error = -radius; int x = radius; int y = 0; while(x >= y) { plot4lines(this, cx, cy, x, y); if(x != y) { plot4lines(this, cx, cy, y, x); } error += y; ++y; error += y; if(error >= 0) { --x; error -= x; error -= x; } } } void Painter::drawImage(int x0, int y0, const Drawable& image) { int fw = image.width(); int fh = image.height(); // Make sure we don't try to draw outside the pixbuf. if(fw > (int)(pixbuf.width - x0)) { fw = (int)(pixbuf.width - x0); } if(fh > (int)(pixbuf.height - y0)) { fh = (int)(pixbuf.height - y0); } if((fw < 1) || (fh < 1)) { return; } for(std::size_t y = -1 * std::min(0, y0); y < (std::size_t)fh; ++y) { for(std::size_t x = -1 * std::min(0, x0); x < (std::size_t)fw; ++x) { assert(x >= 0); assert(y >= 0); assert(x < image.width()); assert(y < image.height()); auto& c = image.getPixel(x, y); assert(x0 + x >= 0); assert(y0 + y >= 0); assert(x0 + x < pixbuf.width); assert(y0 + y < pixbuf.height); pixbuf.addPixel(x0 + x, y0 + y, c); } } } void Painter::drawImageStretched(int x0, int y0, const Drawable& image, int width, int height) { float fw = image.width(); float fh = image.height(); // Make sure we don't try to draw outside the pixbuf. if(width > (int)(pixbuf.width - x0)) { width = pixbuf.width - x0; } if(height > (int)(pixbuf.height - y0)) { height = pixbuf.height - y0; } if((width < 1) || (height < 1)) { return; } for(int y = -1 * std::min(0, y0); y < height; ++y) { for(int x = -1 * std::min(0, x0); x < width; ++x) { int lx = ((float)x / (float)width) * fw; int ly = ((float)y / (float)height) * fh; auto& c = image.getPixel(lx, ly); pixbuf.addPixel(x0 + x, y0 + y, c); } } } void Painter::drawBox(int x, int y, const Box& box, int width, int height) { int dx = x; int dy = y; // Top: drawImage(dx, dy, *box.topLeft); dx += box.topLeft->width(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.top, width - box.topRight->width() - box.topLeft->width(), box.top->height()); dx = x + width - box.topRight->width(); if((dx < 0) || (dy < 0)) { return; } drawImage(dx, dy, *box.topRight); // Center: dy = y + box.topLeft->height(); dx = x + box.left->width(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.center, width - box.left->width() - box.right->width(), height - box.topLeft->height() - box.bottomLeft->height()); // Mid: dx = x; dy = y + box.topLeft->height(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.left, box.left->width(), height - box.topLeft->height() - box.bottomLeft->height()); dx = x + width - box.right->width(); dy = y + box.topRight->height(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.right, box.right->width(), height - box.topRight->height() - box.bottomRight->height()); // Bottom: dx = x; dy = y + height - box.bottomLeft->height(); if((dx < 0) || (dy < 0)) { return; } drawImage(dx, dy, *box.bottomLeft); dx += box.bottomLeft->width(); if((dx < 0) || (dy < 0)) { return; } drawImageStretched(dx, dy, *box.bottom, width - box.bottomRight->width() - box.bottomLeft->width(), box.bottom->height()); dx = x + width - box.bottomRight->width(); if((dx < 0) || (dy < 0)) { return; } drawImage(dx, dy, *box.bottomRight); } void Painter::drawBar(int x, int y, const Bar& bar, int width, int height) { if(width < ((int)bar.left->width() + (int)bar.right->width() + 1)) { width = bar.left->width() + bar.right->width() + 1; } drawImageStretched(x, y, *bar.left, bar.left->width(), height); drawImageStretched(x + bar.left->width(), y, *bar.center, width - bar.left->width() - bar.right->width(), height); drawImageStretched(x + width - bar.left->width(), y, *bar.right, bar.right->width(), height); } } // GUI:: drumgizmo-0.9.14/plugingui/texturedbox.h0000644000076400017500000001016313077120603015300 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * texturedbox.h * * Sun Jun 5 12:22:14 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "drawable.h" #include "imagecache.h" #include "texture.h" namespace GUI { class TexturedBox : public Drawable { public: //! Draw a box from 9 image segments nested inside the same image. //! An image says more than a thousand words: //! .----------------------------------------. //! | (x0, y0) | //! | \ dx1 dx2 dx3 | //! | .-----+-----------+-----. \ | //! | dy1 | A | <--B--> | C | | | //! | +-----+-----------+-----+ | | //! | | /|\ | /|\ | /|\ | | h | //! | | | | | | | | | e | //! | dy2 | D | <--E--> | F | > i | //! | | | | | | | | | g | //! | | \|/ | \|/ | \|/ | | h | //! | +-----+-----------+-----+ | t | //! | dy3 | G | <--H--> | I | | | //! | `-----+-----------+-----` / | //! | | //! | \___________ ___________/ | //! | V | //! | width | //! `----------------------------------------` //! //! \param image_cache A reference to the image cache object. //! \param filename The filename of the texture image to use. //! \param (x0, y0) is coordinate of the upper left corner of the A segment. //! \param (width, height) is the total rendered size of the Box. //! \param dx1 is the width of the A, C and F segments. //! \param dx2 is the width of the B, E and H segments. //! \param dx3 is the width of the C, F and I segments. //! \param dy1 is the height of the A, B and C segments. //! \param dy2 is the height of the D, E and F segments. //! \param dy3 is the height of the G, G and I segments. //! //! Segments A, C, G and I are drawn with no stretch. //! Segments B and H are stretched horizontally to fill the //! gaps between A, C and G, I so that resulting width is 'width' //! Segments D and F are stretched vertically to fill the //! gaps between A, G and C, I so that resulting height is 'height' //! Segment E will be stretched both horizontally and vertically //! to fill the inner space between B, H and D, F. TexturedBox(ImageCache& image_cache, const std::string& filename, std::size_t x0, std::size_t y0, std::size_t dx1, std::size_t dx2, std::size_t dx3, std::size_t dy1, std::size_t dy2, std::size_t dy3); // From Drawable: std::size_t width() const override; std::size_t height() const override; void setSize(std::size_t width, std::size_t height); const Colour& getPixel(std::size_t x, std::size_t y) const override; private: Texture seg_a; Texture seg_b; Texture seg_c; Texture seg_d; Texture seg_e; Texture seg_f; Texture seg_g; Texture seg_h; Texture seg_i; std::size_t dx1; std::size_t dx2; std::size_t dx3; std::size_t dy1; std::size_t dy2; std::size_t dy3; std::size_t _width{100}; std::size_t _height{100}; Colour outOfRange{0.0f, 0.0f, 0.0f, 0.0f}; }; } // GUI:: drumgizmo-0.9.14/plugingui/verticalline.h0000644000076400017500000000266613077120603015415 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * verticalline.h * * Sat Apr 6 12:59:43 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "image.h" namespace GUI { class VerticalLine : public Widget { public: VerticalLine(Widget* parent); virtual ~VerticalLine() = default; protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: Image vline; }; } // GUI:: drumgizmo-0.9.14/plugingui/texturedbox.cc0000644000076400017500000000763413077120603015447 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * texturedbox.cc * * Sun Jun 5 12:22:15 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "texturedbox.h" #include namespace GUI { TexturedBox::TexturedBox(ImageCache& image_cache, const std::string& filename, std::size_t x0, std::size_t y0, std::size_t dx1, std::size_t dx2, std::size_t dx3, std::size_t dy1, std::size_t dy2, std::size_t dy3) : seg_a(image_cache, filename, x0 , y0 , dx1, dy1) , seg_b(image_cache, filename, x0 + dx1 , y0 , dx2, dy1) , seg_c(image_cache, filename, x0 + dx1 + dx2, y0 , dx3, dy1) , seg_d(image_cache, filename, x0 , y0 + dy1 , dx1, dy2) , seg_e(image_cache, filename, x0 + dx1 , y0 + dy1 , dx2, dy2) , seg_f(image_cache, filename, x0 + dx1 + dx2, y0 + dy1 , dx3, dy2) , seg_g(image_cache, filename, x0 , y0 + dy1 + dy2, dx1, dy3) , seg_h(image_cache, filename, x0 + dx1 , y0 + dy1 + dy2, dx2, dy3) , seg_i(image_cache, filename, x0 + dx1 + dx2, y0 + dy1 + dy2, dx3, dy3) , dx1(dx1) , dx2(dx2) , dx3(dx3) , dy1(dy1) , dy2(dy2) , dy3(dy3) , _width(dx1 + dx2 + dx3) , _height(dy1 + dy2 + dy3) { } std::size_t TexturedBox::width() const { return _width; } std::size_t TexturedBox::height() const { return _height; } void TexturedBox::setSize(std::size_t width, std::size_t height) { _width = width; _height = height; } const Colour& TexturedBox::getPixel(std::size_t x, std::size_t y) const { assert(x < _width); assert(y < _height); if(y < dy1) // row 1 { if(x < dx1) // col 1 { return seg_a.getPixel(x, y); } else if(x < (_width - dx3)) // col 2 { float scale = (float)(x - dx1) / (float)(_width - dx1 - dx3); assert(seg_b.width() == dx2); return seg_b.getPixel(scale * dx2, y); } else // col 3 { return seg_c.getPixel(x - (_width - dx3), y); } } else if(y < (_height - dy3)) // row 2 { if(x < dx1) // col 1 { // TODO: Apply vertical scale float scale = (float)(y - dy1) / (float)(_height - dy1 - dy3); return seg_d.getPixel(x, scale * dy2); } else if(x < (_width - dx3)) // col 2 { float scale_x = (float)(x - dx1) / (float)(_width - dx1 - dx3); float scale_y = (float)(y - dy1) / (float)(_height - dy1 - dy3); return seg_e.getPixel(scale_x * dx2, scale_y * dy2); } else // col 3 { float scale = (float)(y - dy1) / (float)(_height - dy1 - dy3); return seg_f.getPixel(x - (_width - dx3), scale * dy2); } } else // row 3 { if(x < dx1) // col 1 { return seg_g.getPixel(x, y - (_height - dy3)); } else if(x < (_width - dx3)) // col 2 { float scale = (float)(x - dx1) / (float)(_width - dx1 - dx3); return seg_h.getPixel(scale * dx2, y - (_height - dy3)); } else // col 3 { return seg_i.getPixel(x - (_width - dx3), y - (_height - dy3)); } } return outOfRange; } } // GUI:: drumgizmo-0.9.14/plugingui/window.cc0000644000076400017500000001742213077713327014410 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * window.cc * * Sun Oct 9 13:11:53 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "window.h" #include #include "painter.h" #ifndef UI_PUGL #ifdef UI_X11 #include "nativewindow_x11.h" #endif // UI_X11 #ifdef UI_WIN32 #include "nativewindow_win32.h" #endif // UI_WIN32 #ifdef UI_COCOA #include "nativewindow_cocoa.h" #endif // UI_COCOA #else #include "nativewindow_pugl.h" #endif // !UI_PUGL namespace GUI { Window::Window(void* native_window) : Widget(nullptr) , wpixbuf(1, 1) { // Make sure we have a valid size when initialising the NativeWindow _width = wpixbuf.width; _height = wpixbuf.height; #ifndef UI_PUGL #ifdef UI_X11 native = new NativeWindowX11(native_window, *this); #endif // UI_X11 #ifdef UI_WIN32 native = new NativeWindowWin32(native_window, *this); #endif // UI_WIN32 #ifdef UI_COCOA native = new NativeWindowCocoa(native_window, *this); #endif // UI_COCOA #else // Use pugl native = new NativeWindowPugl(native_window, *this); #endif // !UI_PUGL eventhandler = new EventHandler(*native, *this); setVisible(true); // The root widget is always visible. } Window::~Window() { delete native; delete eventhandler; } void Window::setFixedSize(int w, int h) { native->setFixedSize(w, h); } void Window::setCaption(const std::string& caption) { native->setCaption(caption); } //! This overload the resize method on Widget and simply requests a window resize //! on the windowmanager/OS. The resized() method is called by the event handler //! once the window has been resized. void Window::resize(std::size_t width, std::size_t height) { native->resize(width, height); } //! This overload the move method on Widget and simply requests a window move //! on the windowmanager/OS. The moved() method is called by the event handler //! once the window has been moved. void Window::move(int x, int y) { native->move(x, y); } void Window::show() { Widget::show(); redraw(); native->show(); } void Window::hide() { native->hide(); Widget::hide(); } Window* Window::window() { return this; } ImageCache& Window::getImageCache() { return image_cache; } EventHandler* Window::eventHandler() { return eventhandler; } Widget* Window::keyboardFocus() { return _keyboardFocus; } void Window::setKeyboardFocus(Widget* widget) { auto oldFocusWidget = _keyboardFocus; _keyboardFocus = widget; if(oldFocusWidget) { oldFocusWidget->redraw(); } if(_keyboardFocus) { _keyboardFocus->redraw(); } } Widget* Window::buttonDownFocus() { return _buttonDownFocus; } void Window::setButtonDownFocus(Widget* widget) { _buttonDownFocus = widget; native->grabMouse(widget != nullptr); } Widget* Window::mouseFocus() { return _mouseFocus; } void Window::setMouseFocus(Widget* widget) { _mouseFocus = widget; } void Window::needsRedraw() { needs_redraw = true; } void* Window::getNativeWindowHandle() const { return native->getNativeWindowHandle(); } std::size_t Window::translateToWindowX() { return 0; } std::size_t Window::translateToWindowY() { return 0; } //! Called by event handler when an windowmanager/OS window resize event has //! been received. Do not call this directly. void Window::resized(std::size_t width, std::size_t height) { auto size = native->getSize(); if((wpixbuf.width != size.first) || (wpixbuf.height != size.second)) { wpixbuf.realloc(size.first, size.second); Widget::resize(size.first, size.second); } updateBuffer(); } //! Called by event handler when an windowmanager/OS window move event has //! been received. Do not call this directly. void Window::moved(int x, int y) { // Make sure widget coordinates are updated. Widget::move(x, y); } bool Window::updateBuffer() { if(!native) { return false; } if(!needs_redraw) { // Nothing changed, don't update anything. return false; } bool has_dirty_rect{false}; Rect dirty_rect; auto pixel_buffers = getPixelBuffers(); for(auto& pixel_buffer : pixel_buffers) { if(pixel_buffer->dirty) { auto x1 = (std::size_t)pixel_buffer->x; auto x2 = (std::size_t)(pixel_buffer->x + pixel_buffer->width); auto y1 = (std::size_t)pixel_buffer->y; auto y2 = (std::size_t)(pixel_buffer->y + pixel_buffer->height); pixel_buffer->dirty = false; if(!has_dirty_rect) { // Insert this area: dirty_rect = {x1, y1, x2, y2}; has_dirty_rect = true; } else { // Expand existing area: auto x1_0 = dirty_rect.x1; auto y1_0 = dirty_rect.y1; auto x2_0 = dirty_rect.x2; auto y2_0 = dirty_rect.y2; dirty_rect = { (x1_0 < x1) ? x1_0 : x1, (y1_0 < y1) ? y1_0 : y1, (x2_0 > x2) ? x2_0 : x2, (y2_0 > y2) ? y2_0 : y2 }; } } if(pixel_buffer->has_last) { auto x1 = (std::size_t)pixel_buffer->last_x; auto x2 = (std::size_t)(pixel_buffer->last_x + pixel_buffer->last_width); auto y1 = (std::size_t)pixel_buffer->last_y; auto y2 = (std::size_t)(pixel_buffer->last_y + pixel_buffer->last_height); pixel_buffer->has_last = false; if(!has_dirty_rect) { // Insert this area: dirty_rect = {x1, y1, x2, y2}; has_dirty_rect = true; } else { // Expand existing area: auto x1_0 = dirty_rect.x1; auto y1_0 = dirty_rect.y1; auto x2_0 = dirty_rect.x2; auto y2_0 = dirty_rect.y2; dirty_rect = { (x1_0 < x1) ? x1_0 : x1, (y1_0 < y1) ? y1_0 : y1, (x2_0 > x2) ? x2_0 : x2, (y2_0 > y2) ? y2_0 : y2 }; } } } if(!has_dirty_rect) { return false; } for(auto& pixel_buffer : pixel_buffers) { if(!pixel_buffer->visible) { continue; } int update_width = pixel_buffer->width; int update_height = pixel_buffer->height; // Skip buffer if not inside window. if(((int)wpixbuf.width < pixel_buffer->x) || ((int)wpixbuf.height < pixel_buffer->y)) { continue; } if(update_width > ((int)wpixbuf.width - pixel_buffer->x)) { update_width = ((int)wpixbuf.width - pixel_buffer->x); } if(update_height > ((int)wpixbuf.height - pixel_buffer->y)) { update_height = ((int)wpixbuf.height - pixel_buffer->y); } std::uint8_t r, g, b, a; auto from_x = (int)dirty_rect.x1 - pixel_buffer->x; from_x = std::max(0, from_x); auto from_y = (int)dirty_rect.y1 - pixel_buffer->y; from_y = std::max(0, from_y); auto to_x = (int)dirty_rect.x2 - pixel_buffer->x; to_x = std::min(to_x, (int)update_width); auto to_y = (int)dirty_rect.y2 - pixel_buffer->y; to_y = std::min(to_y, (int)update_height); for(int y = from_y; y < to_y; y++) { for(int x = from_x; x < to_x; x++) { pixel_buffer->pixel(x, y, &r, &g, &b, &a); wpixbuf.setPixel(x + pixel_buffer->x, y + pixel_buffer->y, r, g, b, a); } } } dirty_rect.x2 = std::min(wpixbuf.width, dirty_rect.x2); dirty_rect.y2 = std::min(wpixbuf.height, dirty_rect.y2); native->redraw(dirty_rect); needs_redraw = false; return true; } } // GUI:: drumgizmo-0.9.14/plugingui/label.h0000644000076400017500000000347313077120602014007 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * label.h * * Sun Oct 9 13:02:17 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "font.h" #include #include namespace GUI { enum class TextAlignment { left, center, right, }; class Label : public Widget { public: Label(Widget *parent); virtual ~Label() = default; void setText(const std::string& text); void setAlignment(TextAlignment alignment); void setColour(Colour colour); void resetColour(); void resizeToText(); protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: std::string _text; Font font{":resources/fontemboss.png"}; TextAlignment alignment{TextAlignment::left}; int border{0}; // optional colour std::unique_ptr colour; }; } // GUI:: drumgizmo-0.9.14/plugingui/texture.h0000644000076400017500000000347313077120603014431 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * texture.h * * Sat Jun 4 21:18:11 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "imagecache.h" #include "image.h" namespace GUI { class Texture : public ScopedImageBorrower , public Drawable { public: Texture(ImageCache& image_cache, const std::string& filename, std::size_t x = 0, std::size_t y = 0, std::size_t width = std::numeric_limits::max(), std::size_t height = std::numeric_limits::max()); size_t width() const override; size_t height() const override; const Colour& getPixel(size_t x, size_t y) const override; private: std::size_t _x; std::size_t _y; std::size_t _width; std::size_t _height; Colour outOfRange{0.0f, 0.0f, 0.0f, 0.0f}; }; } // GUI:: drumgizmo-0.9.14/plugingui/rcgen.cc0000644000076400017500000000402713077120603014161 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * rcgen.cc * * Sun Mar 17 20:27:17 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include int main(int argc, char *argv[]) { printf("/* This file is autogenerated by rcgen. Do not modify! */\n"); printf("#include \"resource_data.h\"\n"); printf("\n"); printf("const rc_data_t rc_data[] =\n"); printf("{\n"); int i = 1; while(i < argc) { printf(" {\n \":%s\", ", argv[i]); std::string data; FILE *fp = fopen(argv[i], "rb"); if(!fp) { fprintf(stderr, "Could not read file '%s' - quitting\n", argv[i]); return 1; } char buf[32]; while(!feof(fp)) { std::size_t sz = fread(buf, 1, sizeof(buf), fp); data.append(buf, sz); } fclose(fp); printf("%d,\n \"", (int)data.length()); for(std::size_t j = 0; j < data.length(); ++j) { if((j != 0) && (j % 16) == 0) { printf("\"\n \""); } printf("\\%o", (unsigned char)data[j]); } printf("\"\n },\n"); ++i; } printf(" { \"\", 0, 0 }\n"); printf("};\n"); return 0; } drumgizmo-0.9.14/plugingui/widget.cc0000644000076400017500000001203013077713327014352 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * widget.cc * * Sun Oct 9 13:01:44 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "widget.h" #include #include "painter.h" #include "window.h" namespace GUI { Widget::Widget(Widget* parent) : parent(parent) { if(parent) { parent->addChild(this); _window = parent->window(); } pixbuf.x = translateToWindowX(); pixbuf.y = translateToWindowY(); } Widget::~Widget() { if(parent) { parent->removeChild(this); } } void Widget::show() { setVisible(true); } void Widget::hide() { setVisible(false); } void Widget::setVisible(bool visible) { _visible = visible; pixbuf.visible = visible; redraw(); } bool Widget::visible() const { return _visible; } void Widget::redraw() { dirty = true; window()->needsRedraw(); } void Widget::addChild(Widget* widget) { children.push_back(widget); } void Widget::removeChild(Widget* widget) { for(auto i = children.begin(); i != children.end(); ++i) { if(*i == widget) { children.erase(i); return; } } } void Widget::reparent(Widget* parent) { if(parent == this->parent) { return; // Already at the right parent. } if(this->parent) { this->parent->removeChild(this); } if(parent) { parent->addChild(this); } this->parent = parent; } void Widget::resize(std::size_t width, std::size_t height) { if((width < 1) || (height < 1) || ((width == _width) && (height == _height))) { return; } _width = width; _height = height; // Store old size/position in pixelbuffer for rendering invalidation. if(!pixbuf.has_last) { pixbuf.last_width = pixbuf.width; pixbuf.last_height = pixbuf.height; pixbuf.last_x = pixbuf.x; pixbuf.last_y = pixbuf.y; pixbuf.has_last = true; } pixbuf.realloc(width, height); pixbuf.x = translateToWindowX(); pixbuf.y = translateToWindowY(); redraw(); sizeChangeNotifier(width, height); } void Widget::move(int x, int y) { if((_x == x) && (_y == y)) { return; } _x = x; _y = y; // Store old size/position in pixelbuffer for rendering invalidation. if(!pixbuf.has_last) { pixbuf.last_width = pixbuf.width; pixbuf.last_height = pixbuf.height; pixbuf.last_x = pixbuf.x; pixbuf.last_y = pixbuf.y; pixbuf.has_last = true; } //pixbuf.x = translateToWindowX(); //pixbuf.y = translateToWindowY(); positionChangeNotifier(x, y); } int Widget::x() const { return _x; } int Widget::y() const { return _y; } std::size_t Widget::width() const { return _width; } std::size_t Widget::height() const { return _height; } PixelBufferAlpha& Widget::GetPixelBuffer() { return pixbuf; } ImageCache& Widget::getImageCache() { assert(parent); return parent->getImageCache(); } Widget* Widget::find(int x, int y) { for(auto i = children.rbegin(); i != children.rend(); ++i) { Widget* widget = *i; if(widget->visible()) { if((x >= widget->x()) && (x < (widget->x() + (int)widget->width())) && (y >= widget->y()) && (y < (widget->y() + (int)widget->height()))) { return widget->find(x - widget->x(), y - widget->y()); } } } return this; } Window* Widget::window() { return _window; } std::vector Widget::getPixelBuffers() { std::vector pixelBuffers; pixbuf.x = translateToWindowX(); pixbuf.y = translateToWindowY(); if(dirty) { repaintEvent(nullptr); pixbuf.dirty = true; dirty = false; } if(pixbuf.dirty || visible()) { pixelBuffers.push_back(&pixbuf); } if(visible()) { for(auto child : children) { auto childPixelBuffers = child->getPixelBuffers(); pixelBuffers.insert(pixelBuffers.end(), childPixelBuffers.begin(), childPixelBuffers.end()); } } return pixelBuffers; } bool Widget::hasKeyboardFocus() { return window()->keyboardFocus() == this; } std::size_t Widget::translateToWindowX() { size_t window_x = x(); if(parent) { window_x += parent->translateToWindowX(); } return window_x; } std::size_t Widget::translateToWindowY() { size_t window_y = y(); if(parent) { window_y += parent->translateToWindowY(); } return window_y; } } // GUI:: drumgizmo-0.9.14/plugingui/stackedwidget.cc0000644000076400017500000000561413101317214015702 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * stackedwidget.cc * * Mon Nov 21 19:36:49 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "stackedwidget.h" namespace GUI { StackedWidget::StackedWidget(Widget *parent) : Widget(parent) { CONNECT(this, sizeChangeNotifier, this, &StackedWidget::sizeChanged); } StackedWidget::~StackedWidget() { } void StackedWidget::addWidget(Widget *widget) { widgets.push_back(widget); widget->reparent(this); if(currentWidget == nullptr) { setCurrentWidget(widget); } else { widget->setVisible(false); } } void StackedWidget::removeWidget(Widget *widget) { if(widget == currentWidget) { setCurrentWidget(nullptr); } widgets.remove(widget); } Widget *StackedWidget::getCurrentWidget() const { return currentWidget; } void StackedWidget::setCurrentWidget(Widget *widget) { if(widget == currentWidget) { return; } if(currentWidget) { currentWidget->setVisible(false); } currentWidget = widget; if(currentWidget) { currentWidget->move(0, 0); currentWidget->resize(width(), height()); currentWidget->setVisible(true); } currentChanged(currentWidget); } Widget* StackedWidget::getWidgetAfter(Widget* widget) { bool found_it{false}; for(auto w : widgets) { if(found_it) { return w; } if(w == widget) { found_it = true; } } if(found_it) { // widget was the last in the list. return nullptr; } // The Widget pointed to by 'widget' was not in the list... return nullptr; } Widget* StackedWidget::getWidgetBefore(Widget* widget) { Widget* last{nullptr}; for(auto w : widgets) { if(w == widget) { return last; } last = w; } // The Widget pointed to by 'widget' was not in the list... return nullptr; } void StackedWidget::sizeChanged(int width, int height) { // Propagate size change to child: if(currentWidget) { currentWidget->move(0, 0); currentWidget->resize(width, height); } } } // GUI:: drumgizmo-0.9.14/plugingui/pixelbuffer.cc0000644000076400017500000001134013077713327015405 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pixelbuffer.cc * * Thu Nov 10 09:00:38 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "pixelbuffer.h" #include #include namespace GUI { PixelBuffer::PixelBuffer(std::size_t width, std::size_t height) : buf(nullptr) { realloc(width, height); } PixelBuffer::~PixelBuffer() { free(buf); } void PixelBuffer::realloc(std::size_t width, std::size_t height) { free(buf); buf = (unsigned char *)calloc(width * height, 3); this->width = width; this->height = height; } #define PX(k) ((x + y * width) * 3 + k) void PixelBuffer::setPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) { assert(x < width); assert(y < height); if(alpha == 0) { return; } if(alpha < 255) { unsigned int a = alpha; unsigned int b = 255 - alpha; buf[PX(0)] = (unsigned char)(((int)red * a + (int)buf[PX(0)] * b) / 255); buf[PX(1)] = (unsigned char)(((int)green * a + (int)buf[PX(1)] * b) / 255); buf[PX(2)] = (unsigned char)(((int)blue * a + (int)buf[PX(2)] * b) / 255); } else { buf[PX(0)] = red; buf[PX(1)] = green; buf[PX(2)] = blue; } } PixelBufferAlpha::PixelBufferAlpha(std::size_t width, std::size_t height) : managed(true) , buf(nullptr) , x(0) , y(0) { realloc(width, height); } PixelBufferAlpha::~PixelBufferAlpha() { if(managed) { free(buf); } } void PixelBufferAlpha::realloc(std::size_t width, std::size_t height) { free(buf); buf = (unsigned char *)calloc(width * height, 4); this->width = width; this->height = height; } #undef PX #define PX(k) ((x + y * width) * 4 + k) void PixelBufferAlpha::setPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) { assert(x < width); assert(y < height); buf[PX(0)] = red; buf[PX(1)] = green; buf[PX(2)] = blue; buf[PX(3)] = alpha; } // http://en.wikipedia.org/wiki/Alpha_compositing static inline void getAlpha(unsigned char _a, unsigned char _b, float &a, float &b) { a = _a / 255.0; b = _b / 255.0; b *= (1 - a); } void PixelBufferAlpha::addPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) { assert(x < width); assert(y < height); if(alpha == 0) { return; } if(alpha < 255) { float a, b; getAlpha(alpha, buf[PX(3)], a, b); buf[PX(0)] = (unsigned char)((float)red * a + (float)buf[PX(0)] * b); buf[PX(0)] /= (a + b); buf[PX(1)] = (unsigned char)((float)green * a + (float)buf[PX(1)] * b); buf[PX(1)] /= (a + b); buf[PX(2)] = (unsigned char)((float)blue * a + (float)buf[PX(2)] * b); buf[PX(2)] /= (a + b); buf[PX(3)] = (a + b) * 255; } else { buf[PX(0)] = red; buf[PX(1)] = green; buf[PX(2)] = blue; buf[PX(3)] = alpha; } } void PixelBufferAlpha::addPixel(std::size_t x, std::size_t y, const Colour& c) { addPixel(x, y, c.red() * 255, c.green() * 255, c.blue() * 255, c.alpha() * 255); } void PixelBufferAlpha::pixel(std::size_t x, std::size_t y, unsigned char* red, unsigned char* green, unsigned char* blue, unsigned char* alpha) const { assert(x < width); assert(y < height); *red = buf[PX(0)]; *green = buf[PX(1)]; *blue = buf[PX(2)]; *alpha = buf[PX(3)]; } } // GUI:: drumgizmo-0.9.14/plugingui/nativewindow_x11.h0000644000076400017500000000535513077120602016140 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_x11.h * * Fri Dec 28 18:45:56 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "nativewindow.h" namespace GUI { class Window; class NativeWindowX11 : public NativeWindow { public: NativeWindowX11(void* native_window, Window& window); ~NativeWindowX11(); // From NativeWindow: void setFixedSize(std::size_t width, std::size_t height) override; void resize(std::size_t width, std::size_t height) override; std::pair getSize() override; void move(int x, int y) override; std::pair getPosition() override; void show() override; void hide() override; bool visible() const override; void setCaption(const std::string &caption) override; void redraw(const Rect& dirty_rect) override; void grabMouse(bool grab) override; EventQueue getEvents() override; void* getNativeWindowHandle() const override; private: void translateXMessage(XEvent& xevent); //! Allocate new shared memory buffer for the pixel buffer. //! Frees the existing buffer if there is one. void allocateShmImage(std::size_t width, std::size_t height); //! Deallocate image and shm resources. void deallocateShmImage(); //! Copy data from the pixel buffer into the shared memory void updateImageFromBuffer(std::size_t x1, std::size_t y1, std::size_t x2, std::size_t y2); XShmSegmentInfo shm_info; XImage* image{nullptr}; ::Window xwindow{0}; GC gc{0}; Window& window; Time last_click{0}; Display* display{nullptr}; int screen{0}; int depth{0}; Visual* visual{nullptr}; Atom wmDeleteMessage{0}; ::Window parent_window; EventQueue event_queue; }; } // GUI:: drumgizmo-0.9.14/plugingui/eventhandler.cc0000644000076400017500000001373313106045606015550 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * eventhandler.cc * * Sun Oct 9 18:58:29 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "eventhandler.h" #include "window.h" #include "painter.h" #include "dialog.h" namespace GUI { EventHandler::EventHandler(NativeWindow& nativeWindow, Window& window) : window(window) , nativeWindow(nativeWindow) , lastWasDoubleClick(false) {} bool EventHandler::hasEvent() { return !events.empty(); } bool EventHandler::queryNextEventType(EventType type) { return !events.empty() && (events.front()->type() == type); } std::shared_ptr EventHandler::getNextEvent() { if(events.empty()) { return nullptr; } auto event = events.front(); events.pop_front(); return event; } void EventHandler::processEvents() { bool block_interaction{false}; for(auto dialog : dialogs) { // Check if the dialog nativewindow (not the contained widget) is visible if(dialog->native->visible()) { block_interaction |= dialog->isModal(); dialog->eventHandler()->processEvents(); } } events = nativeWindow.getEvents(); while(hasEvent()) { auto event = getNextEvent(); if(event == nullptr) { continue; } switch(event->type()) { case EventType::repaint: break; case EventType::move: { auto moveEvent = static_cast(event.get()); window.moved(moveEvent->x, moveEvent->y); } break; case EventType::resize: { auto resizeEvent = static_cast(event.get()); if((resizeEvent->width != window.width()) || (resizeEvent->height != window.height())) { window.resized(resizeEvent->width, resizeEvent->height); } } break; case EventType::mouseMove: { // Skip all consecutive mouse move events and handle only the last one. while(queryNextEventType(EventType::mouseMove)) { event = getNextEvent(); } auto moveEvent = static_cast(event.get()); auto widget = window.find(moveEvent->x, moveEvent->y); auto oldwidget = window.mouseFocus(); if(widget != oldwidget) { // Send focus leave to oldwidget if(oldwidget) { oldwidget->mouseLeaveEvent(); } // Send focus enter to widget if(widget) { widget->mouseEnterEvent(); } window.setMouseFocus(widget); } if(window.buttonDownFocus()) { auto widget = window.buttonDownFocus(); moveEvent->x -= widget->translateToWindowX(); moveEvent->y -= widget->translateToWindowY(); window.buttonDownFocus()->mouseMoveEvent(moveEvent); break; } if(widget) { moveEvent->x -= widget->translateToWindowX(); moveEvent->y -= widget->translateToWindowY(); widget->mouseMoveEvent(moveEvent); } } break; case EventType::button: { if(block_interaction) { continue; } auto buttonEvent = static_cast(event.get()); if(lastWasDoubleClick && (buttonEvent->direction == Direction::down)) { lastWasDoubleClick = false; continue; } lastWasDoubleClick = buttonEvent->doubleClick; auto widget = window.find(buttonEvent->x, buttonEvent->y); if(window.buttonDownFocus()) { if(buttonEvent->direction == Direction::up) { auto widget = window.buttonDownFocus(); buttonEvent->x -= widget->translateToWindowX(); buttonEvent->y -= widget->translateToWindowY(); widget->buttonEvent(buttonEvent); window.setButtonDownFocus(nullptr); break; } } if(widget) { buttonEvent->x -= widget->translateToWindowX(); buttonEvent->y -= widget->translateToWindowY(); widget->buttonEvent(buttonEvent); if((buttonEvent->direction == Direction::down) && widget->catchMouse()) { window.setButtonDownFocus(widget); } if(widget->isFocusable()) { window.setKeyboardFocus(widget); } } } break; case EventType::scroll: { if(block_interaction) { continue; } auto scrollEvent = static_cast(event.get()); auto widget = window.find(scrollEvent->x, scrollEvent->y); if(widget) { scrollEvent->x -= widget->translateToWindowX(); scrollEvent->y -= widget->translateToWindowY(); widget->scrollEvent(scrollEvent); } } break; case EventType::key: { if(block_interaction) { continue; } // TODO: Filter out multiple arrow events. auto keyEvent = static_cast(event.get()); if(window.keyboardFocus()) { window.keyboardFocus()->keyEvent(keyEvent); } } break; case EventType::close: if(block_interaction) { continue; } closeNotifier(); break; } } // Probe window and children to readrw as needed. // NOTE: This method will invoke native->redraw() if a redraw is needed. window.updateBuffer(); } void EventHandler::registerDialog(Dialog* dialog) { dialogs.push_back(dialog); } void EventHandler::unregisterDialog(Dialog* dialog) { dialogs.remove(dialog); } } // GUI:: drumgizmo-0.9.14/plugingui/listboxthin.cc0000644000076400017500000000445213077120602015433 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listboxthin.cc * * Sun Apr 7 19:39:36 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "listboxthin.h" #include "painter.h" #include "font.h" namespace GUI { ListBoxThin::ListBoxThin(Widget *parent) : Widget(parent) , selectionNotifier(basic.selectionNotifier) , clickNotifier(basic.clickNotifier) , valueChangedNotifier(basic.valueChangedNotifier) , basic(this) { basic.move(1, 1); } ListBoxThin::~ListBoxThin() { } void ListBoxThin::addItem(std::string name, std::string value) { basic.addItem(name, value); } void ListBoxThin::addItems(std::vector &items) { basic.addItems(items); } void ListBoxThin::clear() { basic.clear(); } bool ListBoxThin::selectItem(int index) { return basic.selectItem(index); } std::string ListBoxThin::selectedName() { return basic.selectedName(); } std::string ListBoxThin::selectedValue() { return basic.selectedValue(); } void ListBoxThin::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); int w = width(); int h = height(); if(w == 0 || h == 0) { return; } box.setSize(w,h); p.drawImage(0, 0, box); } void ListBoxThin::resize(std::size_t height, std::size_t width) { Widget::resize(width, height); basic.resize(width - (1 + 1), height - (1 + 1)); } } // GUI:: drumgizmo-0.9.14/plugingui/imagecache.h0000644000076400017500000000364513077120602014777 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * imagecache.h * * Thu Jun 2 17:12:05 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include namespace GUI { class Image; class ImageCache; class ScopedImageBorrower { public: ScopedImageBorrower(ImageCache& imageCache, const std::string& filename); ScopedImageBorrower(ScopedImageBorrower&& other); virtual ~ScopedImageBorrower(); ScopedImageBorrower& operator=(ScopedImageBorrower&& other); Image& operator*(); Image& operator()(); protected: ImageCache& imageCache; std::string filename; Image& image; }; class ImageCache { public: ScopedImageBorrower getImage(const std::string& filename); private: friend class ScopedImageBorrower; Image& borrow(const std::string& filename); void giveBack(const std::string& filename); protected: std::map> imageCache; }; } // GUI:: drumgizmo-0.9.14/plugingui/filebrowser.h0000644000076400017500000000470413077120602015251 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * filebrowser.h * * Mon Feb 25 21:09:43 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "dialog.h" #include "button.h" #include "listbox.h" #include "lineedit.h" #include "label.h" #include "image.h" #include "directory.h" namespace GUI { class FileBrowser : public Dialog { public: FileBrowser(Widget* parent); void setPath(const std::string& path); Notifier fileSelectNotifier; // (const std::string& path) Notifier<> fileSelectCancelNotifier; // From Widget: bool isFocusable() override { return true; } virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void resize(std::size_t width, std::size_t height) override; //! Return the filename selected in the browser. std::string getFilename() const; //! Returns true if the filebrowser has a selection, false if the window was //! closed or the cancel button was clicked. bool hasFilename() const; private: void listSelectionChanged(); void selectButtonClicked(); void cancelButtonClicked(); void handleKeyEvent(); Directory dir; #if DG_PLATFORM == DG_PLATFORM_WINDOWS bool above_root; bool in_root; #endif void cancel(); void select(const std::string& file); void changeDir(); Label lbl_path; LineEdit lineedit; ListBox listbox; Button btn_sel; Button btn_esc; Image back; bool has_filename{false}; std::string filename; }; } // GUI:: drumgizmo-0.9.14/plugingui/scrollbar.h0000644000076400017500000000404713077120603014712 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * scrollbar.h * * Sun Apr 14 12:54:58 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "widget.h" #include "texture.h" #include "notifier.h" namespace GUI { class ScrollBar : public Widget { friend class ListBoxBasic; public: ScrollBar(Widget *parent); void setRange(int range); int range(); void setMaximum(int max); int maximum(); void addValue(int delta); void setValue(int value); int value(); Notifier valueChangeNotifier; // (int value) protected: // From Widget: bool catchMouse() override { return true; } void scrollEvent(ScrollEvent* scrollEvent) override; void repaintEvent(RepaintEvent* repaintEvent) override; void buttonEvent(ButtonEvent* buttonEvent) override; void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) override; private: int maxValue{100}; int currentValue{0}; int rangeValue{10}; int yOffset{0}; int valueOffset{0}; bool dragging{false}; Texture bg_img{getImageCache(), ":resources/widget.png", 7, 7, 1, 63}; }; } // GUI:: drumgizmo-0.9.14/plugingui/statusframecontent.cc0000644000076400017500000001037213103427335017016 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * statusframecontent.cc * * Fri Mar 24 21:49:50 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "statusframecontent.h" namespace GUI { StatusframeContent::StatusframeContent( Widget* parent, SettingsNotifier& settings_notifier) : Widget(parent), settings_notifier(settings_notifier) { CONNECT(this, settings_notifier.drumkit_load_status, this, &StatusframeContent::updateDrumkitLoadStatus); CONNECT(this, settings_notifier.drumkit_name, this, &StatusframeContent::updateDrumkitName); CONNECT(this, settings_notifier.drumkit_description, this, &StatusframeContent::updateDrumkitDescription); CONNECT(this, settings_notifier.drumkit_version, this, &StatusframeContent::updateDrumkitVersion); CONNECT(this, settings_notifier.midimap_load_status, this, &StatusframeContent::updateMidimapLoadStatus); CONNECT(this, settings_notifier.buffer_size, this, &StatusframeContent::updateBufferSize); CONNECT(this, settings_notifier.number_of_underruns, this, &StatusframeContent::updateNumberOfUnderruns); text_field.move(0, 0); text_field.setReadOnly(true); updateContent(); text_field.show(); } void StatusframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); text_field.resize(width, height); } void StatusframeContent::updateContent() { text_field.setText( "Drumkit status: " + drumkit_load_status + "\n" // "Midimap status: " + midimap_load_status + "\n" "Drumkit name: " + drumkit_name + "\n" "Drumkit description: " + drumkit_description + "\n" // "Drumkit version: " + drumkit_version + "\n" "Session buffer size: " + buffer_size + "\n" "Number of underruns: " + number_of_underruns + "\n" ); } void StatusframeContent::updateDrumkitLoadStatus(LoadStatus load_status) { switch(load_status) { case LoadStatus::Idle: drumkit_load_status = "No Kit Loaded"; break; case LoadStatus::Loading: drumkit_load_status = "Loading..."; break; case LoadStatus::Done: drumkit_load_status = "Ready"; break; case LoadStatus::Error: drumkit_load_status = "Error"; break; } updateContent(); } void StatusframeContent::updateDrumkitName(std::string const& drumkit_name) { this->drumkit_name = drumkit_name; updateContent(); } void StatusframeContent::updateDrumkitDescription(std::string const& drumkit_description) { this->drumkit_description = drumkit_description; updateContent(); } void StatusframeContent::updateDrumkitVersion(std::string const& drumkit_version) { this->drumkit_version = drumkit_version; updateContent(); } void StatusframeContent::updateMidimapLoadStatus(LoadStatus load_status) { switch(load_status) { case LoadStatus::Idle: midimap_load_status = "No Midimap Loaded"; break; case LoadStatus::Loading: midimap_load_status = "Loading..."; break; case LoadStatus::Done: midimap_load_status = "Ready"; break; case LoadStatus::Error: midimap_load_status = "Error"; break; } updateContent(); } void StatusframeContent::updateBufferSize(std::size_t buffer_size) { this->buffer_size = std::to_string(buffer_size); updateContent(); } void StatusframeContent::updateNumberOfUnderruns(std::size_t number_of_underruns) { this->number_of_underruns = std::to_string(number_of_underruns); updateContent(); } } // GUI:: drumgizmo-0.9.14/plugingui/lineedit.h0000644000076400017500000000420113103211624014506 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * lineedit.h * * Sun Oct 9 13:01:52 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "widget.h" #include "font.h" #include "painter.h" #include "texturedbox.h" namespace GUI { class LineEdit : public Widget { public: LineEdit(Widget *parent); virtual ~LineEdit(); bool isFocusable() override { return true; } std::string getText(); void setText(const std::string& text); void setReadOnly(bool readonly); bool readOnly(); Notifier<> enterPressedNotifier; //protected: virtual void keyEvent(KeyEvent *keyEvent) override; virtual void repaintEvent(RepaintEvent *repaintEvent) override; virtual void buttonEvent(ButtonEvent *buttonEvent) override; protected: virtual void textChanged() {} private: TexturedBox box{getImageCache(), ":resources/widget.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 Font font; std::string _text; size_t pos{0}; std::string visibleText; size_t offsetPos{0}; enum state_t { Noop, WalkLeft, WalkRight, }; state_t walkstate{Noop}; bool readonly; }; } // GUI:: drumgizmo-0.9.14/plugingui/Makefile.am0000644000076400017500000000730713106052022014604 00000000000000noinst_PROGRAMS = plugingui rcgen noinst_LTLIBRARIES = libdggui.la # If you add a file here, remember to add it to plugin/Makefile.mingw32.in RES = \ resources/bg.png \ resources/bypass_button.png \ resources/font.png \ resources/fontemboss.png \ resources/knob.png \ resources/logo.png \ resources/png_error \ resources/progress.png \ resources/pushbutton.png \ resources/sidebar.png \ resources/slider.png \ resources/switch_back_off.png \ resources/switch_back_on.png \ resources/switch_front.png \ resources/tab.png \ resources/thinlistbox.png \ resources/topbar.png \ resources/toplogo.png \ resources/vertline.png \ resources/widget.png \ ../ABOUT \ ../AUTHORS \ ../COPYING resource_data.cc : rcgen $(RES) ./rcgen $(RES) > resource_data.cc libdggui_la_CPPFLAGS = \ $(GUI_CPPFLAGS) \ -I$(top_srcdir)/hugin \ -I$(top_srcdir)/src \ -I$(top_srcdir)/include \ -DWITH_HUG_MUTEX $(PTHREAD_CFLAGS) \ -DLODEPNG_NO_COMPILE_ENCODER \ -DLODEPNG_NO_COMPILE_DISK \ -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS \ -DLODEPNG_NO_COMPILE_ERROR_TEXT \ -DLODEPNG_NO_COMPILE_CPP libdggui_la_LIBADD = \ $(GUI_LIBS) $(PTHREAD_LIBS) # If you add a file here, remember to add it to plugin/Makefile.mingw32.in nodist_libdggui_la_SOURCES = \ abouttab.cc \ button.cc \ button_base.cc \ checkbox.cc \ colour.cc \ combobox.cc \ dialog.cc \ directory.cc \ diskstreamingframecontent.cc \ drumkitframecontent.cc \ eventhandler.cc \ filebrowser.cc \ font.cc \ frame.cc \ humanizerframecontent.cc \ image.cc \ imagecache.cc \ knob.cc \ label.cc \ layout.cc \ led.cc \ lineedit.cc \ listbox.cc \ listboxbasic.cc \ listboxthin.cc \ maintab.cc \ mainwindow.cc \ painter.cc \ pixelbuffer.cc \ pluginconfig.cc \ powerbutton.cc \ progressbar.cc \ resamplingframecontent.cc \ resource.cc \ resource_data.cc \ scrollbar.cc \ slider.cc \ stackedwidget.cc \ statusframecontent.cc \ tabbutton.cc \ tabwidget.cc \ textedit.cc \ texture.cc \ texturedbox.cc \ toggle.cc \ utf8.cc \ verticalline.cc \ widget.cc \ window.cc \ lodepng/lodepng.cpp if ENABLE_X11 nodist_libdggui_la_SOURCES += \ nativewindow_x11.cc endif if ENABLE_WIN32 nodist_libdggui_la_SOURCES += \ nativewindow_win32.cc endif if ENABLE_PUGL nodist_libdggui_la_SOURCES += \ nativewindow_pugl.cc \ $(top_srcdir)/pugl/pugl/pugl_x11.c endif #if ENABLE_COCOA #nodist_libdggui_la_SOURCES += \ # nativewindow_cocoa.m \ # nativewindow_cocoa.cc #endif plugingui_LDADD = libdggui.la $(top_srcdir)/src/libdg.la plugingui_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) \ -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/hugin plugingui_CFLAGS = $(plugingui_CXXFLAGS) plugingui_SOURCES = \ testmain.cc \ $(top_srcdir)/hugin/hugin.c rcgen_SOURCES = rcgen.cc EXTRA_DIST = \ $(nodist_libdggui_la_SOURCES) \ $(RES) \ abouttab.h \ button.h \ button_base.h \ canvas.h \ checkbox.h \ colour.h \ combobox.h \ dialog.h \ directory.h \ diskstreamingframecontent.h \ drawable.h \ drumkitframecontent.h \ eventhandler.h \ filebrowser.h \ font.h \ frame.h \ guievent.h \ humanizerframecontent.h \ image.h \ imagecache.h \ knob.h \ label.h \ layout.h \ led.h \ lineedit.h \ listbox.h \ listboxbasic.h \ listboxthin.h \ maintab.h \ mainwindow.h \ nativewindow.h \ nativewindow_cocoa.h \ nativewindow_pugl.h \ nativewindow_win32.h \ nativewindow_x11.h \ painter.h \ pixelbuffer.h \ pluginconfig.h \ powerbutton.h \ progressbar.h \ resamplingframecontent.h \ resource.h \ resource_data.h \ scrollbar.h \ slider.h \ stackedwidget.h \ statusframecontent.h \ tabbutton.h \ tabwidget.h \ textedit.h \ texture.h \ texturedbox.h \ toggle.h \ utf8.h \ verticalline.h \ widget.h \ window.h \ lodepng/lodepng.h drumgizmo-0.9.14/plugingui/tabwidget.h0000644000076400017500000000425213101320154014666 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * tabwidget.h * * Thu Nov 24 17:46:22 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "tabbutton.h" #include "stackedwidget.h" #include "texture.h" namespace GUI { class TabWidget : public Widget { public: TabWidget(Widget *parent); //! Add new tab to the tab widget. //! \param title The title to display on the tab button. //! \param widget The widget to show in the tab. void addTab(const std::string& title, Widget* widget); std::size_t getBarHeight() const; private: //! Callback for Widget::sizeChangeNotifier void sizeChanged(int width, int height); private: //! Switch to the next tab if delta is > 0 or previous tab if delta is <= 0. void rotateTab(float delta); void switchTab(Widget* tabWidget); void setActiveButtons(Widget* current_widget); std::list buttons; StackedWidget stack; TexturedBox topbar{getImageCache(), ":resources/topbar.png", 0, 0, // atlas offset (x, y) 1, 1, 1, // dx1, dx2, dx3 17, 1, 1}; // dy1, dy2, dy3 Texture toplogo{getImageCache(), ":resources/toplogo.png", 0, 0, // atlas offset (x, y) 95, 17}; // width, height }; } // GUI:: drumgizmo-0.9.14/plugingui/layout.h0000644000076400017500000001027613077120602014244 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * layout.h * * Sat Mar 21 15:12:36 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include namespace GUI { class Layout; class LayoutItem { public: LayoutItem(); virtual ~LayoutItem(); void setLayoutParent(Layout* parent); virtual void resize(std::size_t width, std::size_t height) = 0; virtual void move(int x, int y) = 0; virtual int x() const = 0; virtual int y() const = 0; virtual std::size_t width() const = 0; virtual std::size_t height() const = 0; private: Layout* parent; }; //! \brief Abtract Layout class. class Layout : public Listener { public: Layout(LayoutItem* parent); virtual ~Layout() { } virtual void addItem(LayoutItem* item); virtual void removeItem(LayoutItem* item); //! \brief Reimplement this method to create a new Layout rule. virtual void layout() = 0; protected: void sizeChanged(int width, int height); LayoutItem* parent; typedef std::list LayoutItemList; LayoutItemList items; }; //! \brief Abstract box layout class BoxLayout : public Layout { public: BoxLayout(LayoutItem* parent); //! \brief Set to false to only move the items, not scale them. void setResizeChildren(bool resize_children); void setSpacing(size_t spacing); // From Layout: virtual void layout() override = 0; protected: bool resizeChildren{false}; size_t spacing{0}; }; enum class HAlignment { left, center, right, }; //! \brief A Layout that lays out its elements vertically. class VBoxLayout : public BoxLayout { public: VBoxLayout(LayoutItem* parent); void setHAlignment(HAlignment alignment); // From BoxLayout: virtual void layout() override; protected: HAlignment align; }; enum class VAlignment { top, center, bottom, }; //! \brief A Layout that lays out its elements vertically. class HBoxLayout : public BoxLayout { public: HBoxLayout(LayoutItem* parent); void setVAlignment(VAlignment alignment); // From BoxLayout: virtual void layout() override; protected: VAlignment align; }; //! \brief A Layout class which places the items in a regular grid. An item can //! span multiple rows/columns. class GridLayout : public BoxLayout { public: // The range is open, i.e. end is one past the last one. struct GridRange { int column_begin; int column_end; int row_begin; int row_end; }; GridLayout(LayoutItem* parent, std::size_t number_of_columns, std::size_t number_of_rows); virtual ~GridLayout() { } // From Layout: virtual void removeItem(LayoutItem* item); virtual void layout(); void setPosition(LayoutItem* item, GridRange const& range); protected: std::size_t number_of_columns; std::size_t number_of_rows; // Note: Yes, this is somewhat redundant to the LayoutItemList of the Layout // class. However, this was the best idea I had such that I could still // derive from Layout. If you find this ugly, feel free to fix it. std::unordered_map grid_ranges; private: struct CellSize { std::size_t width; std::size_t height; }; CellSize calculateCellSize() const; void moveAndResize( LayoutItem& item, GridRange const& range, CellSize cell_size) const; }; } // GUI:: drumgizmo-0.9.14/plugingui/combobox.h0000644000076400017500000000420013077120602014525 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * combobox.h * * Sun Mar 10 19:04:50 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "widget.h" #include "font.h" #include "listboxthin.h" #include "painter.h" #include "texturedbox.h" namespace GUI { class ComboBox : public Widget { public: ComboBox(Widget* parent); virtual ~ComboBox(); void addItem(std::string name, std::string value); void clear(); bool selectItem(int index); std::string selectedName(); std::string selectedValue(); // From Widget: bool isFocusable() override { return true; } virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void scrollEvent(ScrollEvent* scrollEvent) override; virtual void keyEvent(KeyEvent* keyEvent) override; Notifier valueChangedNotifier; private: TexturedBox box{getImageCache(), ":resources/widget.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 void listboxSelectHandler(); Font font; ListBoxThin listbox; }; } // GUI:: drumgizmo-0.9.14/plugingui/button_base.h0000644000076400017500000000364113077120602015232 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * button_base.h * * Sat Apr 15 21:45:30 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "widget.h" namespace GUI { class ButtonBase : public Widget { public: ButtonBase(Widget* parent); virtual ~ButtonBase(); // From Widget: bool isFocusable() override { return true; } bool catchMouse() override { return true; } void setText(const std::string& text); void setEnabled(bool enabled); bool isEnabled() const; Notifier<> clickNotifier; protected: virtual void clicked() {} // From Widget: virtual void repaintEvent(RepaintEvent* e) override {}; virtual void buttonEvent(ButtonEvent* e) override; virtual void mouseLeaveEvent() override; virtual void mouseEnterEvent() override; bool enabled{true}; bool in_button{false}; enum class State { Up, Down }; std::string text; State draw_state{State::Up}; State button_state{State::Up}; }; } // GUI:: drumgizmo-0.9.14/plugingui/directory.h0000644000076400017500000000474113103356361014736 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * directory.h * * Tue Apr 23 22:01:07 CEST 2013 * Copyright 2013 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #define DIRECTORY_HIDDEN 1 namespace GUI { class Directory { public: typedef struct drive { int number; std::string name; } drive_t; typedef std::list EntryList; typedef std::list DriveList; Directory(std::string path); ~Directory(); std::string seperator(); size_t count(); void refresh(); std::string path(); bool cdUp(); bool cd(std::string dir); bool isDir(); void setPath(std::string path); bool fileExists(std::string file); // Add filter, ie. directories or files only EntryList entryList(); //void setSorting(); static std::string cwd(); static std::string root(); static std::string root(std::string path); static std::string cleanPath(std::string path); static Directory::EntryList listFiles(std::string path, unsigned char filter = 0); static bool isRoot(std::string path); static Directory::DriveList drives(); static bool isDir(std::string path); static bool isHidden(std::string entry); static bool exists(std::string path); static std::string pathDirectory(std::string filepath); private: std::string _path; EntryList _files; DriveList _drives; typedef std::list Path; static Path parsePath(std::string path); static std::string pathToStr(Path &path); }; } // GUI:: drumgizmo-0.9.14/plugingui/frame.cc0000644000076400017500000000646313077165621014174 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * frame.cc * * Tue Feb 7 21:07:56 CET 2017 * Copyright 2017 Andr Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "frame.h" #include "painter.h" namespace GUI { FrameWidget::FrameWidget(Widget* parent, bool has_switch) : Widget(parent) , is_switched_on(!has_switch) , bar_height(24) { if(has_switch) { // We only have to set this once as nothing happens on a resize power_button.move(4, 4); power_button.resize(16, 16); power_button.setChecked(is_switched_on); CONNECT(&power_button, stateChangedNotifier, this, &FrameWidget::powerButtonStateChanged); } power_button.setVisible(has_switch); CONNECT(this, sizeChangeNotifier, this, &FrameWidget::sizeChanged); } void FrameWidget::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); int center_x = width() / 2; auto title_buf = title.c_str(); // draw the dark grey box p.setColour(grey_box_colour); p.drawFilledRectangle(1, 1, width() - 2, bar_height); // frame p.setColour(frame_colour_top); p.drawLine(0, 0, width() - 1, 0); p.setColour(frame_colour_bottom); p.drawLine(0, height() - 1, width() - 1, height() - 1); p.setColour(frame_colour_side); p.drawLine(0, 0, 0, height() - 1); p.drawLine(width() - 1, 0, width() - 1, height() - 1); // background p.setColour(background_colour); p.drawFilledRectangle(1, bar_height, width() - 2, height() - 2); // draw the label p.setColour(label_colour); p.drawText(center_x - label_width, bar_height - 4, font, title_buf); } void FrameWidget::powerButtonStateChanged(bool new_state) { is_switched_on = new_state; onSwitchChangeNotifier(is_switched_on); } void FrameWidget::setTitle(std::string const& title) { this->title = title; label_width = font.textWidth(title.c_str()) / 2 + 1; } void FrameWidget::setContent(Widget* content) { this->content = content; content->reparent(this); } void FrameWidget::setOnSwitch(bool on) { is_switched_on = on; power_button.setChecked(is_switched_on); } void FrameWidget::sizeChanged(int width, int height) { if(content) { content_start_x = content_margin; content_start_y = bar_height + content_margin; content_width = width - 2 * content_margin; content_height = height - (bar_height + 2 * content_margin); content->move(content_start_x, content_start_y); content->resize(content_width, content_height); } } } // GUI:: drumgizmo-0.9.14/plugingui/texture.cc0000644000076400017500000000341713077120603014565 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * texture.cc * * Sat Jun 4 21:18:11 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "texture.h" namespace GUI { Texture::Texture(ImageCache& image_cache, const std::string& filename, std::size_t x, std::size_t y, std::size_t width, std::size_t height) : ScopedImageBorrower(image_cache, filename) , _x(x) , _y(y) , _width(width>image.width()?image.width():width) , _height(height>image.height()?image.height():height) { } size_t Texture::width() const { return _width; } size_t Texture::height() const { return _height; } const Colour& Texture::getPixel(size_t x, size_t y) const { if(x > _width || y > _height) { return outOfRange; } return image.getPixel(x + _x, y + _y); } } // GUI:: drumgizmo-0.9.14/plugingui/listbox.cc0000644000076400017500000000446713077120602014556 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listbox.cc * * Mon Feb 25 21:21:41 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "listbox.h" #include "painter.h" #include "font.h" namespace GUI { ListBox::ListBox(Widget *parent) : Widget(parent) , selectionNotifier(basic.selectionNotifier) , clickNotifier(basic.clickNotifier) , valueChangedNotifier(basic.valueChangedNotifier) , basic(this) { basic.move(7, 7); } ListBox::~ListBox() { } void ListBox::addItem(std::string name, std::string value) { basic.addItem(name, value); } void ListBox::addItems(std::vector &items) { basic.addItems(items); } void ListBox::clear() { basic.clear(); } bool ListBox::selectItem(int index) { return basic.selectItem(index); } std::string ListBox::selectedName() { return basic.selectedName(); } std::string ListBox::selectedValue() { return basic.selectedValue(); } void ListBox::clearSelectedValue() { basic.clearSelectedValue(); } void ListBox::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); int w = width(); int h = height(); if(w == 0 || h == 0) { return; } box.setSize(w, h); p.drawImage(0, 0, box); } void ListBox::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); basic.resize(width - (7 + 7), height - (7 + 7)); } } // GUI:: drumgizmo-0.9.14/plugingui/font.h0000644000076400017500000000337513077120602013677 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * font.h * * Sat Nov 12 11:13:41 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "pixelbuffer.h" #include "image.h" namespace GUI { class Font { public: Font(const std::string& fontfile = ":resources/font.png"); size_t textWidth(const std::string& text) const; size_t textHeight(const std::string& text = "") const; void setLetterSpacing(int letterSpacing); int letterSpacing() const; PixelBufferAlpha *render(const std::string& text) const; private: Image img_font; class Character { public: std::size_t offset{0}; std::size_t width{0}; int pre_bias{0}; int post_bias{0}; }; std::array characters; int spacing{1}; }; } // GUI:: drumgizmo-0.9.14/plugingui/resamplingframecontent.cc0000644000076400017500000000531113103427335017631 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * resamplingframecontent.cc * * Fri May 5 23:43:28 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "resamplingframecontent.h" #include namespace GUI { ResamplingframeContent::ResamplingframeContent( Widget* parent, SettingsNotifier& settings_notifier) : Widget(parent) , settings_notifier(settings_notifier) { CONNECT(this, settings_notifier.drumkit_samplerate, this, &ResamplingframeContent::updateDrumkitSamplerate); CONNECT(this, settings_notifier.samplerate, this, &ResamplingframeContent::updateSessionSamplerate); CONNECT(this, settings_notifier.resamplig_recommended, this, &ResamplingframeContent::updateResamplingRecommended); text_field.move(0, 0); text_field.setReadOnly(true); updateContent(); text_field.show(); } void ResamplingframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); text_field.resize(width, height); } void ResamplingframeContent::updateContent() { text_field.setText( "Session samplerate: " + session_samplerate + "\n" "Drumkit samplerate: " + drumkit_samplerate + "\n" "Resampling recommended: " + resamplig_recommended + "\n" ); } void ResamplingframeContent::updateDrumkitSamplerate(std::size_t drumkit_samplerate) { this->drumkit_samplerate = drumkit_samplerate == 0 ? "" : std::to_string(drumkit_samplerate); updateContent(); } void ResamplingframeContent::updateSessionSamplerate(double samplerate) { this->session_samplerate = std::to_string((std::size_t)samplerate); updateContent(); } void ResamplingframeContent::updateResamplingRecommended(bool resamplig_recommended) { this->resamplig_recommended = resamplig_recommended ? "Yes" : "No"; updateContent(); } } // GUI:: drumgizmo-0.9.14/plugingui/abouttab.h0000644000076400017500000000302513077120602014522 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * abouttab.h * * Fri Apr 21 18:51:13 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "resource.h" #include "textedit.h" #include namespace GUI { class AboutTab : public Widget { public: AboutTab(Widget* parent); // From Widget: void resize(std::size_t width, std::size_t height) override; private: std::string getAboutText(); TextEdit text_edit{this}; std::size_t margin{10}; Resource about{":../ABOUT"}; Resource authors{":../AUTHORS"}; Resource gpl{":../COPYING"}; }; } // GUI:: drumgizmo-0.9.14/plugingui/widget.h0000644000076400017500000000646313077713327014231 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * widget.h * * Sun Oct 9 13:01:44 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "guievent.h" #include "pixelbuffer.h" #include "notifier.h" #include "layout.h" #include "canvas.h" #include namespace GUI { class ImageCache; class Window; class Widget : public Listener , public LayoutItem , public Canvas { friend class Painter; public: Widget(Widget* parent); virtual ~Widget(); virtual void show(); virtual void hide(); void setVisible(bool visible); virtual bool visible() const; //! Mark widget dirty and shedule redraw on next window redraw. void redraw(); // From LayoutItem virtual void resize(std::size_t width, std::size_t height) override; virtual void move(int x, int y) override; virtual int x() const override; virtual int y() const override; virtual std::size_t width() const override; virtual std::size_t height() const override; // From Canvas PixelBufferAlpha& GetPixelBuffer() override; virtual bool isFocusable() { return false; } virtual bool catchMouse() { return false; } void addChild(Widget* widget); void removeChild(Widget* widget); void reparent(Widget* parent); virtual void repaintEvent(RepaintEvent* repaintEvent) {} virtual void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) {} virtual void buttonEvent(ButtonEvent* buttonEvent) {} virtual void scrollEvent(ScrollEvent* scrollEvent) {} virtual void keyEvent(KeyEvent* keyEvent) {} virtual void mouseLeaveEvent() {} virtual void mouseEnterEvent() {} virtual ImageCache& getImageCache(); Widget* find(int x, int y); virtual Window* window(); std::vector getPixelBuffers(); bool hasKeyboardFocus(); Notifier sizeChangeNotifier; // (width, height) Notifier positionChangeNotifier; // (x, y) protected: friend class EventHandler; //! Translate x-coordinate from parent-space to window-space. virtual std::size_t translateToWindowX(); //! Translate y-coordinate from parent-space to window-space. virtual std::size_t translateToWindowY(); PixelBufferAlpha pixbuf{0,0}; std::vector children; Widget* parent = nullptr; Window* _window = nullptr; int _x{0}; int _y{0}; std::size_t _width{0}; std::size_t _height{0}; bool _visible{true}; bool dirty{true}; }; } // GUI:: drumgizmo-0.9.14/plugingui/maintab.cc0000644000076400017500000000766013103427335014506 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * maintab.cc * * Fri Mar 24 20:39:59 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "maintab.h" namespace GUI { MainTab::MainTab(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier, Config& config) : Widget(parent) , drumkitframe_content{this, settings, settings_notifier, config} , statusframe_content{this, settings_notifier} , humanizerframe_content{this, settings, settings_notifier} , diskstreamingframe_content{this, settings, settings_notifier} , resamplingframe_content{this, settings_notifier} , settings(settings) , settings_notifier(settings_notifier) { layout.setSpacing(0); layout.setResizeChildren(true); layout.addItem(&drumkit_frame); layout.addItem(&status_frame); layout.addItem(&humanizer_frame); layout.addItem(&diskstreaming_frame); layout.addItem(&resampling_frame); auto h1 = 20; auto h2 = 22; auto h3 = 13; auto h4 = 11; auto h5 = 14; auto drumkit_range = GridLayout::GridRange{0, 1, 0, h1}; auto status_range = GridLayout::GridRange{0, 1, h1, h1 + h2}; auto humanizer_range = GridLayout::GridRange{1, 2, 0, h3}; auto diskstreaming_range = GridLayout::GridRange{1, 2, h3, h3 + h4}; auto resampling_range = GridLayout::GridRange{1, 2, h3 + h4, h3 + h4 + h5}; layout.setPosition(&drumkit_frame, drumkit_range); layout.setPosition(&status_frame, status_range); layout.setPosition(&humanizer_frame, humanizer_range); layout.setPosition(&diskstreaming_frame, diskstreaming_range); layout.setPosition(&resampling_frame, resampling_range); drumkit_frame.setTitle("Drumkit"); status_frame.setTitle("Status"); humanizer_frame.setTitle("Humanizer"); diskstreaming_frame.setTitle("Disk streaming"); resampling_frame.setTitle("Resampling"); drumkit_frame.setContent(&drumkitframe_content); status_frame.setContent(&statusframe_content); humanizer_frame.setContent(&humanizerframe_content); diskstreaming_frame.setContent(&diskstreamingframe_content); resampling_frame.setContent(&resamplingframe_content); humanizer_frame.setOnSwitch(settings.enable_velocity_modifier); resampling_frame.setOnSwitch(settings.enable_resampling); CONNECT(this, settings_notifier.enable_velocity_modifier, &humanizer_frame, &FrameWidget::setOnSwitch); CONNECT(this, settings_notifier.enable_resampling, &resampling_frame, &FrameWidget::setOnSwitch); CONNECT(&humanizer_frame, onSwitchChangeNotifier, this, &MainTab::humanizerOnChange); CONNECT(&resampling_frame, onSwitchChangeNotifier, this, &MainTab::resamplingOnChange); } void MainTab::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); // DrumGizmo logo Painter painter(*this); painter.clear(); painter.drawImage(width - logo.width(), height - logo.height(), logo); } void MainTab::humanizerOnChange(bool on) { settings.enable_velocity_modifier.store(on); } void MainTab::resamplingOnChange(bool on) { settings.enable_resampling.store(on); } } // GUI:: drumgizmo-0.9.14/plugingui/nativewindow_win32.h0000644000076400017500000000453213077120602016465 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_win32.h * * Fri Dec 28 18:45:51 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "nativewindow.h" #define WIN32_LEAN_AND_MEAN #include typedef HWND WNDID; namespace GUI { class Window; class Event; class NativeWindowWin32 : public NativeWindow { public: NativeWindowWin32(void* native_window, Window& window); ~NativeWindowWin32(); void setFixedSize(std::size_t width, std::size_t height) override; void resize(std::size_t width, std::size_t height) override; std::pair getSize() override; void move(int x, int y) override; std::pair getPosition() override; void show() override; bool visible() const override; void hide() override; void redraw(const Rect& dirty_rect) override; void setCaption(const std::string &caption) override; void grabMouse(bool grab) override; EventQueue getEvents() override; void* getNativeWindowHandle() const override; private: static LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp); static LRESULT CALLBACK subClassProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp, UINT_PTR id, DWORD_PTR data); HWND parent_window; Window& window; WNDID m_hwnd = 0; char* m_className = nullptr; EventQueue event_queue; }; } // GUI:: drumgizmo-0.9.14/plugingui/progressbar.h0000644000076400017500000000452513077120603015261 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * progressbar.h * * Fri Mar 22 22:07:57 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "guievent.h" #include "painter.h" #include "texturedbox.h" namespace GUI { enum class ProgressBarState { Red, Green, Blue, Off }; class ProgressBar : public Widget { public: ProgressBar(Widget* parent); virtual ~ProgressBar(); void setTotal(std::size_t total); void setValue(std::size_t value); void setState(ProgressBarState state); protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: ProgressBarState state{ProgressBarState::Blue}; TexturedBox bar_bg{getImageCache(), ":resources/progress.png", 0, 0, // atlas offset (x, y) 6, 1, 6, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 TexturedBox bar_red{getImageCache(), ":resources/progress.png", 13, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 TexturedBox bar_green{getImageCache(), ":resources/progress.png", 18, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 TexturedBox bar_blue{getImageCache(), ":resources/progress.png", 23, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 11, 0, 0}; // dy1, dy2, dy3 std::size_t total{0}; std::size_t value{0}; }; } // GUI:: drumgizmo-0.9.14/plugingui/painter.h0000644000076400017500000000457713077120602014400 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * painter.h * * Wed Oct 12 19:48:45 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "colour.h" namespace GUI { class PixelBufferAlpha; class Font; class Drawable; class Image; class Canvas; class Painter { public: Painter(Canvas& canvas); ~Painter(); void setColour(const Colour& colour); void drawLine(int x1, int y1, int x2, int y2); void drawText(int x, int y, const Font& font, const std::string& text, bool nocolour = false); void drawRectangle(int x1, int y1, int x2, int y2); void drawFilledRectangle(int x1, int y1, int x2, int y2); void drawPoint(int x, int y); void drawCircle(int x, int y, double r); void drawFilledCircle(int x, int y, int r); void drawImage(int x, int y, const Drawable& image); void drawImageStretched(int x, int y, const Drawable& image, int width, int height); typedef struct { Image* topLeft; Image* top; Image* topRight; Image* left; Image* right; Image* bottomLeft; Image* bottom; Image* bottomRight; Image* center; } Box; void drawBox(int x, int y, const Box& box, int width, int height); typedef struct { Image* left; Image* right; Image* center; } Bar; void drawBar(int x, int y, const Bar& bar, int width, int height); void clear(); private: PixelBufferAlpha& pixbuf; Colour colour; }; } // GUI:: drumgizmo-0.9.14/plugingui/resource_data.h0000644000076400017500000000240313076174173015553 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * resource_data.h * * Sun Mar 17 20:25:24 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once typedef struct { const char *name; unsigned int size; const char *data; } rc_data_t; extern const rc_data_t rc_data[]; drumgizmo-0.9.14/plugingui/imagecache.cc0000644000076400017500000000517313077120602015133 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * imagecache.cc * * Thu Jun 2 17:12:05 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "imagecache.h" #include #include "image.h" namespace GUI { ScopedImageBorrower::ScopedImageBorrower(ImageCache& imageCache, const std::string& filename) : imageCache(imageCache) , filename(filename) , image(imageCache.borrow(filename)) { } ScopedImageBorrower::ScopedImageBorrower(ScopedImageBorrower&& other) : imageCache(other.imageCache) , filename(other.filename) , image(other.image) { other.filename.clear(); } ScopedImageBorrower::~ScopedImageBorrower() { if(!filename.empty()) { imageCache.giveBack(filename); } } Image& ScopedImageBorrower::operator*() { return image; } Image& ScopedImageBorrower::operator()() { return image; } ScopedImageBorrower ImageCache::getImage(const std::string& filename) { return ScopedImageBorrower(*this, filename); } Image& ImageCache::borrow(const std::string& filename) { auto cacheIterator = imageCache.find(filename); if(cacheIterator == imageCache.end()) { Image image(filename); auto insertValue = imageCache.emplace(filename, std::make_pair(0, std::move(image))); cacheIterator = insertValue.first; } auto& cacheEntry = cacheIterator->second; ++cacheEntry.first; return cacheEntry.second; } void ImageCache::giveBack(const std::string& filename) { auto cacheIterator = imageCache.find(filename); assert(cacheIterator != imageCache.end()); auto& cacheEntry = cacheIterator->second; --cacheEntry.first; if(cacheEntry.first == 0) { imageCache.erase(cacheIterator); } } } // GUI:: drumgizmo-0.9.14/plugingui/combobox.cc0000644000076400017500000001116513077713326014706 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * combobox.cc * * Sun Mar 10 19:04:50 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "combobox.h" #include "painter.h" #include "font.h" #include #define BORDER 10 namespace GUI { void ComboBox::listboxSelectHandler() { ButtonEvent buttonEvent; buttonEvent.direction = Direction::down; this->buttonEvent(&buttonEvent); } ComboBox::ComboBox(Widget* parent) : Widget(parent) , listbox(parent) { CONNECT(&listbox, selectionNotifier, this, &ComboBox::listboxSelectHandler); CONNECT(&listbox, clickNotifier, this, &ComboBox::listboxSelectHandler); listbox.hide(); } ComboBox::~ComboBox() { } void ComboBox::addItem(std::string name, std::string value) { listbox.addItem(name, value); } void ComboBox::clear() { listbox.clear(); redraw(); } bool ComboBox::selectItem(int index) { listbox.selectItem(index); redraw(); return true; } std::string ComboBox::selectedName() { return listbox.selectedName(); } std::string ComboBox::selectedValue() { return listbox.selectedValue(); } static void drawArrow(Painter &p, int x, int y, int w, int h) { p.drawLine(x, y, x+(w/2), y+h); p.drawLine(x+(w/2), y+h, x+w, y); y++; p.drawLine(x, y, x+(w/2), y+h); p.drawLine(x+(w/2), y+h, x+w, y); } void ComboBox::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); std::string _text = selectedName(); int w = width(); int h = height(); if(w == 0 || h == 0) { return; } box.setSize(w, h); p.drawImage(0, 0, box); p.setColour(Colour(183.0/255.0, 219.0/255.0 , 255.0/255.0, 1)); p.drawText(BORDER - 4 + 3, height()/2+5 + 1 + 1, font, _text); // p.setColour(Colour(1, 1, 1)); // p.drawText(BORDER - 4, (height()+font.textHeight()) / 2 + 1, font, _text); //int n = height() / 2; // p.drawLine(width() - n - 6, 1 + 6, width() - 1 - 6, 1 + 6); { int w = 10; int h = 6; drawArrow(p, width() - 6 - 4 - w, (height() - h) / 2, w, h); p.drawLine(width() - 6 - 4 - w - 4, 7, width() - 6 - 4 - w - 4, height() - 8); } } void ComboBox::scrollEvent(ScrollEvent* scrollEvent) { /* scroll_offset += e->delta; if(scroll_offset < 0) { scroll_offset = 0; } if(scroll_offset > (items.size() - 1)) { scroll_offset = (items.size() - 1); } redraw(); */ } void ComboBox::keyEvent(KeyEvent* keyEvent) { if(keyEvent->direction != Direction::up) { return; } /* switch(keyEvent->keycode) { case Key::up: { selected--; if(selected < 0) { selected = 0; } if(selected < scroll_offset) { scroll_offset = selected; if(scroll_offset < 0) { scroll_offset = 0; } } } break; case Key::down: { // Number of items that can be displayed at a time. int numitems = height() / (font.textHeight() + padding); selected++; if(selected > (items.size() - 1)) { selected = (items.size() - 1); } if(selected > (scroll_offset + numitems - 1)) { scroll_offset = selected - numitems + 1; if(scroll_offset > (items.size() - 1)) { scroll_offset = (items.size() - 1); } } } break; case Key::home: selected = 0; break; case Key::end: selected = items.size() - 1; break; default: break; } redraw(); */ } void ComboBox::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->direction != Direction::down) { return; } if(!listbox.visible()) { listbox.resize(width() - 10, 100); listbox.move(x() + 5, y() + height() - 7); } else { valueChangedNotifier(listbox.selectedName(), listbox.selectedValue()); } listbox.setVisible(!listbox.visible()); } } // GUI:: drumgizmo-0.9.14/plugingui/button.h0000644000076400017500000000365113077120602014241 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * button.h * * Sun Oct 9 13:01:56 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "button_base.h" #include "font.h" #include "texturedbox.h" namespace GUI { class Button : public ButtonBase { public: Button(Widget* parent); virtual ~Button(); protected: // From Widget: virtual void repaintEvent(RepaintEvent* e) override; private: TexturedBox box_up{getImageCache(), ":resources/pushbutton.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 6, 12, 9}; // dy1, dy2, dy3 TexturedBox box_down{getImageCache(), ":resources/pushbutton.png", 15, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 6, 12, 9}; // dy1, dy2, dy3 TexturedBox box_grey{getImageCache(), ":resources/pushbutton.png", 30, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 6, 12, 9}; // dy1, dy2, dy3 Font font{":resources/fontemboss.png"}; }; } // GUI:: drumgizmo-0.9.14/plugingui/slider.cc0000644000076400017500000001004713077713327014357 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * slider.cc * * Sat Nov 26 18:10:22 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "slider.h" #include "painter.h" #include #include namespace GUI { Slider::Slider(Widget* parent) : Widget(parent) { state = State::up; current_value = 0.0; maximum = 1.0; minimum = 0.0; } void Slider::setValue(float new_value) { current_value = new_value; if (current_value < 0.) { current_value = 0.; } else if (current_value > 1.0) { current_value = 1.0; } redraw(); clickNotifier(); valueChangedNotifier(current_value); } float Slider::value() const { return current_value; } void Slider::setColour(Colour colour) { switch (colour) { case Colour::Green: inner_bar = &inner_bar_green; break; case Colour::Red: inner_bar = &inner_bar_red; break; case Colour::Blue: inner_bar = &inner_bar_blue; break; case Colour::Yellow: inner_bar = &inner_bar_yellow; break; case Colour::Purple: inner_bar = &inner_bar_purple; break; case Colour::Grey: inner_bar = &inner_bar_grey; break; } } void Slider::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); auto inner_offset = (current_value / maximum) * getControlWidth(); auto button_x = button_offset + inner_offset - (button.width() / 2); auto button_y = (height() - button.height()) / 2; // draw bar bar.setSize(width(), height()); p.drawImage(0, 0, bar); // draw inner bar inner_bar->setSize(button_x - bar_boundary, height() - 2 * bar_boundary); p.drawImage(bar_boundary, bar_boundary, *inner_bar); // draw button p.drawImage(button_x, button_y, button); } void Slider::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->direction == Direction::down) { state = State::down; recomputeCurrentValue(buttonEvent->x); redraw(); clickNotifier(); valueChangedNotifier(current_value); } if(buttonEvent->direction == Direction::up) { state = State::up; recomputeCurrentValue(buttonEvent->x); redraw(); clickNotifier(); valueChangedNotifier(current_value); } } void Slider::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) { if(state == State::down) { recomputeCurrentValue(mouseMoveEvent->x); redraw(); clickNotifier(); valueChangedNotifier(current_value); } } void Slider::scrollEvent(ScrollEvent* scrollEvent) { current_value -= scrollEvent->delta/(float)getControlWidth(); if (current_value < 0.) { current_value = 0.; } else if (current_value > 1.0) { current_value = 1.0; } redraw(); clickNotifier(); valueChangedNotifier(current_value); } std::size_t Slider::getControlWidth() const { if(width() < 2 * button_offset) { return 0; } return width() - 2 * button_offset; } void Slider::recomputeCurrentValue(float x) { if(x < button_offset) { current_value = 0; } else { current_value = (x - button_offset) / getControlWidth(); } if (current_value < 0.) { current_value = 0.; } else if (current_value > 1.0) { current_value = 1.0; } } } // GUI:: drumgizmo-0.9.14/plugingui/verticalline.cc0000644000076400017500000000302613077120603015542 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * verticalline.cc * * Sat Apr 6 12:59:44 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "verticalline.h" #include "painter.h" namespace GUI { VerticalLine::VerticalLine(Widget *parent) : Widget(parent) , vline(":resources/vertline.png") { } void VerticalLine::repaintEvent(RepaintEvent* repaintEvent) { if(height() < 2) { return; } Painter p(*this); p.drawImageStretched(0, (height() - vline.height()) / 2, vline, width(), vline.height()); } } // GUI:: drumgizmo-0.9.14/plugingui/drumkitframecontent.cc0000644000076400017500000001416413103211624017145 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * drumkitframecontent.cc * * Fri Mar 24 21:49:42 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drumkitframecontent.h" #include #include "label.h" #include "pluginconfig.h" namespace GUI { BrowseFile::BrowseFile(Widget* parent) : Widget(parent) { layout.setResizeChildren(false); layout.setVAlignment(VAlignment::center); layout.setSpacing(gap); layout.addItem(&lineedit); layout.addItem(&browse_button); browse_button.setText("Browse..."); } void BrowseFile::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); lineedit_width = 0.77 * width - gap; button_width = width - lineedit_width - gap; lineedit.resize(lineedit_width, 29); browse_button.resize(button_width, 30); layout.layout(); } std::size_t BrowseFile::getLineEditWidth() { return lineedit_width; } std::size_t BrowseFile::getButtonWidth() { return button_width; } Button& BrowseFile::getBrowseButton() { return browse_button; } LineEdit& BrowseFile::getLineEdit() { return lineedit; } DrumkitframeContent::DrumkitframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier, Config& config) : Widget(parent) , settings(settings) , settings_notifier(settings_notifier) , config(config) { layout.setHAlignment(HAlignment::left); drumkit_caption.setText("Drumkit file:"); midimap_caption.setText("Midimap file:"); layout.addItem(&drumkit_caption); layout.addItem(&drumkit_file); layout.addItem(&drumkit_file_progress); layout.addItem(&midimap_caption); layout.addItem(&midimap_file); layout.addItem(&midimap_file_progress); CONNECT(&drumkit_file.getBrowseButton(), clickNotifier, this, &DrumkitframeContent::kitBrowseClick); CONNECT(&midimap_file.getBrowseButton(), clickNotifier, this, &DrumkitframeContent::midimapBrowseClick); CONNECT(this, settings_notifier.drumkit_file, &drumkit_file.getLineEdit(), &LineEdit::setText); CONNECT(this, settings_notifier.drumkit_load_status, this, &DrumkitframeContent::setDrumKitLoadStatus); CONNECT(this, settings_notifier.midimap_file, &midimap_file.getLineEdit(), &LineEdit::setText); CONNECT(this, settings_notifier.midimap_load_status, this, &DrumkitframeContent::setMidiMapLoadStatus); CONNECT(this, settings_notifier.number_of_files, &drumkit_file_progress, &ProgressBar::setTotal); CONNECT(this, settings_notifier.number_of_files_loaded, &drumkit_file_progress, &ProgressBar::setValue); midimap_file_progress.setTotal(2); file_browser.resize(450, 350); file_browser.setFixedSize(450, 350); } void DrumkitframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); drumkit_caption.resize(width, 15); drumkit_file.resize(width, 37); drumkit_file_progress.resize(drumkit_file.getLineEditWidth(), 11); midimap_caption.resize(width, 15); midimap_file.resize(width, 37); midimap_file_progress.resize(drumkit_file.getLineEditWidth(), 11); layout.layout(); } void DrumkitframeContent::kitBrowseClick() { std::string path = drumkit_file.getLineEdit().getText(); if(path == "") { path = config.lastkit; } if(path == "") { path = midimap_file.getLineEdit().getText(); } file_browser.setPath(path); CONNECT(&file_browser, fileSelectNotifier, this, &DrumkitframeContent::selectKitFile); file_browser.show(); } void DrumkitframeContent::midimapBrowseClick() { std::string path = midimap_file.getLineEdit().getText(); if(path == "") { path = config.lastmidimap; } if(path == "") { path = drumkit_file.getLineEdit().getText(); } file_browser.setPath(path); CONNECT(&file_browser, fileSelectNotifier, this, &DrumkitframeContent::selectMapFile); file_browser.show(); } void DrumkitframeContent::selectKitFile(const std::string& filename) { config.lastkit = filename; config.save(); settings.drumkit_file.store(filename); settings.reload_counter++; } void DrumkitframeContent::selectMapFile(const std::string& filename) { config.lastmidimap = filename; config.save(); settings.midimap_file.store(filename); } void DrumkitframeContent::setDrumKitLoadStatus(LoadStatus load_status) { ProgressBarState state = ProgressBarState::Blue; switch(load_status) { case LoadStatus::Idle: case LoadStatus::Loading: state = ProgressBarState::Blue; break; case LoadStatus::Done: state = ProgressBarState::Green; break; case LoadStatus::Error: state = ProgressBarState::Red; break; } drumkit_file_progress.setState(state); } void DrumkitframeContent::setMidiMapLoadStatus(LoadStatus load_status) { ProgressBarState state = ProgressBarState::Blue; switch(load_status) { case LoadStatus::Idle: midimap_file_progress.setValue(0); break; case LoadStatus::Loading: midimap_file_progress.setValue(1); state = ProgressBarState::Blue; break; case LoadStatus::Done: midimap_file_progress.setValue(2); state = ProgressBarState::Green; break; case LoadStatus::Error: midimap_file_progress.setValue(2); state = ProgressBarState::Red; break; } midimap_file_progress.setState(state); } } // GUI:: drumgizmo-0.9.14/plugingui/testmain.cc0000644000076400017500000000350313103352046014703 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * testmain.cc * * Sun Nov 22 20:06:42 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include "mainwindow.h" #include "window.h" int main() { INFO(example, "We are up and running"); GUI::Window parent{nullptr}; parent.setCaption("PluginGui Test Application"); Settings settings; GUI::MainWindow main_window(settings, parent.getNativeWindowHandle()); CONNECT(&parent, eventHandler()->closeNotifier, &main_window, &GUI::MainWindow::closeEventHandler); parent.show(); main_window.show(); parent.resize(750, 400); while(true) { parent.eventHandler()->processEvents(); if(!main_window.processEvents()) { break; } std::this_thread::sleep_for(std::chrono::milliseconds(50)); } return 0; } drumgizmo-0.9.14/plugingui/nativewindow_x11.cc0000644000076400017500000003615113106047433016277 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_x11.cc * * Fri Dec 28 18:45:57 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "nativewindow_x11.h" //http://www.mesa3d.org/brianp/xshm.c #include #include #include #include #include #include #include #include #include "window.h" namespace GUI { NativeWindowX11::NativeWindowX11(void* native_window, Window& window) : window(window) { display = XOpenDisplay(nullptr); if(display == nullptr) { ERR(X11, "XOpenDisplay failed"); return; } screen = DefaultScreen(display); visual = DefaultVisual(display, screen); depth = DefaultDepth(display, screen); if(native_window) { parent_window = (::Window)native_window; // Track size changes on the parent window XSelectInput(display, parent_window, StructureNotifyMask); } else { parent_window = DefaultRootWindow(display); } // Create the window XSetWindowAttributes swa; swa.backing_store = Always; xwindow = XCreateWindow(display, parent_window, 0, 0, //window.x(), window.y(), 1, 1, //window.width(), window.height(), 0, // border CopyFromParent, // depth CopyFromParent, // class CopyFromParent, // visual 0,//CWBackingStore, &swa); long mask = (StructureNotifyMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | KeyPressMask | KeyReleaseMask| ExposureMask | StructureNotifyMask | SubstructureNotifyMask); XSelectInput(display, xwindow, mask); // Register the delete window message: wmDeleteMessage = XInternAtom(display, "WM_DELETE_WINDOW", false); Atom protocols[] = { wmDeleteMessage }; int count = sizeof(protocols)/sizeof(Atom); XSetWMProtocols(display, xwindow, protocols, count); // Create a "Graphics Context" gc = XCreateGC(display, xwindow, 0, nullptr); } NativeWindowX11::~NativeWindowX11() { if(display == nullptr) { return; } deallocateShmImage(); XFreeGC(display, gc); XDestroyWindow(display, xwindow); XCloseDisplay(display); } void NativeWindowX11::setFixedSize(std::size_t width, std::size_t height) { if(display == nullptr) { return; } resize(width, height); XSizeHints* size_hints; size_hints = XAllocSizeHints(); if(size_hints == nullptr) { ERR(X11,"XMallocSizeHints() failed"); return; } size_hints->flags = USPosition | PMinSize | PMaxSize; size_hints->min_width = size_hints->max_width = width; size_hints->min_height = size_hints->max_height = height; //size_hints->min_aspect.x = (float)window.width()/(float)window.height(); //size_hints->max_aspect.x = (float)window.width()/(float)window.height(); //size_hints->min_aspect.y = (float)window.width()/(float)window.height(); //size_hints->max_aspect.y = size_hints->min_aspect.y; XSetWMNormalHints(display, xwindow, size_hints); } void NativeWindowX11::resize(std::size_t width, std::size_t height) { if(display == nullptr) { return; } XResizeWindow(display, xwindow, width, height); } std::pair NativeWindowX11::getSize() { // XWindowAttributes attributes; // XGetWindowAttributes(display, xwindow, &attributes); // return std::make_pair(attributes.width, attributes.height); ::Window root_window; int x, y; unsigned int width, height, border, depth; XGetGeometry(display, xwindow, &root_window, &x, &y, &width, &height, &border, &depth); return std::make_pair(width, height); } void NativeWindowX11::move(int x, int y) { if(display == nullptr) { return; } XMoveWindow(display, xwindow, x, y); } std::pair NativeWindowX11::getPosition() { ::Window root_window; ::Window child_window; int x, y; unsigned int width, height, border, depth; XGetGeometry(display, xwindow, &root_window, &x, &y, &width, &height, &border, &depth); XTranslateCoordinates(display, xwindow, root_window, 0, 0, &x, &y, &child_window); return std::make_pair(x, y); } void NativeWindowX11::show() { if(display == nullptr) { return; } XMapWindow(display, xwindow); } void NativeWindowX11::hide() { if(display == nullptr) { return; } XUnmapWindow(display, xwindow); } bool NativeWindowX11::visible() const { if(display == nullptr) { return false; } XWindowAttributes xwa; XGetWindowAttributes(display, xwindow, &xwa); return (xwa.map_state == IsViewable); } void NativeWindowX11::redraw(const Rect& dirty_rect) { if(display == nullptr) { return; } auto x1 = dirty_rect.x1; auto y1 = dirty_rect.y1; auto x2 = dirty_rect.x2; auto y2 = dirty_rect.y2; updateImageFromBuffer(x1, y1, x2, y2); XShmPutImage(display, xwindow, gc, image, x1, y1, x1, y1, std::min((std::size_t)image->width, (x2 - x1)), std::min((std::size_t)image->height, (y2 - y1)), false); XFlush(display); } void NativeWindowX11::setCaption(const std::string &caption) { if(display == nullptr) { return; } XStoreName(display, xwindow, caption.c_str()); } void NativeWindowX11::grabMouse(bool grab) { (void)grab; // Don't need to do anything on this platform... } EventQueue NativeWindowX11::getEvents() { while(XPending(display)) { XEvent xEvent; XNextEvent(display, &xEvent); translateXMessage(xEvent); } EventQueue events; std::swap(events, event_queue); return events; } void* NativeWindowX11::getNativeWindowHandle() const { return (void*)xwindow; } void NativeWindowX11::translateXMessage(XEvent& xevent) { switch(xevent.type) { case MotionNotify: //DEBUG(x11, "MotionNotify"); { auto mouseMoveEvent = std::make_shared(); mouseMoveEvent->x = xevent.xmotion.x; mouseMoveEvent->y = xevent.xmotion.y; event_queue.push_back(mouseMoveEvent); } break; case Expose: //DEBUG(x11, "Expose"); if(xevent.xexpose.count == 0) { auto repaintEvent = std::make_shared(); repaintEvent->x = xevent.xexpose.x; repaintEvent->y = xevent.xexpose.y; repaintEvent->width = xevent.xexpose.width; repaintEvent->height = xevent.xexpose.height; event_queue.push_back(repaintEvent); if(image) { // Redraw the entire window. Rect rect{0, 0, window.wpixbuf.width, window.wpixbuf.height}; redraw(rect); } } break; case ConfigureNotify: //DEBUG(x11, "ConfigureNotify"); // The parent window size changed, reflect the new size in our own window. if(xevent.xconfigure.window == parent_window) { resize(xevent.xconfigure.width, xevent.xconfigure.height); return; } { if((window.width() != (std::size_t)xevent.xconfigure.width) || (window.height() != (std::size_t)xevent.xconfigure.height)) { auto resizeEvent = std::make_shared(); resizeEvent->width = xevent.xconfigure.width; resizeEvent->height = xevent.xconfigure.height; event_queue.push_back(resizeEvent); } if((window.x() != xevent.xconfigure.x) || (window.y() != xevent.xconfigure.y)) { auto moveEvent = std::make_shared(); moveEvent->x = xevent.xconfigure.x; moveEvent->y = xevent.xconfigure.y; event_queue.push_back(moveEvent); } } break; case ButtonPress: case ButtonRelease: //DEBUG(x11, "ButtonPress"); { if((xevent.xbutton.button == 4) || (xevent.xbutton.button == 5)) { int scroll = 1; auto scrollEvent = std::make_shared(); scrollEvent->x = xevent.xbutton.x; scrollEvent->y = xevent.xbutton.y; scrollEvent->delta = scroll * ((xevent.xbutton.button == 4) ? -1 : 1); event_queue.push_back(scrollEvent); } else if ((xevent.xbutton.button == 6) || (xevent.xbutton.button == 7)) { // Horizontal scrolling case // FIXME Introduce horizontal scrolling event to handle this. } else { auto buttonEvent = std::make_shared(); buttonEvent->x = xevent.xbutton.x; buttonEvent->y = xevent.xbutton.y; switch(xevent.xbutton.button) { case 1: buttonEvent->button = MouseButton::left; break; case 2: buttonEvent->button = MouseButton::middle; break; case 3: buttonEvent->button = MouseButton::right; break; default: WARN(X11, "Unknown button %d, setting to MouseButton::left\n", xevent.xbutton.button); buttonEvent->button = MouseButton::left; break; } buttonEvent->direction = (xevent.type == ButtonPress) ? Direction::down : Direction::up; // This is a fix for hosts (e.g. those using JUCE) that set the // event time to '0'. if(xevent.xbutton.time == 0) { auto now = std::chrono::system_clock::now().time_since_epoch(); xevent.xbutton.time = std::chrono::duration_cast(now).count(); } buttonEvent->doubleClick = (xevent.type == ButtonPress) && ((xevent.xbutton.time - last_click) < 200); if(xevent.type == ButtonPress) { last_click = xevent.xbutton.time; } event_queue.push_back(buttonEvent); } } break; case KeyPress: case KeyRelease: //DEBUG(x11, "KeyPress"); { auto keyEvent = std::make_shared(); switch(xevent.xkey.keycode) { case 113: keyEvent->keycode = Key::left; break; case 114: keyEvent->keycode = Key::right; break; case 111: keyEvent->keycode = Key::up; break; case 116: keyEvent->keycode = Key::down; break; case 119: keyEvent->keycode = Key::deleteKey; break; case 22: keyEvent->keycode = Key::backspace; break; case 110: keyEvent->keycode = Key::home; break; case 115: keyEvent->keycode = Key::end; break; case 117: keyEvent->keycode = Key::pageDown; break; case 112: keyEvent->keycode = Key::pageUp; break; case 36: keyEvent->keycode = Key::enter; break; default: keyEvent->keycode = Key::unknown; break; } char stringBuffer[1024]; int size = XLookupString(&xevent.xkey, stringBuffer, sizeof(stringBuffer), nullptr, nullptr); if(size && keyEvent->keycode == Key::unknown) { keyEvent->keycode = Key::character; } keyEvent->text.append(stringBuffer, size); keyEvent->direction = (xevent.type == KeyPress) ? Direction::down : Direction::up; event_queue.push_back(keyEvent); } break; case ClientMessage: //DEBUG(x11, "ClientMessage"); if(((unsigned int)xevent.xclient.data.l[0] == wmDeleteMessage)) { auto closeEvent = std::make_shared(); event_queue.push_back(closeEvent); } break; case EnterNotify: case LeaveNotify: case MapNotify: case MappingNotify: //DEBUG(x11, "EnterNotify"); // There's nothing to do here atm. break; default: WARN(X11, "Unhandled xevent.type: %d\n", xevent.type); break; } } void NativeWindowX11::allocateShmImage(std::size_t width, std::size_t height) { DEBUG(x11, "(Re)alloc XShmImage (%d, %d)", (int)width, (int)height); if(image) { deallocateShmImage(); } if(!XShmQueryExtension(display)) { ERR(x11, "XShmExtension not available"); return; } image = XShmCreateImage(display, visual, depth, ZPixmap, nullptr, &shm_info, width, height); if(image == nullptr) { ERR(x11, "XShmCreateImage failed!\n"); return; } std::size_t byte_size = image->bytes_per_line * image->height; // Allocate shm buffer int shm_id = shmget(IPC_PRIVATE, byte_size, IPC_CREAT|0777); if(shm_id == -1) { ERR(x11, "shmget failed: %s", strerror(errno)); return; } shm_info.shmid = shm_id; // Attach share memory bufer void* shm_addr = shmat(shm_id, nullptr, 0); if(reinterpret_cast(shm_addr) == -1) { ERR(x11, "shmat failed: %s", strerror(errno)); return; } shm_info.shmaddr = reinterpret_cast(shm_addr); image->data = shm_info.shmaddr; shm_info.readOnly = false; // This may trigger the X protocol error we're ready to catch: XShmAttach(display, &shm_info); XSync(display, false); // Make the shm id unavailable to others shmctl(shm_id, IPC_RMID, 0); } void NativeWindowX11::deallocateShmImage() { if(image == nullptr) { return; } XFlush(display); XShmDetach(display, &shm_info); XDestroyImage(image); image = nullptr; shmdt(shm_info.shmaddr); } void NativeWindowX11::updateImageFromBuffer(std::size_t x1, std::size_t y1, std::size_t x2, std::size_t y2) { //DEBUG(x11, "depth: %d", depth); auto width = window.wpixbuf.width; auto height = window.wpixbuf.height; // If image hasn't been allocated yet or if the image backbuffer is // too small, (re)allocate with a suitable size. if((image == nullptr) || ((int)width > image->width) || ((int)height > image->height)) { constexpr std::size_t step_size = 128; // size increments std::size_t new_width = ((width / step_size) + 1) * step_size; std::size_t new_height = ((height / step_size) + 1) * step_size; allocateShmImage(new_width, new_height); x1 = 0; y1 = 0; x2 = width; y2 = height; } auto stride = image->width; std::uint8_t* pixel_buffer = (std::uint8_t*)window.wpixbuf.buf; if(depth >= 24) // RGB 888 format { std::uint32_t* shm_addr = (std::uint32_t*)shm_info.shmaddr; for(std::size_t y = y1; y < y2; ++y) { for(std::size_t x = x1; x < x2; ++x) { const std::size_t pin = y * width + x; const std::size_t pout = y * stride + x; const std::uint8_t red = pixel_buffer[pin * 3]; const std::uint8_t green = pixel_buffer[pin * 3 + 1]; const std::uint8_t blue = pixel_buffer[pin * 3 + 2]; shm_addr[pout] = (red << 16) | (green << 8) | blue; } } } else if(depth >= 15) // RGB 565 format { std::uint16_t* shm_addr = (std::uint16_t*)shm_info.shmaddr; for(std::size_t y = y1; y < y2; ++y) { for(std::size_t x = x1; x < x2; ++x) { const std::size_t pin = y * width + x; const std::size_t pout = y * stride + x; const std::uint8_t red = pixel_buffer[pin * 3]; const std::uint8_t green = pixel_buffer[pin * 3 + 1]; const std::uint8_t blue = pixel_buffer[pin * 3 + 2]; shm_addr[pout] = ((red >> 3) << 11) | ((green >> 2) << 5) | (blue >> 3); } } } } } // GUI:: drumgizmo-0.9.14/plugingui/drawable.h0000644000076400017500000000263413077120602014507 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drawable.h * * Sat Jun 4 21:39:38 CEST 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include namespace GUI { class Colour; class Drawable { public: virtual ~Drawable() = default; virtual std::size_t width() const = 0; virtual std::size_t height() const = 0; virtual const Colour& getPixel(std::size_t x, std::size_t y) const = 0; }; } // GUI:: drumgizmo-0.9.14/plugingui/layout.cc0000644000076400017500000001563413077120602014405 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * layout.cc * * Sat Mar 21 15:12:36 CET 2015 * Copyright 2015 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "layout.h" #include "widget.h" #include namespace GUI { LayoutItem::LayoutItem() : parent(nullptr) { } LayoutItem::~LayoutItem() { setLayoutParent(nullptr); // Will disconnect from layout if any. } void LayoutItem::setLayoutParent(Layout* p) { if(this->parent) { this->parent->removeItem(this); } this->parent = p; } Layout::Layout(LayoutItem* parent) : parent(parent) { auto widget = dynamic_cast(parent); if(widget) { CONNECT(widget, sizeChangeNotifier, this, &Layout::sizeChanged); } } void Layout::addItem(LayoutItem* item) { items.push_back(item); item->setLayoutParent(this); layout(); } void Layout::removeItem(LayoutItem* item) { auto new_end = std::remove(items.begin(), items.end(), item); items.erase(new_end, items.end()); layout(); } void Layout::sizeChanged(int width, int height) { layout(); } // // BoxLayout // BoxLayout::BoxLayout(LayoutItem* parent) : Layout(parent) { } void BoxLayout::setResizeChildren(bool resizeChildren) { this->resizeChildren = resizeChildren; layout(); } void BoxLayout::setSpacing(size_t spacing) { this->spacing = spacing; layout(); } // // VBoxLayout // VBoxLayout::VBoxLayout(LayoutItem* parent) : BoxLayout(parent), align(HAlignment::center) { } void VBoxLayout::layout() { size_t y = 0; size_t w = parent->width(); // size_t h = parent->height() / items.size(); LayoutItemList::iterator i = items.begin(); while(i != items.end()) { LayoutItem* item = *i; if(resizeChildren) { auto num_items = items.size(); auto empty_space = (num_items - 1) * spacing; auto available_space = parent->height(); if(available_space >= empty_space) { auto item_height = (available_space - empty_space) / num_items; item->resize(w, item_height); } else { // TODO: Should this case be handled differently? item->resize(w, 0); } } size_t x = 0; switch(align) { case HAlignment::left: x = 0; break; case HAlignment::center: x = (w / 2) - (item->width() / 2); break; case HAlignment::right: x = w - item->width(); break; } item->move(x, y); y += item->height() + spacing; ++i; } } void VBoxLayout::setHAlignment(HAlignment alignment) { align = alignment; } // // HBoxLayout // HBoxLayout::HBoxLayout(LayoutItem* parent) : BoxLayout(parent), align(VAlignment::center) { } void HBoxLayout::layout() { if(items.empty()) { return; } // size_t w = parent->width() / items.size(); size_t h = parent->height(); size_t x = 0; LayoutItemList::iterator i = items.begin(); while(i != items.end()) { LayoutItem* item = *i; if(resizeChildren) { auto num_items = items.size(); auto empty_space = (num_items - 1) * spacing; auto available_space = parent->width(); if(available_space >= empty_space) { auto item_width = (available_space - empty_space) / num_items; item->resize(item_width, h); } else { // TODO: Should this case be handled differently? item->resize(0, h); } item->move(x, 0); } else { size_t y = 0; switch(align) { case VAlignment::top: y = 0; break; case VAlignment::center: y = (h / 2) - (item->height() / 2); break; case VAlignment::bottom: y = h - item->height(); break; } int diff = 0; // w - item->width(); item->move(x + diff / 2, y); } x += item->width() + spacing; ++i; } } void HBoxLayout::setVAlignment(VAlignment alignment) { align = alignment; } // // GridLayout // GridLayout::GridLayout(LayoutItem* parent, std::size_t number_of_columns, std::size_t number_of_rows) : BoxLayout(parent) , number_of_columns(number_of_columns) , number_of_rows(number_of_rows) { } void GridLayout::removeItem(LayoutItem* item) { // manually remove from grid_ranges as remove_if doesn't work on an // unordered_map. auto it = grid_ranges.begin(); while(it != grid_ranges.end()) { if(it->first == item) { it = grid_ranges.erase(it); } else { ++it; } } Layout::removeItem(item); } void GridLayout::layout() { if(grid_ranges.empty()) { return; } // Calculate cell sizes auto cell_size = calculateCellSize(); for(auto const& pair : grid_ranges) { auto& item = *pair.first; auto const& range = pair.second; moveAndResize(item, range, cell_size); } } void GridLayout::setPosition(LayoutItem* item, GridRange const& range) { grid_ranges[item] = range; } auto GridLayout::calculateCellSize() const -> CellSize { auto empty_width = (number_of_columns - 1) * spacing; auto available_width = parent->width(); auto empty_height = (number_of_rows - 1) * spacing; auto available_height = parent->height(); CellSize cell_size; if(available_width > empty_width && available_height > empty_height) { cell_size.width = (available_width - empty_width) / number_of_columns; cell_size.height = (available_height - empty_height) / number_of_rows; } else { cell_size.width = 0; cell_size.height = 0; } return cell_size; } void GridLayout::moveAndResize( LayoutItem& item, GridRange const& range, CellSize cell_size) const { std::size_t x = range.column_begin * (cell_size.width + spacing); std::size_t y = range.row_begin * (cell_size.height + spacing); std::size_t column_count = (range.column_end - range.column_begin); std::size_t row_count = (range.row_end - range.row_begin); std::size_t width = column_count * (cell_size.width + spacing) - spacing; std::size_t height = row_count * (cell_size.height + spacing) - spacing; if(resizeChildren) { item.move(x, y); if(cell_size.width * cell_size.height != 0) { item.resize(width, height); } else { item.resize(0, 0); } } else { if(item.width() <= width && item.height() <= height) { item.move(x + (width - item.width()) / 2, y + (height - item.height()) / 2); } else { item.move(x, y); } } } } // GUI:: drumgizmo-0.9.14/plugingui/toggle.h0000644000076400017500000000355013077120603014206 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * toggle.h * * Wed Mar 22 22:58:57 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include namespace GUI { class Toggle : public Widget { public: Toggle(Widget* parent); virtual ~Toggle() = default; void setText(std::string text); // From Widget: bool isFocusable() override { return true; } bool catchMouse() override { return true; } bool checked(); void setChecked(bool checked); Notifier stateChangedNotifier; protected: // From Widget: virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void keyEvent(KeyEvent* keyEvent) override; virtual void mouseLeaveEvent() override; virtual void mouseEnterEvent() override; bool state{false}; bool clicked{false}; bool buttonDown{false}; bool inCheckbox{false}; std::string _text; private: void internalSetChecked(bool checked); }; } // GUI:: drumgizmo-0.9.14/plugingui/powerbutton.cc0000644000076400017500000000300613077120602015446 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * powerbutton.cc * * Thu Mar 23 12:30:50 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "powerbutton.h" #include "painter.h" namespace GUI { PowerButton::PowerButton(Widget* parent) : Toggle(parent) { } void PowerButton::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); if(state) { if(clicked) { p.drawImage(0, 0, on_clicked); } else { p.drawImage(0, 0, on); } } else { if(clicked) { p.drawImage(0, 0, off_clicked); } else { p.drawImage(0, 0, off); } } } } // GUI:: drumgizmo-0.9.14/plugingui/diskstreamingframecontent.h0000644000076400017500000000412513077120602020175 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * diskstreamingframecontent.h * * Fri Mar 24 21:50:07 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "button.h" #include "label.h" #include "slider.h" #include "widget.h" struct Settings; class SettingsNotifier; namespace GUI { class DiskstreamingframeContent : public Widget { public: DiskstreamingframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier); // From Widget virtual void resize(std::size_t width, std::size_t height) override; private: void limitSettingsValueChanged(std::size_t value); void limitValueChanged(float value); void reloadClicked(); void reloaded(std::size_t); // For now the maximum disk streaming limit is 4GB static constexpr std::size_t min_limit = 1024.0 * 1024.0 * 32; static constexpr std::size_t max_limit = 1024.0 * 1024.0 * 1024.0 * 4.0 - 1; Label label_text{this}; Label label_size{this}; Slider slider{this}; Button button{this}; std::size_t slider_width; std::size_t button_width; Settings& settings; SettingsNotifier& settings_notifier; }; } // GUI:: drumgizmo-0.9.14/plugingui/slider.h0000644000076400017500000000715313077120603014212 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * slider.h * * Sat Nov 26 18:10:22 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "texture.h" #include "texturedbox.h" #include "widget.h" namespace GUI { class Slider : public Widget { public: Slider(Widget* parent); virtual ~Slider() = default; // From Widget: bool catchMouse() override { return true; } bool isFocusable() override { return true; } void setValue(float new_value); float value() const; enum class Colour { Green, Red, Blue, Yellow, Purple, Grey }; // Changes the colour of the inner bar void setColour(Colour colour); Notifier<> clickNotifier; Notifier valueChangedNotifier; // (float value) protected: virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) override; virtual void scrollEvent(ScrollEvent* scrollEvent) override; private: enum class State { up, down }; float current_value; float maximum; float minimum; State state; TexturedBox bar{getImageCache(), ":resources/slider.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 1, 7 // dy1, dy2, dy3 }; Texture button{ getImageCache(), ":resources/slider.png", 15, 0, // atlas offset (x, y) 15, 15 // width, height }; TexturedBox inner_bar_green{getImageCache(), ":resources/slider.png", 30, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_red{getImageCache(), ":resources/slider.png", 30, 5, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_blue{getImageCache(), ":resources/slider.png", 30, 10, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_yellow{getImageCache(), ":resources/slider.png", 35, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_purple{getImageCache(), ":resources/slider.png", 35, 5, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; TexturedBox inner_bar_grey{getImageCache(), ":resources/slider.png", 35, 10, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; // This points to the inner_bar_* of the current color. // It should never be a nullptr! TexturedBox* inner_bar{&inner_bar_blue}; std::size_t bar_boundary{5}; std::size_t button_offset{7}; std::size_t getControlWidth() const; void recomputeCurrentValue(float x); }; } // GUI:: drumgizmo-0.9.14/plugingui/scrollbar.cc0000644000076400017500000001027313077713327015061 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * scrollbar.cc * * Sun Apr 14 12:54:58 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "scrollbar.h" #include #include "painter.h" namespace GUI { ScrollBar::ScrollBar(Widget *parent) : Widget(parent) { } void ScrollBar::setRange(int r) { rangeValue = r; setValue(value()); redraw(); } int ScrollBar::range() { return rangeValue; } void ScrollBar::setMaximum(int m) { maxValue = m; if(maxValue < rangeValue) { rangeValue = maxValue; } setValue(value()); redraw(); } int ScrollBar::maximum() { return maxValue; } void ScrollBar::addValue(int delta) { setValue(value() + delta); } void ScrollBar::setValue(int value) { if(value > (maxValue - rangeValue)) { value = maxValue - rangeValue; } if(value < 0) { value = 0; } if(currentValue == value) { return; } currentValue = value; valueChangeNotifier(value); redraw(); } int ScrollBar::value() { return currentValue; } //! Draw an up/down arrow at (x,y) with the bounding box size (w,h) //! If h is negative the arrow will point down, if positive it will point up. static void drawArrow(Painter &p, int x, int y, int w, int h) { if(h < 0) { y -= h; } p.drawLine(x, y, x + (w / 2), y + h); p.drawLine(x + (w / 2), y + h, x + w, y); ++y; p.drawLine(x, y, x + (w / 2), y + h); p.drawLine(x + (w / 2), y + h, x + w, y); } void ScrollBar::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.clear(); p.drawImageStretched(0, 0, bg_img, width(), height()); p.setColour(Colour(183.0/255.0, 219.0/255.0 , 255.0/255.0, 1)); if(!maxValue) { return; } { int h = height() - 2 * width() - 3; int offset = width() + 2; int y_val1 = (currentValue * h) / maxValue; int y_val2 = ((currentValue + rangeValue) * h) / maxValue - 1; p.drawFilledRectangle(2, y_val1 + offset, width() - 1, y_val2 + offset); } p.drawLine(0, 0, 0, height()); drawArrow(p, width()/4, width()/4, width()/2, -1 * (width()/3)); p.drawLine(0, width(), width(), width()); drawArrow(p, width()/4, height() - width() + width()/4, width()/2, width()/3); p.drawLine(0, height() - width(), width(), height() - width()); } void ScrollBar::scrollEvent(ScrollEvent* scrollEvent) { setValue(value() + scrollEvent->delta); } void ScrollBar::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) { if(!dragging) { return; } float delta = yOffset - mouseMoveEvent->y; int h = height() - 2 * width() - 3; delta /= (float)h / (float)maxValue; int newval = valueOffset - delta; if(newval != value()) { setValue(newval); } } void ScrollBar::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if((buttonEvent->y < (int)width()) && buttonEvent->y > 0) { if(buttonEvent->direction == Direction::down) { addValue(-1); } return; } if((buttonEvent->y > ((int)height() - (int)width())) && (buttonEvent->y < (int)height())) { if(buttonEvent->direction == Direction::down) { addValue(1); } return; } if(buttonEvent->direction == Direction::down) { yOffset = buttonEvent->y; valueOffset = value(); } dragging = (buttonEvent->direction == Direction::down); } } // GUI:: drumgizmo-0.9.14/plugingui/window.h0000644000076400017500000000565213077713327014254 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * window.h * * Sun Oct 9 13:11:52 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "pixelbuffer.h" #include "nativewindow.h" #include "image.h" #include "eventhandler.h" #include "imagecache.h" namespace GUI { class Window : public Widget { public: Window(void* native_window = nullptr); ~Window(); void setFixedSize(int width, int height); void setCaption(const std::string& caption); // From Widget: void resize(std::size_t width, std::size_t height) override; void move(int x, int y) override; void show() override; void hide() override; Window* window() override; ImageCache& getImageCache() override; EventHandler* eventHandler(); Widget* keyboardFocus(); void setKeyboardFocus(Widget* widget); Widget* buttonDownFocus(); void setButtonDownFocus(Widget* widget); Widget* mouseFocus(); void setMouseFocus(Widget* widget); //! Tag the window buffer dirty to be rendered. void needsRedraw(); // \returns the native window handle, it HWND on Win32 or Window id on X11 void* getNativeWindowHandle() const; protected: // For the EventHandler friend class EventHandler; // From Widget: std::size_t translateToWindowX() override; std::size_t translateToWindowY() override; void resized(std::size_t width, std::size_t height); void moved(int x, int y); //! Returns true if window pixel buffer changed and needs to be copied to //! native window. bool updateBuffer(); // For the Painter friend class Widget; // For the NativeWindow friend class NativeWindowX11; friend class NativeWindowWin32; friend class NativeWindowPugl; PixelBuffer wpixbuf; size_t refcount{0}; Widget* _keyboardFocus{nullptr}; Widget* _buttonDownFocus{nullptr}; Widget* _mouseFocus{nullptr}; NativeWindow* native{nullptr}; EventHandler* eventhandler{nullptr}; size_t maxRefcount{0}; bool needs_redraw{false}; ImageCache image_cache; }; } // GUI:: drumgizmo-0.9.14/plugingui/nativewindow.h0000644000076400017500000000545513077120602015450 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow.h * * Fri Dec 28 18:46:01 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include #include "guievent.h" namespace GUI { //! Interface class for native window implementations. class NativeWindow { public: NativeWindow() {} virtual ~NativeWindow() {} //! Set a fixed size to the window. //! It resizes the window and disallows user resizing. virtual void setFixedSize(std::size_t width, std::size_t height) = 0; //! Set a new size of the window. virtual void resize(std::size_t width, std::size_t height) = 0; //! Query size of the native window. virtual std::pair getSize() = 0; //! Move the window to a new position. //! Note: negative value are allowed. virtual void move(int x, int y) = 0; //! Query the screen position of the native window. //! Note: returned values can be negative. virtual std::pair getPosition() = 0; //! Show the window if it is hidden. virtual void show() = 0; //! Hides the window. virtual void hide() = 0; //! Return visibility state of the native window. virtual bool visible() const = 0; //! Sets the window caption in the title bar (if it has one). virtual void setCaption(const std::string &caption) = 0; //! Draw the internal rendering buffer to the window buffer. virtual void redraw(const Rect& dirty_rect) = 0; //! Toggle capture mouse mode. virtual void grabMouse(bool grab) = 0; //! Reads all currently enqueued events from the native window system. //! \return A queue of shared pointers to events. virtual EventQueue getEvents() = 0; // \returns the native window handle, it HWND on Win32 or Window id on X11 virtual void* getNativeWindowHandle() const = 0; }; } // GUI:: drumgizmo-0.9.14/plugingui/knob.h0000644000076400017500000000443013077120602013653 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * knob.h * * Thu Feb 28 07:37:27 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "widget.h" #include "texture.h" #include "font.h" namespace GUI { class Knob : public Widget { public: Knob(Widget *parent); virtual ~Knob() = default; // From Widget: bool catchMouse() override { return true; } bool isFocusable() override { return true; } void setValue(float value); void setRange(float minimum, float maximum); float value(); void showValue(bool show_value); Notifier valueChangedNotifier; // (float newValue) protected: virtual void clicked() {} // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) override; virtual void scrollEvent(ScrollEvent* scrollEvent) override; virtual void keyEvent(KeyEvent* keyEvent) override; private: //! Sets the internal value and sends out the changed notification. void internalSetValue(float value); typedef enum { up, down } state_t; state_t state; float current_value; float maximum; float minimum; bool show_value{true}; Texture img_knob; int mouse_offset_x; Font font; }; } // GUI:: drumgizmo-0.9.14/plugingui/led.cc0000644000076400017500000000434413077120602013630 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * led.cc * * Sat Oct 15 19:12:33 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "led.h" #include "painter.h" namespace GUI { LED::LED(Widget *parent) : Widget(parent) , state(Off) { } void LED::setState(state_t state) { if(this->state != state) { this->state = state; redraw(); } } void LED::repaintEvent(RepaintEvent* repaintEvent) { size_t h = height() - 1; size_t w = width() - 1; Painter p(*this); float alpha = 0.9; switch(state) { case Red: p.setColour(Colour(1, 0, 0,alpha)); break; case Green: p.setColour(Colour(0, 1, 0, alpha)); break; case Blue: p.setColour(Colour(0, 0, 1, alpha)); break; case Off: p.setColour(Colour(0.2, 0.2, 0.2, alpha)); break; } size_t size = w / 2; if((h / 2) < size) { size = h / 2; } p.drawFilledCircle(w / 2, h / 2, size); switch(state) { case Red: p.setColour(Colour(0.4, 0, 0, alpha)); break; case Green: p.setColour(Colour(0, 0.4, 0, alpha)); break; case Blue: p.setColour(Colour(0, 0, 0.4, alpha)); break; case Off: p.setColour(Colour(0.1, 0.1, 0.1, alpha)); break; } p.drawCircle(w / 2, h / 2, size); p.setColour(Colour(1, alpha)); p.drawFilledCircle(w / 3, h / 3, size / 6); } } // GUI:: drumgizmo-0.9.14/plugingui/powerbutton.h0000644000076400017500000000326713077167132015332 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * powerbutton.h * * Thu Mar 23 12:30:50 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "texture.h" #include "toggle.h" namespace GUI { class PowerButton : public Toggle { public: PowerButton(Widget* parent); virtual ~PowerButton() = default; protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: Texture on{getImageCache(), ":resources/bypass_button.png", 32, 0, 16, 16}; Texture on_clicked{getImageCache(), ":resources/bypass_button.png", 48, 0, 16, 16}; Texture off{getImageCache(), ":resources/bypass_button.png", 0, 0, 16, 16}; Texture off_clicked{getImageCache(), ":resources/bypass_button.png", 16, 0, 16, 16}; }; } // GUI:: drumgizmo-0.9.14/plugingui/Makefile.in0000644000076400017500000027575613106052034014637 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@ noinst_PROGRAMS = plugingui$(EXEEXT) rcgen$(EXEEXT) @ENABLE_X11_TRUE@am__append_1 = \ @ENABLE_X11_TRUE@ nativewindow_x11.cc @ENABLE_WIN32_TRUE@am__append_2 = \ @ENABLE_WIN32_TRUE@ nativewindow_win32.cc @ENABLE_PUGL_TRUE@am__append_3 = \ @ENABLE_PUGL_TRUE@ nativewindow_pugl.cc \ @ENABLE_PUGL_TRUE@ $(top_srcdir)/pugl/pugl/pugl_x11.c subdir = plugingui DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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 = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libdggui_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) @ENABLE_X11_TRUE@am__objects_1 = libdggui_la-nativewindow_x11.lo @ENABLE_WIN32_TRUE@am__objects_2 = libdggui_la-nativewindow_win32.lo @ENABLE_PUGL_TRUE@am__objects_3 = libdggui_la-nativewindow_pugl.lo \ @ENABLE_PUGL_TRUE@ libdggui_la-pugl_x11.lo nodist_libdggui_la_OBJECTS = libdggui_la-abouttab.lo \ libdggui_la-button.lo libdggui_la-button_base.lo \ libdggui_la-checkbox.lo libdggui_la-colour.lo \ libdggui_la-combobox.lo libdggui_la-dialog.lo \ libdggui_la-directory.lo \ libdggui_la-diskstreamingframecontent.lo \ libdggui_la-drumkitframecontent.lo libdggui_la-eventhandler.lo \ libdggui_la-filebrowser.lo libdggui_la-font.lo \ libdggui_la-frame.lo libdggui_la-humanizerframecontent.lo \ libdggui_la-image.lo libdggui_la-imagecache.lo \ libdggui_la-knob.lo libdggui_la-label.lo libdggui_la-layout.lo \ libdggui_la-led.lo libdggui_la-lineedit.lo \ libdggui_la-listbox.lo libdggui_la-listboxbasic.lo \ libdggui_la-listboxthin.lo libdggui_la-maintab.lo \ libdggui_la-mainwindow.lo libdggui_la-painter.lo \ libdggui_la-pixelbuffer.lo libdggui_la-pluginconfig.lo \ libdggui_la-powerbutton.lo libdggui_la-progressbar.lo \ libdggui_la-resamplingframecontent.lo libdggui_la-resource.lo \ libdggui_la-resource_data.lo libdggui_la-scrollbar.lo \ libdggui_la-slider.lo libdggui_la-stackedwidget.lo \ libdggui_la-statusframecontent.lo libdggui_la-tabbutton.lo \ libdggui_la-tabwidget.lo libdggui_la-textedit.lo \ libdggui_la-texture.lo libdggui_la-texturedbox.lo \ libdggui_la-toggle.lo libdggui_la-utf8.lo \ libdggui_la-verticalline.lo libdggui_la-widget.lo \ libdggui_la-window.lo libdggui_la-lodepng.lo $(am__objects_1) \ $(am__objects_2) $(am__objects_3) libdggui_la_OBJECTS = $(nodist_libdggui_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 = PROGRAMS = $(noinst_PROGRAMS) am_plugingui_OBJECTS = plugingui-testmain.$(OBJEXT) \ plugingui-hugin.$(OBJEXT) plugingui_OBJECTS = $(am_plugingui_OBJECTS) plugingui_DEPENDENCIES = libdggui.la $(top_srcdir)/src/libdg.la plugingui_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(plugingui_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_rcgen_OBJECTS = rcgen.$(OBJEXT) rcgen_OBJECTS = $(am_rcgen_OBJECTS) rcgen_LDADD = $(LDADD) 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 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(nodist_libdggui_la_SOURCES) $(plugingui_SOURCES) \ $(rcgen_SOURCES) DIST_SOURCES = $(plugingui_SOURCES) $(rcgen_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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ noinst_LTLIBRARIES = libdggui.la # If you add a file here, remember to add it to plugin/Makefile.mingw32.in RES = \ resources/bg.png \ resources/bypass_button.png \ resources/font.png \ resources/fontemboss.png \ resources/knob.png \ resources/logo.png \ resources/png_error \ resources/progress.png \ resources/pushbutton.png \ resources/sidebar.png \ resources/slider.png \ resources/switch_back_off.png \ resources/switch_back_on.png \ resources/switch_front.png \ resources/tab.png \ resources/thinlistbox.png \ resources/topbar.png \ resources/toplogo.png \ resources/vertline.png \ resources/widget.png \ ../ABOUT \ ../AUTHORS \ ../COPYING libdggui_la_CPPFLAGS = \ $(GUI_CPPFLAGS) \ -I$(top_srcdir)/hugin \ -I$(top_srcdir)/src \ -I$(top_srcdir)/include \ -DWITH_HUG_MUTEX $(PTHREAD_CFLAGS) \ -DLODEPNG_NO_COMPILE_ENCODER \ -DLODEPNG_NO_COMPILE_DISK \ -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS \ -DLODEPNG_NO_COMPILE_ERROR_TEXT \ -DLODEPNG_NO_COMPILE_CPP libdggui_la_LIBADD = \ $(GUI_LIBS) $(PTHREAD_LIBS) # If you add a file here, remember to add it to plugin/Makefile.mingw32.in nodist_libdggui_la_SOURCES = abouttab.cc button.cc button_base.cc \ checkbox.cc colour.cc combobox.cc dialog.cc directory.cc \ diskstreamingframecontent.cc drumkitframecontent.cc \ eventhandler.cc filebrowser.cc font.cc frame.cc \ humanizerframecontent.cc image.cc imagecache.cc knob.cc \ label.cc layout.cc led.cc lineedit.cc listbox.cc \ listboxbasic.cc listboxthin.cc maintab.cc mainwindow.cc \ painter.cc pixelbuffer.cc pluginconfig.cc powerbutton.cc \ progressbar.cc resamplingframecontent.cc resource.cc \ resource_data.cc scrollbar.cc slider.cc stackedwidget.cc \ statusframecontent.cc tabbutton.cc tabwidget.cc textedit.cc \ texture.cc texturedbox.cc toggle.cc utf8.cc verticalline.cc \ widget.cc window.cc lodepng/lodepng.cpp $(am__append_1) \ $(am__append_2) $(am__append_3) #if ENABLE_COCOA #nodist_libdggui_la_SOURCES += \ # nativewindow_cocoa.m \ # nativewindow_cocoa.cc #endif plugingui_LDADD = libdggui.la $(top_srcdir)/src/libdg.la plugingui_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) \ -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/hugin plugingui_CFLAGS = $(plugingui_CXXFLAGS) plugingui_SOURCES = \ testmain.cc \ $(top_srcdir)/hugin/hugin.c rcgen_SOURCES = rcgen.cc EXTRA_DIST = \ $(nodist_libdggui_la_SOURCES) \ $(RES) \ abouttab.h \ button.h \ button_base.h \ canvas.h \ checkbox.h \ colour.h \ combobox.h \ dialog.h \ directory.h \ diskstreamingframecontent.h \ drawable.h \ drumkitframecontent.h \ eventhandler.h \ filebrowser.h \ font.h \ frame.h \ guievent.h \ humanizerframecontent.h \ image.h \ imagecache.h \ knob.h \ label.h \ layout.h \ led.h \ lineedit.h \ listbox.h \ listboxbasic.h \ listboxthin.h \ maintab.h \ mainwindow.h \ nativewindow.h \ nativewindow_cocoa.h \ nativewindow_pugl.h \ nativewindow_win32.h \ nativewindow_x11.h \ painter.h \ pixelbuffer.h \ pluginconfig.h \ powerbutton.h \ progressbar.h \ resamplingframecontent.h \ resource.h \ resource_data.h \ scrollbar.h \ slider.h \ stackedwidget.h \ statusframecontent.h \ tabbutton.h \ tabwidget.h \ textedit.h \ texture.h \ texturedbox.h \ toggle.h \ utf8.h \ verticalline.h \ widget.h \ window.h \ lodepng/lodepng.h all: all-am .SUFFIXES: .SUFFIXES: .c .cc .cpp .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 plugingui/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu plugingui/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): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_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}; \ } libdggui.la: $(libdggui_la_OBJECTS) $(libdggui_la_DEPENDENCIES) $(EXTRA_libdggui_la_DEPENDENCIES) $(AM_V_CXXLD)$(CXXLINK) $(libdggui_la_OBJECTS) $(libdggui_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_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 plugingui$(EXEEXT): $(plugingui_OBJECTS) $(plugingui_DEPENDENCIES) $(EXTRA_plugingui_DEPENDENCIES) @rm -f plugingui$(EXEEXT) $(AM_V_CXXLD)$(plugingui_LINK) $(plugingui_OBJECTS) $(plugingui_LDADD) $(LIBS) rcgen$(EXEEXT): $(rcgen_OBJECTS) $(rcgen_DEPENDENCIES) $(EXTRA_rcgen_DEPENDENCIES) @rm -f rcgen$(EXEEXT) $(AM_V_CXXLD)$(CXXLINK) $(rcgen_OBJECTS) $(rcgen_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-abouttab.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-button.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-button_base.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-checkbox.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-colour.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-combobox.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-dialog.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-directory.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-diskstreamingframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-drumkitframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-eventhandler.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-filebrowser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-font.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-frame.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-humanizerframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-image.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-imagecache.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-knob.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-label.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-layout.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-led.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-lineedit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-listbox.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-listboxbasic.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-listboxthin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-lodepng.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-maintab.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-mainwindow.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-nativewindow_pugl.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-nativewindow_win32.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-nativewindow_x11.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-painter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-pixelbuffer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-pluginconfig.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-powerbutton.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-progressbar.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-pugl_x11.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-resamplingframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-resource.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-resource_data.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-scrollbar.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-slider.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-stackedwidget.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-statusframecontent.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-tabbutton.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-tabwidget.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-textedit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-texture.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-texturedbox.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-toggle.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-utf8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-verticalline.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-widget.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdggui_la-window.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugingui-hugin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugingui-testmain.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rcgen.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 $@ $< libdggui_la-pugl_x11.lo: $(top_srcdir)/pugl/pugl/pugl_x11.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libdggui_la-pugl_x11.lo -MD -MP -MF $(DEPDIR)/libdggui_la-pugl_x11.Tpo -c -o libdggui_la-pugl_x11.lo `test -f '$(top_srcdir)/pugl/pugl/pugl_x11.c' || echo '$(srcdir)/'`$(top_srcdir)/pugl/pugl/pugl_x11.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-pugl_x11.Tpo $(DEPDIR)/libdggui_la-pugl_x11.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/pugl/pugl/pugl_x11.c' object='libdggui_la-pugl_x11.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 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libdggui_la-pugl_x11.lo `test -f '$(top_srcdir)/pugl/pugl/pugl_x11.c' || echo '$(srcdir)/'`$(top_srcdir)/pugl/pugl/pugl_x11.c plugingui-hugin.o: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CFLAGS) $(CFLAGS) -MT plugingui-hugin.o -MD -MP -MF $(DEPDIR)/plugingui-hugin.Tpo -c -o plugingui-hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/plugingui-hugin.Tpo $(DEPDIR)/plugingui-hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='plugingui-hugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CFLAGS) $(CFLAGS) -c -o plugingui-hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c plugingui-hugin.obj: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CFLAGS) $(CFLAGS) -MT plugingui-hugin.obj -MD -MP -MF $(DEPDIR)/plugingui-hugin.Tpo -c -o plugingui-hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/plugingui-hugin.Tpo $(DEPDIR)/plugingui-hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='plugingui-hugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CFLAGS) $(CFLAGS) -c -o plugingui-hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< libdggui_la-abouttab.lo: abouttab.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-abouttab.lo -MD -MP -MF $(DEPDIR)/libdggui_la-abouttab.Tpo -c -o libdggui_la-abouttab.lo `test -f 'abouttab.cc' || echo '$(srcdir)/'`abouttab.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-abouttab.Tpo $(DEPDIR)/libdggui_la-abouttab.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='abouttab.cc' object='libdggui_la-abouttab.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-abouttab.lo `test -f 'abouttab.cc' || echo '$(srcdir)/'`abouttab.cc libdggui_la-button.lo: button.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-button.lo -MD -MP -MF $(DEPDIR)/libdggui_la-button.Tpo -c -o libdggui_la-button.lo `test -f 'button.cc' || echo '$(srcdir)/'`button.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-button.Tpo $(DEPDIR)/libdggui_la-button.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='button.cc' object='libdggui_la-button.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-button.lo `test -f 'button.cc' || echo '$(srcdir)/'`button.cc libdggui_la-button_base.lo: button_base.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-button_base.lo -MD -MP -MF $(DEPDIR)/libdggui_la-button_base.Tpo -c -o libdggui_la-button_base.lo `test -f 'button_base.cc' || echo '$(srcdir)/'`button_base.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-button_base.Tpo $(DEPDIR)/libdggui_la-button_base.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='button_base.cc' object='libdggui_la-button_base.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-button_base.lo `test -f 'button_base.cc' || echo '$(srcdir)/'`button_base.cc libdggui_la-checkbox.lo: checkbox.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-checkbox.lo -MD -MP -MF $(DEPDIR)/libdggui_la-checkbox.Tpo -c -o libdggui_la-checkbox.lo `test -f 'checkbox.cc' || echo '$(srcdir)/'`checkbox.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-checkbox.Tpo $(DEPDIR)/libdggui_la-checkbox.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='checkbox.cc' object='libdggui_la-checkbox.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-checkbox.lo `test -f 'checkbox.cc' || echo '$(srcdir)/'`checkbox.cc libdggui_la-colour.lo: colour.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-colour.lo -MD -MP -MF $(DEPDIR)/libdggui_la-colour.Tpo -c -o libdggui_la-colour.lo `test -f 'colour.cc' || echo '$(srcdir)/'`colour.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-colour.Tpo $(DEPDIR)/libdggui_la-colour.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='colour.cc' object='libdggui_la-colour.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-colour.lo `test -f 'colour.cc' || echo '$(srcdir)/'`colour.cc libdggui_la-combobox.lo: combobox.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-combobox.lo -MD -MP -MF $(DEPDIR)/libdggui_la-combobox.Tpo -c -o libdggui_la-combobox.lo `test -f 'combobox.cc' || echo '$(srcdir)/'`combobox.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-combobox.Tpo $(DEPDIR)/libdggui_la-combobox.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='combobox.cc' object='libdggui_la-combobox.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-combobox.lo `test -f 'combobox.cc' || echo '$(srcdir)/'`combobox.cc libdggui_la-dialog.lo: dialog.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-dialog.lo -MD -MP -MF $(DEPDIR)/libdggui_la-dialog.Tpo -c -o libdggui_la-dialog.lo `test -f 'dialog.cc' || echo '$(srcdir)/'`dialog.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-dialog.Tpo $(DEPDIR)/libdggui_la-dialog.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dialog.cc' object='libdggui_la-dialog.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-dialog.lo `test -f 'dialog.cc' || echo '$(srcdir)/'`dialog.cc libdggui_la-directory.lo: directory.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-directory.lo -MD -MP -MF $(DEPDIR)/libdggui_la-directory.Tpo -c -o libdggui_la-directory.lo `test -f 'directory.cc' || echo '$(srcdir)/'`directory.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-directory.Tpo $(DEPDIR)/libdggui_la-directory.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='directory.cc' object='libdggui_la-directory.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-directory.lo `test -f 'directory.cc' || echo '$(srcdir)/'`directory.cc libdggui_la-diskstreamingframecontent.lo: diskstreamingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-diskstreamingframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-diskstreamingframecontent.Tpo -c -o libdggui_la-diskstreamingframecontent.lo `test -f 'diskstreamingframecontent.cc' || echo '$(srcdir)/'`diskstreamingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-diskstreamingframecontent.Tpo $(DEPDIR)/libdggui_la-diskstreamingframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='diskstreamingframecontent.cc' object='libdggui_la-diskstreamingframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-diskstreamingframecontent.lo `test -f 'diskstreamingframecontent.cc' || echo '$(srcdir)/'`diskstreamingframecontent.cc libdggui_la-drumkitframecontent.lo: drumkitframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-drumkitframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-drumkitframecontent.Tpo -c -o libdggui_la-drumkitframecontent.lo `test -f 'drumkitframecontent.cc' || echo '$(srcdir)/'`drumkitframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-drumkitframecontent.Tpo $(DEPDIR)/libdggui_la-drumkitframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumkitframecontent.cc' object='libdggui_la-drumkitframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-drumkitframecontent.lo `test -f 'drumkitframecontent.cc' || echo '$(srcdir)/'`drumkitframecontent.cc libdggui_la-eventhandler.lo: eventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-eventhandler.lo -MD -MP -MF $(DEPDIR)/libdggui_la-eventhandler.Tpo -c -o libdggui_la-eventhandler.lo `test -f 'eventhandler.cc' || echo '$(srcdir)/'`eventhandler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-eventhandler.Tpo $(DEPDIR)/libdggui_la-eventhandler.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventhandler.cc' object='libdggui_la-eventhandler.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-eventhandler.lo `test -f 'eventhandler.cc' || echo '$(srcdir)/'`eventhandler.cc libdggui_la-filebrowser.lo: filebrowser.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-filebrowser.lo -MD -MP -MF $(DEPDIR)/libdggui_la-filebrowser.Tpo -c -o libdggui_la-filebrowser.lo `test -f 'filebrowser.cc' || echo '$(srcdir)/'`filebrowser.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-filebrowser.Tpo $(DEPDIR)/libdggui_la-filebrowser.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='filebrowser.cc' object='libdggui_la-filebrowser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-filebrowser.lo `test -f 'filebrowser.cc' || echo '$(srcdir)/'`filebrowser.cc libdggui_la-font.lo: font.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-font.lo -MD -MP -MF $(DEPDIR)/libdggui_la-font.Tpo -c -o libdggui_la-font.lo `test -f 'font.cc' || echo '$(srcdir)/'`font.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-font.Tpo $(DEPDIR)/libdggui_la-font.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='font.cc' object='libdggui_la-font.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-font.lo `test -f 'font.cc' || echo '$(srcdir)/'`font.cc libdggui_la-frame.lo: frame.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-frame.lo -MD -MP -MF $(DEPDIR)/libdggui_la-frame.Tpo -c -o libdggui_la-frame.lo `test -f 'frame.cc' || echo '$(srcdir)/'`frame.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-frame.Tpo $(DEPDIR)/libdggui_la-frame.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='frame.cc' object='libdggui_la-frame.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-frame.lo `test -f 'frame.cc' || echo '$(srcdir)/'`frame.cc libdggui_la-humanizerframecontent.lo: humanizerframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-humanizerframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-humanizerframecontent.Tpo -c -o libdggui_la-humanizerframecontent.lo `test -f 'humanizerframecontent.cc' || echo '$(srcdir)/'`humanizerframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-humanizerframecontent.Tpo $(DEPDIR)/libdggui_la-humanizerframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='humanizerframecontent.cc' object='libdggui_la-humanizerframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-humanizerframecontent.lo `test -f 'humanizerframecontent.cc' || echo '$(srcdir)/'`humanizerframecontent.cc libdggui_la-image.lo: image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-image.lo -MD -MP -MF $(DEPDIR)/libdggui_la-image.Tpo -c -o libdggui_la-image.lo `test -f 'image.cc' || echo '$(srcdir)/'`image.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-image.Tpo $(DEPDIR)/libdggui_la-image.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='image.cc' object='libdggui_la-image.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-image.lo `test -f 'image.cc' || echo '$(srcdir)/'`image.cc libdggui_la-imagecache.lo: imagecache.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-imagecache.lo -MD -MP -MF $(DEPDIR)/libdggui_la-imagecache.Tpo -c -o libdggui_la-imagecache.lo `test -f 'imagecache.cc' || echo '$(srcdir)/'`imagecache.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-imagecache.Tpo $(DEPDIR)/libdggui_la-imagecache.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='imagecache.cc' object='libdggui_la-imagecache.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-imagecache.lo `test -f 'imagecache.cc' || echo '$(srcdir)/'`imagecache.cc libdggui_la-knob.lo: knob.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-knob.lo -MD -MP -MF $(DEPDIR)/libdggui_la-knob.Tpo -c -o libdggui_la-knob.lo `test -f 'knob.cc' || echo '$(srcdir)/'`knob.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-knob.Tpo $(DEPDIR)/libdggui_la-knob.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='knob.cc' object='libdggui_la-knob.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-knob.lo `test -f 'knob.cc' || echo '$(srcdir)/'`knob.cc libdggui_la-label.lo: label.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-label.lo -MD -MP -MF $(DEPDIR)/libdggui_la-label.Tpo -c -o libdggui_la-label.lo `test -f 'label.cc' || echo '$(srcdir)/'`label.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-label.Tpo $(DEPDIR)/libdggui_la-label.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='label.cc' object='libdggui_la-label.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-label.lo `test -f 'label.cc' || echo '$(srcdir)/'`label.cc libdggui_la-layout.lo: layout.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-layout.lo -MD -MP -MF $(DEPDIR)/libdggui_la-layout.Tpo -c -o libdggui_la-layout.lo `test -f 'layout.cc' || echo '$(srcdir)/'`layout.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-layout.Tpo $(DEPDIR)/libdggui_la-layout.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='layout.cc' object='libdggui_la-layout.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-layout.lo `test -f 'layout.cc' || echo '$(srcdir)/'`layout.cc libdggui_la-led.lo: led.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-led.lo -MD -MP -MF $(DEPDIR)/libdggui_la-led.Tpo -c -o libdggui_la-led.lo `test -f 'led.cc' || echo '$(srcdir)/'`led.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-led.Tpo $(DEPDIR)/libdggui_la-led.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='led.cc' object='libdggui_la-led.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-led.lo `test -f 'led.cc' || echo '$(srcdir)/'`led.cc libdggui_la-lineedit.lo: lineedit.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-lineedit.lo -MD -MP -MF $(DEPDIR)/libdggui_la-lineedit.Tpo -c -o libdggui_la-lineedit.lo `test -f 'lineedit.cc' || echo '$(srcdir)/'`lineedit.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-lineedit.Tpo $(DEPDIR)/libdggui_la-lineedit.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='lineedit.cc' object='libdggui_la-lineedit.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-lineedit.lo `test -f 'lineedit.cc' || echo '$(srcdir)/'`lineedit.cc libdggui_la-listbox.lo: listbox.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-listbox.lo -MD -MP -MF $(DEPDIR)/libdggui_la-listbox.Tpo -c -o libdggui_la-listbox.lo `test -f 'listbox.cc' || echo '$(srcdir)/'`listbox.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-listbox.Tpo $(DEPDIR)/libdggui_la-listbox.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='listbox.cc' object='libdggui_la-listbox.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-listbox.lo `test -f 'listbox.cc' || echo '$(srcdir)/'`listbox.cc libdggui_la-listboxbasic.lo: listboxbasic.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-listboxbasic.lo -MD -MP -MF $(DEPDIR)/libdggui_la-listboxbasic.Tpo -c -o libdggui_la-listboxbasic.lo `test -f 'listboxbasic.cc' || echo '$(srcdir)/'`listboxbasic.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-listboxbasic.Tpo $(DEPDIR)/libdggui_la-listboxbasic.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='listboxbasic.cc' object='libdggui_la-listboxbasic.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-listboxbasic.lo `test -f 'listboxbasic.cc' || echo '$(srcdir)/'`listboxbasic.cc libdggui_la-listboxthin.lo: listboxthin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-listboxthin.lo -MD -MP -MF $(DEPDIR)/libdggui_la-listboxthin.Tpo -c -o libdggui_la-listboxthin.lo `test -f 'listboxthin.cc' || echo '$(srcdir)/'`listboxthin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-listboxthin.Tpo $(DEPDIR)/libdggui_la-listboxthin.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='listboxthin.cc' object='libdggui_la-listboxthin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-listboxthin.lo `test -f 'listboxthin.cc' || echo '$(srcdir)/'`listboxthin.cc libdggui_la-maintab.lo: maintab.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-maintab.lo -MD -MP -MF $(DEPDIR)/libdggui_la-maintab.Tpo -c -o libdggui_la-maintab.lo `test -f 'maintab.cc' || echo '$(srcdir)/'`maintab.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-maintab.Tpo $(DEPDIR)/libdggui_la-maintab.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='maintab.cc' object='libdggui_la-maintab.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-maintab.lo `test -f 'maintab.cc' || echo '$(srcdir)/'`maintab.cc libdggui_la-mainwindow.lo: mainwindow.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-mainwindow.lo -MD -MP -MF $(DEPDIR)/libdggui_la-mainwindow.Tpo -c -o libdggui_la-mainwindow.lo `test -f 'mainwindow.cc' || echo '$(srcdir)/'`mainwindow.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-mainwindow.Tpo $(DEPDIR)/libdggui_la-mainwindow.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='mainwindow.cc' object='libdggui_la-mainwindow.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-mainwindow.lo `test -f 'mainwindow.cc' || echo '$(srcdir)/'`mainwindow.cc libdggui_la-painter.lo: painter.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-painter.lo -MD -MP -MF $(DEPDIR)/libdggui_la-painter.Tpo -c -o libdggui_la-painter.lo `test -f 'painter.cc' || echo '$(srcdir)/'`painter.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-painter.Tpo $(DEPDIR)/libdggui_la-painter.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='painter.cc' object='libdggui_la-painter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-painter.lo `test -f 'painter.cc' || echo '$(srcdir)/'`painter.cc libdggui_la-pixelbuffer.lo: pixelbuffer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-pixelbuffer.lo -MD -MP -MF $(DEPDIR)/libdggui_la-pixelbuffer.Tpo -c -o libdggui_la-pixelbuffer.lo `test -f 'pixelbuffer.cc' || echo '$(srcdir)/'`pixelbuffer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-pixelbuffer.Tpo $(DEPDIR)/libdggui_la-pixelbuffer.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='pixelbuffer.cc' object='libdggui_la-pixelbuffer.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-pixelbuffer.lo `test -f 'pixelbuffer.cc' || echo '$(srcdir)/'`pixelbuffer.cc libdggui_la-pluginconfig.lo: pluginconfig.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-pluginconfig.lo -MD -MP -MF $(DEPDIR)/libdggui_la-pluginconfig.Tpo -c -o libdggui_la-pluginconfig.lo `test -f 'pluginconfig.cc' || echo '$(srcdir)/'`pluginconfig.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-pluginconfig.Tpo $(DEPDIR)/libdggui_la-pluginconfig.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='pluginconfig.cc' object='libdggui_la-pluginconfig.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-pluginconfig.lo `test -f 'pluginconfig.cc' || echo '$(srcdir)/'`pluginconfig.cc libdggui_la-powerbutton.lo: powerbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-powerbutton.lo -MD -MP -MF $(DEPDIR)/libdggui_la-powerbutton.Tpo -c -o libdggui_la-powerbutton.lo `test -f 'powerbutton.cc' || echo '$(srcdir)/'`powerbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-powerbutton.Tpo $(DEPDIR)/libdggui_la-powerbutton.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='powerbutton.cc' object='libdggui_la-powerbutton.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-powerbutton.lo `test -f 'powerbutton.cc' || echo '$(srcdir)/'`powerbutton.cc libdggui_la-progressbar.lo: progressbar.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-progressbar.lo -MD -MP -MF $(DEPDIR)/libdggui_la-progressbar.Tpo -c -o libdggui_la-progressbar.lo `test -f 'progressbar.cc' || echo '$(srcdir)/'`progressbar.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-progressbar.Tpo $(DEPDIR)/libdggui_la-progressbar.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='progressbar.cc' object='libdggui_la-progressbar.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-progressbar.lo `test -f 'progressbar.cc' || echo '$(srcdir)/'`progressbar.cc libdggui_la-resamplingframecontent.lo: resamplingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-resamplingframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-resamplingframecontent.Tpo -c -o libdggui_la-resamplingframecontent.lo `test -f 'resamplingframecontent.cc' || echo '$(srcdir)/'`resamplingframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-resamplingframecontent.Tpo $(DEPDIR)/libdggui_la-resamplingframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resamplingframecontent.cc' object='libdggui_la-resamplingframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-resamplingframecontent.lo `test -f 'resamplingframecontent.cc' || echo '$(srcdir)/'`resamplingframecontent.cc libdggui_la-resource.lo: resource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-resource.lo -MD -MP -MF $(DEPDIR)/libdggui_la-resource.Tpo -c -o libdggui_la-resource.lo `test -f 'resource.cc' || echo '$(srcdir)/'`resource.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-resource.Tpo $(DEPDIR)/libdggui_la-resource.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resource.cc' object='libdggui_la-resource.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-resource.lo `test -f 'resource.cc' || echo '$(srcdir)/'`resource.cc libdggui_la-resource_data.lo: resource_data.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-resource_data.lo -MD -MP -MF $(DEPDIR)/libdggui_la-resource_data.Tpo -c -o libdggui_la-resource_data.lo `test -f 'resource_data.cc' || echo '$(srcdir)/'`resource_data.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-resource_data.Tpo $(DEPDIR)/libdggui_la-resource_data.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='resource_data.cc' object='libdggui_la-resource_data.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-resource_data.lo `test -f 'resource_data.cc' || echo '$(srcdir)/'`resource_data.cc libdggui_la-scrollbar.lo: scrollbar.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-scrollbar.lo -MD -MP -MF $(DEPDIR)/libdggui_la-scrollbar.Tpo -c -o libdggui_la-scrollbar.lo `test -f 'scrollbar.cc' || echo '$(srcdir)/'`scrollbar.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-scrollbar.Tpo $(DEPDIR)/libdggui_la-scrollbar.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='scrollbar.cc' object='libdggui_la-scrollbar.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-scrollbar.lo `test -f 'scrollbar.cc' || echo '$(srcdir)/'`scrollbar.cc libdggui_la-slider.lo: slider.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-slider.lo -MD -MP -MF $(DEPDIR)/libdggui_la-slider.Tpo -c -o libdggui_la-slider.lo `test -f 'slider.cc' || echo '$(srcdir)/'`slider.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-slider.Tpo $(DEPDIR)/libdggui_la-slider.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='slider.cc' object='libdggui_la-slider.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-slider.lo `test -f 'slider.cc' || echo '$(srcdir)/'`slider.cc libdggui_la-stackedwidget.lo: stackedwidget.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-stackedwidget.lo -MD -MP -MF $(DEPDIR)/libdggui_la-stackedwidget.Tpo -c -o libdggui_la-stackedwidget.lo `test -f 'stackedwidget.cc' || echo '$(srcdir)/'`stackedwidget.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-stackedwidget.Tpo $(DEPDIR)/libdggui_la-stackedwidget.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='stackedwidget.cc' object='libdggui_la-stackedwidget.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-stackedwidget.lo `test -f 'stackedwidget.cc' || echo '$(srcdir)/'`stackedwidget.cc libdggui_la-statusframecontent.lo: statusframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-statusframecontent.lo -MD -MP -MF $(DEPDIR)/libdggui_la-statusframecontent.Tpo -c -o libdggui_la-statusframecontent.lo `test -f 'statusframecontent.cc' || echo '$(srcdir)/'`statusframecontent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-statusframecontent.Tpo $(DEPDIR)/libdggui_la-statusframecontent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='statusframecontent.cc' object='libdggui_la-statusframecontent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-statusframecontent.lo `test -f 'statusframecontent.cc' || echo '$(srcdir)/'`statusframecontent.cc libdggui_la-tabbutton.lo: tabbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-tabbutton.lo -MD -MP -MF $(DEPDIR)/libdggui_la-tabbutton.Tpo -c -o libdggui_la-tabbutton.lo `test -f 'tabbutton.cc' || echo '$(srcdir)/'`tabbutton.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-tabbutton.Tpo $(DEPDIR)/libdggui_la-tabbutton.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tabbutton.cc' object='libdggui_la-tabbutton.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-tabbutton.lo `test -f 'tabbutton.cc' || echo '$(srcdir)/'`tabbutton.cc libdggui_la-tabwidget.lo: tabwidget.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-tabwidget.lo -MD -MP -MF $(DEPDIR)/libdggui_la-tabwidget.Tpo -c -o libdggui_la-tabwidget.lo `test -f 'tabwidget.cc' || echo '$(srcdir)/'`tabwidget.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-tabwidget.Tpo $(DEPDIR)/libdggui_la-tabwidget.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tabwidget.cc' object='libdggui_la-tabwidget.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-tabwidget.lo `test -f 'tabwidget.cc' || echo '$(srcdir)/'`tabwidget.cc libdggui_la-textedit.lo: textedit.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-textedit.lo -MD -MP -MF $(DEPDIR)/libdggui_la-textedit.Tpo -c -o libdggui_la-textedit.lo `test -f 'textedit.cc' || echo '$(srcdir)/'`textedit.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-textedit.Tpo $(DEPDIR)/libdggui_la-textedit.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='textedit.cc' object='libdggui_la-textedit.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-textedit.lo `test -f 'textedit.cc' || echo '$(srcdir)/'`textedit.cc libdggui_la-texture.lo: texture.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-texture.lo -MD -MP -MF $(DEPDIR)/libdggui_la-texture.Tpo -c -o libdggui_la-texture.lo `test -f 'texture.cc' || echo '$(srcdir)/'`texture.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-texture.Tpo $(DEPDIR)/libdggui_la-texture.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='texture.cc' object='libdggui_la-texture.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-texture.lo `test -f 'texture.cc' || echo '$(srcdir)/'`texture.cc libdggui_la-texturedbox.lo: texturedbox.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-texturedbox.lo -MD -MP -MF $(DEPDIR)/libdggui_la-texturedbox.Tpo -c -o libdggui_la-texturedbox.lo `test -f 'texturedbox.cc' || echo '$(srcdir)/'`texturedbox.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-texturedbox.Tpo $(DEPDIR)/libdggui_la-texturedbox.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='texturedbox.cc' object='libdggui_la-texturedbox.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-texturedbox.lo `test -f 'texturedbox.cc' || echo '$(srcdir)/'`texturedbox.cc libdggui_la-toggle.lo: toggle.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-toggle.lo -MD -MP -MF $(DEPDIR)/libdggui_la-toggle.Tpo -c -o libdggui_la-toggle.lo `test -f 'toggle.cc' || echo '$(srcdir)/'`toggle.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-toggle.Tpo $(DEPDIR)/libdggui_la-toggle.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='toggle.cc' object='libdggui_la-toggle.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-toggle.lo `test -f 'toggle.cc' || echo '$(srcdir)/'`toggle.cc libdggui_la-utf8.lo: utf8.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-utf8.lo -MD -MP -MF $(DEPDIR)/libdggui_la-utf8.Tpo -c -o libdggui_la-utf8.lo `test -f 'utf8.cc' || echo '$(srcdir)/'`utf8.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-utf8.Tpo $(DEPDIR)/libdggui_la-utf8.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='utf8.cc' object='libdggui_la-utf8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-utf8.lo `test -f 'utf8.cc' || echo '$(srcdir)/'`utf8.cc libdggui_la-verticalline.lo: verticalline.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-verticalline.lo -MD -MP -MF $(DEPDIR)/libdggui_la-verticalline.Tpo -c -o libdggui_la-verticalline.lo `test -f 'verticalline.cc' || echo '$(srcdir)/'`verticalline.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-verticalline.Tpo $(DEPDIR)/libdggui_la-verticalline.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='verticalline.cc' object='libdggui_la-verticalline.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-verticalline.lo `test -f 'verticalline.cc' || echo '$(srcdir)/'`verticalline.cc libdggui_la-widget.lo: widget.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-widget.lo -MD -MP -MF $(DEPDIR)/libdggui_la-widget.Tpo -c -o libdggui_la-widget.lo `test -f 'widget.cc' || echo '$(srcdir)/'`widget.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-widget.Tpo $(DEPDIR)/libdggui_la-widget.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='widget.cc' object='libdggui_la-widget.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-widget.lo `test -f 'widget.cc' || echo '$(srcdir)/'`widget.cc libdggui_la-window.lo: window.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-window.lo -MD -MP -MF $(DEPDIR)/libdggui_la-window.Tpo -c -o libdggui_la-window.lo `test -f 'window.cc' || echo '$(srcdir)/'`window.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-window.Tpo $(DEPDIR)/libdggui_la-window.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='window.cc' object='libdggui_la-window.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-window.lo `test -f 'window.cc' || echo '$(srcdir)/'`window.cc libdggui_la-lodepng.lo: lodepng/lodepng.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-lodepng.lo -MD -MP -MF $(DEPDIR)/libdggui_la-lodepng.Tpo -c -o libdggui_la-lodepng.lo `test -f 'lodepng/lodepng.cpp' || echo '$(srcdir)/'`lodepng/lodepng.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-lodepng.Tpo $(DEPDIR)/libdggui_la-lodepng.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='lodepng/lodepng.cpp' object='libdggui_la-lodepng.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-lodepng.lo `test -f 'lodepng/lodepng.cpp' || echo '$(srcdir)/'`lodepng/lodepng.cpp libdggui_la-nativewindow_x11.lo: nativewindow_x11.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-nativewindow_x11.lo -MD -MP -MF $(DEPDIR)/libdggui_la-nativewindow_x11.Tpo -c -o libdggui_la-nativewindow_x11.lo `test -f 'nativewindow_x11.cc' || echo '$(srcdir)/'`nativewindow_x11.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-nativewindow_x11.Tpo $(DEPDIR)/libdggui_la-nativewindow_x11.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nativewindow_x11.cc' object='libdggui_la-nativewindow_x11.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-nativewindow_x11.lo `test -f 'nativewindow_x11.cc' || echo '$(srcdir)/'`nativewindow_x11.cc libdggui_la-nativewindow_win32.lo: nativewindow_win32.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-nativewindow_win32.lo -MD -MP -MF $(DEPDIR)/libdggui_la-nativewindow_win32.Tpo -c -o libdggui_la-nativewindow_win32.lo `test -f 'nativewindow_win32.cc' || echo '$(srcdir)/'`nativewindow_win32.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-nativewindow_win32.Tpo $(DEPDIR)/libdggui_la-nativewindow_win32.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nativewindow_win32.cc' object='libdggui_la-nativewindow_win32.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-nativewindow_win32.lo `test -f 'nativewindow_win32.cc' || echo '$(srcdir)/'`nativewindow_win32.cc libdggui_la-nativewindow_pugl.lo: nativewindow_pugl.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libdggui_la-nativewindow_pugl.lo -MD -MP -MF $(DEPDIR)/libdggui_la-nativewindow_pugl.Tpo -c -o libdggui_la-nativewindow_pugl.lo `test -f 'nativewindow_pugl.cc' || echo '$(srcdir)/'`nativewindow_pugl.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdggui_la-nativewindow_pugl.Tpo $(DEPDIR)/libdggui_la-nativewindow_pugl.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nativewindow_pugl.cc' object='libdggui_la-nativewindow_pugl.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libdggui_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libdggui_la-nativewindow_pugl.lo `test -f 'nativewindow_pugl.cc' || echo '$(srcdir)/'`nativewindow_pugl.cc plugingui-testmain.o: testmain.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CXXFLAGS) $(CXXFLAGS) -MT plugingui-testmain.o -MD -MP -MF $(DEPDIR)/plugingui-testmain.Tpo -c -o plugingui-testmain.o `test -f 'testmain.cc' || echo '$(srcdir)/'`testmain.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/plugingui-testmain.Tpo $(DEPDIR)/plugingui-testmain.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='testmain.cc' object='plugingui-testmain.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CXXFLAGS) $(CXXFLAGS) -c -o plugingui-testmain.o `test -f 'testmain.cc' || echo '$(srcdir)/'`testmain.cc plugingui-testmain.obj: testmain.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CXXFLAGS) $(CXXFLAGS) -MT plugingui-testmain.obj -MD -MP -MF $(DEPDIR)/plugingui-testmain.Tpo -c -o plugingui-testmain.obj `if test -f 'testmain.cc'; then $(CYGPATH_W) 'testmain.cc'; else $(CYGPATH_W) '$(srcdir)/testmain.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/plugingui-testmain.Tpo $(DEPDIR)/plugingui-testmain.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='testmain.cc' object='plugingui-testmain.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugingui_CXXFLAGS) $(CXXFLAGS) -c -o plugingui-testmain.obj `if test -f 'testmain.cc'; then $(CYGPATH_W) 'testmain.cc'; else $(CYGPATH_W) '$(srcdir)/testmain.cc'; fi` .cpp.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -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 $(LTLIBRARIES) $(PROGRAMS) 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." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ clean-noinstPROGRAMS 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-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: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ 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-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 resource_data.cc : rcgen $(RES) ./rcgen $(RES) > resource_data.cc # 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: drumgizmo-0.9.14/plugingui/toggle.cc0000644000076400017500000000454213077713327014361 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * toggle.cc * * Wed Mar 22 22:58:57 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "toggle.h" namespace GUI { Toggle::Toggle(Widget* parent) : Widget(parent) { } void Toggle::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if((buttonEvent->direction == Direction::up) || buttonEvent->doubleClick) { buttonDown = false; clicked = false; if(inCheckbox) { internalSetChecked(!state); } } else { buttonDown = true; clicked = true; } redraw(); } void Toggle::setText(std::string text) { _text = text; redraw(); } void Toggle::keyEvent(KeyEvent* keyEvent) { if(keyEvent->keycode == Key::character && keyEvent->text == " ") { if(keyEvent->direction == Direction::up) { clicked = false; internalSetChecked(!state); } else { clicked = true; } redraw(); } } bool Toggle::checked() { return state; } void Toggle::setChecked(bool c) { internalSetChecked(c); } void Toggle::mouseLeaveEvent() { inCheckbox = false; if(buttonDown) { clicked = false; redraw(); } } void Toggle::mouseEnterEvent() { inCheckbox = true; if(buttonDown) { clicked = true; redraw(); } } void Toggle::internalSetChecked(bool checked) { if(state == checked) { return; } state = checked; stateChangedNotifier(state); redraw(); } } // GUI:: drumgizmo-0.9.14/plugingui/tabbutton.h0000644000076400017500000000424713101317655014736 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * tabbutton.h * * Thu Nov 24 18:52:26 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "button_base.h" #include "font.h" #include "texturedbox.h" namespace GUI { class ScrollEvent; class TabButton : public ButtonBase { public: TabButton(Widget* parent, Widget* tab_widget); virtual ~TabButton(); Widget* getTabWidget(); std::size_t getMinimalWidth() const; std::size_t getMinimalHeight() const; void setActive(bool active); Notifier switchTabNotifier; Notifier scrollNotifier; // float delta protected: // From Widget: virtual void repaintEvent(RepaintEvent* e) override; virtual void scrollEvent(ScrollEvent* scroll_event) override; private: void clickHandler(); Widget* tab_widget; bool active{false}; TexturedBox tab_active{getImageCache(), ":resources/tab.png", 0, 0, // atlas offset (x, y) 5, 1, 5, // dx1, dx2, dx3 5, 13, 1}; // dy1, dy2, dy3 TexturedBox tab_passive{getImageCache(), ":resources/tab.png", 11, 0, // atlas offset (x, y) 5, 1, 5, // dx1, dx2, dx3 5, 13, 1}; // dy1, dy2, dy3 Font font{":resources/fontemboss.png"}; }; } // GUI:: drumgizmo-0.9.14/plugingui/button.cc0000644000076400017500000000411113077120602014367 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * button.cc * * Sun Oct 9 13:01:56 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "button.h" #include "painter.h" #include #include namespace GUI { Button::Button(Widget* parent) : ButtonBase(parent) { } Button::~Button() { } void Button::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.clear(); int padTop = 3; int padLeft = 0; int padTextTop = 3; int w = width(); int h = height(); if(w == 0 || h == 0) { return; } if (enabled) { switch(draw_state) { case State::Up: box_up.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, box_up); break; case State::Down: box_down.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, box_down); break; } } else { box_grey.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, box_grey); p.setColour(Colour(0.55)); } auto x = padLeft + (width() - font.textWidth(text)) / 2; auto y = padTop + padTextTop + font.textHeight(text); p.drawText(x, y, font, text, enabled); } } // GUI:: drumgizmo-0.9.14/plugingui/lodepng/0000755000076400017500000000000013106063421014256 500000000000000drumgizmo-0.9.14/plugingui/lodepng/lodepng.h0000644000076400017500000024035413077162062016017 00000000000000/* LodePNG version 20160501 Copyright (c) 2005-2016 Lode Vandevenne This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #ifndef LODEPNG_H #define LODEPNG_H #include /*for size_t*/ extern const char* LODEPNG_VERSION_STRING; /* The following #defines are used to create code sections. They can be disabled to disable code sections, which can give faster compile time and smaller binary. The "NO_COMPILE" defines are designed to be used to pass as defines to the compiler command to disable them without modifying this header, e.g. -DLODEPNG_NO_COMPILE_ZLIB for gcc. In addition to those below, you can also define LODEPNG_NO_COMPILE_CRC to allow implementing a custom lodepng_crc32. */ /*deflate & zlib. If disabled, you must specify alternative zlib functions in the custom_zlib field of the compress and decompress settings*/ #ifndef LODEPNG_NO_COMPILE_ZLIB #define LODEPNG_COMPILE_ZLIB #endif /*png encoder and png decoder*/ #ifndef LODEPNG_NO_COMPILE_PNG #define LODEPNG_COMPILE_PNG #endif /*deflate&zlib decoder and png decoder*/ #ifndef LODEPNG_NO_COMPILE_DECODER #define LODEPNG_COMPILE_DECODER #endif /*deflate&zlib encoder and png encoder*/ #ifndef LODEPNG_NO_COMPILE_ENCODER #define LODEPNG_COMPILE_ENCODER #endif /*the optional built in harddisk file loading and saving functions*/ #ifndef LODEPNG_NO_COMPILE_DISK #define LODEPNG_COMPILE_DISK #endif /*support for chunks other than IHDR, IDAT, PLTE, tRNS, IEND: ancillary and unknown chunks*/ #ifndef LODEPNG_NO_COMPILE_ANCILLARY_CHUNKS #define LODEPNG_COMPILE_ANCILLARY_CHUNKS #endif /*ability to convert error numerical codes to English text string*/ #ifndef LODEPNG_NO_COMPILE_ERROR_TEXT #define LODEPNG_COMPILE_ERROR_TEXT #endif /*Compile the default allocators (C's free, malloc and realloc). If you disable this, you can define the functions lodepng_free, lodepng_malloc and lodepng_realloc in your source files with custom allocators.*/ #ifndef LODEPNG_NO_COMPILE_ALLOCATORS #define LODEPNG_COMPILE_ALLOCATORS #endif /*compile the C++ version (you can disable the C++ wrapper here even when compiling for C++)*/ #ifdef __cplusplus #ifndef LODEPNG_NO_COMPILE_CPP #define LODEPNG_COMPILE_CPP #endif #endif #ifdef LODEPNG_COMPILE_CPP #include #include #endif /*LODEPNG_COMPILE_CPP*/ #ifdef LODEPNG_COMPILE_PNG /*The PNG color types (also used for raw).*/ typedef enum LodePNGColorType { LCT_GREY = 0, /*greyscale: 1,2,4,8,16 bit*/ LCT_RGB = 2, /*RGB: 8,16 bit*/ LCT_PALETTE = 3, /*palette: 1,2,4,8 bit*/ LCT_GREY_ALPHA = 4, /*greyscale with alpha: 8,16 bit*/ LCT_RGBA = 6 /*RGB with alpha: 8,16 bit*/ } LodePNGColorType; #ifdef LODEPNG_COMPILE_DECODER /* Converts PNG data in memory to raw pixel data. out: Output parameter. Pointer to buffer that will contain the raw pixel data. After decoding, its size is w * h * (bytes per pixel) bytes larger than initially. Bytes per pixel depends on colortype and bitdepth. Must be freed after usage with free(*out). Note: for 16-bit per channel colors, uses big endian format like PNG does. w: Output parameter. Pointer to width of pixel data. h: Output parameter. Pointer to height of pixel data. in: Memory buffer with the PNG file. insize: size of the in buffer. colortype: the desired color type for the raw output image. See explanation on PNG color types. bitdepth: the desired bit depth for the raw output image. See explanation on PNG color types. Return value: LodePNG error code (0 means no error). */ unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize, LodePNGColorType colortype, unsigned bitdepth); /*Same as lodepng_decode_memory, but always decodes to 32-bit RGBA raw image*/ unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize); /*Same as lodepng_decode_memory, but always decodes to 24-bit RGB raw image*/ unsigned lodepng_decode24(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize); #ifdef LODEPNG_COMPILE_DISK /* Load PNG from disk, from file with given name. Same as the other decode functions, but instead takes a filename as input. */ unsigned lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename, LodePNGColorType colortype, unsigned bitdepth); /*Same as lodepng_decode_file, but always decodes to 32-bit RGBA raw image.*/ unsigned lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename); /*Same as lodepng_decode_file, but always decodes to 24-bit RGB raw image.*/ unsigned lodepng_decode24_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename); #endif /*LODEPNG_COMPILE_DISK*/ #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* Converts raw pixel data into a PNG image in memory. The colortype and bitdepth of the output PNG image cannot be chosen, they are automatically determined by the colortype, bitdepth and content of the input pixel data. Note: for 16-bit per channel colors, needs big endian format like PNG does. out: Output parameter. Pointer to buffer that will contain the PNG image data. Must be freed after usage with free(*out). outsize: Output parameter. Pointer to the size in bytes of the out buffer. image: The raw pixel data to encode. The size of this buffer should be w * h * (bytes per pixel), bytes per pixel depends on colortype and bitdepth. w: width of the raw pixel data in pixels. h: height of the raw pixel data in pixels. colortype: the color type of the raw input image. See explanation on PNG color types. bitdepth: the bit depth of the raw input image. See explanation on PNG color types. Return value: LodePNG error code (0 means no error). */ unsigned lodepng_encode_memory(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth); /*Same as lodepng_encode_memory, but always encodes from 32-bit RGBA raw image.*/ unsigned lodepng_encode32(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h); /*Same as lodepng_encode_memory, but always encodes from 24-bit RGB raw image.*/ unsigned lodepng_encode24(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h); #ifdef LODEPNG_COMPILE_DISK /* Converts raw pixel data into a PNG file on disk. Same as the other encode functions, but instead takes a filename as output. NOTE: This overwrites existing files without warning! */ unsigned lodepng_encode_file(const char* filename, const unsigned char* image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth); /*Same as lodepng_encode_file, but always encodes from 32-bit RGBA raw image.*/ unsigned lodepng_encode32_file(const char* filename, const unsigned char* image, unsigned w, unsigned h); /*Same as lodepng_encode_file, but always encodes from 24-bit RGB raw image.*/ unsigned lodepng_encode24_file(const char* filename, const unsigned char* image, unsigned w, unsigned h); #endif /*LODEPNG_COMPILE_DISK*/ #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_CPP namespace lodepng { #ifdef LODEPNG_COMPILE_DECODER /*Same as lodepng_decode_memory, but decodes to an std::vector. The colortype is the format to output the pixels to. Default is RGBA 8-bit per channel.*/ unsigned decode(std::vector& out, unsigned& w, unsigned& h, const unsigned char* in, size_t insize, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); unsigned decode(std::vector& out, unsigned& w, unsigned& h, const std::vector& in, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); #ifdef LODEPNG_COMPILE_DISK /* Converts PNG file from disk to raw pixel data in memory. Same as the other decode functions, but instead takes a filename as input. */ unsigned decode(std::vector& out, unsigned& w, unsigned& h, const std::string& filename, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); #endif /* LODEPNG_COMPILE_DISK */ #endif /* LODEPNG_COMPILE_DECODER */ #ifdef LODEPNG_COMPILE_ENCODER /*Same as lodepng_encode_memory, but encodes to an std::vector. colortype is that of the raw input data. The output PNG color type will be auto chosen.*/ unsigned encode(std::vector& out, const unsigned char* in, unsigned w, unsigned h, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); unsigned encode(std::vector& out, const std::vector& in, unsigned w, unsigned h, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); #ifdef LODEPNG_COMPILE_DISK /* Converts 32-bit RGBA raw pixel data into a PNG file on disk. Same as the other encode functions, but instead takes a filename as output. NOTE: This overwrites existing files without warning! */ unsigned encode(const std::string& filename, const unsigned char* in, unsigned w, unsigned h, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); unsigned encode(const std::string& filename, const std::vector& in, unsigned w, unsigned h, LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); #endif /* LODEPNG_COMPILE_DISK */ #endif /* LODEPNG_COMPILE_ENCODER */ } /* namespace lodepng */ #endif /*LODEPNG_COMPILE_CPP*/ #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ERROR_TEXT /*Returns an English description of the numerical error code.*/ const char* lodepng_error_text(unsigned code); #endif /*LODEPNG_COMPILE_ERROR_TEXT*/ #ifdef LODEPNG_COMPILE_DECODER /*Settings for zlib decompression*/ typedef struct LodePNGDecompressSettings LodePNGDecompressSettings; struct LodePNGDecompressSettings { unsigned ignore_adler32; /*if 1, continue and don't give an error message if the Adler32 checksum is corrupted*/ /*use custom zlib decoder instead of built in one (default: null)*/ unsigned (*custom_zlib)(unsigned char**, size_t*, const unsigned char*, size_t, const LodePNGDecompressSettings*); /*use custom deflate decoder instead of built in one (default: null) if custom_zlib is used, custom_deflate is ignored since only the built in zlib function will call custom_deflate*/ unsigned (*custom_inflate)(unsigned char**, size_t*, const unsigned char*, size_t, const LodePNGDecompressSettings*); const void* custom_context; /*optional custom settings for custom functions*/ }; extern const LodePNGDecompressSettings lodepng_default_decompress_settings; void lodepng_decompress_settings_init(LodePNGDecompressSettings* settings); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* Settings for zlib compression. Tweaking these settings tweaks the balance between speed and compression ratio. */ typedef struct LodePNGCompressSettings LodePNGCompressSettings; struct LodePNGCompressSettings /*deflate = compress*/ { /*LZ77 related settings*/ unsigned btype; /*the block type for LZ (0, 1, 2 or 3, see zlib standard). Should be 2 for proper compression.*/ unsigned use_lz77; /*whether or not to use LZ77. Should be 1 for proper compression.*/ unsigned windowsize; /*must be a power of two <= 32768. higher compresses more but is slower. Default value: 2048.*/ unsigned minmatch; /*mininum lz77 length. 3 is normally best, 6 can be better for some PNGs. Default: 0*/ unsigned nicematch; /*stop searching if >= this length found. Set to 258 for best compression. Default: 128*/ unsigned lazymatching; /*use lazy matching: better compression but a bit slower. Default: true*/ /*use custom zlib encoder instead of built in one (default: null)*/ unsigned (*custom_zlib)(unsigned char**, size_t*, const unsigned char*, size_t, const LodePNGCompressSettings*); /*use custom deflate encoder instead of built in one (default: null) if custom_zlib is used, custom_deflate is ignored since only the built in zlib function will call custom_deflate*/ unsigned (*custom_deflate)(unsigned char**, size_t*, const unsigned char*, size_t, const LodePNGCompressSettings*); const void* custom_context; /*optional custom settings for custom functions*/ }; extern const LodePNGCompressSettings lodepng_default_compress_settings; void lodepng_compress_settings_init(LodePNGCompressSettings* settings); #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_PNG /* Color mode of an image. Contains all information required to decode the pixel bits to RGBA colors. This information is the same as used in the PNG file format, and is used both for PNG and raw image data in LodePNG. */ typedef struct LodePNGColorMode { /*header (IHDR)*/ LodePNGColorType colortype; /*color type, see PNG standard or documentation further in this header file*/ unsigned bitdepth; /*bits per sample, see PNG standard or documentation further in this header file*/ /* palette (PLTE and tRNS) Dynamically allocated with the colors of the palette, including alpha. When encoding a PNG, to store your colors in the palette of the LodePNGColorMode, first use lodepng_palette_clear, then for each color use lodepng_palette_add. If you encode an image without alpha with palette, don't forget to put value 255 in each A byte of the palette. When decoding, by default you can ignore this palette, since LodePNG already fills the palette colors in the pixels of the raw RGBA output. The palette is only supported for color type 3. */ unsigned char* palette; /*palette in RGBARGBA... order. When allocated, must be either 0, or have size 1024*/ size_t palettesize; /*palette size in number of colors (amount of bytes is 4 * palettesize)*/ /* transparent color key (tRNS) This color uses the same bit depth as the bitdepth value in this struct, which can be 1-bit to 16-bit. For greyscale PNGs, r, g and b will all 3 be set to the same. When decoding, by default you can ignore this information, since LodePNG sets pixels with this key to transparent already in the raw RGBA output. The color key is only supported for color types 0 and 2. */ unsigned key_defined; /*is a transparent color key given? 0 = false, 1 = true*/ unsigned key_r; /*red/greyscale component of color key*/ unsigned key_g; /*green component of color key*/ unsigned key_b; /*blue component of color key*/ } LodePNGColorMode; /*init, cleanup and copy functions to use with this struct*/ void lodepng_color_mode_init(LodePNGColorMode* info); void lodepng_color_mode_cleanup(LodePNGColorMode* info); /*return value is error code (0 means no error)*/ unsigned lodepng_color_mode_copy(LodePNGColorMode* dest, const LodePNGColorMode* source); void lodepng_palette_clear(LodePNGColorMode* info); /*add 1 color to the palette*/ unsigned lodepng_palette_add(LodePNGColorMode* info, unsigned char r, unsigned char g, unsigned char b, unsigned char a); /*get the total amount of bits per pixel, based on colortype and bitdepth in the struct*/ unsigned lodepng_get_bpp(const LodePNGColorMode* info); /*get the amount of color channels used, based on colortype in the struct. If a palette is used, it counts as 1 channel.*/ unsigned lodepng_get_channels(const LodePNGColorMode* info); /*is it a greyscale type? (only colortype 0 or 4)*/ unsigned lodepng_is_greyscale_type(const LodePNGColorMode* info); /*has it got an alpha channel? (only colortype 2 or 6)*/ unsigned lodepng_is_alpha_type(const LodePNGColorMode* info); /*has it got a palette? (only colortype 3)*/ unsigned lodepng_is_palette_type(const LodePNGColorMode* info); /*only returns true if there is a palette and there is a value in the palette with alpha < 255. Loops through the palette to check this.*/ unsigned lodepng_has_palette_alpha(const LodePNGColorMode* info); /* Check if the given color info indicates the possibility of having non-opaque pixels in the PNG image. Returns true if the image can have translucent or invisible pixels (it still be opaque if it doesn't use such pixels). Returns false if the image can only have opaque pixels. In detail, it returns true only if it's a color type with alpha, or has a palette with non-opaque values, or if "key_defined" is true. */ unsigned lodepng_can_have_alpha(const LodePNGColorMode* info); /*Returns the byte size of a raw image buffer with given width, height and color mode*/ size_t lodepng_get_raw_size(unsigned w, unsigned h, const LodePNGColorMode* color); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*The information of a Time chunk in PNG.*/ typedef struct LodePNGTime { unsigned year; /*2 bytes used (0-65535)*/ unsigned month; /*1-12*/ unsigned day; /*1-31*/ unsigned hour; /*0-23*/ unsigned minute; /*0-59*/ unsigned second; /*0-60 (to allow for leap seconds)*/ } LodePNGTime; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*Information about the PNG image, except pixels, width and height.*/ typedef struct LodePNGInfo { /*header (IHDR), palette (PLTE) and transparency (tRNS) chunks*/ unsigned compression_method;/*compression method of the original file. Always 0.*/ unsigned filter_method; /*filter method of the original file*/ unsigned interlace_method; /*interlace method of the original file*/ LodePNGColorMode color; /*color type and bits, palette and transparency of the PNG file*/ #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /* suggested background color chunk (bKGD) This color uses the same color mode as the PNG (except alpha channel), which can be 1-bit to 16-bit. For greyscale PNGs, r, g and b will all 3 be set to the same. When encoding the encoder writes the red one. For palette PNGs: When decoding, the RGB value will be stored, not a palette index. But when encoding, specify the index of the palette in background_r, the other two are then ignored. The decoder does not use this background color to edit the color of pixels. */ unsigned background_defined; /*is a suggested background color given?*/ unsigned background_r; /*red component of suggested background color*/ unsigned background_g; /*green component of suggested background color*/ unsigned background_b; /*blue component of suggested background color*/ /* non-international text chunks (tEXt and zTXt) The char** arrays each contain num strings. The actual messages are in text_strings, while text_keys are keywords that give a short description what the actual text represents, e.g. Title, Author, Description, or anything else. A keyword is minimum 1 character and maximum 79 characters long. It's discouraged to use a single line length longer than 79 characters for texts. Don't allocate these text buffers yourself. Use the init/cleanup functions correctly and use lodepng_add_text and lodepng_clear_text. */ size_t text_num; /*the amount of texts in these char** buffers (there may be more texts in itext)*/ char** text_keys; /*the keyword of a text chunk (e.g. "Comment")*/ char** text_strings; /*the actual text*/ /* international text chunks (iTXt) Similar to the non-international text chunks, but with additional strings "langtags" and "transkeys". */ size_t itext_num; /*the amount of international texts in this PNG*/ char** itext_keys; /*the English keyword of the text chunk (e.g. "Comment")*/ char** itext_langtags; /*language tag for this text's language, ISO/IEC 646 string, e.g. ISO 639 language tag*/ char** itext_transkeys; /*keyword translated to the international language - UTF-8 string*/ char** itext_strings; /*the actual international text - UTF-8 string*/ /*time chunk (tIME)*/ unsigned time_defined; /*set to 1 to make the encoder generate a tIME chunk*/ LodePNGTime time; /*phys chunk (pHYs)*/ unsigned phys_defined; /*if 0, there is no pHYs chunk and the values below are undefined, if 1 else there is one*/ unsigned phys_x; /*pixels per unit in x direction*/ unsigned phys_y; /*pixels per unit in y direction*/ unsigned phys_unit; /*may be 0 (unknown unit) or 1 (metre)*/ /* unknown chunks There are 3 buffers, one for each position in the PNG where unknown chunks can appear each buffer contains all unknown chunks for that position consecutively The 3 buffers are the unknown chunks between certain critical chunks: 0: IHDR-PLTE, 1: PLTE-IDAT, 2: IDAT-IEND Do not allocate or traverse this data yourself. Use the chunk traversing functions declared later, such as lodepng_chunk_next and lodepng_chunk_append, to read/write this struct. */ unsigned char* unknown_chunks_data[3]; size_t unknown_chunks_size[3]; /*size in bytes of the unknown chunks, given for protection*/ #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } LodePNGInfo; /*init, cleanup and copy functions to use with this struct*/ void lodepng_info_init(LodePNGInfo* info); void lodepng_info_cleanup(LodePNGInfo* info); /*return value is error code (0 means no error)*/ unsigned lodepng_info_copy(LodePNGInfo* dest, const LodePNGInfo* source); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS void lodepng_clear_text(LodePNGInfo* info); /*use this to clear the texts again after you filled them in*/ unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str); /*push back both texts at once*/ void lodepng_clear_itext(LodePNGInfo* info); /*use this to clear the itexts again after you filled them in*/ unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag, const char* transkey, const char* str); /*push back the 4 texts of 1 chunk at once*/ #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /* Converts raw buffer from one color type to another color type, based on LodePNGColorMode structs to describe the input and output color type. See the reference manual at the end of this header file to see which color conversions are supported. return value = LodePNG error code (0 if all went ok, an error if the conversion isn't supported) The out buffer must have size (w * h * bpp + 7) / 8, where bpp is the bits per pixel of the output color type (lodepng_get_bpp). For < 8 bpp images, there should not be padding bits at the end of scanlines. For 16-bit per channel colors, uses big endian format like PNG does. Return value is LodePNG error code */ unsigned lodepng_convert(unsigned char* out, const unsigned char* in, const LodePNGColorMode* mode_out, const LodePNGColorMode* mode_in, unsigned w, unsigned h); #ifdef LODEPNG_COMPILE_DECODER /* Settings for the decoder. This contains settings for the PNG and the Zlib decoder, but not the Info settings from the Info structs. */ typedef struct LodePNGDecoderSettings { LodePNGDecompressSettings zlibsettings; /*in here is the setting to ignore Adler32 checksums*/ unsigned ignore_crc; /*ignore CRC checksums*/ unsigned color_convert; /*whether to convert the PNG to the color type you want. Default: yes*/ #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS unsigned read_text_chunks; /*if false but remember_unknown_chunks is true, they're stored in the unknown chunks*/ /*store all bytes from unknown chunks in the LodePNGInfo (off by default, useful for a png editor)*/ unsigned remember_unknown_chunks; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } LodePNGDecoderSettings; void lodepng_decoder_settings_init(LodePNGDecoderSettings* settings); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /*automatically use color type with less bits per pixel if losslessly possible. Default: AUTO*/ typedef enum LodePNGFilterStrategy { /*every filter at zero*/ LFS_ZERO, /*Use filter that gives minimum sum, as described in the official PNG filter heuristic.*/ LFS_MINSUM, /*Use the filter type that gives smallest Shannon entropy for this scanline. Depending on the image, this is better or worse than minsum.*/ LFS_ENTROPY, /* Brute-force-search PNG filters by compressing each filter for each scanline. Experimental, very slow, and only rarely gives better compression than MINSUM. */ LFS_BRUTE_FORCE, /*use predefined_filters buffer: you specify the filter type for each scanline*/ LFS_PREDEFINED } LodePNGFilterStrategy; /*Gives characteristics about the colors of the image, which helps decide which color model to use for encoding. Used internally by default if "auto_convert" is enabled. Public because it's useful for custom algorithms.*/ typedef struct LodePNGColorProfile { unsigned colored; /*not greyscale*/ unsigned key; /*if true, image is not opaque. Only if true and alpha is false, color key is possible.*/ unsigned short key_r; /*these values are always in 16-bit bitdepth in the profile*/ unsigned short key_g; unsigned short key_b; unsigned alpha; /*alpha channel or alpha palette required*/ unsigned numcolors; /*amount of colors, up to 257. Not valid if bits == 16.*/ unsigned char palette[1024]; /*Remembers up to the first 256 RGBA colors, in no particular order*/ unsigned bits; /*bits per channel (not for palette). 1,2 or 4 for greyscale only. 16 if 16-bit per channel required.*/ } LodePNGColorProfile; void lodepng_color_profile_init(LodePNGColorProfile* profile); /*Get a LodePNGColorProfile of the image.*/ unsigned lodepng_get_color_profile(LodePNGColorProfile* profile, const unsigned char* image, unsigned w, unsigned h, const LodePNGColorMode* mode_in); /*The function LodePNG uses internally to decide the PNG color with auto_convert. Chooses an optimal color model, e.g. grey if only grey pixels, palette if < 256 colors, ...*/ unsigned lodepng_auto_choose_color(LodePNGColorMode* mode_out, const unsigned char* image, unsigned w, unsigned h, const LodePNGColorMode* mode_in); /*Settings for the encoder.*/ typedef struct LodePNGEncoderSettings { LodePNGCompressSettings zlibsettings; /*settings for the zlib encoder, such as window size, ...*/ unsigned auto_convert; /*automatically choose output PNG color type. Default: true*/ /*If true, follows the official PNG heuristic: if the PNG uses a palette or lower than 8 bit depth, set all filters to zero. Otherwise use the filter_strategy. Note that to completely follow the official PNG heuristic, filter_palette_zero must be true and filter_strategy must be LFS_MINSUM*/ unsigned filter_palette_zero; /*Which filter strategy to use when not using zeroes due to filter_palette_zero. Set filter_palette_zero to 0 to ensure always using your chosen strategy. Default: LFS_MINSUM*/ LodePNGFilterStrategy filter_strategy; /*used if filter_strategy is LFS_PREDEFINED. In that case, this must point to a buffer with the same length as the amount of scanlines in the image, and each value must <= 5. You have to cleanup this buffer, LodePNG will never free it. Don't forget that filter_palette_zero must be set to 0 to ensure this is also used on palette or low bitdepth images.*/ const unsigned char* predefined_filters; /*force creating a PLTE chunk if colortype is 2 or 6 (= a suggested palette). If colortype is 3, PLTE is _always_ created.*/ unsigned force_palette; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*add LodePNG identifier and version as a text chunk, for debugging*/ unsigned add_id; /*encode text chunks as zTXt chunks instead of tEXt chunks, and use compression in iTXt chunks*/ unsigned text_compression; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } LodePNGEncoderSettings; void lodepng_encoder_settings_init(LodePNGEncoderSettings* settings); #endif /*LODEPNG_COMPILE_ENCODER*/ #if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) /*The settings, state and information for extended encoding and decoding.*/ typedef struct LodePNGState { #ifdef LODEPNG_COMPILE_DECODER LodePNGDecoderSettings decoder; /*the decoding settings*/ #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER LodePNGEncoderSettings encoder; /*the encoding settings*/ #endif /*LODEPNG_COMPILE_ENCODER*/ LodePNGColorMode info_raw; /*specifies the format in which you would like to get the raw pixel buffer*/ LodePNGInfo info_png; /*info of the PNG image obtained after decoding*/ unsigned error; #ifdef LODEPNG_COMPILE_CPP /* For the lodepng::State subclass. */ virtual ~LodePNGState(){} #endif } LodePNGState; /*init, cleanup and copy functions to use with this struct*/ void lodepng_state_init(LodePNGState* state); void lodepng_state_cleanup(LodePNGState* state); void lodepng_state_copy(LodePNGState* dest, const LodePNGState* source); #endif /* defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) */ #ifdef LODEPNG_COMPILE_DECODER /* Same as lodepng_decode_memory, but uses a LodePNGState to allow custom settings and getting much more information about the PNG image and color mode. */ unsigned lodepng_decode(unsigned char** out, unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize); /* Read the PNG header, but not the actual data. This returns only the information that is in the header chunk of the PNG, such as width, height and color type. The information is placed in the info_png field of the LodePNGState. */ unsigned lodepng_inspect(unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /*This function allocates the out buffer with standard malloc and stores the size in *outsize.*/ unsigned lodepng_encode(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h, LodePNGState* state); #endif /*LODEPNG_COMPILE_ENCODER*/ /* The lodepng_chunk functions are normally not needed, except to traverse the unknown chunks stored in the LodePNGInfo struct, or add new ones to it. It also allows traversing the chunks of an encoded PNG file yourself. PNG standard chunk naming conventions: First byte: uppercase = critical, lowercase = ancillary Second byte: uppercase = public, lowercase = private Third byte: must be uppercase Fourth byte: uppercase = unsafe to copy, lowercase = safe to copy */ /* Gets the length of the data of the chunk. Total chunk length has 12 bytes more. There must be at least 4 bytes to read from. If the result value is too large, it may be corrupt data. */ unsigned lodepng_chunk_length(const unsigned char* chunk); /*puts the 4-byte type in null terminated string*/ void lodepng_chunk_type(char type[5], const unsigned char* chunk); /*check if the type is the given type*/ unsigned char lodepng_chunk_type_equals(const unsigned char* chunk, const char* type); /*0: it's one of the critical chunk types, 1: it's an ancillary chunk (see PNG standard)*/ unsigned char lodepng_chunk_ancillary(const unsigned char* chunk); /*0: public, 1: private (see PNG standard)*/ unsigned char lodepng_chunk_private(const unsigned char* chunk); /*0: the chunk is unsafe to copy, 1: the chunk is safe to copy (see PNG standard)*/ unsigned char lodepng_chunk_safetocopy(const unsigned char* chunk); /*get pointer to the data of the chunk, where the input points to the header of the chunk*/ unsigned char* lodepng_chunk_data(unsigned char* chunk); const unsigned char* lodepng_chunk_data_const(const unsigned char* chunk); /*returns 0 if the crc is correct, 1 if it's incorrect (0 for OK as usual!)*/ unsigned lodepng_chunk_check_crc(const unsigned char* chunk); /*generates the correct CRC from the data and puts it in the last 4 bytes of the chunk*/ void lodepng_chunk_generate_crc(unsigned char* chunk); /*iterate to next chunks. don't use on IEND chunk, as there is no next chunk then*/ unsigned char* lodepng_chunk_next(unsigned char* chunk); const unsigned char* lodepng_chunk_next_const(const unsigned char* chunk); /* Appends chunk to the data in out. The given chunk should already have its chunk header. The out variable and outlength are updated to reflect the new reallocated buffer. Returns error code (0 if it went ok) */ unsigned lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk); /* Appends new chunk to out. The chunk to append is given by giving its length, type and data separately. The type is a 4-letter string. The out variable and outlength are updated to reflect the new reallocated buffer. Returne error code (0 if it went ok) */ unsigned lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length, const char* type, const unsigned char* data); /*Calculate CRC32 of buffer*/ unsigned lodepng_crc32(const unsigned char* buf, size_t len); #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ZLIB /* This zlib part can be used independently to zlib compress and decompress a buffer. It cannot be used to create gzip files however, and it only supports the part of zlib that is required for PNG, it does not support dictionaries. */ #ifdef LODEPNG_COMPILE_DECODER /*Inflate a buffer. Inflate is the decompression step of deflate. Out buffer must be freed after use.*/ unsigned lodepng_inflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings); /* Decompresses Zlib data. Reallocates the out buffer and appends the data. The data must be according to the zlib specification. Either, *out must be NULL and *outsize must be 0, or, *out must be a valid buffer and *outsize its size in bytes. out must be freed by user after usage. */ unsigned lodepng_zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* Compresses data with Zlib. Reallocates the out buffer and appends the data. Zlib adds a small header and trailer around the deflate data. The data is output in the format of the zlib specification. Either, *out must be NULL and *outsize must be 0, or, *out must be a valid buffer and *outsize its size in bytes. out must be freed by user after usage. */ unsigned lodepng_zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings); /* Find length-limited Huffman code for given frequencies. This function is in the public interface only for tests, it's used internally by lodepng_deflate. */ unsigned lodepng_huffman_code_lengths(unsigned* lengths, const unsigned* frequencies, size_t numcodes, unsigned maxbitlen); /*Compress a buffer with deflate. See RFC 1951. Out buffer must be freed after use.*/ unsigned lodepng_deflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings); #endif /*LODEPNG_COMPILE_ENCODER*/ #endif /*LODEPNG_COMPILE_ZLIB*/ #ifdef LODEPNG_COMPILE_DISK /* Load a file from disk into buffer. The function allocates the out buffer, and after usage you should free it. out: output parameter, contains pointer to loaded buffer. outsize: output parameter, size of the allocated out buffer filename: the path to the file to load return value: error code (0 means ok) */ unsigned lodepng_load_file(unsigned char** out, size_t* outsize, const char* filename); /* Save a file from buffer to disk. Warning, if it exists, this function overwrites the file without warning! buffer: the buffer to write buffersize: size of the buffer to write filename: the path to the file to save to return value: error code (0 means ok) */ unsigned lodepng_save_file(const unsigned char* buffer, size_t buffersize, const char* filename); #endif /*LODEPNG_COMPILE_DISK*/ #ifdef LODEPNG_COMPILE_CPP /* The LodePNG C++ wrapper uses std::vectors instead of manually allocated memory buffers. */ namespace lodepng { #ifdef LODEPNG_COMPILE_PNG class State : public LodePNGState { public: State(); State(const State& other); virtual ~State(); State& operator=(const State& other); }; #ifdef LODEPNG_COMPILE_DECODER /* Same as other lodepng::decode, but using a State for more settings and information. */ unsigned decode(std::vector& out, unsigned& w, unsigned& h, State& state, const unsigned char* in, size_t insize); unsigned decode(std::vector& out, unsigned& w, unsigned& h, State& state, const std::vector& in); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* Same as other lodepng::encode, but using a State for more settings and information. */ unsigned encode(std::vector& out, const unsigned char* in, unsigned w, unsigned h, State& state); unsigned encode(std::vector& out, const std::vector& in, unsigned w, unsigned h, State& state); #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_DISK /* Load a file from disk into an std::vector. return value: error code (0 means ok) */ unsigned load_file(std::vector& buffer, const std::string& filename); /* Save the binary data in an std::vector to a file on disk. The file is overwritten without warning. */ unsigned save_file(const std::vector& buffer, const std::string& filename); #endif /* LODEPNG_COMPILE_DISK */ #endif /* LODEPNG_COMPILE_PNG */ #ifdef LODEPNG_COMPILE_ZLIB #ifdef LODEPNG_COMPILE_DECODER /* Zlib-decompress an unsigned char buffer */ unsigned decompress(std::vector& out, const unsigned char* in, size_t insize, const LodePNGDecompressSettings& settings = lodepng_default_decompress_settings); /* Zlib-decompress an std::vector */ unsigned decompress(std::vector& out, const std::vector& in, const LodePNGDecompressSettings& settings = lodepng_default_decompress_settings); #endif /* LODEPNG_COMPILE_DECODER */ #ifdef LODEPNG_COMPILE_ENCODER /* Zlib-compress an unsigned char buffer */ unsigned compress(std::vector& out, const unsigned char* in, size_t insize, const LodePNGCompressSettings& settings = lodepng_default_compress_settings); /* Zlib-compress an std::vector */ unsigned compress(std::vector& out, const std::vector& in, const LodePNGCompressSettings& settings = lodepng_default_compress_settings); #endif /* LODEPNG_COMPILE_ENCODER */ #endif /* LODEPNG_COMPILE_ZLIB */ } /* namespace lodepng */ #endif /*LODEPNG_COMPILE_CPP*/ /* TODO: [.] test if there are no memory leaks or security exploits - done a lot but needs to be checked often [.] check compatibility with various compilers - done but needs to be redone for every newer version [X] converting color to 16-bit per channel types [ ] read all public PNG chunk types (but never let the color profile and gamma ones touch RGB values) [ ] make sure encoder generates no chunks with size > (2^31)-1 [ ] partial decoding (stream processing) [X] let the "isFullyOpaque" function check color keys and transparent palettes too [X] better name for the variables "codes", "codesD", "codelengthcodes", "clcl" and "lldl" [ ] don't stop decoding on errors like 69, 57, 58 (make warnings) [ ] make warnings like: oob palette, checksum fail, data after iend, wrong/unknown crit chunk, no null terminator in text, ... [ ] let the C++ wrapper catch exceptions coming from the standard library and return LodePNG error codes [ ] allow user to provide custom color conversion functions, e.g. for premultiplied alpha, padding bits or not, ... [ ] allow user to give data (void*) to custom allocator */ #endif /*LODEPNG_H inclusion guard*/ /* LodePNG Documentation --------------------- 0. table of contents -------------------- 1. about 1.1. supported features 1.2. features not supported 2. C and C++ version 3. security 4. decoding 5. encoding 6. color conversions 6.1. PNG color types 6.2. color conversions 6.3. padding bits 6.4. A note about 16-bits per channel and endianness 7. error values 8. chunks and PNG editing 9. compiler support 10. examples 10.1. decoder C++ example 10.2. decoder C example 11. state settings reference 12. changes 13. contact information 1. about -------- PNG is a file format to store raster images losslessly with good compression, supporting different color types and alpha channel. LodePNG is a PNG codec according to the Portable Network Graphics (PNG) Specification (Second Edition) - W3C Recommendation 10 November 2003. The specifications used are: *) Portable Network Graphics (PNG) Specification (Second Edition): http://www.w3.org/TR/2003/REC-PNG-20031110 *) RFC 1950 ZLIB Compressed Data Format version 3.3: http://www.gzip.org/zlib/rfc-zlib.html *) RFC 1951 DEFLATE Compressed Data Format Specification ver 1.3: http://www.gzip.org/zlib/rfc-deflate.html The most recent version of LodePNG can currently be found at http://lodev.org/lodepng/ LodePNG works both in C (ISO C90) and C++, with a C++ wrapper that adds extra functionality. LodePNG exists out of two files: -lodepng.h: the header file for both C and C++ -lodepng.c(pp): give it the name lodepng.c or lodepng.cpp (or .cc) depending on your usage If you want to start using LodePNG right away without reading this doc, get the examples from the LodePNG website to see how to use it in code, or check the smaller examples in chapter 13 here. LodePNG is simple but only supports the basic requirements. To achieve simplicity, the following design choices were made: There are no dependencies on any external library. There are functions to decode and encode a PNG with a single function call, and extended versions of these functions taking a LodePNGState struct allowing to specify or get more information. By default the colors of the raw image are always RGB or RGBA, no matter what color type the PNG file uses. To read and write files, there are simple functions to convert the files to/from buffers in memory. This all makes LodePNG suitable for loading textures in games, demos and small programs, ... It's less suitable for full fledged image editors, loading PNGs over network (it requires all the image data to be available before decoding can begin), life-critical systems, ... 1.1. supported features ----------------------- The following features are supported by the decoder: *) decoding of PNGs with any color type, bit depth and interlace mode, to a 24- or 32-bit color raw image, or the same color type as the PNG *) encoding of PNGs, from any raw image to 24- or 32-bit color, or the same color type as the raw image *) Adam7 interlace and deinterlace for any color type *) loading the image from harddisk or decoding it from a buffer from other sources than harddisk *) support for alpha channels, including RGBA color model, translucent palettes and color keying *) zlib decompression (inflate) *) zlib compression (deflate) *) CRC32 and ADLER32 checksums *) handling of unknown chunks, allowing making a PNG editor that stores custom and unknown chunks. *) the following chunks are supported (generated/interpreted) by both encoder and decoder: IHDR: header information PLTE: color palette IDAT: pixel data IEND: the final chunk tRNS: transparency for palettized images tEXt: textual information zTXt: compressed textual information iTXt: international textual information bKGD: suggested background color pHYs: physical dimensions tIME: modification time 1.2. features not supported --------------------------- The following features are _not_ supported: *) some features needed to make a conformant PNG-Editor might be still missing. *) partial loading/stream processing. All data must be available and is processed in one call. *) The following public chunks are not supported but treated as unknown chunks by LodePNG cHRM, gAMA, iCCP, sRGB, sBIT, hIST, sPLT Some of these are not supported on purpose: LodePNG wants to provide the RGB values stored in the pixels, not values modified by system dependent gamma or color models. 2. C and C++ version -------------------- The C version uses buffers allocated with alloc that you need to free() yourself. You need to use init and cleanup functions for each struct whenever using a struct from the C version to avoid exploits and memory leaks. The C++ version has extra functions with std::vectors in the interface and the lodepng::State class which is a LodePNGState with constructor and destructor. These files work without modification for both C and C++ compilers because all the additional C++ code is in "#ifdef __cplusplus" blocks that make C-compilers ignore it, and the C code is made to compile both with strict ISO C90 and C++. To use the C++ version, you need to rename the source file to lodepng.cpp (instead of lodepng.c), and compile it with a C++ compiler. To use the C version, you need to rename the source file to lodepng.c (instead of lodepng.cpp), and compile it with a C compiler. 3. Security ----------- Even if carefully designed, it's always possible that LodePNG contains possible exploits. If you discover one, please let me know, and it will be fixed. When using LodePNG, care has to be taken with the C version of LodePNG, as well as the C-style structs when working with C++. The following conventions are used for all C-style structs: -if a struct has a corresponding init function, always call the init function when making a new one -if a struct has a corresponding cleanup function, call it before the struct disappears to avoid memory leaks -if a struct has a corresponding copy function, use the copy function instead of "=". The destination must also be inited already. 4. Decoding ----------- Decoding converts a PNG compressed image to a raw pixel buffer. Most documentation on using the decoder is at its declarations in the header above. For C, simple decoding can be done with functions such as lodepng_decode32, and more advanced decoding can be done with the struct LodePNGState and lodepng_decode. For C++, all decoding can be done with the various lodepng::decode functions, and lodepng::State can be used for advanced features. When using the LodePNGState, it uses the following fields for decoding: *) LodePNGInfo info_png: it stores extra information about the PNG (the input) in here *) LodePNGColorMode info_raw: here you can say what color mode of the raw image (the output) you want to get *) LodePNGDecoderSettings decoder: you can specify a few extra settings for the decoder to use LodePNGInfo info_png -------------------- After decoding, this contains extra information of the PNG image, except the actual pixels, width and height because these are already gotten directly from the decoder functions. It contains for example the original color type of the PNG image, text comments, suggested background color, etc... More details about the LodePNGInfo struct are at its declaration documentation. LodePNGColorMode info_raw ------------------------- When decoding, here you can specify which color type you want the resulting raw image to be. If this is different from the colortype of the PNG, then the decoder will automatically convert the result. This conversion always works, except if you want it to convert a color PNG to greyscale or to a palette with missing colors. By default, 32-bit color is used for the result. LodePNGDecoderSettings decoder ------------------------------ The settings can be used to ignore the errors created by invalid CRC and Adler32 chunks, and to disable the decoding of tEXt chunks. There's also a setting color_convert, true by default. If false, no conversion is done, the resulting data will be as it was in the PNG (after decompression) and you'll have to puzzle the colors of the pixels together yourself using the color type information in the LodePNGInfo. 5. Encoding ----------- Encoding converts a raw pixel buffer to a PNG compressed image. Most documentation on using the encoder is at its declarations in the header above. For C, simple encoding can be done with functions such as lodepng_encode32, and more advanced decoding can be done with the struct LodePNGState and lodepng_encode. For C++, all encoding can be done with the various lodepng::encode functions, and lodepng::State can be used for advanced features. Like the decoder, the encoder can also give errors. However it gives less errors since the encoder input is trusted, the decoder input (a PNG image that could be forged by anyone) is not trusted. When using the LodePNGState, it uses the following fields for encoding: *) LodePNGInfo info_png: here you specify how you want the PNG (the output) to be. *) LodePNGColorMode info_raw: here you say what color type of the raw image (the input) has *) LodePNGEncoderSettings encoder: you can specify a few settings for the encoder to use LodePNGInfo info_png -------------------- When encoding, you use this the opposite way as when decoding: for encoding, you fill in the values you want the PNG to have before encoding. By default it's not needed to specify a color type for the PNG since it's automatically chosen, but it's possible to choose it yourself given the right settings. The encoder will not always exactly match the LodePNGInfo struct you give, it tries as close as possible. Some things are ignored by the encoder. The encoder uses, for example, the following settings from it when applicable: colortype and bitdepth, text chunks, time chunk, the color key, the palette, the background color, the interlace method, unknown chunks, ... When encoding to a PNG with colortype 3, the encoder will generate a PLTE chunk. If the palette contains any colors for which the alpha channel is not 255 (so there are translucent colors in the palette), it'll add a tRNS chunk. LodePNGColorMode info_raw ------------------------- You specify the color type of the raw image that you give to the input here, including a possible transparent color key and palette you happen to be using in your raw image data. By default, 32-bit color is assumed, meaning your input has to be in RGBA format with 4 bytes (unsigned chars) per pixel. LodePNGEncoderSettings encoder ------------------------------ The following settings are supported (some are in sub-structs): *) auto_convert: when this option is enabled, the encoder will automatically choose the smallest possible color mode (including color key) that can encode the colors of all pixels without information loss. *) btype: the block type for LZ77. 0 = uncompressed, 1 = fixed huffman tree, 2 = dynamic huffman tree (best compression). Should be 2 for proper compression. *) use_lz77: whether or not to use LZ77 for compressed block types. Should be true for proper compression. *) windowsize: the window size used by the LZ77 encoder (1 - 32768). Has value 2048 by default, but can be set to 32768 for better, but slow, compression. *) force_palette: if colortype is 2 or 6, you can make the encoder write a PLTE chunk if force_palette is true. This can used as suggested palette to convert to by viewers that don't support more than 256 colors (if those still exist) *) add_id: add text chunk "Encoder: LodePNG " to the image. *) text_compression: default 1. If 1, it'll store texts as zTXt instead of tEXt chunks. zTXt chunks use zlib compression on the text. This gives a smaller result on large texts but a larger result on small texts (such as a single program name). It's all tEXt or all zTXt though, there's no separate setting per text yet. 6. color conversions -------------------- An important thing to note about LodePNG, is that the color type of the PNG, and the color type of the raw image, are completely independent. By default, when you decode a PNG, you get the result as a raw image in the color type you want, no matter whether the PNG was encoded with a palette, greyscale or RGBA color. And if you encode an image, by default LodePNG will automatically choose the PNG color type that gives good compression based on the values of colors and amount of colors in the image. It can be configured to let you control it instead as well, though. To be able to do this, LodePNG does conversions from one color mode to another. It can convert from almost any color type to any other color type, except the following conversions: RGB to greyscale is not supported, and converting to a palette when the palette doesn't have a required color is not supported. This is not supported on purpose: this is information loss which requires a color reduction algorithm that is beyong the scope of a PNG encoder (yes, RGB to grey is easy, but there are multiple ways if you want to give some channels more weight). By default, when decoding, you get the raw image in 32-bit RGBA or 24-bit RGB color, no matter what color type the PNG has. And by default when encoding, LodePNG automatically picks the best color model for the output PNG, and expects the input image to be 32-bit RGBA or 24-bit RGB. So, unless you want to control the color format of the images yourself, you can skip this chapter. 6.1. PNG color types -------------------- A PNG image can have many color types, ranging from 1-bit color to 64-bit color, as well as palettized color modes. After the zlib decompression and unfiltering in the PNG image is done, the raw pixel data will have that color type and thus a certain amount of bits per pixel. If you want the output raw image after decoding to have another color type, a conversion is done by LodePNG. The PNG specification gives the following color types: 0: greyscale, bit depths 1, 2, 4, 8, 16 2: RGB, bit depths 8 and 16 3: palette, bit depths 1, 2, 4 and 8 4: greyscale with alpha, bit depths 8 and 16 6: RGBA, bit depths 8 and 16 Bit depth is the amount of bits per pixel per color channel. So the total amount of bits per pixel is: amount of channels * bitdepth. 6.2. color conversions ---------------------- As explained in the sections about the encoder and decoder, you can specify color types and bit depths in info_png and info_raw to change the default behaviour. If, when decoding, you want the raw image to be something else than the default, you need to set the color type and bit depth you want in the LodePNGColorMode, or the parameters colortype and bitdepth of the simple decoding function. If, when encoding, you use another color type than the default in the raw input image, you need to specify its color type and bit depth in the LodePNGColorMode of the raw image, or use the parameters colortype and bitdepth of the simple encoding function. If, when encoding, you don't want LodePNG to choose the output PNG color type but control it yourself, you need to set auto_convert in the encoder settings to false, and specify the color type you want in the LodePNGInfo of the encoder (including palette: it can generate a palette if auto_convert is true, otherwise not). If the input and output color type differ (whether user chosen or auto chosen), LodePNG will do a color conversion, which follows the rules below, and may sometimes result in an error. To avoid some confusion: -the decoder converts from PNG to raw image -the encoder converts from raw image to PNG -the colortype and bitdepth in LodePNGColorMode info_raw, are those of the raw image -the colortype and bitdepth in the color field of LodePNGInfo info_png, are those of the PNG -when encoding, the color type in LodePNGInfo is ignored if auto_convert is enabled, it is automatically generated instead -when decoding, the color type in LodePNGInfo is set by the decoder to that of the original PNG image, but it can be ignored since the raw image has the color type you requested instead -if the color type of the LodePNGColorMode and PNG image aren't the same, a conversion between the color types is done if the color types are supported. If it is not supported, an error is returned. If the types are the same, no conversion is done. -even though some conversions aren't supported, LodePNG supports loading PNGs from any colortype and saving PNGs to any colortype, sometimes it just requires preparing the raw image correctly before encoding. -both encoder and decoder use the same color converter. Non supported color conversions: -color to greyscale: no error is thrown, but the result will look ugly because only the red channel is taken -anything to palette when that palette does not have that color in it: in this case an error is thrown Supported color conversions: -anything to 8-bit RGB, 8-bit RGBA, 16-bit RGB, 16-bit RGBA -any grey or grey+alpha, to grey or grey+alpha -anything to a palette, as long as the palette has the requested colors in it -removing alpha channel -higher to smaller bitdepth, and vice versa If you want no color conversion to be done (e.g. for speed or control): -In the encoder, you can make it save a PNG with any color type by giving the raw color mode and LodePNGInfo the same color mode, and setting auto_convert to false. -In the decoder, you can make it store the pixel data in the same color type as the PNG has, by setting the color_convert setting to false. Settings in info_raw are then ignored. The function lodepng_convert does the color conversion. It is available in the interface but normally isn't needed since the encoder and decoder already call it. 6.3. padding bits ----------------- In the PNG file format, if a less than 8-bit per pixel color type is used and the scanlines have a bit amount that isn't a multiple of 8, then padding bits are used so that each scanline starts at a fresh byte. But that is NOT true for the LodePNG raw input and output. The raw input image you give to the encoder, and the raw output image you get from the decoder will NOT have these padding bits, e.g. in the case of a 1-bit image with a width of 7 pixels, the first pixel of the second scanline will the the 8th bit of the first byte, not the first bit of a new byte. 6.4. A note about 16-bits per channel and endianness ---------------------------------------------------- LodePNG uses unsigned char arrays for 16-bit per channel colors too, just like for any other color format. The 16-bit values are stored in big endian (most significant byte first) in these arrays. This is the opposite order of the little endian used by x86 CPU's. LodePNG always uses big endian because the PNG file format does so internally. Conversions to other formats than PNG uses internally are not supported by LodePNG on purpose, there are myriads of formats, including endianness of 16-bit colors, the order in which you store R, G, B and A, and so on. Supporting and converting to/from all that is outside the scope of LodePNG. This may mean that, depending on your use case, you may want to convert the big endian output of LodePNG to little endian with a for loop. This is certainly not always needed, many applications and libraries support big endian 16-bit colors anyway, but it means you cannot simply cast the unsigned char* buffer to an unsigned short* buffer on x86 CPUs. 7. error values --------------- All functions in LodePNG that return an error code, return 0 if everything went OK, or a non-zero code if there was an error. The meaning of the LodePNG error values can be retrieved with the function lodepng_error_text: given the numerical error code, it returns a description of the error in English as a string. Check the implementation of lodepng_error_text to see the meaning of each code. 8. chunks and PNG editing ------------------------- If you want to add extra chunks to a PNG you encode, or use LodePNG for a PNG editor that should follow the rules about handling of unknown chunks, or if your program is able to read other types of chunks than the ones handled by LodePNG, then that's possible with the chunk functions of LodePNG. A PNG chunk has the following layout: 4 bytes length 4 bytes type name length bytes data 4 bytes CRC 8.1. iterating through chunks ----------------------------- If you have a buffer containing the PNG image data, then the first chunk (the IHDR chunk) starts at byte number 8 of that buffer. The first 8 bytes are the signature of the PNG and are not part of a chunk. But if you start at byte 8 then you have a chunk, and can check the following things of it. NOTE: none of these functions check for memory buffer boundaries. To avoid exploits, always make sure the buffer contains all the data of the chunks. When using lodepng_chunk_next, make sure the returned value is within the allocated memory. unsigned lodepng_chunk_length(const unsigned char* chunk): Get the length of the chunk's data. The total chunk length is this length + 12. void lodepng_chunk_type(char type[5], const unsigned char* chunk): unsigned char lodepng_chunk_type_equals(const unsigned char* chunk, const char* type): Get the type of the chunk or compare if it's a certain type unsigned char lodepng_chunk_critical(const unsigned char* chunk): unsigned char lodepng_chunk_private(const unsigned char* chunk): unsigned char lodepng_chunk_safetocopy(const unsigned char* chunk): Check if the chunk is critical in the PNG standard (only IHDR, PLTE, IDAT and IEND are). Check if the chunk is private (public chunks are part of the standard, private ones not). Check if the chunk is safe to copy. If it's not, then, when modifying data in a critical chunk, unsafe to copy chunks of the old image may NOT be saved in the new one if your program doesn't handle that type of unknown chunk. unsigned char* lodepng_chunk_data(unsigned char* chunk): const unsigned char* lodepng_chunk_data_const(const unsigned char* chunk): Get a pointer to the start of the data of the chunk. unsigned lodepng_chunk_check_crc(const unsigned char* chunk): void lodepng_chunk_generate_crc(unsigned char* chunk): Check if the crc is correct or generate a correct one. unsigned char* lodepng_chunk_next(unsigned char* chunk): const unsigned char* lodepng_chunk_next_const(const unsigned char* chunk): Iterate to the next chunk. This works if you have a buffer with consecutive chunks. Note that these functions do no boundary checking of the allocated data whatsoever, so make sure there is enough data available in the buffer to be able to go to the next chunk. unsigned lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk): unsigned lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length, const char* type, const unsigned char* data): These functions are used to create new chunks that are appended to the data in *out that has length *outlength. The append function appends an existing chunk to the new data. The create function creates a new chunk with the given parameters and appends it. Type is the 4-letter name of the chunk. 8.2. chunks in info_png ----------------------- The LodePNGInfo struct contains fields with the unknown chunk in it. It has 3 buffers (each with size) to contain 3 types of unknown chunks: the ones that come before the PLTE chunk, the ones that come between the PLTE and the IDAT chunks, and the ones that come after the IDAT chunks. It's necessary to make the distionction between these 3 cases because the PNG standard forces to keep the ordering of unknown chunks compared to the critical chunks, but does not force any other ordering rules. info_png.unknown_chunks_data[0] is the chunks before PLTE info_png.unknown_chunks_data[1] is the chunks after PLTE, before IDAT info_png.unknown_chunks_data[2] is the chunks after IDAT The chunks in these 3 buffers can be iterated through and read by using the same way described in the previous subchapter. When using the decoder to decode a PNG, you can make it store all unknown chunks if you set the option settings.remember_unknown_chunks to 1. By default, this option is off (0). The encoder will always encode unknown chunks that are stored in the info_png. If you need it to add a particular chunk that isn't known by LodePNG, you can use lodepng_chunk_append or lodepng_chunk_create to the chunk data in info_png.unknown_chunks_data[x]. Chunks that are known by LodePNG should not be added in that way. E.g. to make LodePNG add a bKGD chunk, set background_defined to true and add the correct parameters there instead. 9. compiler support ------------------- No libraries other than the current standard C library are needed to compile LodePNG. For the C++ version, only the standard C++ library is needed on top. Add the files lodepng.c(pp) and lodepng.h to your project, include lodepng.h where needed, and your program can read/write PNG files. It is compatible with C90 and up, and C++03 and up. If performance is important, use optimization when compiling! For both the encoder and decoder, this makes a large difference. Make sure that LodePNG is compiled with the same compiler of the same version and with the same settings as the rest of the program, or the interfaces with std::vectors and std::strings in C++ can be incompatible. CHAR_BITS must be 8 or higher, because LodePNG uses unsigned chars for octets. *) gcc and g++ LodePNG is developed in gcc so this compiler is natively supported. It gives no warnings with compiler options "-Wall -Wextra -pedantic -ansi", with gcc and g++ version 4.7.1 on Linux, 32-bit and 64-bit. *) Clang Fully supported and warning-free. *) Mingw The Mingw compiler (a port of gcc for Windows) should be fully supported by LodePNG. *) Visual Studio and Visual C++ Express Edition LodePNG should be warning-free with warning level W4. Two warnings were disabled with pragmas though: warning 4244 about implicit conversions, and warning 4996 where it wants to use a non-standard function fopen_s instead of the standard C fopen. Visual Studio may want "stdafx.h" files to be included in each source file and give an error "unexpected end of file while looking for precompiled header". This is not standard C++ and will not be added to the stock LodePNG. You can disable it for lodepng.cpp only by right clicking it, Properties, C/C++, Precompiled Headers, and set it to Not Using Precompiled Headers there. NOTE: Modern versions of VS should be fully supported, but old versions, e.g. VS6, are not guaranteed to work. *) Compilers on Macintosh LodePNG has been reported to work both with gcc and LLVM for Macintosh, both for C and C++. *) Other Compilers If you encounter problems on any compilers, feel free to let me know and I may try to fix it if the compiler is modern and standards complient. 10. examples ------------ This decoder example shows the most basic usage of LodePNG. More complex examples can be found on the LodePNG website. 10.1. decoder C++ example ------------------------- #include "lodepng.h" #include int main(int argc, char *argv[]) { const char* filename = argc > 1 ? argv[1] : "test.png"; //load and decode std::vector image; unsigned width, height; unsigned error = lodepng::decode(image, width, height, filename); //if there's an error, display it if(error) std::cout << "decoder error " << error << ": " << lodepng_error_text(error) << std::endl; //the pixels are now in the vector "image", 4 bytes per pixel, ordered RGBARGBA..., use it as texture, draw it, ... } 10.2. decoder C example ----------------------- #include "lodepng.h" int main(int argc, char *argv[]) { unsigned error; unsigned char* image; size_t width, height; const char* filename = argc > 1 ? argv[1] : "test.png"; error = lodepng_decode32_file(&image, &width, &height, filename); if(error) printf("decoder error %u: %s\n", error, lodepng_error_text(error)); / * use image here * / free(image); return 0; } 11. state settings reference ---------------------------- A quick reference of some settings to set on the LodePNGState For decoding: state.decoder.zlibsettings.ignore_adler32: ignore ADLER32 checksums state.decoder.zlibsettings.custom_...: use custom inflate function state.decoder.ignore_crc: ignore CRC checksums state.decoder.color_convert: convert internal PNG color to chosen one state.decoder.read_text_chunks: whether to read in text metadata chunks state.decoder.remember_unknown_chunks: whether to read in unknown chunks state.info_raw.colortype: desired color type for decoded image state.info_raw.bitdepth: desired bit depth for decoded image state.info_raw....: more color settings, see struct LodePNGColorMode state.info_png....: no settings for decoder but ouput, see struct LodePNGInfo For encoding: state.encoder.zlibsettings.btype: disable compression by setting it to 0 state.encoder.zlibsettings.use_lz77: use LZ77 in compression state.encoder.zlibsettings.windowsize: tweak LZ77 windowsize state.encoder.zlibsettings.minmatch: tweak min LZ77 length to match state.encoder.zlibsettings.nicematch: tweak LZ77 match where to stop searching state.encoder.zlibsettings.lazymatching: try one more LZ77 matching state.encoder.zlibsettings.custom_...: use custom deflate function state.encoder.auto_convert: choose optimal PNG color type, if 0 uses info_png state.encoder.filter_palette_zero: PNG filter strategy for palette state.encoder.filter_strategy: PNG filter strategy to encode with state.encoder.force_palette: add palette even if not encoding to one state.encoder.add_id: add LodePNG identifier and version as a text chunk state.encoder.text_compression: use compressed text chunks for metadata state.info_raw.colortype: color type of raw input image you provide state.info_raw.bitdepth: bit depth of raw input image you provide state.info_raw: more color settings, see struct LodePNGColorMode state.info_png.color.colortype: desired color type if auto_convert is false state.info_png.color.bitdepth: desired bit depth if auto_convert is false state.info_png.color....: more color settings, see struct LodePNGColorMode state.info_png....: more PNG related settings, see struct LodePNGInfo 12. changes ----------- The version number of LodePNG is the date of the change given in the format yyyymmdd. Some changes aren't backwards compatible. Those are indicated with a (!) symbol. *) 18 apr 2016: Changed qsort to custom stable sort (for platforms w/o qsort). *) 09 apr 2016: Fixed colorkey usage detection, and better file loading (within the limits of pure C90). *) 08 dec 2015: Made load_file function return error if file can't be opened. *) 24 okt 2015: Bugfix with decoding to palette output. *) 18 apr 2015: Boundary PM instead of just package-merge for faster encoding. *) 23 aug 2014: Reduced needless memory usage of decoder. *) 28 jun 2014: Removed fix_png setting, always support palette OOB for simplicity. Made ColorProfile public. *) 09 jun 2014: Faster encoder by fixing hash bug and more zeros optimization. *) 22 dec 2013: Power of two windowsize required for optimization. *) 15 apr 2013: Fixed bug with LAC_ALPHA and color key. *) 25 mar 2013: Added an optional feature to ignore some PNG errors (fix_png). *) 11 mar 2013 (!): Bugfix with custom free. Changed from "my" to "lodepng_" prefix for the custom allocators and made it possible with a new #define to use custom ones in your project without needing to change lodepng's code. *) 28 jan 2013: Bugfix with color key. *) 27 okt 2012: Tweaks in text chunk keyword length error handling. *) 8 okt 2012 (!): Added new filter strategy (entropy) and new auto color mode. (no palette). Better deflate tree encoding. New compression tweak settings. Faster color conversions while decoding. Some internal cleanups. *) 23 sep 2012: Reduced warnings in Visual Studio a little bit. *) 1 sep 2012 (!): Removed #define's for giving custom (de)compression functions and made it work with function pointers instead. *) 23 jun 2012: Added more filter strategies. Made it easier to use custom alloc and free functions and toggle #defines from compiler flags. Small fixes. *) 6 may 2012 (!): Made plugging in custom zlib/deflate functions more flexible. *) 22 apr 2012 (!): Made interface more consistent, renaming a lot. Removed redundant C++ codec classes. Reduced amount of structs. Everything changed, but it is cleaner now imho and functionality remains the same. Also fixed several bugs and shrunk the implementation code. Made new samples. *) 6 nov 2011 (!): By default, the encoder now automatically chooses the best PNG color model and bit depth, based on the amount and type of colors of the raw image. For this, autoLeaveOutAlphaChannel replaced by auto_choose_color. *) 9 okt 2011: simpler hash chain implementation for the encoder. *) 8 sep 2011: lz77 encoder lazy matching instead of greedy matching. *) 23 aug 2011: tweaked the zlib compression parameters after benchmarking. A bug with the PNG filtertype heuristic was fixed, so that it chooses much better ones (it's quite significant). A setting to do an experimental, slow, brute force search for PNG filter types is added. *) 17 aug 2011 (!): changed some C zlib related function names. *) 16 aug 2011: made the code less wide (max 120 characters per line). *) 17 apr 2011: code cleanup. Bugfixes. Convert low to 16-bit per sample colors. *) 21 feb 2011: fixed compiling for C90. Fixed compiling with sections disabled. *) 11 dec 2010: encoding is made faster, based on suggestion by Peter Eastman to optimize long sequences of zeros. *) 13 nov 2010: added LodePNG_InfoColor_hasPaletteAlpha and LodePNG_InfoColor_canHaveAlpha functions for convenience. *) 7 nov 2010: added LodePNG_error_text function to get error code description. *) 30 okt 2010: made decoding slightly faster *) 26 okt 2010: (!) changed some C function and struct names (more consistent). Reorganized the documentation and the declaration order in the header. *) 08 aug 2010: only changed some comments and external samples. *) 05 jul 2010: fixed bug thanks to warnings in the new gcc version. *) 14 mar 2010: fixed bug where too much memory was allocated for char buffers. *) 02 sep 2008: fixed bug where it could create empty tree that linux apps could read by ignoring the problem but windows apps couldn't. *) 06 jun 2008: added more error checks for out of memory cases. *) 26 apr 2008: added a few more checks here and there to ensure more safety. *) 06 mar 2008: crash with encoding of strings fixed *) 02 feb 2008: support for international text chunks added (iTXt) *) 23 jan 2008: small cleanups, and #defines to divide code in sections *) 20 jan 2008: support for unknown chunks allowing using LodePNG for an editor. *) 18 jan 2008: support for tIME and pHYs chunks added to encoder and decoder. *) 17 jan 2008: ability to encode and decode compressed zTXt chunks added Also various fixes, such as in the deflate and the padding bits code. *) 13 jan 2008: Added ability to encode Adam7-interlaced images. Improved filtering code of encoder. *) 07 jan 2008: (!) changed LodePNG to use ISO C90 instead of C++. A C++ wrapper around this provides an interface almost identical to before. Having LodePNG be pure ISO C90 makes it more portable. The C and C++ code are together in these files but it works both for C and C++ compilers. *) 29 dec 2007: (!) changed most integer types to unsigned int + other tweaks *) 30 aug 2007: bug fixed which makes this Borland C++ compatible *) 09 aug 2007: some VS2005 warnings removed again *) 21 jul 2007: deflate code placed in new namespace separate from zlib code *) 08 jun 2007: fixed bug with 2- and 4-bit color, and small interlaced images *) 04 jun 2007: improved support for Visual Studio 2005: crash with accessing invalid std::vector element [0] fixed, and level 3 and 4 warnings removed *) 02 jun 2007: made the encoder add a tag with version by default *) 27 may 2007: zlib and png code separated (but still in the same file), simple encoder/decoder functions added for more simple usage cases *) 19 may 2007: minor fixes, some code cleaning, new error added (error 69), moved some examples from here to lodepng_examples.cpp *) 12 may 2007: palette decoding bug fixed *) 24 apr 2007: changed the license from BSD to the zlib license *) 11 mar 2007: very simple addition: ability to encode bKGD chunks. *) 04 mar 2007: (!) tEXt chunk related fixes, and support for encoding palettized PNG images. Plus little interface change with palette and texts. *) 03 mar 2007: Made it encode dynamic Huffman shorter with repeat codes. Fixed a bug where the end code of a block had length 0 in the Huffman tree. *) 26 feb 2007: Huffman compression with dynamic trees (BTYPE 2) now implemented and supported by the encoder, resulting in smaller PNGs at the output. *) 27 jan 2007: Made the Adler-32 test faster so that a timewaste is gone. *) 24 jan 2007: gave encoder an error interface. Added color conversion from any greyscale type to 8-bit greyscale with or without alpha. *) 21 jan 2007: (!) Totally changed the interface. It allows more color types to convert to and is more uniform. See the manual for how it works now. *) 07 jan 2007: Some cleanup & fixes, and a few changes over the last days: encode/decode custom tEXt chunks, separate classes for zlib & deflate, and at last made the decoder give errors for incorrect Adler32 or Crc. *) 01 jan 2007: Fixed bug with encoding PNGs with less than 8 bits per channel. *) 29 dec 2006: Added support for encoding images without alpha channel, and cleaned out code as well as making certain parts faster. *) 28 dec 2006: Added "Settings" to the encoder. *) 26 dec 2006: The encoder now does LZ77 encoding and produces much smaller files now. Removed some code duplication in the decoder. Fixed little bug in an example. *) 09 dec 2006: (!) Placed output parameters of public functions as first parameter. Fixed a bug of the decoder with 16-bit per color. *) 15 okt 2006: Changed documentation structure *) 09 okt 2006: Encoder class added. It encodes a valid PNG image from the given image buffer, however for now it's not compressed. *) 08 sep 2006: (!) Changed to interface with a Decoder class *) 30 jul 2006: (!) LodePNG_InfoPng , width and height are now retrieved in different way. Renamed decodePNG to decodePNGGeneric. *) 29 jul 2006: (!) Changed the interface: image info is now returned as a struct of type LodePNG::LodePNG_Info, instead of a vector, which was a bit clumsy. *) 28 jul 2006: Cleaned the code and added new error checks. Corrected terminology "deflate" into "inflate". *) 23 jun 2006: Added SDL example in the documentation in the header, this example allows easy debugging by displaying the PNG and its transparency. *) 22 jun 2006: (!) Changed way to obtain error value. Added loadFile function for convenience. Made decodePNG32 faster. *) 21 jun 2006: (!) Changed type of info vector to unsigned. Changed position of palette in info vector. Fixed an important bug that happened on PNGs with an uncompressed block. *) 16 jun 2006: Internally changed unsigned into unsigned where needed, and performed some optimizations. *) 07 jun 2006: (!) Renamed functions to decodePNG and placed them in LodePNG namespace. Changed the order of the parameters. Rewrote the documentation in the header. Renamed files to lodepng.cpp and lodepng.h *) 22 apr 2006: Optimized and improved some code *) 07 sep 2005: (!) Changed to std::vector interface *) 12 aug 2005: Initial release (C++, decoder only) 13. contact information ----------------------- Feel free to contact me with suggestions, problems, comments, ... concerning LodePNG. If you encounter a PNG image that doesn't work properly with this decoder, feel free to send it and I'll use it to find and fix the problem. My email address is (puzzle the account and domain together with an @ symbol): Domain: gmail dot com. Account: lode dot vandevenne. Copyright (c) 2005-2016 Lode Vandevenne */ drumgizmo-0.9.14/plugingui/lodepng/lodepng.cpp0000644000076400017500000065610213077162062016354 00000000000000/* LodePNG version 20160501 Copyright (c) 2005-2016 Lode Vandevenne This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ /* The manual and changelog are in the header file "lodepng.h" Rename this file to lodepng.cpp to use it for C++, or to lodepng.c to use it for C. */ #include "lodepng.h" #include #include #include #if defined(_MSC_VER) && (_MSC_VER >= 1310) /*Visual Studio: A few warning types are not desired here.*/ #pragma warning( disable : 4244 ) /*implicit conversions: not warned by gcc -Wall -Wextra and requires too much casts*/ #pragma warning( disable : 4996 ) /*VS does not like fopen, but fopen_s is not standard C so unusable here*/ #endif /*_MSC_VER */ const char* LODEPNG_VERSION_STRING = "20160501"; /* This source file is built up in the following large parts. The code sections with the "LODEPNG_COMPILE_" #defines divide this up further in an intermixed way. -Tools for C and common code for PNG and Zlib -C Code for Zlib (huffman, deflate, ...) -C Code for PNG (file format chunks, adam7, PNG filters, color conversions, ...) -The C++ wrapper around all of the above */ /*The malloc, realloc and free functions defined here with "lodepng_" in front of the name, so that you can easily change them to others related to your platform if needed. Everything else in the code calls these. Pass -DLODEPNG_NO_COMPILE_ALLOCATORS to the compiler, or comment out #define LODEPNG_COMPILE_ALLOCATORS in the header, to disable the ones here and define them in your own project's source files without needing to change lodepng source code. Don't forget to remove "static" if you copypaste them from here.*/ #ifdef LODEPNG_COMPILE_ALLOCATORS static void* lodepng_malloc(size_t size) { return malloc(size); } static void* lodepng_realloc(void* ptr, size_t new_size) { return realloc(ptr, new_size); } static void lodepng_free(void* ptr) { free(ptr); } #else /*LODEPNG_COMPILE_ALLOCATORS*/ void* lodepng_malloc(size_t size); void* lodepng_realloc(void* ptr, size_t new_size); void lodepng_free(void* ptr); #endif /*LODEPNG_COMPILE_ALLOCATORS*/ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* // Tools for C, and common code for PNG and Zlib. // */ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* Often in case of an error a value is assigned to a variable and then it breaks out of a loop (to go to the cleanup phase of a function). This macro does that. It makes the error handling code shorter and more readable. Example: if(!uivector_resizev(&frequencies_ll, 286, 0)) ERROR_BREAK(83); */ #define CERROR_BREAK(errorvar, code)\ {\ errorvar = code;\ break;\ } /*version of CERROR_BREAK that assumes the common case where the error variable is named "error"*/ #define ERROR_BREAK(code) CERROR_BREAK(error, code) /*Set error var to the error code, and return it.*/ #define CERROR_RETURN_ERROR(errorvar, code)\ {\ errorvar = code;\ return code;\ } /*Try the code, if it returns error, also return the error.*/ #define CERROR_TRY_RETURN(call)\ {\ unsigned error = call;\ if(error) return error;\ } /*Set error var to the error code, and return from the void function.*/ #define CERROR_RETURN(errorvar, code)\ {\ errorvar = code;\ return;\ } /* About uivector, ucvector and string: -All of them wrap dynamic arrays or text strings in a similar way. -LodePNG was originally written in C++. The vectors replace the std::vectors that were used in the C++ version. -The string tools are made to avoid problems with compilers that declare things like strncat as deprecated. -They're not used in the interface, only internally in this file as static functions. -As with many other structs in this file, the init and cleanup functions serve as ctor and dtor. */ #ifdef LODEPNG_COMPILE_ZLIB /*dynamic vector of unsigned ints*/ typedef struct uivector { unsigned* data; size_t size; /*size in number of unsigned longs*/ size_t allocsize; /*allocated size in bytes*/ } uivector; static void uivector_cleanup(void* p) { ((uivector*)p)->size = ((uivector*)p)->allocsize = 0; lodepng_free(((uivector*)p)->data); ((uivector*)p)->data = NULL; } /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned uivector_reserve(uivector* p, size_t allocsize) { if(allocsize > p->allocsize) { size_t newsize = (allocsize > p->allocsize * 2) ? allocsize : (allocsize * 3 / 2); void* data = lodepng_realloc(p->data, newsize); if(data) { p->allocsize = newsize; p->data = (unsigned*)data; } else return 0; /*error: not enough memory*/ } return 1; } /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned uivector_resize(uivector* p, size_t size) { if(!uivector_reserve(p, size * sizeof(unsigned))) return 0; p->size = size; return 1; /*success*/ } /*resize and give all new elements the value*/ static unsigned uivector_resizev(uivector* p, size_t size, unsigned value) { size_t oldsize = p->size, i; if(!uivector_resize(p, size)) return 0; for(i = oldsize; i < size; ++i) p->data[i] = value; return 1; } static void uivector_init(uivector* p) { p->data = NULL; p->size = p->allocsize = 0; } #ifdef LODEPNG_COMPILE_ENCODER /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned uivector_push_back(uivector* p, unsigned c) { if(!uivector_resize(p, p->size + 1)) return 0; p->data[p->size - 1] = c; return 1; } #endif /*LODEPNG_COMPILE_ENCODER*/ #endif /*LODEPNG_COMPILE_ZLIB*/ /* /////////////////////////////////////////////////////////////////////////// */ /*dynamic vector of unsigned chars*/ typedef struct ucvector { unsigned char* data; size_t size; /*used size*/ size_t allocsize; /*allocated size*/ } ucvector; /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned ucvector_reserve(ucvector* p, size_t allocsize) { if(allocsize > p->allocsize) { size_t newsize = (allocsize > p->allocsize * 2) ? allocsize : (allocsize * 3 / 2); void* data = lodepng_realloc(p->data, newsize); if(data) { p->allocsize = newsize; p->data = (unsigned char*)data; } else return 0; /*error: not enough memory*/ } return 1; } /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned ucvector_resize(ucvector* p, size_t size) { if(!ucvector_reserve(p, size * sizeof(unsigned char))) return 0; p->size = size; return 1; /*success*/ } #ifdef LODEPNG_COMPILE_PNG static void ucvector_cleanup(void* p) { ((ucvector*)p)->size = ((ucvector*)p)->allocsize = 0; lodepng_free(((ucvector*)p)->data); ((ucvector*)p)->data = NULL; } static void ucvector_init(ucvector* p) { p->data = NULL; p->size = p->allocsize = 0; } #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ZLIB /*you can both convert from vector to buffer&size and vica versa. If you use init_buffer to take over a buffer and size, it is not needed to use cleanup*/ static void ucvector_init_buffer(ucvector* p, unsigned char* buffer, size_t size) { p->data = buffer; p->allocsize = p->size = size; } #endif /*LODEPNG_COMPILE_ZLIB*/ #if (defined(LODEPNG_COMPILE_PNG) && defined(LODEPNG_COMPILE_ANCILLARY_CHUNKS)) || defined(LODEPNG_COMPILE_ENCODER) /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned ucvector_push_back(ucvector* p, unsigned char c) { if(!ucvector_resize(p, p->size + 1)) return 0; p->data[p->size - 1] = c; return 1; } #endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_PNG #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*returns 1 if success, 0 if failure ==> nothing done*/ static unsigned string_resize(char** out, size_t size) { char* data = (char*)lodepng_realloc(*out, size + 1); if(data) { data[size] = 0; /*null termination char*/ *out = data; } return data != 0; } /*init a {char*, size_t} pair for use as string*/ static void string_init(char** out) { *out = NULL; string_resize(out, 0); } /*free the above pair again*/ static void string_cleanup(char** out) { lodepng_free(*out); *out = NULL; } static void string_set(char** out, const char* in) { size_t insize = strlen(in), i; if(string_resize(out, insize)) { for(i = 0; i != insize; ++i) { (*out)[i] = in[i]; } } } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ #endif /*LODEPNG_COMPILE_PNG*/ /* ////////////////////////////////////////////////////////////////////////// */ unsigned lodepng_read32bitInt(const unsigned char* buffer) { return (unsigned)((buffer[0] << 24) | (buffer[1] << 16) | (buffer[2] << 8) | buffer[3]); } #if defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER) /*buffer must have at least 4 allocated bytes available*/ static void lodepng_set32bitInt(unsigned char* buffer, unsigned value) { buffer[0] = (unsigned char)((value >> 24) & 0xff); buffer[1] = (unsigned char)((value >> 16) & 0xff); buffer[2] = (unsigned char)((value >> 8) & 0xff); buffer[3] = (unsigned char)((value ) & 0xff); } #endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/ #ifdef LODEPNG_COMPILE_ENCODER static void lodepng_add32bitInt(ucvector* buffer, unsigned value) { ucvector_resize(buffer, buffer->size + 4); /*todo: give error if resize failed*/ lodepng_set32bitInt(&buffer->data[buffer->size - 4], value); } #endif /*LODEPNG_COMPILE_ENCODER*/ /* ////////////////////////////////////////////////////////////////////////// */ /* / File IO / */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_DISK /* returns negative value on error. This should be pure C compatible, so no fstat. */ static long lodepng_filesize(const char* filename) { FILE* file; long size; file = fopen(filename, "rb"); if(!file) return -1; if(fseek(file, 0, SEEK_END) != 0) { fclose(file); return -1; } size = ftell(file); /* It may give LONG_MAX as directory size, this is invalid for us. */ if(size == LONG_MAX) size = -1; fclose(file); return size; } /* load file into buffer that already has the correct allocated size. Returns error code.*/ static unsigned lodepng_buffer_file(unsigned char* out, size_t size, const char* filename) { FILE* file; size_t readsize; file = fopen(filename, "rb"); if(!file) return 78; readsize = fread(out, 1, size, file); fclose(file); if (readsize != size) return 78; return 0; } unsigned lodepng_load_file(unsigned char** out, size_t* outsize, const char* filename) { long size = lodepng_filesize(filename); if (size < 0) return 78; *outsize = (size_t)size; *out = (unsigned char*)lodepng_malloc((size_t)size); if(!(*out) && size > 0) return 83; /*the above malloc failed*/ return lodepng_buffer_file(*out, (size_t)size, filename); } /*write given buffer to the file, overwriting the file, it doesn't append to it.*/ unsigned lodepng_save_file(const unsigned char* buffer, size_t buffersize, const char* filename) { FILE* file; file = fopen(filename, "wb" ); if(!file) return 79; fwrite((char*)buffer , 1 , buffersize, file); fclose(file); return 0; } #endif /*LODEPNG_COMPILE_DISK*/ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* // End of common code and tools. Begin of Zlib related code. // */ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_ZLIB #ifdef LODEPNG_COMPILE_ENCODER /*TODO: this ignores potential out of memory errors*/ #define addBitToStream(/*size_t**/ bitpointer, /*ucvector**/ bitstream, /*unsigned char*/ bit)\ {\ /*add a new byte at the end*/\ if(((*bitpointer) & 7) == 0) ucvector_push_back(bitstream, (unsigned char)0);\ /*earlier bit of huffman code is in a lesser significant bit of an earlier byte*/\ (bitstream->data[bitstream->size - 1]) |= (bit << ((*bitpointer) & 0x7));\ ++(*bitpointer);\ } static void addBitsToStream(size_t* bitpointer, ucvector* bitstream, unsigned value, size_t nbits) { size_t i; for(i = 0; i != nbits; ++i) addBitToStream(bitpointer, bitstream, (unsigned char)((value >> i) & 1)); } static void addBitsToStreamReversed(size_t* bitpointer, ucvector* bitstream, unsigned value, size_t nbits) { size_t i; for(i = 0; i != nbits; ++i) addBitToStream(bitpointer, bitstream, (unsigned char)((value >> (nbits - 1 - i)) & 1)); } #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_DECODER #define READBIT(bitpointer, bitstream) ((bitstream[bitpointer >> 3] >> (bitpointer & 0x7)) & (unsigned char)1) static unsigned char readBitFromStream(size_t* bitpointer, const unsigned char* bitstream) { unsigned char result = (unsigned char)(READBIT(*bitpointer, bitstream)); ++(*bitpointer); return result; } static unsigned readBitsFromStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits) { unsigned result = 0, i; for(i = 0; i != nbits; ++i) { result += ((unsigned)READBIT(*bitpointer, bitstream)) << i; ++(*bitpointer); } return result; } #endif /*LODEPNG_COMPILE_DECODER*/ /* ////////////////////////////////////////////////////////////////////////// */ /* / Deflate - Huffman / */ /* ////////////////////////////////////////////////////////////////////////// */ #define FIRST_LENGTH_CODE_INDEX 257 #define LAST_LENGTH_CODE_INDEX 285 /*256 literals, the end code, some length codes, and 2 unused codes*/ #define NUM_DEFLATE_CODE_SYMBOLS 288 /*the distance codes have their own symbols, 30 used, 2 unused*/ #define NUM_DISTANCE_SYMBOLS 32 /*the code length codes. 0-15: code lengths, 16: copy previous 3-6 times, 17: 3-10 zeros, 18: 11-138 zeros*/ #define NUM_CODE_LENGTH_CODES 19 /*the base lengths represented by codes 257-285*/ static const unsigned LENGTHBASE[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; /*the extra bits used by codes 257-285 (added to base length)*/ static const unsigned LENGTHEXTRA[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; /*the base backwards distances (the bits of distance codes appear after length codes and use their own huffman tree)*/ static const unsigned DISTANCEBASE[30] = {1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; /*the extra bits of backwards distances (added to base)*/ static const unsigned DISTANCEEXTRA[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; /*the order in which "code length alphabet code lengths" are stored, out of this the huffman tree of the dynamic huffman tree lengths is generated*/ static const unsigned CLCL_ORDER[NUM_CODE_LENGTH_CODES] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; /* ////////////////////////////////////////////////////////////////////////// */ /* Huffman tree struct, containing multiple representations of the tree */ typedef struct HuffmanTree { unsigned* tree2d; unsigned* tree1d; unsigned* lengths; /*the lengths of the codes of the 1d-tree*/ unsigned maxbitlen; /*maximum number of bits a single code can get*/ unsigned numcodes; /*number of symbols in the alphabet = number of codes*/ } HuffmanTree; /*function used for debug purposes to draw the tree in ascii art with C++*/ /* static void HuffmanTree_draw(HuffmanTree* tree) { std::cout << "tree. length: " << tree->numcodes << " maxbitlen: " << tree->maxbitlen << std::endl; for(size_t i = 0; i != tree->tree1d.size; ++i) { if(tree->lengths.data[i]) std::cout << i << " " << tree->tree1d.data[i] << " " << tree->lengths.data[i] << std::endl; } std::cout << std::endl; }*/ static void HuffmanTree_init(HuffmanTree* tree) { tree->tree2d = 0; tree->tree1d = 0; tree->lengths = 0; } static void HuffmanTree_cleanup(HuffmanTree* tree) { lodepng_free(tree->tree2d); lodepng_free(tree->tree1d); lodepng_free(tree->lengths); } /*the tree representation used by the decoder. return value is error*/ static unsigned HuffmanTree_make2DTree(HuffmanTree* tree) { unsigned nodefilled = 0; /*up to which node it is filled*/ unsigned treepos = 0; /*position in the tree (1 of the numcodes columns)*/ unsigned n, i; tree->tree2d = (unsigned*)lodepng_malloc(tree->numcodes * 2 * sizeof(unsigned)); if(!tree->tree2d) return 83; /*alloc fail*/ /* convert tree1d[] to tree2d[][]. In the 2D array, a value of 32767 means uninited, a value >= numcodes is an address to another bit, a value < numcodes is a code. The 2 rows are the 2 possible bit values (0 or 1), there are as many columns as codes - 1. A good huffman tree has N * 2 - 1 nodes, of which N - 1 are internal nodes. Here, the internal nodes are stored (what their 0 and 1 option point to). There is only memory for such good tree currently, if there are more nodes (due to too long length codes), error 55 will happen */ for(n = 0; n < tree->numcodes * 2; ++n) { tree->tree2d[n] = 32767; /*32767 here means the tree2d isn't filled there yet*/ } for(n = 0; n < tree->numcodes; ++n) /*the codes*/ { for(i = 0; i != tree->lengths[n]; ++i) /*the bits for this code*/ { unsigned char bit = (unsigned char)((tree->tree1d[n] >> (tree->lengths[n] - i - 1)) & 1); /*oversubscribed, see comment in lodepng_error_text*/ if(treepos > 2147483647 || treepos + 2 > tree->numcodes) return 55; if(tree->tree2d[2 * treepos + bit] == 32767) /*not yet filled in*/ { if(i + 1 == tree->lengths[n]) /*last bit*/ { tree->tree2d[2 * treepos + bit] = n; /*put the current code in it*/ treepos = 0; } else { /*put address of the next step in here, first that address has to be found of course (it's just nodefilled + 1)...*/ ++nodefilled; /*addresses encoded with numcodes added to it*/ tree->tree2d[2 * treepos + bit] = nodefilled + tree->numcodes; treepos = nodefilled; } } else treepos = tree->tree2d[2 * treepos + bit] - tree->numcodes; } } for(n = 0; n < tree->numcodes * 2; ++n) { if(tree->tree2d[n] == 32767) tree->tree2d[n] = 0; /*remove possible remaining 32767's*/ } return 0; } /* Second step for the ...makeFromLengths and ...makeFromFrequencies functions. numcodes, lengths and maxbitlen must already be filled in correctly. return value is error. */ static unsigned HuffmanTree_makeFromLengths2(HuffmanTree* tree) { uivector blcount; uivector nextcode; unsigned error = 0; unsigned bits, n; uivector_init(&blcount); uivector_init(&nextcode); tree->tree1d = (unsigned*)lodepng_malloc(tree->numcodes * sizeof(unsigned)); if(!tree->tree1d) error = 83; /*alloc fail*/ if(!uivector_resizev(&blcount, tree->maxbitlen + 1, 0) || !uivector_resizev(&nextcode, tree->maxbitlen + 1, 0)) error = 83; /*alloc fail*/ if(!error) { /*step 1: count number of instances of each code length*/ for(bits = 0; bits != tree->numcodes; ++bits) ++blcount.data[tree->lengths[bits]]; /*step 2: generate the nextcode values*/ for(bits = 1; bits <= tree->maxbitlen; ++bits) { nextcode.data[bits] = (nextcode.data[bits - 1] + blcount.data[bits - 1]) << 1; } /*step 3: generate all the codes*/ for(n = 0; n != tree->numcodes; ++n) { if(tree->lengths[n] != 0) tree->tree1d[n] = nextcode.data[tree->lengths[n]]++; } } uivector_cleanup(&blcount); uivector_cleanup(&nextcode); if(!error) return HuffmanTree_make2DTree(tree); else return error; } /* given the code lengths (as stored in the PNG file), generate the tree as defined by Deflate. maxbitlen is the maximum bits that a code in the tree can have. return value is error. */ static unsigned HuffmanTree_makeFromLengths(HuffmanTree* tree, const unsigned* bitlen, size_t numcodes, unsigned maxbitlen) { unsigned i; tree->lengths = (unsigned*)lodepng_malloc(numcodes * sizeof(unsigned)); if(!tree->lengths) return 83; /*alloc fail*/ for(i = 0; i != numcodes; ++i) tree->lengths[i] = bitlen[i]; tree->numcodes = (unsigned)numcodes; /*number of symbols*/ tree->maxbitlen = maxbitlen; return HuffmanTree_makeFromLengths2(tree); } #ifdef LODEPNG_COMPILE_ENCODER /*BPM: Boundary Package Merge, see "A Fast and Space-Economical Algorithm for Length-Limited Coding", Jyrki Katajainen, Alistair Moffat, Andrew Turpin, 1995.*/ /*chain node for boundary package merge*/ typedef struct BPMNode { int weight; /*the sum of all weights in this chain*/ unsigned index; /*index of this leaf node (called "count" in the paper)*/ struct BPMNode* tail; /*the next nodes in this chain (null if last)*/ int in_use; } BPMNode; /*lists of chains*/ typedef struct BPMLists { /*memory pool*/ unsigned memsize; BPMNode* memory; unsigned numfree; unsigned nextfree; BPMNode** freelist; /*two heads of lookahead chains per list*/ unsigned listsize; BPMNode** chains0; BPMNode** chains1; } BPMLists; /*creates a new chain node with the given parameters, from the memory in the lists */ static BPMNode* bpmnode_create(BPMLists* lists, int weight, unsigned index, BPMNode* tail) { unsigned i; BPMNode* result; /*memory full, so garbage collect*/ if(lists->nextfree >= lists->numfree) { /*mark only those that are in use*/ for(i = 0; i != lists->memsize; ++i) lists->memory[i].in_use = 0; for(i = 0; i != lists->listsize; ++i) { BPMNode* node; for(node = lists->chains0[i]; node != 0; node = node->tail) node->in_use = 1; for(node = lists->chains1[i]; node != 0; node = node->tail) node->in_use = 1; } /*collect those that are free*/ lists->numfree = 0; for(i = 0; i != lists->memsize; ++i) { if(!lists->memory[i].in_use) lists->freelist[lists->numfree++] = &lists->memory[i]; } lists->nextfree = 0; } result = lists->freelist[lists->nextfree++]; result->weight = weight; result->index = index; result->tail = tail; return result; } /*sort the leaves with stable mergesort*/ static void bpmnode_sort(BPMNode* leaves, size_t num) { BPMNode* mem = (BPMNode*)lodepng_malloc(sizeof(*leaves) * num); size_t width, counter = 0; for(width = 1; width < num; width *= 2) { BPMNode* a = (counter & 1) ? mem : leaves; BPMNode* b = (counter & 1) ? leaves : mem; size_t p; for(p = 0; p < num; p += 2 * width) { size_t q = (p + width > num) ? num : (p + width); size_t r = (p + 2 * width > num) ? num : (p + 2 * width); size_t i = p, j = q, k; for(k = p; k < r; k++) { if(i < q && (j >= r || a[i].weight <= a[j].weight)) b[k] = a[i++]; else b[k] = a[j++]; } } counter++; } if(counter & 1) memcpy(leaves, mem, sizeof(*leaves) * num); lodepng_free(mem); } /*Boundary Package Merge step, numpresent is the amount of leaves, and c is the current chain.*/ static void boundaryPM(BPMLists* lists, BPMNode* leaves, size_t numpresent, int c, int num) { unsigned lastindex = lists->chains1[c]->index; if(c == 0) { if(lastindex >= numpresent) return; lists->chains0[c] = lists->chains1[c]; lists->chains1[c] = bpmnode_create(lists, leaves[lastindex].weight, lastindex + 1, 0); } else { /*sum of the weights of the head nodes of the previous lookahead chains.*/ int sum = lists->chains0[c - 1]->weight + lists->chains1[c - 1]->weight; lists->chains0[c] = lists->chains1[c]; if(lastindex < numpresent && sum > leaves[lastindex].weight) { lists->chains1[c] = bpmnode_create(lists, leaves[lastindex].weight, lastindex + 1, lists->chains1[c]->tail); return; } lists->chains1[c] = bpmnode_create(lists, sum, lastindex, lists->chains1[c - 1]); /*in the end we are only interested in the chain of the last list, so no need to recurse if we're at the last one (this gives measurable speedup)*/ if(num + 1 < (int)(2 * numpresent - 2)) { boundaryPM(lists, leaves, numpresent, c - 1, num); boundaryPM(lists, leaves, numpresent, c - 1, num); } } } unsigned lodepng_huffman_code_lengths(unsigned* lengths, const unsigned* frequencies, size_t numcodes, unsigned maxbitlen) { unsigned error = 0; unsigned i; size_t numpresent = 0; /*number of symbols with non-zero frequency*/ BPMNode* leaves; /*the symbols, only those with > 0 frequency*/ if(numcodes == 0) return 80; /*error: a tree of 0 symbols is not supposed to be made*/ if((1u << maxbitlen) < numcodes) return 80; /*error: represent all symbols*/ leaves = (BPMNode*)lodepng_malloc(numcodes * sizeof(*leaves)); if(!leaves) return 83; /*alloc fail*/ for(i = 0; i != numcodes; ++i) { if(frequencies[i] > 0) { leaves[numpresent].weight = (int)frequencies[i]; leaves[numpresent].index = i; ++numpresent; } } for(i = 0; i != numcodes; ++i) lengths[i] = 0; /*ensure at least two present symbols. There should be at least one symbol according to RFC 1951 section 3.2.7. Some decoders incorrectly require two. To make these work as well ensure there are at least two symbols. The Package-Merge code below also doesn't work correctly if there's only one symbol, it'd give it the theoritical 0 bits but in practice zlib wants 1 bit*/ if(numpresent == 0) { lengths[0] = lengths[1] = 1; /*note that for RFC 1951 section 3.2.7, only lengths[0] = 1 is needed*/ } else if(numpresent == 1) { lengths[leaves[0].index] = 1; lengths[leaves[0].index == 0 ? 1 : 0] = 1; } else { BPMLists lists; BPMNode* node; bpmnode_sort(leaves, numpresent); lists.listsize = maxbitlen; lists.memsize = 2 * maxbitlen * (maxbitlen + 1); lists.nextfree = 0; lists.numfree = lists.memsize; lists.memory = (BPMNode*)lodepng_malloc(lists.memsize * sizeof(*lists.memory)); lists.freelist = (BPMNode**)lodepng_malloc(lists.memsize * sizeof(BPMNode*)); lists.chains0 = (BPMNode**)lodepng_malloc(lists.listsize * sizeof(BPMNode*)); lists.chains1 = (BPMNode**)lodepng_malloc(lists.listsize * sizeof(BPMNode*)); if(!lists.memory || !lists.freelist || !lists.chains0 || !lists.chains1) error = 83; /*alloc fail*/ if(!error) { for(i = 0; i != lists.memsize; ++i) lists.freelist[i] = &lists.memory[i]; bpmnode_create(&lists, leaves[0].weight, 1, 0); bpmnode_create(&lists, leaves[1].weight, 2, 0); for(i = 0; i != lists.listsize; ++i) { lists.chains0[i] = &lists.memory[0]; lists.chains1[i] = &lists.memory[1]; } /*each boundaryPM call adds one chain to the last list, and we need 2 * numpresent - 2 chains.*/ for(i = 2; i != 2 * numpresent - 2; ++i) boundaryPM(&lists, leaves, numpresent, (int)maxbitlen - 1, (int)i); for(node = lists.chains1[maxbitlen - 1]; node; node = node->tail) { for(i = 0; i != node->index; ++i) ++lengths[leaves[i].index]; } } lodepng_free(lists.memory); lodepng_free(lists.freelist); lodepng_free(lists.chains0); lodepng_free(lists.chains1); } lodepng_free(leaves); return error; } /*Create the Huffman tree given the symbol frequencies*/ static unsigned HuffmanTree_makeFromFrequencies(HuffmanTree* tree, const unsigned* frequencies, size_t mincodes, size_t numcodes, unsigned maxbitlen) { unsigned error = 0; while(!frequencies[numcodes - 1] && numcodes > mincodes) --numcodes; /*trim zeroes*/ tree->maxbitlen = maxbitlen; tree->numcodes = (unsigned)numcodes; /*number of symbols*/ tree->lengths = (unsigned*)lodepng_realloc(tree->lengths, numcodes * sizeof(unsigned)); if(!tree->lengths) return 83; /*alloc fail*/ /*initialize all lengths to 0*/ memset(tree->lengths, 0, numcodes * sizeof(unsigned)); error = lodepng_huffman_code_lengths(tree->lengths, frequencies, numcodes, maxbitlen); if(!error) error = HuffmanTree_makeFromLengths2(tree); return error; } static unsigned HuffmanTree_getCode(const HuffmanTree* tree, unsigned index) { return tree->tree1d[index]; } static unsigned HuffmanTree_getLength(const HuffmanTree* tree, unsigned index) { return tree->lengths[index]; } #endif /*LODEPNG_COMPILE_ENCODER*/ /*get the literal and length code tree of a deflated block with fixed tree, as per the deflate specification*/ static unsigned generateFixedLitLenTree(HuffmanTree* tree) { unsigned i, error = 0; unsigned* bitlen = (unsigned*)lodepng_malloc(NUM_DEFLATE_CODE_SYMBOLS * sizeof(unsigned)); if(!bitlen) return 83; /*alloc fail*/ /*288 possible codes: 0-255=literals, 256=endcode, 257-285=lengthcodes, 286-287=unused*/ for(i = 0; i <= 143; ++i) bitlen[i] = 8; for(i = 144; i <= 255; ++i) bitlen[i] = 9; for(i = 256; i <= 279; ++i) bitlen[i] = 7; for(i = 280; i <= 287; ++i) bitlen[i] = 8; error = HuffmanTree_makeFromLengths(tree, bitlen, NUM_DEFLATE_CODE_SYMBOLS, 15); lodepng_free(bitlen); return error; } /*get the distance code tree of a deflated block with fixed tree, as specified in the deflate specification*/ static unsigned generateFixedDistanceTree(HuffmanTree* tree) { unsigned i, error = 0; unsigned* bitlen = (unsigned*)lodepng_malloc(NUM_DISTANCE_SYMBOLS * sizeof(unsigned)); if(!bitlen) return 83; /*alloc fail*/ /*there are 32 distance codes, but 30-31 are unused*/ for(i = 0; i != NUM_DISTANCE_SYMBOLS; ++i) bitlen[i] = 5; error = HuffmanTree_makeFromLengths(tree, bitlen, NUM_DISTANCE_SYMBOLS, 15); lodepng_free(bitlen); return error; } #ifdef LODEPNG_COMPILE_DECODER /* returns the code, or (unsigned)(-1) if error happened inbitlength is the length of the complete buffer, in bits (so its byte length times 8) */ static unsigned huffmanDecodeSymbol(const unsigned char* in, size_t* bp, const HuffmanTree* codetree, size_t inbitlength) { unsigned treepos = 0, ct; for(;;) { if(*bp >= inbitlength) return (unsigned)(-1); /*error: end of input memory reached without endcode*/ /* decode the symbol from the tree. The "readBitFromStream" code is inlined in the expression below because this is the biggest bottleneck while decoding */ ct = codetree->tree2d[(treepos << 1) + READBIT(*bp, in)]; ++(*bp); if(ct < codetree->numcodes) return ct; /*the symbol is decoded, return it*/ else treepos = ct - codetree->numcodes; /*symbol not yet decoded, instead move tree position*/ if(treepos >= codetree->numcodes) return (unsigned)(-1); /*error: it appeared outside the codetree*/ } } #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_DECODER /* ////////////////////////////////////////////////////////////////////////// */ /* / Inflator (Decompressor) / */ /* ////////////////////////////////////////////////////////////////////////// */ /*get the tree of a deflated block with fixed tree, as specified in the deflate specification*/ static void getTreeInflateFixed(HuffmanTree* tree_ll, HuffmanTree* tree_d) { /*TODO: check for out of memory errors*/ generateFixedLitLenTree(tree_ll); generateFixedDistanceTree(tree_d); } /*get the tree of a deflated block with dynamic tree, the tree itself is also Huffman compressed with a known tree*/ static unsigned getTreeInflateDynamic(HuffmanTree* tree_ll, HuffmanTree* tree_d, const unsigned char* in, size_t* bp, size_t inlength) { /*make sure that length values that aren't filled in will be 0, or a wrong tree will be generated*/ unsigned error = 0; unsigned n, HLIT, HDIST, HCLEN, i; size_t inbitlength = inlength * 8; /*see comments in deflateDynamic for explanation of the context and these variables, it is analogous*/ unsigned* bitlen_ll = 0; /*lit,len code lengths*/ unsigned* bitlen_d = 0; /*dist code lengths*/ /*code length code lengths ("clcl"), the bit lengths of the huffman tree used to compress bitlen_ll and bitlen_d*/ unsigned* bitlen_cl = 0; HuffmanTree tree_cl; /*the code tree for code length codes (the huffman tree for compressed huffman trees)*/ if((*bp) + 14 > (inlength << 3)) return 49; /*error: the bit pointer is or will go past the memory*/ /*number of literal/length codes + 257. Unlike the spec, the value 257 is added to it here already*/ HLIT = readBitsFromStream(bp, in, 5) + 257; /*number of distance codes. Unlike the spec, the value 1 is added to it here already*/ HDIST = readBitsFromStream(bp, in, 5) + 1; /*number of code length codes. Unlike the spec, the value 4 is added to it here already*/ HCLEN = readBitsFromStream(bp, in, 4) + 4; if((*bp) + HCLEN * 3 > (inlength << 3)) return 50; /*error: the bit pointer is or will go past the memory*/ HuffmanTree_init(&tree_cl); while(!error) { /*read the code length codes out of 3 * (amount of code length codes) bits*/ bitlen_cl = (unsigned*)lodepng_malloc(NUM_CODE_LENGTH_CODES * sizeof(unsigned)); if(!bitlen_cl) ERROR_BREAK(83 /*alloc fail*/); for(i = 0; i != NUM_CODE_LENGTH_CODES; ++i) { if(i < HCLEN) bitlen_cl[CLCL_ORDER[i]] = readBitsFromStream(bp, in, 3); else bitlen_cl[CLCL_ORDER[i]] = 0; /*if not, it must stay 0*/ } error = HuffmanTree_makeFromLengths(&tree_cl, bitlen_cl, NUM_CODE_LENGTH_CODES, 7); if(error) break; /*now we can use this tree to read the lengths for the tree that this function will return*/ bitlen_ll = (unsigned*)lodepng_malloc(NUM_DEFLATE_CODE_SYMBOLS * sizeof(unsigned)); bitlen_d = (unsigned*)lodepng_malloc(NUM_DISTANCE_SYMBOLS * sizeof(unsigned)); if(!bitlen_ll || !bitlen_d) ERROR_BREAK(83 /*alloc fail*/); for(i = 0; i != NUM_DEFLATE_CODE_SYMBOLS; ++i) bitlen_ll[i] = 0; for(i = 0; i != NUM_DISTANCE_SYMBOLS; ++i) bitlen_d[i] = 0; /*i is the current symbol we're reading in the part that contains the code lengths of lit/len and dist codes*/ i = 0; while(i < HLIT + HDIST) { unsigned code = huffmanDecodeSymbol(in, bp, &tree_cl, inbitlength); if(code <= 15) /*a length code*/ { if(i < HLIT) bitlen_ll[i] = code; else bitlen_d[i - HLIT] = code; ++i; } else if(code == 16) /*repeat previous*/ { unsigned replength = 3; /*read in the 2 bits that indicate repeat length (3-6)*/ unsigned value; /*set value to the previous code*/ if(i == 0) ERROR_BREAK(54); /*can't repeat previous if i is 0*/ if((*bp + 2) > inbitlength) ERROR_BREAK(50); /*error, bit pointer jumps past memory*/ replength += readBitsFromStream(bp, in, 2); if(i < HLIT + 1) value = bitlen_ll[i - 1]; else value = bitlen_d[i - HLIT - 1]; /*repeat this value in the next lengths*/ for(n = 0; n < replength; ++n) { if(i >= HLIT + HDIST) ERROR_BREAK(13); /*error: i is larger than the amount of codes*/ if(i < HLIT) bitlen_ll[i] = value; else bitlen_d[i - HLIT] = value; ++i; } } else if(code == 17) /*repeat "0" 3-10 times*/ { unsigned replength = 3; /*read in the bits that indicate repeat length*/ if((*bp + 3) > inbitlength) ERROR_BREAK(50); /*error, bit pointer jumps past memory*/ replength += readBitsFromStream(bp, in, 3); /*repeat this value in the next lengths*/ for(n = 0; n < replength; ++n) { if(i >= HLIT + HDIST) ERROR_BREAK(14); /*error: i is larger than the amount of codes*/ if(i < HLIT) bitlen_ll[i] = 0; else bitlen_d[i - HLIT] = 0; ++i; } } else if(code == 18) /*repeat "0" 11-138 times*/ { unsigned replength = 11; /*read in the bits that indicate repeat length*/ if((*bp + 7) > inbitlength) ERROR_BREAK(50); /*error, bit pointer jumps past memory*/ replength += readBitsFromStream(bp, in, 7); /*repeat this value in the next lengths*/ for(n = 0; n < replength; ++n) { if(i >= HLIT + HDIST) ERROR_BREAK(15); /*error: i is larger than the amount of codes*/ if(i < HLIT) bitlen_ll[i] = 0; else bitlen_d[i - HLIT] = 0; ++i; } } else /*if(code == (unsigned)(-1))*/ /*huffmanDecodeSymbol returns (unsigned)(-1) in case of error*/ { if(code == (unsigned)(-1)) { /*return error code 10 or 11 depending on the situation that happened in huffmanDecodeSymbol (10=no endcode, 11=wrong jump outside of tree)*/ error = (*bp) > inbitlength ? 10 : 11; } else error = 16; /*unexisting code, this can never happen*/ break; } } if(error) break; if(bitlen_ll[256] == 0) ERROR_BREAK(64); /*the length of the end code 256 must be larger than 0*/ /*now we've finally got HLIT and HDIST, so generate the code trees, and the function is done*/ error = HuffmanTree_makeFromLengths(tree_ll, bitlen_ll, NUM_DEFLATE_CODE_SYMBOLS, 15); if(error) break; error = HuffmanTree_makeFromLengths(tree_d, bitlen_d, NUM_DISTANCE_SYMBOLS, 15); break; /*end of error-while*/ } lodepng_free(bitlen_cl); lodepng_free(bitlen_ll); lodepng_free(bitlen_d); HuffmanTree_cleanup(&tree_cl); return error; } /*inflate a block with dynamic of fixed Huffman tree*/ static unsigned inflateHuffmanBlock(ucvector* out, const unsigned char* in, size_t* bp, size_t* pos, size_t inlength, unsigned btype) { unsigned error = 0; HuffmanTree tree_ll; /*the huffman tree for literal and length codes*/ HuffmanTree tree_d; /*the huffman tree for distance codes*/ size_t inbitlength = inlength * 8; HuffmanTree_init(&tree_ll); HuffmanTree_init(&tree_d); if(btype == 1) getTreeInflateFixed(&tree_ll, &tree_d); else if(btype == 2) error = getTreeInflateDynamic(&tree_ll, &tree_d, in, bp, inlength); while(!error) /*decode all symbols until end reached, breaks at end code*/ { /*code_ll is literal, length or end code*/ unsigned code_ll = huffmanDecodeSymbol(in, bp, &tree_ll, inbitlength); if(code_ll <= 255) /*literal symbol*/ { /*ucvector_push_back would do the same, but for some reason the two lines below run 10% faster*/ if(!ucvector_resize(out, (*pos) + 1)) ERROR_BREAK(83 /*alloc fail*/); out->data[*pos] = (unsigned char)code_ll; ++(*pos); } else if(code_ll >= FIRST_LENGTH_CODE_INDEX && code_ll <= LAST_LENGTH_CODE_INDEX) /*length code*/ { unsigned code_d, distance; unsigned numextrabits_l, numextrabits_d; /*extra bits for length and distance*/ size_t start, forward, backward, length; /*part 1: get length base*/ length = LENGTHBASE[code_ll - FIRST_LENGTH_CODE_INDEX]; /*part 2: get extra bits and add the value of that to length*/ numextrabits_l = LENGTHEXTRA[code_ll - FIRST_LENGTH_CODE_INDEX]; if((*bp + numextrabits_l) > inbitlength) ERROR_BREAK(51); /*error, bit pointer will jump past memory*/ length += readBitsFromStream(bp, in, numextrabits_l); /*part 3: get distance code*/ code_d = huffmanDecodeSymbol(in, bp, &tree_d, inbitlength); if(code_d > 29) { if(code_ll == (unsigned)(-1)) /*huffmanDecodeSymbol returns (unsigned)(-1) in case of error*/ { /*return error code 10 or 11 depending on the situation that happened in huffmanDecodeSymbol (10=no endcode, 11=wrong jump outside of tree)*/ error = (*bp) > inlength * 8 ? 10 : 11; } else error = 18; /*error: invalid distance code (30-31 are never used)*/ break; } distance = DISTANCEBASE[code_d]; /*part 4: get extra bits from distance*/ numextrabits_d = DISTANCEEXTRA[code_d]; if((*bp + numextrabits_d) > inbitlength) ERROR_BREAK(51); /*error, bit pointer will jump past memory*/ distance += readBitsFromStream(bp, in, numextrabits_d); /*part 5: fill in all the out[n] values based on the length and dist*/ start = (*pos); if(distance > start) ERROR_BREAK(52); /*too long backward distance*/ backward = start - distance; if(!ucvector_resize(out, (*pos) + length)) ERROR_BREAK(83 /*alloc fail*/); if (distance < length) { for(forward = 0; forward < length; ++forward) { out->data[(*pos)++] = out->data[backward++]; } } else { memcpy(out->data + *pos, out->data + backward, length); *pos += length; } } else if(code_ll == 256) { break; /*end code, break the loop*/ } else /*if(code == (unsigned)(-1))*/ /*huffmanDecodeSymbol returns (unsigned)(-1) in case of error*/ { /*return error code 10 or 11 depending on the situation that happened in huffmanDecodeSymbol (10=no endcode, 11=wrong jump outside of tree)*/ error = ((*bp) > inlength * 8) ? 10 : 11; break; } } HuffmanTree_cleanup(&tree_ll); HuffmanTree_cleanup(&tree_d); return error; } static unsigned inflateNoCompression(ucvector* out, const unsigned char* in, size_t* bp, size_t* pos, size_t inlength) { size_t p; unsigned LEN, NLEN, n, error = 0; /*go to first boundary of byte*/ while(((*bp) & 0x7) != 0) ++(*bp); p = (*bp) / 8; /*byte position*/ /*read LEN (2 bytes) and NLEN (2 bytes)*/ if(p + 4 >= inlength) return 52; /*error, bit pointer will jump past memory*/ LEN = in[p] + 256u * in[p + 1]; p += 2; NLEN = in[p] + 256u * in[p + 1]; p += 2; /*check if 16-bit NLEN is really the one's complement of LEN*/ if(LEN + NLEN != 65535) return 21; /*error: NLEN is not one's complement of LEN*/ if(!ucvector_resize(out, (*pos) + LEN)) return 83; /*alloc fail*/ /*read the literal data: LEN bytes are now stored in the out buffer*/ if(p + LEN > inlength) return 23; /*error: reading outside of in buffer*/ for(n = 0; n < LEN; ++n) out->data[(*pos)++] = in[p++]; (*bp) = p * 8; return error; } static unsigned lodepng_inflatev(ucvector* out, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { /*bit pointer in the "in" data, current byte is bp >> 3, current bit is bp & 0x7 (from lsb to msb of the byte)*/ size_t bp = 0; unsigned BFINAL = 0; size_t pos = 0; /*byte position in the out buffer*/ unsigned error = 0; (void)settings; while(!BFINAL) { unsigned BTYPE; if(bp + 2 >= insize * 8) return 52; /*error, bit pointer will jump past memory*/ BFINAL = readBitFromStream(&bp, in); BTYPE = 1u * readBitFromStream(&bp, in); BTYPE += 2u * readBitFromStream(&bp, in); if(BTYPE == 3) return 20; /*error: invalid BTYPE*/ else if(BTYPE == 0) error = inflateNoCompression(out, in, &bp, &pos, insize); /*no compression*/ else error = inflateHuffmanBlock(out, in, &bp, &pos, insize, BTYPE); /*compression, BTYPE 01 or 10*/ if(error) return error; } return error; } unsigned lodepng_inflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { unsigned error; ucvector v; ucvector_init_buffer(&v, *out, *outsize); error = lodepng_inflatev(&v, in, insize, settings); *out = v.data; *outsize = v.size; return error; } static unsigned inflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { if(settings->custom_inflate) { return settings->custom_inflate(out, outsize, in, insize, settings); } else { return lodepng_inflate(out, outsize, in, insize, settings); } } #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER /* ////////////////////////////////////////////////////////////////////////// */ /* / Deflator (Compressor) / */ /* ////////////////////////////////////////////////////////////////////////// */ static const size_t MAX_SUPPORTED_DEFLATE_LENGTH = 258; /*bitlen is the size in bits of the code*/ static void addHuffmanSymbol(size_t* bp, ucvector* compressed, unsigned code, unsigned bitlen) { addBitsToStreamReversed(bp, compressed, code, bitlen); } /*search the index in the array, that has the largest value smaller than or equal to the given value, given array must be sorted (if no value is smaller, it returns the size of the given array)*/ static size_t searchCodeIndex(const unsigned* array, size_t array_size, size_t value) { /*binary search (only small gain over linear). TODO: use CPU log2 instruction for getting symbols instead*/ size_t left = 1; size_t right = array_size - 1; while(left <= right) { size_t mid = (left + right) >> 1; if (array[mid] >= value) right = mid - 1; else left = mid + 1; } if(left >= array_size || array[left] > value) left--; return left; } static void addLengthDistance(uivector* values, size_t length, size_t distance) { /*values in encoded vector are those used by deflate: 0-255: literal bytes 256: end 257-285: length/distance pair (length code, followed by extra length bits, distance code, extra distance bits) 286-287: invalid*/ unsigned length_code = (unsigned)searchCodeIndex(LENGTHBASE, 29, length); unsigned extra_length = (unsigned)(length - LENGTHBASE[length_code]); unsigned dist_code = (unsigned)searchCodeIndex(DISTANCEBASE, 30, distance); unsigned extra_distance = (unsigned)(distance - DISTANCEBASE[dist_code]); uivector_push_back(values, length_code + FIRST_LENGTH_CODE_INDEX); uivector_push_back(values, extra_length); uivector_push_back(values, dist_code); uivector_push_back(values, extra_distance); } /*3 bytes of data get encoded into two bytes. The hash cannot use more than 3 bytes as input because 3 is the minimum match length for deflate*/ static const unsigned HASH_NUM_VALUES = 65536; static const unsigned HASH_BIT_MASK = 65535; /*HASH_NUM_VALUES - 1, but C90 does not like that as initializer*/ typedef struct Hash { int* head; /*hash value to head circular pos - can be outdated if went around window*/ /*circular pos to prev circular pos*/ unsigned short* chain; int* val; /*circular pos to hash value*/ /*TODO: do this not only for zeros but for any repeated byte. However for PNG it's always going to be the zeros that dominate, so not important for PNG*/ int* headz; /*similar to head, but for chainz*/ unsigned short* chainz; /*those with same amount of zeros*/ unsigned short* zeros; /*length of zeros streak, used as a second hash chain*/ } Hash; static unsigned hash_init(Hash* hash, unsigned windowsize) { unsigned i; hash->head = (int*)lodepng_malloc(sizeof(int) * HASH_NUM_VALUES); hash->val = (int*)lodepng_malloc(sizeof(int) * windowsize); hash->chain = (unsigned short*)lodepng_malloc(sizeof(unsigned short) * windowsize); hash->zeros = (unsigned short*)lodepng_malloc(sizeof(unsigned short) * windowsize); hash->headz = (int*)lodepng_malloc(sizeof(int) * (MAX_SUPPORTED_DEFLATE_LENGTH + 1)); hash->chainz = (unsigned short*)lodepng_malloc(sizeof(unsigned short) * windowsize); if(!hash->head || !hash->chain || !hash->val || !hash->headz|| !hash->chainz || !hash->zeros) { return 83; /*alloc fail*/ } /*initialize hash table*/ for(i = 0; i != HASH_NUM_VALUES; ++i) hash->head[i] = -1; for(i = 0; i != windowsize; ++i) hash->val[i] = -1; for(i = 0; i != windowsize; ++i) hash->chain[i] = i; /*same value as index indicates uninitialized*/ for(i = 0; i <= MAX_SUPPORTED_DEFLATE_LENGTH; ++i) hash->headz[i] = -1; for(i = 0; i != windowsize; ++i) hash->chainz[i] = i; /*same value as index indicates uninitialized*/ return 0; } static void hash_cleanup(Hash* hash) { lodepng_free(hash->head); lodepng_free(hash->val); lodepng_free(hash->chain); lodepng_free(hash->zeros); lodepng_free(hash->headz); lodepng_free(hash->chainz); } static unsigned getHash(const unsigned char* data, size_t size, size_t pos) { unsigned result = 0; if(pos + 2 < size) { /*A simple shift and xor hash is used. Since the data of PNGs is dominated by zeroes due to the filters, a better hash does not have a significant effect on speed in traversing the chain, and causes more time spend on calculating the hash.*/ result ^= (unsigned)(data[pos + 0] << 0u); result ^= (unsigned)(data[pos + 1] << 4u); result ^= (unsigned)(data[pos + 2] << 8u); } else { size_t amount, i; if(pos >= size) return 0; amount = size - pos; for(i = 0; i != amount; ++i) result ^= (unsigned)(data[pos + i] << (i * 8u)); } return result & HASH_BIT_MASK; } static unsigned countZeros(const unsigned char* data, size_t size, size_t pos) { const unsigned char* start = data + pos; const unsigned char* end = start + MAX_SUPPORTED_DEFLATE_LENGTH; if(end > data + size) end = data + size; data = start; while(data != end && *data == 0) ++data; /*subtracting two addresses returned as 32-bit number (max value is MAX_SUPPORTED_DEFLATE_LENGTH)*/ return (unsigned)(data - start); } /*wpos = pos & (windowsize - 1)*/ static void updateHashChain(Hash* hash, size_t wpos, unsigned hashval, unsigned short numzeros) { hash->val[wpos] = (int)hashval; if(hash->head[hashval] != -1) hash->chain[wpos] = hash->head[hashval]; hash->head[hashval] = wpos; hash->zeros[wpos] = numzeros; if(hash->headz[numzeros] != -1) hash->chainz[wpos] = hash->headz[numzeros]; hash->headz[numzeros] = wpos; } /* LZ77-encode the data. Return value is error code. The input are raw bytes, the output is in the form of unsigned integers with codes representing for example literal bytes, or length/distance pairs. It uses a hash table technique to let it encode faster. When doing LZ77 encoding, a sliding window (of windowsize) is used, and all past bytes in that window can be used as the "dictionary". A brute force search through all possible distances would be slow, and this hash technique is one out of several ways to speed this up. */ static unsigned encodeLZ77(uivector* out, Hash* hash, const unsigned char* in, size_t inpos, size_t insize, unsigned windowsize, unsigned minmatch, unsigned nicematch, unsigned lazymatching) { size_t pos; unsigned i, error = 0; /*for large window lengths, assume the user wants no compression loss. Otherwise, max hash chain length speedup.*/ unsigned maxchainlength = windowsize >= 8192 ? windowsize : windowsize / 8; unsigned maxlazymatch = windowsize >= 8192 ? MAX_SUPPORTED_DEFLATE_LENGTH : 64; unsigned usezeros = 1; /*not sure if setting it to false for windowsize < 8192 is better or worse*/ unsigned numzeros = 0; unsigned offset; /*the offset represents the distance in LZ77 terminology*/ unsigned length; unsigned lazy = 0; unsigned lazylength = 0, lazyoffset = 0; unsigned hashval; unsigned current_offset, current_length; unsigned prev_offset; const unsigned char *lastptr, *foreptr, *backptr; unsigned hashpos; if(windowsize == 0 || windowsize > 32768) return 60; /*error: windowsize smaller/larger than allowed*/ if((windowsize & (windowsize - 1)) != 0) return 90; /*error: must be power of two*/ if(nicematch > MAX_SUPPORTED_DEFLATE_LENGTH) nicematch = MAX_SUPPORTED_DEFLATE_LENGTH; for(pos = inpos; pos < insize; ++pos) { size_t wpos = pos & (windowsize - 1); /*position for in 'circular' hash buffers*/ unsigned chainlength = 0; hashval = getHash(in, insize, pos); if(usezeros && hashval == 0) { if(numzeros == 0) numzeros = countZeros(in, insize, pos); else if(pos + numzeros > insize || in[pos + numzeros - 1] != 0) --numzeros; } else { numzeros = 0; } updateHashChain(hash, wpos, hashval, numzeros); /*the length and offset found for the current position*/ length = 0; offset = 0; hashpos = hash->chain[wpos]; lastptr = &in[insize < pos + MAX_SUPPORTED_DEFLATE_LENGTH ? insize : pos + MAX_SUPPORTED_DEFLATE_LENGTH]; /*search for the longest string*/ prev_offset = 0; for(;;) { if(chainlength++ >= maxchainlength) break; current_offset = hashpos <= wpos ? wpos - hashpos : wpos - hashpos + windowsize; if(current_offset < prev_offset) break; /*stop when went completely around the circular buffer*/ prev_offset = current_offset; if(current_offset > 0) { /*test the next characters*/ foreptr = &in[pos]; backptr = &in[pos - current_offset]; /*common case in PNGs is lots of zeros. Quickly skip over them as a speedup*/ if(numzeros >= 3) { unsigned skip = hash->zeros[hashpos]; if(skip > numzeros) skip = numzeros; backptr += skip; foreptr += skip; } while(foreptr != lastptr && *backptr == *foreptr) /*maximum supported length by deflate is max length*/ { ++backptr; ++foreptr; } current_length = (unsigned)(foreptr - &in[pos]); if(current_length > length) { length = current_length; /*the longest length*/ offset = current_offset; /*the offset that is related to this longest length*/ /*jump out once a length of max length is found (speed gain). This also jumps out if length is MAX_SUPPORTED_DEFLATE_LENGTH*/ if(current_length >= nicematch) break; } } if(hashpos == hash->chain[hashpos]) break; if(numzeros >= 3 && length > numzeros) { hashpos = hash->chainz[hashpos]; if(hash->zeros[hashpos] != numzeros) break; } else { hashpos = hash->chain[hashpos]; /*outdated hash value, happens if particular value was not encountered in whole last window*/ if(hash->val[hashpos] != (int)hashval) break; } } if(lazymatching) { if(!lazy && length >= 3 && length <= maxlazymatch && length < MAX_SUPPORTED_DEFLATE_LENGTH) { lazy = 1; lazylength = length; lazyoffset = offset; continue; /*try the next byte*/ } if(lazy) { lazy = 0; if(pos == 0) ERROR_BREAK(81); if(length > lazylength + 1) { /*push the previous character as literal*/ if(!uivector_push_back(out, in[pos - 1])) ERROR_BREAK(83 /*alloc fail*/); } else { length = lazylength; offset = lazyoffset; hash->head[hashval] = -1; /*the same hashchain update will be done, this ensures no wrong alteration*/ hash->headz[numzeros] = -1; /*idem*/ --pos; } } } if(length >= 3 && offset > windowsize) ERROR_BREAK(86 /*too big (or overflown negative) offset*/); /*encode it as length/distance pair or literal value*/ if(length < 3) /*only lengths of 3 or higher are supported as length/distance pair*/ { if(!uivector_push_back(out, in[pos])) ERROR_BREAK(83 /*alloc fail*/); } else if(length < minmatch || (length == 3 && offset > 4096)) { /*compensate for the fact that longer offsets have more extra bits, a length of only 3 may be not worth it then*/ if(!uivector_push_back(out, in[pos])) ERROR_BREAK(83 /*alloc fail*/); } else { addLengthDistance(out, length, offset); for(i = 1; i < length; ++i) { ++pos; wpos = pos & (windowsize - 1); hashval = getHash(in, insize, pos); if(usezeros && hashval == 0) { if(numzeros == 0) numzeros = countZeros(in, insize, pos); else if(pos + numzeros > insize || in[pos + numzeros - 1] != 0) --numzeros; } else { numzeros = 0; } updateHashChain(hash, wpos, hashval, numzeros); } } } /*end of the loop through each character of input*/ return error; } /* /////////////////////////////////////////////////////////////////////////// */ static unsigned deflateNoCompression(ucvector* out, const unsigned char* data, size_t datasize) { /*non compressed deflate block data: 1 bit BFINAL,2 bits BTYPE,(5 bits): it jumps to start of next byte, 2 bytes LEN, 2 bytes NLEN, LEN bytes literal DATA*/ size_t i, j, numdeflateblocks = (datasize + 65534) / 65535; unsigned datapos = 0; for(i = 0; i != numdeflateblocks; ++i) { unsigned BFINAL, BTYPE, LEN, NLEN; unsigned char firstbyte; BFINAL = (i == numdeflateblocks - 1); BTYPE = 0; firstbyte = (unsigned char)(BFINAL + ((BTYPE & 1) << 1) + ((BTYPE & 2) << 1)); ucvector_push_back(out, firstbyte); LEN = 65535; if(datasize - datapos < 65535) LEN = (unsigned)datasize - datapos; NLEN = 65535 - LEN; ucvector_push_back(out, (unsigned char)(LEN & 255)); ucvector_push_back(out, (unsigned char)(LEN >> 8)); ucvector_push_back(out, (unsigned char)(NLEN & 255)); ucvector_push_back(out, (unsigned char)(NLEN >> 8)); /*Decompressed data*/ for(j = 0; j < 65535 && datapos < datasize; ++j) { ucvector_push_back(out, data[datapos++]); } } return 0; } /* write the lz77-encoded data, which has lit, len and dist codes, to compressed stream using huffman trees. tree_ll: the tree for lit and len codes. tree_d: the tree for distance codes. */ static void writeLZ77data(size_t* bp, ucvector* out, const uivector* lz77_encoded, const HuffmanTree* tree_ll, const HuffmanTree* tree_d) { size_t i = 0; for(i = 0; i != lz77_encoded->size; ++i) { unsigned val = lz77_encoded->data[i]; addHuffmanSymbol(bp, out, HuffmanTree_getCode(tree_ll, val), HuffmanTree_getLength(tree_ll, val)); if(val > 256) /*for a length code, 3 more things have to be added*/ { unsigned length_index = val - FIRST_LENGTH_CODE_INDEX; unsigned n_length_extra_bits = LENGTHEXTRA[length_index]; unsigned length_extra_bits = lz77_encoded->data[++i]; unsigned distance_code = lz77_encoded->data[++i]; unsigned distance_index = distance_code; unsigned n_distance_extra_bits = DISTANCEEXTRA[distance_index]; unsigned distance_extra_bits = lz77_encoded->data[++i]; addBitsToStream(bp, out, length_extra_bits, n_length_extra_bits); addHuffmanSymbol(bp, out, HuffmanTree_getCode(tree_d, distance_code), HuffmanTree_getLength(tree_d, distance_code)); addBitsToStream(bp, out, distance_extra_bits, n_distance_extra_bits); } } } /*Deflate for a block of type "dynamic", that is, with freely, optimally, created huffman trees*/ static unsigned deflateDynamic(ucvector* out, size_t* bp, Hash* hash, const unsigned char* data, size_t datapos, size_t dataend, const LodePNGCompressSettings* settings, unsigned final) { unsigned error = 0; /* A block is compressed as follows: The PNG data is lz77 encoded, resulting in literal bytes and length/distance pairs. This is then huffman compressed with two huffman trees. One huffman tree is used for the lit and len values ("ll"), another huffman tree is used for the dist values ("d"). These two trees are stored using their code lengths, and to compress even more these code lengths are also run-length encoded and huffman compressed. This gives a huffman tree of code lengths "cl". The code lenghts used to describe this third tree are the code length code lengths ("clcl"). */ /*The lz77 encoded data, represented with integers since there will also be length and distance codes in it*/ uivector lz77_encoded; HuffmanTree tree_ll; /*tree for lit,len values*/ HuffmanTree tree_d; /*tree for distance codes*/ HuffmanTree tree_cl; /*tree for encoding the code lengths representing tree_ll and tree_d*/ uivector frequencies_ll; /*frequency of lit,len codes*/ uivector frequencies_d; /*frequency of dist codes*/ uivector frequencies_cl; /*frequency of code length codes*/ uivector bitlen_lld; /*lit,len,dist code lenghts (int bits), literally (without repeat codes).*/ uivector bitlen_lld_e; /*bitlen_lld encoded with repeat codes (this is a rudemtary run length compression)*/ /*bitlen_cl is the code length code lengths ("clcl"). The bit lengths of codes to represent tree_cl (these are written as is in the file, it would be crazy to compress these using yet another huffman tree that needs to be represented by yet another set of code lengths)*/ uivector bitlen_cl; size_t datasize = dataend - datapos; /* Due to the huffman compression of huffman tree representations ("two levels"), there are some anologies: bitlen_lld is to tree_cl what data is to tree_ll and tree_d. bitlen_lld_e is to bitlen_lld what lz77_encoded is to data. bitlen_cl is to bitlen_lld_e what bitlen_lld is to lz77_encoded. */ unsigned BFINAL = final; size_t numcodes_ll, numcodes_d, i; unsigned HLIT, HDIST, HCLEN; uivector_init(&lz77_encoded); HuffmanTree_init(&tree_ll); HuffmanTree_init(&tree_d); HuffmanTree_init(&tree_cl); uivector_init(&frequencies_ll); uivector_init(&frequencies_d); uivector_init(&frequencies_cl); uivector_init(&bitlen_lld); uivector_init(&bitlen_lld_e); uivector_init(&bitlen_cl); /*This while loop never loops due to a break at the end, it is here to allow breaking out of it to the cleanup phase on error conditions.*/ while(!error) { if(settings->use_lz77) { error = encodeLZ77(&lz77_encoded, hash, data, datapos, dataend, settings->windowsize, settings->minmatch, settings->nicematch, settings->lazymatching); if(error) break; } else { if(!uivector_resize(&lz77_encoded, datasize)) ERROR_BREAK(83 /*alloc fail*/); for(i = datapos; i < dataend; ++i) lz77_encoded.data[i - datapos] = data[i]; /*no LZ77, but still will be Huffman compressed*/ } if(!uivector_resizev(&frequencies_ll, 286, 0)) ERROR_BREAK(83 /*alloc fail*/); if(!uivector_resizev(&frequencies_d, 30, 0)) ERROR_BREAK(83 /*alloc fail*/); /*Count the frequencies of lit, len and dist codes*/ for(i = 0; i != lz77_encoded.size; ++i) { unsigned symbol = lz77_encoded.data[i]; ++frequencies_ll.data[symbol]; if(symbol > 256) { unsigned dist = lz77_encoded.data[i + 2]; ++frequencies_d.data[dist]; i += 3; } } frequencies_ll.data[256] = 1; /*there will be exactly 1 end code, at the end of the block*/ /*Make both huffman trees, one for the lit and len codes, one for the dist codes*/ error = HuffmanTree_makeFromFrequencies(&tree_ll, frequencies_ll.data, 257, frequencies_ll.size, 15); if(error) break; /*2, not 1, is chosen for mincodes: some buggy PNG decoders require at least 2 symbols in the dist tree*/ error = HuffmanTree_makeFromFrequencies(&tree_d, frequencies_d.data, 2, frequencies_d.size, 15); if(error) break; numcodes_ll = tree_ll.numcodes; if(numcodes_ll > 286) numcodes_ll = 286; numcodes_d = tree_d.numcodes; if(numcodes_d > 30) numcodes_d = 30; /*store the code lengths of both generated trees in bitlen_lld*/ for(i = 0; i != numcodes_ll; ++i) uivector_push_back(&bitlen_lld, HuffmanTree_getLength(&tree_ll, (unsigned)i)); for(i = 0; i != numcodes_d; ++i) uivector_push_back(&bitlen_lld, HuffmanTree_getLength(&tree_d, (unsigned)i)); /*run-length compress bitlen_ldd into bitlen_lld_e by using repeat codes 16 (copy length 3-6 times), 17 (3-10 zeroes), 18 (11-138 zeroes)*/ for(i = 0; i != (unsigned)bitlen_lld.size; ++i) { unsigned j = 0; /*amount of repititions*/ while(i + j + 1 < (unsigned)bitlen_lld.size && bitlen_lld.data[i + j + 1] == bitlen_lld.data[i]) ++j; if(bitlen_lld.data[i] == 0 && j >= 2) /*repeat code for zeroes*/ { ++j; /*include the first zero*/ if(j <= 10) /*repeat code 17 supports max 10 zeroes*/ { uivector_push_back(&bitlen_lld_e, 17); uivector_push_back(&bitlen_lld_e, j - 3); } else /*repeat code 18 supports max 138 zeroes*/ { if(j > 138) j = 138; uivector_push_back(&bitlen_lld_e, 18); uivector_push_back(&bitlen_lld_e, j - 11); } i += (j - 1); } else if(j >= 3) /*repeat code for value other than zero*/ { size_t k; unsigned num = j / 6, rest = j % 6; uivector_push_back(&bitlen_lld_e, bitlen_lld.data[i]); for(k = 0; k < num; ++k) { uivector_push_back(&bitlen_lld_e, 16); uivector_push_back(&bitlen_lld_e, 6 - 3); } if(rest >= 3) { uivector_push_back(&bitlen_lld_e, 16); uivector_push_back(&bitlen_lld_e, rest - 3); } else j -= rest; i += j; } else /*too short to benefit from repeat code*/ { uivector_push_back(&bitlen_lld_e, bitlen_lld.data[i]); } } /*generate tree_cl, the huffmantree of huffmantrees*/ if(!uivector_resizev(&frequencies_cl, NUM_CODE_LENGTH_CODES, 0)) ERROR_BREAK(83 /*alloc fail*/); for(i = 0; i != bitlen_lld_e.size; ++i) { ++frequencies_cl.data[bitlen_lld_e.data[i]]; /*after a repeat code come the bits that specify the number of repetitions, those don't need to be in the frequencies_cl calculation*/ if(bitlen_lld_e.data[i] >= 16) ++i; } error = HuffmanTree_makeFromFrequencies(&tree_cl, frequencies_cl.data, frequencies_cl.size, frequencies_cl.size, 7); if(error) break; if(!uivector_resize(&bitlen_cl, tree_cl.numcodes)) ERROR_BREAK(83 /*alloc fail*/); for(i = 0; i != tree_cl.numcodes; ++i) { /*lenghts of code length tree is in the order as specified by deflate*/ bitlen_cl.data[i] = HuffmanTree_getLength(&tree_cl, CLCL_ORDER[i]); } while(bitlen_cl.data[bitlen_cl.size - 1] == 0 && bitlen_cl.size > 4) { /*remove zeros at the end, but minimum size must be 4*/ if(!uivector_resize(&bitlen_cl, bitlen_cl.size - 1)) ERROR_BREAK(83 /*alloc fail*/); } if(error) break; /* Write everything into the output After the BFINAL and BTYPE, the dynamic block consists out of the following: - 5 bits HLIT, 5 bits HDIST, 4 bits HCLEN - (HCLEN+4)*3 bits code lengths of code length alphabet - HLIT + 257 code lenghts of lit/length alphabet (encoded using the code length alphabet, + possible repetition codes 16, 17, 18) - HDIST + 1 code lengths of distance alphabet (encoded using the code length alphabet, + possible repetition codes 16, 17, 18) - compressed data - 256 (end code) */ /*Write block type*/ addBitToStream(bp, out, BFINAL); addBitToStream(bp, out, 0); /*first bit of BTYPE "dynamic"*/ addBitToStream(bp, out, 1); /*second bit of BTYPE "dynamic"*/ /*write the HLIT, HDIST and HCLEN values*/ HLIT = (unsigned)(numcodes_ll - 257); HDIST = (unsigned)(numcodes_d - 1); HCLEN = (unsigned)bitlen_cl.size - 4; /*trim zeroes for HCLEN. HLIT and HDIST were already trimmed at tree creation*/ while(!bitlen_cl.data[HCLEN + 4 - 1] && HCLEN > 0) --HCLEN; addBitsToStream(bp, out, HLIT, 5); addBitsToStream(bp, out, HDIST, 5); addBitsToStream(bp, out, HCLEN, 4); /*write the code lenghts of the code length alphabet*/ for(i = 0; i != HCLEN + 4; ++i) addBitsToStream(bp, out, bitlen_cl.data[i], 3); /*write the lenghts of the lit/len AND the dist alphabet*/ for(i = 0; i != bitlen_lld_e.size; ++i) { addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_cl, bitlen_lld_e.data[i]), HuffmanTree_getLength(&tree_cl, bitlen_lld_e.data[i])); /*extra bits of repeat codes*/ if(bitlen_lld_e.data[i] == 16) addBitsToStream(bp, out, bitlen_lld_e.data[++i], 2); else if(bitlen_lld_e.data[i] == 17) addBitsToStream(bp, out, bitlen_lld_e.data[++i], 3); else if(bitlen_lld_e.data[i] == 18) addBitsToStream(bp, out, bitlen_lld_e.data[++i], 7); } /*write the compressed data symbols*/ writeLZ77data(bp, out, &lz77_encoded, &tree_ll, &tree_d); /*error: the length of the end code 256 must be larger than 0*/ if(HuffmanTree_getLength(&tree_ll, 256) == 0) ERROR_BREAK(64); /*write the end code*/ addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_ll, 256), HuffmanTree_getLength(&tree_ll, 256)); break; /*end of error-while*/ } /*cleanup*/ uivector_cleanup(&lz77_encoded); HuffmanTree_cleanup(&tree_ll); HuffmanTree_cleanup(&tree_d); HuffmanTree_cleanup(&tree_cl); uivector_cleanup(&frequencies_ll); uivector_cleanup(&frequencies_d); uivector_cleanup(&frequencies_cl); uivector_cleanup(&bitlen_lld_e); uivector_cleanup(&bitlen_lld); uivector_cleanup(&bitlen_cl); return error; } static unsigned deflateFixed(ucvector* out, size_t* bp, Hash* hash, const unsigned char* data, size_t datapos, size_t dataend, const LodePNGCompressSettings* settings, unsigned final) { HuffmanTree tree_ll; /*tree for literal values and length codes*/ HuffmanTree tree_d; /*tree for distance codes*/ unsigned BFINAL = final; unsigned error = 0; size_t i; HuffmanTree_init(&tree_ll); HuffmanTree_init(&tree_d); generateFixedLitLenTree(&tree_ll); generateFixedDistanceTree(&tree_d); addBitToStream(bp, out, BFINAL); addBitToStream(bp, out, 1); /*first bit of BTYPE*/ addBitToStream(bp, out, 0); /*second bit of BTYPE*/ if(settings->use_lz77) /*LZ77 encoded*/ { uivector lz77_encoded; uivector_init(&lz77_encoded); error = encodeLZ77(&lz77_encoded, hash, data, datapos, dataend, settings->windowsize, settings->minmatch, settings->nicematch, settings->lazymatching); if(!error) writeLZ77data(bp, out, &lz77_encoded, &tree_ll, &tree_d); uivector_cleanup(&lz77_encoded); } else /*no LZ77, but still will be Huffman compressed*/ { for(i = datapos; i < dataend; ++i) { addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_ll, data[i]), HuffmanTree_getLength(&tree_ll, data[i])); } } /*add END code*/ if(!error) addHuffmanSymbol(bp, out, HuffmanTree_getCode(&tree_ll, 256), HuffmanTree_getLength(&tree_ll, 256)); /*cleanup*/ HuffmanTree_cleanup(&tree_ll); HuffmanTree_cleanup(&tree_d); return error; } static unsigned lodepng_deflatev(ucvector* out, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { unsigned error = 0; size_t i, blocksize, numdeflateblocks; size_t bp = 0; /*the bit pointer*/ Hash hash; if(settings->btype > 2) return 61; else if(settings->btype == 0) return deflateNoCompression(out, in, insize); else if(settings->btype == 1) blocksize = insize; else /*if(settings->btype == 2)*/ { /*on PNGs, deflate blocks of 65-262k seem to give most dense encoding*/ blocksize = insize / 8 + 8; if(blocksize < 65536) blocksize = 65536; if(blocksize > 262144) blocksize = 262144; } numdeflateblocks = (insize + blocksize - 1) / blocksize; if(numdeflateblocks == 0) numdeflateblocks = 1; error = hash_init(&hash, settings->windowsize); if(error) return error; for(i = 0; i != numdeflateblocks && !error; ++i) { unsigned final = (i == numdeflateblocks - 1); size_t start = i * blocksize; size_t end = start + blocksize; if(end > insize) end = insize; if(settings->btype == 1) error = deflateFixed(out, &bp, &hash, in, start, end, settings, final); else if(settings->btype == 2) error = deflateDynamic(out, &bp, &hash, in, start, end, settings, final); } hash_cleanup(&hash); return error; } unsigned lodepng_deflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { unsigned error; ucvector v; ucvector_init_buffer(&v, *out, *outsize); error = lodepng_deflatev(&v, in, insize, settings); *out = v.data; *outsize = v.size; return error; } static unsigned deflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { if(settings->custom_deflate) { return settings->custom_deflate(out, outsize, in, insize, settings); } else { return lodepng_deflate(out, outsize, in, insize, settings); } } #endif /*LODEPNG_COMPILE_DECODER*/ /* ////////////////////////////////////////////////////////////////////////// */ /* / Adler32 */ /* ////////////////////////////////////////////////////////////////////////// */ static unsigned update_adler32(unsigned adler, const unsigned char* data, unsigned len) { unsigned s1 = adler & 0xffff; unsigned s2 = (adler >> 16) & 0xffff; while(len > 0) { /*at least 5550 sums can be done before the sums overflow, saving a lot of module divisions*/ unsigned amount = len > 5550 ? 5550 : len; len -= amount; while(amount > 0) { s1 += (*data++); s2 += s1; --amount; } s1 %= 65521; s2 %= 65521; } return (s2 << 16) | s1; } /*Return the adler32 of the bytes data[0..len-1]*/ static unsigned adler32(const unsigned char* data, unsigned len) { return update_adler32(1L, data, len); } /* ////////////////////////////////////////////////////////////////////////// */ /* / Zlib / */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_DECODER unsigned lodepng_zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { unsigned error = 0; unsigned CM, CINFO, FDICT; if(insize < 2) return 53; /*error, size of zlib data too small*/ /*read information from zlib header*/ if((in[0] * 256 + in[1]) % 31 != 0) { /*error: 256 * in[0] + in[1] must be a multiple of 31, the FCHECK value is supposed to be made that way*/ return 24; } CM = in[0] & 15; CINFO = (in[0] >> 4) & 15; /*FCHECK = in[1] & 31;*/ /*FCHECK is already tested above*/ FDICT = (in[1] >> 5) & 1; /*FLEVEL = (in[1] >> 6) & 3;*/ /*FLEVEL is not used here*/ if(CM != 8 || CINFO > 7) { /*error: only compression method 8: inflate with sliding window of 32k is supported by the PNG spec*/ return 25; } if(FDICT != 0) { /*error: the specification of PNG says about the zlib stream: "The additional flags shall not specify a preset dictionary."*/ return 26; } error = inflate(out, outsize, in + 2, insize - 2, settings); if(error) return error; if(!settings->ignore_adler32) { unsigned ADLER32 = lodepng_read32bitInt(&in[insize - 4]); unsigned checksum = adler32(*out, (unsigned)(*outsize)); if(checksum != ADLER32) return 58; /*error, adler checksum not correct, data must be corrupted*/ } return 0; /*no error*/ } static unsigned zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { if(settings->custom_zlib) { return settings->custom_zlib(out, outsize, in, insize, settings); } else { return lodepng_zlib_decompress(out, outsize, in, insize, settings); } } #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER unsigned lodepng_zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { /*initially, *out must be NULL and outsize 0, if you just give some random *out that's pointing to a non allocated buffer, this'll crash*/ ucvector outv; size_t i; unsigned error; unsigned char* deflatedata = 0; size_t deflatesize = 0; /*zlib data: 1 byte CMF (CM+CINFO), 1 byte FLG, deflate data, 4 byte ADLER32 checksum of the Decompressed data*/ unsigned CMF = 120; /*0b01111000: CM 8, CINFO 7. With CINFO 7, any window size up to 32768 can be used.*/ unsigned FLEVEL = 0; unsigned FDICT = 0; unsigned CMFFLG = 256 * CMF + FDICT * 32 + FLEVEL * 64; unsigned FCHECK = 31 - CMFFLG % 31; CMFFLG += FCHECK; /*ucvector-controlled version of the output buffer, for dynamic array*/ ucvector_init_buffer(&outv, *out, *outsize); ucvector_push_back(&outv, (unsigned char)(CMFFLG >> 8)); ucvector_push_back(&outv, (unsigned char)(CMFFLG & 255)); error = deflate(&deflatedata, &deflatesize, in, insize, settings); if(!error) { unsigned ADLER32 = adler32(in, (unsigned)insize); for(i = 0; i != deflatesize; ++i) ucvector_push_back(&outv, deflatedata[i]); lodepng_free(deflatedata); lodepng_add32bitInt(&outv, ADLER32); } *out = outv.data; *outsize = outv.size; return error; } /* compress using the default or custom zlib function */ static unsigned zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { if(settings->custom_zlib) { return settings->custom_zlib(out, outsize, in, insize, settings); } else { return lodepng_zlib_compress(out, outsize, in, insize, settings); } } #endif /*LODEPNG_COMPILE_ENCODER*/ #else /*no LODEPNG_COMPILE_ZLIB*/ #ifdef LODEPNG_COMPILE_DECODER static unsigned zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) { if(!settings->custom_zlib) return 87; /*no custom zlib function provided */ return settings->custom_zlib(out, outsize, in, insize, settings); } #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER static unsigned zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) { if(!settings->custom_zlib) return 87; /*no custom zlib function provided */ return settings->custom_zlib(out, outsize, in, insize, settings); } #endif /*LODEPNG_COMPILE_ENCODER*/ #endif /*LODEPNG_COMPILE_ZLIB*/ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_ENCODER /*this is a good tradeoff between speed and compression ratio*/ #define DEFAULT_WINDOWSIZE 2048 void lodepng_compress_settings_init(LodePNGCompressSettings* settings) { /*compress with dynamic huffman tree (not in the mathematical sense, just not the predefined one)*/ settings->btype = 2; settings->use_lz77 = 1; settings->windowsize = DEFAULT_WINDOWSIZE; settings->minmatch = 3; settings->nicematch = 128; settings->lazymatching = 1; settings->custom_zlib = 0; settings->custom_deflate = 0; settings->custom_context = 0; } const LodePNGCompressSettings lodepng_default_compress_settings = {2, 1, DEFAULT_WINDOWSIZE, 3, 128, 1, 0, 0, 0}; #endif /*LODEPNG_COMPILE_ENCODER*/ #ifdef LODEPNG_COMPILE_DECODER void lodepng_decompress_settings_init(LodePNGDecompressSettings* settings) { settings->ignore_adler32 = 0; settings->custom_zlib = 0; settings->custom_inflate = 0; settings->custom_context = 0; } const LodePNGDecompressSettings lodepng_default_decompress_settings = {0, 0, 0, 0}; #endif /*LODEPNG_COMPILE_DECODER*/ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* // End of Zlib related code. Begin of PNG related code. // */ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_PNG /* ////////////////////////////////////////////////////////////////////////// */ /* / CRC32 / */ /* ////////////////////////////////////////////////////////////////////////// */ #ifndef LODEPNG_NO_COMPILE_CRC /* CRC polynomial: 0xedb88320 */ static unsigned lodepng_crc32_table[256] = { 0u, 1996959894u, 3993919788u, 2567524794u, 124634137u, 1886057615u, 3915621685u, 2657392035u, 249268274u, 2044508324u, 3772115230u, 2547177864u, 162941995u, 2125561021u, 3887607047u, 2428444049u, 498536548u, 1789927666u, 4089016648u, 2227061214u, 450548861u, 1843258603u, 4107580753u, 2211677639u, 325883990u, 1684777152u, 4251122042u, 2321926636u, 335633487u, 1661365465u, 4195302755u, 2366115317u, 997073096u, 1281953886u, 3579855332u, 2724688242u, 1006888145u, 1258607687u, 3524101629u, 2768942443u, 901097722u, 1119000684u, 3686517206u, 2898065728u, 853044451u, 1172266101u, 3705015759u, 2882616665u, 651767980u, 1373503546u, 3369554304u, 3218104598u, 565507253u, 1454621731u, 3485111705u, 3099436303u, 671266974u, 1594198024u, 3322730930u, 2970347812u, 795835527u, 1483230225u, 3244367275u, 3060149565u, 1994146192u, 31158534u, 2563907772u, 4023717930u, 1907459465u, 112637215u, 2680153253u, 3904427059u, 2013776290u, 251722036u, 2517215374u, 3775830040u, 2137656763u, 141376813u, 2439277719u, 3865271297u, 1802195444u, 476864866u, 2238001368u, 4066508878u, 1812370925u, 453092731u, 2181625025u, 4111451223u, 1706088902u, 314042704u, 2344532202u, 4240017532u, 1658658271u, 366619977u, 2362670323u, 4224994405u, 1303535960u, 984961486u, 2747007092u, 3569037538u, 1256170817u, 1037604311u, 2765210733u, 3554079995u, 1131014506u, 879679996u, 2909243462u, 3663771856u, 1141124467u, 855842277u, 2852801631u, 3708648649u, 1342533948u, 654459306u, 3188396048u, 3373015174u, 1466479909u, 544179635u, 3110523913u, 3462522015u, 1591671054u, 702138776u, 2966460450u, 3352799412u, 1504918807u, 783551873u, 3082640443u, 3233442989u, 3988292384u, 2596254646u, 62317068u, 1957810842u, 3939845945u, 2647816111u, 81470997u, 1943803523u, 3814918930u, 2489596804u, 225274430u, 2053790376u, 3826175755u, 2466906013u, 167816743u, 2097651377u, 4027552580u, 2265490386u, 503444072u, 1762050814u, 4150417245u, 2154129355u, 426522225u, 1852507879u, 4275313526u, 2312317920u, 282753626u, 1742555852u, 4189708143u, 2394877945u, 397917763u, 1622183637u, 3604390888u, 2714866558u, 953729732u, 1340076626u, 3518719985u, 2797360999u, 1068828381u, 1219638859u, 3624741850u, 2936675148u, 906185462u, 1090812512u, 3747672003u, 2825379669u, 829329135u, 1181335161u, 3412177804u, 3160834842u, 628085408u, 1382605366u, 3423369109u, 3138078467u, 570562233u, 1426400815u, 3317316542u, 2998733608u, 733239954u, 1555261956u, 3268935591u, 3050360625u, 752459403u, 1541320221u, 2607071920u, 3965973030u, 1969922972u, 40735498u, 2617837225u, 3943577151u, 1913087877u, 83908371u, 2512341634u, 3803740692u, 2075208622u, 213261112u, 2463272603u, 3855990285u, 2094854071u, 198958881u, 2262029012u, 4057260610u, 1759359992u, 534414190u, 2176718541u, 4139329115u, 1873836001u, 414664567u, 2282248934u, 4279200368u, 1711684554u, 285281116u, 2405801727u, 4167216745u, 1634467795u, 376229701u, 2685067896u, 3608007406u, 1308918612u, 956543938u, 2808555105u, 3495958263u, 1231636301u, 1047427035u, 2932959818u, 3654703836u, 1088359270u, 936918000u, 2847714899u, 3736837829u, 1202900863u, 817233897u, 3183342108u, 3401237130u, 1404277552u, 615818150u, 3134207493u, 3453421203u, 1423857449u, 601450431u, 3009837614u, 3294710456u, 1567103746u, 711928724u, 3020668471u, 3272380065u, 1510334235u, 755167117u }; /*Return the CRC of the bytes buf[0..len-1].*/ unsigned lodepng_crc32(const unsigned char* data, size_t length) { unsigned r = 0xffffffffu; size_t i; for(i = 0; i < length; ++i) { r = lodepng_crc32_table[(r ^ data[i]) & 0xff] ^ (r >> 8); } return r ^ 0xffffffffu; } #else /* !LODEPNG_NO_COMPILE_CRC */ unsigned lodepng_crc32(const unsigned char* data, size_t length); #endif /* !LODEPNG_NO_COMPILE_CRC */ /* ////////////////////////////////////////////////////////////////////////// */ /* / Reading and writing single bits and bytes from/to stream for LodePNG / */ /* ////////////////////////////////////////////////////////////////////////// */ static unsigned char readBitFromReversedStream(size_t* bitpointer, const unsigned char* bitstream) { unsigned char result = (unsigned char)((bitstream[(*bitpointer) >> 3] >> (7 - ((*bitpointer) & 0x7))) & 1); ++(*bitpointer); return result; } static unsigned readBitsFromReversedStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits) { unsigned result = 0; size_t i; for(i = 0 ; i < nbits; ++i) { result <<= 1; result |= (unsigned)readBitFromReversedStream(bitpointer, bitstream); } return result; } #ifdef LODEPNG_COMPILE_DECODER static void setBitOfReversedStream0(size_t* bitpointer, unsigned char* bitstream, unsigned char bit) { /*the current bit in bitstream must be 0 for this to work*/ if(bit) { /*earlier bit of huffman code is in a lesser significant bit of an earlier byte*/ bitstream[(*bitpointer) >> 3] |= (bit << (7 - ((*bitpointer) & 0x7))); } ++(*bitpointer); } #endif /*LODEPNG_COMPILE_DECODER*/ static void setBitOfReversedStream(size_t* bitpointer, unsigned char* bitstream, unsigned char bit) { /*the current bit in bitstream may be 0 or 1 for this to work*/ if(bit == 0) bitstream[(*bitpointer) >> 3] &= (unsigned char)(~(1 << (7 - ((*bitpointer) & 0x7)))); else bitstream[(*bitpointer) >> 3] |= (1 << (7 - ((*bitpointer) & 0x7))); ++(*bitpointer); } /* ////////////////////////////////////////////////////////////////////////// */ /* / PNG chunks / */ /* ////////////////////////////////////////////////////////////////////////// */ unsigned lodepng_chunk_length(const unsigned char* chunk) { return lodepng_read32bitInt(&chunk[0]); } void lodepng_chunk_type(char type[5], const unsigned char* chunk) { unsigned i; for(i = 0; i != 4; ++i) type[i] = (char)chunk[4 + i]; type[4] = 0; /*null termination char*/ } unsigned char lodepng_chunk_type_equals(const unsigned char* chunk, const char* type) { if(strlen(type) != 4) return 0; return (chunk[4] == type[0] && chunk[5] == type[1] && chunk[6] == type[2] && chunk[7] == type[3]); } unsigned char lodepng_chunk_ancillary(const unsigned char* chunk) { return((chunk[4] & 32) != 0); } unsigned char lodepng_chunk_private(const unsigned char* chunk) { return((chunk[6] & 32) != 0); } unsigned char lodepng_chunk_safetocopy(const unsigned char* chunk) { return((chunk[7] & 32) != 0); } unsigned char* lodepng_chunk_data(unsigned char* chunk) { return &chunk[8]; } const unsigned char* lodepng_chunk_data_const(const unsigned char* chunk) { return &chunk[8]; } unsigned lodepng_chunk_check_crc(const unsigned char* chunk) { unsigned length = lodepng_chunk_length(chunk); unsigned CRC = lodepng_read32bitInt(&chunk[length + 8]); /*the CRC is taken of the data and the 4 chunk type letters, not the length*/ unsigned checksum = lodepng_crc32(&chunk[4], length + 4); if(CRC != checksum) return 1; else return 0; } void lodepng_chunk_generate_crc(unsigned char* chunk) { unsigned length = lodepng_chunk_length(chunk); unsigned CRC = lodepng_crc32(&chunk[4], length + 4); lodepng_set32bitInt(chunk + 8 + length, CRC); } unsigned char* lodepng_chunk_next(unsigned char* chunk) { unsigned total_chunk_length = lodepng_chunk_length(chunk) + 12; return &chunk[total_chunk_length]; } const unsigned char* lodepng_chunk_next_const(const unsigned char* chunk) { unsigned total_chunk_length = lodepng_chunk_length(chunk) + 12; return &chunk[total_chunk_length]; } unsigned lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk) { unsigned i; unsigned total_chunk_length = lodepng_chunk_length(chunk) + 12; unsigned char *chunk_start, *new_buffer; size_t new_length = (*outlength) + total_chunk_length; if(new_length < total_chunk_length || new_length < (*outlength)) return 77; /*integer overflow happened*/ new_buffer = (unsigned char*)lodepng_realloc(*out, new_length); if(!new_buffer) return 83; /*alloc fail*/ (*out) = new_buffer; (*outlength) = new_length; chunk_start = &(*out)[new_length - total_chunk_length]; for(i = 0; i != total_chunk_length; ++i) chunk_start[i] = chunk[i]; return 0; } unsigned lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length, const char* type, const unsigned char* data) { unsigned i; unsigned char *chunk, *new_buffer; size_t new_length = (*outlength) + length + 12; if(new_length < length + 12 || new_length < (*outlength)) return 77; /*integer overflow happened*/ new_buffer = (unsigned char*)lodepng_realloc(*out, new_length); if(!new_buffer) return 83; /*alloc fail*/ (*out) = new_buffer; (*outlength) = new_length; chunk = &(*out)[(*outlength) - length - 12]; /*1: length*/ lodepng_set32bitInt(chunk, (unsigned)length); /*2: chunk name (4 letters)*/ chunk[4] = (unsigned char)type[0]; chunk[5] = (unsigned char)type[1]; chunk[6] = (unsigned char)type[2]; chunk[7] = (unsigned char)type[3]; /*3: the data*/ for(i = 0; i != length; ++i) chunk[8 + i] = data[i]; /*4: CRC (of the chunkname characters and the data)*/ lodepng_chunk_generate_crc(chunk); return 0; } /* ////////////////////////////////////////////////////////////////////////// */ /* / Color types and such / */ /* ////////////////////////////////////////////////////////////////////////// */ /*return type is a LodePNG error code*/ static unsigned checkColorValidity(LodePNGColorType colortype, unsigned bd) /*bd = bitdepth*/ { switch(colortype) { case 0: if(!(bd == 1 || bd == 2 || bd == 4 || bd == 8 || bd == 16)) return 37; break; /*grey*/ case 2: if(!( bd == 8 || bd == 16)) return 37; break; /*RGB*/ case 3: if(!(bd == 1 || bd == 2 || bd == 4 || bd == 8 )) return 37; break; /*palette*/ case 4: if(!( bd == 8 || bd == 16)) return 37; break; /*grey + alpha*/ case 6: if(!( bd == 8 || bd == 16)) return 37; break; /*RGBA*/ default: return 31; } return 0; /*allowed color type / bits combination*/ } static unsigned getNumColorChannels(LodePNGColorType colortype) { switch(colortype) { case 0: return 1; /*grey*/ case 2: return 3; /*RGB*/ case 3: return 1; /*palette*/ case 4: return 2; /*grey + alpha*/ case 6: return 4; /*RGBA*/ } return 0; /*unexisting color type*/ } static unsigned lodepng_get_bpp_lct(LodePNGColorType colortype, unsigned bitdepth) { /*bits per pixel is amount of channels * bits per channel*/ return getNumColorChannels(colortype) * bitdepth; } /* ////////////////////////////////////////////////////////////////////////// */ void lodepng_color_mode_init(LodePNGColorMode* info) { info->key_defined = 0; info->key_r = info->key_g = info->key_b = 0; info->colortype = LCT_RGBA; info->bitdepth = 8; info->palette = 0; info->palettesize = 0; } void lodepng_color_mode_cleanup(LodePNGColorMode* info) { lodepng_palette_clear(info); } unsigned lodepng_color_mode_copy(LodePNGColorMode* dest, const LodePNGColorMode* source) { size_t i; lodepng_color_mode_cleanup(dest); *dest = *source; if(source->palette) { dest->palette = (unsigned char*)lodepng_malloc(1024); if(!dest->palette && source->palettesize) return 83; /*alloc fail*/ for(i = 0; i != source->palettesize * 4; ++i) dest->palette[i] = source->palette[i]; } return 0; } static int lodepng_color_mode_equal(const LodePNGColorMode* a, const LodePNGColorMode* b) { size_t i; if(a->colortype != b->colortype) return 0; if(a->bitdepth != b->bitdepth) return 0; if(a->key_defined != b->key_defined) return 0; if(a->key_defined) { if(a->key_r != b->key_r) return 0; if(a->key_g != b->key_g) return 0; if(a->key_b != b->key_b) return 0; } /*if one of the palette sizes is 0, then we consider it to be the same as the other: it means that e.g. the palette was not given by the user and should be considered the same as the palette inside the PNG.*/ if(1/*a->palettesize != 0 && b->palettesize != 0*/) { if(a->palettesize != b->palettesize) return 0; for(i = 0; i != a->palettesize * 4; ++i) { if(a->palette[i] != b->palette[i]) return 0; } } return 1; } void lodepng_palette_clear(LodePNGColorMode* info) { if(info->palette) lodepng_free(info->palette); info->palette = 0; info->palettesize = 0; } unsigned lodepng_palette_add(LodePNGColorMode* info, unsigned char r, unsigned char g, unsigned char b, unsigned char a) { unsigned char* data; /*the same resize technique as C++ std::vectors is used, and here it's made so that for a palette with the max of 256 colors, it'll have the exact alloc size*/ if(!info->palette) /*allocate palette if empty*/ { /*room for 256 colors with 4 bytes each*/ data = (unsigned char*)lodepng_realloc(info->palette, 1024); if(!data) return 83; /*alloc fail*/ else info->palette = data; } info->palette[4 * info->palettesize + 0] = r; info->palette[4 * info->palettesize + 1] = g; info->palette[4 * info->palettesize + 2] = b; info->palette[4 * info->palettesize + 3] = a; ++info->palettesize; return 0; } unsigned lodepng_get_bpp(const LodePNGColorMode* info) { /*calculate bits per pixel out of colortype and bitdepth*/ return lodepng_get_bpp_lct(info->colortype, info->bitdepth); } unsigned lodepng_get_channels(const LodePNGColorMode* info) { return getNumColorChannels(info->colortype); } unsigned lodepng_is_greyscale_type(const LodePNGColorMode* info) { return info->colortype == LCT_GREY || info->colortype == LCT_GREY_ALPHA; } unsigned lodepng_is_alpha_type(const LodePNGColorMode* info) { return (info->colortype & 4) != 0; /*4 or 6*/ } unsigned lodepng_is_palette_type(const LodePNGColorMode* info) { return info->colortype == LCT_PALETTE; } unsigned lodepng_has_palette_alpha(const LodePNGColorMode* info) { size_t i; for(i = 0; i != info->palettesize; ++i) { if(info->palette[i * 4 + 3] < 255) return 1; } return 0; } unsigned lodepng_can_have_alpha(const LodePNGColorMode* info) { return info->key_defined || lodepng_is_alpha_type(info) || lodepng_has_palette_alpha(info); } size_t lodepng_get_raw_size(unsigned w, unsigned h, const LodePNGColorMode* color) { /*will not overflow for any color type if roughly w * h < 268435455*/ size_t bpp = lodepng_get_bpp(color); size_t n = w * h; return ((n / 8) * bpp) + ((n & 7) * bpp + 7) / 8; } size_t lodepng_get_raw_size_lct(unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { /*will not overflow for any color type if roughly w * h < 268435455*/ size_t bpp = lodepng_get_bpp_lct(colortype, bitdepth); size_t n = w * h; return ((n / 8) * bpp) + ((n & 7) * bpp + 7) / 8; } #ifdef LODEPNG_COMPILE_PNG #ifdef LODEPNG_COMPILE_DECODER /*in an idat chunk, each scanline is a multiple of 8 bits, unlike the lodepng output buffer*/ static size_t lodepng_get_raw_size_idat(unsigned w, unsigned h, const LodePNGColorMode* color) { /*will not overflow for any color type if roughly w * h < 268435455*/ size_t bpp = lodepng_get_bpp(color); size_t line = ((w / 8) * bpp) + ((w & 7) * bpp + 7) / 8; return h * line; } #endif /*LODEPNG_COMPILE_DECODER*/ #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS static void LodePNGUnknownChunks_init(LodePNGInfo* info) { unsigned i; for(i = 0; i != 3; ++i) info->unknown_chunks_data[i] = 0; for(i = 0; i != 3; ++i) info->unknown_chunks_size[i] = 0; } static void LodePNGUnknownChunks_cleanup(LodePNGInfo* info) { unsigned i; for(i = 0; i != 3; ++i) lodepng_free(info->unknown_chunks_data[i]); } static unsigned LodePNGUnknownChunks_copy(LodePNGInfo* dest, const LodePNGInfo* src) { unsigned i; LodePNGUnknownChunks_cleanup(dest); for(i = 0; i != 3; ++i) { size_t j; dest->unknown_chunks_size[i] = src->unknown_chunks_size[i]; dest->unknown_chunks_data[i] = (unsigned char*)lodepng_malloc(src->unknown_chunks_size[i]); if(!dest->unknown_chunks_data[i] && dest->unknown_chunks_size[i]) return 83; /*alloc fail*/ for(j = 0; j < src->unknown_chunks_size[i]; ++j) { dest->unknown_chunks_data[i][j] = src->unknown_chunks_data[i][j]; } } return 0; } /******************************************************************************/ static void LodePNGText_init(LodePNGInfo* info) { info->text_num = 0; info->text_keys = NULL; info->text_strings = NULL; } static void LodePNGText_cleanup(LodePNGInfo* info) { size_t i; for(i = 0; i != info->text_num; ++i) { string_cleanup(&info->text_keys[i]); string_cleanup(&info->text_strings[i]); } lodepng_free(info->text_keys); lodepng_free(info->text_strings); } static unsigned LodePNGText_copy(LodePNGInfo* dest, const LodePNGInfo* source) { size_t i = 0; dest->text_keys = 0; dest->text_strings = 0; dest->text_num = 0; for(i = 0; i != source->text_num; ++i) { CERROR_TRY_RETURN(lodepng_add_text(dest, source->text_keys[i], source->text_strings[i])); } return 0; } void lodepng_clear_text(LodePNGInfo* info) { LodePNGText_cleanup(info); } unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str) { char** new_keys = (char**)(lodepng_realloc(info->text_keys, sizeof(char*) * (info->text_num + 1))); char** new_strings = (char**)(lodepng_realloc(info->text_strings, sizeof(char*) * (info->text_num + 1))); if(!new_keys || !new_strings) { lodepng_free(new_keys); lodepng_free(new_strings); return 83; /*alloc fail*/ } ++info->text_num; info->text_keys = new_keys; info->text_strings = new_strings; string_init(&info->text_keys[info->text_num - 1]); string_set(&info->text_keys[info->text_num - 1], key); string_init(&info->text_strings[info->text_num - 1]); string_set(&info->text_strings[info->text_num - 1], str); return 0; } /******************************************************************************/ static void LodePNGIText_init(LodePNGInfo* info) { info->itext_num = 0; info->itext_keys = NULL; info->itext_langtags = NULL; info->itext_transkeys = NULL; info->itext_strings = NULL; } static void LodePNGIText_cleanup(LodePNGInfo* info) { size_t i; for(i = 0; i != info->itext_num; ++i) { string_cleanup(&info->itext_keys[i]); string_cleanup(&info->itext_langtags[i]); string_cleanup(&info->itext_transkeys[i]); string_cleanup(&info->itext_strings[i]); } lodepng_free(info->itext_keys); lodepng_free(info->itext_langtags); lodepng_free(info->itext_transkeys); lodepng_free(info->itext_strings); } static unsigned LodePNGIText_copy(LodePNGInfo* dest, const LodePNGInfo* source) { size_t i = 0; dest->itext_keys = 0; dest->itext_langtags = 0; dest->itext_transkeys = 0; dest->itext_strings = 0; dest->itext_num = 0; for(i = 0; i != source->itext_num; ++i) { CERROR_TRY_RETURN(lodepng_add_itext(dest, source->itext_keys[i], source->itext_langtags[i], source->itext_transkeys[i], source->itext_strings[i])); } return 0; } void lodepng_clear_itext(LodePNGInfo* info) { LodePNGIText_cleanup(info); } unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag, const char* transkey, const char* str) { char** new_keys = (char**)(lodepng_realloc(info->itext_keys, sizeof(char*) * (info->itext_num + 1))); char** new_langtags = (char**)(lodepng_realloc(info->itext_langtags, sizeof(char*) * (info->itext_num + 1))); char** new_transkeys = (char**)(lodepng_realloc(info->itext_transkeys, sizeof(char*) * (info->itext_num + 1))); char** new_strings = (char**)(lodepng_realloc(info->itext_strings, sizeof(char*) * (info->itext_num + 1))); if(!new_keys || !new_langtags || !new_transkeys || !new_strings) { lodepng_free(new_keys); lodepng_free(new_langtags); lodepng_free(new_transkeys); lodepng_free(new_strings); return 83; /*alloc fail*/ } ++info->itext_num; info->itext_keys = new_keys; info->itext_langtags = new_langtags; info->itext_transkeys = new_transkeys; info->itext_strings = new_strings; string_init(&info->itext_keys[info->itext_num - 1]); string_set(&info->itext_keys[info->itext_num - 1], key); string_init(&info->itext_langtags[info->itext_num - 1]); string_set(&info->itext_langtags[info->itext_num - 1], langtag); string_init(&info->itext_transkeys[info->itext_num - 1]); string_set(&info->itext_transkeys[info->itext_num - 1], transkey); string_init(&info->itext_strings[info->itext_num - 1]); string_set(&info->itext_strings[info->itext_num - 1], str); return 0; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ void lodepng_info_init(LodePNGInfo* info) { lodepng_color_mode_init(&info->color); info->interlace_method = 0; info->compression_method = 0; info->filter_method = 0; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS info->background_defined = 0; info->background_r = info->background_g = info->background_b = 0; LodePNGText_init(info); LodePNGIText_init(info); info->time_defined = 0; info->phys_defined = 0; LodePNGUnknownChunks_init(info); #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } void lodepng_info_cleanup(LodePNGInfo* info) { lodepng_color_mode_cleanup(&info->color); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS LodePNGText_cleanup(info); LodePNGIText_cleanup(info); LodePNGUnknownChunks_cleanup(info); #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } unsigned lodepng_info_copy(LodePNGInfo* dest, const LodePNGInfo* source) { lodepng_info_cleanup(dest); *dest = *source; lodepng_color_mode_init(&dest->color); CERROR_TRY_RETURN(lodepng_color_mode_copy(&dest->color, &source->color)); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS CERROR_TRY_RETURN(LodePNGText_copy(dest, source)); CERROR_TRY_RETURN(LodePNGIText_copy(dest, source)); LodePNGUnknownChunks_init(dest); CERROR_TRY_RETURN(LodePNGUnknownChunks_copy(dest, source)); #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ return 0; } void lodepng_info_swap(LodePNGInfo* a, LodePNGInfo* b) { LodePNGInfo temp = *a; *a = *b; *b = temp; } /* ////////////////////////////////////////////////////////////////////////// */ /*index: bitgroup index, bits: bitgroup size(1, 2 or 4), in: bitgroup value, out: octet array to add bits to*/ static void addColorBits(unsigned char* out, size_t index, unsigned bits, unsigned in) { unsigned m = bits == 1 ? 7 : bits == 2 ? 3 : 1; /*8 / bits - 1*/ /*p = the partial index in the byte, e.g. with 4 palettebits it is 0 for first half or 1 for second half*/ unsigned p = index & m; in &= (1u << bits) - 1u; /*filter out any other bits of the input value*/ in = in << (bits * (m - p)); if(p == 0) out[index * bits / 8] = in; else out[index * bits / 8] |= in; } typedef struct ColorTree ColorTree; /* One node of a color tree This is the data structure used to count the number of unique colors and to get a palette index for a color. It's like an octree, but because the alpha channel is used too, each node has 16 instead of 8 children. */ struct ColorTree { ColorTree* children[16]; /*up to 16 pointers to ColorTree of next level*/ int index; /*the payload. Only has a meaningful value if this is in the last level*/ }; static void color_tree_init(ColorTree* tree) { int i; for(i = 0; i != 16; ++i) tree->children[i] = 0; tree->index = -1; } static void color_tree_cleanup(ColorTree* tree) { int i; for(i = 0; i != 16; ++i) { if(tree->children[i]) { color_tree_cleanup(tree->children[i]); lodepng_free(tree->children[i]); } } } /*returns -1 if color not present, its index otherwise*/ static int color_tree_get(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a) { int bit = 0; for(bit = 0; bit < 8; ++bit) { int i = 8 * ((r >> bit) & 1) + 4 * ((g >> bit) & 1) + 2 * ((b >> bit) & 1) + 1 * ((a >> bit) & 1); if(!tree->children[i]) return -1; else tree = tree->children[i]; } return tree ? tree->index : -1; } #ifdef LODEPNG_COMPILE_ENCODER static int color_tree_has(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a) { return color_tree_get(tree, r, g, b, a) >= 0; } #endif /*LODEPNG_COMPILE_ENCODER*/ /*color is not allowed to already exist. Index should be >= 0 (it's signed to be compatible with using -1 for "doesn't exist")*/ static void color_tree_add(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a, unsigned index) { int bit; for(bit = 0; bit < 8; ++bit) { int i = 8 * ((r >> bit) & 1) + 4 * ((g >> bit) & 1) + 2 * ((b >> bit) & 1) + 1 * ((a >> bit) & 1); if(!tree->children[i]) { tree->children[i] = (ColorTree*)lodepng_malloc(sizeof(ColorTree)); color_tree_init(tree->children[i]); } tree = tree->children[i]; } tree->index = (int)index; } /*put a pixel, given its RGBA color, into image of any color type*/ static unsigned rgba8ToPixel(unsigned char* out, size_t i, const LodePNGColorMode* mode, ColorTree* tree /*for palette*/, unsigned char r, unsigned char g, unsigned char b, unsigned char a) { if(mode->colortype == LCT_GREY) { unsigned char grey = r; /*((unsigned short)r + g + b) / 3*/; if(mode->bitdepth == 8) out[i] = grey; else if(mode->bitdepth == 16) out[i * 2 + 0] = out[i * 2 + 1] = grey; else { /*take the most significant bits of grey*/ grey = (grey >> (8 - mode->bitdepth)) & ((1 << mode->bitdepth) - 1); addColorBits(out, i, mode->bitdepth, grey); } } else if(mode->colortype == LCT_RGB) { if(mode->bitdepth == 8) { out[i * 3 + 0] = r; out[i * 3 + 1] = g; out[i * 3 + 2] = b; } else { out[i * 6 + 0] = out[i * 6 + 1] = r; out[i * 6 + 2] = out[i * 6 + 3] = g; out[i * 6 + 4] = out[i * 6 + 5] = b; } } else if(mode->colortype == LCT_PALETTE) { int index = color_tree_get(tree, r, g, b, a); if(index < 0) return 82; /*color not in palette*/ if(mode->bitdepth == 8) out[i] = index; else addColorBits(out, i, mode->bitdepth, (unsigned)index); } else if(mode->colortype == LCT_GREY_ALPHA) { unsigned char grey = r; /*((unsigned short)r + g + b) / 3*/; if(mode->bitdepth == 8) { out[i * 2 + 0] = grey; out[i * 2 + 1] = a; } else if(mode->bitdepth == 16) { out[i * 4 + 0] = out[i * 4 + 1] = grey; out[i * 4 + 2] = out[i * 4 + 3] = a; } } else if(mode->colortype == LCT_RGBA) { if(mode->bitdepth == 8) { out[i * 4 + 0] = r; out[i * 4 + 1] = g; out[i * 4 + 2] = b; out[i * 4 + 3] = a; } else { out[i * 8 + 0] = out[i * 8 + 1] = r; out[i * 8 + 2] = out[i * 8 + 3] = g; out[i * 8 + 4] = out[i * 8 + 5] = b; out[i * 8 + 6] = out[i * 8 + 7] = a; } } return 0; /*no error*/ } /*put a pixel, given its RGBA16 color, into image of any color 16-bitdepth type*/ static void rgba16ToPixel(unsigned char* out, size_t i, const LodePNGColorMode* mode, unsigned short r, unsigned short g, unsigned short b, unsigned short a) { if(mode->colortype == LCT_GREY) { unsigned short grey = r; /*((unsigned)r + g + b) / 3*/; out[i * 2 + 0] = (grey >> 8) & 255; out[i * 2 + 1] = grey & 255; } else if(mode->colortype == LCT_RGB) { out[i * 6 + 0] = (r >> 8) & 255; out[i * 6 + 1] = r & 255; out[i * 6 + 2] = (g >> 8) & 255; out[i * 6 + 3] = g & 255; out[i * 6 + 4] = (b >> 8) & 255; out[i * 6 + 5] = b & 255; } else if(mode->colortype == LCT_GREY_ALPHA) { unsigned short grey = r; /*((unsigned)r + g + b) / 3*/; out[i * 4 + 0] = (grey >> 8) & 255; out[i * 4 + 1] = grey & 255; out[i * 4 + 2] = (a >> 8) & 255; out[i * 4 + 3] = a & 255; } else if(mode->colortype == LCT_RGBA) { out[i * 8 + 0] = (r >> 8) & 255; out[i * 8 + 1] = r & 255; out[i * 8 + 2] = (g >> 8) & 255; out[i * 8 + 3] = g & 255; out[i * 8 + 4] = (b >> 8) & 255; out[i * 8 + 5] = b & 255; out[i * 8 + 6] = (a >> 8) & 255; out[i * 8 + 7] = a & 255; } } /*Get RGBA8 color of pixel with index i (y * width + x) from the raw image with given color type.*/ static void getPixelColorRGBA8(unsigned char* r, unsigned char* g, unsigned char* b, unsigned char* a, const unsigned char* in, size_t i, const LodePNGColorMode* mode) { if(mode->colortype == LCT_GREY) { if(mode->bitdepth == 8) { *r = *g = *b = in[i]; if(mode->key_defined && *r == mode->key_r) *a = 0; else *a = 255; } else if(mode->bitdepth == 16) { *r = *g = *b = in[i * 2 + 0]; if(mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r) *a = 0; else *a = 255; } else { unsigned highest = ((1U << mode->bitdepth) - 1U); /*highest possible value for this bit depth*/ size_t j = i * mode->bitdepth; unsigned value = readBitsFromReversedStream(&j, in, mode->bitdepth); *r = *g = *b = (value * 255) / highest; if(mode->key_defined && value == mode->key_r) *a = 0; else *a = 255; } } else if(mode->colortype == LCT_RGB) { if(mode->bitdepth == 8) { *r = in[i * 3 + 0]; *g = in[i * 3 + 1]; *b = in[i * 3 + 2]; if(mode->key_defined && *r == mode->key_r && *g == mode->key_g && *b == mode->key_b) *a = 0; else *a = 255; } else { *r = in[i * 6 + 0]; *g = in[i * 6 + 2]; *b = in[i * 6 + 4]; if(mode->key_defined && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r && 256U * in[i * 6 + 2] + in[i * 6 + 3] == mode->key_g && 256U * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b) *a = 0; else *a = 255; } } else if(mode->colortype == LCT_PALETTE) { unsigned index; if(mode->bitdepth == 8) index = in[i]; else { size_t j = i * mode->bitdepth; index = readBitsFromReversedStream(&j, in, mode->bitdepth); } if(index >= mode->palettesize) { /*This is an error according to the PNG spec, but common PNG decoders make it black instead. Done here too, slightly faster due to no error handling needed.*/ *r = *g = *b = 0; *a = 255; } else { *r = mode->palette[index * 4 + 0]; *g = mode->palette[index * 4 + 1]; *b = mode->palette[index * 4 + 2]; *a = mode->palette[index * 4 + 3]; } } else if(mode->colortype == LCT_GREY_ALPHA) { if(mode->bitdepth == 8) { *r = *g = *b = in[i * 2 + 0]; *a = in[i * 2 + 1]; } else { *r = *g = *b = in[i * 4 + 0]; *a = in[i * 4 + 2]; } } else if(mode->colortype == LCT_RGBA) { if(mode->bitdepth == 8) { *r = in[i * 4 + 0]; *g = in[i * 4 + 1]; *b = in[i * 4 + 2]; *a = in[i * 4 + 3]; } else { *r = in[i * 8 + 0]; *g = in[i * 8 + 2]; *b = in[i * 8 + 4]; *a = in[i * 8 + 6]; } } } /*Similar to getPixelColorRGBA8, but with all the for loops inside of the color mode test cases, optimized to convert the colors much faster, when converting to RGBA or RGB with 8 bit per cannel. buffer must be RGBA or RGB output with enough memory, if has_alpha is true the output is RGBA. mode has the color mode of the input buffer.*/ static void getPixelColorsRGBA8(unsigned char* buffer, size_t numpixels, unsigned has_alpha, const unsigned char* in, const LodePNGColorMode* mode) { unsigned num_channels = has_alpha ? 4 : 3; size_t i; if(mode->colortype == LCT_GREY) { if(mode->bitdepth == 8) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = buffer[1] = buffer[2] = in[i]; if(has_alpha) buffer[3] = mode->key_defined && in[i] == mode->key_r ? 0 : 255; } } else if(mode->bitdepth == 16) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = buffer[1] = buffer[2] = in[i * 2]; if(has_alpha) buffer[3] = mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r ? 0 : 255; } } else { unsigned highest = ((1U << mode->bitdepth) - 1U); /*highest possible value for this bit depth*/ size_t j = 0; for(i = 0; i != numpixels; ++i, buffer += num_channels) { unsigned value = readBitsFromReversedStream(&j, in, mode->bitdepth); buffer[0] = buffer[1] = buffer[2] = (value * 255) / highest; if(has_alpha) buffer[3] = mode->key_defined && value == mode->key_r ? 0 : 255; } } } else if(mode->colortype == LCT_RGB) { if(mode->bitdepth == 8) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = in[i * 3 + 0]; buffer[1] = in[i * 3 + 1]; buffer[2] = in[i * 3 + 2]; if(has_alpha) buffer[3] = mode->key_defined && buffer[0] == mode->key_r && buffer[1]== mode->key_g && buffer[2] == mode->key_b ? 0 : 255; } } else { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = in[i * 6 + 0]; buffer[1] = in[i * 6 + 2]; buffer[2] = in[i * 6 + 4]; if(has_alpha) buffer[3] = mode->key_defined && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r && 256U * in[i * 6 + 2] + in[i * 6 + 3] == mode->key_g && 256U * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b ? 0 : 255; } } } else if(mode->colortype == LCT_PALETTE) { unsigned index; size_t j = 0; for(i = 0; i != numpixels; ++i, buffer += num_channels) { if(mode->bitdepth == 8) index = in[i]; else index = readBitsFromReversedStream(&j, in, mode->bitdepth); if(index >= mode->palettesize) { /*This is an error according to the PNG spec, but most PNG decoders make it black instead. Done here too, slightly faster due to no error handling needed.*/ buffer[0] = buffer[1] = buffer[2] = 0; if(has_alpha) buffer[3] = 255; } else { buffer[0] = mode->palette[index * 4 + 0]; buffer[1] = mode->palette[index * 4 + 1]; buffer[2] = mode->palette[index * 4 + 2]; if(has_alpha) buffer[3] = mode->palette[index * 4 + 3]; } } } else if(mode->colortype == LCT_GREY_ALPHA) { if(mode->bitdepth == 8) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = buffer[1] = buffer[2] = in[i * 2 + 0]; if(has_alpha) buffer[3] = in[i * 2 + 1]; } } else { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = buffer[1] = buffer[2] = in[i * 4 + 0]; if(has_alpha) buffer[3] = in[i * 4 + 2]; } } } else if(mode->colortype == LCT_RGBA) { if(mode->bitdepth == 8) { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = in[i * 4 + 0]; buffer[1] = in[i * 4 + 1]; buffer[2] = in[i * 4 + 2]; if(has_alpha) buffer[3] = in[i * 4 + 3]; } } else { for(i = 0; i != numpixels; ++i, buffer += num_channels) { buffer[0] = in[i * 8 + 0]; buffer[1] = in[i * 8 + 2]; buffer[2] = in[i * 8 + 4]; if(has_alpha) buffer[3] = in[i * 8 + 6]; } } } } /*Get RGBA16 color of pixel with index i (y * width + x) from the raw image with given color type, but the given color type must be 16-bit itself.*/ static void getPixelColorRGBA16(unsigned short* r, unsigned short* g, unsigned short* b, unsigned short* a, const unsigned char* in, size_t i, const LodePNGColorMode* mode) { if(mode->colortype == LCT_GREY) { *r = *g = *b = 256 * in[i * 2 + 0] + in[i * 2 + 1]; if(mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r) *a = 0; else *a = 65535; } else if(mode->colortype == LCT_RGB) { *r = 256u * in[i * 6 + 0] + in[i * 6 + 1]; *g = 256u * in[i * 6 + 2] + in[i * 6 + 3]; *b = 256u * in[i * 6 + 4] + in[i * 6 + 5]; if(mode->key_defined && 256u * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r && 256u * in[i * 6 + 2] + in[i * 6 + 3] == mode->key_g && 256u * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b) *a = 0; else *a = 65535; } else if(mode->colortype == LCT_GREY_ALPHA) { *r = *g = *b = 256u * in[i * 4 + 0] + in[i * 4 + 1]; *a = 256u * in[i * 4 + 2] + in[i * 4 + 3]; } else if(mode->colortype == LCT_RGBA) { *r = 256u * in[i * 8 + 0] + in[i * 8 + 1]; *g = 256u * in[i * 8 + 2] + in[i * 8 + 3]; *b = 256u * in[i * 8 + 4] + in[i * 8 + 5]; *a = 256u * in[i * 8 + 6] + in[i * 8 + 7]; } } unsigned lodepng_convert(unsigned char* out, const unsigned char* in, const LodePNGColorMode* mode_out, const LodePNGColorMode* mode_in, unsigned w, unsigned h) { size_t i; ColorTree tree; size_t numpixels = w * h; if(lodepng_color_mode_equal(mode_out, mode_in)) { size_t numbytes = lodepng_get_raw_size(w, h, mode_in); for(i = 0; i != numbytes; ++i) out[i] = in[i]; return 0; } if(mode_out->colortype == LCT_PALETTE) { size_t palettesize = mode_out->palettesize; const unsigned char* palette = mode_out->palette; size_t palsize = 1u << mode_out->bitdepth; /*if the user specified output palette but did not give the values, assume they want the values of the input color type (assuming that one is palette). Note that we never create a new palette ourselves.*/ if(palettesize == 0) { palettesize = mode_in->palettesize; palette = mode_in->palette; } if(palettesize < palsize) palsize = palettesize; color_tree_init(&tree); for(i = 0; i != palsize; ++i) { const unsigned char* p = &palette[i * 4]; color_tree_add(&tree, p[0], p[1], p[2], p[3], i); } } if(mode_in->bitdepth == 16 && mode_out->bitdepth == 16) { for(i = 0; i != numpixels; ++i) { unsigned short r = 0, g = 0, b = 0, a = 0; getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode_in); rgba16ToPixel(out, i, mode_out, r, g, b, a); } } else if(mode_out->bitdepth == 8 && mode_out->colortype == LCT_RGBA) { getPixelColorsRGBA8(out, numpixels, 1, in, mode_in); } else if(mode_out->bitdepth == 8 && mode_out->colortype == LCT_RGB) { getPixelColorsRGBA8(out, numpixels, 0, in, mode_in); } else { unsigned char r = 0, g = 0, b = 0, a = 0; for(i = 0; i != numpixels; ++i) { getPixelColorRGBA8(&r, &g, &b, &a, in, i, mode_in); CERROR_TRY_RETURN(rgba8ToPixel(out, i, mode_out, &tree, r, g, b, a)); } } if(mode_out->colortype == LCT_PALETTE) { color_tree_cleanup(&tree); } return 0; /*no error*/ } #ifdef LODEPNG_COMPILE_ENCODER void lodepng_color_profile_init(LodePNGColorProfile* profile) { profile->colored = 0; profile->key = 0; profile->alpha = 0; profile->key_r = profile->key_g = profile->key_b = 0; profile->numcolors = 0; profile->bits = 1; } /*function used for debug purposes with C++*/ /*void printColorProfile(LodePNGColorProfile* p) { std::cout << "colored: " << (int)p->colored << ", "; std::cout << "key: " << (int)p->key << ", "; std::cout << "key_r: " << (int)p->key_r << ", "; std::cout << "key_g: " << (int)p->key_g << ", "; std::cout << "key_b: " << (int)p->key_b << ", "; std::cout << "alpha: " << (int)p->alpha << ", "; std::cout << "numcolors: " << (int)p->numcolors << ", "; std::cout << "bits: " << (int)p->bits << std::endl; }*/ /*Returns how many bits needed to represent given value (max 8 bit)*/ static unsigned getValueRequiredBits(unsigned char value) { if(value == 0 || value == 255) return 1; /*The scaling of 2-bit and 4-bit values uses multiples of 85 and 17*/ if(value % 17 == 0) return value % 85 == 0 ? 2 : 4; return 8; } /*profile must already have been inited with mode. It's ok to set some parameters of profile to done already.*/ unsigned lodepng_get_color_profile(LodePNGColorProfile* profile, const unsigned char* in, unsigned w, unsigned h, const LodePNGColorMode* mode) { unsigned error = 0; size_t i; ColorTree tree; size_t numpixels = w * h; unsigned colored_done = lodepng_is_greyscale_type(mode) ? 1 : 0; unsigned alpha_done = lodepng_can_have_alpha(mode) ? 0 : 1; unsigned numcolors_done = 0; unsigned bpp = lodepng_get_bpp(mode); unsigned bits_done = bpp == 1 ? 1 : 0; unsigned maxnumcolors = 257; unsigned sixteen = 0; if(bpp <= 8) maxnumcolors = bpp == 1 ? 2 : (bpp == 2 ? 4 : (bpp == 4 ? 16 : 256)); color_tree_init(&tree); /*Check if the 16-bit input is truly 16-bit*/ if(mode->bitdepth == 16) { unsigned short r, g, b, a; for(i = 0; i != numpixels; ++i) { getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode); if((r & 255) != ((r >> 8) & 255) || (g & 255) != ((g >> 8) & 255) || (b & 255) != ((b >> 8) & 255) || (a & 255) != ((a >> 8) & 255)) /*first and second byte differ*/ { sixteen = 1; break; } } } if(sixteen) { unsigned short r = 0, g = 0, b = 0, a = 0; profile->bits = 16; bits_done = numcolors_done = 1; /*counting colors no longer useful, palette doesn't support 16-bit*/ for(i = 0; i != numpixels; ++i) { getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode); if(!colored_done && (r != g || r != b)) { profile->colored = 1; colored_done = 1; } if(!alpha_done) { unsigned matchkey = (r == profile->key_r && g == profile->key_g && b == profile->key_b); if(a != 65535 && (a != 0 || (profile->key && !matchkey))) { profile->alpha = 1; alpha_done = 1; if(profile->bits < 8) profile->bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/ } else if(a == 0 && !profile->alpha && !profile->key) { profile->key = 1; profile->key_r = r; profile->key_g = g; profile->key_b = b; } else if(a == 65535 && profile->key && matchkey) { /* Color key cannot be used if an opaque pixel also has that RGB color. */ profile->alpha = 1; alpha_done = 1; } } if(alpha_done && numcolors_done && colored_done && bits_done) break; } if(profile->key && !profile->alpha) { for(i = 0; i != numpixels; ++i) { getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode); if(a != 0 && r == profile->key_r && g == profile->key_g && b == profile->key_b) { /* Color key cannot be used if an opaque pixel also has that RGB color. */ profile->alpha = 1; alpha_done = 1; } } } } else /* < 16-bit */ { unsigned char r = 0, g = 0, b = 0, a = 0; for(i = 0; i != numpixels; ++i) { getPixelColorRGBA8(&r, &g, &b, &a, in, i, mode); if(!bits_done && profile->bits < 8) { /*only r is checked, < 8 bits is only relevant for greyscale*/ unsigned bits = getValueRequiredBits(r); if(bits > profile->bits) profile->bits = bits; } bits_done = (profile->bits >= bpp); if(!colored_done && (r != g || r != b)) { profile->colored = 1; colored_done = 1; if(profile->bits < 8) profile->bits = 8; /*PNG has no colored modes with less than 8-bit per channel*/ } if(!alpha_done) { unsigned matchkey = (r == profile->key_r && g == profile->key_g && b == profile->key_b); if(a != 255 && (a != 0 || (profile->key && !matchkey))) { profile->alpha = 1; alpha_done = 1; if(profile->bits < 8) profile->bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/ } else if(a == 0 && !profile->alpha && !profile->key) { profile->key = 1; profile->key_r = r; profile->key_g = g; profile->key_b = b; } else if(a == 255 && profile->key && matchkey) { /* Color key cannot be used if an opaque pixel also has that RGB color. */ profile->alpha = 1; alpha_done = 1; if(profile->bits < 8) profile->bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/ } } if(!numcolors_done) { if(!color_tree_has(&tree, r, g, b, a)) { color_tree_add(&tree, r, g, b, a, profile->numcolors); if(profile->numcolors < 256) { unsigned char* p = profile->palette; unsigned n = profile->numcolors; p[n * 4 + 0] = r; p[n * 4 + 1] = g; p[n * 4 + 2] = b; p[n * 4 + 3] = a; } ++profile->numcolors; numcolors_done = profile->numcolors >= maxnumcolors; } } if(alpha_done && numcolors_done && colored_done && bits_done) break; } if(profile->key && !profile->alpha) { for(i = 0; i != numpixels; ++i) { getPixelColorRGBA8(&r, &g, &b, &a, in, i, mode); if(a != 0 && r == profile->key_r && g == profile->key_g && b == profile->key_b) { /* Color key cannot be used if an opaque pixel also has that RGB color. */ profile->alpha = 1; alpha_done = 1; } } } /*make the profile's key always 16-bit for consistency - repeat each byte twice*/ profile->key_r += (profile->key_r << 8); profile->key_g += (profile->key_g << 8); profile->key_b += (profile->key_b << 8); } color_tree_cleanup(&tree); return error; } /*Automatically chooses color type that gives smallest amount of bits in the output image, e.g. grey if there are only greyscale pixels, palette if there are less than 256 colors, ... Updates values of mode with a potentially smaller color model. mode_out should contain the user chosen color model, but will be overwritten with the new chosen one.*/ unsigned lodepng_auto_choose_color(LodePNGColorMode* mode_out, const unsigned char* image, unsigned w, unsigned h, const LodePNGColorMode* mode_in) { LodePNGColorProfile prof; unsigned error = 0; unsigned i, n, palettebits, grey_ok, palette_ok; lodepng_color_profile_init(&prof); error = lodepng_get_color_profile(&prof, image, w, h, mode_in); if(error) return error; mode_out->key_defined = 0; if(prof.key && w * h <= 16) { prof.alpha = 1; /*too few pixels to justify tRNS chunk overhead*/ if(prof.bits < 8) prof.bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/ } grey_ok = !prof.colored && !prof.alpha; /*grey without alpha, with potentially low bits*/ n = prof.numcolors; palettebits = n <= 2 ? 1 : (n <= 4 ? 2 : (n <= 16 ? 4 : 8)); palette_ok = n <= 256 && (n * 2 < w * h) && prof.bits <= 8; if(w * h < n * 2) palette_ok = 0; /*don't add palette overhead if image has only a few pixels*/ if(grey_ok && prof.bits <= palettebits) palette_ok = 0; /*grey is less overhead*/ if(palette_ok) { unsigned char* p = prof.palette; lodepng_palette_clear(mode_out); /*remove potential earlier palette*/ for(i = 0; i != prof.numcolors; ++i) { error = lodepng_palette_add(mode_out, p[i * 4 + 0], p[i * 4 + 1], p[i * 4 + 2], p[i * 4 + 3]); if(error) break; } mode_out->colortype = LCT_PALETTE; mode_out->bitdepth = palettebits; if(mode_in->colortype == LCT_PALETTE && mode_in->palettesize >= mode_out->palettesize && mode_in->bitdepth == mode_out->bitdepth) { /*If input should have same palette colors, keep original to preserve its order and prevent conversion*/ lodepng_color_mode_cleanup(mode_out); lodepng_color_mode_copy(mode_out, mode_in); } } else /*8-bit or 16-bit per channel*/ { mode_out->bitdepth = prof.bits; mode_out->colortype = prof.alpha ? (prof.colored ? LCT_RGBA : LCT_GREY_ALPHA) : (prof.colored ? LCT_RGB : LCT_GREY); if(prof.key && !prof.alpha) { unsigned mask = (1u << mode_out->bitdepth) - 1u; /*profile always uses 16-bit, mask converts it*/ mode_out->key_r = prof.key_r & mask; mode_out->key_g = prof.key_g & mask; mode_out->key_b = prof.key_b & mask; mode_out->key_defined = 1; } } return error; } #endif /* #ifdef LODEPNG_COMPILE_ENCODER */ /* Paeth predicter, used by PNG filter type 4 The parameters are of type short, but should come from unsigned chars, the shorts are only needed to make the paeth calculation correct. */ static unsigned char paethPredictor(short a, short b, short c) { short pa = abs(b - c); short pb = abs(a - c); short pc = abs(a + b - c - c); if(pc < pa && pc < pb) return (unsigned char)c; else if(pb < pa) return (unsigned char)b; else return (unsigned char)a; } /*shared values used by multiple Adam7 related functions*/ static const unsigned ADAM7_IX[7] = { 0, 4, 0, 2, 0, 1, 0 }; /*x start values*/ static const unsigned ADAM7_IY[7] = { 0, 0, 4, 0, 2, 0, 1 }; /*y start values*/ static const unsigned ADAM7_DX[7] = { 8, 8, 4, 4, 2, 2, 1 }; /*x delta values*/ static const unsigned ADAM7_DY[7] = { 8, 8, 8, 4, 4, 2, 2 }; /*y delta values*/ /* Outputs various dimensions and positions in the image related to the Adam7 reduced images. passw: output containing the width of the 7 passes passh: output containing the height of the 7 passes filter_passstart: output containing the index of the start and end of each reduced image with filter bytes padded_passstart output containing the index of the start and end of each reduced image when without filter bytes but with padded scanlines passstart: output containing the index of the start and end of each reduced image without padding between scanlines, but still padding between the images w, h: width and height of non-interlaced image bpp: bits per pixel "padded" is only relevant if bpp is less than 8 and a scanline or image does not end at a full byte */ static void Adam7_getpassvalues(unsigned passw[7], unsigned passh[7], size_t filter_passstart[8], size_t padded_passstart[8], size_t passstart[8], unsigned w, unsigned h, unsigned bpp) { /*the passstart values have 8 values: the 8th one indicates the byte after the end of the 7th (= last) pass*/ unsigned i; /*calculate width and height in pixels of each pass*/ for(i = 0; i != 7; ++i) { passw[i] = (w + ADAM7_DX[i] - ADAM7_IX[i] - 1) / ADAM7_DX[i]; passh[i] = (h + ADAM7_DY[i] - ADAM7_IY[i] - 1) / ADAM7_DY[i]; if(passw[i] == 0) passh[i] = 0; if(passh[i] == 0) passw[i] = 0; } filter_passstart[0] = padded_passstart[0] = passstart[0] = 0; for(i = 0; i != 7; ++i) { /*if passw[i] is 0, it's 0 bytes, not 1 (no filtertype-byte)*/ filter_passstart[i + 1] = filter_passstart[i] + ((passw[i] && passh[i]) ? passh[i] * (1 + (passw[i] * bpp + 7) / 8) : 0); /*bits padded if needed to fill full byte at end of each scanline*/ padded_passstart[i + 1] = padded_passstart[i] + passh[i] * ((passw[i] * bpp + 7) / 8); /*only padded at end of reduced image*/ passstart[i + 1] = passstart[i] + (passh[i] * passw[i] * bpp + 7) / 8; } } #ifdef LODEPNG_COMPILE_DECODER /* ////////////////////////////////////////////////////////////////////////// */ /* / PNG Decoder / */ /* ////////////////////////////////////////////////////////////////////////// */ /*read the information from the header and store it in the LodePNGInfo. return value is error*/ unsigned lodepng_inspect(unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize) { LodePNGInfo* info = &state->info_png; if(insize == 0 || in == 0) { CERROR_RETURN_ERROR(state->error, 48); /*error: the given data is empty*/ } if(insize < 33) { CERROR_RETURN_ERROR(state->error, 27); /*error: the data length is smaller than the length of a PNG header*/ } /*when decoding a new PNG image, make sure all parameters created after previous decoding are reset*/ lodepng_info_cleanup(info); lodepng_info_init(info); if(in[0] != 137 || in[1] != 80 || in[2] != 78 || in[3] != 71 || in[4] != 13 || in[5] != 10 || in[6] != 26 || in[7] != 10) { CERROR_RETURN_ERROR(state->error, 28); /*error: the first 8 bytes are not the correct PNG signature*/ } if(lodepng_chunk_length(in + 8) != 13) { CERROR_RETURN_ERROR(state->error, 94); /*error: header size must be 13 bytes*/ } if(!lodepng_chunk_type_equals(in + 8, "IHDR")) { CERROR_RETURN_ERROR(state->error, 29); /*error: it doesn't start with a IHDR chunk!*/ } /*read the values given in the header*/ *w = lodepng_read32bitInt(&in[16]); *h = lodepng_read32bitInt(&in[20]); info->color.bitdepth = in[24]; info->color.colortype = (LodePNGColorType)in[25]; info->compression_method = in[26]; info->filter_method = in[27]; info->interlace_method = in[28]; if(*w == 0 || *h == 0) { CERROR_RETURN_ERROR(state->error, 93); } if(!state->decoder.ignore_crc) { unsigned CRC = lodepng_read32bitInt(&in[29]); unsigned checksum = lodepng_crc32(&in[12], 17); if(CRC != checksum) { CERROR_RETURN_ERROR(state->error, 57); /*invalid CRC*/ } } /*error: only compression method 0 is allowed in the specification*/ if(info->compression_method != 0) CERROR_RETURN_ERROR(state->error, 32); /*error: only filter method 0 is allowed in the specification*/ if(info->filter_method != 0) CERROR_RETURN_ERROR(state->error, 33); /*error: only interlace methods 0 and 1 exist in the specification*/ if(info->interlace_method > 1) CERROR_RETURN_ERROR(state->error, 34); state->error = checkColorValidity(info->color.colortype, info->color.bitdepth); return state->error; } static unsigned unfilterScanline(unsigned char* recon, const unsigned char* scanline, const unsigned char* precon, size_t bytewidth, unsigned char filterType, size_t length) { /* For PNG filter method 0 unfilter a PNG image scanline by scanline. when the pixels are smaller than 1 byte, the filter works byte per byte (bytewidth = 1) precon is the previous unfiltered scanline, recon the result, scanline the current one the incoming scanlines do NOT include the filtertype byte, that one is given in the parameter filterType instead recon and scanline MAY be the same memory address! precon must be disjoint. */ size_t i; switch(filterType) { case 0: for(i = 0; i != length; ++i) recon[i] = scanline[i]; break; case 1: for(i = 0; i != bytewidth; ++i) recon[i] = scanline[i]; for(i = bytewidth; i < length; ++i) recon[i] = scanline[i] + recon[i - bytewidth]; break; case 2: if(precon) { for(i = 0; i != length; ++i) recon[i] = scanline[i] + precon[i]; } else { for(i = 0; i != length; ++i) recon[i] = scanline[i]; } break; case 3: if(precon) { for(i = 0; i != bytewidth; ++i) recon[i] = scanline[i] + (precon[i] >> 1); for(i = bytewidth; i < length; ++i) recon[i] = scanline[i] + ((recon[i - bytewidth] + precon[i]) >> 1); } else { for(i = 0; i != bytewidth; ++i) recon[i] = scanline[i]; for(i = bytewidth; i < length; ++i) recon[i] = scanline[i] + (recon[i - bytewidth] >> 1); } break; case 4: if(precon) { for(i = 0; i != bytewidth; ++i) { recon[i] = (scanline[i] + precon[i]); /*paethPredictor(0, precon[i], 0) is always precon[i]*/ } for(i = bytewidth; i < length; ++i) { recon[i] = (scanline[i] + paethPredictor(recon[i - bytewidth], precon[i], precon[i - bytewidth])); } } else { for(i = 0; i != bytewidth; ++i) { recon[i] = scanline[i]; } for(i = bytewidth; i < length; ++i) { /*paethPredictor(recon[i - bytewidth], 0, 0) is always recon[i - bytewidth]*/ recon[i] = (scanline[i] + recon[i - bytewidth]); } } break; default: return 36; /*error: unexisting filter type given*/ } return 0; } static unsigned unfilter(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, unsigned bpp) { /* For PNG filter method 0 this function unfilters a single image (e.g. without interlacing this is called once, with Adam7 seven times) out must have enough bytes allocated already, in must have the scanlines + 1 filtertype byte per scanline w and h are image dimensions or dimensions of reduced image, bpp is bits per pixel in and out are allowed to be the same memory address (but aren't the same size since in has the extra filter bytes) */ unsigned y; unsigned char* prevline = 0; /*bytewidth is used for filtering, is 1 when bpp < 8, number of bytes per pixel otherwise*/ size_t bytewidth = (bpp + 7) / 8; size_t linebytes = (w * bpp + 7) / 8; for(y = 0; y < h; ++y) { size_t outindex = linebytes * y; size_t inindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/ unsigned char filterType = in[inindex]; CERROR_TRY_RETURN(unfilterScanline(&out[outindex], &in[inindex + 1], prevline, bytewidth, filterType, linebytes)); prevline = &out[outindex]; } return 0; } /* in: Adam7 interlaced image, with no padding bits between scanlines, but between reduced images so that each reduced image starts at a byte. out: the same pixels, but re-ordered so that they're now a non-interlaced image with size w*h bpp: bits per pixel out has the following size in bits: w * h * bpp. in is possibly bigger due to padding bits between reduced images. out must be big enough AND must be 0 everywhere if bpp < 8 in the current implementation (because that's likely a little bit faster) NOTE: comments about padding bits are only relevant if bpp < 8 */ static void Adam7_deinterlace(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, unsigned bpp) { unsigned passw[7], passh[7]; size_t filter_passstart[8], padded_passstart[8], passstart[8]; unsigned i; Adam7_getpassvalues(passw, passh, filter_passstart, padded_passstart, passstart, w, h, bpp); if(bpp >= 8) { for(i = 0; i != 7; ++i) { unsigned x, y, b; size_t bytewidth = bpp / 8; for(y = 0; y < passh[i]; ++y) for(x = 0; x < passw[i]; ++x) { size_t pixelinstart = passstart[i] + (y * passw[i] + x) * bytewidth; size_t pixeloutstart = ((ADAM7_IY[i] + y * ADAM7_DY[i]) * w + ADAM7_IX[i] + x * ADAM7_DX[i]) * bytewidth; for(b = 0; b < bytewidth; ++b) { out[pixeloutstart + b] = in[pixelinstart + b]; } } } } else /*bpp < 8: Adam7 with pixels < 8 bit is a bit trickier: with bit pointers*/ { for(i = 0; i != 7; ++i) { unsigned x, y, b; unsigned ilinebits = bpp * passw[i]; unsigned olinebits = bpp * w; size_t obp, ibp; /*bit pointers (for out and in buffer)*/ for(y = 0; y < passh[i]; ++y) for(x = 0; x < passw[i]; ++x) { ibp = (8 * passstart[i]) + (y * ilinebits + x * bpp); obp = (ADAM7_IY[i] + y * ADAM7_DY[i]) * olinebits + (ADAM7_IX[i] + x * ADAM7_DX[i]) * bpp; for(b = 0; b < bpp; ++b) { unsigned char bit = readBitFromReversedStream(&ibp, in); /*note that this function assumes the out buffer is completely 0, use setBitOfReversedStream otherwise*/ setBitOfReversedStream0(&obp, out, bit); } } } } } static void removePaddingBits(unsigned char* out, const unsigned char* in, size_t olinebits, size_t ilinebits, unsigned h) { /* After filtering there are still padding bits if scanlines have non multiple of 8 bit amounts. They need to be removed (except at last scanline of (Adam7-reduced) image) before working with pure image buffers for the Adam7 code, the color convert code and the output to the user. in and out are allowed to be the same buffer, in may also be higher but still overlapping; in must have >= ilinebits*h bits, out must have >= olinebits*h bits, olinebits must be <= ilinebits also used to move bits after earlier such operations happened, e.g. in a sequence of reduced images from Adam7 only useful if (ilinebits - olinebits) is a value in the range 1..7 */ unsigned y; size_t diff = ilinebits - olinebits; size_t ibp = 0, obp = 0; /*input and output bit pointers*/ for(y = 0; y < h; ++y) { size_t x; for(x = 0; x < olinebits; ++x) { unsigned char bit = readBitFromReversedStream(&ibp, in); setBitOfReversedStream(&obp, out, bit); } ibp += diff; } } /*out must be buffer big enough to contain full image, and in must contain the full decompressed data from the IDAT chunks (with filter index bytes and possible padding bits) return value is error*/ static unsigned postProcessScanlines(unsigned char* out, unsigned char* in, unsigned w, unsigned h, const LodePNGInfo* info_png) { /* This function converts the filtered-padded-interlaced data into pure 2D image buffer with the PNG's colortype. Steps: *) if no Adam7: 1) unfilter 2) remove padding bits (= posible extra bits per scanline if bpp < 8) *) if adam7: 1) 7x unfilter 2) 7x remove padding bits 3) Adam7_deinterlace NOTE: the in buffer will be overwritten with intermediate data! */ unsigned bpp = lodepng_get_bpp(&info_png->color); if(bpp == 0) return 31; /*error: invalid colortype*/ if(info_png->interlace_method == 0) { if(bpp < 8 && w * bpp != ((w * bpp + 7) / 8) * 8) { CERROR_TRY_RETURN(unfilter(in, in, w, h, bpp)); removePaddingBits(out, in, w * bpp, ((w * bpp + 7) / 8) * 8, h); } /*we can immediately filter into the out buffer, no other steps needed*/ else CERROR_TRY_RETURN(unfilter(out, in, w, h, bpp)); } else /*interlace_method is 1 (Adam7)*/ { unsigned passw[7], passh[7]; size_t filter_passstart[8], padded_passstart[8], passstart[8]; unsigned i; Adam7_getpassvalues(passw, passh, filter_passstart, padded_passstart, passstart, w, h, bpp); for(i = 0; i != 7; ++i) { CERROR_TRY_RETURN(unfilter(&in[padded_passstart[i]], &in[filter_passstart[i]], passw[i], passh[i], bpp)); /*TODO: possible efficiency improvement: if in this reduced image the bits fit nicely in 1 scanline, move bytes instead of bits or move not at all*/ if(bpp < 8) { /*remove padding bits in scanlines; after this there still may be padding bits between the different reduced images: each reduced image still starts nicely at a byte*/ removePaddingBits(&in[passstart[i]], &in[padded_passstart[i]], passw[i] * bpp, ((passw[i] * bpp + 7) / 8) * 8, passh[i]); } } Adam7_deinterlace(out, in, w, h, bpp); } return 0; } static unsigned readChunk_PLTE(LodePNGColorMode* color, const unsigned char* data, size_t chunkLength) { unsigned pos = 0, i; if(color->palette) lodepng_free(color->palette); color->palettesize = chunkLength / 3; color->palette = (unsigned char*)lodepng_malloc(4 * color->palettesize); if(!color->palette && color->palettesize) { color->palettesize = 0; return 83; /*alloc fail*/ } if(color->palettesize > 256) return 38; /*error: palette too big*/ for(i = 0; i != color->palettesize; ++i) { color->palette[4 * i + 0] = data[pos++]; /*R*/ color->palette[4 * i + 1] = data[pos++]; /*G*/ color->palette[4 * i + 2] = data[pos++]; /*B*/ color->palette[4 * i + 3] = 255; /*alpha*/ } return 0; /* OK */ } static unsigned readChunk_tRNS(LodePNGColorMode* color, const unsigned char* data, size_t chunkLength) { unsigned i; if(color->colortype == LCT_PALETTE) { /*error: more alpha values given than there are palette entries*/ if(chunkLength > color->palettesize) return 38; for(i = 0; i != chunkLength; ++i) color->palette[4 * i + 3] = data[i]; } else if(color->colortype == LCT_GREY) { /*error: this chunk must be 2 bytes for greyscale image*/ if(chunkLength != 2) return 30; color->key_defined = 1; color->key_r = color->key_g = color->key_b = 256u * data[0] + data[1]; } else if(color->colortype == LCT_RGB) { /*error: this chunk must be 6 bytes for RGB image*/ if(chunkLength != 6) return 41; color->key_defined = 1; color->key_r = 256u * data[0] + data[1]; color->key_g = 256u * data[2] + data[3]; color->key_b = 256u * data[4] + data[5]; } else return 42; /*error: tRNS chunk not allowed for other color models*/ return 0; /* OK */ } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*background color chunk (bKGD)*/ static unsigned readChunk_bKGD(LodePNGInfo* info, const unsigned char* data, size_t chunkLength) { if(info->color.colortype == LCT_PALETTE) { /*error: this chunk must be 1 byte for indexed color image*/ if(chunkLength != 1) return 43; info->background_defined = 1; info->background_r = info->background_g = info->background_b = data[0]; } else if(info->color.colortype == LCT_GREY || info->color.colortype == LCT_GREY_ALPHA) { /*error: this chunk must be 2 bytes for greyscale image*/ if(chunkLength != 2) return 44; info->background_defined = 1; info->background_r = info->background_g = info->background_b = 256u * data[0] + data[1]; } else if(info->color.colortype == LCT_RGB || info->color.colortype == LCT_RGBA) { /*error: this chunk must be 6 bytes for greyscale image*/ if(chunkLength != 6) return 45; info->background_defined = 1; info->background_r = 256u * data[0] + data[1]; info->background_g = 256u * data[2] + data[3]; info->background_b = 256u * data[4] + data[5]; } return 0; /* OK */ } /*text chunk (tEXt)*/ static unsigned readChunk_tEXt(LodePNGInfo* info, const unsigned char* data, size_t chunkLength) { unsigned error = 0; char *key = 0, *str = 0; unsigned i; while(!error) /*not really a while loop, only used to break on error*/ { unsigned length, string2_begin; length = 0; while(length < chunkLength && data[length] != 0) ++length; /*even though it's not allowed by the standard, no error is thrown if there's no null termination char, if the text is empty*/ if(length < 1 || length > 79) CERROR_BREAK(error, 89); /*keyword too short or long*/ key = (char*)lodepng_malloc(length + 1); if(!key) CERROR_BREAK(error, 83); /*alloc fail*/ key[length] = 0; for(i = 0; i != length; ++i) key[i] = (char)data[i]; string2_begin = length + 1; /*skip keyword null terminator*/ length = chunkLength < string2_begin ? 0 : chunkLength - string2_begin; str = (char*)lodepng_malloc(length + 1); if(!str) CERROR_BREAK(error, 83); /*alloc fail*/ str[length] = 0; for(i = 0; i != length; ++i) str[i] = (char)data[string2_begin + i]; error = lodepng_add_text(info, key, str); break; } lodepng_free(key); lodepng_free(str); return error; } /*compressed text chunk (zTXt)*/ static unsigned readChunk_zTXt(LodePNGInfo* info, const LodePNGDecompressSettings* zlibsettings, const unsigned char* data, size_t chunkLength) { unsigned error = 0; unsigned i; unsigned length, string2_begin; char *key = 0; ucvector decoded; ucvector_init(&decoded); while(!error) /*not really a while loop, only used to break on error*/ { for(length = 0; length < chunkLength && data[length] != 0; ++length) ; if(length + 2 >= chunkLength) CERROR_BREAK(error, 75); /*no null termination, corrupt?*/ if(length < 1 || length > 79) CERROR_BREAK(error, 89); /*keyword too short or long*/ key = (char*)lodepng_malloc(length + 1); if(!key) CERROR_BREAK(error, 83); /*alloc fail*/ key[length] = 0; for(i = 0; i != length; ++i) key[i] = (char)data[i]; if(data[length + 1] != 0) CERROR_BREAK(error, 72); /*the 0 byte indicating compression must be 0*/ string2_begin = length + 2; if(string2_begin > chunkLength) CERROR_BREAK(error, 75); /*no null termination, corrupt?*/ length = chunkLength - string2_begin; /*will fail if zlib error, e.g. if length is too small*/ error = zlib_decompress(&decoded.data, &decoded.size, (unsigned char*)(&data[string2_begin]), length, zlibsettings); if(error) break; ucvector_push_back(&decoded, 0); error = lodepng_add_text(info, key, (char*)decoded.data); break; } lodepng_free(key); ucvector_cleanup(&decoded); return error; } /*international text chunk (iTXt)*/ static unsigned readChunk_iTXt(LodePNGInfo* info, const LodePNGDecompressSettings* zlibsettings, const unsigned char* data, size_t chunkLength) { unsigned error = 0; unsigned i; unsigned length, begin, compressed; char *key = 0, *langtag = 0, *transkey = 0; ucvector decoded; ucvector_init(&decoded); while(!error) /*not really a while loop, only used to break on error*/ { /*Quick check if the chunk length isn't too small. Even without check it'd still fail with other error checks below if it's too short. This just gives a different error code.*/ if(chunkLength < 5) CERROR_BREAK(error, 30); /*iTXt chunk too short*/ /*read the key*/ for(length = 0; length < chunkLength && data[length] != 0; ++length) ; if(length + 3 >= chunkLength) CERROR_BREAK(error, 75); /*no null termination char, corrupt?*/ if(length < 1 || length > 79) CERROR_BREAK(error, 89); /*keyword too short or long*/ key = (char*)lodepng_malloc(length + 1); if(!key) CERROR_BREAK(error, 83); /*alloc fail*/ key[length] = 0; for(i = 0; i != length; ++i) key[i] = (char)data[i]; /*read the compression method*/ compressed = data[length + 1]; if(data[length + 2] != 0) CERROR_BREAK(error, 72); /*the 0 byte indicating compression must be 0*/ /*even though it's not allowed by the standard, no error is thrown if there's no null termination char, if the text is empty for the next 3 texts*/ /*read the langtag*/ begin = length + 3; length = 0; for(i = begin; i < chunkLength && data[i] != 0; ++i) ++length; langtag = (char*)lodepng_malloc(length + 1); if(!langtag) CERROR_BREAK(error, 83); /*alloc fail*/ langtag[length] = 0; for(i = 0; i != length; ++i) langtag[i] = (char)data[begin + i]; /*read the transkey*/ begin += length + 1; length = 0; for(i = begin; i < chunkLength && data[i] != 0; ++i) ++length; transkey = (char*)lodepng_malloc(length + 1); if(!transkey) CERROR_BREAK(error, 83); /*alloc fail*/ transkey[length] = 0; for(i = 0; i != length; ++i) transkey[i] = (char)data[begin + i]; /*read the actual text*/ begin += length + 1; length = chunkLength < begin ? 0 : chunkLength - begin; if(compressed) { /*will fail if zlib error, e.g. if length is too small*/ error = zlib_decompress(&decoded.data, &decoded.size, (unsigned char*)(&data[begin]), length, zlibsettings); if(error) break; if(decoded.allocsize < decoded.size) decoded.allocsize = decoded.size; ucvector_push_back(&decoded, 0); } else { if(!ucvector_resize(&decoded, length + 1)) CERROR_BREAK(error, 83 /*alloc fail*/); decoded.data[length] = 0; for(i = 0; i != length; ++i) decoded.data[i] = data[begin + i]; } error = lodepng_add_itext(info, key, langtag, transkey, (char*)decoded.data); break; } lodepng_free(key); lodepng_free(langtag); lodepng_free(transkey); ucvector_cleanup(&decoded); return error; } static unsigned readChunk_tIME(LodePNGInfo* info, const unsigned char* data, size_t chunkLength) { if(chunkLength != 7) return 73; /*invalid tIME chunk size*/ info->time_defined = 1; info->time.year = 256u * data[0] + data[1]; info->time.month = data[2]; info->time.day = data[3]; info->time.hour = data[4]; info->time.minute = data[5]; info->time.second = data[6]; return 0; /* OK */ } static unsigned readChunk_pHYs(LodePNGInfo* info, const unsigned char* data, size_t chunkLength) { if(chunkLength != 9) return 74; /*invalid pHYs chunk size*/ info->phys_defined = 1; info->phys_x = 16777216u * data[0] + 65536u * data[1] + 256u * data[2] + data[3]; info->phys_y = 16777216u * data[4] + 65536u * data[5] + 256u * data[6] + data[7]; info->phys_unit = data[8]; return 0; /* OK */ } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*read a PNG, the result will be in the same color type as the PNG (hence "generic")*/ static void decodeGeneric(unsigned char** out, unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize) { unsigned char IEND = 0; const unsigned char* chunk; size_t i; ucvector idat; /*the data from idat chunks*/ ucvector scanlines; size_t predict; size_t numpixels; size_t outsize = 0; /*for unknown chunk order*/ unsigned unknown = 0; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS unsigned critical_pos = 1; /*1 = after IHDR, 2 = after PLTE, 3 = after IDAT*/ #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*provide some proper output values if error will happen*/ *out = 0; state->error = lodepng_inspect(w, h, state, in, insize); /*reads header and resets other parameters in state->info_png*/ if(state->error) return; numpixels = *w * *h; /*multiplication overflow*/ if(*h != 0 && numpixels / *h != *w) CERROR_RETURN(state->error, 92); /*multiplication overflow possible further below. Allows up to 2^31-1 pixel bytes with 16-bit RGBA, the rest is room for filter bytes.*/ if(numpixels > 268435455) CERROR_RETURN(state->error, 92); ucvector_init(&idat); chunk = &in[33]; /*first byte of the first chunk after the header*/ /*loop through the chunks, ignoring unknown chunks and stopping at IEND chunk. IDAT data is put at the start of the in buffer*/ while(!IEND && !state->error) { unsigned chunkLength; const unsigned char* data; /*the data in the chunk*/ /*error: size of the in buffer too small to contain next chunk*/ if((size_t)((chunk - in) + 12) > insize || chunk < in) CERROR_BREAK(state->error, 30); /*length of the data of the chunk, excluding the length bytes, chunk type and CRC bytes*/ chunkLength = lodepng_chunk_length(chunk); /*error: chunk length larger than the max PNG chunk size*/ if(chunkLength > 2147483647) CERROR_BREAK(state->error, 63); if((size_t)((chunk - in) + chunkLength + 12) > insize || (chunk + chunkLength + 12) < in) { CERROR_BREAK(state->error, 64); /*error: size of the in buffer too small to contain next chunk*/ } data = lodepng_chunk_data_const(chunk); /*IDAT chunk, containing compressed image data*/ if(lodepng_chunk_type_equals(chunk, "IDAT")) { size_t oldsize = idat.size; if(!ucvector_resize(&idat, oldsize + chunkLength)) CERROR_BREAK(state->error, 83 /*alloc fail*/); for(i = 0; i != chunkLength; ++i) idat.data[oldsize + i] = data[i]; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS critical_pos = 3; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } /*IEND chunk*/ else if(lodepng_chunk_type_equals(chunk, "IEND")) { IEND = 1; } /*palette chunk (PLTE)*/ else if(lodepng_chunk_type_equals(chunk, "PLTE")) { state->error = readChunk_PLTE(&state->info_png.color, data, chunkLength); if(state->error) break; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS critical_pos = 2; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } /*palette transparency chunk (tRNS)*/ else if(lodepng_chunk_type_equals(chunk, "tRNS")) { state->error = readChunk_tRNS(&state->info_png.color, data, chunkLength); if(state->error) break; } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*background color chunk (bKGD)*/ else if(lodepng_chunk_type_equals(chunk, "bKGD")) { state->error = readChunk_bKGD(&state->info_png, data, chunkLength); if(state->error) break; } /*text chunk (tEXt)*/ else if(lodepng_chunk_type_equals(chunk, "tEXt")) { if(state->decoder.read_text_chunks) { state->error = readChunk_tEXt(&state->info_png, data, chunkLength); if(state->error) break; } } /*compressed text chunk (zTXt)*/ else if(lodepng_chunk_type_equals(chunk, "zTXt")) { if(state->decoder.read_text_chunks) { state->error = readChunk_zTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength); if(state->error) break; } } /*international text chunk (iTXt)*/ else if(lodepng_chunk_type_equals(chunk, "iTXt")) { if(state->decoder.read_text_chunks) { state->error = readChunk_iTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength); if(state->error) break; } } else if(lodepng_chunk_type_equals(chunk, "tIME")) { state->error = readChunk_tIME(&state->info_png, data, chunkLength); if(state->error) break; } else if(lodepng_chunk_type_equals(chunk, "pHYs")) { state->error = readChunk_pHYs(&state->info_png, data, chunkLength); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ else /*it's not an implemented chunk type, so ignore it: skip over the data*/ { /*error: unknown critical chunk (5th bit of first byte of chunk type is 0)*/ if(!lodepng_chunk_ancillary(chunk)) CERROR_BREAK(state->error, 69); unknown = 1; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS if(state->decoder.remember_unknown_chunks) { state->error = lodepng_chunk_append(&state->info_png.unknown_chunks_data[critical_pos - 1], &state->info_png.unknown_chunks_size[critical_pos - 1], chunk); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } if(!state->decoder.ignore_crc && !unknown) /*check CRC if wanted, only on known chunk types*/ { if(lodepng_chunk_check_crc(chunk)) CERROR_BREAK(state->error, 57); /*invalid CRC*/ } if(!IEND) chunk = lodepng_chunk_next_const(chunk); } ucvector_init(&scanlines); /*predict output size, to allocate exact size for output buffer to avoid more dynamic allocation. If the decompressed size does not match the prediction, the image must be corrupt.*/ if(state->info_png.interlace_method == 0) { /*The extra *h is added because this are the filter bytes every scanline starts with*/ predict = lodepng_get_raw_size_idat(*w, *h, &state->info_png.color) + *h; } else { /*Adam-7 interlaced: predicted size is the sum of the 7 sub-images sizes*/ const LodePNGColorMode* color = &state->info_png.color; predict = 0; predict += lodepng_get_raw_size_idat((*w + 7) >> 3, (*h + 7) >> 3, color) + ((*h + 7) >> 3); if(*w > 4) predict += lodepng_get_raw_size_idat((*w + 3) >> 3, (*h + 7) >> 3, color) + ((*h + 7) >> 3); predict += lodepng_get_raw_size_idat((*w + 3) >> 2, (*h + 3) >> 3, color) + ((*h + 3) >> 3); if(*w > 2) predict += lodepng_get_raw_size_idat((*w + 1) >> 2, (*h + 3) >> 2, color) + ((*h + 3) >> 2); predict += lodepng_get_raw_size_idat((*w + 1) >> 1, (*h + 1) >> 2, color) + ((*h + 1) >> 2); if(*w > 1) predict += lodepng_get_raw_size_idat((*w + 0) >> 1, (*h + 1) >> 1, color) + ((*h + 1) >> 1); predict += lodepng_get_raw_size_idat((*w + 0), (*h + 0) >> 1, color) + ((*h + 0) >> 1); } if(!state->error && !ucvector_reserve(&scanlines, predict)) state->error = 83; /*alloc fail*/ if(!state->error) { state->error = zlib_decompress(&scanlines.data, &scanlines.size, idat.data, idat.size, &state->decoder.zlibsettings); if(!state->error && scanlines.size != predict) state->error = 91; /*decompressed size doesn't match prediction*/ } ucvector_cleanup(&idat); if(!state->error) { outsize = lodepng_get_raw_size(*w, *h, &state->info_png.color); *out = (unsigned char*)lodepng_malloc(outsize); if(!*out) state->error = 83; /*alloc fail*/ } if(!state->error) { for(i = 0; i < outsize; i++) (*out)[i] = 0; state->error = postProcessScanlines(*out, scanlines.data, *w, *h, &state->info_png); } ucvector_cleanup(&scanlines); } unsigned lodepng_decode(unsigned char** out, unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize) { *out = 0; decodeGeneric(out, w, h, state, in, insize); if(state->error) return state->error; if(!state->decoder.color_convert || lodepng_color_mode_equal(&state->info_raw, &state->info_png.color)) { /*same color type, no copying or converting of data needed*/ /*store the info_png color settings on the info_raw so that the info_raw still reflects what colortype the raw image has to the end user*/ if(!state->decoder.color_convert) { state->error = lodepng_color_mode_copy(&state->info_raw, &state->info_png.color); if(state->error) return state->error; } } else { /*color conversion needed; sort of copy of the data*/ unsigned char* data = *out; size_t outsize; /*TODO: check if this works according to the statement in the documentation: "The converter can convert from greyscale input color type, to 8-bit greyscale or greyscale with alpha"*/ if(!(state->info_raw.colortype == LCT_RGB || state->info_raw.colortype == LCT_RGBA) && !(state->info_raw.bitdepth == 8)) { return 56; /*unsupported color mode conversion*/ } outsize = lodepng_get_raw_size(*w, *h, &state->info_raw); *out = (unsigned char*)lodepng_malloc(outsize); if(!(*out)) { state->error = 83; /*alloc fail*/ } else state->error = lodepng_convert(*out, data, &state->info_raw, &state->info_png.color, *w, *h); lodepng_free(data); } return state->error; } unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize, LodePNGColorType colortype, unsigned bitdepth) { unsigned error; LodePNGState state; lodepng_state_init(&state); state.info_raw.colortype = colortype; state.info_raw.bitdepth = bitdepth; error = lodepng_decode(out, w, h, &state, in, insize); lodepng_state_cleanup(&state); return error; } unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) { return lodepng_decode_memory(out, w, h, in, insize, LCT_RGBA, 8); } unsigned lodepng_decode24(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) { return lodepng_decode_memory(out, w, h, in, insize, LCT_RGB, 8); } #ifdef LODEPNG_COMPILE_DISK unsigned lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename, LodePNGColorType colortype, unsigned bitdepth) { unsigned char* buffer = 0; size_t buffersize; unsigned error; error = lodepng_load_file(&buffer, &buffersize, filename); if(!error) error = lodepng_decode_memory(out, w, h, buffer, buffersize, colortype, bitdepth); lodepng_free(buffer); return error; } unsigned lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename) { return lodepng_decode_file(out, w, h, filename, LCT_RGBA, 8); } unsigned lodepng_decode24_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename) { return lodepng_decode_file(out, w, h, filename, LCT_RGB, 8); } #endif /*LODEPNG_COMPILE_DISK*/ void lodepng_decoder_settings_init(LodePNGDecoderSettings* settings) { settings->color_convert = 1; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS settings->read_text_chunks = 1; settings->remember_unknown_chunks = 0; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ settings->ignore_crc = 0; lodepng_decompress_settings_init(&settings->zlibsettings); } #endif /*LODEPNG_COMPILE_DECODER*/ #if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) void lodepng_state_init(LodePNGState* state) { #ifdef LODEPNG_COMPILE_DECODER lodepng_decoder_settings_init(&state->decoder); #endif /*LODEPNG_COMPILE_DECODER*/ #ifdef LODEPNG_COMPILE_ENCODER lodepng_encoder_settings_init(&state->encoder); #endif /*LODEPNG_COMPILE_ENCODER*/ lodepng_color_mode_init(&state->info_raw); lodepng_info_init(&state->info_png); state->error = 1; } void lodepng_state_cleanup(LodePNGState* state) { lodepng_color_mode_cleanup(&state->info_raw); lodepng_info_cleanup(&state->info_png); } void lodepng_state_copy(LodePNGState* dest, const LodePNGState* source) { lodepng_state_cleanup(dest); *dest = *source; lodepng_color_mode_init(&dest->info_raw); lodepng_info_init(&dest->info_png); dest->error = lodepng_color_mode_copy(&dest->info_raw, &source->info_raw); if(dest->error) return; dest->error = lodepng_info_copy(&dest->info_png, &source->info_png); if(dest->error) return; } #endif /* defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) */ #ifdef LODEPNG_COMPILE_ENCODER /* ////////////////////////////////////////////////////////////////////////// */ /* / PNG Encoder / */ /* ////////////////////////////////////////////////////////////////////////// */ /*chunkName must be string of 4 characters*/ static unsigned addChunk(ucvector* out, const char* chunkName, const unsigned char* data, size_t length) { CERROR_TRY_RETURN(lodepng_chunk_create(&out->data, &out->size, (unsigned)length, chunkName, data)); out->allocsize = out->size; /*fix the allocsize again*/ return 0; } static void writeSignature(ucvector* out) { /*8 bytes PNG signature, aka the magic bytes*/ ucvector_push_back(out, 137); ucvector_push_back(out, 80); ucvector_push_back(out, 78); ucvector_push_back(out, 71); ucvector_push_back(out, 13); ucvector_push_back(out, 10); ucvector_push_back(out, 26); ucvector_push_back(out, 10); } static unsigned addChunk_IHDR(ucvector* out, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth, unsigned interlace_method) { unsigned error = 0; ucvector header; ucvector_init(&header); lodepng_add32bitInt(&header, w); /*width*/ lodepng_add32bitInt(&header, h); /*height*/ ucvector_push_back(&header, (unsigned char)bitdepth); /*bit depth*/ ucvector_push_back(&header, (unsigned char)colortype); /*color type*/ ucvector_push_back(&header, 0); /*compression method*/ ucvector_push_back(&header, 0); /*filter method*/ ucvector_push_back(&header, interlace_method); /*interlace method*/ error = addChunk(out, "IHDR", header.data, header.size); ucvector_cleanup(&header); return error; } static unsigned addChunk_PLTE(ucvector* out, const LodePNGColorMode* info) { unsigned error = 0; size_t i; ucvector PLTE; ucvector_init(&PLTE); for(i = 0; i != info->palettesize * 4; ++i) { /*add all channels except alpha channel*/ if(i % 4 != 3) ucvector_push_back(&PLTE, info->palette[i]); } error = addChunk(out, "PLTE", PLTE.data, PLTE.size); ucvector_cleanup(&PLTE); return error; } static unsigned addChunk_tRNS(ucvector* out, const LodePNGColorMode* info) { unsigned error = 0; size_t i; ucvector tRNS; ucvector_init(&tRNS); if(info->colortype == LCT_PALETTE) { size_t amount = info->palettesize; /*the tail of palette values that all have 255 as alpha, does not have to be encoded*/ for(i = info->palettesize; i != 0; --i) { if(info->palette[4 * (i - 1) + 3] == 255) --amount; else break; } /*add only alpha channel*/ for(i = 0; i != amount; ++i) ucvector_push_back(&tRNS, info->palette[4 * i + 3]); } else if(info->colortype == LCT_GREY) { if(info->key_defined) { ucvector_push_back(&tRNS, (unsigned char)(info->key_r >> 8)); ucvector_push_back(&tRNS, (unsigned char)(info->key_r & 255)); } } else if(info->colortype == LCT_RGB) { if(info->key_defined) { ucvector_push_back(&tRNS, (unsigned char)(info->key_r >> 8)); ucvector_push_back(&tRNS, (unsigned char)(info->key_r & 255)); ucvector_push_back(&tRNS, (unsigned char)(info->key_g >> 8)); ucvector_push_back(&tRNS, (unsigned char)(info->key_g & 255)); ucvector_push_back(&tRNS, (unsigned char)(info->key_b >> 8)); ucvector_push_back(&tRNS, (unsigned char)(info->key_b & 255)); } } error = addChunk(out, "tRNS", tRNS.data, tRNS.size); ucvector_cleanup(&tRNS); return error; } static unsigned addChunk_IDAT(ucvector* out, const unsigned char* data, size_t datasize, LodePNGCompressSettings* zlibsettings) { ucvector zlibdata; unsigned error = 0; /*compress with the Zlib compressor*/ ucvector_init(&zlibdata); error = zlib_compress(&zlibdata.data, &zlibdata.size, data, datasize, zlibsettings); if(!error) error = addChunk(out, "IDAT", zlibdata.data, zlibdata.size); ucvector_cleanup(&zlibdata); return error; } static unsigned addChunk_IEND(ucvector* out) { unsigned error = 0; error = addChunk(out, "IEND", 0, 0); return error; } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS static unsigned addChunk_tEXt(ucvector* out, const char* keyword, const char* textstring) { unsigned error = 0; size_t i; ucvector text; ucvector_init(&text); for(i = 0; keyword[i] != 0; ++i) ucvector_push_back(&text, (unsigned char)keyword[i]); if(i < 1 || i > 79) return 89; /*error: invalid keyword size*/ ucvector_push_back(&text, 0); /*0 termination char*/ for(i = 0; textstring[i] != 0; ++i) ucvector_push_back(&text, (unsigned char)textstring[i]); error = addChunk(out, "tEXt", text.data, text.size); ucvector_cleanup(&text); return error; } static unsigned addChunk_zTXt(ucvector* out, const char* keyword, const char* textstring, LodePNGCompressSettings* zlibsettings) { unsigned error = 0; ucvector data, compressed; size_t i, textsize = strlen(textstring); ucvector_init(&data); ucvector_init(&compressed); for(i = 0; keyword[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)keyword[i]); if(i < 1 || i > 79) return 89; /*error: invalid keyword size*/ ucvector_push_back(&data, 0); /*0 termination char*/ ucvector_push_back(&data, 0); /*compression method: 0*/ error = zlib_compress(&compressed.data, &compressed.size, (unsigned char*)textstring, textsize, zlibsettings); if(!error) { for(i = 0; i != compressed.size; ++i) ucvector_push_back(&data, compressed.data[i]); error = addChunk(out, "zTXt", data.data, data.size); } ucvector_cleanup(&compressed); ucvector_cleanup(&data); return error; } static unsigned addChunk_iTXt(ucvector* out, unsigned compressed, const char* keyword, const char* langtag, const char* transkey, const char* textstring, LodePNGCompressSettings* zlibsettings) { unsigned error = 0; ucvector data; size_t i, textsize = strlen(textstring); ucvector_init(&data); for(i = 0; keyword[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)keyword[i]); if(i < 1 || i > 79) return 89; /*error: invalid keyword size*/ ucvector_push_back(&data, 0); /*null termination char*/ ucvector_push_back(&data, compressed ? 1 : 0); /*compression flag*/ ucvector_push_back(&data, 0); /*compression method*/ for(i = 0; langtag[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)langtag[i]); ucvector_push_back(&data, 0); /*null termination char*/ for(i = 0; transkey[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)transkey[i]); ucvector_push_back(&data, 0); /*null termination char*/ if(compressed) { ucvector compressed_data; ucvector_init(&compressed_data); error = zlib_compress(&compressed_data.data, &compressed_data.size, (unsigned char*)textstring, textsize, zlibsettings); if(!error) { for(i = 0; i != compressed_data.size; ++i) ucvector_push_back(&data, compressed_data.data[i]); } ucvector_cleanup(&compressed_data); } else /*not compressed*/ { for(i = 0; textstring[i] != 0; ++i) ucvector_push_back(&data, (unsigned char)textstring[i]); } if(!error) error = addChunk(out, "iTXt", data.data, data.size); ucvector_cleanup(&data); return error; } static unsigned addChunk_bKGD(ucvector* out, const LodePNGInfo* info) { unsigned error = 0; ucvector bKGD; ucvector_init(&bKGD); if(info->color.colortype == LCT_GREY || info->color.colortype == LCT_GREY_ALPHA) { ucvector_push_back(&bKGD, (unsigned char)(info->background_r >> 8)); ucvector_push_back(&bKGD, (unsigned char)(info->background_r & 255)); } else if(info->color.colortype == LCT_RGB || info->color.colortype == LCT_RGBA) { ucvector_push_back(&bKGD, (unsigned char)(info->background_r >> 8)); ucvector_push_back(&bKGD, (unsigned char)(info->background_r & 255)); ucvector_push_back(&bKGD, (unsigned char)(info->background_g >> 8)); ucvector_push_back(&bKGD, (unsigned char)(info->background_g & 255)); ucvector_push_back(&bKGD, (unsigned char)(info->background_b >> 8)); ucvector_push_back(&bKGD, (unsigned char)(info->background_b & 255)); } else if(info->color.colortype == LCT_PALETTE) { ucvector_push_back(&bKGD, (unsigned char)(info->background_r & 255)); /*palette index*/ } error = addChunk(out, "bKGD", bKGD.data, bKGD.size); ucvector_cleanup(&bKGD); return error; } static unsigned addChunk_tIME(ucvector* out, const LodePNGTime* time) { unsigned error = 0; unsigned char* data = (unsigned char*)lodepng_malloc(7); if(!data) return 83; /*alloc fail*/ data[0] = (unsigned char)(time->year >> 8); data[1] = (unsigned char)(time->year & 255); data[2] = (unsigned char)time->month; data[3] = (unsigned char)time->day; data[4] = (unsigned char)time->hour; data[5] = (unsigned char)time->minute; data[6] = (unsigned char)time->second; error = addChunk(out, "tIME", data, 7); lodepng_free(data); return error; } static unsigned addChunk_pHYs(ucvector* out, const LodePNGInfo* info) { unsigned error = 0; ucvector data; ucvector_init(&data); lodepng_add32bitInt(&data, info->phys_x); lodepng_add32bitInt(&data, info->phys_y); ucvector_push_back(&data, info->phys_unit); error = addChunk(out, "pHYs", data.data, data.size); ucvector_cleanup(&data); return error; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ static void filterScanline(unsigned char* out, const unsigned char* scanline, const unsigned char* prevline, size_t length, size_t bytewidth, unsigned char filterType) { size_t i; switch(filterType) { case 0: /*None*/ for(i = 0; i != length; ++i) out[i] = scanline[i]; break; case 1: /*Sub*/ for(i = 0; i != bytewidth; ++i) out[i] = scanline[i]; for(i = bytewidth; i < length; ++i) out[i] = scanline[i] - scanline[i - bytewidth]; break; case 2: /*Up*/ if(prevline) { for(i = 0; i != length; ++i) out[i] = scanline[i] - prevline[i]; } else { for(i = 0; i != length; ++i) out[i] = scanline[i]; } break; case 3: /*Average*/ if(prevline) { for(i = 0; i != bytewidth; ++i) out[i] = scanline[i] - (prevline[i] >> 1); for(i = bytewidth; i < length; ++i) out[i] = scanline[i] - ((scanline[i - bytewidth] + prevline[i]) >> 1); } else { for(i = 0; i != bytewidth; ++i) out[i] = scanline[i]; for(i = bytewidth; i < length; ++i) out[i] = scanline[i] - (scanline[i - bytewidth] >> 1); } break; case 4: /*Paeth*/ if(prevline) { /*paethPredictor(0, prevline[i], 0) is always prevline[i]*/ for(i = 0; i != bytewidth; ++i) out[i] = (scanline[i] - prevline[i]); for(i = bytewidth; i < length; ++i) { out[i] = (scanline[i] - paethPredictor(scanline[i - bytewidth], prevline[i], prevline[i - bytewidth])); } } else { for(i = 0; i != bytewidth; ++i) out[i] = scanline[i]; /*paethPredictor(scanline[i - bytewidth], 0, 0) is always scanline[i - bytewidth]*/ for(i = bytewidth; i < length; ++i) out[i] = (scanline[i] - scanline[i - bytewidth]); } break; default: return; /*unexisting filter type given*/ } } /* log2 approximation. A slight bit faster than std::log. */ static float flog2(float f) { float result = 0; while(f > 32) { result += 4; f /= 16; } while(f > 2) { ++result; f /= 2; } return result + 1.442695f * (f * f * f / 3 - 3 * f * f / 2 + 3 * f - 1.83333f); } static unsigned filter(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, const LodePNGColorMode* info, const LodePNGEncoderSettings* settings) { /* For PNG filter method 0 out must be a buffer with as size: h + (w * h * bpp + 7) / 8, because there are the scanlines with 1 extra byte per scanline */ unsigned bpp = lodepng_get_bpp(info); /*the width of a scanline in bytes, not including the filter type*/ size_t linebytes = (w * bpp + 7) / 8; /*bytewidth is used for filtering, is 1 when bpp < 8, number of bytes per pixel otherwise*/ size_t bytewidth = (bpp + 7) / 8; const unsigned char* prevline = 0; unsigned x, y; unsigned error = 0; LodePNGFilterStrategy strategy = settings->filter_strategy; /* There is a heuristic called the minimum sum of absolute differences heuristic, suggested by the PNG standard: * If the image type is Palette, or the bit depth is smaller than 8, then do not filter the image (i.e. use fixed filtering, with the filter None). * (The other case) If the image type is Grayscale or RGB (with or without Alpha), and the bit depth is not smaller than 8, then use adaptive filtering heuristic as follows: independently for each row, apply all five filters and select the filter that produces the smallest sum of absolute values per row. This heuristic is used if filter strategy is LFS_MINSUM and filter_palette_zero is true. If filter_palette_zero is true and filter_strategy is not LFS_MINSUM, the above heuristic is followed, but for "the other case", whatever strategy filter_strategy is set to instead of the minimum sum heuristic is used. */ if(settings->filter_palette_zero && (info->colortype == LCT_PALETTE || info->bitdepth < 8)) strategy = LFS_ZERO; if(bpp == 0) return 31; /*error: invalid color type*/ if(strategy == LFS_ZERO) { for(y = 0; y != h; ++y) { size_t outindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/ size_t inindex = linebytes * y; out[outindex] = 0; /*filter type byte*/ filterScanline(&out[outindex + 1], &in[inindex], prevline, linebytes, bytewidth, 0); prevline = &in[inindex]; } } else if(strategy == LFS_MINSUM) { /*adaptive filtering*/ size_t sum[5]; unsigned char* attempt[5]; /*five filtering attempts, one for each filter type*/ size_t smallest = 0; unsigned char type, bestType = 0; for(type = 0; type != 5; ++type) { attempt[type] = (unsigned char*)lodepng_malloc(linebytes); if(!attempt[type]) return 83; /*alloc fail*/ } if(!error) { for(y = 0; y != h; ++y) { /*try the 5 filter types*/ for(type = 0; type != 5; ++type) { filterScanline(attempt[type], &in[y * linebytes], prevline, linebytes, bytewidth, type); /*calculate the sum of the result*/ sum[type] = 0; if(type == 0) { for(x = 0; x != linebytes; ++x) sum[type] += (unsigned char)(attempt[type][x]); } else { for(x = 0; x != linebytes; ++x) { /*For differences, each byte should be treated as signed, values above 127 are negative (converted to signed char). Filtertype 0 isn't a difference though, so use unsigned there. This means filtertype 0 is almost never chosen, but that is justified.*/ unsigned char s = attempt[type][x]; sum[type] += s < 128 ? s : (255U - s); } } /*check if this is smallest sum (or if type == 0 it's the first case so always store the values)*/ if(type == 0 || sum[type] < smallest) { bestType = type; smallest = sum[type]; } } prevline = &in[y * linebytes]; /*now fill the out values*/ out[y * (linebytes + 1)] = bestType; /*the first byte of a scanline will be the filter type*/ for(x = 0; x != linebytes; ++x) out[y * (linebytes + 1) + 1 + x] = attempt[bestType][x]; } } for(type = 0; type != 5; ++type) lodepng_free(attempt[type]); } else if(strategy == LFS_ENTROPY) { float sum[5]; unsigned char* attempt[5]; /*five filtering attempts, one for each filter type*/ float smallest = 0; unsigned type, bestType = 0; unsigned count[256]; for(type = 0; type != 5; ++type) { attempt[type] = (unsigned char*)lodepng_malloc(linebytes); if(!attempt[type]) return 83; /*alloc fail*/ } for(y = 0; y != h; ++y) { /*try the 5 filter types*/ for(type = 0; type != 5; ++type) { filterScanline(attempt[type], &in[y * linebytes], prevline, linebytes, bytewidth, type); for(x = 0; x != 256; ++x) count[x] = 0; for(x = 0; x != linebytes; ++x) ++count[attempt[type][x]]; ++count[type]; /*the filter type itself is part of the scanline*/ sum[type] = 0; for(x = 0; x != 256; ++x) { float p = count[x] / (float)(linebytes + 1); sum[type] += count[x] == 0 ? 0 : flog2(1 / p) * p; } /*check if this is smallest sum (or if type == 0 it's the first case so always store the values)*/ if(type == 0 || sum[type] < smallest) { bestType = type; smallest = sum[type]; } } prevline = &in[y * linebytes]; /*now fill the out values*/ out[y * (linebytes + 1)] = bestType; /*the first byte of a scanline will be the filter type*/ for(x = 0; x != linebytes; ++x) out[y * (linebytes + 1) + 1 + x] = attempt[bestType][x]; } for(type = 0; type != 5; ++type) lodepng_free(attempt[type]); } else if(strategy == LFS_PREDEFINED) { for(y = 0; y != h; ++y) { size_t outindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/ size_t inindex = linebytes * y; unsigned char type = settings->predefined_filters[y]; out[outindex] = type; /*filter type byte*/ filterScanline(&out[outindex + 1], &in[inindex], prevline, linebytes, bytewidth, type); prevline = &in[inindex]; } } else if(strategy == LFS_BRUTE_FORCE) { /*brute force filter chooser. deflate the scanline after every filter attempt to see which one deflates best. This is very slow and gives only slightly smaller, sometimes even larger, result*/ size_t size[5]; unsigned char* attempt[5]; /*five filtering attempts, one for each filter type*/ size_t smallest = 0; unsigned type = 0, bestType = 0; unsigned char* dummy; LodePNGCompressSettings zlibsettings = settings->zlibsettings; /*use fixed tree on the attempts so that the tree is not adapted to the filtertype on purpose, to simulate the true case where the tree is the same for the whole image. Sometimes it gives better result with dynamic tree anyway. Using the fixed tree sometimes gives worse, but in rare cases better compression. It does make this a bit less slow, so it's worth doing this.*/ zlibsettings.btype = 1; /*a custom encoder likely doesn't read the btype setting and is optimized for complete PNG images only, so disable it*/ zlibsettings.custom_zlib = 0; zlibsettings.custom_deflate = 0; for(type = 0; type != 5; ++type) { attempt[type] = (unsigned char*)lodepng_malloc(linebytes); if(!attempt[type]) return 83; /*alloc fail*/ } for(y = 0; y != h; ++y) /*try the 5 filter types*/ { for(type = 0; type != 5; ++type) { unsigned testsize = linebytes; /*if(testsize > 8) testsize /= 8;*/ /*it already works good enough by testing a part of the row*/ filterScanline(attempt[type], &in[y * linebytes], prevline, linebytes, bytewidth, type); size[type] = 0; dummy = 0; zlib_compress(&dummy, &size[type], attempt[type], testsize, &zlibsettings); lodepng_free(dummy); /*check if this is smallest size (or if type == 0 it's the first case so always store the values)*/ if(type == 0 || size[type] < smallest) { bestType = type; smallest = size[type]; } } prevline = &in[y * linebytes]; out[y * (linebytes + 1)] = bestType; /*the first byte of a scanline will be the filter type*/ for(x = 0; x != linebytes; ++x) out[y * (linebytes + 1) + 1 + x] = attempt[bestType][x]; } for(type = 0; type != 5; ++type) lodepng_free(attempt[type]); } else return 88; /* unknown filter strategy */ return error; } static void addPaddingBits(unsigned char* out, const unsigned char* in, size_t olinebits, size_t ilinebits, unsigned h) { /*The opposite of the removePaddingBits function olinebits must be >= ilinebits*/ unsigned y; size_t diff = olinebits - ilinebits; size_t obp = 0, ibp = 0; /*bit pointers*/ for(y = 0; y != h; ++y) { size_t x; for(x = 0; x < ilinebits; ++x) { unsigned char bit = readBitFromReversedStream(&ibp, in); setBitOfReversedStream(&obp, out, bit); } /*obp += diff; --> no, fill in some value in the padding bits too, to avoid "Use of uninitialised value of size ###" warning from valgrind*/ for(x = 0; x != diff; ++x) setBitOfReversedStream(&obp, out, 0); } } /* in: non-interlaced image with size w*h out: the same pixels, but re-ordered according to PNG's Adam7 interlacing, with no padding bits between scanlines, but between reduced images so that each reduced image starts at a byte. bpp: bits per pixel there are no padding bits, not between scanlines, not between reduced images in has the following size in bits: w * h * bpp. out is possibly bigger due to padding bits between reduced images NOTE: comments about padding bits are only relevant if bpp < 8 */ static void Adam7_interlace(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, unsigned bpp) { unsigned passw[7], passh[7]; size_t filter_passstart[8], padded_passstart[8], passstart[8]; unsigned i; Adam7_getpassvalues(passw, passh, filter_passstart, padded_passstart, passstart, w, h, bpp); if(bpp >= 8) { for(i = 0; i != 7; ++i) { unsigned x, y, b; size_t bytewidth = bpp / 8; for(y = 0; y < passh[i]; ++y) for(x = 0; x < passw[i]; ++x) { size_t pixelinstart = ((ADAM7_IY[i] + y * ADAM7_DY[i]) * w + ADAM7_IX[i] + x * ADAM7_DX[i]) * bytewidth; size_t pixeloutstart = passstart[i] + (y * passw[i] + x) * bytewidth; for(b = 0; b < bytewidth; ++b) { out[pixeloutstart + b] = in[pixelinstart + b]; } } } } else /*bpp < 8: Adam7 with pixels < 8 bit is a bit trickier: with bit pointers*/ { for(i = 0; i != 7; ++i) { unsigned x, y, b; unsigned ilinebits = bpp * passw[i]; unsigned olinebits = bpp * w; size_t obp, ibp; /*bit pointers (for out and in buffer)*/ for(y = 0; y < passh[i]; ++y) for(x = 0; x < passw[i]; ++x) { ibp = (ADAM7_IY[i] + y * ADAM7_DY[i]) * olinebits + (ADAM7_IX[i] + x * ADAM7_DX[i]) * bpp; obp = (8 * passstart[i]) + (y * ilinebits + x * bpp); for(b = 0; b < bpp; ++b) { unsigned char bit = readBitFromReversedStream(&ibp, in); setBitOfReversedStream(&obp, out, bit); } } } } } /*out must be buffer big enough to contain uncompressed IDAT chunk data, and in must contain the full image. return value is error**/ static unsigned preProcessScanlines(unsigned char** out, size_t* outsize, const unsigned char* in, unsigned w, unsigned h, const LodePNGInfo* info_png, const LodePNGEncoderSettings* settings) { /* This function converts the pure 2D image with the PNG's colortype, into filtered-padded-interlaced data. Steps: *) if no Adam7: 1) add padding bits (= posible extra bits per scanline if bpp < 8) 2) filter *) if adam7: 1) Adam7_interlace 2) 7x add padding bits 3) 7x filter */ unsigned bpp = lodepng_get_bpp(&info_png->color); unsigned error = 0; if(info_png->interlace_method == 0) { *outsize = h + (h * ((w * bpp + 7) / 8)); /*image size plus an extra byte per scanline + possible padding bits*/ *out = (unsigned char*)lodepng_malloc(*outsize); if(!(*out) && (*outsize)) error = 83; /*alloc fail*/ if(!error) { /*non multiple of 8 bits per scanline, padding bits needed per scanline*/ if(bpp < 8 && w * bpp != ((w * bpp + 7) / 8) * 8) { unsigned char* padded = (unsigned char*)lodepng_malloc(h * ((w * bpp + 7) / 8)); if(!padded) error = 83; /*alloc fail*/ if(!error) { addPaddingBits(padded, in, ((w * bpp + 7) / 8) * 8, w * bpp, h); error = filter(*out, padded, w, h, &info_png->color, settings); } lodepng_free(padded); } else { /*we can immediately filter into the out buffer, no other steps needed*/ error = filter(*out, in, w, h, &info_png->color, settings); } } } else /*interlace_method is 1 (Adam7)*/ { unsigned passw[7], passh[7]; size_t filter_passstart[8], padded_passstart[8], passstart[8]; unsigned char* adam7; Adam7_getpassvalues(passw, passh, filter_passstart, padded_passstart, passstart, w, h, bpp); *outsize = filter_passstart[7]; /*image size plus an extra byte per scanline + possible padding bits*/ *out = (unsigned char*)lodepng_malloc(*outsize); if(!(*out)) error = 83; /*alloc fail*/ adam7 = (unsigned char*)lodepng_malloc(passstart[7]); if(!adam7 && passstart[7]) error = 83; /*alloc fail*/ if(!error) { unsigned i; Adam7_interlace(adam7, in, w, h, bpp); for(i = 0; i != 7; ++i) { if(bpp < 8) { unsigned char* padded = (unsigned char*)lodepng_malloc(padded_passstart[i + 1] - padded_passstart[i]); if(!padded) ERROR_BREAK(83); /*alloc fail*/ addPaddingBits(padded, &adam7[passstart[i]], ((passw[i] * bpp + 7) / 8) * 8, passw[i] * bpp, passh[i]); error = filter(&(*out)[filter_passstart[i]], padded, passw[i], passh[i], &info_png->color, settings); lodepng_free(padded); } else { error = filter(&(*out)[filter_passstart[i]], &adam7[padded_passstart[i]], passw[i], passh[i], &info_png->color, settings); } if(error) break; } } lodepng_free(adam7); } return error; } /* palette must have 4 * palettesize bytes allocated, and given in format RGBARGBARGBARGBA... returns 0 if the palette is opaque, returns 1 if the palette has a single color with alpha 0 ==> color key returns 2 if the palette is semi-translucent. */ static unsigned getPaletteTranslucency(const unsigned char* palette, size_t palettesize) { size_t i; unsigned key = 0; unsigned r = 0, g = 0, b = 0; /*the value of the color with alpha 0, so long as color keying is possible*/ for(i = 0; i != palettesize; ++i) { if(!key && palette[4 * i + 3] == 0) { r = palette[4 * i + 0]; g = palette[4 * i + 1]; b = palette[4 * i + 2]; key = 1; i = (size_t)(-1); /*restart from beginning, to detect earlier opaque colors with key's value*/ } else if(palette[4 * i + 3] != 255) return 2; /*when key, no opaque RGB may have key's RGB*/ else if(key && r == palette[i * 4 + 0] && g == palette[i * 4 + 1] && b == palette[i * 4 + 2]) return 2; } return key; } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS static unsigned addUnknownChunks(ucvector* out, unsigned char* data, size_t datasize) { unsigned char* inchunk = data; while((size_t)(inchunk - data) < datasize) { CERROR_TRY_RETURN(lodepng_chunk_append(&out->data, &out->size, inchunk)); out->allocsize = out->size; /*fix the allocsize again*/ inchunk = lodepng_chunk_next(inchunk); } return 0; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ unsigned lodepng_encode(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h, LodePNGState* state) { LodePNGInfo info; ucvector outv; unsigned char* data = 0; /*uncompressed version of the IDAT chunk data*/ size_t datasize = 0; /*provide some proper output values if error will happen*/ *out = 0; *outsize = 0; state->error = 0; lodepng_info_init(&info); lodepng_info_copy(&info, &state->info_png); if((info.color.colortype == LCT_PALETTE || state->encoder.force_palette) && (info.color.palettesize == 0 || info.color.palettesize > 256)) { state->error = 68; /*invalid palette size, it is only allowed to be 1-256*/ return state->error; } if(state->encoder.auto_convert) { state->error = lodepng_auto_choose_color(&info.color, image, w, h, &state->info_raw); } if(state->error) return state->error; if(state->encoder.zlibsettings.btype > 2) { CERROR_RETURN_ERROR(state->error, 61); /*error: unexisting btype*/ } if(state->info_png.interlace_method > 1) { CERROR_RETURN_ERROR(state->error, 71); /*error: unexisting interlace mode*/ } state->error = checkColorValidity(info.color.colortype, info.color.bitdepth); if(state->error) return state->error; /*error: unexisting color type given*/ state->error = checkColorValidity(state->info_raw.colortype, state->info_raw.bitdepth); if(state->error) return state->error; /*error: unexisting color type given*/ if(!lodepng_color_mode_equal(&state->info_raw, &info.color)) { unsigned char* converted; size_t size = (w * h * (size_t)lodepng_get_bpp(&info.color) + 7) / 8; converted = (unsigned char*)lodepng_malloc(size); if(!converted && size) state->error = 83; /*alloc fail*/ if(!state->error) { state->error = lodepng_convert(converted, image, &info.color, &state->info_raw, w, h); } if(!state->error) preProcessScanlines(&data, &datasize, converted, w, h, &info, &state->encoder); lodepng_free(converted); } else preProcessScanlines(&data, &datasize, image, w, h, &info, &state->encoder); ucvector_init(&outv); while(!state->error) /*while only executed once, to break on error*/ { #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS size_t i; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*write signature and chunks*/ writeSignature(&outv); /*IHDR*/ addChunk_IHDR(&outv, w, h, info.color.colortype, info.color.bitdepth, info.interlace_method); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*unknown chunks between IHDR and PLTE*/ if(info.unknown_chunks_data[0]) { state->error = addUnknownChunks(&outv, info.unknown_chunks_data[0], info.unknown_chunks_size[0]); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*PLTE*/ if(info.color.colortype == LCT_PALETTE) { addChunk_PLTE(&outv, &info.color); } if(state->encoder.force_palette && (info.color.colortype == LCT_RGB || info.color.colortype == LCT_RGBA)) { addChunk_PLTE(&outv, &info.color); } /*tRNS*/ if(info.color.colortype == LCT_PALETTE && getPaletteTranslucency(info.color.palette, info.color.palettesize) != 0) { addChunk_tRNS(&outv, &info.color); } if((info.color.colortype == LCT_GREY || info.color.colortype == LCT_RGB) && info.color.key_defined) { addChunk_tRNS(&outv, &info.color); } #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*bKGD (must come between PLTE and the IDAt chunks*/ if(info.background_defined) addChunk_bKGD(&outv, &info); /*pHYs (must come before the IDAT chunks)*/ if(info.phys_defined) addChunk_pHYs(&outv, &info); /*unknown chunks between PLTE and IDAT*/ if(info.unknown_chunks_data[1]) { state->error = addUnknownChunks(&outv, info.unknown_chunks_data[1], info.unknown_chunks_size[1]); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ /*IDAT (multiple IDAT chunks must be consecutive)*/ state->error = addChunk_IDAT(&outv, data, datasize, &state->encoder.zlibsettings); if(state->error) break; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS /*tIME*/ if(info.time_defined) addChunk_tIME(&outv, &info.time); /*tEXt and/or zTXt*/ for(i = 0; i != info.text_num; ++i) { if(strlen(info.text_keys[i]) > 79) { state->error = 66; /*text chunk too large*/ break; } if(strlen(info.text_keys[i]) < 1) { state->error = 67; /*text chunk too small*/ break; } if(state->encoder.text_compression) { addChunk_zTXt(&outv, info.text_keys[i], info.text_strings[i], &state->encoder.zlibsettings); } else { addChunk_tEXt(&outv, info.text_keys[i], info.text_strings[i]); } } /*LodePNG version id in text chunk*/ if(state->encoder.add_id) { unsigned alread_added_id_text = 0; for(i = 0; i != info.text_num; ++i) { if(!strcmp(info.text_keys[i], "LodePNG")) { alread_added_id_text = 1; break; } } if(alread_added_id_text == 0) { addChunk_tEXt(&outv, "LodePNG", LODEPNG_VERSION_STRING); /*it's shorter as tEXt than as zTXt chunk*/ } } /*iTXt*/ for(i = 0; i != info.itext_num; ++i) { if(strlen(info.itext_keys[i]) > 79) { state->error = 66; /*text chunk too large*/ break; } if(strlen(info.itext_keys[i]) < 1) { state->error = 67; /*text chunk too small*/ break; } addChunk_iTXt(&outv, state->encoder.text_compression, info.itext_keys[i], info.itext_langtags[i], info.itext_transkeys[i], info.itext_strings[i], &state->encoder.zlibsettings); } /*unknown chunks between IDAT and IEND*/ if(info.unknown_chunks_data[2]) { state->error = addUnknownChunks(&outv, info.unknown_chunks_data[2], info.unknown_chunks_size[2]); if(state->error) break; } #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ addChunk_IEND(&outv); break; /*this isn't really a while loop; no error happened so break out now!*/ } lodepng_info_cleanup(&info); lodepng_free(data); /*instead of cleaning the vector up, give it to the output*/ *out = outv.data; *outsize = outv.size; return state->error; } unsigned lodepng_encode_memory(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { unsigned error; LodePNGState state; lodepng_state_init(&state); state.info_raw.colortype = colortype; state.info_raw.bitdepth = bitdepth; state.info_png.color.colortype = colortype; state.info_png.color.bitdepth = bitdepth; lodepng_encode(out, outsize, image, w, h, &state); error = state.error; lodepng_state_cleanup(&state); return error; } unsigned lodepng_encode32(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h) { return lodepng_encode_memory(out, outsize, image, w, h, LCT_RGBA, 8); } unsigned lodepng_encode24(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h) { return lodepng_encode_memory(out, outsize, image, w, h, LCT_RGB, 8); } #ifdef LODEPNG_COMPILE_DISK unsigned lodepng_encode_file(const char* filename, const unsigned char* image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { unsigned char* buffer; size_t buffersize; unsigned error = lodepng_encode_memory(&buffer, &buffersize, image, w, h, colortype, bitdepth); if(!error) error = lodepng_save_file(buffer, buffersize, filename); lodepng_free(buffer); return error; } unsigned lodepng_encode32_file(const char* filename, const unsigned char* image, unsigned w, unsigned h) { return lodepng_encode_file(filename, image, w, h, LCT_RGBA, 8); } unsigned lodepng_encode24_file(const char* filename, const unsigned char* image, unsigned w, unsigned h) { return lodepng_encode_file(filename, image, w, h, LCT_RGB, 8); } #endif /*LODEPNG_COMPILE_DISK*/ void lodepng_encoder_settings_init(LodePNGEncoderSettings* settings) { lodepng_compress_settings_init(&settings->zlibsettings); settings->filter_palette_zero = 1; settings->filter_strategy = LFS_MINSUM; settings->auto_convert = 1; settings->force_palette = 0; settings->predefined_filters = 0; #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS settings->add_id = 0; settings->text_compression = 1; #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ } #endif /*LODEPNG_COMPILE_ENCODER*/ #endif /*LODEPNG_COMPILE_PNG*/ #ifdef LODEPNG_COMPILE_ERROR_TEXT /* This returns the description of a numerical error code in English. This is also the documentation of all the error codes. */ const char* lodepng_error_text(unsigned code) { switch(code) { case 0: return "no error, everything went ok"; case 1: return "nothing done yet"; /*the Encoder/Decoder has done nothing yet, error checking makes no sense yet*/ case 10: return "end of input memory reached without huffman end code"; /*while huffman decoding*/ case 11: return "error in code tree made it jump outside of huffman tree"; /*while huffman decoding*/ case 13: return "problem while processing dynamic deflate block"; case 14: return "problem while processing dynamic deflate block"; case 15: return "problem while processing dynamic deflate block"; case 16: return "unexisting code while processing dynamic deflate block"; case 17: return "end of out buffer memory reached while inflating"; case 18: return "invalid distance code while inflating"; case 19: return "end of out buffer memory reached while inflating"; case 20: return "invalid deflate block BTYPE encountered while decoding"; case 21: return "NLEN is not ones complement of LEN in a deflate block"; /*end of out buffer memory reached while inflating: This can happen if the inflated deflate data is longer than the amount of bytes required to fill up all the pixels of the image, given the color depth and image dimensions. Something that doesn't happen in a normal, well encoded, PNG image.*/ case 22: return "end of out buffer memory reached while inflating"; case 23: return "end of in buffer memory reached while inflating"; case 24: return "invalid FCHECK in zlib header"; case 25: return "invalid compression method in zlib header"; case 26: return "FDICT encountered in zlib header while it's not used for PNG"; case 27: return "PNG file is smaller than a PNG header"; /*Checks the magic file header, the first 8 bytes of the PNG file*/ case 28: return "incorrect PNG signature, it's no PNG or corrupted"; case 29: return "first chunk is not the header chunk"; case 30: return "chunk length too large, chunk broken off at end of file"; case 31: return "illegal PNG color type or bpp"; case 32: return "illegal PNG compression method"; case 33: return "illegal PNG filter method"; case 34: return "illegal PNG interlace method"; case 35: return "chunk length of a chunk is too large or the chunk too small"; case 36: return "illegal PNG filter type encountered"; case 37: return "illegal bit depth for this color type given"; case 38: return "the palette is too big"; /*more than 256 colors*/ case 39: return "more palette alpha values given in tRNS chunk than there are colors in the palette"; case 40: return "tRNS chunk has wrong size for greyscale image"; case 41: return "tRNS chunk has wrong size for RGB image"; case 42: return "tRNS chunk appeared while it was not allowed for this color type"; case 43: return "bKGD chunk has wrong size for palette image"; case 44: return "bKGD chunk has wrong size for greyscale image"; case 45: return "bKGD chunk has wrong size for RGB image"; case 48: return "empty input buffer given to decoder. Maybe caused by non-existing file?"; case 49: return "jumped past memory while generating dynamic huffman tree"; case 50: return "jumped past memory while generating dynamic huffman tree"; case 51: return "jumped past memory while inflating huffman block"; case 52: return "jumped past memory while inflating"; case 53: return "size of zlib data too small"; case 54: return "repeat symbol in tree while there was no value symbol yet"; /*jumped past tree while generating huffman tree, this could be when the tree will have more leaves than symbols after generating it out of the given lenghts. They call this an oversubscribed dynamic bit lengths tree in zlib.*/ case 55: return "jumped past tree while generating huffman tree"; case 56: return "given output image colortype or bitdepth not supported for color conversion"; case 57: return "invalid CRC encountered (checking CRC can be disabled)"; case 58: return "invalid ADLER32 encountered (checking ADLER32 can be disabled)"; case 59: return "requested color conversion not supported"; case 60: return "invalid window size given in the settings of the encoder (must be 0-32768)"; case 61: return "invalid BTYPE given in the settings of the encoder (only 0, 1 and 2 are allowed)"; /*LodePNG leaves the choice of RGB to greyscale conversion formula to the user.*/ case 62: return "conversion from color to greyscale not supported"; case 63: return "length of a chunk too long, max allowed for PNG is 2147483647 bytes per chunk"; /*(2^31-1)*/ /*this would result in the inability of a deflated block to ever contain an end code. It must be at least 1.*/ case 64: return "the length of the END symbol 256 in the Huffman tree is 0"; case 66: return "the length of a text chunk keyword given to the encoder is longer than the maximum of 79 bytes"; case 67: return "the length of a text chunk keyword given to the encoder is smaller than the minimum of 1 byte"; case 68: return "tried to encode a PLTE chunk with a palette that has less than 1 or more than 256 colors"; case 69: return "unknown chunk type with 'critical' flag encountered by the decoder"; case 71: return "unexisting interlace mode given to encoder (must be 0 or 1)"; case 72: return "while decoding, unexisting compression method encountering in zTXt or iTXt chunk (it must be 0)"; case 73: return "invalid tIME chunk size"; case 74: return "invalid pHYs chunk size"; /*length could be wrong, or data chopped off*/ case 75: return "no null termination char found while decoding text chunk"; case 76: return "iTXt chunk too short to contain required bytes"; case 77: return "integer overflow in buffer size"; case 78: return "failed to open file for reading"; /*file doesn't exist or couldn't be opened for reading*/ case 79: return "failed to open file for writing"; case 80: return "tried creating a tree of 0 symbols"; case 81: return "lazy matching at pos 0 is impossible"; case 82: return "color conversion to palette requested while a color isn't in palette"; case 83: return "memory allocation failed"; case 84: return "given image too small to contain all pixels to be encoded"; case 86: return "impossible offset in lz77 encoding (internal bug)"; case 87: return "must provide custom zlib function pointer if LODEPNG_COMPILE_ZLIB is not defined"; case 88: return "invalid filter strategy given for LodePNGEncoderSettings.filter_strategy"; case 89: return "text chunk keyword too short or long: must have size 1-79"; /*the windowsize in the LodePNGCompressSettings. Requiring POT(==> & instead of %) makes encoding 12% faster.*/ case 90: return "windowsize must be a power of two"; case 91: return "invalid decompressed idat size"; case 92: return "too many pixels, not supported"; case 93: return "zero width or height is invalid"; case 94: return "header chunk must have a size of 13 bytes"; } return "unknown error code"; } #endif /*LODEPNG_COMPILE_ERROR_TEXT*/ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ /* // C++ Wrapper // */ /* ////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////// */ #ifdef LODEPNG_COMPILE_CPP namespace lodepng { #ifdef LODEPNG_COMPILE_DISK unsigned load_file(std::vector& buffer, const std::string& filename) { long size = lodepng_filesize(filename.c_str()); if(size < 0) return 78; buffer.resize((size_t)size); return size == 0 ? 0 : lodepng_buffer_file(&buffer[0], (size_t)size, filename.c_str()); } /*write given buffer to the file, overwriting the file, it doesn't append to it.*/ unsigned save_file(const std::vector& buffer, const std::string& filename) { return lodepng_save_file(buffer.empty() ? 0 : &buffer[0], buffer.size(), filename.c_str()); } #endif /* LODEPNG_COMPILE_DISK */ #ifdef LODEPNG_COMPILE_ZLIB #ifdef LODEPNG_COMPILE_DECODER unsigned decompress(std::vector& out, const unsigned char* in, size_t insize, const LodePNGDecompressSettings& settings) { unsigned char* buffer = 0; size_t buffersize = 0; unsigned error = zlib_decompress(&buffer, &buffersize, in, insize, &settings); if(buffer) { out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned decompress(std::vector& out, const std::vector& in, const LodePNGDecompressSettings& settings) { return decompress(out, in.empty() ? 0 : &in[0], in.size(), settings); } #endif /* LODEPNG_COMPILE_DECODER */ #ifdef LODEPNG_COMPILE_ENCODER unsigned compress(std::vector& out, const unsigned char* in, size_t insize, const LodePNGCompressSettings& settings) { unsigned char* buffer = 0; size_t buffersize = 0; unsigned error = zlib_compress(&buffer, &buffersize, in, insize, &settings); if(buffer) { out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned compress(std::vector& out, const std::vector& in, const LodePNGCompressSettings& settings) { return compress(out, in.empty() ? 0 : &in[0], in.size(), settings); } #endif /* LODEPNG_COMPILE_ENCODER */ #endif /* LODEPNG_COMPILE_ZLIB */ #ifdef LODEPNG_COMPILE_PNG State::State() { lodepng_state_init(this); } State::State(const State& other) { lodepng_state_init(this); lodepng_state_copy(this, &other); } State::~State() { lodepng_state_cleanup(this); } State& State::operator=(const State& other) { lodepng_state_copy(this, &other); return *this; } #ifdef LODEPNG_COMPILE_DECODER unsigned decode(std::vector& out, unsigned& w, unsigned& h, const unsigned char* in, size_t insize, LodePNGColorType colortype, unsigned bitdepth) { unsigned char* buffer; unsigned error = lodepng_decode_memory(&buffer, &w, &h, in, insize, colortype, bitdepth); if(buffer && !error) { State state; state.info_raw.colortype = colortype; state.info_raw.bitdepth = bitdepth; size_t buffersize = lodepng_get_raw_size(w, h, &state.info_raw); out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned decode(std::vector& out, unsigned& w, unsigned& h, const std::vector& in, LodePNGColorType colortype, unsigned bitdepth) { return decode(out, w, h, in.empty() ? 0 : &in[0], (unsigned)in.size(), colortype, bitdepth); } unsigned decode(std::vector& out, unsigned& w, unsigned& h, State& state, const unsigned char* in, size_t insize) { unsigned char* buffer = NULL; unsigned error = lodepng_decode(&buffer, &w, &h, &state, in, insize); if(buffer && !error) { size_t buffersize = lodepng_get_raw_size(w, h, &state.info_raw); out.insert(out.end(), &buffer[0], &buffer[buffersize]); } lodepng_free(buffer); return error; } unsigned decode(std::vector& out, unsigned& w, unsigned& h, State& state, const std::vector& in) { return decode(out, w, h, state, in.empty() ? 0 : &in[0], in.size()); } #ifdef LODEPNG_COMPILE_DISK unsigned decode(std::vector& out, unsigned& w, unsigned& h, const std::string& filename, LodePNGColorType colortype, unsigned bitdepth) { std::vector buffer; unsigned error = load_file(buffer, filename); if(error) return error; return decode(out, w, h, buffer, colortype, bitdepth); } #endif /* LODEPNG_COMPILE_DECODER */ #endif /* LODEPNG_COMPILE_DISK */ #ifdef LODEPNG_COMPILE_ENCODER unsigned encode(std::vector& out, const unsigned char* in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { unsigned char* buffer; size_t buffersize; unsigned error = lodepng_encode_memory(&buffer, &buffersize, in, w, h, colortype, bitdepth); if(buffer) { out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned encode(std::vector& out, const std::vector& in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { if(lodepng_get_raw_size_lct(w, h, colortype, bitdepth) > in.size()) return 84; return encode(out, in.empty() ? 0 : &in[0], w, h, colortype, bitdepth); } unsigned encode(std::vector& out, const unsigned char* in, unsigned w, unsigned h, State& state) { unsigned char* buffer; size_t buffersize; unsigned error = lodepng_encode(&buffer, &buffersize, in, w, h, &state); if(buffer) { out.insert(out.end(), &buffer[0], &buffer[buffersize]); lodepng_free(buffer); } return error; } unsigned encode(std::vector& out, const std::vector& in, unsigned w, unsigned h, State& state) { if(lodepng_get_raw_size(w, h, &state.info_raw) > in.size()) return 84; return encode(out, in.empty() ? 0 : &in[0], w, h, state); } #ifdef LODEPNG_COMPILE_DISK unsigned encode(const std::string& filename, const unsigned char* in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { std::vector buffer; unsigned error = encode(buffer, in, w, h, colortype, bitdepth); if(!error) error = save_file(buffer, filename); return error; } unsigned encode(const std::string& filename, const std::vector& in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) { if(lodepng_get_raw_size_lct(w, h, colortype, bitdepth) > in.size()) return 84; return encode(filename, in.empty() ? 0 : &in[0], w, h, colortype, bitdepth); } #endif /* LODEPNG_COMPILE_DISK */ #endif /* LODEPNG_COMPILE_ENCODER */ #endif /* LODEPNG_COMPILE_PNG */ } /* namespace lodepng */ #endif /*LODEPNG_COMPILE_CPP*/ drumgizmo-0.9.14/plugingui/image.cc0000644000076400017500000000725213077120602014147 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * image.cc * * Sat Mar 16 15:05:09 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "image.h" #include #include #include #include #include #include "resource.h" #include "lodepng/lodepng.h" namespace GUI { Image::Image(const char* data, size_t size) { load(data, size); } Image::Image(const std::string& filename) : filename(filename) { Resource rc(filename); load(rc.data(), rc.size()); } Image::Image(Image&& other) : _width(other._width) , _height(other._height) , image_data(std::move(other.image_data)) , filename(other.filename) { other._width = 0; other._height = 0; } Image::~Image() { } Image& Image::operator=(Image&& other) { image_data.clear(); image_data = std::move(other.image_data); _width = other._width; _height = other._height; other._width = 0; other._height = 0; return *this; } void Image::setError() { Resource rc(":resources/png_error"); const unsigned char* ptr = (const unsigned char*)rc.data(); std::uint32_t iw, ih; std::memcpy(&iw, ptr, sizeof(uint32_t)); ptr += sizeof(uint32_t); std::memcpy(&ih, ptr, sizeof(uint32_t)); ptr += sizeof(uint32_t); _width = iw; _height = ih; image_data.clear(); image_data.reserve(_width * _height); for(std::size_t y = 0; y < _height; ++y) { for(std::size_t x = 0; x < _width; ++x) { image_data.emplace_back(Colour{ptr[0] / 255.0f, ptr[1] / 255.0f, ptr[2] / 255.0f, ptr[3] / 255.0f}); } } assert(image_data.size() == (_width * _height)); } void Image::load(const char* data, size_t size) { unsigned int iw{0}, ih{0}; unsigned char* char_image_data{nullptr}; unsigned int res = lodepng_decode32((unsigned char**)&char_image_data, &iw, &ih, (const unsigned char*)data, size); if(res != 0) { ERR(image, "Error in lodepng_decode32: %d while loading '%s'", res, filename.c_str()); setError(); return; } _width = iw; _height = ih; image_data.clear(); image_data.reserve(_width * _height); for(std::size_t y = 0; y < _height; ++y) { for(std::size_t x = 0; x < _width; ++x) { unsigned char* ptr = &char_image_data[(x + y * _width) * 4]; image_data.emplace_back(Colour{ptr[0] / 255.0f, ptr[1] / 255.0f, ptr[2] / 255.0f, ptr[3] / 255.0f}); } } assert(image_data.size() == (_width * _height)); std::free(char_image_data); } size_t Image::width() const { return _width; } size_t Image::height() const { return _height; } const Colour& Image::getPixel(size_t x, size_t y) const { if(x > _width || y > _height) { return out_of_range; } return image_data[x + y * _width]; } } // GUI:: drumgizmo-0.9.14/plugingui/resource_data.cc0000644000076400017500000111243613101174501015702 00000000000000/* This file is autogenerated by rcgen. Do not modify! */ #include "resource_data.h" const rc_data_t rc_data[] = { { ":resources/bg.png", 1123, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\1\162\0\0\1\112\10\6\0\0\0\0\15\324" "\311\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\4\6\13\15\70\43\146\165\177\0\0\3\360\111" "\104\101\124\170\332\355\334\261\15\200\60\20\4\101\100\364" "\137\240\233\61\65\134\162\74\142\246\4\7\253\13\136\76" "\327\132\373\0\340\263\56\117\0\40\344\0\10\71\0\102" "\16\40\344\0\174\321\275\267\243\25\0\213\34\0\41\7" "\100\310\1\204\34\0\41\7\240\314\325\12\200\105\16\200" "\220\3\40\344\0\102\16\200\220\3\40\344\0\10\71\200" "\220\3\40\344\0\10\71\0\102\16\40\344\0\214\347\323" "\54\0\213\34\0\41\7\100\310\1\204\34\0\41\7\100" "\310\1\10\71\77\4\260\310\1\20\162\0\204\34\100\310" "\1\20\162\0\372\134\255\0\130\344\0\10\71\0\102\16" "\40\344\0\10\71\0\175\256\126\0\54\162\0\204\34\0" "\41\7\20\162\0\204\34\0\41\7\40\344\374\20\300\42" "\7\100\310\1\20\162\0\41\7\100\310\1\350\163\265\2" "\140\221\3\40\344\0\10\71\200\220\3\40\344\0\10\71" "\0\102\16\40\344\0\10\71\0\102\16\200\220\3\10\71" "\0\343\371\64\13\300\42\7\100\310\1\20\162\0\41\7" "\100\310\1\20\162\0\102\316\17\1\54\162\0\204\34\0" "\41\7\20\162\0\204\34\200\76\127\53\0\26\71\0\102" "\16\200\220\3\10\71\0\102\16\200\220\3\20\162\176\10" "\140\221\3\40\344\0\10\71\200\220\3\40\344\0\364\271" "\132\1\260\310\1\20\162\0\204\34\100\310\1\20\162\0" "\372\134\255\0\130\344\0\10\71\0\102\16\40\344\0\10" "\71\0\102\16\200\220\3\10\71\0\102\16\200\220\3\40" "\344\0\102\16\300\170\76\315\2\260\310\1\20\162\0\204" "\34\100\310\1\20\162\0\204\34\200\220\363\103\0\213\34" "\0\41\7\100\310\1\204\34\0\41\7\240\317\325\12\200" "\105\16\200\220\3\40\344\0\102\16\200\220\3\40\344\0" "\204\234\37\2\130\344\0\10\71\0\102\16\40\344\0\10" "\71\0\175\256\126\0\54\162\0\204\34\0\41\7\20\162" "\0\204\34\200\76\127\53\0\26\71\0\102\16\200\220\3" "\10\71\0\102\16\200\220\3\40\344\0\102\16\200\220\3" "\40\344\0\10\71\200\220\3\60\236\117\263\0\54\162\0" "\204\34\0\41\7\20\162\0\204\34\0\41\7\40\344\374" "\20\300\42\7\100\310\1\20\162\0\41\7\100\310\1\350" "\163\265\2\140\221\3\40\344\0\10\71\200\220\3\40\344" "\0\10\71\0\41\347\207\0\26\71\0\102\16\200\220\3" "\10\71\0\102\16\100\237\253\25\0\213\34\0\41\7\100" "\310\1\204\34\0\41\7\100\310\1\10\71\77\4\260\310" "\1\20\162\0\204\34\100\310\1\20\162\0\204\34\0\41" "\7\20\162\0\204\34\0\41\7\100\310\1\376\300\137\53" "\0\26\71\0\102\16\200\220\3\10\71\0\102\16\200\220" "\3\20\162\176\10\140\221\3\40\344\0\10\71\200\220\3" "\40\344\0\364\271\132\1\260\310\1\20\162\0\204\34\100" "\310\1\20\162\0\204\34\200\220\363\103\0\213\34\0\41" "\7\100\310\1\204\34\0\41\7\240\317\325\12\200\105\16" "\200\220\3\40\344\0\102\16\200\220\3\40\344\0\204\234" "\37\2\130\344\0\10\71\0\102\16\40\344\0\10\71\0" "\102\16\200\220\3\10\71\0\102\16\200\220\3\40\344\0" "\177\340\257\25\0\213\34\0\41\7\100\310\1\204\34\0" "\41\7\100\310\1\10\71\77\4\260\310\1\20\162\0\204" "\34\100\310\1\20\162\0\372\134\255\0\130\344\0\10\71" "\0\102\16\40\344\0\10\71\0\102\16\100\310\371\41\200" "\105\16\200\220\3\40\344\0\102\16\200\220\3\320\347\152" "\5\300\42\7\100\310\1\20\162\0\41\7\100\310\1\20" "\162\0\102\316\17\1\54\162\0\204\34\0\41\7\20\162" "\0\204\34\200\76\127\53\0\26\71\0\102\16\200\220\3" "\10\71\0\102\16\200\220\3\40\344\0\102\16\200\220\3" "\40\344\0\10\71\200\220\3\60\236\117\263\0\54\162\0" "\204\34\0\41\7\20\162\0\204\34\200\76\127\53\0\26" "\71\0\102\16\200\220\3\10\71\0\102\16\200\220\3\20" "\162\176\10\140\221\3\40\344\0\10\71\200\220\3\40\344" "\0\364\271\132\1\260\310\1\20\162\0\204\34\100\310\1" "\20\162\0\204\34\200\220\363\103\0\213\34\200\67\75\173" "\113\211\365\123\166\223\131\0\0\0\0\111\105\116\104\256" "\102\140\202" }, { ":resources/bypass_button.png", 1615, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\100\0\0\0\20\10\2\0\0\0\51\205\356" "\176\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\5\341\111\104\101\124\170\332" "\264\126\113\117\133\107\24\236\231\173\301\340\47\6\7\23" "\36\246\355\202\100\213\311\206\242\110\110\110\374\207\256\53" "\345\77\244\77\43\135\66\33\244\144\337\25\312\62\242\110" "\25\250\202\220\102\112\324\320\200\121\170\44\4\33\2\70" "\261\261\357\235\107\277\71\367\332\165\36\225\222\105\354\361" "\365\314\71\337\375\346\234\63\147\316\14\177\360\340\101\157" "\157\57\373\264\117\261\130\134\133\133\253\126\253\237\210\217" "\106\243\223\223\223\137\224\237\337\371\345\116\74\26\345\214" "\163\146\40\22\244\10\7\206\33\172\30\73\260\222\267\25" "\113\35\213\105\1\201\300\4\177\55\170\172\331\140\100\75" "\126\41\174\62\225\20\216\43\134\216\247\343\12\46\270\20" "\304\254\321\214\126\112\111\145\244\326\112\227\57\336\174\56" "\277\253\360\236\66\202\151\240\170\0\66\346\327\233\67\241" "\376\341\356\75\141\147\241\311\100\307\31\246\203\67\112\103" "\140\361\254\201\277\107\370\37\357\336\13\30\2\177\171\3" "\157\4\147\16\343\155\360\201\32\347\345\21\153\150\342\131" "\202\301\154\172\107\31\153\326\377\361\237\114\236\1\337\275" "\326\375\41\277\320\60\137\51\274\304\224\342\122\35\54\55" "\101\322\311\30\32\323\152\177\171\231\51\211\216\321\66\102" "\122\301\133\164\310\153\145\307\273\113\113\210\135\204\61\64" "\210\12\313\313\210\247\205\206\172\333\261\121\23\102\70\2" "\341\347\31\170\42\322\75\335\150\116\233\140\275\134\264\11" "\1\271\43\140\321\373\374\140\270\342\203\56\335\337\215\6" "\221\237\225\201\256\311\57\360\147\254\175\130\104\371\367\374" "\374\372\334\34\74\21\101\56\51\205\41\204\120\61\145\375" "\264\313\155\11\250\47\345\306\374\374\37\163\163\350\6\31" "\211\16\206\20\102\105\240\20\317\140\233\313\270\303\144\126" "\251\41\303\303\44\302\227\251\101\3\41\124\302\101\26\233" "\167\370\225\272\34\250\325\307\374\126\376\372\250\17\141\3" "\144\177\256\15\30\41\136\254\256\356\337\277\237\114\245\60" "\14\62\14\10\14\41\214\146\62\127\247\246\64\111\130\343" "\271\277\272\272\103\170\325\230\100\22\36\302\170\46\223\233" "\232\152\42\155\60\300\330\303\143\43\61\41\205\307\352\202" "\162\130\42\335\73\142\172\104\127\275\212\171\145\0\153\345" "\67\375\54\176\43\301\352\354\122\125\334\6\177\74\26\147" "\67\130\265\136\341\57\103\13\155\12\331\75\244\124\161\143" "\3\151\63\60\75\335\352\61\206\20\226\326\67\214\242\340" "\320\332\111\151\373\57\11\237\233\236\156\72\200\116\216\360" "\107\353\33\264\63\103\74\362\32\6\213\36\47\321\231\320" "\45\144\73\345\267\315\155\215\41\204\120\1\140\267\164\13" "\77\357\27\251\124\112\356\370\255\374\30\102\10\125\223\137" "\220\365\350\313\162\241\340\143\243\114\114\140\224\145\14\115" "\112\331\175\175\2\302\213\335\2\145\205\305\51\233\204\26" "\177\136\50\170\214\145\10\337\317\130\77\341\257\134\237\200" "\360\214\360\252\201\267\206\32\355\246\134\117\171\136\261\216" "\376\325\150\37\32\46\366\112\165\10\241\12\266\157\53\277" "\333\353\326\374\332\345\166\25\243\157\272\277\106\3\177\155" "\247\12\41\124\115\176\127\122\327\241\165\266\111\142\67\207" "\34\271\175\73\130\1\233\301\244\122\24\7\274\21\54\145" "\50\44\74\30\276\43\174\60\173\240\12\60\1\236\26\117" "\141\7\7\21\306\163\373\267\147\101\120\215\262\141\207\312" "\42\140\110\13\277\333\356\332\115\154\375\121\217\176\136\13" "\361\76\254\322\120\65\371\5\55\227\362\225\114\14\17\103" "\164\274\276\256\102\62\373\301\320\326\273\341\141\77\20\311" "\120\216\251\122\303\303\110\344\227\357\342\61\204\20\52\371" "\1\136\136\110\24\42\226\144\224\125\141\51\61\11\154\137" "\41\313\362\43\370\242\357\264\71\254\217\265\362\233\54\203" "\120\226\374\46\336\245\304\220\302\260\256\261\261\332\346\346" "\361\312\12\312\326\225\174\36\166\237\74\331\74\131\175\210" "\372\10\225\42\227\25\325\104\274\201\254\356\31\33\253\156" "\156\36\255\254\370\132\367\345\363\260\373\325\223\315\322\352" "\103\354\201\36\302\263\6\336\367\75\346\360\172\261\236\311" "\145\42\375\35\136\275\254\313\366\114\342\111\36\33\210\104" "\104\344\364\370\304\367\174\174\132\371\353\173\365\276\211\150" "\74\237\70\251\224\364\221\266\370\253\42\75\21\217\71\321" "\323\347\245\46\277\153\303\57\155\335\114\214\217\263\122\351" "\162\161\361\170\141\341\305\302\2\324\355\264\23\72\147\147" "\241\302\22\65\253\220\244\227\273\306\307\115\251\124\131\134" "\4\370\200\360\160\165\0\205\145\166\26\52\30\321\254\47" "\136\315\307\226\75\337\76\103\15\311\215\15\35\47\213\225" "\213\267\366\304\115\305\263\156\357\341\323\303\263\355\63\277" "\356\373\330\16\55\374\147\217\137\47\123\311\157\147\306\236" "\147\243\347\257\316\355\214\175\135\137\105\206\13\277\27\136" "\77\176\335\334\326\344\0\25\176\330\27\235\231\151\117\247" "\223\133\133\346\340\300\36\165\103\71\76\72\352\346\363\236" "\266\147\243\152\51\243\301\41\237\234\231\351\110\247\323\133" "\133\232\360\142\50\47\106\107\333\363\171\254\141\263\20\223" "\3\136\160\151\330\373\163\317\53\173\331\301\354\140\17\74" "\145\347\307\347\273\207\273\107\73\107\10\277\254\371\176\315" "\177\217\177\167\261\340\235\172\203\327\6\257\345\106\154\106" "\24\116\236\376\363\364\360\257\203\100\33\40\371\255\133\77" "\305\73\73\120\230\161\75\21\246\161\27\142\341\345\207\321" "\231\256\351\52\1\356\267\227\227\120\166\166\166\130\10\335" "\111\76\366\341\364\263\67\231\113\302\167\365\244\334\366\66" "\267\303\165\333\320\160\40\333\163\314\362\7\247\73\26\327" "\223\12\53\340\311\363\323\363\317\345\167\155\25\1\15\34" "\240\113\206\340\241\345\1\1\12\270\241\273\234\242\213\22" "\212\22\312\67\246\15\175\14\103\21\334\272\202\353\227\55" "\357\301\115\205\67\360\276\347\321\311\217\35\347\272\355\216" "\75\164\5\247\203\127\333\113\14\254\367\261\171\265\266\13" "\360\331\374\156\271\374\246\124\54\5\136\221\236\205\117\372" "\222\37\377\275\33\211\264\117\116\176\237\33\34\244\225\302" "\41\310\20\312\360\111\137\310\205\26\124\222\255\164\177\177" "\157\155\355\321\27\345\377\127\200\1\0\7\104\256\170\174" "\154\240\127\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/font.png", 10827, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\7\135\0\0\0\20\10\6\0\0\0\135\214\146" "\362\0\0\0\11\160\110\131\163\0\0\16\304\0\0\16" "\304\1\225\53\16\33\0\0\40\0\111\104\101\124\170\234" "\355\235\171\364\135\125\225\347\77\277\220\164\244\222\212\61" "\222\230\212\241\142\14\105\112\245\54\151\225\106\27\315\212" "\24\5\313\201\106\12\225\5\55\266\245\250\215\226\224\55" "\113\104\50\64\42\112\251\5\132\245\245\122\22\324\202\122" "\24\107\304\221\166\142\24\54\73\316\212\20\10\140\200\200" "\214\11\146\370\15\257\377\370\356\363\273\347\236\167\316\35" "\336\273\357\375\136\222\273\327\172\353\275\167\366\76\373\354" "\63\355\263\367\31\41\1\35\72\235\26\327\342\132\334\160" "\160\356\167\214\276\210\107\23\162\364\103\137\127\356\176\145" "\254\222\136\212\117\31\377\136\312\176\117\301\227\225\155\125" "\176\375\362\250\333\216\173\211\327\104\36\206\111\323\204\176" "\10\151\232\250\203\246\344\256\112\73\210\162\30\26\257\141" "\322\64\21\247\116\334\101\321\124\325\363\115\215\71\375\362" "\33\46\256\137\176\275\216\335\115\365\351\141\341\6\115\137" "\5\67\214\64\352\332\113\375\366\331\26\327\342\132\334\314" "\343\232\262\333\7\351\267\225\361\252\153\237\64\75\46\206" "\64\115\311\123\205\146\20\161\7\145\37\125\251\273\141\214" "\237\303\240\257\22\47\202\337\4\234\124\203\327\153\54\116" "\21\355\7\200\216\175\316\257\300\167\55\260\5\370\2\60" "\131\101\206\50\14\212\266\227\270\1\115\264\214\43\174\272" "\312\266\112\271\326\220\147\132\16\373\77\235\236\375\357\342" "\337\217\356\13\350\326\22\251\343\252\355\261\112\131\105\350" "\222\355\260\212\154\211\164\243\320\204\236\30\321\66\123\47" "\255\252\174\152\321\354\52\270\121\220\241\16\256\352\70\330" "\213\16\230\351\274\65\201\33\105\231\206\136\6\243\44\114" "\213\153\161\273\73\256\216\343\322\264\34\375\320\327\225\173" "\30\16\136\257\16\154\323\3\336\356\204\57\53\333\252\374" "\372\345\321\253\3\327\264\223\70\112\64\115\350\207\220\146" "\0\216\115\317\174\252\322\16\242\34\206\305\153\230\64\115" "\304\251\23\167\120\64\125\365\174\323\216\300\250\332\20\115" "\362\353\165\354\156\252\117\17\13\67\150\372\52\270\141\244" "\121\327\136\352\267\317\266\270\26\327\342\146\36\327\224\335" "\76\110\277\255\214\127\135\373\244\351\61\61\244\151\112\236" "\52\64\203\210\73\50\373\250\112\335\15\143\374\34\6\175" "\225\70\21\174\164\361\252\200\127\331\142\320\21\300\243\300" "\331\366\171\324\302\122\174\147\1\123\300\5\300\375\300\31" "\45\62\164\202\357\42\332\257\3\23\366\135\106\133\31\172" "\150\377\125\26\10\41\122\266\125\312\65\340\23\55\37\243" "\11\27\131\303\105\330\56\376\26\236\343\331\203\37\232\254" "\343\252\355\261\112\131\5\164\205\355\260\212\154\211\164\213" "\312\67\12\75\224\27\214\116\233\251\232\126\22\366\24\273" "\175\24\144\250\203\253\72\16\366\142\377\314\164\336\232\300" "\215\242\114\103\57\203\121\22\246\305\265\270\335\35\127\307" "\161\151\132\216\176\350\353\312\75\14\7\257\127\7\266\351" "\1\157\167\302\227\225\155\125\176\375\362\350\325\201\253\23" "\157\30\306\155\223\64\115\350\207\220\146\0\216\115\317\174" "\252\322\16\242\34\206\305\153\230\64\115\304\251\23\167\120" "\64\125\365\174\323\216\300\250\332\20\115\362\353\165\354\156" "\252\117\17\13\67\150\372\52\270\141\244\121\327\136\352\267" "\317\266\270\26\327\342\146\36\127\242\227\147\125\341\325\217" "\34\51\171\352\360\252\153\237\64\75\46\206\64\75\312\123" "\364\351\111\346\62\232\141\333\107\125\352\156\30\343\347\60" "\350\253\304\151\332\277\31\161\332\11\340\55\366\335\63\337" "\136\342\216\72\115\257\176\113\325\364\172\225\153\167\244\33" "\166\171\355\156\64\63\210\373\26\322\35\227\127\211\67\3" "\362\365\205\33\244\16\230\351\274\65\201\33\105\231\6\205" "\233\225\102\266\320\102\13\103\207\116\342\333\207\247\1\177" "\260\337\373\1\333\2\374\131\150\67\131\7\355\266\72\51" "\202\233\2\316\364\302\137\214\166\236\305\340\4\140\253\245" "\363\352\22\271\1\376\16\330\350\375\277\335\302\142\60\236" "\10\157\22\326\0\217\170\377\227\2\267\240\1\176\34\370" "\5\52\107\37\366\41\53\143\200\303\120\236\306\201\235\300" "\172\140\271\207\77\0\370\215\341\46\200\137\1\117\111\310" "\363\52\272\353\165\77\22\316\270\301\102\340\153\46\323\44" "\160\17\360\2\17\37\213\73\345\341\127\3\277\64\371\166" "\2\77\3\126\171\370\305\300\217\14\267\35\370\41\260\42" "\41\377\260\140\25\160\33\52\317\73\201\247\107\150\146\1" "\247\2\267\242\266\76\211\312\150\75\160\114\11\377\323\120" "\71\235\232\300\207\345\71\156\351\34\32\320\75\17\330\140" "\162\76\12\374\133\11\237\260\357\305\150\142\155\240\14\17" "\371\276\337\101\345\361\206\110\132\251\374\66\101\263\16\370" "\162\5\72\7\367\3\357\115\340\336\107\136\57\165\200\367" "\227\310\5\360\54\324\37\135\177\375\31\352\243\141\234\260" "\176\327\223\357\27\0\7\42\35\341\367\235\62\136\23\250" "\255\370\72\140\51\160\55\352\137\123\350\212\245\57\2\163" "\12\370\244\332\101\14\374\360\267\2\73\200\5\11\332\171" "\110\237\237\343\205\75\2\34\34\320\235\141\174\117\17\302" "\17\46\257\123\67\240\376\344\303\337\43\75\353\340\116\272" "\307\217\127\133\270\17\261\274\377\277\10\336\301\26\244\343" "\103\210\365\217\176\40\171\65\134\42\355\46\240\16\37\327" "\367\177\335\0\357\20\127\245\375\225\341\166\145\130\75\323" "\2\64\10\357\46\157\33\270\72\233\62\134\13\55\264\260" "\147\300\46\144\337\370\260\6\371\27\223\300\357\201\243\153" "\360\72\45\10\73\205\374\11\42\177\174\170\77\262\247\376" "\0\274\51\210\227\362\177\103\373\266\310\246\176\13\262\161" "\306\201\53\52\346\241\56\324\221\147\254\340\343\340\315\46" "\363\66\144\77\325\201\123\221\155\71\1\174\333\13\177\203" "\361\233\0\276\353\205\47\117\135\106\340\100\340\146\124\137" "\105\376\107\12\316\42\177\225\350\221\300\146\13\333\14\34" "\336\43\37\37\176\212\374\205\52\364\163\200\273\321\334\206" "\17\251\262\52\112\243\16\224\371\234\273\62\355\243\250\154" "\36\256\100\13\232\363\230\244\232\317\3\365\375\354\72\76" "\364\40\150\210\304\11\241\212\57\227\112\63\65\217\320\224" "\177\274\53\320\25\301\201\310\27\162\74\276\143\174\375\166" "\63\350\271\220\272\64\125\174\344\72\72\327\215\115\261\266" "\342\240\310\257\115\215\21\105\127\232\257\45\161\175\164\11" "\34\16\274\15\170\176\215\70\275\100\231\37\337\113\236\253" "\246\25\362\256\313\363\4\64\306\137\200\332\104\70\127\265" "\226\164\331\17\42\337\105\351\15\22\206\131\207\105\74\173" "\232\357\30\103\306\335\22\57\154\22\170\173\207\116\147\214" "\261\67\265\270\26\327\342\6\212\33\3\260\337\164\350\60" "\306\330\44\60\33\31\230\263\175\72\144\10\237\4\354\217" "\234\325\67\142\312\327\350\72\150\300\75\7\170\73\162\76" "\27\4\270\131\300\73\311\166\72\157\100\306\310\364\342\207" "\227\346\203\300\173\54\370\14\340\161\136\76\34\335\144\207" "\316\136\106\377\173\144\50\174\305\160\57\106\13\61\373\170" "\364\167\240\101\343\57\201\377\4\126\2\117\12\362\31\5" "\107\23\243\115\340\56\1\226\1\207\131\370\227\114\226\277" "\261\374\377\7\62\312\136\150\370\77\41\133\164\164\274\36" "\2\76\1\234\13\74\306\342\74\26\370\113\303\157\6\256" "\104\213\35\0\237\104\13\56\373\106\344\334\0\74\31\163" "\266\15\377\132\64\200\75\61\221\337\33\321\344\304\233\321" "\102\344\171\46\377\343\22\145\166\241\361\177\265\341\157\7" "\276\202\352\36\340\37\321\325\47\373\31\376\133\250\216\177" "\204\352\367\43\300\63\175\371\213\312\75\126\7\51\174\25" "\32\303\377\47\252\207\263\201\317\241\105\356\77\363\342\356" "\15\334\10\374\61\360\357\300\227\120\331\76\3\365\213\27" "\241\166\167\162\42\315\133\120\333\176\34\301\242\273\353\213" "\144\23\42\263\121\335\134\150\345\262\310\150\236\212\26\204" "\76\214\34\316\3\201\317\2\227\2\47\107\370\200\352\140" "\55\352\233\357\116\320\304\312\43\111\143\370\267\33\337\265" "\300\273\14\365\136\344\60\277\16\130\127\302\247\103\326\336" "\235\36\12\351\162\64\21\76\353\200\307\243\115\34\125\345" "\6\351\214\3\201\337\171\350\175\221\263\265\60\110\363\41" "\340\317\54\116\114\256\47\1\137\105\345\374\75\264\360\370" "\12\340\130\340\50\340\256\204\134\113\121\235\254\1\236\152" "\64\117\104\216\333\47\200\217\42\75\161\226\361\132\15\334" "\223\340\265\4\31\306\373\3\117\63\232\137\3\77\107\365" "\261\31\265\347\213\214\347\221\221\366\331\11\313\255\106\375" "\215\241\305\352\113\351\136\164\7\31\237\257\102\165\65\341" "\351\200\115\344\235\276\153\321\46\237\137\0\207\170\341\353" "\220\176\74\334\342\76\27\370\206\345\151\53\352\57\167\241" "\11\333\353\215\346\177\42\103\167\251\307\347\156\53\217\117" "\47\164\302\42\340\46\340\57\210\224\265\375\377\76\152\67" "\47\6\345\64\26\51\223\143\201\317\3\57\101\216\102\35" "\175\65\255\243\213\342\24\325\121\205\170\105\375\255\54\336" "\24\152\233\37\4\36\355\127\306\202\361\265\50\136\112\157" "\104\241\207\362\150\34\127\221\176\7\60\167\120\162\65\305" "\247\42\156\33\232\364\276\52\250\263\147\243\276\361\244\252" "\362\216\240\55\335\342\132\134\213\363\174\313\2\175\276\32" "\155\62\373\43\310\365\367\315\350\212\320\377\203\46\101\137" "\113\332\317\300\213\373\132\344\127\74\1\363\133\201\373\220" "\377\171\141\144\174\330\11\274\314\350\317\107\33\301\212\164" "\164\314\276\165\20\263\251\335\142\356\355\310\66\331\253\137" "\375\34\224\145\135\171\252\360\336\216\371\53\310\336\334\273" "\106\334\255\150\156\340\167\330\146\276\116\346\273\236\213\154" "\255\13\201\271\26\176\27\360\16\262\272\51\52\227\337\221" "\337\144\74\155\133\105\312\45\126\167\67\2\7\221\331\62" "\367\1\227\241\205\200\163\221\57\373\204\12\162\114\363\11" "\320\357\106\266\346\1\25\351\277\212\354\245\243\3\372\256" "\262\252\220\106\35\137\270\314\347\334\123\150\101\175\362\21" "\340\70\42\276\116\20\267\27\77\73\306\147\230\64\241\377" "\61\35\47\304\247\342\25\321\222\236\107\150\312\77\36\165" "\272\242\366\262\4\371\215\37\6\76\144\74\336\211\26\255" "\216\3\56\53\251\307\262\171\216\101\321\124\361\221\123\174" "\374\374\207\143\323\131\170\363\275\101\371\275\6\157\356\61" "\300\155\302\306\10\17\167\44\232\153\73\317\150\116\5\216" "\351\320\371\326\30\143\173\241\261\377\343\310\307\76\17\170" "\117\244\15\307\332\367\167\321\201\206\157\240\172\256\345\63" "\225\321\173\270\134\176\33\310\163\121\276\302\71\203\160\314" "\375\103\202\47\76\77\117\276\375\321\206\252\25\300\277\140" "\33\263\14\137\126\366\115\347\273\237\272\116\302\10\326\141" "\21\117\210\364\305\362\62\320\344\330\147\275\70\377\213\154" "\122\371\356\26\327\342\132\334\100\161\176\7\167\116\351\157" "\221\123\174\23\260\72\350\374\137\101\16\303\61\150\342\370" "\277\220\37\244\40\350\350\21\34\36\376\245\150\221\155\261" "\47\237\257\70\46\221\321\62\7\31\162\263\43\164\33\72" "\164\126\215\61\166\42\360\117\230\321\340\361\270\7\55\30" "\72\303\341\317\321\102\306\263\321\102\337\53\201\337\106\24" "\156\152\341\241\316\242\353\264\262\264\360\315\150\321\332\355" "\176\76\30\71\200\156\201\361\76\253\237\257\223\236\360\136" "\206\234\371\71\11\374\122\113\67\164\364\137\6\374\3\132" "\104\360\353\175\35\162\124\326\4\174\174\147\360\122\62\207" "\274\53\317\136\320\11\310\20\377\163\17\77\205\234\41\167" "\72\155\41\126\227\206\337\206\115\276\170\362\377\316\303\227" "\55\272\236\204\214\272\302\5\211\100\346\151\3\44\201\337" "\201\372\300\355\310\341\337\110\176\3\302\65\300\17\110\357" "\340\73\14\31\160\177\113\367\242\316\63\200\353\321\204\317" "\146\340\71\300\117\202\364\241\173\100\135\210\46\222\134\275" "\137\145\377\137\342\321\234\0\374\63\260\270\200\317\264\21" "\334\204\243\147\170\267\241\42\74\255\364\176\64\161\366\330" "\72\16\102\47\276\170\122\344\104\344\26\134\153\310\15\72" "\31\373\0\371\5\277\213\120\375\274\40\110\363\343\150\101" "\366\371\71\126\31\315\225\300\247\321\306\7\37\346\240\205" "\320\127\25\310\265\300\344\160\355\354\12\264\331\341\270\200" "\356\42\244\57\217\52\340\265\4\351\200\71\136\37\134\212" "\332\213\203\247\240\166\67\67\322\157\372\135\164\75\3\235" "\120\135\110\376\144\333\54\313\343\277\142\175\307\342\34\207" "\46\64\236\344\321\76\202\332\323\231\344\117\315\156\104\106" "\357\47\275\364\56\107\106\370\337\30\357\345\330\244\226\107" "\263\1\370\30\152\223\157\6\136\217\115\320\44\364\306\327" "\121\377\367\67\116\114\347\77\164\154\202\162\212\71\55\67" "\242\166\260\23\370\157\5\351\6\5\233\247\251\340\30\114" "\313\130\304\247\2\256\316\242\153\152\2\247\47\31\13\306" "\327\242\170\51\275\21\205\36\312\243\161\134\335\262\35\204" "\134\115\361\251\221\227\275\200\251\110\235\215\143\47\357\153" "\364\213\121\262\245\133\134\213\153\161\236\157\131\240\317\317" "\107\33\251\16\202\56\177\57\264\123\252\352\226\115\310\117" "\71\25\155\376\171\51\371\311\134\137\327\154\105\23\342\157" "\53\113\47\260\157\335\206\341\61\144\327\334\211\154\316\243" "\310\333\324\37\103\266\343\243\310\316\252\72\216\46\41\50" "\113\337\336\356\344\310\202\215\315\65\170\157\107\266\72\150" "\23\164\154\321\65\351\23\243\215\250\377\27\370\55\360\267" "\101\334\161\344\347\236\320\203\75\63\211\306\14\7\321\61" "\261\144\174\365\155\231\51\344\53\74\204\66\326\335\107\365" "\105\361\60\377\7\242\11\373\277\300\333\264\131\100\377\162" "\144\347\256\300\273\151\313\350\237\214\66\65\117\227\225\241" "\237\211\312\65\225\106\24\172\360\71\367\4\132\220\157\164" "\33\72\54\160\17\221\66\35\304\355\325\317\16\371\14\223" "\46\154\363\323\161\52\330\354\125\26\135\41\76\217\320\224" "\177\74\352\164\105\355\305\235\274\363\375\366\37\240\303\16" "\267\1\207\226\324\343\114\55\272\126\361\221\303\370\343\350" "\4\376\113\200\333\43\143\23\150\234\377\42\266\71\153\24" "\374\256\176\161\243\40\103\35\134\325\61\267\144\14\135\217" "\306\272\45\250\177\57\45\333\64\77\222\371\256\212\53\241" "\231\315\150\346\23\172\230\347\201\374\125\240\323\377\15\331" "\342\132\134\213\33\54\16\357\167\307\17\13\161\45\37\237" "\156\215\13\13\170\270\323\60\147\222\115\304\337\106\344\372" "\30\117\216\273\221\201\173\31\132\4\216\322\331\367\125\170" "\306\222\307\343\123\206\163\141\317\100\306\371\101\366\375\254" "\260\74\246\131\24\247\127\206\333\227\340\224\212\375\367\167" "\206\57\102\127\66\70\374\51\323\354\22\351\40\147\141\153" "\4\77\13\355\106\372\24\272\316\67\304\337\214\46\10\302" "\172\277\236\304\165\7\206\37\47\161\315\127\300\177\36\132" "\114\175\172\200\337\204\46\101\346\33\315\371\26\346\360\73" "\261\223\310\6\373\143\355\43\150\227\141\373\74\311\370\154" "\102\273\217\252\264\125\107\363\32\57\156\356\252\210\110\231" "\237\214\55\30\33\356\105\250\314\40\333\261\77\216\352\366" "\122\254\76\321\102\340\115\21\236\227\43\47\32\264\163\354" "\53\221\364\303\172\135\216\26\7\77\343\321\74\202\256\75" "\12\141\226\107\23\153\77\220\57\213\24\115\112\236\72\370" "\131\330\202\131\35\171\22\355\76\45\363\72\362\127\12\327" "\225\173\15\332\45\355\303\3\310\260\14\323\234\203\34\160" "\377\52\134\237\346\141\140\145\42\111\277\315\307\344\132\114" "\136\27\74\110\274\176\17\162\362\226\360\332\351\321\74\204" "\26\21\347\104\150\353\350\276\52\365\7\252\367\373\311\116" "\337\73\70\25\225\321\354\54\142\247\143\364\133\220\76\4" "\115\64\75\152\277\267\330\177\14\277\315\305\367\322\133\200" "\362\370\72\113\167\172\221\326\243\71\312\160\356\24\314\121" "\21\32\7\7\43\135\66\47\240\11\165\347\134\324\357\227" "\7\341\141\231\54\106\72\173\221\175\57\116\244\333\5\41" "\215\375\77\36\215\135\23\250\315\234\27\310\170\64\52\347" "\333\321\70\344\160\313\221\116\232\104\155\350\245\36\156\25" "\232\104\36\107\23\322\276\374\113\55\336\70\232\124\135\22" "\244\27\53\233\225\250\315\157\107\223\270\141\137\72\27\265" "\321\351\353\247\22\375\77\325\357\57\103\33\133\272\306\11" "\164\232\172\207\175\116\107\273\162\335\325\332\147\6\374\76" "\202\352\44\304\255\100\223\20\343\350\44\305\276\101\274\17" "\131\371\337\205\306\54\207\133\155\371\336\206\116\373\207\362" "\137\214\135\133\156\141\356\52\256\51\244\167\136\225\52\333" "\104\37\364\161\133\200\347\132\370\163\354\277\303\155\305\154" "\35\324\366\73\144\23\273\207\4\264\267\221\75\313\360\146" "\313\277\317\347\140\57\336\303\11\171\335\30\345\367\361\260" "\215\164\202\376\342\217\135\205\60\202\266\164\213\153\161\55" "\56\303\305\372\270\177\355\340\357\261\161\335\303\157\102\33" "\266\162\140\370\313\221\256\166\327\173\376\32\333\124\146\144" "\257\101\233\324\126\40\335\173\122\20\337\311\361\64\344\127" "\116\242\215\303\205\157\313\6\72\327\277\52\161\61\32\177" "\356\231\46\315\350\47\220\375\170\132\20\36\205\32\176\113" "\154\14\360\177\273\362\15\345\51\4\243\161\127\42\157\103" "\72\77\26\67\125\76\253\221\175\160\152\20\276\25\325\303" "\361\330\42\143\302\236\51\32\323\356\240\333\306\10\307\221" "\242\272\13\371\335\213\116\362\56\104\13\51\233\123\361\123" "\174\14\146\43\173\351\65\25\351\227\240\361\375\71\11\372" "\255\250\334\247\313\312\322\370\35\221\353\14\143\66\122\1" "\276\212\317\271\47\320\202\174\350\157\345\110\22\140\161\373" "\361\263\231\41\32\310\267\371\256\376\22\362\211\205\247\150" "\163\321\362\151\64\345\37\217\72\335\225\310\307\0\335\352" "\167\67\266\111\5\345\337\157\57\47\243\47\277\216\40\157" "\367\127\55\323\141\321\100\271\217\34\362\131\216\16\256\374" "\274\200\346\172\344\53\371\174\212\374\327\121\302\275\10\325" "\273\273\46\372\7\350\100\305\275\26\266\1\273\236\336\350" "\213\374\353\42\37\172\20\70\110\264\201\36\165\200\263\55" "\266\30\376\354\200\167\57\176\364\260\161\371\354\166\5\164" "\72\150\223\301\106\124\337\237\100\67\36\126\261\123\6\201" "\53\363\265\277\153\371\74\63\213\134\32\157\244\234\204\26" "\327\342\366\64\34\336\357\216\37\26\340\34\154\47\273\276" "\145\33\162\140\175\272\357\242\211\316\16\162\150\346\172\70" "\177\162\361\54\64\341\267\71\114\57\110\363\337\54\315\273" "\60\345\31\243\263\357\334\33\100\36\217\143\14\27\123\274" "\251\174\102\132\51\107\371\104\160\377\210\31\43\136\370\24" "\371\323\272\263\311\57\60\346\322\116\310\373\257\330\111\331" "\0\357\336\212\235\300\46\123\75\374\13\220\363\232\313\227" "\341\67\241\66\341\46\251\257\303\273\216\331\344\173\37\32" "\154\335\316\266\145\221\364\327\241\53\131\302\62\171\236\311" "\344\6\212\11\354\124\255\341\327\43\107\150\21\152\133\353" "\303\374\7\337\135\213\255\101\172\205\20\320\164\55\276\6" "\370\327\241\366\367\172\17\167\55\162\216\127\132\231\134\206" "\166\263\257\66\331\157\267\270\7\240\362\364\171\316\101\23" "\103\153\354\377\241\366\77\266\270\23\373\274\337\243\231\304" "\256\105\53\310\147\252\74\302\101\77\365\51\242\251\222\116" "\114\236\322\264\22\365\30\63\124\326\121\254\103\312\372\273" "\303\337\217\116\202\203\166\250\76\74\115\326\115\173\62\172" "\363\45\46\327\44\211\205\115\362\223\116\241\134\113\320\16" "\333\153\74\232\11\202\33\0\14\346\31\56\306\153\16\62" "\266\276\212\332\242\243\71\226\354\155\354\253\221\221\366\242" "\54\3\225\165\137\225\366\344\340\54\244\267\175\330\204\26" "\333\102\276\240\274\273\105\332\17\41\75\4\322\51\316\151" "\173\253\313\127\44\275\267\232\34\271\367\135\3\232\137\241" "\153\243\177\131\100\3\162\144\376\76\102\23\266\173\320\365" "\307\347\106\302\375\62\371\50\360\175\13\277\12\71\50\275" "\350\53\367\377\141\164\122\177\1\332\161\357\353\31\247\123" "\367\101\172\352\72\17\167\3\162\226\366\266\157\177\361\376" "\107\150\107\362\102\373\355\313\377\3\64\206\314\105\165\361" "\235\130\136\3\31\157\100\247\262\227\241\353\331\302\276\164" "\65\322\371\323\23\305\211\376\37\353\203\27\131\174\42\361" "\72\226\347\45\350\24\362\375\150\42\156\161\54\55\324\356" "\366\211\340\256\105\116\327\76\126\306\327\5\361\176\142\171" "\373\24\172\246\300\341\176\202\364\364\62\324\326\102\371\57" "\300\333\75\156\151\136\200\372\356\132\362\213\237\271\262\255" "\340\244\135\155\274\260\357\253\75\334\365\310\166\0\75\173" "\340\26\35\134\171\136\353\321\36\116\266\171\341\101\362\343" "\365\365\110\357\272\170\337\13\344\165\160\253\225\251\303\55" "\44\70\335\103\276\256\307\261\115\27\26\346\336\11\334\146" "\262\35\211\46\65\374\172\330\30\244\271\261\305\265\270\26" "\67\22\270\360\373\54\244\163\316\106\343\325\27\320\170\134" "\144\33\342\341\117\101\372\154\11\362\107\276\346\247\141\260" "\11\155\276\312\275\177\25\350\232\173\55\376\211\110\347\334" "\206\167\73\122\220\237\120\347\26\215\327\241\36\236\104\13" "\146\223\1\357\263\55\337\356\273\314\16\210\225\145\327\370" "\210\306\346\67\223\155\126\213\331\144\211\4\342\64\65\354" "\302\173\11\352\315\302\337\212\164\270\73\275\231\262\147\212" "\306\264\325\310\347\334\101\244\36\302\266\226\220\337\247\71" "\222\374\233\256\107\172\270\137\243\172\161\337\121\76\6\237" "\43\377\176\155\62\135\203\237\220\135\57\30\243\357\52\53" "\164\345\376\67\113\322\210\102\17\76\347\356\116\13\362\235" "\266\242\66\225\221\44\164\217\347\323\125\361\263\313\370\14" "\223\206\110\234\260\74\142\375\220\10\155\122\57\47\322\150" "\302\77\36\165\272\167\43\273\175\43\322\113\276\16\31\47" "\363\333\227\241\305\313\125\26\346\217\5\251\376\233\322\363" "\203\246\161\120\344\43\307\370\254\44\75\37\1\52\217\375" "\3\76\105\376\353\50\341\36\104\276\334\2\64\137\322\101" "\363\254\7\40\37\372\15\110\337\70\372\42\377\272\310\207" "\36\4\16\22\155\240\7\35\340\154\267\263\320\246\377\273" "\310\157\304\355\320\233\37\75\154\134\41\30\315\317\321\174" "\301\12\324\26\56\216\225\241\137\116\3\304\25\371\332\35" "\124\337\347\242\272\71\263\142\274\221\162\22\132\134\213\333" "\323\160\170\277\73\176\130\200\3\55\260\376\301\176\357\217" "\46\303\142\164\47\42\205\260\1\233\164\117\50\274\333\221" "\43\355\57\306\372\212\343\357\220\23\162\23\231\2\1\317" "\0\16\34\256\161\274\367\10\274\64\227\221\77\365\25\205" "\72\6\155\121\71\171\270\330\144\174\270\350\72\213\156\247" "\234\60\75\17\126\243\301\156\136\2\77\7\71\374\17\6" "\370\137\140\273\227\35\157\17\277\3\55\12\314\107\223\236" "\347\243\111\167\277\114\176\216\14\215\205\150\161\350\307\1" "\177\347\374\114\237\162\365\360\267\240\53\310\26\42\303\363" "\313\344\47\33\226\43\43\157\34\115\30\270\23\104\135\145" "\352\311\223\333\315\32\244\127\10\11\232\313\351\56\363\223" "\254\154\302\35\363\217\240\276\160\75\371\253\325\100\33\3" "\334\256\333\205\164\327\355\351\164\57\104\335\205\267\120\24" "\31\210\335\111\327\165\344\167\54\115\132\32\105\371\114\225" "\107\321\240\137\207\117\221\341\20\353\73\225\344\111\324\121" "\310\147\35\232\170\273\236\154\241\241\127\271\77\207\256\177" "\305\276\277\74\115\26\347\165\23\132\220\17\151\46\311\277" "\305\344\40\266\120\352\177\266\133\272\376\11\310\324\242\353" "\174\272\235\67\377\63\201\26\335\302\135\217\263\321\146\214" "\317\243\15\30\123\330\25\100\221\362\116\351\267\52\365\347" "\140\26\322\103\156\61\373\245\250\357\164\135\21\157\77\117" "\306\166\25\42\207\357\55\366\373\44\114\137\30\376\254\110" "\134\120\37\232\242\170\321\365\171\46\353\232\2\232\327\241" "\211\130\42\64\241\356\204\370\346\32\310\227\311\375\144\273" "\206\217\246\302\46\240\204\154\261\70\173\7\151\165\310\166" "\71\56\44\357\24\156\43\73\115\34\362\334\116\246\277\17" "\16\170\76\112\326\256\367\243\373\246\205\230\214\333\310\116" "\0\207\374\72\344\67\121\25\365\377\60\336\7\321\351\242" "\360\204\122\307\243\161\116\376\134\373\277\242\200\337\376\11" "\334\243\236\214\113\54\77\176\74\367\316\360\12\362\47\324" "\167\220\335\334\260\246\50\75\13\273\3\215\221\157\300\253" "\233\130\331\126\160\322\336\204\166\74\203\167\362\310\160\147" "\240\311\144\220\15\370\55\262\353\12\157\305\66\74\170\351" "\136\203\46\245\277\27\244\177\46\231\115\171\233\311\35\266" "\313\17\220\365\131\207\73\333\362\231\313\213\27\357\146\164" "\152\300\341\176\203\312\352\10\144\323\354\100\345\374\31\217" "\306\311\341\140\143\213\153\161\55\156\44\160\141\37\167\376" "\335\253\321\242\350\74\154\361\303\323\1\53\361\66\146\70" "\60\374\135\344\257\255\334\6\54\350\301\157\33\47\323\335" "\107\33\237\337\4\162\204\151\107\307\271\56\322\4\17\57" "\174\77\144\303\37\141\337\373\25\305\211\361\215\214\1\176" "\136\267\20\267\113\13\241\104\346\112\145\133\223\147\54\215" "\174\160\234\107\162\114\54\250\273\122\231\74\134\325\372\71" "\6\215\215\173\333\377\127\340\75\243\21\241\237\136\140\107" "\175\300\55\256\236\223\240\7\331\313\176\32\307\46\322\230" "\347\207\107\360\125\175\316\335\235\26\264\351\354\372\200\276" "\254\115\364\343\147\317\24\15\344\373\120\330\137\40\340\123" "\140\157\166\321\346\242\305\345\352\327\77\36\165\72\320\342" "\116\7\315\235\341\341\246\310\374\366\237\222\265\305\105\24" "\57\116\146\154\146\206\306\101\221\217\34\343\263\232\274\377" "\23\322\374\20\55\374\370\174\174\10\375\327\121\302\55\107" "\163\46\67\220\235\360\74\320\243\337\307\302\146\173\76\157" "\312\277\56\362\241\7\201\203\104\33\350\101\7\370\67\174" "\200\354\260\260\316\173\361\243\207\215\253\142\313\354\100\163" "\65\27\243\61\373\321\130\31\106\362\71\10\134\221\257\335" "\41\233\147\10\27\272\13\175\164\207\160\260\321\103\266\270" "\26\327\342\6\213\303\373\135\344\270\124\125\130\131\264\342" "\301\355\104\262\153\231\234\102\17\25\307\303\310\160\233\203" "\46\5\117\104\247\320\266\4\262\371\3\303\334\20\147\141" "\261\323\244\261\174\346\203\22\64\221\62\11\161\163\221\362" "\336\67\210\273\203\374\240\74\237\356\323\220\323\151\7\141" "\363\320\342\151\170\272\70\204\345\344\363\173\50\132\374\230" "\65\35\255\70\376\174\362\213\324\223\150\247\236\203\360\352" "\122\320\202\356\35\4\140\370\11\362\127\52\57\243\333\200" "\365\341\150\362\3\135\370\135\166\65\160\235\166\232\272\242" "\30\124\146\271\253\316\274\374\354\215\214\16\337\0\3\135" "\337\370\136\373\175\74\335\213\337\33\22\162\155\210\344\41" "\204\175\350\356\37\207\7\64\13\311\73\362\251\366\136\64" "\350\7\204\305\64\25\170\124\111\53\107\223\150\27\41\237" "\153\55\174\157\164\315\327\211\175\310\175\60\232\4\331\17" "\325\357\141\45\262\37\214\275\257\33\320\74\104\374\172\242" "\375\50\277\22\70\224\55\165\275\360\41\344\215\153\307\153" "\66\331\356\312\120\357\304\340\225\344\27\344\362\42\304\145" "\332\111\367\4\304\42\322\233\132\326\222\115\66\375\12\55" "\120\306\370\202\312\322\135\155\344\73\57\163\220\76\130\210" "\164\377\342\110\134\167\275\360\353\355\73\166\275\160\131\336" "\174\31\216\110\320\304\164\147\354\32\371\351\164\152\216\71" "\245\64\366\177\45\72\225\172\23\52\233\260\235\272\211\272" "\331\344\27\350\247\360\26\53\3\236\123\136\274\171\1\317" "\111\362\372\52\34\117\143\62\116\221\355\32\17\371\105\353" "\44\321\377\303\170\277\104\213\367\317\312\10\162\361\72\101" "\36\13\323\52\300\371\273\336\347\320\175\102\326\155\376\12" "\355\13\177\143\125\54\337\341\142\361\176\150\242\160\12\351" "\236\143\75\134\116\376\12\62\57\100\343\322\174\373\366\117" "\216\56\101\355\164\41\352\257\373\42\235\267\334\376\207\127" "\136\37\152\274\17\12\322\137\152\162\256\64\176\363\203\170" "\117\107\372\51\134\134\236\302\353\127\221\272\76\224\174\133" "\365\235\370\56\30\101\133\272\305\265\270\26\227\341\142\172" "\171\76\332\354\161\251\37\311\323\1\253\320\370\115\4\357" "\116\272\56\46\175\322\25\12\306\167\373\276\36\351\247\103" "\15\275\206\304\325\267\176\36\354\257\273\245\11\344\307\134" "\112\266\350\123\70\336\133\170\331\111\312\170\324\356\74\204" "\343\343\176\150\362\177\75\231\17\134\152\177\224\245\137\323" "\166\352\51\334\313\217\33\63\103\233\72\226\176\70\46\26" "\325\135\251\114\1\256\354\44\362\42\144\43\72\37\141\5" "\332\274\324\45\223\301\201\310\46\167\33\320\36\104\33\312" "\217\40\77\161\355\303\76\226\306\32\373\77\37\265\263\130" "\32\307\340\315\211\104\360\125\175\316\335\235\166\66\262\33" "\143\364\121\260\270\375\370\331\314\20\15\216\256\300\157\111" "\365\215\122\332\134\264\270\134\375\372\307\243\116\167\16\32" "\13\156\245\373\244\253\133\264\131\213\35\136\60\70\64\340" "\121\305\227\36\46\215\17\145\343\40\250\77\75\13\351\310" "\153\22\64\40\177\347\32\164\232\324\321\24\371\257\243\204" "\73\23\335\342\360\31\262\247\331\242\372\303\363\161\122\376" "\165\221\17\75\10\34\201\154\375\350\200\260\116\347\246\170" "\107\322\55\362\243\207\215\53\4\257\16\17\107\175\165\5" "\305\247\323\253\226\101\257\270\42\137\173\147\57\361\272\32" "\147\13\55\264\60\222\60\206\234\334\57\330\357\257\330\147" "\214\374\143\316\343\144\106\113\356\44\154\0\357\41\163\72" "\307\320\211\253\167\5\274\346\131\172\343\300\137\241\153\36" "\116\40\133\154\11\141\34\273\366\66\200\345\104\166\117\67" "\0\143\164\347\337\301\53\320\151\246\73\203\360\373\311\117" "\46\76\321\302\312\340\71\150\262\340\24\202\153\77\42\60" "\227\354\135\121\320\211\100\167\352\262\314\210\6\170\14\260" "\227\367\177\47\331\225\271\20\277\176\345\245\44\256\132\102" "\312\377\336\340\377\104\101\372\7\41\143\66\5\37\107\345" "\266\26\170\47\335\213\257\143\5\37\7\156\261\365\235\306" "\347\211\306\327\301\54\124\146\377\222\310\317\66\124\106\353" "\3\334\5\144\327\210\236\216\275\71\150\360\114\324\76\377" "\70\220\351\261\26\36\56\340\206\360\170\362\3\355\172\340" "\177\7\64\157\42\362\376\117\0\147\121\342\270\365\0\316" "\100\155\62\255\77\220\115\124\114\357\22\365\340\277\333\367" "\66\144\44\235\217\267\41\241\46\374\220\354\335\323\107\320" "\65\351\145\364\77\6\76\34\204\137\107\66\31\343\303\32" "\262\353\162\253\302\65\350\364\247\203\233\320\51\352\327\341" "\235\42\363\140\2\170\73\272\232\354\73\1\156\47\146\170" "\171\160\71\351\253\224\122\260\11\351\142\37\376\212\154\3" "\115\10\147\3\117\100\233\145\226\1\377\120\300\173\34\351" "\231\365\150\207\377\3\136\370\55\250\374\176\217\234\371\20" "\56\101\375\356\43\350\372\336\213\213\263\221\204\17\243\223" "\202\51\135\26\203\73\115\256\23\313\10\33\204\353\220\336" "\130\207\367\356\216\7\117\266\157\267\10\347\300\55\310\305" "\140\7\360\124\373\35\56\170\355\4\376\210\114\147\125\261" "\335\267\223\235\60\175\112\5\372\252\360\54\244\147\327\25" "\320\164\235\374\350\1\166\222\335\234\21\352\136\310\66\42" "\55\43\137\306\333\310\166\240\306\26\16\103\331\156\61\36" "\13\321\304\371\177\324\220\161\125\360\377\21\64\71\173\45" "\371\76\4\32\203\357\7\76\146\270\73\55\354\102\373\16" "\373\325\173\120\277\176\137\20\176\217\321\176\302\170\154\15" "\360\137\106\47\112\176\33\204\277\7\357\155\247\10\134\102" "\376\352\361\60\176\13\55\264\260\353\302\166\164\102\342\40" "\340\337\355\373\221\200\346\114\272\155\52\7\177\215\156\224" "\330\210\164\345\52\62\373\45\134\100\211\55\250\270\337\107" "\32\217\53\201\227\43\275\164\163\211\354\316\276\175\7\362" "\31\72\150\223\351\177\105\366\317\40\154\152\7\61\377\62" "\264\267\157\41\273\51\344\373\3\226\147\120\340\66\12\376" "\351\214\112\121\16\137\103\267\305\70\37\341\233\300\33\23" "\264\263\221\235\175\32\331\255\22\217\3\76\211\154\341\217" "\44\342\175\35\55\350\177\337\376\137\216\306\351\30\34\215" "\332\162\14\352\370\234\273\63\55\310\67\272\203\364\234\100" "\12\172\365\263\167\167\50\322\61\375\372\307\243\116\367\74" "\324\177\237\14\374\23\172\142\304\155\130\275\15\170\33\72" "\135\366\102\57\316\253\261\305\111\203\52\276\364\60\151\252" "\202\33\127\307\121\176\266\242\215\37\41\70\37\161\12\55" "\130\372\7\30\212\374\327\121\302\255\5\236\215\16\120\270" "\71\227\77\41\323\35\173\221\75\267\7\305\376\165\221\17" "\75\10\134\223\20\332\33\323\157\325\127\200\42\77\172\330" "\70\37\122\362\357\104\375\371\64\264\201\170\173\202\56\364" "\275\7\201\53\362\265\147\223\35\56\10\165\161\241\217\276" "\61\110\144\43\114\257\326\266\270\26\327\342\6\213\303\377" "\135\262\133\164\3\331\73\167\67\223\135\377\350\323\335\202" "\166\5\71\45\35\333\145\362\52\362\127\302\270\335\303\41" "\375\115\310\361\130\204\116\60\355\100\13\61\147\143\273\142" "\3\271\357\103\223\373\241\334\307\31\256\160\267\113\235\135" "\275\105\345\144\337\337\43\230\370\267\360\57\33\156\137\244" "\60\57\102\16\134\310\323\347\165\12\232\74\355\132\224\63" "\374\3\250\114\346\241\135\340\337\264\164\122\371\15\353\375" "\101\124\366\363\320\144\306\5\330\144\210\327\176\76\210\46" "\222\227\32\357\360\236\374\7\211\30\136\206\277\332\362\271" "\302\370\177\216\374\133\163\17\241\353\10\347\243\335\277\167" "\21\274\111\133\124\356\144\47\137\353\354\146\352\172\17\66" "\300\27\305\275\37\225\363\317\320\242\352\162\264\50\176\43" "\52\333\147\240\62\274\227\374\65\320\127\140\127\43\106\340" "\62\364\16\147\152\367\323\52\113\353\373\36\315\101\250\117" "\274\33\325\315\53\120\377\70\275\200\317\231\144\157\277\31" "\212\240\0\0\11\361\111\104\101\124\63\244\150\142\171\56" "\53\23\367\346\203\157\230\325\111\53\267\363\313\276\67\243" "\162\131\202\256\161\276\275\204\317\361\144\327\326\125\225\333" "\307\137\142\377\57\313\221\245\171\55\106\355\336\247\161\357" "\127\36\205\332\363\174\373\275\236\374\73\310\125\312\174\11" "\152\153\147\243\372\175\37\62\236\46\311\277\261\30\343\165" "\47\371\162\377\61\152\177\207\240\362\171\72\322\255\251\367" "\56\122\372\355\225\300\335\150\221\173\201\345\355\36\244\243" "\122\175\347\154\264\20\365\336\10\56\214\163\272\245\375\211" "\10\217\16\301\65\322\26\367\71\150\67\272\63\100\27\330" "\377\203\153\346\155\71\52\357\25\5\162\166\215\231\6\227" "\140\223\160\211\135\246\121\250\241\257\302\377\343\350\104\344" "\162\364\236\150\330\116\335\273\334\147\4\162\271\367\250\347" "\243\335\332\376\316\353\353\320\51\244\371\150\203\217\317\363" "\207\144\155\372\243\330\73\312\45\73\146\257\102\143\333\122" "\164\75\123\121\137\212\365\377\50\316\302\146\243\272\72\72" "\22\257\254\276\253\312\161\3\371\267\141\326\7\361\256\105" "\175\364\22\362\343\331\267\255\214\226\320\135\216\261\162\172" "\30\265\357\271\164\337\366\201\375\177\212\27\346\354\245\105" "\150\74\10\333\331\205\26\366\251\40\35\120\175\354\44\323" "\161\137\104\372\344\322\200\326\177\323\365\1\354\304\275\307" "\347\113\144\157\321\372\361\76\100\176\167\277\217\233\336\131" "\357\227\107\220\317\205\101\72\111\30\101\133\272\305\265\270" "\26\227\341\302\76\176\65\322\45\333\220\75\173\13\322\253" "\216\356\154\244\213\46\220\115\161\34\25\336\76\257\61\276" "\207\343\312\247\221\316\271\221\356\133\52\302\270\61\373\326" "\101\314\316\115\311\331\313\365\302\176\374\306\344\211\361\256" "\20\236\52\237\236\171\172\343\342\225\150\214\270\312\245\123" "\220\176\227\35\126\120\167\245\62\171\270\262\372\71\15\357" "\212\174\117\26\377\343\323\307\336\175\75\20\315\155\34\237" "\220\353\114\272\67\34\245\322\70\14\155\120\336\233\256\10" "\235\16\365\174\316\335\231\26\64\7\164\164\204\266\254\115" "\364\342\147\307\370\14\223\6\362\355\244\253\277\204\174\142" "\341\51\132\252\371\366\375\370\307\243\116\27\5\303\275\303" "\362\374\15\264\11\174\21\322\33\367\221\177\73\374\225\224" "\373\322\303\244\311\147\45\236\267\72\355\363\101\262\133\41" "\302\271\335\42\377\165\224\160\133\220\277\274\30\351\224\35" "\310\347\72\10\371\167\127\220\177\102\257\310\277\56\362\241" "\7\201\43\310\113\77\72\300\267\67\252\364\175\77\335\42" "\77\172\330\270\102\60\232\117\242\265\216\171\310\137\276\301" "\303\25\371\336\203\300\101\332\327\356\240\15\140\316\156\16" "\355\275\124\274\221\162\22\132\134\213\333\323\160\170\277\103" "\247\224\200\156\73\331\256\236\155\4\247\312\74\47\340\176" "\244\20\306\311\277\51\346\40\134\360\362\337\164\365\25\307" "\12\164\252\163\334\322\373\64\32\374\176\205\355\354\14\34" "\256\357\341\55\164\172\151\136\214\275\263\131\301\140\52\204" "\12\345\344\160\133\210\277\211\360\64\264\333\322\235\366\274" "\205\274\41\226\221\147\141\356\312\213\360\343\360\207\240\72" "\165\47\60\257\240\140\22\301\305\365\360\153\320\202\326\4" "\52\353\137\222\137\324\71\32\31\150\156\102\144\75\335\127" "\21\116\20\71\145\154\370\105\150\102\177\207\175\256\43\177" "\355\341\213\321\2\345\44\132\354\15\337\154\354\24\225\173" "\44\275\102\250\301\43\125\307\127\240\201\156\5\162\236\235" "\334\157\101\213\135\23\150\101\66\274\342\365\41\362\327\54" "\373\260\14\71\371\163\274\1\325\377\70\143\317\57\67\220" "\3\270\331\144\330\202\46\275\375\64\303\217\177\75\132\212" "\46\326\306\252\364\33\327\217\313\322\212\263\361\150\354\373" "\50\244\113\46\121\373\130\123\201\317\77\223\67\222\352\344" "\353\100\373\377\334\224\134\221\364\316\13\150\100\13\232\77" "\107\13\14\73\355\367\364\133\307\65\234\27\320\142\313\117" "\214\317\66\144\4\136\102\136\207\307\170\271\205\310\105\106" "\263\12\355\300\35\67\372\355\110\137\56\10\322\313\345\73" "\41\323\271\150\361\167\312\276\317\213\320\370\60\33\365\223" "\331\21\134\30\147\1\352\77\207\4\144\113\120\73\210\275" "\31\275\201\340\35\127\364\76\345\206\204\114\251\274\375\214" "\32\355\45\340\273\206\374\106\25\350\156\27\135\320\213\276" "\262\377\357\260\364\266\241\361\55\224\361\64\64\156\334\104" "\376\155\337\345\26\66\101\367\242\345\62\324\256\266\221\55" "\162\373\143\361\315\136\274\43\142\171\15\144\134\211\306\372" "\155\150\302\52\274\236\67\37\305\303\25\214\205\176\370\51" "\330\225\366\341\70\21\343\135\201\137\210\133\205\46\64\47" "\254\134\126\5\361\56\66\334\315\344\307\360\175\310\354\226" "\317\27\245\147\141\47\240\305\210\230\15\204\361\362\257\70" "\162\172\166\47\162\250\302\166\346\336\317\235\336\261\357\341" "\216\65\234\173\147\371\345\366\377\250\200\366\66\164\5\42" "\250\234\157\15\370\34\147\361\302\53\236\267\222\356\73\263" "\350\176\223\256\23\153\103\65\372\305\306\40\170\143\213\153" "\161\55\156\44\160\141\37\137\102\166\105\352\103\330\165\203" "\36\335\117\221\56\334\27\335\160\264\223\364\25\302\4\161" "\363\101\161\232\230\377\160\16\336\151\333\2\277\16\272\355" "\133\367\211\331\271\105\162\226\135\137\33\205\240\114\373\226" "\47\41\133\54\274\350\123\45\277\205\341\136\32\77\102\343" "\334\365\5\274\223\143\105\111\335\25\312\344\341\212\256\177" "\136\215\46\321\123\327\336\207\62\205\357\276\72\270\227\164" "\31\76\315\322\110\235\206\11\323\270\217\310\123\30\36\276" "\216\317\271\73\323\276\201\156\135\345\240\112\333\256\353\147" "\307\370\14\223\206\110\34\142\370\242\360\40\254\114\307\304" "\372\126\257\376\361\256\100\327\5\206\273\25\335\2\270\31" "\371\0\216\307\1\21\36\125\174\351\141\322\144\101\361\274" "\25\216\45\1\215\77\76\205\176\315\73\110\373\257\243\204" "\173\75\331\106\367\133\220\277\163\30\272\331\152\2\325\365" "\1\36\175\221\177\275\202\264\17\75\10\34\101\136\372\325" "\1\135\363\364\61\336\221\164\213\374\350\141\343\12\301\150" "\156\104\67\305\355\64\76\176\374\42\337\173\20\70\110\373" "\332\35\264\310\77\101\334\336\113\305\343\16\64\301\346\76" "\376\256\201\26\327\342\132\334\140\161\370\277\253\70\56\51" "\10\350\122\312\274\22\324\115\323\276\137\201\167\215\255\307" "\343\76\154\127\151\5\203\251\112\172\67\24\225\123\135\47" "\264\10\337\113\234\335\21\137\124\356\165\370\365\53\223\341" "\126\242\135\203\213\123\164\6\237\3\176\123\125\256\252\362" "\215\32\115\217\372\241\220\246\337\176\132\205\156\46\352\244" "\101\136\105\47\113\7\221\136\243\145\320\157\234\72\161\33" "\246\211\71\43\51\136\215\264\345\220\246\127\176\303\304\105" "\302\127\21\177\273\74\32\57\146\113\364\20\257\20\372\314" "\163\235\61\276\47\333\252\11\372\52\270\36\371\270\311\341" "\272\361\46\203\260\216\175\317\242\102\337\212\360\34\45\133" "\272\305\265\270\26\227\341\302\76\16\262\207\375\153\6\361" "\351\123\320\320\30\352\344\170\30\335\32\62\17\55\306\354" "\50\342\125\327\76\351\305\377\153\312\66\356\227\367\60\342" "\46\354\231\252\74\72\301\167\130\56\207\243\372\134\131\220" "\126\255\174\224\341\146\202\336\213\63\116\366\224\1\150\1" "\340\321\272\74\133\332\112\161\163\155\253\16\377\231\244\251" "\332\7\372\321\175\115\372\206\273\62\235\341\312\346\205\106" "\276\315\314\24\315\256\202\53\241\357\322\23\63\55\373\40" "\165\300\114\347\255\11\334\50\312\344\341\122\276\166\131\35" "\106\343\215\241\35\215\117\364\302\47\200\103\204\34\373\142" "\213\153\161\55\156\240\270\61\160\235\161\154\314\17\163\20" "\13\213\101\21\135\125\36\275\246\351\321\77\200\336\74\274" "\314\302\136\206\336\60\173\174\23\62\32\315\267\73\164\216" "\110\225\123\212\117\31\377\136\312\176\117\301\27\225\173\35" "\176\375\312\344\341\216\107\273\344\327\241\353\73\177\213\234" "\335\47\3\377\3\355\220\353\240\135\106\277\257\323\376\233" "\310\303\60\151\232\320\17\41\115\23\272\244\51\271\253\322" "\16\242\34\206\305\153\230\64\115\304\151\132\246\32\64\140" "\357\100\125\320\363\35\240\357\266\34\322\364\312\157\230\70" "\13\337\211\336\66\272\10\135\315\364\247\300\352\52\374\354" "\173\76\272\252\351\235\300\254\32\361\372\356\323\25\160\20" "\171\17\54\21\57\331\16\352\312\60\210\72\354\201\317\142" "\262\253\330\237\137\63\375\173\201\27\1\67\272\162\354\320" "\141\214\261\347\241\147\21\36\123\125\336\21\264\245\133\134" "\213\153\161\236\157\31\364\361\307\240\23\45\373\342\155\216" "\205\306\154\362\44\4\162\274\4\371\204\213\114\236\167\1" "\347\247\170\325\265\117\172\361\377\232\262\215\373\345\75\214" "\270\11\173\6\252\215\247\35\243\163\337\141\271\314\101\276" "\327\173\201\275\207\141\73\315\4\275\27\347\247\350\106\227" "\67\242\23\131\227\240\167\6\137\330\264\177\263\47\320\226" "\304\235\215\327\266\352\360\237\111\232\252\175\240\37\335\327" "\244\157\270\53\323\15\273\274\166\67\232\135\5\127\102\337" "\245\47\146\132\366\101\352\200\231\316\133\23\270\121\224\311" "\160\105\276\66\244\155\246\144\274\130\132\245\310\26\327\342" "\132\134\263\70\367\73\106\137\330\121\33\220\243\37\372\210" "\334\157\42\177\345\340\35\144\357\320\366\55\143\225\162\112" "\361\51\343\337\113\331\357\51\370\262\262\255\312\257\137\36" "\1\156\5\172\23\357\136\264\343\170\12\355\160\333\210\26" "\144\147\45\342\365\45\337\250\321\64\241\37\102\232\46\164" "\111\123\162\127\245\35\104\71\14\213\327\60\151\232\210\123" "\47\156\303\64\323\73\14\113\364\174\51\135\204\66\366\351" "\212\77\252\66\104\44\374\54\262\253\231\356\104\157\135\127" "\342\147\337\237\45\176\335\156\131\274\112\320\147\236\353\214" "\361\75\331\126\115\320\127\301\365\300\147\2\135\33\275\264" "\207\364\77\104\360\146\255\175\117\141\357\73\126\225\167\124" "\332\172\213\153\161\55\56\216\163\272\322\276\227\343\75\377" "\122\225\127\77\162\44\344\251\225\116\135\373\244\27\377\257" "\311\74\364\303\173\30\161\23\366\114\337\351\173\174\306\201" "\257\27\244\125\310\247\127\71\206\111\357\305\131\206\336\41" "\164\117\367\134\205\116\160\67\66\346\357\111\264\45\161\163" "\155\253\16\377\231\244\251\332\7\372\321\175\115\372\206\273" "\62\335\260\313\153\167\243\331\125\160\45\364\135\172\142\246" "\145\37\244\16\230\351\274\65\201\33\105\231\14\127\344\153" "\27\325\141\62\336\377\7\17\40\0\77\147\261\65\312\0" "\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/fontemboss.png", 19286, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\7\135\0\0\0\21\10\6\0\0\0\226\320\265" "\127\0\0\0\11\160\110\131\163\0\0\16\304\0\0\16" "\304\1\225\53\16\33\0\0\40\0\111\104\101\124\170\234" "\355\135\151\170\24\305\326\176\173\146\62\223\215\231\144\262" "\1\331\111\40\100\330\41\201\310\22\370\56\102\100\202\202" "\242\27\101\26\27\100\121\331\67\131\104\104\145\23\101\21" "\121\21\21\104\166\10\273\134\274\42\210\54\262\57\11\141" "\15\20\40\310\222\20\110\40\373\371\176\164\167\254\351\164" "\317\164\222\111\214\336\251\347\231\147\146\352\175\353\324\251" "\123\325\125\165\272\253\253\0\205\100\40\162\140\16\314\201" "\125\16\46\376\226\343\133\223\141\17\75\312\303\57\255\336" "\345\325\121\115\176\112\162\154\311\57\213\355\377\127\160\133" "\266\125\53\257\274\62\112\333\216\313\222\316\36\145\250\114" "\216\75\372\7\51\307\36\165\140\57\275\325\162\53\302\16" "\225\45\253\62\71\366\110\123\232\264\25\305\121\333\317\333" "\153\314\51\257\274\312\304\312\53\257\254\143\267\275\256\351" "\312\302\52\232\257\6\253\214\74\112\73\137\52\357\65\353" "\300\34\230\3\373\353\61\173\315\333\53\322\157\263\45\253" "\264\363\23\173\217\211\122\216\275\364\121\303\251\210\264\25" "\65\77\122\123\167\225\61\176\126\6\137\115\32\31\374\6" "\200\127\113\41\353\65\41\215\65\356\47\0\110\370\314\125" "\41\167\52\200\207\0\326\3\50\124\241\203\154\250\50\156" "\131\322\112\70\262\66\226\221\123\302\266\152\354\132\12\175" "\212\365\20\376\27\347\47\374\57\41\277\74\175\237\204\67" "\25\62\165\254\266\75\252\261\225\14\117\261\35\252\321\115" "\41\137\331\140\217\176\242\212\266\231\322\344\245\126\116\251" "\70\177\27\254\52\350\120\32\114\355\70\130\226\76\340\257" "\56\233\75\260\252\250\123\245\333\240\52\51\343\300\34\330" "\77\35\53\215\343\142\157\75\312\303\57\255\336\225\341\340" "\225\325\201\265\367\200\367\117\302\155\331\126\255\274\362\312" "\50\253\3\147\157\47\261\52\161\354\321\77\110\71\25\340" "\330\224\131\216\132\156\105\330\241\262\144\125\46\307\36\151" "\112\223\266\242\70\152\373\171\173\73\2\125\165\16\141\117" "\171\145\35\273\355\165\115\127\26\126\321\174\65\130\145\344" "\121\332\371\122\171\257\131\7\346\300\34\330\137\217\331\153" "\336\136\221\176\233\55\131\245\235\237\330\173\114\224\162\354" "\245\217\32\116\105\244\255\250\371\221\232\272\253\214\361\263" "\62\370\152\322\110\361\131\263\146\155\363\363\363\373\103\255" "\54\137\137\337\333\163\346\314\331\152\205\333\311\305\305\45" "\147\354\330\261\311\143\307\216\115\166\161\161\171\14\240\223" "\25\271\32\216\343\212\372\366\355\233\350\351\351\371\160\322" "\244\111\247\154\350\100\222\157\153\334\355\0\12\204\157\233" "\145\123\33\112\333\376\225\154\54\225\43\147\133\65\166\225" "\310\221\265\17\201\210\325\203\100\304\346\107\40\222\223\57" "\310\266\220\131\6\77\124\261\216\325\266\107\65\266\222\360" "\254\266\103\65\272\51\224\125\321\276\122\135\324\140\112\274" "\252\322\146\112\221\227\252\162\225\205\363\167\301\252\202\16" "\245\301\324\216\203\145\231\377\374\325\145\263\7\126\25\165" "\252\164\33\124\45\145\34\230\3\373\247\143\245\161\134\354" "\255\107\171\370\245\325\273\62\34\274\262\72\260\366\36\360" "\376\111\270\55\333\252\225\127\136\31\145\165\340\112\223\256" "\62\46\267\366\344\330\243\177\220\162\354\355\330\224\107\216" "\132\156\105\330\241\262\144\125\46\307\36\151\112\223\266\242" "\70\152\373\171\173\73\2\125\165\16\141\117\171\145\35\273" "\355\165\115\127\26\126\321\174\65\130\145\344\121\332\371\122" "\171\257\131\7\346\300\34\330\137\217\331\350\227\65\152\144" "\225\107\17\45\175\112\43\253\264\363\23\173\217\211\122\116" "\31\365\261\366\51\223\316\266\70\225\75\77\122\123\167\225" "\61\176\126\6\137\115\232\22\145\47\152\100\104\357\253\225" "\105\104\323\211\50\122\211\113\104\201\104\364\25\21\75\41" "\174\276\44\242\100\45\271\104\304\21\321\72\42\212\43\242" "\217\211\50\332\206\276\33\331\157\153\134\255\126\133\370\336" "\173\357\35\327\152\265\205\266\270\245\11\245\155\377\112\66" "\226\51\133\11\333\252\261\253\44\57\131\373\20\210\130\75" "\204\377\305\371\11\377\113\310\27\342\55\144\226\326\17\265" "\126\307\152\333\243\32\133\251\265\227\132\335\24\362\125\264" "\257\55\73\330\12\125\261\315\250\315\113\155\271\312\302\371" "\13\261\235\340\27\155\154\126\223\356\57\320\257\134\230\332" "\161\260\54\363\237\277\272\154\366\300\252\242\116\225\156\203" "\252\244\214\3\163\140\377\164\114\164\314\30\7\15\342\267" "\104\106\44\200\107\302\357\160\0\217\45\62\46\3\50\22" "\322\146\303\162\213\23\21\53\2\60\221\221\371\14\200\173" "\12\272\275\10\40\113\310\347\25\205\62\20\303\177\23\300" "\25\6\273\52\304\225\50\63\200\174\45\173\50\5\65\16" "\236\4\153\17\340\1\23\137\35\300\105\360\3\174\76\200" "\63\340\355\310\246\363\206\140\143\41\356\377\204\62\345\3" "\310\3\160\34\100\0\203\67\0\220\54\140\5\0\222\0" "\324\123\320\363\145\374\131\277\42\36\56\304\111\77\42\356" "\1\140\233\240\123\41\200\133\0\272\62\270\334\247\210\301" "\43\0\44\12\372\345\1\70\5\40\214\301\175\0\34\26" "\260\34\0\7\1\4\313\331\264\74\23\0\265\34\1\17" "\3\220\2\336\236\251\0\32\311\244\325\0\30\5\340\62" "\370\266\136\10\336\106\307\1\364\260\221\347\130\360\166\32" "\245\220\277\364\223\57\344\323\116\42\257\3\200\113\202\236" "\331\0\276\262\41\307\342\332\263\122\177\322\66\140\13\7" "\54\257\175\22\354\61\124\46\57\271\140\221\227\102\35\111" "\365\221\13\337\0\110\120\301\23\361\173\0\146\52\120\146" "\11\70\53\153\266\15\275\0\240\5\370\353\121\274\136\117" "\201\277\106\331\174\345\352\367\70\54\257\13\0\150\12\276" "\217\310\53\205\254\2\360\155\205\355\3\252\3\370\15\374" "\365\125\4\176\213\245\15\0\234\254\310\121\152\7\162\201" "\345\214\3\220\13\300\250\300\165\3\337\237\117\147\322\74" "\0\320\112\302\173\107\220\73\136\22\337\12\226\175\352\45" "\360\327\23\33\206\201\357\147\105\116\52\112\216\37\257\10" "\361\254\275\345\312\176\214\341\110\355\361\20\174\37\317\30" "\102\226\47\33\112\321\137\111\267\13\263\306\225\305\313\240" "\107\151\364\27\257\375\263\166\320\121\172\375\333\154\177\66" "\372\15\133\272\377\145\230\112\176\104\105\352\145\57\71\52" "\261\17\140\71\67\20\353\254\110\300\124\353\133\25\352\317" "\201\71\60\7\246\214\131\233\267\173\173\173\247\201\237\337" "\260\170\173\360\376\105\41\200\273\0\236\126\231\327\15\0" "\157\113\240\267\141\271\245\46\73\76\314\6\77\237\172\4" "\140\270\104\26\73\27\220\33\343\244\363\3\271\71\365\30" "\360\163\234\174\0\133\45\162\224\312\140\65\310\330\122\265" "\76\104\264\121\351\303\310\34\51\350\374\30\374\374\251\64" "\172\215\2\77\267\54\0\360\37\46\176\250\40\257\0\300" "\317\114\274\164\273\123\153\262\233\2\270\0\276\276\224\346" "\245\326\306\327\311\20\266\22\25\376\167\6\360\207\20\367" "\7\200\216\52\365\50\226\43\23\116\202\367\27\324\360\235" "\0\244\201\277\267\301\362\113\330\112\105\36\212\241\14\76" "\347\337\226\153\64\32\363\0\220\207\207\107\256\12\271\0" "\177\317\243\20\45\333\223\154\333\102\351\375\154\71\71\225" "\311\201\114\32\251\75\54\354\42\27\157\305\57\122\272\217" "\140\57\377\370\357\300\223\51\150\61\326\24\274\57\44\312" "\370\257\40\367\53\206\247\44\107\266\336\52\201\243\306\107" "\126\333\347\260\143\223\134\133\21\203\305\326\312\22\314\142" "\213\143\6\263\266\65\366\124\110\266\217\126\123\137\32\215" "\246\350\275\367\336\73\256\323\351\12\24\164\261\31\124\266" "\213\22\133\111\333\241\314\112\371\331\173\213\361\27\301\217" "\361\137\202\157\23\322\173\125\123\241\154\373\212\50\267\265" "\374\224\154\142\65\124\301\72\264\46\123\66\255\32\231\303" "\300\73\333\342\147\32\3\72\60\7\346\300\52\26\3\363" "\233\10\104\132\255\266\10\0\304\157\226\327\257\137\277\167" "\153\325\252\225\11\0\57\277\374\362\370\220\220\220\7\254" "\14\216\343\212\46\116\234\170\6\0\215\35\73\366\260\233" "\233\133\226\24\233\60\141\102\42\307\161\105\142\272\200\200" "\200\253\357\274\363\316\136\60\101\314\323\144\62\145\116\231" "\62\345\300\324\251\123\17\31\215\306\7\220\4\121\137\221" "\357\351\351\231\261\164\351\322\37\104\354\273\357\276\373\301" "\323\323\63\103\42\367\52\200\175\156\156\156\371\0\166\303" "\362\41\255\325\240\302\301\263\300\72\166\354\270\276\165\353" "\326\327\305\370\326\255\133\157\212\216\216\116\271\165\353\326" "\206\353\327\257\257\157\323\246\315\271\226\55\133\356\144\322" "\125\257\131\263\346\125\60\223\41\243\321\230\371\312\53\257" "\354\277\171\363\346\272\113\227\56\255\213\212\212\272\30\36" "\36\176\132\304\275\275\275\157\77\363\314\63\307\256\134\271" "\262\56\45\45\45\241\155\333\266\347\375\374\374\256\113\165" "\21\154\235\52\312\26\361\301\203\7\277\125\243\106\215\307" "\112\316\170\375\372\365\177\157\331\262\145\322\276\175\373\326" "\337\275\173\167\303\13\57\274\160\322\150\64\146\212\270\64" "\135\337\276\175\257\364\351\323\247\330\246\65\153\326\274\326" "\277\177\377\137\323\323\323\127\245\247\247\257\354\323\247\317" "\157\201\201\201\227\105\274\105\213\26\377\331\260\141\303\334" "\254\254\254\37\122\122\122\126\167\354\330\361\244\124\177\153" "\166\227\253\203\362\160\10\104\365\352\325\73\332\277\177\377" "\3\67\157\336\134\37\23\23\223\22\24\24\164\131\222\326" "\245\126\255\132\247\375\375\375\157\16\33\66\154\367\276\175" "\373\326\147\144\144\154\334\276\175\373\226\316\235\73\237\324" "\351\164\371\0\276\120\312\63\50\50\50\265\111\223\46\31" "\101\101\101\251\12\372\25\333\65\77\77\177\323\271\163\347" "\22\332\264\151\163\321\144\62\335\147\70\365\234\235\235\37" "\277\366\332\153\373\156\336\274\271\176\343\306\215\333\114\46" "\323\103\61\137\251\34\42\332\70\141\302\204\104\215\106\123" "\10\141\22\54\307\121\270\41\43\313\141\360\311\32\215\246" "\160\302\204\11\147\104\354\355\267\337\76\253\325\152\13\40" "\114\344\113\343\40\50\324\221\55\47\342\233\366\355\333\37" "\40\242\347\125\344\127\214\233\315\346\373\20\26\61\60\41" "\120\260\245\105\236\102\234\267\25\275\202\303\303\303\23\227" "\54\131\362\135\106\106\306\232\113\227\56\255\37\75\172\364" "\266\210\210\210\223\0\152\132\224\361\117\73\156\270\166\355" "\332\206\27\137\174\361\327\320\320\320\144\206\123\263\132\265" "\152\17\6\14\30\260\367\344\311\223\233\222\223\223\67\366" "\352\325\353\120\265\152\325\36\200\177\210\52\133\67\67\156" "\334\330\320\251\123\247\244\320\320\320\342\7\140\241\241\241" "\311\135\272\164\71\174\361\342\305\325\271\271\271\353\23\23" "\23\277\217\216\216\76\323\274\171\363\342\276\107\122\257\322" "\377\252\353\217\210\242\74\75\75\163\272\164\351\362\205\34" "\261\133\267\156\363\252\125\253\226\373\370\361\343\366\142\232" "\16\35\72\134\215\213\213\373\201\345\65\151\322\344\244\321" "\150\314\153\332\264\351\11\66\76\56\56\356\207\166\355\332" "\25\73\202\333\267\157\377\322\150\64\76\4\340\56\120\164" "\146\263\71\175\333\266\155\213\104\316\347\237\177\276\301\307" "\307\347\56\53\307\307\307\347\316\347\237\177\276\201\51\33" "\330\62\337\271\163\147\253\331\154\316\275\170\361\142\211\153" "\105\374\337\272\165\353\353\35\73\166\134\147\151\210\342\25" "\343\322\76\353\131\41\356\131\226\253\140\117\13\171\322\355" "\302\254\161\241\120\107\145\160\110\154\366\271\42\46\214\355" "\247\323\323\323\47\252\114\243\250\43\21\155\264\230\233\250" "\150\177\66\372\15\253\272\377\225\230\32\276\223\223\123\136" "\105\352\145\57\71\152\60\203\301\220\273\163\347\316\75\114" "\34\21\210\366\355\333\367\337\232\65\153\246\225\106\337\52" "\70\227\166\140\16\314\201\375\211\131\233\267\107\70\73\73" "\347\23\221\67\213\173\173\173\337\351\325\253\327\251\273\167" "\357\156\170\343\215\67\176\27\175\76\133\175\313\254\131\263" "\266\171\170\170\144\2\320\11\321\72\223\311\364\200\335\122" "\23\314\370\340\344\344\224\277\142\305\212\137\346\314\231\363" "\253\253\253\353\43\126\226\302\333\136\45\346\267\326\346\324" "\56\56\56\217\347\316\235\273\57\41\41\341\147\215\106\123" "\302\217\226\53\203\22\46\345\224\105\37\65\262\15\6\103" "\316\202\5\13\366\54\130\260\140\217\263\263\163\116\151\322" "\272\271\271\145\317\236\75\173\377\252\125\253\366\350\164\272" "\342\33\240\106\243\361\301\224\51\123\176\137\264\150\321\1" "\47\47\247\2\61\136\272\335\251\65\331\176\176\176\67\300" "\217\373\354\374\213\44\365\243\70\276\66\150\320\40\21\314" "\134\306\154\66\337\35\60\140\300\321\273\167\357\256\357\333" "\267\357\161\263\331\174\127\215\36\254\34\111\370\40\42\42" "\42\215\210\142\325\360\133\266\154\271\365\311\47\237\74\117" "\104\165\130\276\234\255\154\345\241\244\257\34\256\302\347\374" "\333\162\103\102\102\356\67\151\322\44\43\44\44\44\303\26" "\27\0\132\266\154\271\353\231\147\236\271\46\347\353\310\370" "\74\245\366\263\113\343\103\127\20\207\377\311\244\221\261\207" "\205\135\344\342\331\70\65\367\21\354\350\37\127\165\236\154" "\20\60\37\223\311\224\361\326\133\157\355\272\171\363\346\272" "\244\244\244\15\361\361\361\373\71\216\53\232\73\167\356\7" "\162\165\142\305\136\225\306\121\351\43\253\351\163\54\306\46" "\351\375\136\326\176\322\255\225\131\114\272\305\261\200\311\156" "\243\54\140\262\333\107\313\264\353\22\355\273\155\333\266\177" "\150\265\332\302\116\235\72\135\227\323\105\115\120\63\276\313" "\155\45\135\316\62\53\226\313\336\133\214\157\331\262\245\123" "\140\140\340\103\0\64\140\300\200\103\104\144\144\160\253\266" "\257\200\162\227\271\256\255\205\252\126\207\66\144\312\352\152" "\113\46\347\353\353\173\347\137\377\372\127\361\252\256\355\333" "\267\167\311\314\314\64\22\210\374\174\375\356\72\60\7\346" "\300\52\16\343\300\161\200\160\61\202\3\201\120\73\274\366" "\203\213\27\57\232\302\303\303\63\57\136\274\150\142\171\355" "\332\265\333\143\60\30\274\167\355\332\25\331\241\103\207\237" "\64\32\115\300\177\377\373\337\272\26\62\210\132\161\34\167" "\220\210\142\0\274\304\161\334\120\26\3\300\161\34\167\0" "\0\7\240\227\227\227\327\322\273\167\357\266\347\70\356\260" "\250\243\230\247\106\243\51\272\176\375\172\273\354\354\154\155" "\335\272\165\167\27\26\26\26\157\111\45\362\302\152\205\145" "\135\272\174\311\235\3\367\222\217\217\317\227\267\157\337\156" "\300\161\134\12\201\10\204\132\176\176\176\247\157\337\276\75" "\10\300\17\4\242\43\207\217\54\30\74\170\160\227\123\247" "\116\205\66\152\324\350\362\342\305\213\267\67\153\326\154\30" "\133\316\142\361\274\216\220\352\45\303\225\305\374\374\374\356" "\275\365\326\133\233\46\115\232\364\62\201\310\327\307\67\163" "\306\214\31\313\136\176\371\345\261\0\270\55\133\266\214\37" "\62\144\310\233\67\157\336\364\42\20\231\75\315\167\77\373" "\354\263\37\373\366\355\333\27\0\47\224\141\76\200\115\0" "\16\0\320\45\47\47\17\151\330\260\341\314\202\202\2\255" "\200\317\20\260\237\0\40\71\71\371\225\310\310\310\371\105" "\105\105\32\211\236\317\327\253\127\357\323\263\147\317\372\211" "\345\42\20\165\217\357\276\341\316\235\73\55\16\36\74\30" "\14\111\40\20\171\230\74\36\167\351\322\345\320\312\225\53" "\173\201\177\303\254\43\200\116\34\307\15\227\261\303\213\265" "\152\325\232\171\351\322\245\301\34\307\155\47\20\151\65\132" "\112\115\115\175\272\146\315\232\77\2\300\325\253\127\343\303" "\302\302\326\26\26\26\152\11\104\56\316\56\171\217\37\77" "\16\1\160\33\200\41\71\71\271\157\203\6\15\276\20\161" "\326\246\162\166\7\277\352\350\75\0\376\12\170\211\62\161" "\340\156\2\170\27\300\142\71\334\331\340\134\360\313\57\277" "\14\150\325\252\325\372\63\147\316\14\155\322\244\311\54\126" "\237\106\215\32\355\153\323\246\115\316\347\237\177\276\127\260" "\373\171\0\231\340\35\216\66\333\266\155\173\255\107\217\36" "\35\362\363\363\373\103\150\167\214\136\115\234\235\235\17\137" "\275\172\165\174\160\160\360\107\71\71\71\321\0\116\260\371" "\163\174\365\360\165\104\304\1\160\273\161\343\106\337\220\220" "\220\317\305\172\157\332\244\351\176\177\177\377\232\133\267\156" "\35\10\376\355\140\237\57\276\370\342\253\111\223\46\75\221" "\236\236\156\222\312\21\144\265\172\347\235\167\276\236\61\143" "\106\44\21\151\344\70\12\366\122\344\20\210\64\234\206\336" "\171\347\235\63\323\247\117\37\304\161\334\101\41\257\166\157" "\276\371\346\242\145\313\226\5\76\174\370\260\232\15\71\4" "\241\275\213\375\220\114\75\132\160\44\162\276\151\337\276\175" "\375\335\273\167\177\302\161\334\32\265\172\163\340\20\27\27" "\167\261\250\250\150\377\177\376\363\237\376\42\366\344\223\117" "\56\53\54\54\154\373\363\317\77\207\260\171\366\351\323\347" "\314\205\13\27\156\376\376\373\357\235\345\364\152\321\274\305" "\317\275\173\367\376\143\324\250\121\23\1\134\7\240\7\20" "\231\233\233\33\23\37\37\337\174\327\256\135\375\24\352\305" "\65\55\55\255\123\140\140\340\172\261\235\305\264\212\331\341" "\353\353\33\276\151\323\246\327\1\34\5\277\232\257\135\357" "\336\275\147\137\271\162\345\312\301\203\7\273\52\310\162\71" "\177\376\174\337\310\310\310\105\142\133\321\152\264\164\376\374" "\371\227\303\302\302\326\202\137\115\357\266\167\357\336\267\237" "\174\362\311\251\171\171\171\116\245\350\373\224\354\311\326\15" "\67\176\374\370\137\27\54\130\320\54\53\53\253\32\204\67" "\333\204\240\61\32\215\17\6\16\34\170\166\336\274\171\321" "\34\307\21\201\350\263\117\77\133\60\163\346\314\347\157\334" "\270\341\47\22\335\335\335\37\17\37\76\374\350\274\171\363" "\232\147\145\145\271\210\361\376\376\376\177\274\375\366\333\233" "\307\215\33\367\232\320\377\125\357\334\271\363\201\254\254\254" "\123\373\367\357\177\246\153\327\256\237\27\24\24\164\332\271" "\163\147\33\216\343\376\20\70\21\41\41\41\207\256\136\275" "\372\41\370\325\330\43\103\102\102\46\245\244\244\264\342\70" "\356\274\134\277\21\25\25\365\143\335\272\165\253\57\133\266" "\354\11\216\343\36\225\270\56\101\364\301\364\17\276\133\260" "\140\101\374\255\133\267\274\44\166\342\244\66\211\214\214\74" "\251\325\152\203\13\13\13\257\44\46\46\66\221\160\25\203" "\240\177\103\0\57\160\34\67\331\132\32\153\165\244\42\235" "\265\353\315\126\72\22\306\366\243\34\307\25\224\127\107\53" "\343\253\265\164\112\375\206\154\50\203\75\354\216\251\265\55" "\230\66\147\157\275\354\45\107\155\131\36\75\172\24\340\352" "\352\172\203\255\63\20\174\235\234\234\156\25\24\24\150\325" "\352\133\325\346\322\16\314\201\71\60\113\337\122\251\77\177" "\346\231\147\76\277\172\365\152\257\343\307\217\373\2\226\376" "\136\162\162\162\237\332\265\153\257\7\277\243\305\263\34\307" "\311\371\146\305\101\34\37\153\324\250\161\60\72\72\372\313" "\315\233\67\217\352\326\255\333\374\43\107\216\274\234\226\226" "\326\212\343\270\104\351\370\340\346\346\226\37\37\37\277\170" "\345\312\225\13\1\14\345\70\156\10\253\207\124\276\70\277" "\275\163\347\316\201\257\276\372\352\65\360\375\161\21\200\324" "\365\353\327\117\76\162\344\310\130\166\116\75\240\377\200\244" "\135\273\166\171\72\73\73\147\137\276\174\71\34\352\307\121" "\305\300\332\122\62\337\76\300\322\6\15\32\364\225\227\227" "\127\153\311\34\337\246\154\27\147\227\302\321\243\107\117\4" "\200\71\163\346\174\220\223\223\243\123\73\57\4\341\213\264" "\264\264\45\161\161\161\213\42\43\43\75\127\256\134\31\46" "\304\317\7\360\275\223\223\323\301\356\335\273\137\333\260\141" "\103\55\41\376\3\0\53\231\272\121\264\213\116\253\53\222" "\370\375\262\143\242\122\335\201\360\6\307\161\13\41\324\201" "\126\243\245\313\227\57\77\33\34\34\274\55\45\45\245\173" "\170\170\370\32\31\137\271\204\36\254\34\6\152\152\62\231" "\366\36\70\160\140\136\375\372\365\47\253\340\367\365\365\365" "\375\354\352\325\253\103\135\134\134\176\140\371\311\147\223\277" "\255\133\267\356\102\326\126\2\334\334\144\62\375\42\227\207" "\265\172\225\340\152\174\316\377\5\56\0\370\272\270\270\244" "\36\71\162\344\365\310\310\310\45\220\151\323\154\332\262\370" "\331\12\165\121\231\34\251\377\121\234\106\156\136\251\24\257" "\310\125\270\217\140\57\377\270\252\363\254\365\23\155\333\264" "\115\60\233\315\365\67\155\332\64\20\374\56\111\372\250\250" "\250\375\151\151\151\265\174\174\174\22\117\234\70\21\145\243" "\36\255\335\347\250\60\216\112\37\131\232\76\37\374\33\370" "\317\1\270\52\63\66\35\134\262\144\311\340\261\143\307\316" "\277\173\367\256\263\150\243\342\373\316\104\15\40\370\265\62" "\330\164\10\143\204\210\201\20\4\376\55\332\245\102\376\375" "\1\114\7\207\153\40\150\0\254\5\177\117\357\111\0\253" "\71\216\373\275\170\174\40\332\310\161\134\17\361\233\315\217" "\210\6\200\337\1\141\63\307\161\53\245\272\250\11\152\306" "\167\151\171\313\133\146\153\345\222\336\63\220\216\271\40\174" "\255\140\307\4\126\236\250\137\235\72\165\116\265\153\327\56" "\353\301\203\7\1\273\166\355\62\145\144\144\170\1\50\20" "\144\331\262\275\135\313\135\236\272\56\103\35\352\304\162\126" "\166\35\132\223\151\363\36\212\122\273\10\14\14\274\117\104" "\377\47\176\2\2\2\212\127\66\72\60\7\346\300\52\26" "\143\57\124\0\104\40\42\242\161\302\205\76\216\305\154\174" "\130\136\173\61\316\242\43\340\70\2\337\361\114\24\176\303" "\337\337\77\165\312\224\51\277\310\165\34\0\340\347\347\367" "\170\310\220\41\57\265\151\323\146\175\170\170\270\354\233\256" "\104\64\201\100\324\264\151\323\43\275\172\365\72\45\225\361" "\354\263\317\236\156\322\244\311\141\61\156\376\374\371\155\274" "\275\275\37\354\331\263\347\107\157\157\357\7\263\147\317\156" "\57\265\107\261\10\5\275\144\270\162\130\240\136\257\57\270" "\175\373\166\361\15\166\275\136\137\360\353\257\277\66\27\323" "\354\333\267\57\102\257\327\27\257\0\236\66\155\332\117\104" "\24\44\261\251\105\130\260\140\101\244\253\253\153\276\14\256" "\1\120\347\377\376\357\377\126\104\104\104\144\112\361\340\340" "\340\53\213\27\57\376\206\55\27\201\250\161\343\306\147\373" "\367\357\277\123\232\217\210\353\164\272\302\371\363\347\117\125" "\302\231\277\156\236\236\236\31\173\367\356\375\204\305\153\324" "\250\361\50\76\76\376\123\360\157\242\271\305\307\307\317\257" "\121\243\106\361\366\311\116\116\116\205\140\126\107\316\233\67" "\257\221\330\76\330\166\311\174\213\341\125\0\67\174\175\175" "\157\317\234\71\323\142\105\273\225\17\10\104\63\147\316\334" "\352\353\353\173\33\12\133\105\20\321\22\42\162\7\200\327" "\136\173\155\230\273\273\73\153\357\156\115\232\64\271\104\104" "\155\300\157\375\170\34\374\344\63\27\300\52\0\71\104\344" "\377\342\213\57\136\10\11\11\111\221\332\51\46\46\146\107" "\333\266\155\157\20\221\123\373\366\355\257\267\156\335\172\207" "\214\115\245\365\32\20\23\23\263\271\107\217\36\127\104\216" "\273\273\373\343\345\313\227\133\324\13\21\325\311\317\317\237" "\255\40\107\344\264\202\145\373\122\263\172\321\326\12\60\42" "\242\226\122\54\77\77\377\377\322\323\323\27\261\74\105\61" "\50\121\337\126\71\114\274\305\33\256\245\325\173\305\212\25" "\123\205\25\272\305\301\303\303\343\341\222\45\113\146\112\363" "\314\316\316\356\146\66\233\245\133\341\26\163\252\125\253\366" "\150\347\316\235\117\226\310\213\110\123\275\172\165\166\105\175" "\11\275\276\374\362\313\32\6\203\241\370\55\1\17\17\217" "\254\145\313\226\115\221\362\22\22\22\106\170\170\170\24\357" "\40\40\47\153\345\312\225\201\302\165\5\2\221\321\150\314" "\213\216\216\336\11\141\73\141\101\47\17\42\372\216\221\143" "\151\236\22\21\252\353\17\171\171\171\255\74\74\74\162\136" "\170\341\5\213\255\201\137\174\361\305\321\354\133\256\142\232" "\234\234\234\72\156\156\156\271\0\314\102\164\163\27\27\227" "\174\42\212\162\167\167\317\3\40\366\231\146\147\147\347\374" "\254\254\254\206\154\176\151\151\151\3\215\106\143\66\200\301" "\236\236\236\17\322\322\322\6\110\364\306\167\337\175\267\334" "\303\303\343\76\0\235\247\247\147\306\167\337\175\267\134\312" "\141\102\53\117\117\317\207\331\331\331\135\225\312\117\40\272" "\175\373\166\123\241\377\16\220\360\244\66\361\161\165\165\315" "\275\171\363\346\170\127\127\327\134\360\133\252\313\366\357\45" "\15\153\311\21\376\367\6\277\65\136\1\370\55\177\76\226" "\350\370\64\370\105\40\127\1\260\147\373\4\0\70\7\376" "\1\176\6\200\136\14\26\6\176\333\240\174\0\237\111\364" "\257\56\244\313\7\277\300\304\127\222\137\11\333\0\10\5" "\337\277\346\200\337\126\113\172\375\176\4\176\353\255\342\355" "\247\24\256\177\245\353\176\55\200\35\62\351\10\374\126\76" "\271\302\147\74\370\67\262\304\255\265\47\112\344\55\4\177" "\204\201\24\13\6\277\245\134\76\370\255\252\3\45\351\76" "\23\354\177\23\100\35\6\213\20\312\375\30\374\326\345\122" "\375\227\303\162\333\162\366\330\205\164\360\107\0\310\332\126" "\341\32\144\261\207\0\236\20\342\143\204\377\42\226\5\176" "\213\63\0\210\27\322\211\133\34\266\221\160\123\360\347\261" "\14\43\141\271\125\167\26\376\354\377\332\200\157\147\112\143" "\57\73\327\324\200\37\47\70\226\57\271\136\64\14\146\65" "\124\265\271\264\3\163\140\16\314\322\267\224\271\306\213\267" "\35\64\233\315\131\20\306\165\21\257\121\243\306\243\76\175" "\372\224\230\363\10\370\146\360\175\265\270\275\347\131\0\116" "\142\332\131\263\146\155\23\336\320\14\66\30\14\271\162\157" "\6\10\337\221\176\176\176\331\302\233\132\353\141\343\154\131" "\166\176\53\356\326\104\104\33\157\336\274\271\61\66\66\366" "\274\267\267\367\37\322\71\265\126\253\55\134\261\142\305\367" "\343\306\215\333\312\306\113\145\113\363\260\362\51\151\323\77" "\347\333\104\314\33\150\34\307\25\311\314\361\255\6\2\321" "\324\251\123\17\31\14\206\34\203\301\220\63\155\332\264\203" "\12\151\225\354\23\21\34\34\174\156\334\270\161\153\211\350" "\51\46\76\13\300\253\213\27\57\336\47\354\172\243\64\237" "\121\34\323\374\375\375\263\245\266\140\371\22\273\310\351\146" "\41\317\333\333\73\247\113\227\56\137\1\360\350\334\271\363" "\327\76\76\76\66\337\352\225\312\21\202\316\317\317\357\306" "\234\71\163\166\21\221\233\12\276\257\311\144\312\334\261\143" "\307\122\42\52\261\170\334\325\325\65\33\300\110\326\126\102" "\36\67\347\316\235\153\55\17\151\76\45\160\225\76\347\77" "\236\13\0\261\261\261\153\332\267\157\237\112\104\256\112\266" "\143\323\226\325\317\226\321\241\62\71\0\323\346\331\64\12" "\155\123\66\136\211\13\0\62\175\214\335\374\343\252\316\3" "\260\13\274\217\1\360\307\344\244\1\160\41\20\231\315\346" "\7\22\277\375\365\332\265\153\337\134\275\172\365\367\236\236" "\236\126\375\166\251\275\52\231\243\306\107\56\36\153\210\150" "\303\245\113\227\326\67\154\330\360\152\130\130\130\242\204\123" "\174\57\250\101\203\6\107\6\16\34\170\124\42\307\232\377" "\132\225\260\156\340\175\71\161\233\350\75\340\217\173\273\55" "\304\135\202\345\366\364\326\374\153\153\76\164\105\140\322\372" "\55\127\37\60\154\330\260\155\34\307\25\271\272\272\76\6" "\100\75\173\366\144\167\65\41\224\315\217\256\154\314\262\270" "\45\42\210\300\157\75\177\5\174\175\177\133\277\176\175\166" "\56\244\70\117\251\40\314\226\257\375\263\120\116\351\366\335" "\312\351\2\3\3\55\266\203\20\377\13\23\172\7\346\300" "\34\130\5\142\142\234\214\163\14\26\23\7\132\203\301\120" "\230\224\224\264\213\210\66\72\73\73\27\34\75\172\364\277" "\304\154\153\322\266\155\333\73\302\166\170\4\176\357\167\203" "\210\211\16\41\307\161\105\23\46\114\70\3\340\105\157\157" "\357\54\42\152\56\227\47\0\274\370\342\213\307\15\6\103" "\256\237\237\137\372\331\263\147\77\124\342\11\223\235\207\237" "\175\366\331\164\51\66\177\376\374\17\315\146\163\361\15\105" "\42\362\42\242\231\104\344\53\174\53\335\0\127\164\144\254" "\71\170\342\167\217\36\75\346\326\257\137\77\203\210\376\174" "\173\203\343\50\71\71\271\232\230\346\344\311\223\156\354\3" "\106\42\152\302\346\55\227\117\267\156\335\276\352\330\261\343" "\125\51\36\30\30\170\121\253\325\26\150\265\332\302\371\363" "\347\257\220\340\135\375\375\375\357\23\121\55\266\134\4\42" "\77\77\277\373\1\1\1\151\370\363\46\365\176\10\17\101" "\105\235\137\170\341\205\57\301\337\224\25\127\266\225\330\152" "\245\143\307\216\113\236\170\342\211\153\104\144\361\326\327\306" "\215\33\227\13\116\44\1\40\255\126\133\270\171\363\346\145" "\42\336\260\141\303\173\261\261\261\253\301\77\160\11\257\123" "\247\316\51\266\374\44\154\67\51\176\103\362\260\225\210\246" "\23\277\372\310\242\255\312\175\30\116\3\42\232\56\367\360" "\125\142\363\301\172\275\76\167\306\214\31\173\104\254\121\243" "\106\107\336\171\347\235\265\0\102\135\135\135\263\272\164\351" "\162\374\370\361\343\133\116\234\70\261\261\156\335\272\51\1" "\1\1\131\0\260\163\347\316\327\331\7\352\202\74\47\147" "\147\347\334\125\253\126\175\4\0\153\327\256\375\300\331\331" "\71\27\354\303\260\77\7\324\22\237\176\375\372\25\237\127" "\252\321\150\212\22\23\23\303\245\355\203\44\67\265\245\170" "\161\66\66\362\122\301\221\352\133\62\23\42\216\210\234\112" "\233\227\134\273\227\321\7\0\276\361\362\362\312\40\311\3" "\127\25\345\377\63\57\242\232\236\236\236\217\1\210\62\136" "\250\126\255\132\56\225\134\374\100\104\244\231\61\143\306\256" "\340\340\340\13\162\172\151\64\232\242\324\324\124\63\144\2" "\273\355\232\214\136\276\355\333\267\137\325\262\145\313\133\42" "\107\253\325\26\355\335\273\267\221\124\316\261\143\307\202\45" "\133\277\263\262\234\0\264\152\325\252\325\266\206\15\33\246" "\213\234\157\277\375\166\233\253\253\153\216\301\140\170\14\340" "\127\360\223\264\156\22\133\130\232\107\301\136\162\145\203\245" "\235\100\104\334\330\261\143\177\363\365\365\275\303\222\374\374" "\374\156\277\365\326\133\107\304\66\52\246\41\42\56\72\72" "\72\255\117\237\76\23\1\240\173\367\356\213\243\242\242\156" "\1\100\353\326\255\257\167\357\336\175\61\0\364\351\323\147" "\142\203\6\15\356\112\332\70\210\310\151\322\244\111\373\0" "\320\244\111\223\366\212\155\116\302\11\251\123\247\316\275\260" "\260\260\123\165\352\324\271\113\104\41\112\345\17\16\16\276" "\70\155\332\264\237\331\233\143\162\216\13\21\151\43\42\42" "\62\172\366\354\71\107\106\126\261\115\342\342\342\276\176\342" "\211\47\156\22\221\241\145\313\226\151\135\272\164\371\122\56" "\137\171\303\226\274\111\131\255\132\265\207\243\106\215\372\65" "\43\43\143\335\153\257\275\226\350\344\344\304\56\12\241\72" "\165\352\44\335\270\161\343\353\51\123\246\374\330\260\141\303" "\142\247\241\136\275\172\207\337\172\353\255\237\262\263\263\327" "\216\30\61\342\20\273\175\143\275\172\365\216\305\305\305\235" "\275\167\357\336\232\310\310\310\163\254\376\215\33\67\376\165" "\305\212\25\113\36\75\172\264\262\137\277\176\373\233\66\155" "\272\233\261\201\305\166\177\214\274\43\317\77\377\374\211\224" "\224\224\325\365\353\327\277\10\313\66\102\315\232\65\73\171" "\353\326\255\325\354\366\123\12\327\277\334\165\277\244\131\263" "\146\111\104\324\107\46\35\65\151\322\344\314\215\33\67\126" "\217\35\73\366\204\207\207\107\146\333\266\155\177\271\171\363" "\346\17\162\171\65\155\332\364\314\215\33\67\276\225\142\15" "\33\66\74\320\253\127\257\243\151\151\151\353\6\16\34\270" "\237\265\43\0\212\210\210\270\224\222\222\262\361\271\347\236" "\73\125\257\136\275\343\42\126\273\166\355\323\203\7\17\76" "\220\222\222\262\262\116\235\72\227\244\372\77\373\354\263\77" "\236\72\165\152\211\30\307\161\134\121\277\176\375\56\347\346" "\346\156\30\65\152\324\1\341\346\253\254\155\155\71\151\321" "\321\321\67\273\166\355\272\34\0\272\166\355\272\54\72\72" "\372\246\210\265\150\321\342\126\174\174\374\22\0\350\330\261" "\143\202\106\243\51\212\215\215\335\11\0\161\161\161\53\243" "\243\243\323\104\356\272\165\353\226\12\333\165\32\115\46\323" "\203\204\204\204\257\131\71\342\126\340\161\161\161\53\331\343" "\23\330\261\66\70\70\70\173\334\270\161\305\66\133\270\160" "\241\247\116\247\223\156\63\126\134\327\72\235\256\150\301\202" "\5\136\14\46\236\23\370\30\374\171\324\235\301\337\324\330" "\57\162\252\322\134\332\201\71\60\7\146\351\133\112\346\355" "\223\65\32\115\341\230\61\143\222\364\172\175\141\327\256\135" "\317\207\206\206\236\143\370\126\347\230\23\46\114\130\332\264" "\151\323\63\251\251\251\313\373\367\357\277\256\175\373\366\147" "\111\170\313\12\0\210\250\101\365\352\325\263\215\106\143\146" "\215\32\65\262\211\50\222\115\17\241\257\61\233\315\167\136" "\177\375\365\203\213\26\55\72\250\323\351\12\153\326\254\231" "\2\313\343\32\54\202\244\317\55\276\241\114\104\316\104\324" "\207\210\76\52\246\12\374\126\255\132\335\326\150\64\205\325" "\253\127\377\103\243\321\110\175\271\151\0\222\230\357\22\175" "\247\304\147\261\234\133\225\34\3\304\337\206\141\303\206\315" "\167\161\161\51\140\343\325\316\61\210\250\71\21\55\26\76" "\315\24\322\312\332\307\323\323\363\56\44\365\106\40\232\74" "\171\362\101\275\136\237\247\323\351\362\343\343\343\257\311\311" "\264\65\246\35\76\174\370\263\310\310\310\114\275\136\137\310" "\360\244\376\207\265\272\263\220\267\146\315\232\265\136\136\136" "\31\32\215\246\320\313\313\53\143\355\332\265\153\30\356\131" "\360\365\42\176\313\312\1\200\66\155\332\254\151\333\266\355" "\45\321\367\264\226\57\0\204\207\207\237\32\64\150\320\121" "\42\362\223\343\313\331\252\165\353\326\353\333\267\157\177\221" "\155\313\62\171\200\235\173\311\340\152\175\316\177\72\27\0" "\334\134\135\135\163\176\373\355\267\261\26\246\122\350\32\336" "\345\327\0\0\40\0\111\104\101\124\173\104\237\116\245\237" "\155\323\257\255\104\16\144\322\110\355\41\167\35\102\206\253" "\330\57\113\363\260\227\177\134\325\171\203\6\15\332\54\334" "\267\273\242\327\353\363\126\257\136\275\222\210\264\4\376\45" "\5\306\157\257\151\66\233\323\117\234\70\61\343\267\337\176" "\153\42\331\152\136\251\137\126\352\347\53\232\3\25\76\262" "\145\233\41\162\73\161\342\304\144\255\126\253\170\157\103\247" "\323\25\356\331\263\247\77\53\307\232\377\132\225\60\223\311" "\224\71\170\360\340\3\31\31\31\153\326\254\131\263\33\0" "\5\5\5\245\34\74\170\160\111\126\126\326\252\351\323\247" "\157\166\166\166\176\54\362\255\371\327\326\174\350\212\300\254" "\265\201\62\364\1\305\133\106\357\336\275\173\135\365\352\325" "\37\7\5\5\261\107\300\225\311\217\256\154\114\322\166\145" "\307\314\360\360\360\304\47\237\174\362\354\271\163\347\66\350" "\365\372\274\247\237\176\372\220\122\333\126\262\257\275\60\153" "\276\66\0\212\211\211\111\32\76\174\370\31\351\126\357\126" "\323\125\45\47\301\201\71\260\377\65\114\214\143\235\122\110" "\2\23\27\351\342\342\122\100\374\136\356\165\14\6\103\1" "\21\171\262\74\42\32\260\150\321\242\137\1\120\140\140\140" "\232\217\217\117\32\203\265\42\242\165\302\247\125\315\232\65" "\157\114\233\66\355\47\130\276\351\301\256\220\171\323\140\60" "\344\205\207\207\147\276\360\302\13\47\110\170\363\20\200\33" "\233\247\370\55\114\166\242\245\330\117\77\375\24\43\171\340" "\41\33\112\63\241\265\146\47\361\273\166\355\332\227\207\14" "\31\362\23\213\163\34\107\137\176\371\145\261\103\260\146\315" "\32\255\214\123\16\151\176\114\210\10\12\12\272\171\367\356" "\335\1\122\234\210\46\344\346\346\256\156\325\252\325\155\351" "\131\110\141\141\141\347\247\114\231\362\43\53\133\304\235\234" "\234\12\372\364\351\363\373\375\373\367\177\270\175\373\366\252" "\201\3\7\356\252\133\267\356\21\326\46\165\352\324\271\164" "\370\360\341\125\367\356\335\133\23\37\37\177\64\42\42\342" "\270\44\177\47\27\27\227\234\237\177\376\331\142\225\72\201" "\50\50\50\50\345\231\147\236\271\172\357\336\275\255\151\151" "\151\333\273\164\351\222\132\253\126\255\363\42\176\366\354\331" "\51\21\21\21\127\264\132\155\276\213\213\113\166\277\176\375" "\366\110\317\23\226\174\323\223\117\76\171\216\175\330\52\255" "\3\153\101\142\263\6\104\64\275\143\307\216\26\17\31\4" "\370\125\275\136\237\67\157\336\274\337\210\250\221\210\271\273" "\273\77\336\260\141\103\257\310\310\310\103\335\273\167\277\100" "\104\317\22\377\326\240\107\142\142\342\273\155\332\264\271\4" "\0\273\167\357\16\221\236\347\324\273\167\357\11\176\176\176" "\331\104\124\123\310\277\206\237\237\137\366\277\377\375\357\161" "\22\375\212\157\302\24\24\24\154\274\174\371\362\217\175\372" "\364\271\142\64\32\213\127\112\152\64\232\242\37\176\370\101" "\172\176\212\264\234\252\46\344\266\36\122\313\161\154\344\243" "\350\60\252\270\261\244\366\241\353\67\155\332\264\71\334\274" "\171\363\33\340\27\170\224\246\374\26\170\267\156\335\316\105" "\106\106\236\4\200\310\310\310\123\161\161\161\227\24\362\4" "\21\65\14\13\13\273\15\140\260\224\243\321\150\212\326\254" "\131\343\202\222\301\115\346\101\151\361\107\257\327\347\66\154" "\330\360\102\112\112\312\10\221\243\325\152\213\276\377\376\173" "\351\131\263\330\270\161\243\207\244\317\260\370\150\265\332\202" "\372\365\353\247\134\271\162\345\35\221\103\104\141\171\171\171" "\137\175\365\325\127\277\164\356\334\371\110\215\32\65\156\11" "\23\143\366\214\231\22\266\56\205\75\113\364\127\371\371\371" "\117\230\114\46\366\141\166\57\167\167\367\334\307\217\37\167" "\220\221\213\367\337\177\377\373\206\15\33\236\6\200\260\260" "\260\53\343\306\215\133\7\0\323\247\117\377\66\54\54\354" "\52\0\64\154\330\360\364\360\341\303\267\113\323\2\300\353" "\257\277\376\51\307\161\364\372\353\257\177\52\47\37\0\326" "\255\133\367\5\0\132\277\176\375\102\45\16\200\301\201\201" "\201\351\104\324\324\132\371\305\64\203\7\17\376\257\360\160" "\115\52\253\330\46\236\236\236\17\276\376\372\353\117\1\340" "\313\57\277\134\340\351\351\131\142\47\2\245\120\302\131\340" "\353\363\63\42\212\41\42\247\364\364\364\256\260\264\77\155" "\333\266\155\56\21\71\237\77\177\276\235\263\263\163\236\210" "\31\14\206\374\344\344\344\70\42\322\22\321\23\104\64\237" "\305\166\356\334\71\232\210\364\333\267\157\237\315\312\164\161" "\161\311\275\176\375\172\35\42\322\356\331\263\247\277\253\253" "\253\364\355\220\22\72\32\14\206\274\343\307\217\367\47\42" "\327\155\333\266\175\54\325\61\51\51\151\14\21\31\110\146" "\305\274\225\261\220\0\314\363\366\366\116\57\54\54\34\44" "\255\33\361\373\367\337\177\237\104\104\56\31\31\31\261\0" "\350\350\321\243\157\12\67\311\113\344\165\350\320\241\211\162" "\230\213\213\113\356\321\243\107\7\20\221\163\142\142\342\163" "\254\35\1\320\346\315\233\347\23\221\353\341\303\207\137\61" "\30\14\305\216\272\136\257\57\270\160\341\102\167\42\162\335" "\260\141\303\2\151\176\173\366\354\171\205\230\363\160\2\2" "\2\36\5\5\5\335\354\327\257\337\233\102\335\54\124\262" "\255\55\47\155\302\204\11\253\102\102\102\156\0\100\150\150" "\150\352\370\361\343\213\157\50\217\34\71\62\241\126\255\132" "\327\0\176\213\356\16\35\72\244\125\257\136\375\36\0\4" "\6\6\336\32\75\172\364\172\246\175\5\104\105\105\335\360" "\362\362\372\43\46\46\46\265\170\274\2\321\360\341\303\67" "\371\373\373\377\41\310\271\365\356\273\357\56\227\350\13\0" "\237\204\207\207\337\26\154\12\2\121\317\236\75\77\10\15" "\15\55\336\255\104\132\327\265\152\325\172\320\253\127\257\217" "\104\54\64\64\364\312\351\323\247\327\157\334\270\361\307\346" "\315\233\137\160\162\162\312\323\353\365\271\135\273\166\375\135" "\344\124\245\271\264\3\163\140\16\314\322\267\144\257\161\341" "\55\321\123\23\47\116\374\250\172\365\352\217\356\334\271\323" "\347\320\241\103\263\104\36\21\155\74\177\376\374\116\235\116" "\127\44\67\307\364\365\365\275\263\164\351\322\371\104\344\102" "\104\261\6\203\41\17\200\121\255\337\46\76\374\325\351\164" "\205\313\227\57\177\223\210\352\376\360\303\17\173\234\235\235" "\363\103\102\102\330\207\277\26\101\322\347\132\33\257\331\274" "\136\45\242\125\104\64\215\210\330\207\172\341\106\243\61\153" "\325\252\125\137\33\215\306\254\143\307\216\315\120\312\127\116" "\256\214\76\42\116\0\310\325\325\365\321\234\71\163\176\225" "\113\147\55\50\161\112\141\333\131\162\176\3\21\105\21\321" "\267\104\364\75\21\75\53\227\227\255\61\115\360\255\206\23" "\277\53\213\342\230\150\245\356\40\321\51\210\370\305\326\253" "\204\357\40\21\73\166\354\330\14\266\176\300\277\365\122\102" "\16\200\36\336\336\336\367\37\74\170\360\262\360\277\37\230" "\143\64\144\370\323\302\303\303\157\21\121\7\360\367\70\162" "\300\57\140\236\156\305\126\275\274\275\275\357\147\144\144\210" "\171\74\53\227\7\370\373\41\354\21\36\26\170\51\174\316" "\177\64\27\0\272\164\351\262\260\105\213\26\267\210\310\203" "\65\225\65\337\127\255\237\135\26\37\272\2\71\374\117\46" "\215\214\75\344\256\103\110\271\304\54\374\223\366\313\162\171" "\220\35\374\343\252\316\43\242\66\55\133\266\274\13\200\6" "\14\30\220\314\366\41\34\307\221\350\267\207\207\207\237\236" "\70\161\342\36\42\62\56\137\276\274\206\225\305\322\154\120" "\352\347\53\232\3\300\246\217\134\102\316\302\205\13\233\13" "\13\142\144\71\315\233\67\277\333\251\123\247\357\131\71\144" "\305\177\255\112\330\305\213\27\277\376\340\203\17\246\327\257" "\137\377\167\67\67\267\54\0\264\173\367\356\317\210\310\114" "\104\332\123\247\116\305\12\174\235\340\363\52\372\327\326\174" "\350\212\300\254\265\201\322\366\1\342\334\215\370\173\370\276" "\253\126\255\132\51\171\241\244\114\176\164\145\143\120\236\307" "\24\353\353\344\344\124\260\150\321\242\131\377\372\327\277\126" "\326\256\135\373\276\213\213\113\216\44\275\245\311\52\20\263" "\341\153\323\265\153\327\206\22\121\333\11\23\46\234\146\37" "\164\133\115\127\225\234\4\7\346\300\376\327\60\61\116\205" "\343\242\252\303\2\0\42\252\13\200\36\76\174\370\236\24" "\143\302\113\276\276\276\17\211\250\211\270\145\223\164\205\114" "\265\152\325\36\176\374\361\307\277\345\346\346\276\23\30\30" "\170\13\300\113\0\136\160\165\165\315\222\350\126\74\331\71" "\165\352\224\247\24\73\165\352\224\247\144\273\132\331\40\116" "\60\231\211\145\211\211\246\214\343\133\262\374\374\267\101\257" "\327\27\34\74\170\360\131\126\276\136\257\57\24\337\346\0" "\200\157\276\371\246\232\144\302\362\47\275\144\234\133\255\132" "\265\316\356\337\277\177\36\21\351\344\312\103\104\232\244\244" "\244\61\222\267\171\332\231\114\246\107\171\171\171\55\130\331" "\114\231\277\43\242\316\104\344\104\104\206\264\264\264\256\116" "\116\116\305\3\252\106\243\51\72\176\374\370\164\141\242\241" "\277\170\361\142\77\26\7\200\276\175\373\216\364\367\367\317" "\42\346\55\127\21\327\152\265\205\347\317\237\37\110\104\172" "\141\40\34\314\256\214\43\42\67\42\32\101\104\53\210\150" "\321\274\171\363\246\270\272\272\132\310\147\277\347\315\233\167" "\274\172\365\352\351\120\330\32\130\122\57\212\365\44\204\127" "\1\334\250\136\275\172\372\274\171\363\216\263\270\311\144\312" "\234\70\161\342\61\222\254\230\327\152\265\105\311\311\311\65" "\365\172\175\376\326\255\133\107\263\371\317\231\63\247\335\253" "\257\276\272\15\0\206\16\35\372\222\311\144\142\7\174\4" "\6\6\336\220\323\53\60\60\60\125\246\14\142\235\162\104" "\344\166\356\334\271\177\263\365\152\64\32\363\306\217\37\37" "\7\313\340\1\306\221\147\345\110\202\232\11\271\254\76\152" "\160\351\165\124\132\175\24\256\123\13\116\323\246\115\223\210" "\350\305\314\314\314\67\153\324\250\161\7\174\377\120\46\275" "\23\22\22\306\11\13\63\302\265\132\155\341\362\345\313\247" "\25\323\144\144\355\330\261\343\163\263\331\234\16\176\105\165" "\61\307\150\64\346\175\364\321\107\45\126\105\317\233\67\57" "\302\144\62\345\132\224\221\331\246\207\370\233\55\157\20\121" "\361\271\47\46\223\51\367\235\167\336\351\54\225\65\176\374" "\370\366\156\156\156\371\122\131\371\371\371\233\306\216\35\233" "\154\64\32\363\22\23\23\337\45\42\27\206\43\266\243\72" "\104\364\34\21\115\135\270\160\341\21\141\73\76\271\176\121" "\166\34\20\266\54\366\220\100\146\47\47\47\213\305\5\142" "\176\243\106\215\72\120\253\126\255\213\0\120\253\126\255\213" "\157\276\371\346\121\142\336\162\145\323\144\144\144\64\365\364" "\364\314\6\240\163\166\166\316\113\116\116\356\40\304\67\166" "\161\161\311\3\340\341\346\346\226\223\230\230\30\47\115\13" "\300\150\64\32\37\316\236\75\373\270\321\150\174\10\300\50" "\303\1\21\371\13\366\252\51\247\3\0\47\17\17\217\373" "\253\127\257\136\52\127\176\326\56\142\232\203\7\17\76\47" "\70\40\6\211\54\326\261\373\230\204\125\303\104\24\112\104" "\163\244\272\51\205\22\175\74\377\77\24\300\6\0\347\134" "\134\134\304\355\367\212\165\74\173\366\154\10\0\34\71\162" "\304\225\135\370\301\161\34\245\246\246\226\270\251\40\142\27" "\56\134\10\0\200\343\307\217\207\260\62\5\31\305\375\225" "\314\170\132\102\107\216\343\50\45\45\305\103\116\36\157\206" "\342\105\124\50\201\51\217\205\24\26\26\166\305\335\335\75" "\167\374\370\361\121\22\233\210\351\350\376\375\373\236\340\63" "\321\332\314\213\310\44\207\151\64\232\242\253\127\257\172\2" "\300\205\13\27\214\322\55\357\117\235\72\125\13\0\316\236" "\75\353\305\142\34\307\121\142\142\242\73\0\234\76\175\72" "\114\232\237\250\233\30\167\362\344\311\371\176\176\176\17\70" "\216\53\22\166\204\220\336\234\56\61\117\203\145\50\226\177" "\351\322\245\66\302\3\140\167\341\6\100\7\21\73\163\346" "\114\147\241\235\172\70\71\71\25\234\74\171\162\270\320\347" "\5\350\164\272\302\323\247\117\167\142\363\135\267\156\335\54" "\0\264\145\313\226\367\331\374\17\37\76\334\125\30\277\103" "\365\172\175\301\365\353\327\143\44\372\66\162\165\165\175\174" "\364\350\321\231\154\72\216\343\212\126\257\136\375\215\102\235" "\141\323\246\115\137\262\155\365\350\321\243\263\210\310\104\104" "\201\304\77\304\370\116\350\47\237\21\71\125\151\56\355\300" "\34\230\3\263\364\55\245\375\162\152\152\152\373\126\255\132" "\375\326\275\173\367\104\42\322\221\360\360\103\344\57\134\270" "\260\221\321\150\314\203\44\20\210\246\115\233\266\263\161\343" "\306\277\203\337\232\177\126\307\216\35\257\21\221\123\151\375" "\266\26\55\132\334\21\166\23\150\107\104\241\333\267\157\337" "\146\155\121\56\333\347\62\107\344\0\374\156\77\253\300\157" "\57\17\221\243\64\246\23\210\102\103\103\317\217\30\61\342" "\120\110\110\310\305\21\43\106\34\42\146\361\215\134\32\71" "\271\62\143\0\45\45\45\355\32\60\140\300\345\6\15\32" "\334\271\163\347\116\63\65\372\310\224\121\66\136\255\155\113" "\43\123\346\77\201\77\73\15\220\314\251\113\44\267\374\376" "\123\107\345\272\263\251\23\43\307\70\142\304\210\103\265\152" "\325\272\60\142\304\210\103\222\67\261\305\140\366\360\360\310" "\110\110\110\130\45\314\57\202\375\374\374\156\111\165\142\370" "\115\115\46\323\303\244\244\244\351\0\140\62\231\36\174\364" "\321\107\7\23\22\22\176\326\353\365\171\62\174\0\360\366" "\360\360\270\277\171\363\346\37\204\74\334\175\175\175\377\220" "\313\343\255\267\336\172\116\364\7\344\312\132\12\237\363\37" "\315\5\240\163\163\163\173\44\307\227\332\216\115\133\116\77" "\33\177\21\7\42\117\311\157\221\312\261\62\337\54\301\265" "\110\46\223\107\171\375\343\252\316\3\60\235\343\70\12\16" "\16\316\26\256\341\316\42\246\327\353\13\307\214\31\363\54" "\200\251\215\32\65\272\106\104\55\0\140\312\224\51\377\142" "\145\250\361\245\53\223\43\106\332\360\221\331\166\240\3\320" "\42\64\64\64\231\335\241\113\302\101\141\141\341\33\315\232" "\65\113\4\360\56\303\261\346\277\126\31\254\167\357\336\357" "\231\315\346\364\247\236\172\352\360\362\345\313\167\100\276\357" "\40\42\342\104\337\117\311\277\266\346\103\127\4\126\234\265" "\114\275\224\241\17\40\142\266\214\116\115\115\255\55\225\135" "\26\77\272\262\61\166\356\42\375\210\34\216\343\150\316\234" "\71\175\114\46\123\126\142\142\342\207\66\336\116\227\265\257" "\275\60\153\276\266\223\223\123\121\361\375\102\311\203\156\153" "\351\64\160\4\107\160\204\52\37\210\50\241\123\247\116\177" "\304\307\307\337\44\242\204\256\135\273\336\352\332\265\353\55" "\42\112\40\242\4\206\232\317\161\134\56\0\270\273\273\117" "\123\20\207\352\325\253\317\32\76\174\370\176\216\343\116\20" "\21\67\175\372\364\127\76\374\360\303\127\330\33\362\217\36" "\75\162\353\330\261\343\170\275\136\77\143\307\216\35\53\174" "\174\174\346\266\156\335\172\120\164\164\164\272\234\114\235\116" "\127\264\155\333\66\57\151\374\326\255\133\175\304\311\205\255" "\300\161\134\17\361\43\367\137\152\23\231\362\3\0\6\16" "\34\70\300\313\313\53\267\145\313\226\26\147\245\232\315\346" "\334\364\364\364\372\342\377\133\267\156\5\233\315\346\134\25" "\252\305\204\205\205\35\234\65\153\326\57\61\61\61\357\161" "\34\127\40\107\342\70\256\150\317\236\75\73\234\235\235\213" "\313\33\24\24\264\64\63\63\323\105\257\327\37\306\237\35" "\74\61\151\372\163\34\267\223\343\270\174\216\343\162\67\154" "\330\160\254\260\260\260\270\157\326\353\365\105\336\336\336\163" "\71\216\113\347\70\56\157\357\336\275\373\40\71\300\373\324" "\251\123\3\332\264\151\163\216\343\270\173\122\235\164\72\35" "\325\256\135\173\25\307\161\171\34\307\345\234\70\161\342\107" "\255\126\313\352\234\315\161\334\47\34\307\365\341\70\156\310" "\341\303\207\375\202\202\202\62\225\14\61\154\330\260\227\322" "\322\322\26\316\234\71\363\270\257\257\357\207\220\74\174\145" "\353\105\372\141\304\210\133\24\177\70\163\346\314\343\151\151" "\151\13\207\15\33\306\76\264\323\144\146\146\32\207\14\31" "\62\122\74\274\134\14\132\255\226\42\42\42\376\50\52\52" "\322\76\365\324\123\113\131\354\353\257\277\376\254\111\223\46" "\277\0\300\256\135\273\46\166\350\320\341\62\3\67\277\163" "\347\216\157\146\146\346\126\126\247\364\364\364\155\267\157\337" "\256\16\300\342\315\72\306\76\304\161\134\366\346\315\233\223" "\364\172\175\161\275\105\106\106\336\336\277\177\377\133\54\367" "\371\347\237\37\345\355\355\375\272\222\355\204\60\231\263\176" "\236\174\251\203\40\157\42\363\137\274\156\216\225\43\257\107" "\370\363\254\114\263\116\247\263\230\234\34\71\162\344\123\216" "\343\176\60\32\215\137\154\331\262\145\215\247\247\347\174\0" "\45\266\341\122\23\236\176\372\351\245\36\36\36\371\101\101" "\101\77\126\253\126\255\240\157\337\276\45\336\234\145\103\134" "\134\334\264\106\215\32\145\166\352\324\351\163\66\276\171\363" "\346\67\257\135\273\126\342\101\351\271\163\347\72\65\157\336" "\374\46\33\307\330\250\47\307\161\3\71\216\133\310\161\134" "\216\210\107\107\107\337\330\277\177\377\233\254\30\0\77\35" "\71\162\344\315\72\165\352\244\113\145\351\164\272\147\146\316" "\234\371\162\174\174\374\371\56\135\272\274\304\161\334\143\206" "\222\307\161\234\33\307\161\347\71\216\133\307\161\334\324\330" "\330\330\241\5\5\5\116\50\105\250\121\243\306\343\141\303" "\206\131\224\157\330\260\141\161\276\276\276\217\244\134\216\343" "\150\306\214\31\143\62\62\62\152\2\170\341\356\335\273\376" "\263\147\317\36\55\116\202\245\301\303\303\343\144\100\100\100" "\126\130\130\330\161\157\157\357\334\210\210\210\375\102\374\351" "\320\320\320\207\41\41\41\7\274\274\274\362\352\327\257\377" "\213\64\155\114\114\314\212\47\236\170\342\366\350\321\243\373" "\267\152\325\352\116\114\114\314\12\271\74\70\216\273\41\174" "\337\224\303\73\165\352\364\171\130\130\330\243\347\237\177\176" "\262\34\56\27\132\266\154\371\243\331\154\316\173\365\325\127" "\373\53\161\70\216\33\305\161\334\25\341\167\12\307\161\243" "\225\270\152\202\217\217\317\201\126\255\132\325\36\77\176\374" "\245\325\253\127\377\54\305\127\257\136\155\4\200\203\7\17" "\272\260\143\201\263\263\163\341\366\355\333\365\162\62\15\6" "\103\341\322\245\113\153\2\300\206\15\33\174\130\114\257\327" "\27\145\147\147\157\21\373\254\242\242\242\165\266\164\164\166" "\166\56\134\271\162\245\57\0\154\332\264\251\272\24\347\70" "\56\253\144\52\333\341\370\361\343\213\136\172\351\245\244\365" "\353\327\57\125\342\230\114\246\373\102\36\205\266\362\342\70" "\116\166\254\321\353\365\105\153\327\256\65\2\300\206\15\33" "\334\245\163\210\155\333\266\231\0\40\41\41\301\323\331\331" "\271\120\214\167\161\161\51\114\110\110\250\6\0\153\326\254" "\51\261\125\231\250\233\30\32\65\152\64\371\326\255\133\237" "\246\247\247\157\36\60\140\300\145\275\136\377\203\222\256\62" "\41\214\375\123\253\126\255\103\176\176\176\71\365\353\327\377" "\311\307\307\47\107\274\206\0\40\62\62\162\257\331\154\316" "\153\327\256\335\127\276\276\276\271\215\32\65\132\354\343\343" "\223\33\25\25\365\255\257\257\157\116\203\6\15\366\262\262" "\336\177\377\375\366\176\176\176\71\123\246\114\371\27\33\337" "\242\105\213\137\274\275\275\363\32\67\156\274\334\337\337\377" "\221\277\277\377\21\26\367\367\367\337\62\160\340\300\344\146" "\315\232\131\34\7\61\162\344\310\163\143\307\216\155\257\124" "\220\301\203\7\167\33\76\174\170\262\370\277\131\263\146\37" "\160\34\227\311\161\134\52\307\161\213\205\171\312\100\216\343" "\112\314\267\34\301\21\34\241\152\7\203\301\120\64\173\366" "\354\352\311\311\311\115\236\172\352\251\215\34\307\65\343\70" "\356\32\313\111\110\110\30\363\362\313\57\237\220\113\277\153" "\327\56\347\372\365\353\147\73\73\73\137\355\321\243\107\275" "\313\227\57\353\304\271\45\307\161\317\210\37\271\377\102\40" "\0\330\271\163\347\7\101\101\101\71\116\116\116\77\161\34" "\327\172\334\270\161\176\265\152\325\262\72\26\211\363\333\361" "\343\307\47\161\34\367\36\0\322\152\265\327\102\102\102\332" "\35\72\164\150\63\124\316\251\265\132\255\107\146\146\146\242" "\116\247\63\146\146\146\46\162\34\367\300\126\32\71\377\122" "\72\337\256\127\257\336\263\337\176\373\355\353\215\32\65\72" "\27\33\33\373\271\132\175\324\204\322\370\304\345\11\37\175" "\364\121\20\0\274\377\376\373\41\145\321\321\36\72\160\34" "\367\40\63\63\63\121\243\321\30\63\63\63\23\265\132\255" "\364\101\5\42\43\43\167\164\353\326\355\332\323\117\77\75" "\212\343\270\302\320\320\320\377\314\230\61\143\257\234\74\360" "\147\262\156\235\74\171\362\301\172\365\352\175\4\0\367\357" "\337\377\346\245\227\136\32\61\165\352\124\267\201\3\7\136" "\220\113\124\257\136\275\37\237\176\372\351\224\370\370\370\321" "\34\307\25\66\151\322\144\113\357\336\275\317\313\161\317\237" "\77\337\73\66\66\66\125\16\103\351\174\316\177\62\27\75" "\173\366\234\22\20\20\360\330\312\75\1\331\120\16\77\373" "\237\36\24\373\230\362\372\307\125\235\327\264\151\323\356\223" "\46\115\112\274\162\345\312\107\157\274\361\106\262\217\217\317" "\162\0\56\0\20\24\24\364\360\307\37\177\174\307\154\66" "\17\337\270\161\343\102\216\343\216\0\300\201\3\7\206\104" "\107\107\337\20\145\250\361\245\53\223\43\6\133\76\62\376" "\174\310\227\257\327\353\177\63\32\215\256\253\126\255\232\51" "\303\323\0\200\106\243\371\142\375\372\365\213\365\172\175\361" "\170\145\315\177\255\112\330\332\265\153\47\356\337\277\177\315" "\326\255\133\77\160\163\163\233\15\0\251\251\251\73\304\276" "\243\240\240\40\341\354\331\263\273\304\173\32\326\374\153\153" "\76\164\105\140\366\14\34\307\201\343\270\216\342\377\321\243" "\107\367\226\136\373\145\361\243\53\33\143\347\56\302\374\260" "\304\134\106\257\327\27\315\232\65\353\343\167\337\175\367\320" "\267\337\176\173\302\140\60\50\75\73\10\123\210\267\33\146" "\315\327\56\50\50\340\70\216\323\13\345\172\222\255\17\253" "\76\172\125\132\231\351\300\34\330\377\32\46\306\251\131\55" "\32\24\24\364\307\270\161\343\276\5\200\220\220\220\264\121" "\243\106\175\57\345\205\206\206\76\150\337\276\375\132\360\203" "\362\104\231\225\67\0\360\262\237\237\337\103\22\266\154\145" "\126\17\133\360\303\303\303\37\304\306\306\256\5\140\176\355" "\265\327\106\352\365\372\2\27\27\227\334\327\137\177\175\43" "\204\125\261\354\352\137\57\57\257\234\21\43\106\364\147\365" "\1\200\221\43\107\16\360\366\366\176\54\243\207\154\71\55" "\242\24\70\326\354\104\40\152\321\242\305\357\75\172\364\70" "\45\305\73\167\356\174\256\151\323\246\373\0\4\2\60\166" "\352\324\351\373\256\135\273\236\225\221\311\346\363\266\311\144" "\312\370\357\177\377\73\107\130\205\46\315\63\35\374\371\63" "\156\0\174\242\242\242\176\212\213\213\273\42\342\104\64\101" "\156\265\62\223\76\3\274\3\357\6\300\43\56\56\156\261" "\273\273\173\361\233\164\1\1\1\17\273\165\353\66\37\374" "\71\257\325\143\142\142\266\104\105\105\335\146\165\66\231\114" "\331\237\176\372\351\373\220\4\2\221\260\12\156\11\370\3" "\316\75\332\265\153\267\136\262\62\356\76\200\117\0\270\3" "\350\344\347\347\167\367\323\117\77\375\136\316\336\222\25\171" "\322\163\131\255\326\57\253\223\334\171\260\54\116\374\133\201" "\33\210\71\33\122\304\74\75\75\163\0\370\104\106\106\146" "\0\330\1\376\301\140\14\200\337\1\320\267\337\176\33\7" "\340\113\57\57\257\254\333\267\157\277\40\246\153\325\252\325" "\177\172\364\350\161\261\204\114\42\247\370\370\370\313\117\74" "\361\304\116\246\14\322\162\204\265\154\331\162\127\114\114\114" "\361\166\335\333\266\155\173\137\257\327\347\203\337\42\326\33" "\100\77\147\147\347\234\11\23\46\374\142\105\316\104\361\154" "\6\53\234\22\366\262\306\41\360\347\65\263\347\12\224\41" "\57\313\125\163\40\362\361\361\171\324\266\155\333\215\0\174" "\143\143\143\327\212\147\345\62\53\353\376\74\27\224\310\143" "\321\242\105\133\174\175\175\157\102\330\176\134\215\336\54\336" "\243\107\217\44\0\324\255\133\267\363\26\64\5\131\51\51" "\51\257\233\114\246\207\54\347\354\331\263\157\326\253\127\57" "\11\100\74\370\366\354\16\40\76\42\42\42\71\51\51\151" "\250\32\275\104\316\371\363\347\7\173\172\172\76\0\177\155" "\173\17\32\64\150\217\253\253\153\216\106\243\51\132\273\166" "\355\47\112\262\210\250\213\277\277\377\175\10\157\144\20\210" "\32\65\152\164\257\145\313\226\333\0\264\21\354\323\50\66" "\66\166\155\124\124\324\35\106\216\245\12\62\72\315\235\73" "\167\203\217\217\317\155\0\35\301\277\115\32\357\343\343\163" "\147\332\264\151\73\344\344\20\21\67\174\370\360\203\6\203" "\41\367\215\67\336\260\70\313\225\225\53\376\36\75\172\364" "\146\0\364\334\163\317\35\147\71\157\275\365\326\116\0\324" "\273\167\357\303\62\151\143\214\106\143\166\132\132\132\177\0" "\110\113\113\33\150\64\32\263\1\264\142\70\66\313\6\40" "\300\303\303\343\341\311\223\47\337\221\342\14\107\156\265\50" "\172\364\350\161\272\105\213\26\322\263\103\24\307\12\71\31" "\152\71\4\176\213\304\317\77\377\374\263\337\176\373\355\251" "\272\165\353\236\224\344\105\15\32\64\70\4\300\273\167\357" "\336\123\132\267\156\175\103\304\242\243\243\157\365\353\327\157" "\14\370\166\71\35\174\337\17\2\121\124\124\324\37\121\121" "\121\273\1\270\67\150\320\340\60\53\263\131\263\146\267\337" "\176\373\355\247\205\164\137\0\370\103\256\254\254\216\55\133" "\266\114\153\333\266\155\2\200\352\365\353\327\77\52\325\261" "\104\61\31\314\312\130\110\104\244\175\370\360\341\377\231\315" "\346\154\0\117\313\244\263\125\337\252\364\150\326\254\331\355" "\216\35\73\176\17\300\73\76\76\176\141\303\206\15\357\311" "\330\330\267\103\207\16\253\133\266\154\131\334\57\307\306\306" "\246\306\305\305\175\15\300\127\152\107\71\73\1\310\4\60" "\155\367\356\335\356\103\206\14\131\52\235\63\11\377\353\211" "\161\314\174\311\334\270\161\343\175\22\371\370\367\277\377\175" "\4\0\365\354\331\363\204\44\37\164\355\332\365\254\223\223" "\123\101\327\256\135\223\0\40\56\56\356\254\106\243\51\212" "\217\217\77\43\341\166\364\364\364\314\272\167\357\336\307\36" "\36\36\331\0\72\260\162\72\167\356\174\216\343\270\242\27" "\137\174\361\220\44\335\47\215\33\67\276\116\104\355\244\345" "\74\167\356\134\361\16\32\254\75\330\162\246\244\244\304\261" "\371\130\13\125\155\56\355\300\34\230\3\263\364\55\331\153" "\274\145\313\226\267\114\46\123\246\301\140\50\130\277\176\175" "\273\300\300\300\224\127\136\171\345\44\303\233\246\321\150\12" "\205\267\375\157\1\170\1\100\361\126\353\104\324\233\210\72" "\21\321\127\104\324\205\210\306\222\160\246\253\234\177\43\175" "\203\101\324\203\370\35\175\106\365\354\331\363\62\307\161\105" "\215\32\65\112\311\312\312\32\317\352\315\6\166\176\73\150" "\320\240\105\304\37\217\263\221\210\176\40\242\361\175\372\364" "\231\56\63\317\55\21\10\266\267\257\265\26\130\233\262\363" "\155\261\214\340\13\336\171\370\360\341\233\324\350\43\47\133" "\105\274\242\337\133\326\170\261\156\232\67\157\376\63\370\61" "\355\67\61\37\53\371\227\230\207\51\325\235\32\235\30\314" "\326\366\317\143\203\203\203\157\23\121\147\213\244\226\237\142" "\276\302\271\257\115\203\202\202\316\317\235\73\367\53\342\267" "\33\226\352\65\61\64\64\364\17\42\172\122\105\36\377\27" "\30\30\170\53\75\75\275\217\134\171\112\343\163\376\223\271" "\0\140\66\233\357\177\363\315\67\113\244\166\2\323\226\344" "\154\130\106\77\273\204\234\112\346\0\226\355\104\316\157\121" "\272\66\154\162\241\302\267\57\217\177\134\325\171\104\64\210" "\210\242\1\200\210\332\20\321\107\44\234\351\72\174\370\360" "\377\0\240\366\355\333\137\376\344\223\117\232\1\60\3\30" "\153\66\233\63\223\223\223\137\27\145\250\361\245\53\223\43" "\251\137\245\276\224\35\133\145\167\350\22\323\232\114\246\14" "\10\367\40\376\375\357\177\277\313\372\65\326\374\327\252\204" "\271\271\271\345\17\34\70\160\2\0\237\166\355\332\45\350" "\365\372\302\306\215\33\357\5\20\15\300\67\72\72\172\253" "\257\257\157\261\357\147\315\277\266\346\103\127\4\306\326\143" "\171\373\0\311\375\75\65\367\365\124\371\321\225\215\131\50" "\250\160\246\353\13\57\274\160\41\70\70\70\375\332\265\153" "\121\261\261\261\73\232\65\153\126\174\157\331\232\357\135\21" "\30\140\325\327\246\226\55\133\156\207\60\157\226\316\367\24" "\323\125\45\47\301\201\71\260\377\65\114\214\143\235\122\110" "\202\30\147\60\30\362\377\363\237\377\164\7\0\147\147\347" "\274\115\233\66\365\222\362\326\255\133\267\130\170\120\100\132" "\255\266\340\375\367\337\147\235\152\0\200\237\237\337\37\263" "\147\317\56\76\227\117\334\126\230\343\270\42\266\343\70\163" "\346\314\214\360\360\360\124\235\116\227\157\60\30\162\172\366" "\354\171\71\55\55\155\131\130\130\130\112\263\146\315\166\261" "\162\11\104\117\74\361\304\265\116\235\72\45\260\372\0\100" "\247\116\235\22\332\266\155\173\105\252\207\122\71\213\377\53" "\164\312\66\354\104\302\140\375\170\305\212\25\357\110\361\335" "\273\167\217\252\131\263\346\75\255\126\133\240\325\152\13\202" "\203\203\157\46\45\45\275\52\223\177\161\271\134\134\134\36" "\13\377\145\35\257\35\73\166\254\251\131\263\146\232\126\253" "\55\60\30\14\217\333\267\157\177\74\53\53\253\217\225\362" "\132\324\373\226\55\133\326\212\351\165\72\135\176\170\170\370" "\325\255\133\267\46\210\370\322\245\113\177\360\366\366\116\27" "\157\210\10\347\105\216\144\345\153\265\332\242\237\176\372\51" "\106\316\46\251\251\251\303\232\66\155\232\244\327\353\163\365" "\172\175\156\223\46\115\222\123\123\123\207\211\370\262\145\313" "\266\230\315\346\373\32\215\246\320\335\335\375\341\230\61\143" "\176\41\242\72\62\366\226\267\273\360\360\325\112\171\113\350" "\44\367\260\225\305\245\166\142\261\216\35\73\136\172\356\271" "\347\76\74\163\346\314\264\320\320\320\233\242\336\343\306\215" "\333\340\357\357\377\110\253\325\26\104\104\104\244\44\47\47" "\57\42\146\33\150\243\321\230\175\366\354\331\1\162\171\236" "\71\163\346\265\152\325\252\75\2\340\304\114\142\212\77\116" "\116\116\271\121\121\121\147\123\123\123\337\142\312\340\273\160" "\341\302\137\275\274\274\322\65\32\115\241\253\253\153\366\340" "\301\203\117\27\73\3\62\162\204\153\354\64\61\147\355\111" "\71\222\217\322\244\112\152\317\126\314\271\2\266\362\222\27" "\303\160\10\104\313\227\57\137\347\351\351\371\100\243\321\24" "\172\171\171\145\156\334\270\361\133\153\162\210\250\316\300\201" "\3\177\257\137\277\376\357\22\236\252\162\155\333\266\155\4" "\0\132\263\146\15\373\340\130\321\6\104\344\74\150\320\40" "\213\207\111\104\344\272\147\317\236\217\302\302\302\316\71\71" "\71\345\351\164\272\274\260\260\260\163\173\366\354\231\101\104" "\256\152\354\311\310\162\71\162\344\310\322\272\165\353\136\160" "\162\162\312\63\30\14\271\117\75\365\324\245\347\236\173\356" "\252\277\277\177\252\65\131\77\376\370\343\222\152\325\252\145" "\1\60\23\210\216\37\77\76\65\40\40\340\266\116\247\313" "\7\370\63\144\243\243\243\117\337\275\173\367\155\106\116\211" "\372\220\321\251\336\320\241\103\367\273\272\272\146\163\34\127" "\344\352\352\232\375\332\153\257\35\42\242\46\12\162\360\370" "\361\343\330\260\260\260\114\351\131\256\254\134\361\367\225\53" "\127\72\150\265\332\242\125\253\126\215\141\71\247\117\237\176" "\112\243\321\320\226\55\133\206\110\323\6\4\4\134\231\74" "\171\362\76\361\346\13\21\71\115\232\64\351\267\200\200\200" "\53\245\51\133\170\170\370\31\224\242\275\260\162\277\377\376" "\373\211\156\156\156\322\205\75\44\345\131\53\273\132\16\201" "\150\334\270\161\247\334\334\334\262\14\6\303\343\356\335\273" "\377\56\325\161\354\330\261\353\135\134\134\262\103\102\102\256" "\136\274\170\261\270\216\223\222\222\306\205\204\204\134\321\152" "\265\5\36\36\36\17\226\57\137\276\231\301\306\6\4\4" "\334\61\30\14\217\337\170\343\215\155\254\314\223\47\117\116" "\14\16\16\116\321\152\265\5\236\236\236\17\326\256\135\273" "\132\256\254\254\216\47\116\234\30\137\275\172\365\164\203\301" "\220\63\144\310\220\37\45\17\23\25\235\64\224\354\347\113" "\244\43\176\167\214\237\153\326\254\171\103\46\235\255\372\126" "\245\307\221\43\107\246\4\6\6\336\322\152\265\5\376\376" "\376\267\116\234\70\361\36\233\256\173\367\356\7\305\61\374" "\342\305\213\243\104\354\332\265\153\257\207\207\207\137\325\351" "\164\371\235\73\167\76\146\55\77\2\321\242\105\213\166\232" "\114\246\7\162\163\40\0\210\210\210\310\24\34\136\20\170" "\7\230\343\270\42\235\116\227\367\374\363\317\377\42\221\217" "\325\253\127\217\0\100\313\226\55\233\310\346\3\0\363\347" "\317\237\15\200\76\371\344\223\217\1\140\326\254\131\237\2" "\240\205\13\27\176\310\162\375\375\375\257\175\360\301\7\77" "\23\221\323\364\351\323\167\373\373\373\137\143\345\314\235\73" "\167\36\0\332\270\161\343\233\154\72\127\127\127\271\271\212" "\70\17\160\141\337\162\227\251\153\42\42\75\233\217\265\120" "\325\346\322\16\314\201\71\60\113\337\222\275\306\57\134\270" "\60\322\317\317\57\13\0\31\215\306\314\21\43\106\374\104" "\104\377\22\171\165\352\324\271\370\365\327\137\37\270\174\371" "\162\102\227\56\135\222\165\72\135\176\333\266\155\17\261\362" "\344\202\332\361\135\324\243\70\216\350\231\121\243\106\235\165" "\167\167\317\41\176\13\127\331\174\224\346\267\342\107\141\236" "\53\253\47\251\333\276\326\152\71\355\245\217\234\154\205\170" "\65\363\350\322\312\54\221\107\303\206\15\57\153\64\232\302" "\46\115\232\134\262\42\273\304\174\103\322\326\324\344\45\33" "\10\66\267\177\216\60\231\114\17\216\35\73\366\261\105\72" "\345\305\314\322\163\137\1\0\146\263\371\16\224\155\30\151" "\62\231\36\36\77\176\174\266\44\217\246\167\63\273\0\0" "\12\360\111\104\101\124\15\162\171\170\172\172\336\133\275\172" "\365\122\261\375\112\313\123\32\237\363\237\314\5\60\64\60" "\60\60\223\210\102\145\350\126\333\166\131\374\154\71\71\225" "\314\201\114\32\310\341\326\342\45\161\266\372\30\113\171\345" "\360\217\253\72\17\12\101\360\107\157\166\351\322\45\315\333" "\333\73\123\270\247\226\127\273\166\355\13\7\17\36\374\126" "\222\227\115\137\272\62\71\45\212\42\123\66\271\170\45\316" "\230\61\143\366\213\343\223\324\257\261\346\277\126\45\154\346" "\314\231\173\135\135\135\37\151\64\232\302\340\340\340\133\173" "\367\356\335\272\162\345\312\331\236\236\236\367\264\132\155\101" "\140\140\340\355\3\7\16\174\45\362\255\371\327\326\174\350" "\212\300\330\172\54\157\37\300\316\67\124\336\327\53\316\327" "\232\37\135\331\230\162\313\375\263\254\15\32\64\70\337\272" "\165\353\113\116\116\116\171\1\1\1\177\34\71\162\144\212" "\210\131\363\275\53\2\3\224\175\155\0\324\274\171\363\163" "\132\255\266\100\156\276\247\230\256\146\315\232\231\340\337\276" "\150\3\240\215\237\237\337\3\21\164\140\16\314\201\125\54" "\6\41\10\35\253\325\67\135\211\150\111\261\23\102\264\230" "\210\74\245\74\42\362\47\242\217\171\12\255\40\242\346\45" "\362\42\172\237\175\340\105\374\341\334\353\204\117\53\106\226" "\73\21\215\42\242\357\205\374\236\41\376\240\356\321\104\324" "\317\102\67\176\200\134\154\66\233\63\131\175\0\300\154\66" "\147\316\233\67\357\13\251\36\112\345\264\26\10\104\315\232" "\65\113\127\262\223\150\103\42\132\110\62\147\42\20\221\47" "\21\115\45\176\225\364\112\342\337\102\55\61\231\143\35\53" "\342\127\166\53\356\101\117\104\65\210\150\212\40\157\61\361" "\53\302\225\157\42\260\53\243\371\364\65\211\350\135\41\375" "\367\202\315\153\62\170\50\361\53\371\126\11\234\267\311\162" "\145\33\204\170\127\5\233\30\210\137\31\270\124\370\14\42" "\42\3\203\327\42\242\131\104\264\206\210\26\210\155\100\152" "\123\45\273\113\363\263\206\253\341\60\145\222\175\350\176\344" "\310\221\267\175\175\175\357\255\137\277\76\230\210\306\21\321" "\152\42\372\234\210\232\23\321\64\301\26\43\332\265\153\267" "\1\100\62\123\216\371\44\234\263\131\102\56\221\53\21\175" "\112\62\53\367\211\167\270\277\43\242\227\131\273\11\351\352" "\22\321\114\241\156\26\22\321\377\261\272\312\264\233\342\153" "\314\12\107\256\215\225\260\205\214\275\304\353\330\152\136\12" "\345\267\310\113\370\16\41\376\54\314\65\102\31\153\252\220" "\363\57\42\172\335\102\226\312\162\21\221\267\140\353\352\114" "\234\125\33\20\121\7\226\43\304\171\21\321\110\42\132\56" "\174\106\22\163\326\261\55\173\112\144\171\20\321\60\42\132" "\106\104\337\20\177\36\353\323\323\246\115\333\146\103\57\77" "\42\372\214\210\14\2\307\110\104\223\211\277\276\305\25\252" "\3\111\174\120\51\271\46\224\332\276\200\265\45\242\57\210" "\150\255\360\335\101\312\221\310\342\210\277\116\144\367\242\222" "\364\173\116\304\137\77\65\44\62\134\204\166\120\342\314\150" "\42\232\110\302\271\71\14\77\212\210\46\226\246\154\304\237" "\53\155\265\275\0\262\216\13\210\357\103\77\227\304\53\336" "\14\224\223\241\226\43\350\32\103\174\137\271\230\210\272\227" "\270\176\210\132\20\321\227\202\335\135\30\314\115\210\133\51" "\134\133\241\14\346\112\374\70\262\230\210\132\113\144\272\23" "\77\126\211\351\2\131\335\244\66\25\322\124\43\176\161\313" "\67\173\366\354\171\236\75\273\274\4\137\346\372\267\20\47" "\223\216\210\232\20\321\124\151\72\45\331\112\171\131\301\214" "\104\64\111\50\363\24\262\274\1\113\202\335\113\214\341\304" "\317\121\106\21\77\377\171\116\111\177\46\256\16\21\175\102" "\62\163\40\101\247\121\104\264\212\341\213\375\354\162\342\317" "\142\227\366\77\176\102\33\360\147\363\21\260\60\1\13\27" "\376\107\10\377\103\44\72\115\46\242\306\214\235\47\261\162" "\126\255\132\325\305\144\62\345\21\221\217\44\335\42\245\153" "\207\210\70\361\174\34\13\73\362\337\32\321\116\154\76\326" "\102\125\233\113\73\60\7\346\300\54\175\113\366\32\47\42" "\227\360\360\360\273\223\47\117\116\44\176\56\134\274\110\123" "\300\207\13\175\241\73\361\363\234\345\104\364\42\53\117\56" "\224\142\356\42\366\65\231\0\146\1\160\33\63\146\314\134" "\341\234\153\131\131\26\145\51\71\277\125\234\347\132\323\223" "\210\236\40\242\61\342\267\255\362\225\110\157\47\175\344\144" "\313\305\313\310\257\220\63\135\211\150\50\361\176\314\20\53" "\262\25\37\14\11\337\35\1\344\202\77\247\117\51\57\331" "\40\224\165\14\133\77\22\314\203\210\346\221\345\331\165\177" "\246\57\351\127\327\42\336\157\321\112\170\63\225\154\110\374" "\375\201\171\342\134\303\126\36\72\235\256\360\327\137\177\155" "\314\120\32\0\310\146\164\50\215\317\371\117\346\66\46\242" "\51\12\134\233\155\233\210\352\156\334\270\161\225\223\223\123" "\141\142\142\342\367\144\333\317\226\365\65\53\213\43\226\213" "\115\303\352\313\342\326\342\331\70\311\107\225\157\117\145\364" "\217\377\16\74\271\100\40\272\176\375\372\207\104\364\2\361" "\327\371\12\101\306\10\42\62\113\145\220\12\137\272\62\71" "\114\275\51\371\310\66\357\133\24\327\267\345\370\44\275\267" "\153\315\177\255\112\130\43\342\175\232\325\104\364\16\21\371" "\20\177\217\173\16\361\276\337\44\261\136\5\276\333\352\325" "\253\277\166\162\162\52\114\112\112\372\232\54\375\153\105\37" "\272\42\60\266\36\355\324\7\224\270\117\257\324\56\44\371" "\52\372\321\225\215\131\153\273\114\372\67\210\250\77\361\367" "\334\46\111\144\53\372\336\25\201\1\312\276\66\157\146\32" "\104\374\263\204\22\363\75\245\164\134\227\56\135\222\122\123" "\123\213\317\36\163\161\161\361\71\174\370\160\20\201\250\153" "\227\256\147\35\230\3\163\140\25\207\161\340\67\2\27\177" "\263\161\142\220\213\223\13\26\362\210\66\262\373\244\253\225" "\121\326\74\11\104\40\324\63\233\315\307\63\62\62\372\1" "\130\53\140\317\233\315\346\145\367\356\335\153\314\161\334\171" "\153\162\325\344\111\40\152\327\266\335\331\275\277\356\255\247" "\144\47\45\71\266\344\227\305\366\377\53\270\65\273\227\106" "\136\171\165\22\332\231\161\321\242\105\313\77\370\340\203\106" "\327\257\137\137\14\340\147\0\347\301\73\273\265\0\164\7" "\360\206\277\277\277\313\301\203\7\277\10\14\14\174\267\64" "\355\337\36\145\250\114\116\131\372\7\133\234\362\136\247\366" "\324\133\55\267\42\354\240\210\23\65\341\70\356\104\125\152" "\7\152\71\366\110\143\157\235\112\301\1\204\363\254\125\364" "\363\4\240\334\155\131\312\51\253\274\312\304\204\370\74\0" "\23\0\54\151\336\274\371\206\314\314\314\346\27\57\136\64" "\251\221\47\174\273\3\30\311\161\334\64\42\122\145\107\173" "\135\323\52\60\100\162\256\271\225\164\212\355\240\264\72\124" "\104\35\226\101\216\117\124\124\324\152\167\167\367\260\335\273" "\167\207\224\46\177\37\37\237\234\73\167\356\264\3\360\273" "\150\107\2\141\314\350\61\35\76\373\354\263\377\346\346\346" "\152\155\311\142\145\126\245\271\264\3\163\140\16\314\322\267" "\144\257\161\16\234\263\136\257\317\76\166\354\330\123\15\32" "\64\330\11\46\224\167\116\256\166\354\46\20\276\133\372\335" "\216\221\43\107\76\161\377\376\375\152\356\356\356\331\243\107" "\217\116\236\62\145\112\264\222\254\322\316\117\312\342\377\331" "\153\156\134\136\331\225\221\126\141\76\3\250\33\117\111\340" "\211\337\26\166\271\237\161\77\164\321\242\105\153\336\173\357" "\275\206\71\71\71\56\225\61\167\372\53\370\142\232\206\15" "\32\146\170\170\170\354\331\267\157\337\120\0\131\61\61\61" "\253\335\334\334\352\377\364\323\117\301\366\366\157\376\27\270" "\326\322\146\144\144\204\260\155\253\64\362\377\112\216\332\153" "\240\74\175\237\75\175\303\277\63\217\100\4\202\13\307\161" "\71\345\315\353\177\221\363\167\301\254\361\345\372\211\277\132" "\367\212\354\3\376\352\262\331\3\253\212\72\11\230\65\137" "\33\120\236\63\51\247\43\176\45\270\67\223\246\220\343\270" "\257\205\316\253\227\3\163\140\16\254\342\60\361\202\27\177" "\127\324\304\253\254\3\230\132\236\370\375\336\173\357\355\371" "\342\213\57\152\337\272\165\253\46\201\250\106\365\32\151\103" "\207\16\75\67\171\362\344\16\366\320\121\260\147\77\160\130" "\246\144\247\322\14\150\266\360\362\14\170\377\44\334\232\335" "\113\43\257\274\72\25\353\103\124\47\51\51\151\320\320\241" "\103\233\237\72\165\252\341\203\7\17\114\205\205\205\132\235" "\116\227\357\343\343\223\376\334\163\317\235\377\344\223\117\166" "\153\64\232\31\34\307\345\224\246\375\333\243\14\225\311\261" "\107\377\40\345\330\243\57\261\227\336\152\271\25\141\207\312" "\222\125\231\34\173\244\261\267\116\245\340\210\177\155\365\363" "\66\171\62\134\271\120\42\175\131\257\215\312\304\10\104\23" "\306\117\70\376\351\247\237\326\315\311\311\61\370\371\371\335" "\137\265\152\325\362\330\330\330\341\252\372\127\20\305\266\213" "\135\373\353\257\277\76\67\176\374\370\244\217\76\372\250\201" "\332\164\366\270\246\125\326\231\332\61\376\37\365\320\125\247" "\325\25\172\173\173\77\334\273\167\357\244\210\210\210\317\113" "\223\377\300\201\3\217\56\135\272\264\51\11\157\240\200\220" "\0\16\317\150\70\15\275\362\312\53\311\213\27\57\256\257" "\126\337\252\66\227\166\140\16\314\201\131\372\226\142\137\111" "\40\174\74\347\343\220\203\7\17\376\274\166\355\332\6\34" "\307\75\146\322\330\145\116\256\224\126\344\210\175\15\10\341" "\0\206\0\10\2\177\166\354\167\34\307\35\123\222\125\332" "\371\211\215\171\101\271\157\10\332\113\237\362\352\134\326\264" "\12\363\31\100\305\170\52\56\346\146\27\165\113\333\232\126" "\253\55\214\215\215\115\373\371\347\237\3\53\143\356\364\127" "\360\305\64\27\316\137\230\322\263\147\317\1\347\316\235\13" "\4\100\215\33\67\276\274\163\347\316\131\136\136\136\337\332" "\153\314\377\137\342\332\110\113\154\333\52\215\374\277\222\243" "\366\32\50\117\337\147\57\335\377\356\274\312\266\327\77\215" "\363\167\301\154\360\113\364\23\177\265\356\25\331\7\374\325" "\145\263\7\126\25\165\42\330\364\265\1\205\71\223\265\164" "\162\171\331\4\35\230\3\163\140\366\305\304\337\162\174\253" "\27\252\35\364\50\17\137\252\67\21\65\45\313\55\7\247" "\22\121\123\173\351\250\306\116\112\162\154\311\57\213\355\377" "\127\160\133\266\125\53\257\274\62\54\256\31\176\153\217\136" "\304\157\43\363\275\260\105\304\167\302\226\26\155\210\210\223" "\113\127\136\375\252\32\307\36\375\203\224\143\217\276\304\136" "\172\253\345\126\204\35\52\113\126\145\162\354\221\246\64\151" "\355\311\41\225\333\352\251\341\111\271\162\37\271\364\125\165" "\16\41\215\27\266\315\131\104\374\266\320\323\110\330\242\113" "\215\74\41\175\117\342\267\302\262\171\66\235\332\361\101\215" "\356\152\60\42\371\155\266\144\307\160\53\355\240\264\72\124" "\104\35\226\126\216\260\155\323\164\222\34\47\240\252\176\210" "\72\22\321\72\213\70\136\346\72\22\316\167\124\253\157\125" "\151\353\16\314\201\71\60\171\254\170\174\343\277\335\210\250" "\173\151\145\225\107\17\71\175\112\233\117\151\347\47\145\361" "\377\354\131\206\362\310\256\214\264\162\363\231\322\214\247\112" "\34\146\56\265\202\210\372\50\345\145\113\116\131\365\250\114" "\276\230\206\370\155\164\337\24\374\316\357\210\350\125\42\322" "\225\126\246\203\153\73\255\264\155\225\106\376\137\311\121\173" "\15\224\247\357\263\247\157\370\167\346\125\266\275\376\151\234" "\277\13\146\215\57\327\117\374\325\272\127\144\37\360\127\227" "\315\36\130\125\324\111\30\337\25\175\155\153\163\46\153\351" "\376\37\266\206\174\254\347\114\277\367\0\0\0\0\111\105" "\116\104\256\102\140\202" }, { ":resources/knob.png", 3597, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\71\0\0\0\71\10\6\0\0\0\214\30\203" "\205\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\3\33\13\2\52\107\24\113\252\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\15\165\111\104\101\124\150\336\315\233\175\150\33\147" "\236\307\177\363\314\214\64\63\172\265\106\157\143\215\255\27" "\153\222\270\215\335\30\207\224\246\245\204\334\145\333\222\153" "\163\107\60\107\373\317\266\145\357\150\32\322\376\121\112\141" "\257\20\350\36\113\103\70\112\151\272\260\167\120\16\112\133" "\50\144\273\307\246\264\127\366\350\55\107\377\10\107\262\216" "\233\127\217\354\165\245\110\266\144\131\262\144\275\314\150\336" "\366\217\235\361\216\124\305\161\336\75\360\143\300\36\75\317" "\363\321\357\345\171\236\171\276\302\104\121\204\373\165\11\202" "\200\0\200\6\0\135\24\305\366\375\352\27\273\27\220\202" "\40\340\0\20\63\315\3\0\214\151\264\355\61\35\0\332" "\0\320\4\200\26\0\324\0\40\7\0\45\121\24\215\55" "\11\51\10\2\5\0\103\0\20\67\341\210\333\154\252\155" "\302\146\1\340\272\50\212\332\3\207\24\4\301\11\0\217" "\0\300\50\0\340\0\200\335\254\117\363\176\63\157\31\0" "\40\1\300\64\0\134\25\105\121\277\357\220\146\110\216\2" "\300\70\0\70\155\203\357\272\117\116\116\172\307\306\306\374" "\251\124\312\37\213\305\174\221\110\304\257\50\212\272\264\264" "\124\313\345\162\265\114\46\123\75\167\356\134\165\156\156\256" "\335\3\157\277\327\1\340\234\50\212\13\367\15\122\20\4" "\36\0\36\5\0\267\11\263\156\44\111\242\43\107\216\244" "\17\35\72\264\153\154\154\354\221\201\201\201\310\46\232\64" "\26\27\27\27\316\235\73\167\341\263\317\76\373\343\347\237" "\177\136\60\341\214\36\330\145\0\370\77\121\24\353\367\24" "\122\20\204\207\0\140\2\0\220\151\30\0\240\321\321\121" "\367\373\357\277\177\160\317\236\75\173\51\212\162\337\111\12" "\324\152\265\345\157\276\371\346\367\107\216\34\371\337\106\243" "\241\332\140\165\0\220\115\320\302\135\207\64\313\377\36\0" "\110\230\271\207\0\0\261\54\113\175\370\341\207\7\236\172" "\352\251\147\34\16\7\163\67\253\142\255\126\133\376\370\343" "\217\177\363\326\133\157\235\265\101\352\0\240\1\300\37\105" "\121\274\172\327\40\315\312\371\30\0\260\46\40\1\0\350" "\355\267\337\236\170\365\325\127\177\352\166\273\3\33\175\136" "\327\165\60\14\143\335\0\0\60\14\3\14\303\0\41\4" "\30\266\161\255\132\132\132\232\177\375\365\327\377\343\253\257" "\276\52\230\200\26\350\237\314\134\325\357\10\322\364\340\136" "\33\40\11\0\304\247\237\176\372\334\323\117\77\75\205\335" "\140\204\232\246\201\256\353\240\151\67\237\1\54\130\34\307" "\1\41\324\367\31\131\226\133\357\275\367\336\257\116\234\70" "\61\155\102\252\246\145\104\121\374\376\116\41\307\154\363\36" "\31\12\205\134\137\174\361\305\221\321\321\321\275\375\236\127" "\125\165\123\140\33\1\343\70\16\70\216\377\270\72\31\206" "\176\346\314\231\317\136\174\361\305\63\46\240\142\336\277\27" "\105\61\173\133\220\202\40\14\1\300\210\351\75\7\313\262" "\256\157\277\375\366\235\150\64\272\275\237\347\356\4\356\106" "\260\375\74\173\366\354\331\63\317\76\373\354\177\232\220\12" "\0\164\0\340\274\50\212\325\176\155\241\15\0\375\246\7" "\255\34\200\323\247\117\37\11\205\102\333\55\40\313\72\235" "\16\250\252\332\225\167\167\152\272\256\203\242\50\240\50\12" "\364\366\267\173\367\356\277\373\340\203\17\366\233\305\310\32" "\337\66\163\141\262\71\110\101\20\60\23\120\265\0\77\371" "\344\223\177\110\247\323\373\172\73\124\24\345\107\205\345\156" "\232\246\151\353\51\140\267\103\207\16\375\363\261\143\307\166" "\330\212\20\6\0\374\255\170\162\300\266\210\326\337\171\347" "\235\311\307\37\177\374\245\336\216\124\125\5\135\327\357\271" "\365\3\65\14\203\70\166\354\330\317\367\355\333\307\232\220" "\32\0\270\5\101\240\157\12\151\126\123\257\371\41\65\20" "\10\20\207\17\37\176\335\60\14\324\333\371\275\362\336\106" "\41\154\67\222\44\375\307\217\37\377\47\253\54\230\221\27" "\334\214\47\335\146\254\253\0\0\247\116\235\72\354\164\72" "\7\355\337\342\203\0\264\203\332\307\302\363\374\376\243\107" "\217\156\263\101\222\275\336\104\175\162\221\62\77\140\114\116" "\116\172\306\307\307\137\352\7\170\77\302\264\237\131\171\152" "\33\17\366\302\13\57\34\265\245\227\6\0\256\215\74\111" "\332\342\33\216\37\77\376\22\102\310\153\157\24\303\260\7" "\346\105\313\60\14\353\2\35\30\30\230\174\367\335\167\37" "\263\55\22\220\231\166\0\175\66\266\270\371\240\1\0\370" "\340\340\340\101\373\334\207\343\370\372\262\354\101\137\126\64" "\131\327\304\304\304\263\0\360\173\233\67\11\163\376\374\53" "\244\40\10\326\36\120\7\0\170\363\315\67\167\222\44\31" "\265\67\104\222\144\127\303\17\362\302\60\254\153\54\54\313" "\76\356\363\371\234\265\132\255\141\102\342\375\302\25\331\266" "\64\150\367\356\335\77\261\207\204\365\355\155\25\263\40\255" "\361\41\204\174\157\274\361\306\36\33\3\146\326\230\256\160" "\305\254\177\2\0\21\16\207\367\331\103\225\40\210\55\23" "\252\275\313\111\353\172\350\241\207\376\6\0\276\261\203\2" "\200\101\364\171\257\2\301\140\220\246\151\172\233\275\1\204" "\320\226\203\104\10\165\101\172\74\236\107\154\216\323\373\25" "\36\213\0\177\362\311\47\171\115\323\60\173\374\333\367\202" "\133\325\223\70\216\263\0\340\260\105\45\364\13\127\0\0" "\174\150\150\150\320\236\324\133\251\252\366\333\220\333\122\52" "\100\222\244\123\121\24\334\316\204\154\225\25\0\0\30\206" "\301\7\6\6\6\173\326\211\133\322\54\110\133\161\164\356" "\334\271\63\340\166\273\361\164\72\275\356\315\365\352\72\65" "\65\5\74\317\43\135\327\11\227\313\25\356\205\174\120\53" "\234\133\135\1\215\216\216\106\165\135\107\212\242\140\123\123" "\123\177\365\244\141\30\370\336\275\173\11\115\323\60\247\323" "\211\67\32\15\265\167\307\261\125\275\331\273\73\251\124\52" "\52\115\323\50\221\110\300\313\57\277\114\244\323\351\365\155" "\67\161\340\300\1\62\30\14\142\44\111\22\245\122\251\326" "\273\245\332\252\220\75\233\152\143\146\146\246\346\164\72\221" "\307\343\101\173\366\354\161\2\0\146\25\36\64\60\60\100" "\271\335\156\231\44\111\50\24\12\125\173\102\133\33\343\255" "\130\164\354\343\222\145\271\51\111\222\36\16\207\21\307\161" "\100\121\224\13\0\232\353\325\225\246\151\46\221\110\164\312" "\345\62\226\315\146\53\366\322\154\305\376\126\273\172\137\232" "\65\233\315\72\115\323\230\317\347\3\216\343\20\216\343\56" "\0\320\55\110\203\40\10\27\317\363\265\371\371\171\54\237" "\317\67\44\111\222\110\222\244\154\337\22\70\34\216\55\5" "\51\111\122\27\144\275\136\137\241\151\32\202\301\40\332\265" "\153\27\201\141\230\63\223\311\30\126\116\52\24\105\171\5" "\101\300\303\341\260\101\323\264\176\375\372\365\153\366\274\154" "\265\132\133\56\37\233\315\146\127\321\231\237\237\277\342\361" "\170\40\24\12\141\43\43\43\356\256\171\62\223\311\150\0" "\40\77\361\304\23\54\307\161\230\337\357\327\147\147\147\57" "\331\33\150\64\32\133\152\352\120\125\25\332\355\166\27\344" "\371\363\347\147\2\201\200\21\217\307\21\307\161\101\135\327" "\327\272\346\111\115\323\252\301\140\60\302\363\74\260\54\253" "\315\314\314\174\257\252\252\156\65\332\351\164\100\222\244\55" "\343\305\265\265\265\56\350\162\271\134\154\66\233\225\150\64" "\152\360\74\217\30\206\211\266\132\255\152\27\44\105\121\313" "\156\267\233\113\44\22\50\26\213\151\30\206\325\213\305\142" "\276\147\16\332\22\200\232\246\101\265\132\355\362\142\66\233" "\315\260\54\253\16\17\17\33\143\143\143\76\202\40\310\112" "\245\122\357\202\314\144\62\55\204\220\74\61\61\301\46\22" "\11\43\34\16\53\27\56\134\70\153\157\250\331\154\156\211" "\260\255\124\52\135\363\243\44\111\312\305\213\27\317\15\16" "\16\252\361\170\334\110\44\22\203\232\246\55\365\175\307\203" "\20\312\162\34\67\222\110\44\200\347\171\245\120\50\314\55" "\56\56\56\331\101\313\345\362\3\175\133\327\351\164\176\344" "\305\53\127\256\134\246\151\272\76\64\64\244\46\223\111\334" "\345\162\15\33\206\221\353\13\71\73\73\173\231\141\230\201" "\207\37\176\330\33\217\307\65\216\343\344\351\351\351\363\366" "\6\333\355\66\24\213\305\7\26\246\371\174\276\153\51\327" "\154\66\145\121\24\57\306\142\61\45\231\114\32\333\267\157" "\37\301\161\174\171\161\161\261\277\47\235\116\147\307\60\214" "\357\206\207\207\307\122\251\224\76\74\74\54\153\232\266\224" "\313\345\12\366\160\131\135\135\205\225\225\225\373\36\246\205" "\102\1\44\111\352\372\333\354\354\254\30\14\6\333\361\170" "\134\115\46\223\104\40\20\110\352\272\376\207\15\137\56\177" "\371\345\227\323\64\115\243\35\73\166\204\122\251\224\312\363" "\274\174\365\352\325\231\172\275\336\266\173\264\130\54\102\275" "\136\277\157\136\264\372\263\217\41\237\317\257\124\52\225\77" "\305\343\361\116\52\225\322\122\251\324\66\204\320\45\267\333" "\135\332\20\162\142\142\102\63\14\343\167\321\150\164\64\225" "\112\101\62\231\224\203\301\140\153\172\172\372\212\54\313\232" "\275\223\134\56\7\245\122\351\236\207\150\66\233\205\162\271" "\334\5\270\272\272\332\236\233\233\273\306\363\174\47\225\112" "\51\311\144\222\362\371\174\241\325\325\325\377\356\25\73\365" "\75\360\71\171\362\344\214\303\341\230\25\4\141\307\310\310" "\210\232\110\44\44\227\313\125\273\164\351\322\102\357\326\246" "\130\54\102\66\233\275\47\73\25\111\222\140\156\156\16\152" "\265\32\364\324\5\355\332\265\153\363\221\110\104\116\46\223" "\235\124\52\5\261\130\154\47\102\350\67\74\317\127\172\171" "\360\327\136\173\355\107\220\343\343\343\106\261\130\234\211\104" "\42\373\50\212\12\53\212\322\121\125\225\256\325\152\130\265" "\132\105\176\277\337\155\30\6\146\37\114\245\122\261\346\333" "\73\176\175\251\50\12\54\56\56\102\76\237\7\105\121\272" "\376\47\313\262\46\212\342\165\257\327\273\72\62\62\322\330" "\266\155\333\132\72\235\36\244\151\372\17\36\217\347\223\176" "\222\265\33\112\303\166\355\332\325\372\341\207\37\176\31\14" "\6\177\265\175\373\166\207\252\252\262\141\30\162\66\233\135" "\271\174\371\62\244\323\351\10\111\222\310\276\123\51\24\12" "\260\274\274\14\241\120\10\274\136\57\220\44\171\313\13\156" "\173\121\353\275\32\215\106\147\141\141\141\311\357\367\257\45" "\223\311\116\72\235\356\214\214\214\104\335\156\267\370\365\327" "\137\377\372\106\232\274\233\35\247\143\245\122\351\21\204\320" "\373\331\154\266\236\311\144\150\121\24\7\362\371\274\173\155" "\155\315\235\110\44\102\56\227\353\206\44\14\303\200\317\347" "\3\206\141\200\44\111\40\111\162\375\170\134\125\125\120\125" "\25\24\105\201\106\243\1\265\132\15\144\131\276\341\130\126" "\126\126\332\305\142\161\205\145\331\166\74\36\137\23\4\241" "\46\10\2\36\12\205\352\271\134\356\147\343\343\343\245\333" "\202\264\100\213\305\342\337\42\204\176\221\317\347\265\114\46" "\3\363\363\363\236\102\241\340\252\126\253\224\307\343\361\205" "\303\141\6\307\161\154\63\336\262\40\67\273\11\227\145\131" "\133\132\132\152\52\212\262\26\16\207\345\241\241\241\146\52" "\225\152\244\323\151\47\313\262\225\166\273\175\224\347\171\161" "\43\145\345\115\225\214\242\50\32\221\110\344\177\346\347\347" "\113\34\307\175\110\20\204\333\341\160\310\24\105\21\205\102" "\1\55\57\57\327\256\135\273\326\16\4\2\356\140\60\110" "\335\114\223\263\131\361\204\246\151\106\261\130\154\255\255\255" "\265\274\136\257\302\161\134\207\347\171\71\231\114\52\361\170" "\334\357\367\373\57\146\62\231\327\36\175\364\321\342\315\244" "\243\233\222\153\212\242\250\247\122\251\357\277\373\356\273\177" "\24\4\341\327\44\111\246\151\232\156\273\335\156\314\345\162" "\101\271\134\66\152\265\232\136\255\126\333\36\217\207\362\170" "\74\16\232\246\361\333\71\251\152\66\233\112\275\136\127\132" "\255\126\233\242\50\65\32\215\252\221\110\104\341\171\136\36" "\36\36\326\170\236\367\62\14\363\345\351\323\247\177\376\312" "\53\257\264\67\243\215\275\45\155\235\40\10\350\324\251\123" "\314\324\324\324\273\222\44\35\54\26\213\172\56\227\353\54" "\55\55\71\112\245\222\243\122\251\340\215\106\3\227\44\11" "\1\0\301\60\14\311\60\14\111\20\4\42\111\22\21\4" "\201\41\204\60\313\123\252\252\352\212\242\350\212\242\350\255" "\126\113\151\265\132\35\202\40\164\212\242\164\257\327\253\261" "\54\253\206\303\141\45\26\213\251\261\130\314\31\16\207\65" "\14\303\376\215\343\270\177\7\0\155\263\342\337\333\21\20" "\142\0\200\137\270\160\141\222\145\331\137\64\233\315\321\122" "\251\244\55\56\56\52\305\142\221\250\126\253\104\275\136\307" "\133\255\26\152\267\333\110\121\24\314\234\337\60\303\60\0" "\41\144\115\75\6\102\10\20\102\6\101\20\340\160\70\164" "\232\246\15\227\313\245\371\375\176\75\20\10\50\221\110\104" "\345\70\216\16\205\102\210\44\311\63\242\50\376\162\377\376" "\375\327\341\57\362\356\115\277\164\272\135\51\50\146\56\44" "\360\113\227\56\75\355\365\172\377\265\321\150\4\53\225\12" "\224\313\145\271\132\255\32\265\132\15\157\64\32\250\325\152" "\241\116\247\203\51\212\202\231\353\115\314\54\100\6\216\343" "\100\222\244\341\164\72\165\227\313\245\273\335\156\335\347\363" "\151\54\313\22\301\140\320\21\10\4\60\247\323\171\76\227" "\313\375\313\336\275\173\57\132\307\374\267\52\337\276\43\345" "\262\5\173\360\340\101\347\311\223\47\237\242\50\352\260\141" "\30\7\32\215\6\64\32\15\243\136\257\167\326\326\326\64" "\111\222\14\131\226\61\123\22\203\231\347\53\206\303\341\60" "\34\16\7\60\14\203\271\134\56\302\347\363\221\36\217\207" "\144\30\146\125\327\365\377\252\327\353\247\47\46\46\376\337" "\22\44\335\256\66\375\156\310\263\355\242\136\174\164\164\324" "\361\321\107\37\75\26\14\6\377\36\307\361\237\150\232\26" "\122\125\325\51\313\262\244\252\152\107\67\347\16\34\307\11" "\207\303\341\40\111\322\111\20\104\3\307\361\234\44\111\277" "\135\130\130\370\335\63\317\74\163\305\46\224\322\357\124\170" "\177\67\205\366\166\131\66\262\31\376\334\163\317\121\317\77" "\377\174\224\343\70\316\343\361\104\65\115\353\324\353\365\105" "\121\24\227\116\234\70\121\132\130\130\120\154\147\375\226\146" "\301\270\133\277\52\270\127\77\231\350\247\107\357\67\201\366" "\323\233\303\335\376\311\304\237\1\373\76\244\60\366\117\332" "\65\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/logo.png", 14190, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\302\0\0\0\252\10\6\0\0\0\377\106\220" "\6\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\4\6\13\15\2\345\152\254\315\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\40\0\111\104\101\124\170\332\355\175\147\167\343\110" "\266\144\200\236\24\145\313\166\317\316\173\377\377\77\355\356" "\171\263\323\335\345\345\351\111\140\77\360\306\144\60\225\11" "\200\44\100\226\252\231\347\350\224\221\4\46\62\257\215\353" "\22\234\326\261\126\13\100\333\376\276\2\260\264\277\247\247" "\243\71\374\112\116\107\160\260\325\0\320\1\60\0\320\7" "\320\5\320\264\257\6\200\31\200\147\0\43\0\343\23\103" "\234\30\341\127\134\135\0\27\0\56\215\21\132\71\147\77" "\5\360\0\340\316\30\42\73\35\337\211\21\136\373\152\3" "\270\2\160\15\340\314\44\177\231\225\1\230\0\370\146\14" "\261\72\35\345\211\21\136\253\31\164\6\340\235\151\201\306" "\216\317\131\1\370\16\340\13\200\305\351\130\353\133\315\323" "\21\324\42\134\56\0\374\16\140\270\7\23\220\241\206\146" "\112\115\305\241\76\255\23\43\374\364\353\32\300\157\246\21" "\252\322\270\175\273\253\23\63\234\30\341\125\254\53\323\4" "\203\32\264\314\300\174\216\23\63\324\144\313\236\126\65\353" "\14\300\107\223\336\125\256\14\300\34\153\4\51\261\347\237" "\174\273\212\127\353\164\4\225\254\56\200\367\306\14\125\255" "\231\21\377\330\376\276\60\115\260\300\11\122\75\61\302\117" "\152\136\136\143\215\16\125\261\122\0\117\130\103\247\243\223" "\31\164\142\204\327\262\6\0\336\124\350\157\75\0\370\154" "\232\340\264\116\76\302\253\71\277\267\0\172\25\75\217\101" "\264\23\23\234\30\341\125\255\253\12\115\42\140\215\10\115" "\116\307\172\62\215\136\333\331\135\126\150\22\245\346\24\127" "\355\23\64\340\120\246\114\374\232\206\375\73\265\77\371\163" "\51\134\112\107\323\276\267\72\61\302\151\305\126\267\102\223" "\210\4\273\250\340\76\73\366\325\66\302\156\300\245\174\267" "\204\330\63\141\10\30\3\246\302\20\13\323\120\143\163\332" "\127\47\106\70\55\177\45\306\4\125\7\316\126\366\354\254" "\44\343\264\155\37\114\353\46\261\267\340\122\274\223\35\367" "\101\330\66\305\337\0\256\75\61\302\356\353\254\342\347\145" "\45\356\203\65\15\144\102\145\200\135\211\136\327\2\353\232" "\210\133\254\41\334\277\115\326\353\211\21\166\67\143\172\65" "\74\267\33\221\276\115\143\274\163\254\223\360\372\250\76\75" "\146\12\340\7\200\173\323\4\177\253\240\335\337\225\21\222" "\75\57\272\213\172\362\264\272\306\144\251\60\333\271\175\25" "\25\364\354\243\211\36\261\116\365\176\372\73\43\37\277\372" "\152\212\3\311\367\125\273\167\145\322\60\225\177\227\171\146" "\243\6\346\154\213\175\177\151\137\175\324\227\34\231\141\135" "\370\363\31\177\163\330\266\365\213\276\123\327\114\211\201\60" "\100\303\276\232\42\165\227\160\20\342\314\210\141\46\177\137" "\345\20\120\273\206\275\167\0\374\323\376\74\104\162\335\30" "\353\0\336\337\76\166\361\53\61\102\333\10\377\334\230\240" "\133\140\112\320\361\344\352\143\35\40\133\332\327\334\114\205" "\221\375\175\346\375\156\35\104\332\264\75\34\142\245\346\24" "\237\242\330\277\0\43\44\160\205\361\127\330\256\56\70\357" "\114\132\146\237\137\30\23\114\14\115\171\66\302\351\377\2" "\316\344\330\174\203\123\267\214\127\316\10\15\43\324\33\270" "\162\306\72\244\64\375\213\163\143\212\105\215\316\362\41\27" "\65\235\177\246\231\60\271\37\221\376\245\321\223\327\270\347" "\41\326\31\237\127\107\44\310\24\256\132\214\201\255\327\162" "\236\53\254\241\322\47\143\162\145\200\206\234\51\315\104\256" "\205\61\17\301\206\305\211\21\216\347\7\134\141\335\35\342" "\230\204\267\60\373\372\316\174\207\26\326\325\151\157\136\321" "\131\246\142\26\45\236\100\111\105\103\360\337\32\365\236\211" "\166\144\143\262\245\200\17\47\323\250\146\46\170\207\165\332" "\163\373\310\173\371\212\165\233\225\245\110\316\247\55\65\224" "\242\126\11\34\262\165\110\323\262\221\363\275\274\237\155\213" "\311\224\331\173\214\305\207\32\343\225\105\245\133\257\160\257" "\117\166\21\304\327\17\255\25\156\261\206\34\127\1\355\232" "\226\144\204\251\75\343\321\10\211\160\357\65\252\257\171\256" "\333\242\110\304\217\272\64\15\61\65\155\371\364\132\264\304" "\153\162\370\50\165\237\114\362\74\210\263\327\70\320\273\144" "\246\11\236\3\347\170\155\16\165\21\143\22\266\144\323\256" "\225\230\27\123\143\204\66\136\347\242\146\353\232\166\354\333" "\335\254\176\166\15\361\32\221\17\252\342\271\21\317\23\326" "\360\46\63\102\353\366\15\356\214\140\165\135\155\151\262\335" "\7\230\11\342\210\252\51\322\170\245\14\301\373\140\156\124" "\142\357\227\235\30\241\76\4\144\152\204\265\260\303\257\343" "\275\346\346\33\334\12\201\166\114\23\154\323\306\45\201\113" "\163\136\105\314\246\7\321\20\163\271\253\344\25\2\34\314" "\231\72\263\77\331\211\343\304\10\65\242\40\314\241\247\315" "\132\245\46\370\212\65\344\230\32\61\336\230\26\170\263\203" "\46\142\332\207\316\105\150\170\16\350\34\153\254\177\44\214" "\261\24\346\171\155\61\240\246\11\213\41\134\341\317\352\304" "\10\365\255\271\35\160\277\42\142\131\141\235\224\366\103\210" "\366\55\134\157\323\135\316\260\41\146\303\300\154\352\241\151" "\227\36\66\313\43\123\361\43\36\341\42\334\254\32\143\14" "\340\65\334\145\42\357\336\66\146\130\374\54\33\173\355\253" "\211\315\252\54\72\316\157\215\270\252\60\207\276\171\232\340" "\367\12\65\116\346\335\3\35\113\202\2\23\373\112\43\167" "\307\12\65\176\235\41\37\32\75\244\206\136\10\212\104\15" "\220\210\171\370\34\360\267\116\214\120\122\222\262\56\267\13" "\127\233\333\226\377\157\211\224\114\366\144\202\317\236\71\304" "\6\277\275\3\22\23\63\141\11\14\370\321\136\75\33\246" "\234\253\246\251\313\147\212\151\317\31\34\272\67\265\377\313" "\274\57\245\277\354\304\10\345\45\176\133\56\265\357\61\101" "\35\357\60\203\13\232\221\11\316\1\374\57\34\47\242\235" "\311\276\64\150\25\322\24\172\156\335\0\143\324\25\270\133" "\231\351\366\135\200\200\127\23\145\376\231\31\241\5\227\126" "\75\64\2\74\204\203\270\60\115\160\53\222\167\10\340\37" "\25\230\132\125\22\335\334\44\356\43\134\153\310\105\316\75" "\67\5\271\241\11\325\106\165\51\345\13\323\236\17\310\257" "\345\320\2\44\6\41\227\342\27\145\47\106\130\137\26\323" "\237\317\53\164\170\267\145\202\357\42\151\207\146\16\135\374" "\204\302\202\346\337\30\16\102\36\331\337\263\10\121\45\342" "\127\235\301\325\156\124\21\310\143\36\322\30\353\130\211\246" "\171\153\303\201\236\370\163\104\317\350\13\61\75\374\157\313" "\10\75\270\316\161\165\226\47\346\231\103\364\11\110\100\147" "\246\11\316\137\211\206\47\34\373\54\66\372\24\371\60\245" "\246\110\14\214\361\265\65\314\256\213\231\0\367\160\5\107" "\203\202\147\62\243\225\46\126\236\351\367\313\61\2\63\112" "\157\120\355\224\231\155\231\340\23\326\121\143\36\374\300\64" "\301\25\136\347\112\205\21\10\271\316\113\60\105\42\176\330" "\300\356\244\57\32\173\27\346\364\273\355\261\342\157\141\337" "\243\357\242\376\13\363\261\356\160\0\210\365\230\214\120\325" "\300\275\52\230\340\213\240\103\324\116\37\15\45\372\25\372" "\303\256\104\102\217\345\13\5\66\71\243\331\147\236\131\323" "\333\222\176\62\101\223\236\75\64\211\147\316\140\333\205\10" "\304\324\356\345\53\152\206\131\223\43\62\301\45\326\303\65" "\6\107\44\266\205\151\202\133\154\106\154\377\141\32\352\330" "\114\220\325\160\107\53\173\357\261\20\346\252\244\324\45\124" "\335\23\37\256\215\374\230\12\321\244\37\160\101\300\74\346" "\353\303\105\355\151\106\375\0\360\147\235\232\341\30\214\300" "\140\327\73\123\211\307\132\63\161\214\365\242\77\32\203\36" "\203\350\231\114\270\300\146\37\322\26\252\217\7\220\311\46" "\106\240\23\221\326\131\1\261\222\156\72\142\106\235\231\104" "\157\173\202\206\371\131\363\55\5\345\33\63\115\333\266\227" "\77\355\256\126\277\2\43\164\214\310\336\342\270\51\1\23" "\143\202\73\271\360\16\200\17\266\267\103\153\202\324\210\220" "\120\350\34\256\51\157\113\10\356\322\114\207\72\316\216\132" "\141\4\227\321\313\175\224\41\334\4\353\126\64\67\202\144" "\175\201\113\122\334\145\275\63\301\324\261\347\375\201\232\232" "\220\35\222\30\273\106\150\357\216\310\4\231\150\202\173\141" "\202\226\61\350\66\223\157\150\167\163\246\131\163\307\375\74" "\1\370\313\366\364\44\16\155\46\114\262\20\247\167\11\27" "\101\257\122\220\21\312\34\30\303\21\132\155\43\34\25\366" "\337\343\215\235\141\103\300\207\7\354\27\27\130\330\271\16" "\305\114\172\106\15\261\206\103\21\144\147\7\102\253\323\61" "\126\164\250\51\227\330\56\220\332\23\373\135\106\235\357\215" "\170\37\114\232\317\205\70\233\45\30\211\135\346\236\121\16" "\46\114\105\122\127\235\141\353\133\12\155\161\140\57\341\2" "\232\215\200\226\350\233\137\325\205\113\122\274\303\376\320\47" "\205\300\231\275\153\23\56\335\376\325\61\102\142\352\115\235" "\237\143\372\4\267\330\154\127\362\106\324\157\21\321\176\65" "\342\147\272\67\141\100\46\226\75\300\341\367\51\134\207\210" "\220\4\375\141\373\331\26\15\241\126\143\355\105\335\325\154" "\252\51\330\207\225\22\232\176\306\133\254\141\346\304\316\351" "\113\205\266\374\22\56\73\267\5\67\263\341\125\61\102\303" "\314\241\217\107\326\4\143\141\202\230\15\32\133\123\123\363" "\137\260\331\43\65\217\151\350\170\216\341\22\341\22\221\162" "\267\266\237\371\236\214\315\34\250\103\371\172\72\223\341\102" "\230\202\116\362\314\234\332\131\15\302\364\34\16\316\145\333" "\231\312\146\67\324\111\234\224\266\37\216\254\11\350\30\253" "\275\332\100\271\164\152\302\253\273\250\171\146\216\162\316\0" "\203\106\367\266\237\52\210\145\156\104\331\75\60\360\221\210" "\371\244\71\140\337\366\164\216\363\264\340\100\336\365\122\120" "\252\156\340\147\177\52\106\270\64\46\70\146\127\206\251\60" "\201\366\360\271\262\275\365\12\16\377\73\134\55\302\276\210" "\320\114\210\245\52\325\236\12\221\34\273\340\237\232\163\131" "\23\43\164\341\122\135\174\37\346\32\56\2\336\26\315\334" "\50\313\30\165\111\352\236\151\203\301\21\57\46\4\221\302" "\16\363\103\211\275\115\115\272\125\225\353\302\254\314\252\35" "\75\302\235\307\156\3\63\106\175\303\321\63\73\73\215\175" "\54\340\246\7\261\375\347\5\134\14\206\145\256\23\361\347" "\16\312\10\64\73\56\161\274\310\365\4\153\110\362\336\373" "\177\146\222\236\225\70\370\207\32\234\262\171\15\357\312\324" "\211\143\304\77\102\16\174\135\317\137\301\365\215\272\203\113" "\346\143\76\324\0\256\166\5\246\101\156\204\11\350\267\115" "\20\50\156\252\203\21\256\114\33\34\353\122\106\160\161\2" "\170\232\340\67\224\253\51\140\132\300\153\130\231\61\354\34" "\207\253\234\13\231\150\165\147\211\262\274\223\351\333\63\221" "\374\337\340\322\274\65\335\233\305\111\104\235\336\12\352\304" "\164\361\61\200\264\152\106\350\333\207\165\42\27\226\211\243" "\345\167\134\256\202\40\150\247\372\321\307\263\55\230\200\32" "\145\376\223\21\174\136\147\352\205\355\371\320\116\263\132\1" "\207\142\70\377\363\62\271\263\11\66\313\171\331\123\251\47" "\46\324\300\276\250\141\246\0\106\125\62\102\23\56\225\132" "\67\311\374\31\246\4\57\304\371\121\56\256\312\131\173\364" "\210\205\231\244\303\55\210\344\147\152\65\302\54\335\163\173" "\227\61\326\61\210\105\100\53\34\313\34\245\363\332\250\121" "\63\60\172\117\141\232\346\60\313\34\256\1\234\326\270\17" "\355\54\331\215\217\246\324\171\225\214\100\357\275\141\233\320" "\354\306\231\107\130\324\10\155\254\353\200\367\225\144\143\143" "\2\337\34\142\132\307\5\266\113\31\136\325\350\370\155\253" "\141\337\30\201\363\214\172\46\371\36\2\202\340\230\65\302" "\44\262\247\232\30\255\51\246\374\66\276\10\375\1\146\5" "\60\157\253\57\250\123\263\52\106\150\331\3\331\22\121\235" "\222\64\102\154\11\252\51\306\31\231\143\354\333\364\314\44" "\335\45\235\372\330\332\100\323\324\207\201\263\316\42\32\361" "\21\233\221\340\103\152\207\1\326\161\231\257\166\47\32\153" "\110\214\101\166\145\324\314\103\305\50\104\27\133\76\3\242" "\55\36\205\271\206\255\12\71\166\144\52\273\314\214\336\26" "\326\121\335\17\330\57\226\361\14\227\254\246\113\63\111\167" "\165\312\352\124\363\145\230\340\167\204\323\324\47\21\64\153" "\12\340\337\160\231\240\147\246\115\252\30\247\265\215\126\30" "\300\101\251\154\346\225\1\370\277\173\240\160\115\117\140\336" "\330\331\214\20\357\373\124\206\61\250\55\246\125\5\324\10" "\237\55\113\276\324\173\373\332\207\21\47\342\30\147\36\23" "\274\263\257\144\17\6\33\35\311\324\270\62\307\76\64\125" "\163\145\10\311\50\307\76\136\211\51\60\26\344\344\120\314" "\300\32\350\236\330\341\55\270\226\234\151\100\50\322\171\315" "\162\316\104\123\367\165\160\44\323\74\32\1\247\172\53\116" "\73\344\142\246\347\307\75\231\140\204\160\232\57\231\154\337" "\4\277\151\300\351\346\45\263\343\103\307\223\342\125\60\315" "\205\151\202\101\104\330\334\143\163\100\111\31\373\170\42\204" "\163\314\325\11\0\21\155\270\64\234\176\104\230\166\215\136" "\6\106\340\314\362\155\212\263\313\306\17\324\110\155\171\377" "\122\302\360\220\71\100\15\333\354\276\232\340\11\141\210\224" "\271\115\125\114\324\11\71\357\114\315\270\261\347\123\210\50" "\36\115\144\154\327\317\174\157\177\352\105\53\363\323\364\334" "\146\315\215\171\206\70\156\105\40\315\325\41\34\64\315\312" "\66\266\361\151\333\73\116\5\30\140\160\226\167\377\377\214" "\221\56\340\240\120\76\203\377\276\204\153\51\131\252\233\307" "\41\31\201\271\107\335\34\107\206\152\55\213\354\155\145\132" "\140\24\140\62\112\226\52\162\156\250\322\127\201\317\270\364" "\176\266\147\377\267\20\115\262\155\151\42\333\111\166\340\6" "\210\134\303\365\122\232\41\74\240\44\217\350\10\123\147\102" "\20\35\34\267\141\103\313\316\52\305\313\26\367\154\371\162" "\16\227\116\321\225\373\144\331\47\317\225\321\145\232\141\54" "\374\327\326\237\135\73\307\51\134\111\352\23\2\360\370\241" "\114\243\363\210\312\147\17\236\73\263\175\71\351\161\342\71" "\134\164\0\231\6\334\262\227\241\352\173\213\342\164\352\62" "\176\316\302\30\355\66\340\43\144\160\235\342\32\21\263\217" "\211\141\147\162\171\151\111\306\173\143\114\304\314\324\13\61" "\27\374\72\212\62\317\362\123\306\233\42\71\217\275\362\346" "\74\160\356\4\205\121\42\147\111\1\251\150\344\112\120\240" "\107\117\53\67\345\171\354\331\164\45\332\207\300\110\166\210" "\103\351\341\145\273\104\302\254\237\341\146\211\161\50\6\71" "\167\4\67\42\152\351\275\24\273\263\255\4\266\333\267\132" "\153\12\127\171\66\212\20\160\231\121\262\144\336\241\355\151" "\126\2\216\355\233\163\377\315\176\377\332\276\30\37\271\333" "\102\342\376\146\147\362\214\160\45\131\17\257\163\151\161\320" "\231\275\333\54\140\61\114\355\376\264\25\46\341\372\266\74" "\347\2\22\140\153\36\140\363\37\314\316\123\264\347\213\175" "\345\301\136\14\154\55\340\372\361\254\104\365\261\207\347\105" "\5\266\357\24\353\130\304\155\1\172\301\124\6\232\37\315" "\300\367\377\155\304\73\203\13\204\25\325\331\62\65\205\321" "\317\163\270\342\367\321\26\100\304\73\363\63\62\43\204\105" "\100\50\15\361\172\127\42\232\167\0\127\41\30\243\235\231" "\60\304\10\256\230\251\201\315\42\243\253\72\31\241\141\122" "\355\203\230\22\132\350\262\155\320\152\41\57\303\252\257\116" "\5\176\316\12\156\32\316\66\110\314\134\56\105\57\212\131" "\253\23\333\337\15\212\163\227\330\350\212\261\213\373\55\35" "\143\12\234\367\266\47\76\303\117\303\350\5\174\234\237\161" "\371\171\150\376\277\125\272\77\225\60\77\251\75\106\166\56" "\23\61\133\133\0\32\165\62\2\115\26\45\24\277\301\356" "\56\7\304\372\340\26\252\111\62\143\335\302\66\214\311\144" "\255\47\333\117\103\10\262\57\227\164\41\227\65\55\140\106" "\246\115\334\243\174\200\210\355\31\225\11\270\176\4\64\102" "\327\366\324\370\11\11\237\332\237\255\357\11\72\334\301\145" "\327\362\214\23\171\237\245\70\327\145\76\107\357\216\346\367" "\274\56\324\210\152\132\235\343\7\154\66\330\335\147\215\315" "\224\141\33\221\175\326\63\166\313\64\145\17\117\366\347\144" "\362\240\242\30\113\63\157\236\75\342\15\111\274\155\65\44" "\243\307\357\43\304\235\344\20\334\317\62\146\212\104\254\265" "\2\212\350\350\371\44\166\246\277\173\346\335\215\21\366\375" "\16\367\107\307\372\261\56\106\270\362\124\360\322\30\241\312" "\302\15\16\363\140\356\371\56\53\105\70\202\334\260\147\256" "\120\56\56\260\24\324\102\63\44\23\317\347\340\100\275\61" "\134\60\151\34\161\154\213\340\321\153\43\202\101\344\275\232" "\221\377\77\146\142\36\333\263\360\235\107\2\46\144\71\46" "\22\377\116\133\177\30\0\32\146\342\277\155\55\324\352\140" "\4\332\305\55\317\276\37\327\360\131\143\270\214\302\135\244" "\134\136\272\65\235\326\257\50\337\167\10\5\222\235\301\76" "\365\31\176\207\13\226\225\115\353\270\104\176\164\76\326\63" "\165\205\343\126\15\216\4\370\230\357\140\42\307\140\327\241" "\11\225\77\366\101\165\252\366\352\331\346\303\267\353\307\65" "\35\360\263\111\307\135\264\102\126\160\31\227\106\270\267\246" "\172\367\351\74\301\206\1\137\341\2\135\337\4\124\140\327" "\213\62\132\63\55\260\363\143\371\372\351\1\315\242\114\4" "\40\265\345\276\235\73\30\13\11\1\63\67\306\144\217\273" "\150\275\252\31\241\5\327\350\111\57\145\134\343\201\57\114" "\272\354\302\10\215\210\111\222\212\55\77\60\215\163\141\314" "\160\17\127\335\124\166\365\214\11\126\36\312\261\200\353\227" "\244\243\126\65\10\324\261\317\124\23\155\136\102\40\55\43" "\367\163\10\323\210\235\73\356\341\352\121\252\310\344\75\107" "\34\52\157\233\306\235\141\207\64\227\252\31\141\20\261\131" "\27\65\113\236\135\245\134\122\342\102\233\202\0\121\5\77" "\12\352\220\156\101\30\151\340\222\226\106\60\155\273\150\215" "\221\60\212\75\366\176\57\55\320\12\61\233\273\116\106\40" "\170\360\44\14\120\145\135\107\333\64\164\63\140\352\65\204" "\121\156\260\103\247\275\252\31\141\30\170\346\52\340\370\124" "\151\212\355\23\55\315\143\242\125\304\211\146\163\334\76\326" "\301\263\271\167\131\204\364\64\75\4\202\230\61\376\301\322" "\106\146\120\352\310\334\106\200\10\174\264\151\225\163\177\213" "\10\223\327\65\177\231\214\176\13\227\313\123\365\175\323\344" "\326\224\213\7\73\277\153\61\235\30\267\271\73\26\43\60" "\75\71\251\120\142\27\255\63\354\227\162\315\264\352\120\364" "\166\136\160\231\176\316\121\142\332\360\37\102\264\14\357\223" "\340\33\36\121\66\113\22\46\353\11\126\5\76\200\236\371" "\52\300\4\315\212\357\202\31\236\167\10\107\262\253\244\255" "\67\336\75\23\65\144\326\151\127\300\232\113\154\166\73\77" "\50\43\64\43\222\271\121\341\341\23\176\144\210\375\2\373" "\345\316\260\210\44\264\212\354\132\277\55\73\313\7\353\230" "\303\34\12\34\66\13\0\200\105\340\377\253\112\303\116\5" "\261\273\107\275\35\77\130\143\162\356\61\340\55\34\134\172" "\157\77\103\124\211\155\50\27\207\146\204\104\324\172\214\21" "\252\50\175\354\303\25\151\224\225\246\105\207\34\43\216\145" "\301\176\231\253\342\27\315\63\61\257\312\325\336\342\356\22" "\204\13\371\33\250\46\341\156\151\14\160\213\160\305\131\225" "\213\150\220\37\64\275\367\114\237\111\340\334\217\302\10\54" "\256\216\341\327\114\71\250\102\162\364\53\44\64\152\204\126" "\0\145\141\133\220\230\204\247\177\362\124\302\111\255\2\215" "\363\65\104\336\232\172\76\5\177\147\337\161\261\17\342\7" "\34\2\175\72\307\313\301\62\154\305\271\364\350\17\71\377" "\56\305\161\125\22\124\222\243\332\273\25\175\116\325\376\106" "\7\361\142\241\111\301\136\374\374\376\72\321\261\206\347\237" "\344\61\101\310\277\331\65\350\310\163\370\214\165\132\313\241" "\230\140\140\376\137\317\143\306\37\330\114\131\341\170\332\266" "\167\67\331\61\30\241\205\374\142\13\326\20\124\201\34\124" "\315\10\255\310\336\130\331\265\54\270\254\216\347\140\327\141" "\52\150\176\120\33\371\305\370\313\200\346\155\344\230\256\105" "\237\373\303\320\261\157\45\0\204\52\205\323\7\154\66\54" "\323\254\134\277\340\350\74\0\144\14\217\301\10\61\347\55" "\23\324\150\133\42\366\231\352\132\140\262\252\235\261\141\344" "\54\246\5\122\236\14\236\10\341\54\153\40\26\235\137\326" "\315\321\10\164\142\147\21\246\335\346\363\36\1\374\13\353" "\32\341\47\34\256\265\215\366\243\122\32\170\62\146\364\357" "\343\52\40\310\70\271\265\164\220\265\112\37\41\364\254\7" "\221\270\147\160\321\331\254\200\270\256\304\324\320\1\167\165" "\314\0\240\211\323\15\230\102\114\344\352\347\370\11\27\366" "\236\324\6\323\212\264\237\57\260\226\342\227\164\163\356\41" "\324\151\256\267\305\236\126\166\107\234\343\160\310\44\75\66" "\60\360\373\121\261\141\303\70\340\57\306\206\302\23\132\377" "\122\306\67\155\125\114\120\172\41\267\130\217\21\32\302\15" "\232\143\312\154\236\355\335\23\156\116\305\1\257\63\207\236" "\15\143\103\220\351\23\134\304\27\221\3\277\300\272\316\202" "\31\222\127\25\237\55\43\311\11\362\373\233\76\41\134\340" "\77\50\251\215\147\146\172\334\242\372\361\117\145\64\301\373" "\200\46\240\177\62\12\110\375\233\2\115\167\5\27\157\70" "\210\151\64\224\203\326\31\141\13\270\42\13\332\370\157\163" "\210\212\46\124\137\366\327\304\141\12\111\142\304\76\102\176" "\271\44\323\251\171\41\165\14\314\240\104\273\314\221\354\204" "\65\227\1\141\67\54\140\314\324\176\367\177\340\312\114\17" "\271\132\302\4\241\240\331\123\304\137\274\56\140\160\346\37" "\15\353\146\4\366\372\371\315\44\76\35\32\235\21\266\20" "\117\237\55\121\102\243\134\233\166\321\67\70\316\72\213\34" "\330\14\56\321\56\317\151\276\226\237\237\326\300\10\355\2" "\77\353\61\242\15\72\5\266\62\213\213\376\104\371\166\61" "\125\153\343\217\130\303\244\55\157\137\34\5\234\105\20\245" "\156\11\372\144\43\345\306\266\16\356\66\114\160\1\67\201" "\206\123\146\102\43\123\231\367\317\1\326\103\101\76\230\324" "\166\143\207\161\254\46\124\154\31\23\32\222\315\121\256\375" "\234\263\350\212\331\307\166\367\125\150\262\24\16\262\214\65" "\107\143\103\204\120\226\357\65\342\75\140\71\167\372\7\216" "\63\17\242\157\364\363\316\73\253\5\342\145\275\155\373\35" "\65\21\63\344\107\363\331\347\51\332\227\167\37\73\366\34" "\233\143\230\176\300\245\24\307\16\235\163\257\22\361\366\231" "\213\163\314\311\233\44\146\26\343\334\7\314\216\37\310\117" "\360\243\215\73\207\253\274\32\124\304\10\44\350\220\220\140" "\52\367\123\304\371\214\41\155\17\246\11\36\216\164\326\314" "\22\270\14\40\165\137\214\11\102\277\307\231\316\4\20\246" "\302\304\355\210\77\324\262\337\233\107\316\151\147\215\160\215" "\165\145\325\31\134\336\307\137\71\122\205\135\26\374\332\332" "\346\1\175\200\262\132\201\176\101\32\261\323\373\71\347\306" "\240\325\104\30\253\12\106\130\40\334\336\236\216\344\217\34" "\223\303\167\256\311\324\237\120\276\125\114\35\146\50\245\172" "\103\244\372\14\256\313\111\26\141\2\126\346\75\233\71\307" "\237\177\366\314\303\226\167\117\214\165\5\253\15\233\73\20" "\312\225\241\100\175\161\214\277\26\60\301\73\354\337\230\367" "\220\216\333\42\202\154\261\276\266\27\171\27\232\110\314\367" "\251\142\30\170\212\227\221\123\316\170\13\15\107\41\362\366" "\133\200\171\350\257\175\75\202\103\314\305\371\326\376\360\26" "\152\202\373\0\241\162\226\6\273\31\316\344\147\63\71\47" "\355\145\264\300\146\56\31\357\46\130\66\334\334\201\11\76" "\302\345\25\335\25\230\103\15\270\246\123\155\274\216\325\24" "\251\276\10\20\45\115\274\66\136\146\240\362\235\173\160\205" "\63\373\62\277\237\275\73\23\142\36\107\244\355\77\114\153" "\47\1\273\73\324\346\345\20\213\246\343\307\200\257\65\22" "\246\16\151\202\153\143\354\236\370\242\137\20\217\161\60\55" "\204\63\325\6\162\226\55\270\16\170\73\61\2\35\343\201" "\175\120\221\117\220\310\213\277\26\46\320\113\103\304\236\144" "\33\20\6\233\232\201\367\323\144\276\52\122\262\331\115\203" "\14\160\33\41\346\163\61\71\164\261\165\344\76\75\245\366" "\131\75\243\205\167\336\131\221\250\377\212\234\65\347\47\377" "\356\61\117\14\30\10\371\117\154\210\300\372\221\216\230\225" "\253\155\31\341\332\143\202\157\36\104\32\222\252\157\354\167" "\132\170\175\213\204\314\212\56\226\4\146\336\41\77\143\63" "\245\241\51\277\337\330\223\11\130\374\376\50\14\160\27\101" "\76\130\24\304\236\77\212\246\160\264\326\303\221\316\162\0" "\227\62\321\362\174\25\366\277\215\5\130\151\201\14\74\137" "\355\333\26\132\115\313\143\173\42\270\126\352\43\225\41\122" "\22\164\127\66\377\11\361\240\321\76\163\20\62\371\223\5" "\46\113\270\364\146\35\115\253\303\46\22\371\235\226\174\56" "\45\366\56\4\331\66\7\237\351\330\124\265\163\371\223\211" "\171\154\307\302\336\245\54\305\244\155\237\171\16\233\166\317" "\320\177\263\227\47\141\130\232\141\105\1\72\302\220\27\336" "\131\352\150\255\103\367\63\142\55\301\273\0\172\226\232\166" "\372\36\21\246\276\71\344\113\371\155\337\145\141\314\3\273" "\323\216\371\254\354\257\224\113\250\14\160\151\260\354\26\256" "\143\163\236\11\365\1\345\212\100\224\330\331\215\142\12\67" "\55\75\365\314\203\225\20\67\13\175\224\310\32\330\354\174" "\334\26\251\316\164\353\206\70\116\115\344\27\301\353\124\226" "\63\221\322\113\71\304\251\354\235\132\102\175\203\26\136\146" "\213\222\71\123\171\136\52\357\267\102\371\146\134\203\210\71" "\364\154\2\353\371\300\114\240\3\76\102\0\311\304\150\350" "\26\341\40\45\255\211\367\250\66\246\104\230\231\340\15\3" "\155\143\0\151\222\363\62\67\266\31\365\11\76\27\240\15" "\27\346\250\15\112\60\300\104\244\351\30\57\133\375\145\25" "\113\247\114\114\36\45\360\256\330\363\35\141\340\262\132\144" "\42\266\350\223\330\236\131\316\331\126\365\156\135\161\214\165" "\75\231\71\164\214\110\61\323\150\316\75\46\340\330\247\130" "\312\4\205\306\215\110\355\330\171\377\157\354\36\0\354\141" "\75\322\370\302\366\364\157\0\167\255\34\333\354\203\100\244" "\337\121\234\305\167\51\176\104\336\32\301\25\173\307\352\202" "\253\226\140\251\347\350\372\104\251\76\1\43\310\135\221\346" "\135\304\243\227\72\257\367\35\134\143\131\62\372\252\246\167" "\353\230\240\362\231\340\121\64\301\241\141\147\232\102\276\65" "\100\223\372\133\16\270\302\176\271\171\271\150\330\303\324\125" "\230\366\53\134\360\355\55\200\131\150\116\330\33\61\155\126" "\306\4\237\13\314\241\241\161\331\300\173\26\2\222\352\117" "\34\57\220\123\126\265\147\142\116\221\31\330\302\245\114\27" "\156\277\313\133\225\115\256\224\150\76\170\122\167\154\22\356" "\220\23\101\233\102\120\127\1\63\163\136\200\164\321\274\173" "\147\264\127\104\344\13\0\377\247\200\206\264\155\315\62\362" "\175\6\205\333\0\156\233\1\163\350\167\161\214\157\115\23" "\24\125\151\375\46\150\305\203\135\170\333\173\251\324\16\344" "\36\257\143\261\35\13\375\226\7\270\246\136\43\270\131\314" "\300\313\352\74\226\224\366\340\106\240\166\304\57\330\227\41" "\150\103\167\74\111\367\351\300\216\161\33\156\6\306\271\307" "\4\234\167\367\311\350\50\215\20\44\307\212\151\207\104\15" "\150\206\320\267\330\254\351\104\204\362\173\21\130\276\203\115" "\101\305\314\334\256\302\175\72\344\72\63\115\360\255\300\34" "\142\276\10\203\67\367\46\361\127\170\131\365\265\102\161\112" "\363\317\276\126\202\32\261\237\347\104\40\315\126\204\51\230" "\150\170\46\132\163\327\262\307\41\334\34\146\56\106\132\357" "\16\304\4\232\165\374\316\323\220\332\56\77\26\364\123\164" "\361\203\7\371\256\354\135\376\64\246\156\341\145\3\5\302" "\312\41\355\364\26\256\331\262\236\367\70\140\56\317\51\244" "\232\36\374\166\46\76\301\347\2\254\266\153\277\243\114\240" "\230\360\71\136\26\124\67\21\210\352\275\322\105\215\241\135" "\236\351\23\44\162\61\276\35\315\251\65\75\321\16\351\26" "\22\330\207\111\71\204\374\7\352\17\226\61\112\313\100\351" "\131\100\132\77\13\123\56\162\374\11\346\15\15\20\56\304" "\231\213\146\350\170\176\107\26\141\372\6\136\116\156\155\11" "\342\347\17\24\141\67\302\1\57\212\120\27\260\131\124\123" "\304\4\264\351\236\354\167\306\302\155\103\117\152\45\142\56" "\215\160\234\10\147\235\114\101\155\301\361\267\123\270\136\73" "\252\336\31\154\363\347\277\25\341\343\364\337\374\224\145\336" "\327\252\346\167\144\153\305\367\10\127\340\321\11\245\243\236" "\26\150\64\77\312\254\322\376\233\234\5\333\147\236\171\32" "\367\41\40\120\33\21\147\233\40\310\22\57\3\222\113\152" "\4\126\130\235\211\143\63\56\140\202\367\302\4\23\201\352" "\62\317\216\355\6\314\4\72\234\223\3\134\336\261\326\122" "\120\243\147\361\47\174\304\103\207\144\267\220\77\257\201\21" "\332\256\207\300\375\205\172\153\11\70\33\371\243\335\173\77" "\140\362\162\54\356\155\216\266\157\11\262\230\67\276\52\15" "\370\24\163\321\106\164\204\307\1\242\156\12\250\21\142\344" "\16\136\16\40\374\317\170\131\72\311\75\270\240\103\232\43" "\25\76\30\221\63\61\355\23\136\206\357\331\253\262\23\221" "\154\334\354\22\365\64\214\375\231\64\305\134\234\354\271\247" "\31\225\110\70\371\147\205\227\261\232\206\240\62\211\60\133" "\235\60\51\333\244\160\76\333\131\4\21\142\372\107\36\122" "\325\201\113\276\34\224\100\334\102\343\274\130\313\302\106\12" "\53\1\55\164\21\240\210\275\123\63\240\261\226\144\4\226" "\275\261\266\140\25\261\17\171\50\55\101\51\356\43\322\353" "\32\233\251\16\176\4\227\220\144\263\100\22\376\52\213\101" "\67\136\162\333\323\20\214\166\63\263\227\322\216\165\334\357" "\74\301\362\3\365\45\321\261\3\304\73\204\313\103\311\0" "\177\331\237\105\231\6\277\243\174\32\176\2\67\120\320\7" "\52\226\160\163\352\32\2\124\204\234\360\130\327\21\246\161" "\253\325\223\161\336\27\355\371\46\134\256\213\257\162\336\13" "\156\115\46\270\313\121\343\132\47\312\74\370\6\136\366\247" "\124\317\176\366\13\153\7\275\320\261\110\320\226\107\40\104" "\73\316\340\312\54\157\74\147\221\366\370\244\242\75\45\2" "\45\276\207\113\331\360\65\27\7\235\160\34\357\54\347\171" "\135\143\244\217\330\276\100\211\346\126\26\60\71\131\42\314" "\66\235\217\1\323\352\2\361\214\147\372\30\33\301\116\205" "\117\7\160\371\71\314\201\151\210\231\303\232\202\31\134\256" "\110\26\371\240\13\270\336\104\264\145\377\145\27\350\267\130" "\344\241\135\10\222\262\313\224\311\327\252\41\146\330\214\154" "\363\136\172\366\325\365\44\62\123\227\253\232\120\232\210\340" "\172\233\103\104\143\70\110\75\317\31\46\226\377\116\374\104" "\175\347\173\261\72\102\263\40\10\46\204\32\46\120\123\366" "\304\127\171\362\176\56\25\315\332\310\361\127\346\52\110\232" "\302\201\164\64\72\202\171\237\31\101\137\303\245\256\122\32" "\24\15\315\323\246\130\72\102\210\210\121\150\276\200\42\51" "\164\36\323\137\230\31\230\362\101\340\240\347\21\175\314\226" "\56\2\64\312\300\240\135\270\130\0\333\53\372\204\311\316" "\171\114\273\277\57\60\203\70\42\353\67\263\323\233\1\310" "\223\176\315\235\330\375\355\300\376\236\42\40\0\205\344\231" "\175\136\310\202\141\123\352\116\316\373\263\31\132\252\214\300" "\312\253\206\20\41\73\61\220\140\27\166\1\337\12\230\200" "\351\267\352\271\77\211\51\300\314\315\51\134\342\233\217\244" "\364\355\105\231\270\105\55\361\253\232\115\104\231\322\210\123" "\252\213\301\263\135\64\46\63\103\57\305\344\212\65\377\232" "\303\345\7\75\344\40\123\324\146\144\252\33\304\313\130\277" "\170\350\242\126\221\165\75\177\111\213\237\102\332\224\232\207" "\10\344\42\140\102\345\225\312\222\331\26\300\313\171\124\314" "\263\147\127\65\136\320\235\300\143\131\211\303\36\170\166\41" "\347\31\57\75\111\370\144\377\27\143\210\256\275\314\120\30" "\362\127\65\233\130\104\223\40\277\25\314\324\354\342\262\101" "\111\42\122\214\342\176\20\101\345\303\271\251\335\67\63\215" "\131\57\220\247\225\31\140\363\255\0\12\256\304\63\221\175" "\351\315\234\254\25\66\133\327\257\20\237\303\306\24\11\366" "\172\132\142\63\243\225\337\357\42\336\202\247\151\277\63\105" "\100\22\220\31\36\215\370\37\260\333\150\320\246\207\25\267" "\21\36\356\315\377\33\11\126\354\227\67\46\342\100\16\305" "\227\140\142\334\257\306\24\63\270\106\277\111\316\317\314\42" "\122\216\111\201\44\376\67\106\370\227\160\361\212\44\142\242" "\335\141\263\22\56\117\330\235\171\216\265\76\227\276\0\237" "\323\26\132\33\343\145\260\126\205\160\133\114\264\247\34\115" "\264\262\347\234\33\261\373\235\313\131\337\61\314\321\120\43" "\373\334\54\157\374\20\341\252\242\311\61\261\115\236\211\243" "\304\140\110\212\360\64\27\152\36\276\70\45\125\63\300\140" "\364\141\56\5\173\157\243\170\146\362\153\131\51\334\24\317" "\44\42\144\206\2\72\120\100\120\163\136\301\115\231\271\202" "\153\135\37\112\137\146\41\321\67\344\227\202\372\300\6\153" "\6\256\360\262\273\6\233\274\161\120\73\11\237\75\241\226" "\10\307\76\350\10\323\124\352\31\255\214\12\0\207\246\355" "\43\303\313\11\76\174\227\130\327\21\6\75\263\146\315\227" "\251\211\167\15\221\162\213\10\42\300\40\311\23\134\231\142" "\53\162\211\264\53\207\366\305\241\343\135\221\116\113\34\157" "\322\374\256\213\332\364\334\63\63\324\171\246\140\271\20\46" "\270\260\257\201\40\115\171\32\345\321\30\340\33\134\373\223" "\74\263\267\55\346\325\33\117\143\321\214\371\12\127\130\257" "\155\126\50\374\56\214\51\107\210\247\360\60\277\210\351\360" "\223\202\175\261\13\41\63\43\146\1\137\47\15\60\3\115" "\321\7\240\336\51\354\54\126\151\172\227\314\213\132\346\34" "\6\125\45\67\272\20\102\150\346\230\4\44\216\63\323\30" "\347\242\226\133\242\65\176\126\346\150\301\345\23\265\74\260" "\141\31\360\243\370\356\171\215\101\353\202\141\0\0\26\312" "\111\104\101\124\2\50\140\110\374\337\5\376\36\225\0\76" "\330\55\357\67\63\205\174\264\217\76\305\267\0\224\251\173" "\140\53\314\241\20\141\126\160\377\163\24\217\343\242\345\162" "\156\367\357\233\136\251\74\213\243\175\31\361\377\317\100\302" "\272\10\42\61\311\361\173\201\124\372\121\102\35\163\61\274" "\76\20\163\240\250\135\174\46\32\150\341\61\330\102\354\314" "\45\66\33\0\34\232\370\325\334\13\41\35\377\266\75\206" "\212\331\375\367\325\306\7\13\61\67\130\137\135\166\220\111" "\307\366\302\16\334\155\117\3\214\115\110\335\157\341\77\136" "\0\370\247\275\363\37\45\301\227\262\160\360\133\243\267\133" "\173\166\32\201\167\257\214\216\306\220\250\170\122\343\345\376" "\156\222\315\347\114\35\103\113\54\367\176\13\207\274\41\246" "\1\321\244\36\312\217\165\315\104\245\56\260\231\116\115\11" "\104\11\312\224\352\24\325\324\123\67\305\324\323\32\351\201" "\250\356\44\340\77\375\33\156\204\252\137\225\246\320\153\206" "\315\116\30\123\224\117\310\143\164\271\57\246\131\154\100\312" "\275\230\100\351\226\164\361\321\336\201\55\33\237\167\24\264" "\131\340\331\377\155\373\376\3\341\336\251\10\230\233\377\371" "\345\272\240\300\136\0\373\276\267\377\277\206\13\341\323\256" "\275\64\11\163\127\240\16\231\277\117\64\113\247\326\63\125" "\244\205\160\324\122\17\202\152\222\373\275\22\330\15\42\121" "\27\330\354\266\241\360\262\202\12\114\350\322\372\202\26\134" "\107\274\246\20\133\333\363\145\212\374\55\166\265\270\263\367" "\363\133\347\263\241\357\256\32\115\315\312\163\274\214\146\373" "\167\373\274\43\1\163\62\47\343\27\157\260\333\210\332\66" "\66\7\272\363\331\337\341\312\76\231\354\130\152\342\146\135" "\214\240\151\24\51\334\24\226\225\340\306\17\166\20\14\232" "\321\54\270\261\13\37\211\244\103\201\263\304\147\336\141\263" "\63\5\235\50\226\111\166\12\244\204\377\63\275\300\1\372" "\32\242\41\357\231\211\344\117\74\54\275\271\205\20\361\261" "\375\251\10\224\357\202\32\361\16\317\221\137\23\34\172\337" "\216\147\146\366\2\173\244\151\245\165\332\331\236\164\103\315" "\313\134\252\47\333\373\266\232\165\0\227\255\240\276\324\167" "\270\302\241\264\54\303\326\345\54\323\336\145\252\366\67\157" "\303\204\312\306\242\75\232\162\101\164\170\31\130\332\146\100" "\237\226\123\262\143\6\333\306\74\13\202\101\151\136\266\43" "\135\342\61\214\166\362\156\310\277\233\362\314\6\66\13\311" "\143\204\117\355\103\147\123\355\161\66\17\313\4\5\151\141" "\63\350\106\241\63\215\234\123\123\4\303\271\300\253\67\242" "\1\32\1\46\370\23\256\340\52\205\313\337\311\120\74\13" "\57\117\303\235\213\323\335\302\366\123\206\164\356\335\330\73" "\113\246\155\134\301\145\232\56\216\305\10\347\160\251\260\317" "\160\363\305\102\104\73\26\346\121\102\153\213\37\60\14\340" "\325\145\245\53\17\207\41\373\147\270\241\331\43\63\257\170" "\21\113\161\242\125\322\47\25\371\123\231\230\116\144\130\42" "\143\77\354\153\340\331\346\17\170\131\364\304\250\251\366\140" "\352\113\314\100\141\145\102\253\32\134\273\360\174\222\54\240" "\35\27\130\247\131\123\53\214\204\0\111\274\273\26\4\61" "\376\341\367\42\115\267\70\107\326\70\114\274\175\320\204\35" "\302\5\20\307\105\64\123\207\151\304\124\153\166\242\233\27" "\154\202\65\267\75\273\250\220\75\110\137\202\10\310\130\142" "\15\253\55\17\320\317\163\201\110\71\115\365\150\210\37\321" "\360\354\373\246\60\10\35\137\335\107\123\342\30\113\154\326" "\46\263\241\57\273\371\51\176\337\366\264\101\354\374\246\166" "\146\64\157\370\231\227\366\225\172\373\213\331\353\332\203\251" "\143\246\312\231\247\345\26\362\363\137\154\177\67\366\65\331" "\221\31\10\161\222\21\257\344\235\174\311\357\373\135\274\307" "\61\134\355\263\372\31\231\230\133\37\340\372\76\175\106\116" "\242\142\135\76\202\112\252\62\71\363\54\10\72\53\200\7" "\331\154\353\102\244\301\110\20\222\351\216\16\143\52\227\275" "\54\320\236\251\20\77\104\173\64\204\371\127\236\71\225\242" "\134\204\276\355\335\311\52\147\77\43\323\264\277\7\356\261" "\310\34\233\330\357\76\302\165\323\40\1\161\250\37\341\323" "\271\167\76\144\300\113\270\272\210\242\130\104\32\140\344\31" "\134\36\20\207\376\75\173\364\222\301\345\13\335\171\237\303" "\66\233\227\106\354\167\336\347\334\12\0\300\241\203\14\36" "\356\75\50\244\254\107\317\332\5\246\155\227\161\342\26\42" "\341\222\2\350\223\322\112\223\362\374\0\132\23\233\343\151" "\253\60\153\62\117\375\152\317\322\245\304\44\126\362\265\104" "\161\120\210\114\376\26\233\235\353\226\166\176\313\310\176\46" "\302\210\355\222\357\71\303\146\145\231\137\310\76\306\313\332" "\162\77\263\63\203\13\140\55\21\357\61\304\112\305\45\136" "\326\14\350\360\106\232\302\151\300\14\134\231\306\70\307\146" "\20\66\23\250\67\266\317\25\134\12\116\107\174\321\27\132" "\266\16\106\320\62\315\61\212\163\330\175\102\213\45\111\161" "\20\66\363\330\265\30\236\22\272\147\7\103\246\70\27\233" "\226\116\354\312\263\205\217\275\32\160\11\154\376\204\33\252" "\370\254\300\314\30\211\237\323\51\270\127\372\43\151\216\166" "\324\51\236\241\41\346\63\101\372\330\2\150\46\102\207\235" "\357\76\12\62\64\17\40\213\176\357\253\120\161\175\46\314" "\160\51\373\43\172\165\41\316\276\337\35\305\117\307\156\213" "\17\246\120\174\55\214\300\304\57\326\224\336\155\141\303\257" "\274\215\352\342\10\324\47\161\60\147\342\200\152\156\15\45" "\144\117\140\72\152\16\306\55\332\42\51\150\276\64\120\175" "\3\342\220\26\156\333\73\136\301\25\265\373\235\35\70\136" "\265\314\250\332\245\370\116\54\260\112\162\204\311\143\111\344" "\215\350\335\324\333\7\1\210\201\234\161\133\374\7\246\172" "\123\113\215\361\262\266\240\41\320\266\236\115\23\256\303\270" "\276\137\152\367\170\41\26\4\73\355\321\237\133\4\120\44" "\232\140\75\371\334\236\150\264\76\200\101\253\6\351\106\73" "\67\23\214\37\133\60\302\30\57\173\150\116\260\331\124\200" "\317\145\236\13\43\313\44\364\116\0\5\321\146\276\20\147" "\166\41\246\316\114\120\43\112\236\145\100\335\46\142\373\246" "\362\356\211\347\163\264\74\7\273\41\161\16\46\10\66\43" "\146\342\127\204\353\166\213\314\313\357\142\62\304\114\243\262" "\16\355\275\21\365\133\274\54\224\347\331\267\5\301\111\275" "\330\12\127\137\114\125\145\364\51\136\16\120\77\63\320\144" "\342\71\300\217\160\355\105\177\23\32\151\310\131\277\201\324" "\30\310\235\361\114\72\236\177\174\151\347\224\126\315\10\331" "\16\216\62\2\216\324\2\233\265\256\23\344\47\350\215\4" "\12\175\266\113\71\313\301\240\341\21\52\74\137\142\45\32" "\42\25\346\240\266\120\233\127\313\135\63\61\323\32\342\54" "\67\20\317\242\365\327\34\361\176\241\15\154\346\366\353\360" "\24\246\205\260\246\174\20\60\61\23\154\127\277\361\44\304" "\162\203\227\263\61\230\51\360\16\371\171\137\264\323\27\1" "\177\344\115\100\143\336\10\314\255\46\333\17\321\354\303\300" "\131\236\331\136\374\6\165\217\366\254\167\1\301\223\0\150" "\326\241\21\172\262\361\151\204\20\263\2\102\230\141\63\62" "\75\335\302\341\146\53\300\177\346\370\32\363\0\102\223\4" "\124\264\232\62\105\2\40\331\122\140\254\2\360\46\141\301" "\37\1\154\237\331\274\14\44\51\104\115\7\226\151\5\34" "\265\352\153\326\144\113\244\220\71\113\114\353\230\171\304\251" "\32\350\274\0\10\350\170\146\113\52\360\167\250\356\204\351" "\27\123\157\77\337\104\253\206\326\245\150\53\5\67\156\155" "\237\227\171\220\140\325\216\162\133\374\203\105\0\132\35\40" "\36\55\146\320\146\40\204\173\267\205\166\141\265\25\73\35" "\44\336\101\176\262\257\261\110\252\42\163\55\53\200\43\267" "\141\2\26\257\260\137\51\344\135\23\317\206\247\63\370\21" "\156\16\131\137\34\342\206\60\52\121\221\53\171\357\126\140" "\337\123\154\227\47\164\51\246\15\347\33\257\2\50\122\136" "\367\72\72\262\223\200\237\160\36\271\203\216\10\301\324\143" "\276\106\216\37\324\22\372\363\323\261\331\354\72\71\24\43" "\320\341\361\261\337\6\334\114\266\125\116\200\103\241\265\155" "\40\330\20\32\243\146\304\127\223\140\234\330\256\155\4\103" "\16\50\233\25\314\3\366\74\233\134\175\23\47\265\314\364" "\320\157\160\235\34\146\2\105\362\331\337\355\22\333\342\110" "\17\121\276\71\26\211\250\213\160\104\234\16\163\136\25\32" "\321\225\53\271\117\246\277\154\14\341\23\1\103\106\314\113" "\273\17\45\330\365\21\36\56\223\210\71\65\361\10\172\41" "\176\141\14\302\147\117\336\314\323\302\327\41\272\257\322\64" "\242\4\352\140\163\266\0\2\1\22\366\117\175\16\230\117" "\32\205\155\330\1\356\322\75\173\2\327\107\11\160\171\107" "\53\317\41\134\5\316\201\35\301\77\331\337\37\340\72\375" "\361\373\176\133\233\31\200\377\52\20\56\154\202\260\364\10" "\223\105\67\152\26\376\36\60\155\62\211\133\254\174\73\27" "\341\61\267\10\230\130\355\34\247\231\263\305\206\1\346\147" "\43\342\221\107\144\251\200\26\303\34\41\331\106\270\150\46" "\266\70\364\157\344\321\311\324\356\347\14\361\172\344\153\361" "\63\64\103\165\212\100\362\145\325\76\202\357\50\147\1\15" "\324\227\3\367\43\227\176\114\1\330\275\373\35\363\213\56" "\344\300\103\145\174\61\46\372\346\241\26\43\261\147\71\362" "\165\351\71\144\243\2\264\346\153\1\123\57\105\110\134\7" "\316\144\54\360\361\114\160\362\216\110\361\13\304\353\10\40" "\320\355\74\162\77\34\337\224\147\357\277\13\110\152\106\272" "\273\21\315\110\1\350\373\11\343\210\237\100\72\32\32\363" "\375\345\355\367\301\210\374\115\344\167\371\56\354\232\227\12" "\114\376\342\276\353\140\204\114\270\326\167\214\375\124\337\41" "\302\75\163\174\164\141\27\215\260\222\347\262\143\101\250\237" "\176\310\54\272\17\230\142\231\134\130\250\315\10\115\206\120" "\205\31\233\133\215\162\210\123\41\275\53\357\373\317\306\170" "\17\21\23\161\56\304\161\147\276\304\65\302\151\347\264\313" "\103\165\303\155\344\317\57\323\173\273\361\210\223\31\251\154" "\357\22\22\272\235\210\200\230\43\336\166\5\366\131\214\35" "\351\347\335\26\70\352\147\146\206\267\5\176\355\5\140\342" "\57\125\62\102\127\154\63\342\361\241\52\42\277\21\160\53" "\300\10\114\33\130\141\367\311\62\231\147\152\115\43\173\16" "\21\125\110\233\45\362\156\241\357\147\202\175\67\3\32\46" "\66\315\106\43\301\176\367\12\246\34\174\102\271\271\150\224" "\260\204\121\337\105\10\354\334\10\343\41\360\373\253\34\155" "\245\220\363\33\333\333\203\167\157\204\70\175\177\101\47\232" "\256\274\337\231\26\370\27\64\221\346\236\106\141\27\276\116" "\16\212\64\300\172\224\24\73\221\167\75\23\353\13\200\373" "\106\205\214\240\370\366\62\160\240\111\100\342\264\43\166\254" "\117\104\41\265\327\336\142\157\263\310\5\207\52\304\142\101" "\100\372\100\253\34\373\172\22\320\136\204\356\46\71\66\271" "\237\103\245\232\340\63\266\237\225\114\202\374\234\43\0\56" "\42\304\76\213\230\231\137\260\56\31\145\7\156\46\312\265" "\3\22\366\173\104\213\367\2\132\41\324\357\212\15\273\324" "\132\240\26\362\175\46\366\340\52\3\353\167\275\263\375\323" "\356\246\322\200\132\123\136\62\166\240\335\300\357\204\44\53" "\377\177\21\261\343\31\175\144\67\344\161\204\170\265\170\177" "\25\70\234\166\300\117\12\21\172\42\50\314\54\307\267\230" "\303\165\113\40\203\75\345\240\64\114\34\14\11\44\72\204" "\117\73\336\7\113\73\333\130\317\142\116\274\167\277\24\204" "\312\47\312\245\167\56\17\346\337\244\366\56\43\203\163\57" "\354\36\174\302\277\27\247\73\361\44\173\57\40\24\370\231" "\154\352\165\153\367\312\74\241\17\342\53\74\143\163\24\1" "\63\227\257\120\176\310\375\243\150\331\377\34\110\125\210\221" "\136\350\64\340\224\44\1\230\54\157\40\11\237\223\105\44" "\313\225\331\242\377\215\227\343\224\174\315\22\223\362\275\55" "\264\107\137\244\176\222\103\174\272\147\6\370\346\45\264\250" "\377\234\207\200\351\262\213\171\170\33\61\253\330\4\270\31" "\40\112\137\3\145\330\114\103\377\141\204\264\20\204\311\27" "\10\337\2\76\121\73\347\314\251\375\376\202\233\314\112\250" "\367\57\173\26\353\17\72\1\115\374\210\342\250\71\231\346" "\57\177\157\125\61\102\346\251\370\151\200\130\102\171\65\213" "\34\242\112\42\216\62\315\42\155\47\171\31\41\50\232\136" "\323\34\165\31\62\157\222\200\215\112\130\270\250\27\250\372" "\17\117\310\37\367\232\104\154\333\245\20\303\276\153\141\317" "\12\21\311\25\136\246\242\204\230\167\340\21\37\35\343\357" "\160\361\216\20\161\372\131\256\115\117\133\352\147\376\1\227" "\144\350\237\27\147\62\314\114\13\205\206\216\74\243\270\0" "\214\363\346\306\41\142\250\142\165\344\5\27\21\107\71\44" "\375\322\210\311\322\20\311\222\226\224\344\131\304\24\133\105" "\354\363\130\261\372\74\147\357\145\46\373\114\304\311\277\105" "\176\5\127\47\342\353\124\75\206\167\24\331\7\315\27\177" "\17\217\236\371\301\16\332\76\141\321\164\143\35\164\10\51" "\273\367\356\260\215\370\20\301\274\305\364\161\300\225\234\66" "\74\255\222\346\370\210\237\114\23\114\143\116\104\25\113\321" "\240\105\100\212\47\1\370\54\213\370\22\231\374\334\64\142" "\66\365\162\244\260\17\5\306\112\105\103\355\136\226\221\237" "\245\26\132\241\270\64\221\210\131\231\164\347\30\144\70\106" "\265\313\157\32\234\311\173\204\340\132\146\154\76\313\373\137" "\7\114\133\376\234\232\110\111\200\131\46\1\77\141\27\70" "\374\316\30\257\3\67\320\122\313\112\103\201\321\47\321\66" "\313\74\157\272\52\107\131\223\344\142\216\262\17\247\205\372" "\337\323\144\231\107\30\301\227\344\154\52\233\6\76\257\125" "\200\140\265\3\7\27\163\224\251\21\212\322\230\311\4\337" "\120\74\56\66\144\46\150\37\243\252\226\137\46\232\210\357" "\300\41\335\375\200\263\376\125\336\267\27\101\211\236\304\104" "\172\37\60\365\330\205\143\41\2\252\277\7\103\77\312\375" "\376\303\174\304\267\366\331\376\230\203\173\103\206\212\4\122" "\145\221\345\216\74\53\226\22\321\307\146\226\146\254\53\62" "\237\25\63\213\332\202\75\263\146\331\317\333\47\361\266\43" "\146\101\254\307\121\250\365\107\346\71\312\145\326\217\22\252" "\276\35\201\217\353\350\315\232\172\50\32\337\205\71\102\254" "\50\363\323\227\357\341\46\251\22\240\230\172\114\256\215\307" "\56\340\6\206\353\367\211\42\275\313\361\315\312\372\242\104" "\10\151\256\336\4\314\62\316\354\373\201\162\205\115\225\61" "\302\100\16\231\155\275\323\202\113\177\216\110\127\72\302\313" "\34\377\341\121\124\162\254\36\230\335\30\102\316\127\22\221" "\112\241\275\267\104\312\225\115\367\50\223\40\330\100\74\362" "\133\65\43\44\10\27\16\335\11\201\336\10\332\223\172\166" "\176\146\314\320\207\53\322\171\362\4\310\127\371\376\310\223" "\302\114\327\146\240\55\24\130\333\306\104\232\107\374\14\226" "\225\162\312\117\351\330\113\25\246\221\42\1\253\210\44\367" "\353\150\211\144\314\43\46\13\13\254\227\201\27\115\355\105" "\31\274\312\42\214\311\172\333\111\4\301\152\107\16\70\266" "\367\45\266\153\64\126\106\10\165\43\167\322\254\230\31\102" "\263\321\230\373\303\367\42\64\171\31\261\315\231\61\333\15" "\300\325\154\3\171\13\27\150\153\5\374\236\357\160\5\365" "\203\75\350\55\104\267\163\173\376\37\333\62\101\125\32\101" "\321\240\105\304\54\152\172\227\376\220\143\267\365\105\222\207" "\366\273\50\241\356\56\344\147\103\304\33\262\315\227\71\173" "\147\372\361\242\102\342\364\307\54\1\233\145\245\155\354\336" "\100\253\210\351\232\142\127\267\74\377\353\3\136\316\41\246" "\371\63\203\253\167\70\17\230\244\267\160\345\262\67\170\71" "\164\122\173\267\322\314\132\154\361\16\14\340\365\3\232\374" "\273\231\140\363\135\17\150\337\245\52\76\213\110\171\205\102" "\237\315\203\237\107\210\356\54\7\362\44\161\347\125\271\261" "\241\160\43\7\61\12\45\200\305\42\312\364\131\146\145\355" "\315\222\113\301\205\61\66\253\256\6\366\125\25\43\370\375" "\242\362\372\300\236\31\63\374\25\70\17\346\61\265\42\2" "\206\25\144\314\15\232\141\63\50\110\251\335\67\24\152\54" "\220\150\236\6\30\300\215\277\152\7\200\211\357\373\42\155" "\125\60\202\166\225\16\245\37\60\244\375\57\361\41\226\5" "\27\66\57\100\115\262\234\367\141\267\66\104\340\316\6\342" "\101\235\42\107\71\215\330\337\131\201\32\367\211\246\55\220" "\63\313\53\225\21\330\273\363\261\2\364\210\163\262\213\234" "\120\255\177\276\266\263\373\22\140\206\125\201\155\317\114\331" "\217\342\117\314\75\146\372\201\165\42\334\73\344\217\207\322" "\316\351\72\67\171\45\317\171\300\156\331\311\225\63\102\337" "\163\224\103\204\221\241\270\74\220\16\154\63\142\142\61\67" "\50\217\350\56\345\322\131\262\271\212\20\267\137\147\74\211" "\150\273\256\110\263\230\131\30\143\134\6\314\36\13\120\253" "\147\270\72\135\72\266\304\367\157\367\270\233\4\341\14\124" "\35\352\276\24\123\250\141\204\327\23\44\346\13\266\33\44" "\271\64\2\145\323\65\132\0\276\231\165\3\227\46\375\131" "\230\241\1\127\133\34\312\37\142\344\373\26\333\365\113\255" "\225\21\164\142\174\126\102\222\27\355\205\1\231\74\351\34" "\113\102\273\206\353\260\307\275\205\152\42\72\1\215\300\275" "\147\21\50\67\346\110\263\45\373\217\10\143\136\345\230\200" "\75\271\330\221\235\341\130\264\131\313\336\147\206\335\242\314" "\254\46\273\361\336\225\155\132\246\142\243\23\171\143\66\356" "\107\217\61\77\157\311\14\104\211\10\313\262\371\262\346\140" "\75\11\301\267\114\262\117\340\162\240\372\1\200\205\335\50" "\236\120\161\357\251\175\31\101\123\4\312\244\37\24\331\261" "\103\221\344\241\213\75\213\60\102\337\210\246\357\35\134\214" "\270\33\21\263\50\213\70\312\151\304\251\153\346\110\155\326" "\374\376\117\16\40\300\317\356\11\63\352\367\316\260\16\32" "\175\301\166\75\216\164\26\133\333\263\341\363\2\114\214\24" "\263\135\112\103\64\303\247\55\175\26\246\151\260\343\335\47" "\317\52\320\166\225\332\254\41\124\143\75\266\63\176\250\30" "\260\250\124\43\250\4\336\125\33\64\304\301\315\42\146\112" "\127\354\350\161\100\133\54\3\304\35\163\224\333\201\337\217" "\231\76\355\34\107\271\57\373\132\172\357\303\206\127\253\34" "\107\231\317\370\57\304\163\160\316\215\31\325\34\10\231\237" "\114\143\31\10\52\323\360\316\343\13\212\243\254\34\106\242" "\55\143\10\207\176\336\102\73\61\203\226\155\351\1\327\170" "\170\205\227\265\27\41\270\230\5\115\324\26\265\165\40\254" "\312\64\342\345\357\312\10\354\123\232\104\354\172\225\344\355" "\310\241\57\2\377\27\213\50\307\46\303\304\40\316\330\236" "\70\354\302\317\261\147\153\302\207\210\226\121\310\271\133\322" "\341\175\157\302\202\175\213\346\170\71\117\102\247\337\370\355" "\43\277\226\100\150\24\336\346\150\47\356\223\203\67\276\33" "\161\226\161\120\211\62\261\47\55\133\317\57\341\2\236\10" "\150\200\251\151\223\373\212\221\272\132\235\145\155\363\327\302" "\366\275\103\331\277\262\53\352\71\57\151\57\326\264\313\357" "\237\237\347\147\204\34\345\220\204\325\111\64\241\175\163\77" "\75\171\157\216\143\155\106\366\20\143\146\37\301\311\74\206" "\245\23\311\316\162\163\221\254\255\310\271\360\34\310\4\145" "\5\25\35\336\56\66\3\154\3\254\273\153\14\121\256\150" "\150\345\235\263\126\211\45\21\155\304\111\235\223\52\320\240" "\103\61\2\261\367\216\330\360\317\330\156\226\227\146\77\306" "\332\300\250\343\332\310\141\4\205\0\147\1\55\245\203\100" "\374\13\10\25\256\164\204\230\102\351\36\115\41\20\62\2" "\307\61\245\221\367\150\170\276\14\367\355\217\203\245\343\374" "\26\233\45\245\111\111\115\302\316\33\337\167\204\30\47\342" "\360\266\75\232\271\61\146\140\232\365\334\173\127\12\255\163" "\274\214\40\373\40\5\143\106\14\262\116\160\204\265\57\43" "\260\124\162\0\67\61\336\57\245\53\162\220\375\176\224\261" "\252\264\276\107\114\151\204\31\264\156\72\344\334\246\1\46" "\230\344\70\312\253\34\107\271\47\357\361\336\366\305\77\143" "\15\314\264\100\151\146\147\305\326\206\376\200\355\107\223\272" "\234\102\331\103\176\132\14\333\77\216\205\260\166\15\312\145" "\160\135\61\336\41\134\254\364\301\204\330\30\233\301\313\266" "\370\117\255\34\41\312\175\262\161\157\212\43\255\175\31\201" "\231\205\304\214\173\130\7\112\350\334\55\12\374\202\217\236" "\304\210\305\42\264\350\77\211\60\202\42\104\53\221\262\105" "\176\303\50\40\205\22\321\10\13\24\27\366\264\215\50\264" "\227\351\34\361\362\320\104\10\375\163\216\264\146\22\331\10" "\322\302\134\220\45\235\357\306\62\321\147\361\41\366\45\254" "\14\156\256\333\60\307\177\351\312\171\307\222\6\63\261\377" "\331\40\154\134\27\12\164\14\37\201\151\271\135\261\1\377" "\151\332\341\326\163\354\350\324\135\230\344\354\5\244\363\262" "\0\362\214\115\206\121\106\210\215\217\142\263\47\266\130\244" "\372\17\371\22\103\61\261\142\35\31\362\316\62\144\156\151" "\67\353\24\345\173\66\61\65\145\204\315\66\350\55\154\6" "\306\126\65\320\310\330\320\246\6\362\23\345\362\346\265\261" "\15\13\231\164\327\356\205\77\65\43\20\145\340\124\165\22" "\10\247\251\214\105\365\67\21\236\222\31\163\172\175\63\5" "\71\216\246\62\102\43\102\24\124\367\53\173\336\4\361\166" "\47\203\34\107\331\257\233\216\231\215\171\216\162\266\203\331" "\222\311\173\345\265\225\251\172\321\307\170\57\102\44\57\73" "\226\204\117\204\353\250\146\317\41\31\1\330\314\133\37\310" "\363\57\20\356\376\206\34\224\43\144\246\64\267\330\163\42" "\146\103\110\63\24\245\173\364\260\31\50\14\65\20\150\25" "\110\360\31\362\353\40\262\143\71\206\73\232\110\34\364\167" "\41\347\103\255\104\277\204\43\254\126\170\145\253\112\106\140" "\16\311\324\64\303\245\110\314\262\271\365\41\333\77\303\146" "\341\117\202\315\261\247\352\107\250\151\324\300\156\1\230\6" "\334\144\373\145\304\206\55\252\262\212\15\111\321\72\210\122" "\203\260\177\262\305\332\4\336\101\366\32\211\76\166\351\125" "\113\216\61\326\231\246\321\216\1\5\373\151\5\320\42\177" "\322\146\73\142\256\370\315\244\166\131\204\375\24\106\14\375" "\114\273\300\64\230\107\30\41\317\207\170\55\53\253\321\47" "\171\365\32\301\227\34\137\114\125\62\334\337\52\241\31\132" "\346\127\50\221\370\203\44\102\123\137\24\345\331\227\21\316" "\105\332\307\10\272\250\370\74\106\344\332\131\157\327\346\306" "\247\365\212\30\101\155\161\6\113\156\304\111\216\61\4\133" "\171\23\12\144\230\277\345\151\215\146\100\223\234\171\377\356" "\140\267\50\267\166\177\233\104\314\236\66\362\347\40\204\142" "\17\254\22\323\222\326\354\104\202\177\17\106\40\121\74\230" "\166\30\212\363\34\263\261\7\130\47\241\115\21\156\123\36" "\162\124\65\261\113\315\220\356\226\346\331\265\307\120\41\251" "\335\52\60\213\164\370\240\317\254\203\2\37\342\264\176\141" "\106\120\242\272\207\313\103\277\20\4\242\31\60\175\206\71" "\216\50\303\376\72\130\243\31\261\365\313\6\226\374\44\63" "\126\142\205\142\1\375\2\77\47\144\362\134\170\46\327\342" "\104\176\177\117\106\120\15\361\14\127\152\247\32\242\154\343" "\47\166\110\46\234\167\26\41\310\33\373\231\42\270\264\213" "\160\224\73\344\14\16\121\334\227\207\250\125\52\317\327\26" "\205\223\137\311\321\374\25\126\363\210\237\115\350\115\307\41" "\115\204\210\223\34\137\202\76\301\125\0\121\362\31\235\203" "\15\227\21\355\62\304\272\134\360\72\360\75\266\234\127\55" "\303\146\127\111\201\171\104\142\357\332\357\160\232\343\22\256" "\355\371\151\235\30\341\5\341\60\32\311\131\144\32\206\157" "\11\161\52\241\26\241\120\14\140\321\111\155\210\264\146\272" "\64\173\357\47\21\355\305\164\140\72\362\327\45\316\215\14" "\330\206\103\315\230\126\301\321\262\47\215\360\23\255\344\47" "\337\37\341\106\16\333\356\303\345\377\357\342\243\20\251\321" "\51\224\171\261\224\5\134\125\30\65\120\173\307\167\341\254" "\202\257\250\276\311\357\151\375\342\214\240\373\144\321\13\347" "\145\61\320\326\102\274\60\245\112\277\46\301\156\1\110\232" "\177\54\265\74\151\202\237\160\375\177\245\167\327\120\325\233" "\303\223\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/png_error", 2608, "\101\0\0\0\12\0\0\0\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\0\0\0\377\0\0\0\377" "\377\377\377\377\0\0\0\377\0\0\0\377\0\0\0\377" "\377\377\377\377\377\377\377\377\0\0\0\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\0\0\0\377" "\0\0\0\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\0\0\0\377\0\0\0\377" "\0\0\0\377\0\0\0\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" "\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\377" "\0\0\0\377\0\0\0\377\0\0\0\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\0\0\0\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\0\0\0\377\0\0\0\377" "\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" }, { ":resources/progress.png", 605, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\34\0\0\0\13\10\6\0\0\0\154\336\355" "\267\0\0\0\6\142\113\107\104\0\0\0\0\0\0\371" "\103\273\177\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\340\6\10\21\7\11\273\35\213\111\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\1\301\111\104\101\124\70\313\245\223" "\117\213\122\121\30\306\177\157\367\340\134\257\245\150\42\126" "\272\14\134\66\213\246\30\30\146\71\264\154\325\107\220\140" "\26\203\40\4\335\345\15\202\340\62\13\41\374\10\175\200" "\310\131\112\20\131\233\226\61\301\254\142\26\42\332\37\320" "\253\336\163\116\13\115\147\6\152\314\236\335\373\234\347\345" "\167\316\373\162\204\271\202\40\330\6\352\300\26\160\223\245" "\116\201\17\300\13\337\367\337\261\246\202\40\110\372\276\77" "\22\200\60\14\237\0\317\200\53\177\351\61\300\323\132\255" "\366\174\135\150\30\206\11\151\66\233\333\300\333\113\140\147" "\241\73\325\152\165\255\227\66\32\215\353\312\363\274\372\212" "\60\346\271\72\360\320\202\305\161\100\153\4\4\340\101\173" "\317\272\5\227\250\33\361\146\367\110\0\366\202\266\165\63" "\5\242\357\135\366\367\167\105\245\122\251\173\377\170\321\55" "\0\34\7\16\16\340\360\20\264\6\300\55\270\144\52\231" "\163\141\67\123\40\163\253\262\250\125\72\235\46\216\343\225" "\151\112\51\1\146\220\50\132\300\0\214\61\150\255\61\306" "\54\75\75\367\364\314\123\305\142\361\170\60\30\334\130\25" "\230\315\146\217\27\105\263\171\356\54\236\114\371\166\62\300" "\114\226\300\351\164\302\340\364\4\63\235\314\200\345\162\271" "\55\42\73\121\24\135\272\107\327\165\115\251\124\152\3\263" "\275\135\230\314\353\315\226\134\354\151\325\67\5\240\323\351" "\44\132\200\130\153\113\303\341\360\125\257\327\273\77\32\215" "\376\10\115\46\223\46\237\317\277\367\74\357\221\210\174\135" "\367\153\10\200\265\366\266\326\372\145\34\307\225\361\170\234" "\326\132\137\373\35\160\34\347\347\306\306\306\17\245\324\147" "\307\161\36\213\310\227\165\100\375\176\77\221\313\345\46\213" "\21\130\153\25\160\7\270\13\24\316\144\273\300\107\340\223" "\210\304\374\207\254\265\127\177\1\277\357\245\376\331\316\240" "\232\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/pushbutton.png", 1408, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\55\0\0\0\33\10\6\0\0\0\350\71\6" "\52\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\5\22\111\104\101\124\170\332" "\244\130\277\157\333\106\24\276\23\51\112\221\145\133\161\73" "\30\110\32\164\153\267\16\135\362\247\64\213\201\32\150\200" "\16\315\340\321\113\321\177\301\113\201\6\360\340\245\371\107" "\2\164\351\320\55\335\212\64\1\74\264\262\176\132\22\311" "\343\365\175\217\357\310\223\114\213\26\173\366\121\42\171\337" "\175\337\275\367\356\335\235\264\252\50\306\30\253\265\56\356" "\255\265\52\10\2\255\352\113\230\120\331\304\266\251\54\227" "\313\224\212\352\367\373\367\202\211\367\144\23\233\145\331\25" "\76\243\50\52\236\257\11\131\255\126\54\226\300\134\321\130" "\267\132\52\100\15\2\276\357\164\72\125\342\103\22\225\344" "\304\31\325\124\131\372\323\272\304\242\164\273\335\66\175\244" "\233\140\342\75\171\0\357\325\35\321\67\303\241\15\302\20" "\43\123\111\34\253\224\310\255\315\24\72\3\20\43\15\132" "\201\112\322\104\35\35\35\371\302\103\302\46\55\152\3\302" "\64\111\224\311\154\201\155\21\61\31\132\205\101\110\175\246" "\300\256\11\47\354\311\16\274\54\74\24\154\67\46\327\51" "\252\40\305\310\350\77\37\21\135\100\26\323\363\250\335\166" "\134\135\252\113\371\336\1\326\102\54\76\53\260\11\75\157" "\223\60\161\175\307\23\35\354\310\13\227\31\176\377\376\357" "\367\266\35\266\151\264\226\360\111\216\262\236\57\54\135\264" "\125\41\21\267\310\345\30\365\263\317\236\341\115\370\341\343" "\207\4\226\160\141\161\37\26\126\343\166\231\121\117\237\74" "\145\153\23\357\111\3\336\53\130\272\173\63\34\251\303\303" "\3\156\17\327\160\343\2\135\226\314\344\156\33\217\307\316" "\332\301\144\74\125\275\336\243\7\141\123\235\252\333\333\133" "\147\155\333\220\67\200\350\301\174\76\243\100\217\212\11\163" "\137\261\334\201\121\363\371\34\267\3\252\213\333\333\71\341" "\132\34\273\165\130\113\161\53\242\301\33\65\344\215\330\322" "\46\315\147\255\337\110\27\337\151\46\173\111\6\41\40\155" "\141\351\205\303\42\36\353\260\131\266\306\23\64\344\145\113" "\163\300\247\62\211\252\13\301\165\76\111\70\103\244\145\326" "\162\330\373\55\135\142\221\41\252\260\273\362\262\150\114\216" "\224\106\235\117\135\55\235\140\234\266\30\72\217\233\236\163" "\56\315\314\6\261\241\111\226\325\142\131\264\51\105\67\345" "\315\55\215\224\143\22\276\145\230\200\145\362\312\102\241\13" "\67\61\121\271\212\61\326\332\240\26\233\207\107\126\16\270" "\41\157\156\351\124\106\234\271\240\52\243\113\272\51\356\171" "\304\236\213\35\326\152\133\213\205\245\253\260\273\362\206\153" "\17\2\133\273\271\160\113\255\157\55\136\124\152\262\207\23" "\355\307\164\123\336\142\42\32\157\102\150\111\227\326\137\354" "\155\231\1\374\270\164\330\114\104\157\303\42\27\127\141\167" "\345\225\230\66\274\324\42\52\265\170\304\55\247\326\135\165" "\376\235\135\232\370\326\202\20\103\270\254\26\153\151\345\63" "\251\357\245\146\274\54\72\343\174\231\112\166\124\145\176\264" "\162\321\272\210\61\210\314\274\354\141\222\224\261\72\323\265" "\330\74\165\225\3\156\312\133\204\107\202\311\144\267\257\113" "\30\161\146\314\132\366\160\330\226\326\265\130\20\124\141\167" "\345\55\46\42\217\332\272\165\310\112\50\351\42\266\264\370" "\55\345\215\221\147\151\304\63\147\17\125\213\245\350\270\223" "\56\233\360\262\150\354\7\260\223\242\115\372\326\75\4\146" "\77\155\366\335\376\201\313\202\356\261\141\247\115\272\322\133" "\254\215\311\106\233\175\302\57\212\147\115\171\131\364\315\315" "\15\247\42\332\144\253\10\344\56\75\312\112\345\334\264\132" "\305\152\70\34\252\351\164\132\164\210\235\27\260\7\7\7" "\52\244\175\357\175\330\204\142\177\62\231\270\115\217\372\77" "\274\74\274\363\363\363\157\47\343\274\303\374\344\141\144\331" "\314\212\374\10\122\274\7\61\332\273\260\74\73\73\373\142" "\66\235\251\305\142\301\241\122\205\105\110\340\375\154\66\123" "\150\357\16\1\324\317\333\35\171\337\72\113\343\4\62\32" "\117\306\324\40\126\203\307\217\331\152\70\346\264\150\323\156" "\251\243\25\35\203\0\202\145\226\13\166\357\110\160\53\30" "\173\72\233\62\166\237\160\275\136\217\261\70\37\22\230\261" "\160\53\360\361\152\305\316\21\34\16\2\361\216\274\261\73" "\271\140\213\371\45\325\347\247\247\247\77\3\64\30\14\162" "\167\123\274\301\175\0\216\106\43\25\123\47\227\227\227\337" "\123\333\337\250\276\23\341\173\124\237\274\172\365\303\237\121" "\324\121\373\375\175\265\327\337\343\75\262\221\75\60\334\12" "\354\305\305\5\254\374\221\352\134\216\116\207\124\77\45\336" "\347\17\340\5\347\77\30\264\13\234\143\210\26\361\335\27" "\57\276\371\221\55\45\61\105\336\122\157\336\374\372\223\210" "\174\47\242\257\335\301\126\310\77\241\332\177\371\362\273\337" "\327\166\305\224\126\136\277\376\345\153\272\231\121\375\127\54" "\355\222\365\43\210\26\174\100\274\137\125\360\376\1\353\12" "\16\242\27\332\73\250\176\56\242\217\345\124\322\365\46\360" "\122\102\342\132\104\377\345\35\154\235\160\34\241\372\42\140" "\23\73\26\321\253\215\237\20\2\301\34\310\0\42\171\126" "\144\105\11\11\304\306\104\372\60\176\216\352\212\330\143\31" "\300\300\173\67\22\241\327\136\74\127\376\130\43\342\103\357" "\131\132\41\126\155\10\217\104\364\236\174\167\45\226\120\132" "\270\170\276\363\143\315\206\370\52\113\57\67\163\157\323\122" "\221\323\203\55\226\66\176\303\377\4\30\0\333\74\15\207" "\241\352\301\365\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/sidebar.png", 464, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\20\0\0\0\35\10\2\0\0\0\54\17\173" "\350\0\0\0\11\160\110\131\163\0\0\13\23\0\0\13" "\23\1\0\232\234\30\0\0\0\7\164\111\115\105\7\340" "\13\23\15\32\46\205\24\224\67\0\0\1\157\111\104\101" "\124\70\313\355\222\277\212\362\100\24\305\317\354\144\34\42" "\4\41\26\202\22\37\300\106\110\247\202\215\57\40\226\276" "\220\257\43\372\6\12\212\215\140\143\45\166\22\13\63\142" "\206\314\20\143\62\133\54\354\367\341\146\301\255\266\331\323" "\335\77\77\356\275\334\103\46\223\111\273\335\306\153\332\355" "\166\244\327\353\61\306\136\4\322\64\175\303\17\145\375\37" "\20\102\372\375\176\267\333\155\265\132\0\366\373\375\152\265" "\132\54\26\306\230\2\200\20\62\34\16\307\343\61\347\374" "\43\323\351\164\174\337\167\135\167\72\235\176\62\264\331\154" "\122\112\1\370\276\77\32\215\50\245\122\312\365\172\175\74" "\36\35\307\311\363\274\136\257\237\317\347\40\10\0\344\171" "\376\157\202\347\171\121\24\145\131\226\44\311\146\263\1\320" "\150\64\70\347\161\34\173\236\267\335\156\237\127\72\235\116" "\313\345\62\111\222\64\115\225\122\0\346\363\71\143\214\163" "\176\271\134\12\156\220\122\62\306\264\326\204\220\70\216\1" "\130\226\145\214\261\155\133\112\131\0\60\306\152\265\132\245" "\122\51\225\112\263\331\14\300\140\60\270\337\357\267\333\255" "\30\10\202\300\266\155\245\224\343\70\256\353\2\20\102\110" "\51\257\327\353\307\305\317\100\30\206\306\230\152\265\132\56" "\227\35\307\1\160\70\34\224\122\141\30\12\41\212\37\47" "\204\320\132\123\112\55\313\2\360\170\74\262\54\323\132\177" "\373\151\0\117\345\257\372\261\227\376\314\367\147\276\137\63" "\237\25\105\121\222\44\57\166\163\316\337\1\376\203\110\232" "\177\337\264\357\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/slider.png", 1234, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\50\0\0\0\17\10\6\0\0\0\226\127\215" "\343\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\4\144\111\104\101\124\170\332" "\214\226\317\113\53\127\24\307\317\235\231\44\46\32\374\205" "\245\121\341\55\134\210\113\27\361\17\350\23\132\241\44\53" "\341\201\253\322\12\42\370\17\264\320\345\133\267\10\301\37" "\205\12\375\13\222\156\36\74\335\330\335\23\67\305\215\53" "\111\321\46\155\136\342\217\304\144\62\277\156\277\347\116\146" "\62\111\236\320\33\56\223\71\163\347\236\317\371\236\163\146" "\106\110\51\51\72\112\245\222\34\266\361\20\102\120\56\227" "\23\364\302\150\265\132\163\272\256\347\260\156\35\247\131\314" "\127\230\145\314\13\354\167\352\272\156\151\142\142\242\26\356" "\367\107\102\122\6\333\305\160\142\143\126\44\275\47\213\76" "\317\300\4\233\15\133\265\202\165\1\114\261\130\224\17\17" "\17\364\370\370\250\346\360\230\234\234\124\163\152\152\212\362" "\371\374\0\150\263\331\174\255\151\332\36\376\346\171\77\317" "\363\210\217\34\24\354\352\310\56\140\337\117\247\323\147\12" "\360\227\230\244\205\10\340\235\244\2\71\64\277\320\7\374" "\373\256\7\170\174\174\54\333\355\366\47\301\76\5\232\112" "\245\150\173\173\133\171\155\324\33\14\367\226\4\255\101\45" "\162\60\345\20\40\224\305\121\307\71\175\0\344\367\63\63" "\63\147\242\0\300\70\223\142\262\106\26\321\117\0\214\307" "\71\133\60\301\146\301\146\260\223\156\267\113\254\336\377\31" "\274\216\35\362\250\126\253\163\102\150\173\232\46\0\347\21" "\3\172\236\73\162\117\0\251\33\372\232\347\312\275\152\365" "\237\77\225\152\136\144\221\353\13\351\105\154\330\216\214\303" "\303\103\151\103\117\57\162\245\136\257\217\70\231\235\235\15" "\377\363\172\276\157\143\143\343\73\70\317\263\122\276\162\156" "\117\222\376\140\161\4\256\61\274\356\352\254\154\36\276\176" "\247\147\351\23\361\55\34\57\322\332\46\77\265\274\15\4" "\127\251\66\120\334\364\364\364\24\156\170\177\177\117\227\227" "\227\43\165\224\315\146\151\172\172\72\124\221\257\243\54\326" "\343\361\204\132\303\0\76\116\44\155\103\3\12\42\10\111" "\266\145\255\237\377\350\122\206\42\75\302\276\335\163\372\14" "\326\30\176\66\176\377\302\152\260\364\206\141\204\233\240\323" "\100\36\13\12\333\127\1\240\154\217\256\343\373\114\323\314" "\42\305\212\306\357\265\50\325\40\45\157\347\7\41\250\323" "\65\263\327\270\324\212\0\242\37\350\221\256\141\153\241\356" "\142\250\106\33\170\167\144\160\321\107\35\163\227\6\65\323" "\257\5\104\233\311\14\100\217\217\217\123\247\335\171\45\64" "\101\272\320\207\63\353\127\271\142\24\3\327\130\171\276\317" "\352\101\105\172\4\110\226\202\22\370\41\144\165\156\54\54" "\54\260\22\341\6\143\143\143\12\220\323\311\340\216\343\120" "\243\321\240\345\345\345\221\165\110\161\31\200\113\254\270\246" "\153\312\235\350\51\51\7\252\221\41\45\2\205\123\307\242" "\366\163\273\14\325\226\206\172\104\245\325\213\164\16\52\227" "\214\371\371\171\125\364\301\130\134\134\44\206\146\45\131\105" "\126\57\231\114\322\352\352\52\335\336\336\206\353\30\252\134" "\376\353\202\1\123\251\44\351\236\61\224\135\137\233\150\242" "\71\330\116\247\103\146\327\274\100\217\54\15\365\10\232\344" "\271\7\351\22\162\250\152\121\325\40\77\327\2\165\152\265" "\32\35\35\35\215\24\370\315\315\15\45\22\211\120\75\176" "\64\231\146\347\324\161\354\67\134\243\201\362\3\335\33\321" "\221\123\313\76\270\51\1\172\372\303\267\347\157\50\215\66" "\321\200\346\1\265\131\241\157\334\137\125\255\63\223\5\141" "\32\130\153\254\254\254\210\162\271\54\331\101\60\52\225\312" "\10\140\364\72\157\300\367\135\135\135\315\265\132\315\242\353" "\70\171\67\235\126\1\160\115\212\40\271\75\351\74\11\70" "\4\364\14\207\120\260\30\217\307\113\124\277\106\116\133\175" "\300\247\73\372\350\174\304\303\331\122\201\162\100\374\164\121" "\171\341\132\143\200\150\252\137\32\234\132\116\25\217\315\315" "\315\332\311\311\311\276\151\76\144\0\260\306\321\47\22\143" "\10\100\123\65\351\365\36\336\335\256\5\345\232\14\367\101" "\327\215\375\255\255\255\32\375\126\120\120\141\233\240\66\171" "\55\103\161\63\162\126\370\74\174\27\343\175\52\3\143\0" "\20\35\34\4\53\307\67\343\175\72\320\263\7\7\7\257" "\55\333\336\213\307\142\171\16\224\225\144\25\370\355\142\131" "\50\205\216\211\346\260\213\10\156\177\147\147\307\177\27\177" "\375\63\12\124\217\164\275\113\137\271\357\106\36\157\142\370" "\313\5\121\312\227\324\103\263\274\370\65\123\50\24\346\320" "\325\71\4\270\216\75\303\257\31\70\274\100\241\237\46\123" "\251\322\356\356\156\377\153\346\313\267\120\43\362\332\320\143" "\364\205\163\246\122\313\223\3\344\371\237\0\3\0\234\277" "\164\310\370\127\7\35\0\0\0\0\111\105\116\104\256\102" "\140\202" }, { ":resources/switch_back_off.png", 2263, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\73\0\0\0\41\10\6\0\0\0\147\150\323" "\116\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\3\33\13\5\60\365\67\44\27\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\10\77\111\104\101\124\130\303\335\231\115\214\34\107" "\25\307\377\357\125\325\314\316\170\146\147\327\316\172\277\262" "\366\332\323\275\174\44\33\333\132\213\34\42\73\310\22\50" "\227\110\310\27\214\20\160\341\224\173\220\162\343\300\71\12" "\342\222\23\50\102\134\220\20\7\44\100\102\101\71\200\117" "\61\121\210\145\24\272\263\33\7\47\166\354\144\147\35\257" "\167\147\266\253\352\161\160\365\320\323\236\331\170\55\263\174" "\224\124\252\232\356\236\356\372\325\377\275\372\170\105\111\222" "\340\141\122\34\307\14\240\6\240\12\200\260\77\311\2\330" "\112\222\44\173\230\77\323\203\302\306\161\134\1\60\17\340" "\10\200\31\0\7\366\21\262\234\62\0\353\0\376\1\340" "\203\44\111\72\217\4\66\216\143\3\140\31\300\23\0\364" "\10\300\375\202\226\21\327\76\6\360\146\222\44\67\37\32" "\66\216\343\143\0\236\56\231\52\15\203\144\146\172\304\35" "\160\37\230\367\136\106\334\317\353\357\3\270\230\44\311\316" "\3\303\306\161\114\0\116\1\370\162\150\164\37\224\231\171" "\4\14\1\0\321\243\25\131\104\106\301\113\350\0\137\370" "\55\0\356\0\170\43\111\222\215\317\205\15\240\317\0\130" "\50\300\121\111\131\12\120\3\52\17\121\27\50\74\374\200" "\140\243\24\225\301\107\7\236\315\357\113\200\317\0\274\236" "\44\311\172\361\75\172\310\67\237\140\346\131\0\16\0\207" "\227\344\40\44\42\124\350\204\342\75\210\210\224\201\211\210" "\367\250\244\224\101\265\326\375\216\55\52\231\327\211\110\362" "\16\141\146\37\332\375\114\34\307\177\110\222\244\73\24\66" "\216\343\31\146\156\207\41\76\7\342\102\335\50\245\346\152" "\265\332\102\263\331\214\215\61\207\105\144\100\321\262\342\173" "\65\353\22\353\0\273\367\36\336\373\255\136\257\267\266\261" "\261\221\172\357\157\70\347\66\210\110\230\131\274\367\56\10" "\340\275\367\106\51\165\32\300\237\356\203\215\343\230\224\122" "\113\314\234\5\100\146\146\25\324\342\261\261\261\346\343\217" "\77\376\374\334\334\334\331\132\255\66\141\214\201\61\6\314" "\14\42\272\257\54\346\62\164\136\57\202\210\310\310\354\275" "\357\227\326\132\130\153\237\356\365\172\266\323\351\374\175\155" "\155\355\227\267\157\337\176\327\173\357\231\331\173\357\75\21" "\171\42\162\0\132\161\34\317\44\111\162\143\300\147\237\172" "\352\251\171\347\334\27\231\131\345\240\1\226\247\247\247\27" "\332\355\366\367\46\46\46\126\162\300\42\134\371\167\31\266" "\10\75\112\315\34\174\30\140\136\226\263\163\16\335\156\367" "\223\353\327\257\377\152\165\165\365\215\136\257\327\363\336\173" "\21\161\101\135\307\314\233\133\133\133\27\223\44\221\276\262" "\112\251\31\255\165\46\42\76\200\172\146\366\315\146\263\171" "\352\324\251\157\127\253\325\25\245\324\0\334\260\134\6\316" "\7\357\121\300\145\310\42\354\156\240\171\326\132\77\166\374" "\370\361\357\152\255\257\45\111\362\127\153\255\43\42\347\275" "\167\376\136\62\215\106\343\20\200\117\64\0\234\75\173\266" "\136\255\126\65\63\333\0\51\104\244\210\210\126\126\126\126" "\32\215\306\127\302\134\212\42\360\156\360\105\325\107\51\134" "\4\55\203\355\246\146\261\36\276\121\153\267\333\337\330\334" "\334\174\267\323\351\334\21\21\147\255\265\71\260\210\114\364" "\141\215\61\343\306\230\314\30\343\211\110\347\40\163\163\163" "\315\203\7\17\176\323\132\113\371\265\34\260\134\226\257\225" "\73\142\67\330\62\134\16\344\234\33\12\227\137\43\242\176" "\11\140\145\171\171\171\345\255\267\336\372\43\0\347\234\363" "\71\264\265\266\31\307\61\151\0\150\265\132\25\143\214\43" "\42\30\143\210\231\111\51\345\147\147\147\47\0\34\55\103" "\14\203\322\132\17\334\57\77\127\64\357\322\324\2\21\31" "\0\314\113\153\155\37\330\71\67\0\347\234\33\30\354\234" "\163\150\66\233\117\114\117\117\277\176\117\124\357\234\163\316" "\132\353\211\10\215\106\303\150\0\230\235\235\125\132\153\257" "\224\142\245\224\317\115\271\331\154\36\311\262\154\250\311\226" "\241\264\326\175\340\42\170\136\57\253\134\366\315\42\224\265" "\366\76\377\337\145\172\52\372\372\374\302\302\2\155\157\157" "\213\265\126\0\170\347\356\271\156\267\333\275\7\333\156\267" "\225\210\210\326\132\302\140\5\21\241\54\313\216\210\310\256" "\43\354\60\123\56\102\346\235\120\354\0\146\356\253\131\4" "\34\6\225\177\77\377\117\61\227\333\342\234\133\74\174\370" "\60\131\153\311\132\13\245\24\71\347\304\71\107\132\153\243" "\243\50\122\313\313\313\225\315\315\115\6\300\104\244\0\50" "\42\342\365\365\365\312\315\233\67\361\277\222\264\326\324\156" "\267\315\346\346\146\26\70\174\140\221\50\212\252\32\200\136" "\131\131\251\257\255\255\171\42\122\42\242\105\304\0\60\7" "\17\36\374\244\323\351\300\132\273\353\204\137\364\247\274\136" "\36\155\13\43\347\3\231\161\171\160\52\347\141\155\231\235" "\235\375\150\176\176\276\266\275\275\235\205\357\11\21\111\255" "\126\63\117\76\371\144\105\3\300\374\374\374\170\257\327\273" "\113\104\332\71\127\1\240\105\244\122\255\126\327\257\134\271" "\202\116\247\63\260\372\31\345\103\305\306\347\46\33\314\351" "\221\14\120\345\221\271\334\31\121\24\335\156\265\132\150\64" "\32\325\260\371\40\146\246\126\253\65\166\350\320\41\255\1" "\354\114\114\114\34\230\236\236\46\153\55\0\30\21\251\70" "\347\52\255\126\353\356\322\322\322\255\213\27\57\116\225\227" "\166\301\257\373\76\225\3\376\273\247\236\121\345\344\344\44" "\226\226\226\256\33\143\252\141\255\316\104\244\211\110\117\115" "\115\115\216\217\217\367\164\232\246\262\270\270\370\351\324\324" "\124\274\265\265\265\56\42\106\104\52\42\142\234\163\167\236" "\175\366\331\277\134\273\166\355\353\127\257\136\245\141\160\336" "\373\76\120\331\124\367\143\121\221\117\105\317\75\367\334\265" "\371\371\371\267\273\335\156\55\207\44\242\214\231\115\263\331" "\234\4\360\251\16\216\375\301\201\3\7\276\12\240\347\275" "\257\170\357\15\21\31\21\61\132\353\67\317\237\77\177\362" "\325\127\137\235\276\173\367\356\110\270\377\324\162\321\71\207" "\63\147\316\144\47\116\234\270\354\275\357\326\353\365\6\63" "\357\20\221\41\242\254\122\251\214\33\143\156\245\151\332\313" "\327\306\37\152\255\273\365\172\375\150\226\145\237\5\123\66" "\336\373\252\210\144\213\213\213\177\176\361\305\27\317\275\366" "\332\153\23\151\232\376\327\154\4\252\325\52\56\134\270\320" "\75\175\372\364\373\225\112\345\212\210\34\140\346\214\210\14" "\200\12\21\331\132\255\26\51\245\176\63\260\353\211\242\250" "\355\234\373\241\265\366\235\60\32\153\357\175\105\104\52\0" "\64\63\317\164\273\335\257\135\272\164\151\374\362\345\313\346" "\352\325\253\270\165\353\126\137\265\375\332\342\325\353\165\54" "\54\54\340\330\261\143\376\334\271\163\275\311\311\311\167\274" "\367\227\0\144\104\144\231\171\107\104\62\146\316\264\326\323" "\314\274\272\272\272\372\362\175\141\231\166\273\375\222\210\234" "\364\336\277\227\117\77\336\173\23\224\326\104\124\143\346\143" "\275\136\157\6\300\143\265\132\255\276\357\61\324\54\163\73" "\73\73\33\143\143\143\67\104\344\103\357\375\55\42\262\0" "\34\21\145\0\154\330\223\127\264\326\107\210\350\373\151\232" "\336\274\57\122\101\104\257\0\370\31\63\177\101\104\156\206" "\373\375\54\42\112\104\76\64\306\174\14\100\131\153\111\104" "\24\0\362\336\163\10\67\221\367\276\34\263\102\10\347\354" "\32\244\10\212\367\343\112\314\54\41\124\41\314\54\141\221" "\340\253\325\252\27\21\117\104\126\51\125\313\141\1\30\146" "\316\243\54\137\42\242\227\162\320\241\1\267\50\212\146\0" "\374\132\104\66\104\344\323\240\260\12\300\34\340\30\200\12" "\0\34\140\251\20\230\243\2\334\347\305\231\207\106\15\211" "\150\40\230\126\200\25\42\362\71\70\200\74\52\341\202\272" "\104\104\113\104\364\323\64\115\137\371\334\120\152\24\105\213" "\42\362\213\160\274\361\101\200\125\336\173\25\352\134\200\52" "\106\37\313\52\322\36\143\310\62\102\351\176\16\240\50\302" "\62\163\16\133\43\242\243\0\176\222\246\351\217\37\70\110" "\36\105\121\23\300\317\105\344\44\200\217\0\154\345\261\251" "\320\370\262\242\50\205\134\21\72\2\173\124\66\127\125\112" "\367\245\244\162\137\351\340\76\63\0\52\0\136\110\323\364" "\367\173\76\21\210\242\210\0\174\13\300\217\202\31\167\104" "\144\263\4\106\243\116\13\376\25\365\334\173\12\100\30\1" "\234\327\15\21\115\2\150\2\370\35\200\37\24\175\364\241" "\16\266\242\50\252\3\170\1\300\167\302\301\326\147\1\314" "\2\260\245\375\345\156\46\113\173\74\307\31\270\36\326\273" "\225\360\36\15\300\0\370\55\200\227\323\64\175\373\221\235" "\342\25\300\217\3\70\3\140\21\100\14\140\172\37\17\266" "\266\1\274\27\362\337\0\274\221\246\251\175\344\107\226\377" "\17\351\237\124\265\242\365\167\377\134\106\0\0\0\0\111" "\105\116\104\256\102\140\202" }, { ":resources/switch_back_on.png", 2504, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\73\0\0\0\41\10\6\0\0\0\147\150\323" "\116\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\3\33\13\6\31\234\250\357\270\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\11\60\111\104\101\124\130\303\335\231\135\154\34\127" "\25\307\377\347\334\73\263\136\147\327\353\270\161\374\205\123" "\267\236\111\77\122\367\103\256\32\240\45\102\225\370\350\103" "\21\342\205\357\57\211\7\124\361\132\104\45\36\170\340\271" "\52\342\205\47\20\102\110\10\251\352\3\25\40\241\322\74" "\100\45\244\176\250\37\12\52\63\115\332\64\315\107\223\70" "\116\342\332\136\357\275\347\360\60\167\166\147\327\166\33\207" "\64\24\106\272\276\327\63\273\263\363\73\377\163\356\271\163" "\56\145\131\206\253\71\322\64\145\0\165\0\65\0\204\353" "\163\70\0\253\131\226\165\256\346\313\164\245\260\151\232\306" "\0\146\0\354\3\60\11\140\327\165\204\34\74\72\0\226" "\0\274\15\340\170\226\145\27\256\11\154\232\246\21\200\5" "\0\7\0\330\155\0\257\27\264\156\163\356\14\200\347\263" "\54\173\367\252\141\323\64\275\11\300\301\1\127\245\255\40" "\231\231\256\261\1\66\201\211\210\156\163\275\34\277\11\340" "\271\54\313\66\256\30\66\115\123\2\160\17\200\333\303\103" "\167\101\231\231\267\201\41\0\40\272\266\42\253\352\166\360" "\32\14\40\225\377\25\300\145\0\207\263\54\133\376\100\330" "\0\172\77\200\331\12\34\15\50\113\1\252\117\345\55\324" "\5\52\37\276\102\260\355\24\325\376\217\366\175\266\274\256" "\1\276\3\340\231\54\313\226\252\367\261\133\374\346\1\146" "\236\2\340\1\160\270\111\11\102\252\112\25\43\124\257\101" "\125\165\20\230\210\170\207\112\352\40\250\265\266\153\330\252" "\222\345\230\210\264\64\10\63\113\170\356\373\323\64\375\113" "\226\145\353\133\302\246\151\72\311\314\363\141\212\57\201\270" "\62\216\214\61\323\276\276\147\226\232\123\51\114\175\57\21" "\210\30\104\245\370\305\210\52\216\15\176\337\60\326\76\37" "\255\262\52\124\131\273\376\32\264\163\253\130\133\76\106\227" "\336\312\215\270\323\336\373\145\42\122\146\126\21\361\341\126" "\42\42\221\61\346\136\0\177\333\4\233\246\51\31\143\366" "\63\163\47\0\62\63\233\240\26\17\15\15\65\243\217\55" "\76\334\236\376\344\41\63\64\76\212\270\1\104\165\60\33" "\20\63\230\31\114\14\142\352\366\104\241\365\214\260\211\267" "\364\106\325\2\264\150\2\125\205\210\102\105\40\52\105\57" "\2\165\33\100\147\345\40\265\57\271\150\351\310\277\350\255" "\303\277\137\273\170\366\165\21\21\146\26\21\21\42\22\42" "\362\0\132\151\232\116\146\131\166\272\57\146\357\274\363\316" "\31\357\375\255\314\154\112\320\0\313\143\23\123\263\74\377" "\320\267\57\216\336\265\350\242\46\230\31\206\115\1\150\2" "\150\27\226\301\134\312\115\175\255\220\234\266\210\323\52\254" "\24\220\145\37\140\105\4\342\213\336\213\17\340\35\14\257" "\37\77\267\353\324\263\117\136\76\372\342\341\166\273\335\26" "\21\121\125\37\324\365\314\274\262\272\272\372\134\226\145\332" "\125\326\30\63\151\255\355\250\252\4\120\141\146\151\66\233" "\315\241\173\276\366\365\63\265\333\26\141\42\304\306\24\240" "\206\273\75\227\340\225\106\104\335\276\7\113\233\34\131\125" "\13\357\54\25\25\15\112\152\1\330\155\36\342\3\150\331" "\33\213\365\50\331\143\352\143\337\232\266\70\161\52\173\351" "\25\347\234\47\42\57\42\136\212\43\152\64\32\67\0\70" "\147\1\340\320\241\103\303\265\132\315\62\263\13\220\112\104" "\206\210\150\172\361\341\305\67\233\267\337\307\250\301\260\201" "\61\6\154\212\336\4\120\143\52\260\325\61\21\150\0\270" "\33\321\12\150\361\7\212\122\301\136\137\50\351\273\260\336" "\173\210\170\170\137\234\367\342\341\275\7\173\306\72\357\251" "\313\374\103\137\234\132\71\375\372\205\13\27\56\253\252\167" "\316\271\22\130\125\107\273\260\121\24\215\104\121\324\211\242" "\110\210\310\62\63\214\61\230\236\236\156\236\270\341\340\227" "\67\334\20\131\143\3\340\346\306\306\300\204\357\364\301\16" "\50\135\144\40\102\231\210\252\256\253\72\250\144\11\25\372" "\320\330\170\210\147\260\57\302\206\211\341\211\161\36\373\26" "\367\57\74\274\350\136\172\352\257\0\274\367\136\112\150\347" "\134\63\115\123\262\0\320\152\265\342\50\212\74\21\41\212" "\42\142\146\62\306\110\74\165\307\350\12\232\67\132\143\141" "\154\11\127\201\266\3\377\227\255\342\336\306\224\260\225\111" "\13\375\260\345\4\344\175\160\327\240\144\241\234\207\124\15" "\347\31\56\204\104\71\373\203\0\347\200\265\346\115\7\46" "\46\46\236\51\104\25\357\275\367\316\71\41\42\64\32\215" "\310\2\300\324\324\224\261\326\212\61\206\215\61\122\272\362" "\271\126\262\117\66\154\45\56\213\207\357\201\131\330\322\0" "\326\364\235\357\67\100\57\256\211\13\127\356\306\151\305\115" "\213\170\14\220\345\204\107\4\337\205\353\246\244\42\301\230" "\162\46\67\120\243\270\104\255\231\133\147\147\151\155\155\115" "\235\163\12\100\274\57\102\267\126\253\305\26\0\346\347\347" "\215\252\252\265\126\303\144\5\125\245\254\63\266\117\24\60" "\301\5\273\263\54\123\260\64\365\322\16\367\342\267\124\275" "\337\20\75\3\224\13\252\252\173\22\23\310\21\174\320\135" "\25\120\243\60\152\172\51\211\31\242\12\26\206\260\200\244" "\177\266\277\354\342\271\275\173\367\222\163\216\234\163\60\306" "\220\367\136\275\367\144\255\265\66\111\22\263\260\260\20\257" "\254\254\60\0\46\42\3\300\20\21\217\57\15\307\147\316" "\342\177\346\250\131\103\363\363\363\321\312\312\112\47\160\110" "\140\321\44\111\152\26\200\135\134\134\34\76\166\354\230\20" "\221\121\125\253\252\21\200\350\343\143\273\317\345\313\253\150" "\173\355\46\171\146\201\12\103\110\100\302\140\222\60\46\20" "\171\170\137\131\71\150\31\227\105\216\364\73\160\343\276\124" "\123\231\264\172\213\14\255\54\102\212\166\313\164\375\344\314" "\314\114\175\155\155\255\23\102\101\211\110\353\365\172\264\260" "\260\120\263\0\60\63\63\63\322\156\267\337\43\42\353\275" "\217\1\130\125\215\157\250\355\131\172\372\310\111\234\132\336" "\0\221\7\21\340\75\205\145\163\37\123\221\76\312\37\26" "\15\151\342\77\237\240\274\367\175\356\336\155\122\216\173\71" "\370\340\315\243\27\133\55\213\106\243\121\13\57\37\304\314" "\324\152\265\206\306\306\306\214\5\260\61\72\72\272\153\142" "\142\202\234\163\0\20\251\152\354\275\217\133\255\306\173\367" "\337\62\172\366\167\317\235\34\327\356\303\241\337\242\122\311" "\211\306\300\177\310\251\247\252\276\167\275\363\63\273\143\174" "\142\377\356\123\255\310\324\302\313\10\23\221\45\42\73\76" "\76\276\173\144\144\244\155\363\74\327\271\271\271\363\343\343" "\343\351\352\352\352\222\252\106\252\32\253\152\344\275\277\374" "\335\103\263\57\36\171\173\345\263\57\37\277\110\52\275\65" "\152\271\252\51\324\63\360\377\245\105\205\367\36\114\212\37" "\174\356\346\23\13\63\103\57\257\257\243\136\102\22\121\207" "\231\243\146\263\271\33\300\171\13\0\326\332\343\273\166\355" "\372\64\200\266\210\304\42\22\21\121\244\252\321\250\265\317" "\377\350\113\373\357\376\376\57\136\230\270\360\336\6\274\30" "\30\157\340\77\12\313\305\320\177\343\201\331\316\347\357\32" "\177\215\144\175\175\170\170\270\301\314\33\104\24\21\121\47" "\216\343\221\50\212\316\346\171\336\56\327\306\357\130\153\327" "\207\207\207\157\354\164\72\227\202\53\107\42\122\123\325\316" "\175\163\255\277\77\371\350\3\17\76\372\353\27\107\377\221" "\57\175\144\136\4\32\61\343\307\137\271\143\375\13\367\316" "\274\331\210\345\210\352\320\56\146\356\20\121\4\40\46\42" "\127\257\327\23\143\314\37\372\336\172\222\44\231\367\336\377" "\304\71\367\152\230\215\255\210\304\252\32\3\260\314\74\171" "\151\35\237\171\372\205\23\43\317\276\172\46\172\355\370\62" "\216\235\135\55\142\360\72\276\342\265\206\55\16\314\266\160" "\317\334\250\174\347\301\244\75\75\126\173\225\304\275\0\240" "\103\104\216\231\67\124\265\303\314\35\153\355\4\63\37\75" "\172\364\350\343\233\312\62\363\363\363\217\251\352\335\42\362" "\106\231\176\104\44\12\112\133\42\252\63\363\115\253\155\231" "\364\300\236\221\172\74\274\165\301\357\303\73\332\35\361\353" "\33\156\271\61\304\247\241\372\216\210\234\45\42\7\300\23" "\121\7\200\13\357\344\261\265\166\37\21\175\57\317\363\167" "\67\125\52\210\350\11\0\277\142\346\133\124\365\335\160\275" "\333\124\325\250\352\73\103\21\316\0\60\336\155\220\252\32" "\0\44\42\34\312\115\44\42\203\65\53\204\162\316\373\126" "\144\302\312\252\133\264\140\146\15\145\32\145\146\5\40\6" "\220\106\215\4\252\102\104\316\30\123\57\141\1\104\314\134" "\126\131\156\43\242\307\112\320\55\13\156\111\222\114\2\170" "\112\125\227\125\365\174\120\330\4\140\16\160\14\300\4\0" "\16\260\124\51\314\121\5\356\203\352\314\133\126\15\211\250" "\257\230\126\302\6\243\110\30\13\200\262\52\341\203\272\104" "\104\373\211\350\227\171\236\77\361\201\245\324\44\111\346\124" "\365\267\141\173\343\170\200\65\42\142\302\230\53\120\325\352" "\343\240\212\264\303\32\262\156\243\164\267\5\120\124\141\231" "\271\204\255\23\321\215\0\176\236\347\371\317\256\270\110\236" "\44\111\23\300\157\124\365\156\0\47\1\254\226\265\251\360" "\360\203\212\142\240\344\212\140\10\354\120\331\122\125\35\270" "\256\3\52\167\225\16\341\63\11\40\6\360\110\236\347\177" "\336\361\216\100\222\44\4\340\253\0\176\32\334\370\202\252" "\256\14\200\321\166\273\5\275\252\347\316\217\0\204\155\200" "\313\161\104\104\273\1\64\1\374\11\300\17\253\61\172\125" "\33\133\111\222\14\3\170\4\300\67\303\306\326\245\0\346" "\0\270\201\122\357\373\271\54\355\160\37\247\357\174\130\357" "\306\341\76\26\100\4\340\217\0\36\317\363\374\345\153\266" "\213\127\1\277\31\300\247\0\314\1\110\1\114\134\307\215" "\255\65\0\157\204\366\117\0\207\363\74\167\327\174\313\362" "\377\341\370\67\174\303\225\57\357\342\274\12\0\0\0\0" "\111\105\116\104\256\102\140\202" }, { ":resources/switch_front.png", 1776, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\46\0\0\0\50\10\6\0\0\0\222\67\210" "\336\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\3\33\13\3\30\226\330\53\153\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\6\130\111\104\101\124\130\303\305\230\117\154\224\171" "\31\307\77\357\77\246\63\155\146\136\313\224\55\255\245\135" "\310\30\332\144\265\222\170\321\304\222\220\364\40\342\36\210" "\211\7\344\242\27\75\250\7\215\341\300\245\106\23\23\116" "\172\221\243\7\40\54\211\51\161\223\135\44\203\40\64\270" "\20\110\355\132\322\362\132\244\355\266\165\246\35\246\323\371" "\373\276\357\357\367\216\7\176\157\63\314\266\313\266\54\303" "\223\74\311\144\16\235\117\277\317\237\337\363\74\232\343\70" "\354\326\122\251\224\26\176\176\372\364\151\304\266\355\66\333" "\266\13\341\167\216\343\324\167\373\267\315\335\300\314\316\316" "\166\366\366\366\36\257\126\253\337\63\14\143\20\350\326\64" "\255\23\300\363\274\52\260\22\4\301\47\102\210\353\225\112" "\145\174\337\276\175\323\73\5\325\167\0\244\307\343\361\257" "\227\112\245\277\366\367\367\257\230\246\371\147\115\323\116\6" "\101\60\24\4\101\247\20\2\41\4\101\20\104\203\40\70" "\10\174\333\64\315\337\304\343\361\217\53\225\312\354\263\147" "\317\176\164\341\302\5\263\121\345\317\62\355\145\241\124\12" "\35\350\352\352\372\335\236\75\173\176\20\376\63\122\112\204" "\20\110\51\251\327\137\24\102\323\64\164\135\307\60\14\114" "\323\104\323\236\263\110\51\247\313\345\362\257\173\172\172\76" "\160\34\47\330\65\130\52\225\322\35\307\31\331\273\167\357" "\173\272\256\47\1\204\20\370\276\277\243\360\33\206\201\145" "\131\233\200\225\112\345\367\47\116\234\70\373\340\301\3\261" "\135\170\267\5\113\245\122\306\334\334\334\217\343\361\370\37" "\65\115\263\202\40\100\10\361\51\165\166\12\150\232\317\323" "\332\165\335\367\323\351\364\17\117\237\76\135\330\12\116\337" "\16\152\152\152\352\124\173\173\373\237\244\224\226\353\272\270" "\256\213\224\222\40\10\166\355\276\357\123\253\325\360\175\37" "\303\60\276\73\62\62\162\371\350\321\243\221\255\362\356\123" "\212\245\122\51\375\346\315\233\337\74\164\350\320\337\64\115" "\213\326\353\365\127\122\151\333\252\323\237\153\262\261\261\361" "\207\241\241\241\137\2\57\204\125\157\206\32\33\33\113\366" "\365\365\275\47\245\214\206\311\375\52\52\155\347\141\25\307" "\142\261\237\335\276\175\373\373\200\321\250\234\336\324\54\315" "\321\321\321\137\1\373\137\27\120\263\113\51\111\46\223\277" "\35\36\36\356\0\264\255\24\323\317\236\75\333\237\110\44" "\176\32\46\171\253\300\164\135\37\70\167\356\334\117\200\315" "\76\247\67\250\145\215\214\214\374\42\10\202\130\20\4\204" "\271\365\272\75\154\101\311\144\362\347\266\155\307\102\325\364" "\6\345\142\35\35\35\307\205\20\0\55\121\53\24\100\112" "\211\246\151\157\215\215\215\215\204\317\144\50\235\161\346\314" "\231\257\131\226\325\57\245\334\4\153\245\11\41\70\160\340" "\300\273\100\72\225\112\11\123\111\147\15\15\15\175\107\10" "\201\145\131\55\207\322\64\15\41\4\361\170\174\4\210\2" "\325\20\254\315\64\315\267\245\224\157\4\54\174\173\115\323" "\334\17\264\3\5\135\345\127\233\256\353\335\141\65\276\11" "\127\51\24\75\174\370\360\136\300\60\25\130\304\64\315\256" "\306\66\321\152\13\133\307\221\43\107\372\146\146\146\146\302" "\120\232\256\353\6\152\236\172\43\140\341\53\223\317\347\1" "\364\20\314\50\24\12\105\333\266\361\175\177\363\35\153\245" "\171\236\107\275\136\347\376\375\373\371\20\14\240\276\276\276" "\236\357\355\355\305\367\175\54\313\152\51\124\275\136\307\367" "\175\134\327\255\256\255\255\371\141\143\255\3\101\66\233\135" "\21\102\120\253\325\132\236\370\236\347\41\204\40\237\317\257" "\2\2\10\102\60\77\235\116\177\44\204\240\134\56\267\254" "\353\207\136\56\227\221\122\362\370\361\343\217\1\17\220\46" "\20\0\356\324\324\324\102\46\223\131\116\46\223\75\325\152" "\225\110\44\322\262\120\26\213\105\204\20\114\114\114\174\4" "\270\241\142\1\120\3\12\323\323\323\223\112\322\226\251\125" "\52\225\250\325\152\344\162\271\265\273\167\357\76\2\312\215" "\140\56\260\176\371\362\345\17\212\305\142\145\143\143\203\112" "\245\322\22\260\325\325\125\204\20\134\277\176\375\32\220\3" "\52\200\324\325\70\353\3\205\174\76\277\170\347\316\235\133" "\102\10\62\231\14\257\173\374\311\345\162\124\253\125\126\126" "\126\376\167\365\352\325\133\12\254\12\324\303\206\45\200\42" "\260\162\345\312\225\17\263\331\354\132\271\134\146\151\151\351" "\265\51\125\54\26\311\144\62\170\236\27\214\217\217\277\17" "\54\1\317\0\317\161\234\40\4\253\53\322\214\357\373\363" "\347\317\237\277\120\52\225\152\371\174\176\123\271\57\322\53" "\225\12\213\213\213\141\10\377\176\357\336\275\177\2\237\0" "\33\200\334\34\24\33\302\271\16\314\57\54\54\114\135\272" "\164\151\334\367\375\40\223\311\260\270\270\370\205\55\45\353" "\353\353\314\315\315\341\171\36\123\123\123\377\36\37\37\377" "\20\370\57\220\125\105\130\157\76\252\324\125\342\255\0\316" "\303\207\17\333\201\75\47\117\236\74\56\204\210\124\52\25" "\172\172\172\210\305\142\273\36\153\62\231\14\271\134\16\200" "\311\311\311\177\135\274\170\361\57\200\3\314\53\265\66\127" "\270\27\366\112\65\315\106\200\56\340\60\360\116\137\137\337" "\127\117\235\72\365\156\42\221\260\1\22\211\4\335\335\335" "\264\265\265\175\156\240\134\56\107\66\233\105\112\211\224\62" "\110\247\323\267\156\334\270\361\17\340\21\60\15\54\2\145" "\307\161\344\147\56\274\100\33\260\17\370\12\60\30\215\106" "\17\215\216\216\176\153\170\170\370\35\113\75\244\221\110\4" "\333\266\351\350\350\300\262\54\114\323\104\327\365\315\333\106" "\265\132\245\120\50\120\52\225\66\227\216\205\205\205\205\153" "\327\256\115\314\317\317\77\2\146\201\31\225\133\105\100\66" "\56\274\133\336\56\32\340\222\300\333\100\12\350\267\155\373" "\313\307\216\35\373\306\301\203\7\7\332\333\333\333\77\247" "\142\162\171\171\171\171\142\142\142\162\146\146\346\261\252\276" "\377\50\137\1\112\315\120\57\73\252\350\52\254\11\240\7" "\30\0\16\0\157\1\211\201\201\201\375\203\203\203\3\235" "\235\235\166\64\32\215\306\142\261\250\141\30\106\125\131\251" "\124\52\77\171\362\144\151\172\172\172\336\363\274\2\260\252" "\240\236\252\320\255\251\116\40\267\72\252\274\364\14\245\12" "\44\6\164\2\335\300\176\5\367\45\240\103\51\153\1\106" "\70\214\252\276\350\252\142\52\50\210\145\245\320\232\12\235" "\7\4\73\76\103\65\25\204\256\176\74\6\304\1\133\201" "\45\232\340\264\55\240\326\225\27\124\330\334\355\124\332\21" "\330\26\200\246\202\150\123\253\126\244\101\61\115\51\346\53" "\105\252\252\67\171\352\273\340\145\227\304\35\203\65\1\206" "\36\156\131\132\343\101\44\34\76\33\274\276\323\13\266\366" "\52\347\364\346\223\172\263\275\312\71\375\377\277\113\265\60" "\205\220\343\373\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/tab.png", 499, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\26\0\0\0\23\10\6\0\0\0\224\171\375" "\210\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\1\205\111\104\101\124\170\332" "\244\223\335\216\202\60\20\205\147\112\3\211\106\67\131\56" "\274\203\247\320\144\275\362\135\335\304\347\202\56\211\76\200" "\46\376\304\331\236\112\261\260\304\135\330\111\300\366\164\370" "\346\164\152\271\50\12\232\114\46\224\44\11\151\255\311\206" "\60\63\211\10\306\174\273\335\350\174\76\323\351\164\242\54" "\313\50\214\262\54\45\216\143\272\134\56\56\27\71\373\375" "\236\66\233\15\151\100\225\122\200\112\10\251\213\11\212\135" "\257\127\306\334\207\61\106\216\307\43\35\16\7\202\261\74" "\317\151\261\130\310\164\72\245\44\216\31\71\32\325\54\120" "\356\367\273\3\372\300\330\27\260\277\50\340\76\370\334\156" "\45\263\40\353\226\260\51\354\316\230\222\112\143\50\267\73" "\52\212\122\76\326\153\326\160\11\127\41\64\14\350\130\107" "\36\142\66\177\203\143\7\144\127\312\275\334\33\372\174\76" "\163\163\205\236\242\117\257\242\136\227\335\156\47\151\372\116" "\212\225\153\37\36\126\317\61\364\64\115\11\171\332\273\172" "\25\176\135\51\246\252\372\42\25\251\146\115\234\133\151\234" "\127\125\345\212\151\32\20\112\105\75\252\324\33\157\153\3" "\301\36\140\335\261\70\46\327\350\256\66\10\34\171\60\116" "\15\14\13\142\117\356\150\303\34\107\201\143\11\132\240\344" "\207\66\256\307\215\313\326\11\266\264\141\255\210\36\340\307" "\305\220\272\3\334\253\215\74\274\337\143\34\370\371\127\170" "\106\107\33\17\366\275\365\304\216\66\272\25\16\307\341\254" "\255\375\253\307\334\223\303\143\132\301\65\230\205\232\133\206" "\333\40\75\332\40\360\152\271\374\163\356\267\0\3\0\231" "\367\265\366\253\127\66\350\0\0\0\0\111\105\116\104\256" "\102\140\202" }, { ":resources/thinlistbox.png", 188, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\3\0\0\0\3\10\6\0\0\0\126\50\265" "\277\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\340\6\7\24\21\57\53\40\151\336\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\0\40\111\104\101\124\10\327\143\334" "\176\373\377\177\6\50\140\142\140\140\140\360\54\232\313\300" "\300\300\300\300\210\54\3\0\301\217\10\175\16\116\61\171" "\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/topbar.png", 201, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\3\0\0\0\23\10\2\0\0\0\332\234\40" "\163\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\0\133\111\104\101\124\170\332" "\104\116\111\22\300\60\10\2\305\377\77\67\107\213\111\332" "\162\321\141\123\126\25\32\115\50\63\261\41\303\34\320\303" "\221\354\206\112\365\252\225\46\114\313\331\166\322\76\175\352" "\346\300\333\362\367\115\140\262\65\376\335\47\237\340\271\161" "\175\231\342\226\275\305\174\20\255\210\70\352\35\6\327\132" "\147\173\4\30\0\153\30\30\355\172\257\227\165\0\0\0" "\0\111\105\116\104\256\102\140\202" }, { ":resources/toplogo.png", 672, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\137\0\0\0\21\10\6\0\0\0\273\36\160" "\351\0\0\0\4\147\101\115\101\0\0\257\310\67\5\212" "\351\0\0\0\31\164\105\130\164\123\157\146\164\167\141\162" "\145\0\101\144\157\142\145\40\111\155\141\147\145\122\145\141" "\144\171\161\311\145\74\0\0\2\62\111\104\101\124\170\332" "\334\130\213\155\302\60\20\75\120\6\250\73\102\126\60\43" "\204\21\140\204\62\102\72\2\31\201\254\300\10\315\10\365" "\10\365\10\270\33\264\66\272\124\346\164\376\44\20\10\75" "\351\204\270\130\366\371\371\376\213\323\311\110\0\250\200\247" "\243\145\15\363\45\201\272\227\314\267\316\262\262\134\23\171" "\63\27\345\27\26\174\247\334\76\262\306\135\140\207\277\163" "\242\32\131\4\276\257\361\1\176\74\231\261\374\72\227\13" "\54\63\326\70\317\370\10\130\327\43\201\337\107\200\217\171" "\12\74\23\370\275\322\365\214\102\315\36\376\1\25\3\326" "\226\236\47\10\317\215\65\312\64\376\227\304\315\65\43\123" "\144\237\24\165\214\36\311\107\22\342\5\214\371\136\137\12" "\317\262\62\261\217\362\356\232\103\72\222\33\53\157\237\316" "\17\337\41\360\133\313\157\314\46\216\76\11\220\275\65\66" "\370\237\132\345\73\43\133\220\175\122\144\160\237\66\120\34" "\264\130\34\134\0\150\101\6\14\231\177\373\130\231\213\371" "\207\110\221\321\353\14\3\75\314\1\273\365\60\221\170\216" "\14\255\53\42\57\71\64\206\232\211\103\315\41\162\206\46" "\336\361\210\230\137\341\103\257\274\320\50\143\353\12\170\56" "\332\104\252\256\232\130\263\101\13\273\47\111\344\52\341\131" "\156\315\333\362\306\326\171\15\351\100\270\31\162\106\345\361" "\46\262\256\301\122\164\313\234\21\363\42\235\320\17\2\300" "\53\306\150\252\133\200\257\360\22\355\4\340\117\325\20\165" "\310\134\322\157\43\336\245\231\273\167\1\313\246\315\52\315" "\111\372\26\141\147\216\15\130\156\214\256\231\107\151\46\212" "\2\24\243\140\302\225\3\55\377\321\44\7\46\174\256\127" "\320\150\110\123\21\55\155\313\42\222\330\270\71\317\30\272" "\165\103\244\62\365\115\165\310\222\1\347\213\224\232\327\204" "\265\212\234\147\306\166\270\60\243\320\322\301\365\303\276\372" "\16\72\122\117\243\226\337\55\7\0\237\223\120\333\73\75" "\322\16\346\115\155\242\357\160\337\216\71\340\367\145\231\311" "\154\264\326\231\15\317\230\304\45\74\345\127\43\36\172\212" "\106\120\4\316\331\6\160\350\73\334\363\110\131\104\22\154" "\250\214\22\211\65\20\231\335\204\146\73\212\321\103\5\346" "\102\64\126\227\231\347\344\316\225\270\331\216\101\56\111\222" "\26\314\75\114\100\277\13\375\177\5\30\0\103\235\241\210" "\115\202\14\167\0\0\0\0\111\105\116\104\256\102\140\202" }, { ":resources/vertline.png", 170, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\1\0\0\0\2\10\6\0\0\0\231\201\266" "\47\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\335\4\6\12\41\20\56\40\334\34\0\0\0\31\164" "\105\130\164\103\157\155\155\145\156\164\0\103\162\145\141\164" "\145\144\40\167\151\164\150\40\107\111\115\120\127\201\16\27" "\0\0\0\22\111\104\101\124\10\327\143\140\140\140\250\141" "\370\377\377\377\17\0\14\341\4\162\2\246\161\372\0\0" "\0\0\111\105\116\104\256\102\140\202" }, { ":resources/widget.png", 994, "\211\120\116\107\15\12\32\12\0\0\0\15\111\110\104\122" "\0\0\0\17\0\0\0\115\10\6\0\0\0\171\106\76" "\55\0\0\0\6\142\113\107\104\0\377\0\377\0\377\240" "\275\247\223\0\0\0\11\160\110\131\163\0\0\15\327\0" "\0\15\327\1\102\50\233\170\0\0\0\7\164\111\115\105" "\7\340\6\7\20\31\66\200\233\343\312\0\0\0\35\151" "\124\130\164\103\157\155\155\145\156\164\0\0\0\0\0\103" "\162\145\141\164\145\144\40\167\151\164\150\40\107\111\115\120" "\144\56\145\7\0\0\3\106\111\104\101\124\130\303\275\230" "\277\156\53\105\24\207\277\163\146\146\23\231\134\102\212\360" "\137\124\227\12\256\224\6\42\41\41\52\32\112\52\36\200" "\47\100\242\61\242\135\41\361\14\24\274\0\217\221\202\64" "\221\42\136\1\104\156\221\110\327\130\261\354\354\241\360\330" "\236\335\235\365\356\6\21\113\326\172\366\314\157\176\337\234" "\71\63\273\62\374\207\217\244\215\351\164\172\6\374\10\234" "\3\357\45\241\77\201\337\201\237\313\262\274\150\211\247\323" "\351\67\300\257\100\261\307\254\2\176\50\313\362\247\255\170" "\72\235\176\0\134\3\257\17\240\255\200\317\313\262\274\320" "\170\343\273\201\102\0\5\276\7\360\361\306\127\151\164\271" "\134\162\173\173\273\155\237\234\234\20\102\110\273\174\232\212" "\77\114\43\167\167\167\374\362\307\33\330\301\63\144\361\212" "\157\77\276\343\364\364\64\355\362\356\126\54\42\165\56\125" "\70\74\206\243\167\100\376\102\365\125\253\317\126\254\252\265" "\233\316\71\104\4\213\3\73\347\132\175\366\212\331\70\365" "\211\163\330\42\32\265\32\333\362\77\70\167\315\231\41\163" "\156\42\255\333\262\255\140\21\31\213\35\357\211\76\41\366" "\272\343\16\373\351\262\255\252\65\261\252\216\54\222\210\55" "\117\217\335\150\217\313\166\143\316\343\260\223\245\172\332\154" "\77\272\110\106\45\54\67\147\303\0\60\4\347\164\344\226" "\24\210\207\330\43\266\44\253\132\173\334\1\310\303\260\245" "\312\237\44\365\366\140\154\63\303\342\122\31\62\56\333\315" "\317\150\354\324\171\24\166\353\231\72\276\74\233\117\220\121" "\11\213\277\37\47\256\147\73\47\126\63\363\233\340\346\253" "\252\244\326\271\270\231\171\17\170\347\34\125\125\325\335\33" "\330\231\234\254\305\336\173\126\253\125\15\133\5\52\3\225" "\166\205\171\357\167\342\334\234\366\211\153\316\316\71\36\36" "\36\166\57\132\125\205\23\143\205\340\304\166\171\250\155\234" "\304\271\65\57\331\135\233\361\232\163\16\333\105\365\346\272" "\27\73\35\331\314\160\272\31\244\355\134\303\316\212\243\221" "\223\36\161\67\266\365\142\273\334\310\76\212\275\266\217\241" "\370\333\145\261\253\252\252\45\254\167\251\122\54\21\301\307" "\111\173\47\373\213\44\207\235\72\167\140\167\147\73\165\336" "\233\355\46\326\32\133\243\130\311\305\73\235\67\216\233\153" "\63\336\133\333\41\266\103\214\165\316\71\227\115\357\43\266" "\157\277\62\357\305\66\63\102\304\16\256\175\206\365\142\247" "\11\213\235\207\141\213\10\301\257\5\301\273\315\201\227\305" "\156\325\266\210\20\242\163\210\157\5\251\270\126\333\271\154" "\206\230\260\340\327\330\351\351\332\233\355\241\330\331\332\116" "\305\316\271\34\366\160\361\140\154\347\34\105\24\27\121\234" "\76\24\152\330\271\315\136\204\50\16\256\125\333\275\163\156" "\72\17\256\355\234\163\147\155\347\260\277\74\173\237\42\170" "\276\370\350\355\275\330\57\103\10\163\125\235\154\202\213\305" "\202\363\347\307\234\77\77\6\140\76\237\327\304\41\204\71" "\360\322\3\227\105\121\254\122\254\252\252\230\315\146\235\57" "\166\105\121\254\200\113\17\134\251\352\315\144\62\171\166\177" "\177\57\175\377\66\34\36\36\232\252\336\0\127\22\367\357" "\13\63\273\230\315\146\257\55\26\213\316\1\16\16\16\354" "\350\350\350\37\21\371\114\104\256\45\71\0\136\230\331\157" "\146\366\346\162\271\364\125\125\115\222\245\231\207\20\126\42" "\162\43\42\137\213\310\165\353\357\35\63\363\300\31\360\11" "\360\126\22\372\33\270\4\256\104\144\133\152\377\2\13\162" "\326\53\202\277\76\356\0\0\0\0\111\105\116\104\256\102" "\140\202" }, { ":../ABOUT", 292, "\104\162\165\155\107\151\172\155\157\40\151\163\40\141\156\40" "\157\160\145\156\40\163\157\165\162\143\145\54\40\155\165\154" "\164\151\143\150\141\156\156\145\154\54\40\155\165\154\164\151" "\154\141\171\145\162\145\144\54\40\143\162\157\163\163\55\160" "\154\141\164\146\157\162\155\40\144\162\165\155\12\160\154\165" "\147\151\156\40\141\156\144\40\163\164\141\156\144\55\141\154" "\157\156\145\40\141\160\160\154\151\143\141\164\151\157\156\56" "\40\111\164\40\145\156\141\142\154\145\163\40\171\157\165\40" "\164\157\40\143\157\155\160\157\163\145\40\144\162\165\155\163" "\40\151\156\40\155\151\144\151\40\141\156\144\12\155\151\170" "\40\164\150\145\155\40\167\151\164\150\40\141\40\155\165\154" "\164\151\143\150\141\156\156\145\154\40\141\160\160\162\157\141" "\143\150\56\40\111\164\40\151\163\40\143\157\155\160\141\162" "\141\142\154\145\40\164\157\40\164\150\141\164\40\157\146\40" "\155\151\170\151\156\147\40\141\12\162\145\141\154\40\144\162" "\165\155\153\151\164\40\164\150\141\164\40\150\141\163\40\142" "\145\145\156\40\162\145\143\157\162\144\145\144\40\167\151\164" "\150\40\141\40\155\165\154\164\151\155\151\143\40\163\145\164" "\165\160\56\12" }, { ":../AUTHORS", 418, "\106\157\165\156\144\145\162\40\141\156\144\40\154\145\141\144" "\40\144\145\166\145\154\157\160\145\162\72\12\40\102\145\156" "\164\40\102\151\163\142\141\154\154\145\40\116\171\145\156\147" "\40\133\144\145\166\141\135\40\50\144\145\166\141\100\141\141" "\163\151\155\157\156\56\157\162\147\51\12\12\104\145\166\145" "\154\157\160\145\162\72\12\40\112\157\156\141\163\40\123\165" "\150\162\40\103\150\162\151\163\164\145\156\163\145\156\40\133" "\163\165\150\162\135\40\50\152\163\143\100\165\155\142\162\141" "\143\165\154\165\155\56\157\162\147\51\12\12\104\145\166\145" "\154\157\160\145\162\72\12\40\101\156\144\162\303\251\40\116" "\165\163\163\145\162\40\133\143\150\141\157\164\64\135\12\12" "\104\145\166\145\154\157\160\145\162\72\12\40\103\150\162\151" "\163\164\151\141\156\40\107\154\303\266\143\153\156\145\162\40" "\133\143\147\154\157\143\153\145\135\12\12\104\145\166\145\154" "\157\160\145\162\54\40\107\162\141\160\150\151\143\163\54\40" "\107\125\111\40\144\145\163\151\147\156\40\141\156\144\40\154" "\157\147\157\72\12\40\114\141\162\163\40\115\165\154\144\152" "\157\162\144\40\133\155\165\154\144\152\157\162\144\135\40\50" "\155\165\154\144\152\157\162\144\154\141\162\163\100\147\155\141" "\151\154\56\143\157\155\51\12\12\104\145\166\145\154\157\160" "\145\162\72\12\40\107\157\162\141\156\40\115\145\153\151\304" "\207\40\133\155\145\153\141\135\40\50\155\145\153\141\100\164" "\151\154\144\141\56\143\145\156\164\145\162\51\12\12\120\141" "\164\143\150\145\163\72\12\40\112\157\150\156\40\110\141\155" "\155\145\156\40\50\163\141\155\160\154\145\40\155\165\154\164" "\151\143\150\141\156\156\145\154\40\163\165\160\160\157\162\164" "\51\12" }, { ":../COPYING", 7651, "\40\40\40\40\40\40\40\40\40\40\40\40\40\40\40\40" "\40\40\40\107\116\125\40\114\105\123\123\105\122\40\107\105" "\116\105\122\101\114\40\120\125\102\114\111\103\40\114\111\103" "\105\116\123\105\12\40\40\40\40\40\40\40\40\40\40\40" "\40\40\40\40\40\40\40\40\40\40\40\40\126\145\162\163" "\151\157\156\40\63\54\40\62\71\40\112\165\156\145\40\62" "\60\60\67\12\12\40\103\157\160\171\162\151\147\150\164\40" "\50\103\51\40\62\60\60\67\40\106\162\145\145\40\123\157" "\146\164\167\141\162\145\40\106\157\165\156\144\141\164\151\157" "\156\54\40\111\156\143\56\40\74\150\164\164\160\72\57\57" "\146\163\146\56\157\162\147\57\76\12\40\105\166\145\162\171" "\157\156\145\40\151\163\40\160\145\162\155\151\164\164\145\144" "\40\164\157\40\143\157\160\171\40\141\156\144\40\144\151\163" "\164\162\151\142\165\164\145\40\166\145\162\142\141\164\151\155" "\40\143\157\160\151\145\163\12\40\157\146\40\164\150\151\163" "\40\154\151\143\145\156\163\145\40\144\157\143\165\155\145\156" "\164\54\40\142\165\164\40\143\150\141\156\147\151\156\147\40" "\151\164\40\151\163\40\156\157\164\40\141\154\154\157\167\145" "\144\56\12\12\12\40\40\124\150\151\163\40\166\145\162\163" "\151\157\156\40\157\146\40\164\150\145\40\107\116\125\40\114" "\145\163\163\145\162\40\107\145\156\145\162\141\154\40\120\165" "\142\154\151\143\40\114\151\143\145\156\163\145\40\151\156\143" "\157\162\160\157\162\141\164\145\163\12\164\150\145\40\164\145" "\162\155\163\40\141\156\144\40\143\157\156\144\151\164\151\157" "\156\163\40\157\146\40\166\145\162\163\151\157\156\40\63\40" "\157\146\40\164\150\145\40\107\116\125\40\107\145\156\145\162" "\141\154\40\120\165\142\154\151\143\12\114\151\143\145\156\163" "\145\54\40\163\165\160\160\154\145\155\145\156\164\145\144\40" "\142\171\40\164\150\145\40\141\144\144\151\164\151\157\156\141" "\154\40\160\145\162\155\151\163\163\151\157\156\163\40\154\151" "\163\164\145\144\40\142\145\154\157\167\56\12\12\40\40\60" "\56\40\101\144\144\151\164\151\157\156\141\154\40\104\145\146" "\151\156\151\164\151\157\156\163\56\12\12\40\40\101\163\40" "\165\163\145\144\40\150\145\162\145\151\156\54\40\42\164\150" "\151\163\40\114\151\143\145\156\163\145\42\40\162\145\146\145" "\162\163\40\164\157\40\166\145\162\163\151\157\156\40\63\40" "\157\146\40\164\150\145\40\107\116\125\40\114\145\163\163\145" "\162\12\107\145\156\145\162\141\154\40\120\165\142\154\151\143" "\40\114\151\143\145\156\163\145\54\40\141\156\144\40\164\150" "\145\40\42\107\116\125\40\107\120\114\42\40\162\145\146\145" "\162\163\40\164\157\40\166\145\162\163\151\157\156\40\63\40" "\157\146\40\164\150\145\40\107\116\125\12\107\145\156\145\162" "\141\154\40\120\165\142\154\151\143\40\114\151\143\145\156\163" "\145\56\12\12\40\40\42\124\150\145\40\114\151\142\162\141" "\162\171\42\40\162\145\146\145\162\163\40\164\157\40\141\40" "\143\157\166\145\162\145\144\40\167\157\162\153\40\147\157\166" "\145\162\156\145\144\40\142\171\40\164\150\151\163\40\114\151" "\143\145\156\163\145\54\12\157\164\150\145\162\40\164\150\141" "\156\40\141\156\40\101\160\160\154\151\143\141\164\151\157\156" "\40\157\162\40\141\40\103\157\155\142\151\156\145\144\40\127" "\157\162\153\40\141\163\40\144\145\146\151\156\145\144\40\142" "\145\154\157\167\56\12\12\40\40\101\156\40\42\101\160\160" "\154\151\143\141\164\151\157\156\42\40\151\163\40\141\156\171" "\40\167\157\162\153\40\164\150\141\164\40\155\141\153\145\163" "\40\165\163\145\40\157\146\40\141\156\40\151\156\164\145\162" "\146\141\143\145\40\160\162\157\166\151\144\145\144\12\142\171" "\40\164\150\145\40\114\151\142\162\141\162\171\54\40\142\165" "\164\40\167\150\151\143\150\40\151\163\40\156\157\164\40\157" "\164\150\145\162\167\151\163\145\40\142\141\163\145\144\40\157" "\156\40\164\150\145\40\114\151\142\162\141\162\171\56\12\104" "\145\146\151\156\151\156\147\40\141\40\163\165\142\143\154\141" "\163\163\40\157\146\40\141\40\143\154\141\163\163\40\144\145" "\146\151\156\145\144\40\142\171\40\164\150\145\40\114\151\142" "\162\141\162\171\40\151\163\40\144\145\145\155\145\144\40\141" "\40\155\157\144\145\12\157\146\40\165\163\151\156\147\40\141" "\156\40\151\156\164\145\162\146\141\143\145\40\160\162\157\166" "\151\144\145\144\40\142\171\40\164\150\145\40\114\151\142\162" "\141\162\171\56\12\12\40\40\101\40\42\103\157\155\142\151" "\156\145\144\40\127\157\162\153\42\40\151\163\40\141\40\167" "\157\162\153\40\160\162\157\144\165\143\145\144\40\142\171\40" "\143\157\155\142\151\156\151\156\147\40\157\162\40\154\151\156" "\153\151\156\147\40\141\156\12\101\160\160\154\151\143\141\164" "\151\157\156\40\167\151\164\150\40\164\150\145\40\114\151\142" "\162\141\162\171\56\40\40\124\150\145\40\160\141\162\164\151" "\143\165\154\141\162\40\166\145\162\163\151\157\156\40\157\146" "\40\164\150\145\40\114\151\142\162\141\162\171\12\167\151\164" "\150\40\167\150\151\143\150\40\164\150\145\40\103\157\155\142" "\151\156\145\144\40\127\157\162\153\40\167\141\163\40\155\141" "\144\145\40\151\163\40\141\154\163\157\40\143\141\154\154\145" "\144\40\164\150\145\40\42\114\151\156\153\145\144\12\126\145" "\162\163\151\157\156\42\56\12\12\40\40\124\150\145\40\42" "\115\151\156\151\155\141\154\40\103\157\162\162\145\163\160\157" "\156\144\151\156\147\40\123\157\165\162\143\145\42\40\146\157" "\162\40\141\40\103\157\155\142\151\156\145\144\40\127\157\162" "\153\40\155\145\141\156\163\40\164\150\145\12\103\157\162\162" "\145\163\160\157\156\144\151\156\147\40\123\157\165\162\143\145" "\40\146\157\162\40\164\150\145\40\103\157\155\142\151\156\145" "\144\40\127\157\162\153\54\40\145\170\143\154\165\144\151\156" "\147\40\141\156\171\40\163\157\165\162\143\145\40\143\157\144" "\145\12\146\157\162\40\160\157\162\164\151\157\156\163\40\157" "\146\40\164\150\145\40\103\157\155\142\151\156\145\144\40\127" "\157\162\153\40\164\150\141\164\54\40\143\157\156\163\151\144" "\145\162\145\144\40\151\156\40\151\163\157\154\141\164\151\157" "\156\54\40\141\162\145\12\142\141\163\145\144\40\157\156\40" "\164\150\145\40\101\160\160\154\151\143\141\164\151\157\156\54" "\40\141\156\144\40\156\157\164\40\157\156\40\164\150\145\40" "\114\151\156\153\145\144\40\126\145\162\163\151\157\156\56\12" "\12\40\40\124\150\145\40\42\103\157\162\162\145\163\160\157" "\156\144\151\156\147\40\101\160\160\154\151\143\141\164\151\157" "\156\40\103\157\144\145\42\40\146\157\162\40\141\40\103\157" "\155\142\151\156\145\144\40\127\157\162\153\40\155\145\141\156" "\163\40\164\150\145\12\157\142\152\145\143\164\40\143\157\144" "\145\40\141\156\144\57\157\162\40\163\157\165\162\143\145\40" "\143\157\144\145\40\146\157\162\40\164\150\145\40\101\160\160" "\154\151\143\141\164\151\157\156\54\40\151\156\143\154\165\144" "\151\156\147\40\141\156\171\40\144\141\164\141\12\141\156\144" "\40\165\164\151\154\151\164\171\40\160\162\157\147\162\141\155" "\163\40\156\145\145\144\145\144\40\146\157\162\40\162\145\160" "\162\157\144\165\143\151\156\147\40\164\150\145\40\103\157\155" "\142\151\156\145\144\40\127\157\162\153\40\146\162\157\155\40" "\164\150\145\12\101\160\160\154\151\143\141\164\151\157\156\54" "\40\142\165\164\40\145\170\143\154\165\144\151\156\147\40\164" "\150\145\40\123\171\163\164\145\155\40\114\151\142\162\141\162" "\151\145\163\40\157\146\40\164\150\145\40\103\157\155\142\151" "\156\145\144\40\127\157\162\153\56\12\12\40\40\61\56\40" "\105\170\143\145\160\164\151\157\156\40\164\157\40\123\145\143" "\164\151\157\156\40\63\40\157\146\40\164\150\145\40\107\116" "\125\40\107\120\114\56\12\12\40\40\131\157\165\40\155\141" "\171\40\143\157\156\166\145\171\40\141\40\143\157\166\145\162" "\145\144\40\167\157\162\153\40\165\156\144\145\162\40\163\145" "\143\164\151\157\156\163\40\63\40\141\156\144\40\64\40\157" "\146\40\164\150\151\163\40\114\151\143\145\156\163\145\12\167" "\151\164\150\157\165\164\40\142\145\151\156\147\40\142\157\165" "\156\144\40\142\171\40\163\145\143\164\151\157\156\40\63\40" "\157\146\40\164\150\145\40\107\116\125\40\107\120\114\56\12" "\12\40\40\62\56\40\103\157\156\166\145\171\151\156\147\40" "\115\157\144\151\146\151\145\144\40\126\145\162\163\151\157\156" "\163\56\12\12\40\40\111\146\40\171\157\165\40\155\157\144" "\151\146\171\40\141\40\143\157\160\171\40\157\146\40\164\150" "\145\40\114\151\142\162\141\162\171\54\40\141\156\144\54\40" "\151\156\40\171\157\165\162\40\155\157\144\151\146\151\143\141" "\164\151\157\156\163\54\40\141\12\146\141\143\151\154\151\164" "\171\40\162\145\146\145\162\163\40\164\157\40\141\40\146\165" "\156\143\164\151\157\156\40\157\162\40\144\141\164\141\40\164" "\157\40\142\145\40\163\165\160\160\154\151\145\144\40\142\171" "\40\141\156\40\101\160\160\154\151\143\141\164\151\157\156\12" "\164\150\141\164\40\165\163\145\163\40\164\150\145\40\146\141" "\143\151\154\151\164\171\40\50\157\164\150\145\162\40\164\150" "\141\156\40\141\163\40\141\156\40\141\162\147\165\155\145\156" "\164\40\160\141\163\163\145\144\40\167\150\145\156\40\164\150" "\145\12\146\141\143\151\154\151\164\171\40\151\163\40\151\156" "\166\157\153\145\144\51\54\40\164\150\145\156\40\171\157\165" "\40\155\141\171\40\143\157\156\166\145\171\40\141\40\143\157" "\160\171\40\157\146\40\164\150\145\40\155\157\144\151\146\151" "\145\144\12\166\145\162\163\151\157\156\72\12\12\40\40\40" "\141\51\40\165\156\144\145\162\40\164\150\151\163\40\114\151" "\143\145\156\163\145\54\40\160\162\157\166\151\144\145\144\40" "\164\150\141\164\40\171\157\165\40\155\141\153\145\40\141\40" "\147\157\157\144\40\146\141\151\164\150\40\145\146\146\157\162" "\164\40\164\157\12\40\40\40\145\156\163\165\162\145\40\164" "\150\141\164\54\40\151\156\40\164\150\145\40\145\166\145\156" "\164\40\141\156\40\101\160\160\154\151\143\141\164\151\157\156" "\40\144\157\145\163\40\156\157\164\40\163\165\160\160\154\171" "\40\164\150\145\12\40\40\40\146\165\156\143\164\151\157\156" "\40\157\162\40\144\141\164\141\54\40\164\150\145\40\146\141" "\143\151\154\151\164\171\40\163\164\151\154\154\40\157\160\145" "\162\141\164\145\163\54\40\141\156\144\40\160\145\162\146\157" "\162\155\163\12\40\40\40\167\150\141\164\145\166\145\162\40" "\160\141\162\164\40\157\146\40\151\164\163\40\160\165\162\160" "\157\163\145\40\162\145\155\141\151\156\163\40\155\145\141\156" "\151\156\147\146\165\154\54\40\157\162\12\12\40\40\40\142" "\51\40\165\156\144\145\162\40\164\150\145\40\107\116\125\40" "\107\120\114\54\40\167\151\164\150\40\156\157\156\145\40\157" "\146\40\164\150\145\40\141\144\144\151\164\151\157\156\141\154" "\40\160\145\162\155\151\163\163\151\157\156\163\40\157\146\12" "\40\40\40\164\150\151\163\40\114\151\143\145\156\163\145\40" "\141\160\160\154\151\143\141\142\154\145\40\164\157\40\164\150" "\141\164\40\143\157\160\171\56\12\12\40\40\63\56\40\117" "\142\152\145\143\164\40\103\157\144\145\40\111\156\143\157\162" "\160\157\162\141\164\151\156\147\40\115\141\164\145\162\151\141" "\154\40\146\162\157\155\40\114\151\142\162\141\162\171\40\110" "\145\141\144\145\162\40\106\151\154\145\163\56\12\12\40\40" "\124\150\145\40\157\142\152\145\143\164\40\143\157\144\145\40" "\146\157\162\155\40\157\146\40\141\156\40\101\160\160\154\151" "\143\141\164\151\157\156\40\155\141\171\40\151\156\143\157\162" "\160\157\162\141\164\145\40\155\141\164\145\162\151\141\154\40" "\146\162\157\155\12\141\40\150\145\141\144\145\162\40\146\151" "\154\145\40\164\150\141\164\40\151\163\40\160\141\162\164\40" "\157\146\40\164\150\145\40\114\151\142\162\141\162\171\56\40" "\40\131\157\165\40\155\141\171\40\143\157\156\166\145\171\40" "\163\165\143\150\40\157\142\152\145\143\164\12\143\157\144\145" "\40\165\156\144\145\162\40\164\145\162\155\163\40\157\146\40" "\171\157\165\162\40\143\150\157\151\143\145\54\40\160\162\157" "\166\151\144\145\144\40\164\150\141\164\54\40\151\146\40\164" "\150\145\40\151\156\143\157\162\160\157\162\141\164\145\144\12" "\155\141\164\145\162\151\141\154\40\151\163\40\156\157\164\40" "\154\151\155\151\164\145\144\40\164\157\40\156\165\155\145\162" "\151\143\141\154\40\160\141\162\141\155\145\164\145\162\163\54" "\40\144\141\164\141\40\163\164\162\165\143\164\165\162\145\12" "\154\141\171\157\165\164\163\40\141\156\144\40\141\143\143\145" "\163\163\157\162\163\54\40\157\162\40\163\155\141\154\154\40" "\155\141\143\162\157\163\54\40\151\156\154\151\156\145\40\146" "\165\156\143\164\151\157\156\163\40\141\156\144\40\164\145\155" "\160\154\141\164\145\163\12\50\164\145\156\40\157\162\40\146" "\145\167\145\162\40\154\151\156\145\163\40\151\156\40\154\145" "\156\147\164\150\51\54\40\171\157\165\40\144\157\40\142\157" "\164\150\40\157\146\40\164\150\145\40\146\157\154\154\157\167" "\151\156\147\72\12\12\40\40\40\141\51\40\107\151\166\145" "\40\160\162\157\155\151\156\145\156\164\40\156\157\164\151\143" "\145\40\167\151\164\150\40\145\141\143\150\40\143\157\160\171" "\40\157\146\40\164\150\145\40\157\142\152\145\143\164\40\143" "\157\144\145\40\164\150\141\164\40\164\150\145\12\40\40\40" "\114\151\142\162\141\162\171\40\151\163\40\165\163\145\144\40" "\151\156\40\151\164\40\141\156\144\40\164\150\141\164\40\164" "\150\145\40\114\151\142\162\141\162\171\40\141\156\144\40\151" "\164\163\40\165\163\145\40\141\162\145\12\40\40\40\143\157" "\166\145\162\145\144\40\142\171\40\164\150\151\163\40\114\151" "\143\145\156\163\145\56\12\12\40\40\40\142\51\40\101\143" "\143\157\155\160\141\156\171\40\164\150\145\40\157\142\152\145" "\143\164\40\143\157\144\145\40\167\151\164\150\40\141\40\143" "\157\160\171\40\157\146\40\164\150\145\40\107\116\125\40\107" "\120\114\40\141\156\144\40\164\150\151\163\40\154\151\143\145" "\156\163\145\12\40\40\40\144\157\143\165\155\145\156\164\56" "\12\12\40\40\64\56\40\103\157\155\142\151\156\145\144\40" "\127\157\162\153\163\56\12\12\40\40\131\157\165\40\155\141" "\171\40\143\157\156\166\145\171\40\141\40\103\157\155\142\151" "\156\145\144\40\127\157\162\153\40\165\156\144\145\162\40\164" "\145\162\155\163\40\157\146\40\171\157\165\162\40\143\150\157" "\151\143\145\40\164\150\141\164\54\12\164\141\153\145\156\40" "\164\157\147\145\164\150\145\162\54\40\145\146\146\145\143\164" "\151\166\145\154\171\40\144\157\40\156\157\164\40\162\145\163" "\164\162\151\143\164\40\155\157\144\151\146\151\143\141\164\151" "\157\156\40\157\146\40\164\150\145\12\160\157\162\164\151\157" "\156\163\40\157\146\40\164\150\145\40\114\151\142\162\141\162" "\171\40\143\157\156\164\141\151\156\145\144\40\151\156\40\164" "\150\145\40\103\157\155\142\151\156\145\144\40\127\157\162\153" "\40\141\156\144\40\162\145\166\145\162\163\145\12\145\156\147" "\151\156\145\145\162\151\156\147\40\146\157\162\40\144\145\142" "\165\147\147\151\156\147\40\163\165\143\150\40\155\157\144\151" "\146\151\143\141\164\151\157\156\163\54\40\151\146\40\171\157" "\165\40\141\154\163\157\40\144\157\40\145\141\143\150\40\157" "\146\12\164\150\145\40\146\157\154\154\157\167\151\156\147\72" "\12\12\40\40\40\141\51\40\107\151\166\145\40\160\162\157" "\155\151\156\145\156\164\40\156\157\164\151\143\145\40\167\151" "\164\150\40\145\141\143\150\40\143\157\160\171\40\157\146\40" "\164\150\145\40\103\157\155\142\151\156\145\144\40\127\157\162" "\153\40\164\150\141\164\12\40\40\40\164\150\145\40\114\151" "\142\162\141\162\171\40\151\163\40\165\163\145\144\40\151\156" "\40\151\164\40\141\156\144\40\164\150\141\164\40\164\150\145" "\40\114\151\142\162\141\162\171\40\141\156\144\40\151\164\163" "\40\165\163\145\40\141\162\145\12\40\40\40\143\157\166\145" "\162\145\144\40\142\171\40\164\150\151\163\40\114\151\143\145" "\156\163\145\56\12\12\40\40\40\142\51\40\101\143\143\157" "\155\160\141\156\171\40\164\150\145\40\103\157\155\142\151\156" "\145\144\40\127\157\162\153\40\167\151\164\150\40\141\40\143" "\157\160\171\40\157\146\40\164\150\145\40\107\116\125\40\107" "\120\114\40\141\156\144\40\164\150\151\163\40\154\151\143\145" "\156\163\145\12\40\40\40\144\157\143\165\155\145\156\164\56" "\12\12\40\40\40\143\51\40\106\157\162\40\141\40\103\157" "\155\142\151\156\145\144\40\127\157\162\153\40\164\150\141\164" "\40\144\151\163\160\154\141\171\163\40\143\157\160\171\162\151" "\147\150\164\40\156\157\164\151\143\145\163\40\144\165\162\151" "\156\147\12\40\40\40\145\170\145\143\165\164\151\157\156\54" "\40\151\156\143\154\165\144\145\40\164\150\145\40\143\157\160" "\171\162\151\147\150\164\40\156\157\164\151\143\145\40\146\157" "\162\40\164\150\145\40\114\151\142\162\141\162\171\40\141\155" "\157\156\147\12\40\40\40\164\150\145\163\145\40\156\157\164" "\151\143\145\163\54\40\141\163\40\167\145\154\154\40\141\163" "\40\141\40\162\145\146\145\162\145\156\143\145\40\144\151\162" "\145\143\164\151\156\147\40\164\150\145\40\165\163\145\162\40" "\164\157\40\164\150\145\12\40\40\40\143\157\160\151\145\163" "\40\157\146\40\164\150\145\40\107\116\125\40\107\120\114\40" "\141\156\144\40\164\150\151\163\40\154\151\143\145\156\163\145" "\40\144\157\143\165\155\145\156\164\56\12\12\40\40\40\144" "\51\40\104\157\40\157\156\145\40\157\146\40\164\150\145\40" "\146\157\154\154\157\167\151\156\147\72\12\12\40\40\40\40" "\40\40\40\60\51\40\103\157\156\166\145\171\40\164\150\145" "\40\115\151\156\151\155\141\154\40\103\157\162\162\145\163\160" "\157\156\144\151\156\147\40\123\157\165\162\143\145\40\165\156" "\144\145\162\40\164\150\145\40\164\145\162\155\163\40\157\146" "\40\164\150\151\163\12\40\40\40\40\40\40\40\114\151\143" "\145\156\163\145\54\40\141\156\144\40\164\150\145\40\103\157" "\162\162\145\163\160\157\156\144\151\156\147\40\101\160\160\154" "\151\143\141\164\151\157\156\40\103\157\144\145\40\151\156\40" "\141\40\146\157\162\155\12\40\40\40\40\40\40\40\163\165" "\151\164\141\142\154\145\40\146\157\162\54\40\141\156\144\40" "\165\156\144\145\162\40\164\145\162\155\163\40\164\150\141\164" "\40\160\145\162\155\151\164\54\40\164\150\145\40\165\163\145" "\162\40\164\157\12\40\40\40\40\40\40\40\162\145\143\157" "\155\142\151\156\145\40\157\162\40\162\145\154\151\156\153\40" "\164\150\145\40\101\160\160\154\151\143\141\164\151\157\156\40" "\167\151\164\150\40\141\40\155\157\144\151\146\151\145\144\40" "\166\145\162\163\151\157\156\40\157\146\12\40\40\40\40\40" "\40\40\164\150\145\40\114\151\156\153\145\144\40\126\145\162" "\163\151\157\156\40\164\157\40\160\162\157\144\165\143\145\40" "\141\40\155\157\144\151\146\151\145\144\40\103\157\155\142\151" "\156\145\144\40\127\157\162\153\54\40\151\156\40\164\150\145" "\12\40\40\40\40\40\40\40\155\141\156\156\145\162\40\163" "\160\145\143\151\146\151\145\144\40\142\171\40\163\145\143\164" "\151\157\156\40\66\40\157\146\40\164\150\145\40\107\116\125" "\40\107\120\114\40\146\157\162\40\143\157\156\166\145\171\151" "\156\147\12\40\40\40\40\40\40\40\103\157\162\162\145\163" "\160\157\156\144\151\156\147\40\123\157\165\162\143\145\56\12" "\12\40\40\40\40\40\40\40\61\51\40\125\163\145\40\141" "\40\163\165\151\164\141\142\154\145\40\163\150\141\162\145\144" "\40\154\151\142\162\141\162\171\40\155\145\143\150\141\156\151" "\163\155\40\146\157\162\40\154\151\156\153\151\156\147\40\167" "\151\164\150\40\164\150\145\12\40\40\40\40\40\40\40\114" "\151\142\162\141\162\171\56\40\40\101\40\163\165\151\164\141" "\142\154\145\40\155\145\143\150\141\156\151\163\155\40\151\163" "\40\157\156\145\40\164\150\141\164\40\50\141\51\40\165\163" "\145\163\40\141\164\40\162\165\156\40\164\151\155\145\12\40" "\40\40\40\40\40\40\141\40\143\157\160\171\40\157\146\40" "\164\150\145\40\114\151\142\162\141\162\171\40\141\154\162\145" "\141\144\171\40\160\162\145\163\145\156\164\40\157\156\40\164" "\150\145\40\165\163\145\162\47\163\40\143\157\155\160\165\164" "\145\162\12\40\40\40\40\40\40\40\163\171\163\164\145\155" "\54\40\141\156\144\40\50\142\51\40\167\151\154\154\40\157" "\160\145\162\141\164\145\40\160\162\157\160\145\162\154\171\40" "\167\151\164\150\40\141\40\155\157\144\151\146\151\145\144\40" "\166\145\162\163\151\157\156\12\40\40\40\40\40\40\40\157" "\146\40\164\150\145\40\114\151\142\162\141\162\171\40\164\150" "\141\164\40\151\163\40\151\156\164\145\162\146\141\143\145\55" "\143\157\155\160\141\164\151\142\154\145\40\167\151\164\150\40" "\164\150\145\40\114\151\156\153\145\144\12\40\40\40\40\40" "\40\40\126\145\162\163\151\157\156\56\12\12\40\40\40\145" "\51\40\120\162\157\166\151\144\145\40\111\156\163\164\141\154" "\154\141\164\151\157\156\40\111\156\146\157\162\155\141\164\151" "\157\156\54\40\142\165\164\40\157\156\154\171\40\151\146\40" "\171\157\165\40\167\157\165\154\144\40\157\164\150\145\162\167" "\151\163\145\12\40\40\40\142\145\40\162\145\161\165\151\162" "\145\144\40\164\157\40\160\162\157\166\151\144\145\40\163\165" "\143\150\40\151\156\146\157\162\155\141\164\151\157\156\40\165" "\156\144\145\162\40\163\145\143\164\151\157\156\40\66\40\157" "\146\40\164\150\145\12\40\40\40\107\116\125\40\107\120\114" "\54\40\141\156\144\40\157\156\154\171\40\164\157\40\164\150" "\145\40\145\170\164\145\156\164\40\164\150\141\164\40\163\165" "\143\150\40\151\156\146\157\162\155\141\164\151\157\156\40\151" "\163\12\40\40\40\156\145\143\145\163\163\141\162\171\40\164" "\157\40\151\156\163\164\141\154\154\40\141\156\144\40\145\170" "\145\143\165\164\145\40\141\40\155\157\144\151\146\151\145\144" "\40\166\145\162\163\151\157\156\40\157\146\40\164\150\145\12" "\40\40\40\103\157\155\142\151\156\145\144\40\127\157\162\153" "\40\160\162\157\144\165\143\145\144\40\142\171\40\162\145\143" "\157\155\142\151\156\151\156\147\40\157\162\40\162\145\154\151" "\156\153\151\156\147\40\164\150\145\12\40\40\40\101\160\160" "\154\151\143\141\164\151\157\156\40\167\151\164\150\40\141\40" "\155\157\144\151\146\151\145\144\40\166\145\162\163\151\157\156" "\40\157\146\40\164\150\145\40\114\151\156\153\145\144\40\126" "\145\162\163\151\157\156\56\40\50\111\146\12\40\40\40\171" "\157\165\40\165\163\145\40\157\160\164\151\157\156\40\64\144" "\60\54\40\164\150\145\40\111\156\163\164\141\154\154\141\164" "\151\157\156\40\111\156\146\157\162\155\141\164\151\157\156\40" "\155\165\163\164\40\141\143\143\157\155\160\141\156\171\12\40" "\40\40\164\150\145\40\115\151\156\151\155\141\154\40\103\157" "\162\162\145\163\160\157\156\144\151\156\147\40\123\157\165\162" "\143\145\40\141\156\144\40\103\157\162\162\145\163\160\157\156" "\144\151\156\147\40\101\160\160\154\151\143\141\164\151\157\156" "\12\40\40\40\103\157\144\145\56\40\111\146\40\171\157\165" "\40\165\163\145\40\157\160\164\151\157\156\40\64\144\61\54" "\40\171\157\165\40\155\165\163\164\40\160\162\157\166\151\144" "\145\40\164\150\145\40\111\156\163\164\141\154\154\141\164\151" "\157\156\12\40\40\40\111\156\146\157\162\155\141\164\151\157" "\156\40\151\156\40\164\150\145\40\155\141\156\156\145\162\40" "\163\160\145\143\151\146\151\145\144\40\142\171\40\163\145\143" "\164\151\157\156\40\66\40\157\146\40\164\150\145\40\107\116" "\125\40\107\120\114\12\40\40\40\146\157\162\40\143\157\156" "\166\145\171\151\156\147\40\103\157\162\162\145\163\160\157\156" "\144\151\156\147\40\123\157\165\162\143\145\56\51\12\12\40" "\40\65\56\40\103\157\155\142\151\156\145\144\40\114\151\142" "\162\141\162\151\145\163\56\12\12\40\40\131\157\165\40\155" "\141\171\40\160\154\141\143\145\40\154\151\142\162\141\162\171" "\40\146\141\143\151\154\151\164\151\145\163\40\164\150\141\164" "\40\141\162\145\40\141\40\167\157\162\153\40\142\141\163\145" "\144\40\157\156\40\164\150\145\12\114\151\142\162\141\162\171" "\40\163\151\144\145\40\142\171\40\163\151\144\145\40\151\156" "\40\141\40\163\151\156\147\154\145\40\154\151\142\162\141\162" "\171\40\164\157\147\145\164\150\145\162\40\167\151\164\150\40" "\157\164\150\145\162\40\154\151\142\162\141\162\171\12\146\141" "\143\151\154\151\164\151\145\163\40\164\150\141\164\40\141\162" "\145\40\156\157\164\40\101\160\160\154\151\143\141\164\151\157" "\156\163\40\141\156\144\40\141\162\145\40\156\157\164\40\143" "\157\166\145\162\145\144\40\142\171\40\164\150\151\163\12\114" "\151\143\145\156\163\145\54\40\141\156\144\40\143\157\156\166" "\145\171\40\163\165\143\150\40\141\40\143\157\155\142\151\156" "\145\144\40\154\151\142\162\141\162\171\40\165\156\144\145\162" "\40\164\145\162\155\163\40\157\146\40\171\157\165\162\12\143" "\150\157\151\143\145\54\40\151\146\40\171\157\165\40\144\157" "\40\142\157\164\150\40\157\146\40\164\150\145\40\146\157\154" "\154\157\167\151\156\147\72\12\12\40\40\40\141\51\40\101" "\143\143\157\155\160\141\156\171\40\164\150\145\40\143\157\155" "\142\151\156\145\144\40\154\151\142\162\141\162\171\40\167\151" "\164\150\40\141\40\143\157\160\171\40\157\146\40\164\150\145" "\40\163\141\155\145\40\167\157\162\153\40\142\141\163\145\144" "\12\40\40\40\157\156\40\164\150\145\40\114\151\142\162\141" "\162\171\54\40\165\156\143\157\155\142\151\156\145\144\40\167" "\151\164\150\40\141\156\171\40\157\164\150\145\162\40\154\151" "\142\162\141\162\171\40\146\141\143\151\154\151\164\151\145\163" "\54\12\40\40\40\143\157\156\166\145\171\145\144\40\165\156" "\144\145\162\40\164\150\145\40\164\145\162\155\163\40\157\146" "\40\164\150\151\163\40\114\151\143\145\156\163\145\56\12\12" "\40\40\40\142\51\40\107\151\166\145\40\160\162\157\155\151" "\156\145\156\164\40\156\157\164\151\143\145\40\167\151\164\150" "\40\164\150\145\40\143\157\155\142\151\156\145\144\40\154\151" "\142\162\141\162\171\40\164\150\141\164\40\160\141\162\164\40" "\157\146\40\151\164\12\40\40\40\151\163\40\141\40\167\157" "\162\153\40\142\141\163\145\144\40\157\156\40\164\150\145\40" "\114\151\142\162\141\162\171\54\40\141\156\144\40\145\170\160" "\154\141\151\156\151\156\147\40\167\150\145\162\145\40\164\157" "\40\146\151\156\144\40\164\150\145\12\40\40\40\141\143\143" "\157\155\160\141\156\171\151\156\147\40\165\156\143\157\155\142" "\151\156\145\144\40\146\157\162\155\40\157\146\40\164\150\145" "\40\163\141\155\145\40\167\157\162\153\56\12\12\40\40\66" "\56\40\122\145\166\151\163\145\144\40\126\145\162\163\151\157" "\156\163\40\157\146\40\164\150\145\40\107\116\125\40\114\145" "\163\163\145\162\40\107\145\156\145\162\141\154\40\120\165\142" "\154\151\143\40\114\151\143\145\156\163\145\56\12\12\40\40" "\124\150\145\40\106\162\145\145\40\123\157\146\164\167\141\162" "\145\40\106\157\165\156\144\141\164\151\157\156\40\155\141\171" "\40\160\165\142\154\151\163\150\40\162\145\166\151\163\145\144" "\40\141\156\144\57\157\162\40\156\145\167\40\166\145\162\163" "\151\157\156\163\12\157\146\40\164\150\145\40\107\116\125\40" "\114\145\163\163\145\162\40\107\145\156\145\162\141\154\40\120" "\165\142\154\151\143\40\114\151\143\145\156\163\145\40\146\162" "\157\155\40\164\151\155\145\40\164\157\40\164\151\155\145\56" "\40\123\165\143\150\40\156\145\167\12\166\145\162\163\151\157" "\156\163\40\167\151\154\154\40\142\145\40\163\151\155\151\154" "\141\162\40\151\156\40\163\160\151\162\151\164\40\164\157\40" "\164\150\145\40\160\162\145\163\145\156\164\40\166\145\162\163" "\151\157\156\54\40\142\165\164\40\155\141\171\12\144\151\146" "\146\145\162\40\151\156\40\144\145\164\141\151\154\40\164\157" "\40\141\144\144\162\145\163\163\40\156\145\167\40\160\162\157" "\142\154\145\155\163\40\157\162\40\143\157\156\143\145\162\156" "\163\56\12\12\40\40\105\141\143\150\40\166\145\162\163\151" "\157\156\40\151\163\40\147\151\166\145\156\40\141\40\144\151" "\163\164\151\156\147\165\151\163\150\151\156\147\40\166\145\162" "\163\151\157\156\40\156\165\155\142\145\162\56\40\111\146\40" "\164\150\145\12\114\151\142\162\141\162\171\40\141\163\40\171" "\157\165\40\162\145\143\145\151\166\145\144\40\151\164\40\163" "\160\145\143\151\146\151\145\163\40\164\150\141\164\40\141\40" "\143\145\162\164\141\151\156\40\156\165\155\142\145\162\145\144" "\40\166\145\162\163\151\157\156\12\157\146\40\164\150\145\40" "\107\116\125\40\114\145\163\163\145\162\40\107\145\156\145\162" "\141\154\40\120\165\142\154\151\143\40\114\151\143\145\156\163" "\145\40\42\157\162\40\141\156\171\40\154\141\164\145\162\40" "\166\145\162\163\151\157\156\42\12\141\160\160\154\151\145\163" "\40\164\157\40\151\164\54\40\171\157\165\40\150\141\166\145" "\40\164\150\145\40\157\160\164\151\157\156\40\157\146\40\146" "\157\154\154\157\167\151\156\147\40\164\150\145\40\164\145\162" "\155\163\40\141\156\144\12\143\157\156\144\151\164\151\157\156" "\163\40\145\151\164\150\145\162\40\157\146\40\164\150\141\164" "\40\160\165\142\154\151\163\150\145\144\40\166\145\162\163\151" "\157\156\40\157\162\40\157\146\40\141\156\171\40\154\141\164" "\145\162\40\166\145\162\163\151\157\156\12\160\165\142\154\151" "\163\150\145\144\40\142\171\40\164\150\145\40\106\162\145\145" "\40\123\157\146\164\167\141\162\145\40\106\157\165\156\144\141" "\164\151\157\156\56\40\111\146\40\164\150\145\40\114\151\142" "\162\141\162\171\40\141\163\40\171\157\165\12\162\145\143\145" "\151\166\145\144\40\151\164\40\144\157\145\163\40\156\157\164" "\40\163\160\145\143\151\146\171\40\141\40\166\145\162\163\151" "\157\156\40\156\165\155\142\145\162\40\157\146\40\164\150\145" "\40\107\116\125\40\114\145\163\163\145\162\12\107\145\156\145" "\162\141\154\40\120\165\142\154\151\143\40\114\151\143\145\156" "\163\145\54\40\171\157\165\40\155\141\171\40\143\150\157\157" "\163\145\40\141\156\171\40\166\145\162\163\151\157\156\40\157" "\146\40\164\150\145\40\107\116\125\40\114\145\163\163\145\162" "\12\107\145\156\145\162\141\154\40\120\165\142\154\151\143\40" "\114\151\143\145\156\163\145\40\145\166\145\162\40\160\165\142" "\154\151\163\150\145\144\40\142\171\40\164\150\145\40\106\162" "\145\145\40\123\157\146\164\167\141\162\145\40\106\157\165\156" "\144\141\164\151\157\156\56\12\12\40\40\111\146\40\164\150" "\145\40\114\151\142\162\141\162\171\40\141\163\40\171\157\165" "\40\162\145\143\145\151\166\145\144\40\151\164\40\163\160\145" "\143\151\146\151\145\163\40\164\150\141\164\40\141\40\160\162" "\157\170\171\40\143\141\156\40\144\145\143\151\144\145\12\167" "\150\145\164\150\145\162\40\146\165\164\165\162\145\40\166\145" "\162\163\151\157\156\163\40\157\146\40\164\150\145\40\107\116" "\125\40\114\145\163\163\145\162\40\107\145\156\145\162\141\154" "\40\120\165\142\154\151\143\40\114\151\143\145\156\163\145\40" "\163\150\141\154\154\12\141\160\160\154\171\54\40\164\150\141" "\164\40\160\162\157\170\171\47\163\40\160\165\142\154\151\143" "\40\163\164\141\164\145\155\145\156\164\40\157\146\40\141\143" "\143\145\160\164\141\156\143\145\40\157\146\40\141\156\171\40" "\166\145\162\163\151\157\156\40\151\163\12\160\145\162\155\141" "\156\145\156\164\40\141\165\164\150\157\162\151\172\141\164\151" "\157\156\40\146\157\162\40\171\157\165\40\164\157\40\143\150" "\157\157\163\145\40\164\150\141\164\40\166\145\162\163\151\157" "\156\40\146\157\162\40\164\150\145\12\114\151\142\162\141\162" "\171\56\12" }, { "", 0, 0 } }; drumgizmo-0.9.14/plugingui/dialog.cc0000644000076400017500000000267313077713326014341 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * dialog.cc * * Sun Apr 16 10:31:04 CEST 2017 * Copyright 2017 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "dialog.h" namespace GUI { Dialog::Dialog(Widget* parent, bool modal) : parent(parent) { parent->window()->eventHandler()->registerDialog(this); setModal(modal); } Dialog::~Dialog() { parent->window()->eventHandler()->unregisterDialog(this); } void Dialog::setModal(bool modal) { is_modal = modal; } bool Dialog::isModal() const { return is_modal; } } // GUI:: drumgizmo-0.9.14/plugingui/pixelbuffer.h0000644000076400017500000000551613077713327015257 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * pixelbuffer.h * * Thu Nov 10 09:00:37 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "colour.h" #include namespace GUI { class PixelBuffer { public: PixelBuffer(std::size_t width, std::size_t height); ~PixelBuffer(); void realloc(std::size_t width, std::size_t height); void setPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha); unsigned char* buf{nullptr}; std::size_t width{0}; std::size_t height{0}; }; class PixelBufferAlpha { public: PixelBufferAlpha() = default; PixelBufferAlpha(std::size_t width, std::size_t height); ~PixelBufferAlpha(); void realloc(std::size_t width, std::size_t height); void setPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha); void addPixel(std::size_t x, std::size_t y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha); void addPixel(std::size_t x, std::size_t y, const Colour& c); void pixel(std::size_t x, std::size_t y, unsigned char* red, unsigned char* green, unsigned char* blue, unsigned char* alpha) const; bool managed{false}; unsigned char* buf{nullptr}; std::size_t width{0}; std::size_t height{0}; int x{0}; int y{0}; bool dirty{true}; bool visible{true}; // Add optional dirty rect that this pixelbuffer took up since it was last // rendered. Make sure to update this list on resize and/or move. std::size_t last_width{0}; std::size_t last_height{0}; int last_x{0}; int last_y{0}; bool has_last{false}; }; } // GUI:: drumgizmo-0.9.14/plugingui/listboxbasic.cc0000644000076400017500000001565113077713327015571 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listboxbasic.cc * * Thu Apr 4 20:28:10 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "listboxbasic.h" #include "painter.h" #include "font.h" namespace GUI { ListBoxBasic::ListBoxBasic(Widget *parent) : Widget(parent) , scroll(this) { scroll.move(0,0); scroll.resize(16, 100); CONNECT(&scroll, valueChangeNotifier, this, &ListBoxBasic::onScrollBarValueChange); padding = 4; btn_size = 18; selected = -1; marked = -1; } ListBoxBasic::~ListBoxBasic() { } void ListBoxBasic::setSelection(int index) { selected = index; if(marked == -1) { marked = index; } valueChangedNotifier(); } void ListBoxBasic::addItem(const std::string& name, const std::string& value) { std::vector items; ListBoxBasic::Item item; item.name = name; item.value = value; items.push_back(item); addItems(items); } void ListBoxBasic::addItems(const std::vector& newItems) { for(auto& item : newItems) { items.push_back(item); } if(selected == -1) { //setSelection((int)items.size() - 1); setSelection(0); } redraw(); } void ListBoxBasic::clear() { items.clear(); setSelection(-1); marked = -1; scroll.setValue(0); redraw(); } bool ListBoxBasic::selectItem(int index) { if(index < 0 || (index > (int)items.size() - 1)) { return false; } setSelection(index); redraw(); return true; } std::string ListBoxBasic::selectedName() { if(selected < 0 || (selected > (int)items.size() - 1)) { return ""; } return items[selected].name; } std::string ListBoxBasic::selectedValue() { if(selected < 0 || (selected > (int)items.size() - 1)) { return ""; } return items[selected].value; } void ListBoxBasic::clearSelectedValue() { setSelection(-1); } void ListBoxBasic::onScrollBarValueChange(int value) { redraw(); } void ListBoxBasic::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); int w = width(); int h = height(); if((w == 0) || (h == 0)) { return; } p.drawImageStretched(0, 0, bg_img, w, h); p.setColour(Colour(183.0/255.0, 219.0/255.0 , 255.0/255.0, 1)); int yoffset = padding / 2; int skip = scroll.value(); int numitems = height() / (font.textHeight() + padding) + 1; for(int idx = skip; (idx < (int)items.size()) && (idx < (skip + numitems)); idx++) { auto& item = items[idx]; if(idx == selected) { p.setColour(Colour(183.0/255.0, 219.0/255.0 , 255.0/255.0, 0.5)); p.drawFilledRectangle(0, yoffset - (padding / 2), width() - 1, yoffset + (font.textHeight() + 1)); } if(idx == marked) { p.drawRectangle(0, yoffset - (padding / 2), width() - 1, yoffset + (font.textHeight() + 1)); } p.setColour(Colour(183.0/255.0, 219.0/255.0 , 255.0/255.0, 1)); p.drawText(2, yoffset + font.textHeight(), font, item.name); yoffset += font.textHeight() + padding; } scroll.setRange(numitems); scroll.setMaximum(items.size()); } void ListBoxBasic::scrollEvent(ScrollEvent* scrollEvent) { // forward scroll event to scroll bar. scroll.scrollEvent(scrollEvent); } void ListBoxBasic::keyEvent(KeyEvent* keyEvent) { if(keyEvent->direction != Direction::down) { return; } switch(keyEvent->keycode) { case Key::up: if(marked == 0) { return; } marked--; if(marked < scroll.value()) { scroll.setValue(marked); } break; case Key::down: { // Number of items that can be displayed at a time. int numitems = height() / (font.textHeight() + padding); if(marked == ((int)items.size() - 1)) { return; } marked++; if(marked > (scroll.value() + numitems - 1)) { scroll.setValue(marked - numitems + 1); } } break; case Key::home: marked = 0; if(marked < scroll.value()) { scroll.setValue(marked); } break; case Key::end: { // Number of items that can be displayed at a time. int numitems = height() / (font.textHeight() + padding); marked = (int)items.size() - 1; if(marked > (scroll.value() + numitems - 1)) { scroll.setValue(marked - numitems + 1); } } break; case Key::character: if(keyEvent->text == " ") { setSelection(marked); //selectionNotifier(); } break; case Key::enter: setSelection(marked); selectionNotifier(); break; default: break; } redraw(); } void ListBoxBasic::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if((buttonEvent->x > ((int)width() - btn_size)) && (buttonEvent->y < ((int)width() - 1))) { if(buttonEvent->y > 0 && buttonEvent->y < btn_size) { if(buttonEvent->direction == Direction::up) { return; } scroll.setValue(scroll.value() - 1); return; } if(buttonEvent->y > ((int)height() - btn_size) && buttonEvent->y < ((int)height() - 1)) { if(buttonEvent->direction == Direction::up) { return; } scroll.setValue(scroll.value() + 1); return; } } if(buttonEvent->direction == Direction::up) { int skip = scroll.value(); size_t yoffset = padding / 2; for(int idx = skip; idx < (int)items.size(); idx++) { yoffset += font.textHeight() + padding; if(buttonEvent->y < (int)yoffset - (padding / 2)) { setSelection(idx); marked = selected; clickNotifier(); break; } } redraw(); } if(buttonEvent->direction != Direction::up) { int skip = scroll.value(); size_t yoffset = padding / 2; for(int idx = skip; idx < (int)items.size(); idx++) { yoffset += font.textHeight() + padding; if(buttonEvent->y < ((int)yoffset - (padding / 2))) { marked = idx; break; } } redraw(); } if(buttonEvent->doubleClick) { selectionNotifier(); } } void ListBoxBasic::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); scroll.move(width - scroll.width(), 0); scroll.resize(scroll.width(), height); } } // GUI:: drumgizmo-0.9.14/plugingui/mainwindow.cc0000644000076400017500000000526113077713327015253 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * mainwindow.cc * * Sat Nov 26 14:27:29 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "mainwindow.h" #include #include "painter.h" #include namespace GUI { MainWindow::MainWindow(Settings& settings, void* native_window) : Window(native_window) , settings_notifier(settings) , main_tab(this, settings, settings_notifier, config) { config.load(); CONNECT(this, sizeChangeNotifier, this, &MainWindow::sizeChanged); CONNECT(eventHandler(), closeNotifier, this, &MainWindow::closeEventHandler); setCaption("DrumGizmo v" VERSION); tabs.move(16, 0); // x-offset to make room for the left side bar. tabs.addTab("Main", &main_tab); tabs.addTab("About", &about_tab); } MainWindow::~MainWindow() { config.save(); } bool MainWindow::processEvents() { settings_notifier.evaluate(); eventHandler()->processEvents(); if(closing) { closeNotifier(); closing = false; return false; } return true; } void MainWindow::repaintEvent(RepaintEvent* repaintEvent) { if(!visible()) { return; } Painter painter(*this); auto bar_height = tabs.getBarHeight(); // Grey background painter.drawImageStretched(0, 0, back, width(), height()); // Topbar above the sidebars topbar.setSize(16, bar_height); painter.drawImage(0, 0, topbar); painter.drawImage(width() - 16, 0, topbar); // Sidebars sidebar.setSize(16, height() - bar_height + 1); painter.drawImage(0, bar_height-1, sidebar); painter.drawImage(width() - 16, bar_height-1, sidebar); } void MainWindow::sizeChanged(std::size_t width, std::size_t height) { tabs.resize(width - 2 * 16, height); } void MainWindow::closeEventHandler() { closing = true; } } // GUI:: drumgizmo-0.9.14/plugingui/lineedit.cc0000644000076400017500000001175513103211624014660 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * lineedit.cc * * Sun Oct 9 13:01:52 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "lineedit.h" #include #include #define BORDER 10 namespace GUI { LineEdit::LineEdit(Widget *parent) : Widget(parent) { setReadOnly(false); } LineEdit::~LineEdit() { } void LineEdit::setReadOnly(bool ro) { readonly = ro; } bool LineEdit::readOnly() { return readonly; } void LineEdit::setText(const std::string& text) { _text = text; pos = text.size(); visibleText = _text; offsetPos = 0; redraw(); textChanged(); } std::string LineEdit::getText() { return _text; } void LineEdit::buttonEvent(ButtonEvent *buttonEvent) { if(readOnly()) { return; } // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->direction == Direction::down) { for(int i = 0; i < (int)visibleText.length(); ++i) { int textWidth = font.textWidth(visibleText.substr(0, i)); if(buttonEvent->x < (textWidth + BORDER)) { pos = i + offsetPos; break; } } redraw(); } } void LineEdit::keyEvent(KeyEvent *keyEvent) { if(readOnly()) { return; } bool change = false; if(keyEvent->direction == Direction::down) { switch(keyEvent->keycode) { case Key::left: if(pos == 0) { return; } pos--; if(offsetPos >= pos) { walkstate = WalkLeft; } break; case Key::right: if(pos == _text.length()) { return; } pos++; if((pos < _text.length()) && ((offsetPos + visibleText.length()) <= pos)) { walkstate = WalkRight; } break; case Key::home: pos = 0; visibleText = _text; offsetPos = 0; break; case Key::end: pos = _text.length(); visibleText = _text; offsetPos = 0; break; case Key::deleteKey: if(pos < _text.length()) { std::string t = _text.substr(0, pos); t += _text.substr(pos + 1, std::string::npos); _text = t; change = true; } break; case Key::backspace: if(pos > 0) { std::string t = _text.substr(0, pos - 1); t += _text.substr(pos, std::string::npos); _text = t; pos--; change = true; } break; case Key::character: { std::string pre = _text.substr(0, pos); std::string post = _text.substr(pos, std::string::npos); _text = pre + keyEvent->text + post; change = true; pos++; } break; case Key::enter: enterPressedNotifier(); break; default: break; } redraw(); } if(change) { textChanged(); } } void LineEdit::repaintEvent(RepaintEvent *repaintEvent) { Painter p(*this); int w = width(); int h = height(); if((w == 0) || (h == 0)) { return; } box.setSize(w, h); p.drawImage(0, 0, box); p.setColour(Colour(183.0/255.0, 219.0/255.0 , 255.0/255.0, 1)); switch(walkstate) { case WalkLeft: visibleText = _text.substr(pos, std::string::npos); offsetPos = pos; break; case WalkRight: { int delta = (offsetPos < _text.length()) ? 1 : 0; visibleText = _text.substr(offsetPos + delta); offsetPos = offsetPos + delta; } break; case Noop: visibleText = _text; offsetPos = 0; break; } while(true) { int textWidth = font.textWidth(visibleText); if(textWidth <= (w - BORDER - 4 + 3)) { break; } switch(walkstate) { case WalkLeft: visibleText = visibleText.substr(0, visibleText.length() - 1); break; case WalkRight: visibleText = visibleText.substr(0, visibleText.length() - 1); break; case Noop: if(offsetPos < pos) { visibleText = visibleText.substr(1); offsetPos++; } else { visibleText = visibleText.substr(0, visibleText.length() - 1); } break; } } walkstate = Noop; p.drawText(BORDER - 4 + 3, height() / 2 + 5 + 1 + 1 + 1, font, visibleText); if(readOnly()) { return; } if(hasKeyboardFocus()) { size_t px = font.textWidth(visibleText.substr(0, pos - offsetPos)); p.drawLine(px + BORDER - 1 - 4 + 3, 6, px + BORDER - 1 - 4 + 3, height() - 7); } } } // GUI:: drumgizmo-0.9.14/plugingui/knob.cc0000644000076400017500000001205713077713326014030 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * knob.cc * * Thu Feb 28 07:37:27 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "knob.h" #include "painter.h" #include #include // M_PI is not defined in math.h if __STRICT_ANSI__ is defined. #ifdef __STRICT_ANSI__ #undef __STRICT_ANSI__ #endif #include namespace GUI { Knob::Knob(Widget *parent) : Widget(parent) , img_knob(getImageCache(), ":resources/knob.png") { state = up; maximum = 1.0; minimum = 0.0; current_value = 0.0; mouse_offset_x = 0; } void Knob::setValue(float value) { value -= minimum; value /= (maximum - minimum); internalSetValue(value); } void Knob::setRange(float minimum, float maximum) { this->minimum = minimum; this->maximum = maximum; internalSetValue(current_value); } float Knob::value() { return current_value * (maximum - minimum) + minimum; } void Knob::showValue(bool show_value) { this->show_value = show_value; } void Knob::scrollEvent(ScrollEvent* scrollEvent) { float value = (current_value - (scrollEvent->delta / 200.0)); internalSetValue(value); } void Knob::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) { if(state == down) { if(mouse_offset_x == (mouseMoveEvent->x + (-1 * mouseMoveEvent->y))) { return; } float dval = mouse_offset_x - (mouseMoveEvent->x + (-1 * mouseMoveEvent->y)); float value = current_value - (dval / 300.0); internalSetValue(value); mouse_offset_x = mouseMoveEvent->x + (-1 * mouseMoveEvent->y); } } void Knob::keyEvent(KeyEvent* keyEvent) { if(keyEvent->direction != Direction::up) { return; } float value = current_value; switch(keyEvent->keycode) { case Key::up: value += 0.01; break; case Key::down: value -= 0.01; break; case Key::right: value += 0.01; break; case Key::left: value -= 0.01; break; case Key::home: value = 0; break; case Key::end: value = 1; break; default: break; } internalSetValue(value); } void Knob::buttonEvent(ButtonEvent* buttonEvent) { // Ignore everything except left clicks. if(buttonEvent->button != MouseButton::left) { return; } if(buttonEvent->direction == Direction::down) { state = down; mouse_offset_x = buttonEvent->x + (-1 * buttonEvent->y); } if(buttonEvent->direction == Direction::up) { state = up; mouse_offset_x = buttonEvent->x + (-1 * buttonEvent->y); clicked(); } } void Knob::repaintEvent(RepaintEvent* repaintEvent) { int diameter = (width()>height()?height():width()); int radius = diameter / 2; int center_x = width() / 2; int center_y = height() / 2; Painter p(*this); p.clear(); p.drawImageStretched(0, 0, img_knob, diameter, diameter); float range = maximum - minimum; if (show_value) { // Show 0, 1 or 2 decimal point depending on the size of the range char buf[64]; if(range> 100.0f) { sprintf(buf, "%.0f", current_value * range + minimum); } else if(range > 10.0f) { sprintf(buf, "%.1f", current_value * range + minimum); } else { sprintf(buf, "%.2f", current_value * range + minimum); } p.drawText(center_x - font.textWidth(buf) / 2 + 1, center_y + font.textHeight(buf) / 2 + 1, font, buf); } // Make it start from 20% and stop at 80% double padval = current_value * 0.8 + 0.1; double from_x = sin((-1 * padval + 1) * 2 * M_PI) * radius * 0.6; double from_y = cos((-1 * padval + 1) * 2 * M_PI) * radius * 0.6; double to_x = sin((-1 * padval + 1) * 2 * M_PI) * radius * 0.8; double to_y = cos((-1 * padval + 1) * 2 * M_PI) * radius * 0.8; // Draw "fat" line by drawing 9 lines with moved start/ending points. p.setColour(Colour(1, 0, 0, 1)); for(int _x = -1; _x < 2; _x++) { for(int _y = -1; _y < 2; _y++) { p.drawLine(from_x + center_x + _x, from_y + center_y + _y, to_x + center_x + _x, to_y + center_y + _y); } } } void Knob::internalSetValue(float new_value) { if(new_value < 0.0) { new_value = 0.0; } if(new_value > 1.0) { new_value = 1.0; } if(new_value == current_value) { return; } current_value = new_value; valueChangedNotifier(value()); redraw(); } } // GUI:: drumgizmo-0.9.14/plugingui/nativewindow_pugl.h0000644000076400017500000000403213076174173016500 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * nativewindow_pugl.h * * Fri Dec 28 18:45:56 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "nativewindow.h" #include "pugl.h" #include namespace GUI { class Event; class Window; class NativeWindowPugl : public NativeWindow { public: NativeWindowPugl(void* native_window, Window& window); ~NativeWindowPugl(); void init(); void setFixedSize(int width, int height); void resize(int width, int height); void move(int x, int y); void show(); void setCaption(const std::string &caption); void hide(); void handleBuffer(); void redraw(); void grabMouse(bool grab); bool hasEvent(); Event *getNextEvent(); Event *peekNextEvent(); private: Window& window; void* native_window{nullptr}; PuglView* view{nullptr}; std::list eventq; // Internal pugl c-callbacks static void onDisplay(PuglView* view); static void onMouse(PuglView* view, int button, bool press, int x, int y); static void onKeyboard(PuglView* view, bool press, uint32_t key); }; } // GUI:: drumgizmo-0.9.14/plugingui/abouttab.cc0000644000076400017500000000427613077120602014671 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * abouttab.cc * * Fri Apr 21 18:51:13 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "abouttab.h" #include #include "utf8.h" namespace GUI { AboutTab::AboutTab(Widget* parent) : Widget(parent) { text_edit.setText(getAboutText()); text_edit.setReadOnly(true); text_edit.resize(width() - 2*margin, height() - 2*margin); text_edit.move(margin, margin); } void AboutTab::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); text_edit.resize(width - 2*margin, height - 2*margin); } std::string AboutTab::getAboutText() { std::string about_text; // About about_text.append( "=============\n" " About\n" "=============\n" "\n"); about_text.append(about.data()); // Version about_text.append( "\n" "=============\n" " Version\n" "=============\n" "\n"); about_text.append(std::string(VERSION) + "\n"); // Authors about_text.append( "\n" "=============\n" " Authors\n" "=============\n" "\n"); about_text.append(UTF8().toLatin1(authors.data())); // GPL about_text.append( "\n" "=============\n" " License\n" "=============\n" "\n"); about_text.append(gpl.data()); return about_text; } } // GUI:: drumgizmo-0.9.14/plugingui/checkbox.cc0000644000076400017500000000344213077120602014650 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * checkbox.cc * * Sat Nov 26 15:07:44 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "checkbox.h" #include "painter.h" namespace GUI { CheckBox::CheckBox(Widget* parent) : Toggle(parent) , bg_on(getImageCache(), ":resources/switch_back_on.png") , bg_off(getImageCache(), ":resources/switch_back_off.png") , knob(getImageCache(), ":resources/switch_front.png") { } void CheckBox::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.drawImage( 0, (knob.height() - bg_on.height()) / 2, state ? bg_on : bg_off); if(clicked) { p.drawImage((bg_on.width() - knob.width()) / 2 + 1, 0, knob); return; } if(state) { p.drawImage(bg_on.width() - 40 + 2, 0, knob); } else { p.drawImage(0, 0, knob); } } } // GUI:: drumgizmo-0.9.14/plugingui/font.cc0000644000076400017500000000646513077120602014040 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * font.cc * * Sat Nov 12 11:13:41 CET 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "font.h" #include namespace GUI { Font::Font(const std::string& fontfile) : img_font(fontfile) { std::size_t px = 0; std::size_t c; for(c = 0; c < (characters.size() - 1) && px < img_font.width(); ++c) { auto& character = characters[c]; character.offset = px + 1; if(c > 0) { assert(character.offset >= characters[c - 1].offset); characters[c - 1].width = character.offset - characters[c - 1].offset; if(characters[c].offset != characters[c - 1].offset) { --characters[c - 1].width; } } ++px; while(px < img_font.width()) { auto& pixel = img_font.getPixel(px, 0); // Find next purple pixel in top row: if((pixel.red() == 1.0f) && (pixel.green() == 0.0f) && (pixel.blue() == 1.0f) && (pixel.alpha() == 1.0f)) { break; } ++px; } characters[c] = character; } ++c; assert(characters[c].offset >= characters[c - 1].offset); characters[c - 1].width = characters[c].offset - characters[c - 1].offset; if(characters[c].offset != characters[c - 1].offset) { --characters[c - 1].width; } } size_t Font::textWidth(const std::string& text) const { size_t len = 0; for(unsigned char cha : text) { auto& character = characters[cha]; len += character.width + spacing + character.post_bias; } return len; } size_t Font::textHeight(const std::string& text) const { return img_font.height(); } void Font::setLetterSpacing(int letterSpacing) { spacing = letterSpacing; } int Font::letterSpacing() const { return spacing; } PixelBufferAlpha *Font::render(const std::string& text) const { PixelBufferAlpha *pb = new PixelBufferAlpha(textWidth(text), textHeight(text)); int x_offset = 0; for(std::size_t i = 0; i < text.length(); ++i) { unsigned char cha = text[i]; auto& character = characters.at(cha); for(size_t x = 0; x < character.width; ++x) { for(size_t y = 0; y < img_font.height(); ++y) { auto& c = img_font.getPixel(x + character.offset, y); pb->setPixel(x + x_offset + character.pre_bias, y, c.red() * 255, c.green() * 255, c.blue() * 255, c.alpha() * 255); } } x_offset += character.width + spacing + character.post_bias; } return pb; } } // GUI:: drumgizmo-0.9.14/plugingui/resamplingframecontent.h0000644000076400017500000000343513103427335017500 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * resamplingframecontent.h * * Fri May 5 23:43:28 CEST 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" #include "textedit.h" class SettingsNotifier; namespace GUI { class ResamplingframeContent : public Widget { public: ResamplingframeContent(Widget* parent, SettingsNotifier& settings_notifier); // From Widget virtual void resize(std::size_t width, std::size_t height) override; void updateContent(); void updateDrumkitSamplerate(std::size_t drumkit_samplerate); void updateSessionSamplerate(double samplerate); void updateResamplingRecommended(bool resamplig_recommended); private: TextEdit text_field{this}; SettingsNotifier& settings_notifier; std::string drumkit_samplerate; std::string session_samplerate; std::string resamplig_recommended; }; } // GUI:: drumgizmo-0.9.14/plugingui/diskstreamingframecontent.cc0000644000076400017500000000747413077120602020345 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * diskstreamingframecontent.cc * * Fri Mar 24 21:50:07 CET 2017 * Copyright 2017 André Nusser * andre.nusser@googlemail.com ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "diskstreamingframecontent.h" #include #include namespace GUI { DiskstreamingframeContent::DiskstreamingframeContent(Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) : Widget(parent) , slider_width{250} , settings(settings) , settings_notifier(settings_notifier) { label_text.setText("Cache limit (max memory usage):"); label_text.setAlignment(TextAlignment::center); button.setText("Apply"); button.setEnabled(false); label_size.setText("0 MB"); label_size.setAlignment(TextAlignment::center); CONNECT(this, settings_notifier.disk_cache_upper_limit, this, &DiskstreamingframeContent::limitSettingsValueChanged); CONNECT(&slider, valueChangedNotifier, this, &DiskstreamingframeContent::limitValueChanged); CONNECT(&button, clickNotifier, this, &DiskstreamingframeContent::reloadClicked); CONNECT(this, settings_notifier.reload_counter, this, &DiskstreamingframeContent::reloaded); // TODO: // CONNECT(this, settings_notifier.disk_cache_chunk_size, // this, &DGWindow::chunkSettingsValueChanged); // CONNECT(this, settings_notifier.number_of_underruns, // this, &DGWindow::underrunsChanged); } void DiskstreamingframeContent::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); std::size_t slider_button_gap = 10; slider_width = 0.8 * width; button_width = width - slider_width - slider_button_gap; label_text.move(0, 0); slider.move(0, 20); button.move(slider_width + slider_button_gap, 10); label_size.move(0, 40); label_text.resize(slider_width, 15); slider.resize(slider_width, 15); button.resize(button_width, 30); label_size.resize(slider_width, 15); button.setEnabled(false); } void DiskstreamingframeContent::limitSettingsValueChanged(std::size_t value) { float new_slider_value = (float)(value - min_limit)/(max_limit - min_limit); slider.setValue(new_slider_value); if (new_slider_value < 0.99) { int value_in_mb = value/(1024 * 1024); label_size.setText(std::to_string(value_in_mb) + " MB"); slider.setColour(Slider::Colour::Blue); } else { label_size.setText("Unlimited"); slider.setColour(Slider::Colour::Grey); } button.setEnabled(true); } void DiskstreamingframeContent::limitValueChanged(float value) { std::size_t new_limit = value < 0.99 ? value * (max_limit - min_limit) + min_limit : std::numeric_limits::max(); settings.disk_cache_upper_limit.store(new_limit); } void DiskstreamingframeContent::reloadClicked() { settings.reload_counter++; } void DiskstreamingframeContent::reloaded(std::size_t) { button.setEnabled(false); } } // GUI:: drumgizmo-0.9.14/plugingui/tabbutton.cc0000644000076400017500000000522513101315706015064 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * tabbutton.cc * * Thu Nov 24 18:52:26 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "tabbutton.h" #include "painter.h" namespace GUI { TabButton::TabButton(Widget* parent, Widget* tab_widget) : ButtonBase(parent) , tab_widget(tab_widget) { CONNECT(this, clickNotifier, this, &TabButton::clickHandler); } TabButton::~TabButton() { } Widget* TabButton::getTabWidget() { return tab_widget; } std::size_t TabButton::getMinimalWidth() const { std::size_t padding = 15; auto font_width = font.textWidth(text); return font_width + padding; } std::size_t TabButton::getMinimalHeight() const { std::size_t padding = 10; auto font_height= font.textHeight(text); return font_height + padding; } void TabButton::setActive(bool active) { this->active = active; if (active) { draw_state = State::Down; } else { draw_state = State::Up; } redraw(); } void TabButton::repaintEvent(RepaintEvent* e) { Painter p(*this); int padTop = 3; int padLeft = 0; int padTextTop = 3; int w = width(); int h = height(); if(w == 0 || h == 0) { return; } if (draw_state == State::Up && !active) { tab_passive.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, tab_passive); } else { tab_active.setSize(w - padLeft, h - padTop); p.drawImage(padLeft, padTop, tab_active); } auto x = padLeft + (width() - font.textWidth(text)) / 2; auto y = padTop + padTextTop + font.textHeight(text); p.drawText(x, y, font, text, true); } void TabButton::scrollEvent(ScrollEvent* scroll_event) { scrollNotifier(scroll_event->delta); } void TabButton::clickHandler() { switchTabNotifier(tab_widget); } } // GUI:: drumgizmo-0.9.14/plugingui/resource.h0000644000076400017500000000267413076174173014574 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * resource.h * * Sun Mar 17 19:38:03 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include namespace GUI { class Resource { public: Resource(const std::string& name); const char* data(); size_t size(); bool valid(); protected: std::string externalData; bool isValid{false}; bool isInternal{false}; const char *internalData{nullptr}; size_t internalSize{0}; }; } // GUI:: drumgizmo-0.9.14/plugingui/listboxbasic.h0000644000076400017500000000472613077120602015420 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * listboxbasic.h * * Thu Apr 4 20:28:10 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "widget.h" #include "font.h" #include "painter.h" #include "scrollbar.h" namespace GUI { class ListBoxBasic : public Widget { public: class Item { public: std::string name; std::string value; }; ListBoxBasic(Widget *parent); virtual ~ListBoxBasic(); void addItem(const std::string& name, const std::string& value); void addItems(const std::vector& items); void clear(); bool selectItem(int index); std::string selectedName(); std::string selectedValue(); void clearSelectedValue(); Notifier<> selectionNotifier; Notifier<> clickNotifier; Notifier<> valueChangedNotifier; // From Widget: virtual void resize(std::size_t width, std::size_t height) override; protected: void onScrollBarValueChange(int value); // From Widget: bool isFocusable() override { return true; } virtual void repaintEvent(RepaintEvent* repaintEvent) override; virtual void buttonEvent(ButtonEvent* buttonEvent) override; virtual void keyEvent(KeyEvent* keyEvent) override; virtual void scrollEvent(ScrollEvent* scrollEvent) override; ScrollBar scroll; Texture bg_img{getImageCache(), ":resources/widget.png", 7, 7, 1, 63}; void setSelection(int index); std::vector items; int selected; int marked; Font font; int padding; int btn_size; }; } // GUI:: drumgizmo-0.9.14/plugingui/led.h0000644000076400017500000000267113076174173013506 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * led.h * * Sat Oct 15 19:12:33 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "widget.h" namespace GUI { class LED : public Widget { public: typedef enum { Red, Green, Blue, Off } state_t; LED(Widget *parent); void setState(state_t state); protected: // From Widget: void repaintEvent(RepaintEvent* repaintEvent) override; private: state_t state; }; } // GUI:: drumgizmo-0.9.14/plugingui/progressbar.cc0000644000076400017500000000443713077120603015421 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * progressbar.cc * * Fri Mar 22 22:07:57 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "progressbar.h" namespace GUI { ProgressBar::ProgressBar(Widget *parent) : Widget(parent) { } ProgressBar::~ProgressBar() { } void ProgressBar::setState(ProgressBarState state) { if(this->state != state) { this->state = state; redraw(); } } void ProgressBar::setTotal(std::size_t total) { if(this->total != total) { this->total = total; redraw(); } } void ProgressBar::setValue(std::size_t value) { if(this->value != value) { this->value = value; redraw(); } } void ProgressBar::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); float progress = 0.0f; if(total != 0) { progress = (float)value / (float)total; } int brd = 4; int val = (width() - (2 * brd)) * progress; bar_bg.setSize(width(), height()); p.drawImage(0, 0, bar_bg); switch(state) { case ProgressBarState::Red: bar_red.setSize(val, height()); p.drawImage(brd, 0, bar_red); break; case ProgressBarState::Green: bar_green.setSize(val, height()); p.drawImage(brd, 0, bar_green); break; case ProgressBarState::Blue: bar_blue.setSize(val, height()); p.drawImage(brd, 0, bar_blue); break; case ProgressBarState::Off: return; } } } // GUI:: drumgizmo-0.9.14/plugingui/stackedwidget.h0000644000076400017500000000465113101316561015550 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * stackedwidget.h * * Mon Nov 21 19:36:49 CET 2016 * Copyright 2016 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "widget.h" #include "notifier.h" namespace GUI { //! A StackedWidget is a widget containing a list of widgets but only showing //! one of them at a time. //! It is be used to implement a TabWidget but can also be used for other //! purposes. class StackedWidget : public Widget { public: StackedWidget(Widget* parent); ~StackedWidget(); //! Add a widget to the stack. void addWidget(Widget* widget); //! Remove a widget from the stack. void removeWidget(Widget* widget); //! Get currently visible widget. Widget* getCurrentWidget() const; //! Show widget. Hide all the others. //! If widget is not in the stack nothing happens. void setCurrentWidget(Widget* widget); //! Returns a pointer to the Widget after the one referenced by 'widget' or //! nullptr if 'widget' is the last in the list. Widget* getWidgetAfter(Widget* widget); //! Returns a pointer to the Widget beforer the one referenced by 'widget' or //! nullptr if 'widget' is the first in the list. Widget* getWidgetBefore(Widget* widget); //! Reports whn a new widget is shown. Notifier currentChanged; private: //! Callback for Widget::sizeChangeNotifier void sizeChanged(int width, int height); private: Widget* currentWidget{nullptr}; std::list widgets; }; } // GUI:: drumgizmo-0.9.14/plugingui/resource.cc0000644000076400017500000000551013076174172014721 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * resource.cc * * Sun Mar 17 19:38:04 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "resource.h" #include #include // rcgen generated file containing rc_data declaration. #include "resource_data.h" namespace GUI { // Internal resources start with a colon. static bool nameIsInternal(const std::string& name) { return name.size() && (name[0] == ':'); } Resource::Resource(const std::string& name) { if(nameIsInternal(name)) { // Use internal resource: // Find internal resource in rc_data. const rc_data_t* p = rc_data; while(p->name) // last entry in rc_data has the name := "" { if(name == p->name) { internalData = p->data; internalSize = p->size; break; } ++p; } // We did not find the named resource. if(internalData == nullptr) { ERR(rc, "Could not find '%s'\n", name.c_str()); return; } isInternal = true; } else { // Read from file: std::FILE *fp = std::fopen(name.c_str(), "rb"); if(!fp) { return; } // Get the file size std::fseek(fp, 0, SEEK_END); size_t filesize = ftell(fp); // Reserve space in the string for the data. externalData.reserve(filesize); // Rewind and read... std::rewind(fp); char buffer[32]; while(!std::feof(fp)) { size_t size = std::fread(buffer, 1, sizeof(buffer), fp); externalData.append(buffer, size); } std::fclose(fp); isInternal = false; } isValid = true; } const char *Resource::data() { if(isValid == false) { return nullptr; } if(isInternal) { return internalData; } else { return externalData.data(); } } size_t Resource::size() { if(isValid == false) { return 0; } if(isInternal) { return internalSize; } else { return externalData.length(); } } bool Resource::valid() { return isValid; } } // GUI:: drumgizmo-0.9.14/plugingui/label.cc0000644000076400017500000000433413077120602014142 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * label.cc * * Sun Oct 9 13:02:18 CEST 2011 * Copyright 2011 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "label.h" #include "painter.h" #include "guievent.h" #include namespace GUI { Label::Label(Widget *parent) : Widget(parent) { } void Label::setText(const std::string& text) { _text = text; redraw(); } void Label::setAlignment(TextAlignment alignment) { this->alignment = alignment; } void Label::setColour(Colour colour) { this->colour = std::make_unique(colour); } void Label::resetColour() { colour.release(); } void Label::resizeToText() { resize(font.textWidth(_text) + border, font.textHeight()); } void Label::repaintEvent(RepaintEvent* repaintEvent) { Painter p(*this); p.clear(); int offset = 0; switch(alignment) { case TextAlignment::left: offset = border; break; case TextAlignment::center: offset = (width() - font.textWidth(_text)) / 2; break; case TextAlignment::right: offset = width() - font.textWidth(_text) - border; break; } if (colour) { p.setColour(*colour); p.drawText(offset, (height() + font.textHeight()) / 2, font, _text); } else { p.drawText(offset, (height() + font.textHeight()) / 2, font, _text, true); } } } // GUI:: drumgizmo-0.9.14/COPYING0000644000076400017500000001674312676564355011640 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. drumgizmo-0.9.14/drumgizmo/0000755000076400017500000000000013106063421012640 500000000000000drumgizmo-0.9.14/drumgizmo/jackclient.cc0000644000076400017500000000700513077120601015201 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * jackclient.cc * * Sun Jul 20 21:48:44 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "jackclient.h" JackProcess::~JackProcess() { } // -------------------------------------------------------------------- JackPort::JackPort(JackClient& client, const std::string& name, const char* type, JackPortFlags flags) : client{client.client} // register jack port for given client , port{jack_port_register(this->client, name.c_str(), type, flags, 0)} { } JackPort::~JackPort() { if(port != nullptr) { assert(client != nullptr); jack_port_unregister(client, port); } } // -------------------------------------------------------------------- int JackClient::wrapJackProcess(jack_nframes_t nframes, void* arg) { return static_cast(arg)->process(nframes); } void JackClient::latencyCallback(jack_latency_callback_mode_t mode, void* arg) { static_cast(arg)->jackLatencyCallback(mode); } void JackClient::freewheelCallback(int is_freewheeling, void* arg) { static_cast(arg)->jackFreewheelCallback(is_freewheeling); } JackClient::JackClient() : client{nullptr} , processes{} , is_active{false} { jack_status_t status; client = jack_client_open("DrumGizmo", JackNullOption, &status); // Register callbacks jack_set_process_callback(client, JackClient::wrapJackProcess, this); jack_set_latency_callback(client, JackClient::latencyCallback, this); jack_set_freewheel_callback(client, JackClient::freewheelCallback, this); } JackClient::~JackClient() { if(client != nullptr) { jack_client_close(client); } } void JackClient::add(JackProcess& process) { processes.insert(&process); } void JackClient::remove(JackProcess& process) { processes.erase(&process); } void JackClient::activate() { if(!is_active) { jack_activate(client); } is_active = true; } int JackClient::process(jack_nframes_t num_frames) { for(auto& ptr : processes) { ptr->process(num_frames); } return 0; } void JackClient::jackLatencyCallback(jack_latency_callback_mode_t mode) { for(auto& ptr : processes) { ptr->jackLatencyCallback(mode); } } void JackClient::jackFreewheelCallback(bool is_freewheeling) { this->is_freewheeling = is_freewheeling; } std::size_t JackClient::getBufferSize() const { return jack_get_buffer_size(client); } std::size_t JackClient::getSampleRate() const { return jack_get_sample_rate(client); } bool JackClient::isFreewheeling() const { return is_freewheeling; } drumgizmo-0.9.14/drumgizmo/output/0000755000076400017500000000000013106063421014200 500000000000000drumgizmo-0.9.14/drumgizmo/output/wavfile.cc0000644000076400017500000000676413077120602016103 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * wavfile.cc * * Mi 20. Jan 16:57:16 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "wavfile.h" WavfileOutputEngine::WavfileOutputEngine() : AudioOutputEngine{} , info{} , channels{} , file{"output"} , latency{0} { info.samplerate = 44100; info.channels = 1; info.format = SF_FORMAT_WAV | SF_FORMAT_FLOAT; } WavfileOutputEngine::~WavfileOutputEngine() { for(auto& ptr : channels) { if(ptr != nullptr) { sf_close(ptr); } } } bool WavfileOutputEngine::init(const Channels& data) { channels.clear(); channels.resize(data.size()); // value-initialized with null for(auto i = 0u; i < data.size(); ++i) { // write channel to file auto fname = file + data[i].name + "-" + std::to_string(i) + ".wav"; channels[i] = sf_open(fname.c_str(), SFM_WRITE, &info); if(channels[i] == nullptr) { std::cerr << "[WaffileOutputEngine] Failed to initialize " << "channel #" << i << "\n"; return false; } } return true; } void WavfileOutputEngine::setParm(const std::string& parm, const std::string& value) { if(parm == "file") { // apply output filename prefix file = value; } else if(parm == "srate") { // try to apply samplerate try { info.samplerate = std::stoi(value); } catch(...) { std::cerr << "[WavfileOutputEngine] Invalid samplerate " << value << "\n"; } } else { std::cerr << "[WavfileOutputEngine] Unsupported parameter '" << parm << "'\n"; } } bool WavfileOutputEngine::start() { return true; } void WavfileOutputEngine::stop() { } void WavfileOutputEngine::pre(std::size_t nsamples) { } void WavfileOutputEngine::run(int ch, sample_t* samples, std::size_t nsamples) { if(static_cast(ch) >= channels.size()) { std::cerr << "[WavfileOutputEngine] cannot access channel #" << ch << " (" << channels.size() << " channels available)\n"; return; } // Skip the initial 'latency' samples. if(nsamples <= latency) { return; } nsamples -= latency; sf_writef_float(channels[ch], samples + latency, nsamples); } void WavfileOutputEngine::post(std::size_t nsamples) { if(latency > nsamples) { latency -= nsamples; } else { latency = 0; } } std::size_t WavfileOutputEngine::getSamplerate() const { return info.samplerate; } void WavfileOutputEngine::onLatencyChange(std::size_t latency) { this->latency = latency; } bool WavfileOutputEngine::isFreewheeling() const { return true; } drumgizmo-0.9.14/drumgizmo/output/oss.cc0000644000076400017500000001312713103357134015243 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * oss.cc * * Tue Apr 11 19:42:45 CET 2017 * Copyright 2017 Goran Mekić * meka@tilda.center ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "oss.h" #include #include #include #include #include OSSOutputEngine::OSSOutputEngine() : dev{"/dev/dsp"} , num_channels{16} , srate{44100} , format{AFMT_S32_NE} , data{} , max_fragments{4} , fragment_size{8} , buffer_size{1024} { data.clear(); data.resize(1024 * num_channels); } bool OSSOutputEngine::init(const Channels& channels) { std::size_t tmp, mode = O_WRONLY, fragments; num_channels = channels.size(); if((fd = open(dev.data(), mode, 0)) == -1) { std::cerr << dev.data() << ' ' << std::strerror(errno) << std::endl; return false; } fragments = max_fragments << 16 | fragment_size; tmp = fragments; if(ioctl(fd, SNDCTL_DSP_SETFRAGMENT, &tmp) == -1) { std::cerr << "Can not set buffer size: "; std::cerr << std::strerror(errno) << std::endl; return false; } if(tmp != fragments) { std::size_t real_fragment_size = fragments & 0xffff; std::size_t real_max_fragments = (fragments - real_fragment_size) >> 16; std::cerr << "Values corrected to:" << std::endl; std::cerr << " fragment_size: " << real_fragment_size << std::endl; std::cerr << " max_fragments: " << real_max_fragments << std::endl; } audio_buf_info info; if(ioctl(fd, SNDCTL_DSP_GETOSPACE, &info) == -1) { std::cerr << "Can not get buffer info: "; std::cerr << std::strerror(errno) << std::endl; return false; } buffer_size = info.bytes / sizeof(decltype (data)::value_type); tmp = format; if(ioctl(fd, SNDCTL_DSP_SETFMT, &tmp) == -1 || tmp != format) { std::cerr << "Setting audio format failed " << std::strerror(errno); std::cerr << std::endl; return false; } tmp = num_channels; if(ioctl(fd, SNDCTL_DSP_CHANNELS, &tmp) == -1 || tmp != num_channels) { std::cerr << "Can not set number of channels to " << num_channels; std::cerr << ": " << std::strerror(errno) << std::endl; return false; } tmp = srate; if(ioctl(fd, SNDCTL_DSP_SPEED, &tmp) == -1 || tmp != srate) { std::cerr << "Can not set sampling frequency to " << srate << ": "; std::cerr << std::strerror(errno) << std::endl; return false; } return true; } void OSSOutputEngine::setParm(const std::string& parm, const std::string& value) { if(parm == "dev") { dev = value; } else if(parm == "srate") { try { srate = std::stoi(value); } catch(...) { std::cerr << "[OSSOutputEngine] Invalid samplerate "; std::cerr << value << std::endl; } } else if(parm == "max_fragments") { try { max_fragments = std::stoi(value); } catch(...) { std::cerr << "[OSSOutputEngine] Invalid max_fragments "; std::cerr << value << std::endl; } if(max_fragments < 2) { std::cerr << "[OSSoutputEngine] max_fragments must be at least 2\n"; std::cerr << "Setting max_fragments to 2" << std::endl; max_fragments = 2; } } else if(parm == "fragment_size") { try { fragment_size = std::stoi(value); } catch(...) { std::cerr << "[OSSOutputEngine] Invalid fragment_size "; std::cerr << value << std::endl; } if(fragment_size < 4) { fragment_size = 4; std::cerr << "[OSSoutputEngine] fragment_size must be at least "; std::cerr << fragment_size << std::endl; std::cerr << "Setting fragment_size to "; std::cerr << fragment_size << std::endl; } else if(fragment_size > 0xffff) { fragment_size = 0xffff; std::cerr << "[OSSoutputEngine] fragment_size must be at most "; std::cerr << fragment_size << std::endl; std::cerr << "Setting fragment_size to "; std::cerr << fragment_size << std::endl; } } else { std::cerr << "[OSSOutputEngine] Unsupported parameter '"; std::cerr << parm << std::endl; } } void OSSOutputEngine::pre(size_t nsamples) { data.resize(nsamples * num_channels); } void OSSOutputEngine::run(int ch, sample_t* samples, size_t nsamples) { // Convert to int format and // write channel data in interleaved buffer std::int32_t sample; for(size_t i = 0; i < nsamples; ++i) { // Hard clip if needed if(samples[i] > 1) { sample = INT32_MAX; } else if(samples[i] < -1) { sample = -INT32_MAX; } else { sample = samples[i] * INT32_MAX; } data[i * num_channels + ch] = sample; } } void OSSOutputEngine::post(size_t nsamples) { auto data_size = data.size() * sizeof(*data.data()); auto size_written = write(fd, data.data(), data_size); if(size_written != data_size) { std::cerr << "Audio write: " << std::strerror(errno) << std::endl; } } std::size_t OSSOutputEngine::getBufferSize() const { return buffer_size; } std::size_t OSSOutputEngine::getSamplerate() const { return srate; } drumgizmo-0.9.14/drumgizmo/output/alsa.cc0000644000076400017500000001125613077120601015355 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * alsa.cc * * Do 21. Jan 16:48:32 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "alsa.h" int const BUFFER_SIZE = 40960; struct AlsaInitError { int const code; const std::string msg; AlsaInitError(int op_code, const std::string& msg) : code{op_code} , msg{msg} { } static inline void test(int code, const std::string& msg) { if(code < 0) { throw AlsaInitError(code, msg); } } }; AlsaOutputEngine::AlsaOutputEngine() : handle{nullptr} , params{nullptr} , data{} , num_channels{0u} , dev{"default"} , srate{44100} , frames{32} { } AlsaOutputEngine::~AlsaOutputEngine() { // note: do NOT release `params`, it was allocated by `alloca()` if(handle != nullptr) { snd_pcm_close(handle); } } bool AlsaOutputEngine::init(const Channels& channels) { // try to initialize alsa try { int value = snd_pcm_open(&handle, dev.c_str(), SND_PCM_STREAM_PLAYBACK, 0); AlsaInitError::test(value, "snd_pcm_open"); num_channels = channels.size(); if(handle == nullptr) { std::cerr << "[AlsaOutputEngine] Failed to acquire " << "hardware handle\n"; return false; } // Allocate and init a hardware parameters object snd_pcm_hw_params_alloca(¶ms); value = snd_pcm_hw_params_any(handle, params); AlsaInitError::test(value, "snd_pcm_hw_params_any"); value = snd_pcm_hw_params_set_access( handle, params, SND_PCM_ACCESS_RW_INTERLEAVED); AlsaInitError::test(value, "snd_pcm_hw_params_set_access"); value = snd_pcm_hw_params_set_format(handle, params, SND_PCM_FORMAT_FLOAT); AlsaInitError::test(value, "snd_pcm_hw_params_set_format"); value = snd_pcm_hw_params_set_channels(handle, params, num_channels); AlsaInitError::test(value, "snd_pcm_hw_params_set_channels"); value = snd_pcm_hw_params_set_rate_near(handle, params, &srate, 0); AlsaInitError::test(value, "snd_pcm_hw_params_set_rate_near"); value = snd_pcm_hw_params_set_period_size_near(handle, params, &frames, 0); AlsaInitError::test(value, "snd_pcm_hw_params_set_period_size_near"); value = snd_pcm_hw_params(handle, params); AlsaInitError::test(value, "snd_pcm_hw_params"); } catch(AlsaInitError const& error) { std::cerr << "[AlsaOutputEngine] " << error.msg << " failed: " << snd_strerror(error.code) << std::endl; return false; } data.clear(); data.resize(BUFFER_SIZE * num_channels); return true; } void AlsaOutputEngine::setParm(const std::string& parm, const std::string& value) { if(parm == "dev") { // apply hardware device name dev = value; } else if(parm == "frames") { // try to apply hardware buffer size try { frames = std::stoi(value); } catch(...) { std::cerr << "[AlsaOutputEngine] Invalid buffer size " << value << "\n"; } } else if(parm == "srate") { try { srate = std::stoi(value); } catch(...) { std::cerr << "[AlsaOutputEngine] Invalid samplerate " << value << "\n"; } } else { std::cerr << "[AlsaOutputEngine] Unsupported parameter '" << parm << "'\n"; } } bool AlsaOutputEngine::start() { return true; } void AlsaOutputEngine::stop() { } void AlsaOutputEngine::pre(size_t nsamples) { } void AlsaOutputEngine::run(int ch, sample_t* samples, size_t nsamples) { // Write channel data in interleaved buffer for(auto i = 0u; i < nsamples; ++i) { data[i * num_channels + ch] = samples[i]; } } void AlsaOutputEngine::post(size_t nsamples) { // Write the interleaved buffer to the soundcard snd_pcm_writei(handle, data.data(), nsamples); } size_t AlsaOutputEngine::getSamplerate() const { return srate; } bool AlsaOutputEngine::isFreewheeling() const { return false; } drumgizmo-0.9.14/drumgizmo/output/jackaudio.h0000644000076400017500000000445613077120601016235 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * jackaudio.h * * Fr 22. Jan 09:43:30 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include "audiooutputengine.h" #include "../jackclient.h" class JackAudioOutputEngine : public AudioOutputEngine , public JackProcess { public: JackAudioOutputEngine(JackClient& client); ~JackAudioOutputEngine(); // based on AudioOutputEngine bool init(const Channels& chan) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre(size_t nsamples) override; void run(int ch, sample_t* samples, size_t nsamples) override; void post(size_t nsamples) override; size_t getBufferSize() const override; size_t getSamplerate() const override; bool isFreewheeling() const override; void onLatencyChange(std::size_t latency) override; // based on JackProcess void process(jack_nframes_t num_frames) override; void jackLatencyCallback(jack_latency_callback_mode_t mode) override; private: struct Channel { JackPort port; std::vector samples; Channel(JackClient& client, const std::string& name, std::size_t buffer_size); }; JackClient& client; std::vector channels; Semaphore sema; std::size_t latency{0}; }; drumgizmo-0.9.14/drumgizmo/output/outputdummy.h0000644000076400017500000000321613077120602016711 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * outputdummy.h * * Fr 22. Jan 08:15:04 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "audiooutputengine.h" class DummyOutputEngine : public AudioOutputEngine { public: DummyOutputEngine(); ~DummyOutputEngine(); // based on AudioOutputEngine bool init(const Channels& chan) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre(size_t nsamples) override; void run(int ch, sample_t* samples, size_t nsamples) override; void post(size_t nsamples) override; bool isFreewheeling() const override; }; drumgizmo-0.9.14/drumgizmo/output/wavfile.h0000644000076400017500000000366413077120602015741 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * wavfile.h * * Mi 20. Jan 16:57:16 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include "audiooutputengine.h" class WavfileOutputEngine : public AudioOutputEngine { public: WavfileOutputEngine(); ~WavfileOutputEngine(); // based on AudioOutputEngine bool init(const Channels& data) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre(std::size_t nsamples) override; void run(int ch, sample_t* samples, std::size_t nsamples) override; void post(std::size_t nsamples) override; std::size_t getSamplerate() const override; void onLatencyChange(std::size_t latency) override; bool isFreewheeling() const override; private: SF_INFO info; std::vector channels; std::string file; std::size_t latency; }; drumgizmo-0.9.14/drumgizmo/output/jackaudio.cc0000644000076400017500000001077613077120601016375 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * jackaudio.cc * * Fr 22. Jan 09:43:30 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include "jackaudio.h" JackAudioOutputEngine::JackAudioOutputEngine(JackClient& client) : AudioOutputEngine{} , client(client) , channels{} , latency{0} { client.add(*this); } JackAudioOutputEngine::~JackAudioOutputEngine() { client.remove(*this); } bool JackAudioOutputEngine::init(const Channels& data) { channels.clear(); channels.reserve(data.size()); auto i = 0u; auto const buffer_size = getBufferSize(); for(auto const& elem : data) { auto name = std::to_string(i) + "-" + elem.name; // initialize new channel channels.emplace_back(client, name, buffer_size); if(channels.back().port.port == nullptr) { std::cerr << "[JackAudioOutputEngine] Cannot create jack " << "port for channel #" << i << "\n"; return false; } ++i; } return true; } void JackAudioOutputEngine::setParm(const std::string& parm, const std::string& value) { } bool JackAudioOutputEngine::start() { client.activate(); return true; } void JackAudioOutputEngine::stop() { } void JackAudioOutputEngine::pre(size_t nsamples) { // Clear all channels for(auto& channel : channels) { assert(channel.samples.size() == nsamples); std::memset(channel.samples.data(), 0, nsamples * sizeof(sample_t)); } } void JackAudioOutputEngine::run(int ch, sample_t* samples, size_t nsamples) { for(auto i = 0u; i < nsamples; ++i) { channels[ch].samples[i] = samples[i]; } } void JackAudioOutputEngine::post(size_t nsamples) { sema.wait(); } void JackAudioOutputEngine::process(jack_nframes_t num_frames) { assert(num_frames == getBufferSize()); for(auto& channel : channels) { auto ptr = static_cast(jack_port_get_buffer(channel.port.port, num_frames)); for(auto i = 0u; i < num_frames; ++i) { ptr[i] = channel.samples[i]; } } sema.post(); } size_t JackAudioOutputEngine::getBufferSize() const { return client.getBufferSize(); } size_t JackAudioOutputEngine::getSamplerate() const { return client.getSampleRate(); } bool JackAudioOutputEngine::isFreewheeling() const { return client.isFreewheeling(); } void JackAudioOutputEngine::onLatencyChange(std::size_t latency) { this->latency = latency; } JackAudioOutputEngine::Channel::Channel(JackClient& client, const std::string& name, std::size_t buffer_size) : port{client, name, JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput} , samples{} { samples.resize(buffer_size); } void JackAudioOutputEngine::jackLatencyCallback(jack_latency_callback_mode_t mode) { jack_latency_range_t range; switch(mode) { case JackCaptureLatency: // We do not have any audio input ports. Use this for when we do... // jack_port_get_latency_range(port_feeding_input_port, // JackPlaybackLatency, // &range); // range.min += 0; // range.max += 0; // jack_port_set_latency_range(input_port, JackPlaybackLatency, &range); break; case JackPlaybackLatency: for(auto& channel : channels) { jack_port_get_latency_range(channel.port.port, JackPlaybackLatency, &range); range.min += latency; range.max += latency; jack_port_set_latency_range(channel.port.port, JackPlaybackLatency, &range); } break; } } drumgizmo-0.9.14/drumgizmo/output/oss.h0000644000076400017500000000363713103165161015107 00000000000000/* -*- Mode: c++ -*- */ /*************************************************************************** * oss.h * * Tue Apr 11 19:42:45 CET 2017 * Copyright 2017 Goran Mekić * meka@tilda.center ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include "audiooutputengine.h" class OSSOutputEngine : public AudioOutputEngine { public: OSSOutputEngine(); ~OSSOutputEngine() {}; // based on AudioOutputEngine bool init(const Channels& chan) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override { return true; }; void stop() override {}; void pre(size_t nsamples) override; void run(int ch, sample_t* samples, size_t nsamples) override; void post(size_t nsamples) override; bool isFreewheeling() const override { return false; }; std::size_t getBufferSize() const override; std::size_t getSamplerate() const override; private: std::string dev; int fd; std::size_t num_channels; unsigned int srate; unsigned int format; std::size_t max_fragments; std::size_t fragment_size; std::size_t buffer_size; std::vector data; }; drumgizmo-0.9.14/drumgizmo/output/alsa.h0000644000076400017500000000374013077120601015216 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * alsa.h * * Do 21. Jan 16:48:32 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once // Use the newer ALSA API #define ALSA_PCM_NEW_HW_PARAMS_API #include #include #include "audiooutputengine.h" class AlsaOutputEngine : public AudioOutputEngine { public: AlsaOutputEngine(); ~AlsaOutputEngine(); // based on AudioOutputEngine bool init(const Channels& chan) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre(size_t nsamples) override; void run(int ch, sample_t* samples, size_t nsamples) override; void post(size_t nsamples) override; size_t getSamplerate() const override; bool isFreewheeling() const override; private: snd_pcm_t* handle; snd_pcm_hw_params_t* params; std::vector data; size_t num_channels; std::string dev; unsigned int srate; // samplerate snd_pcm_uframes_t frames; }; drumgizmo-0.9.14/drumgizmo/output/outputdummy.cc0000644000076400017500000000333013077120602017044 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * outputdummy.cc * * Fr 22. Jan 08:15:04 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "outputdummy.h" DummyOutputEngine::DummyOutputEngine() { } DummyOutputEngine::~DummyOutputEngine() { } bool DummyOutputEngine::init(const Channels& data) { return true; } void DummyOutputEngine::setParm(const std::string& parm, const std::string& value) { } bool DummyOutputEngine::start() { return true; } void DummyOutputEngine::stop() { } void DummyOutputEngine::pre(size_t nsamples) { } void DummyOutputEngine::run(int ch, sample_t* samples, size_t nsamples) { } void DummyOutputEngine::post(size_t nsamples) { } bool DummyOutputEngine::isFreewheeling() const { return true; } drumgizmo-0.9.14/drumgizmo/enginefactory.h0000644000076400017500000000614613077120601015576 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * enginefactory.h * * Mi 20. Jan 10:46:07 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "audioinputengine.h" #include "audiooutputengine.h" #if defined(HAVE_INPUT_JACKMIDI) || defined(HAVE_OUTPUT_JACKAUDIO) #define USE_JACK #include "jackclient.h" #endif #ifdef HAVE_INPUT_DUMMY #include "input/inputdummy.h" #endif #ifdef HAVE_INPUT_TEST #include "input/test.h" #endif #ifdef HAVE_INPUT_MIDIFILE #include "input/midifile.h" #endif #ifdef HAVE_INPUT_JACKMIDI #include "input/jackmidi.h" #endif #ifdef HAVE_OUTPUT_DUMMY #include "output/outputdummy.h" #endif #ifdef HAVE_OUTPUT_WAVFILE #include "output/wavfile.h" #endif #ifdef HAVE_OUTPUT_ALSA #include "output/alsa.h" #endif #ifdef HAVE_OUTPUT_JACKAUDIO #include "output/jackaudio.h" #endif #ifdef HAVE_OUTPUT_OSS #include "output/oss.h" #endif //! Factory for various input- and output engines class EngineFactory { public: //! Initialized lists of available engines (depending on enabled settings) EngineFactory(); //! Query list of available input engines' names //! \return const reference to the list const std::list& getInputEngines() const; //! Query list of available output engines' names //! \return const reference to the list const std::list& getOutputEngines() const; //! Create input engine by name //! \param name Name of the input engine that should be initialized //! \return unique_ptr to input engine or nullptr if engine is not supported std::unique_ptr createInput(const std::string& name); //! Create input engine by name //! \param name Name of the output engine that should be initialized //! \return unique_ptr to input engine or nullptr if engine is not supported std::unique_ptr createOutput(const std::string& name); protected: std::list input, output; // available engines #ifdef USE_JACK // Client that is used by all jack-related engines std::unique_ptr jack; // Utility to initialize jack (once) void prepareJack(); #endif }; drumgizmo-0.9.14/drumgizmo/drumgizmoc.h0000644000076400017500000000221212704421441015111 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmoc.h * * Mon Jan 12 00:36:37 CET 2015 * Copyright 2015 Sergey 'Jin' Bostandzhyan * jin@mediatomb.cc ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once drumgizmo-0.9.14/drumgizmo/Makefile.am0000644000076400017500000000452613077201021014620 00000000000000DISTDIRS = input output if ENABLE_CLI bin_PROGRAMS = drumgizmo drumgizmo_LDADD = $(JACK_LIBS) $(top_srcdir)/src/libdg.la drumgizmo_LDFLAGS = drumgizmo_CXXFLAGS = \ -I$(top_srcdir)/include -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin -DWITH_HUG_MUTEX -DWITH_HUG_FILTER \ $(JACK_CFLAGS) $(SSEFLAGS) drumgizmo_CFLAGS = -DWITH_HUG_MUTEX -DWITH_HUG_FILTER drumgizmo_SOURCES = \ drumgizmoc.cc \ enginefactory.cc \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/hugin/hugin_filter.c if HAVE_INPUT_DUMMY drumgizmo_SOURCES += input/inputdummy.cc drumgizmo_CXXFLAGS += -DHAVE_INPUT_DUMMY endif # HAVE_INPUT_DUMMY if HAVE_INPUT_TEST drumgizmo_SOURCES += input/test.cc drumgizmo_CXXFLAGS += -DHAVE_INPUT_TEST endif # HAVE_INPUT_TEST if HAVE_INPUT_MIDIFILE drumgizmo_CXXFLAGS += $(SMF_CFLAGS) drumgizmo_LDADD += $(SMF_LIBS) drumgizmo_SOURCES += input/midifile.cc drumgizmo_CXXFLAGS += -DHAVE_INPUT_MIDIFILE endif # HAVE_INPUT_MIDIFILE if HAVE_INPUT_JACKMIDI drumgizmo_SOURCES += input/jackmidi.cc drumgizmo_CXXFLAGS += -DHAVE_INPUT_JACKMIDI endif # HAVE_INPUT_JACKMIDI if HAVE_OUTPUT_DUMMY drumgizmo_SOURCES += output/outputdummy.cc drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_DUMMY endif # HAVE_OUTPUT_DUMMY if HAVE_OUTPUT_WAVFILE drumgizmo_SOURCES += output/wavfile.cc drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_WAVFILE endif # HAVE_OUTPUT_WAVFILE if HAVE_OUTPUT_ALSA drumgizmo_CXXFLAGS += $(ALSA_CFLAGS) drumgizmo_LDFLAGS += $(ALSA_LIBS) drumgizmo_SOURCES += output/alsa.cc drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_ALSA endif # HAVE_OUTPUT_ALSA if HAVE_OUTPUT_JACKAUDIO drumgizmo_CXXFLAGS += $(JACK_CFLAGS) drumgizmo_LDFLAGS += $(JACK_LIBS) drumgizmo_SOURCES += output/jackaudio.cc drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_JACKAUDIO endif # HAVE_OUTPUT_JACKAUDIO if HAVE_OUTPUT_OSS drumgizmo_SOURCES += output/oss.cc drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_OSS endif # HAVE_OUTPUT_OSS # Only compile jackclient.cc if at least one of the jack modules are included. if HAVE_OUTPUT_JACKAUDIO drumgizmo_SOURCES += jackclient.cc else if HAVE_INPUT_JACKMIDI drumgizmo_SOURCES += jackclient.cc endif # HAVE_INPUT_JACKMIDI endif # HAVE_OUTPUT_JACKAUDIO EXTRA_DIST = \ drumgizmoc.h \ jackclient.h \ enginefactory.h \ input/inputdummy.h \ input/test.h \ input/jackmidi.h \ input/midifile.h \ output/alsa.h \ output/jackaudio.h \ output/outputdummy.h \ output/oss.h \ output/wavfile.h endif # ENABLE_CLI drumgizmo-0.9.14/drumgizmo/input/0000755000076400017500000000000013106063421013777 500000000000000drumgizmo-0.9.14/drumgizmo/input/inputdummy.h0000644000076400017500000000317513077120601016312 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * inputdummy.h * * Fr 22. Jan 08:14:58 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include class DummyInputEngine : public AudioInputEngine { public: DummyInputEngine(); ~DummyInputEngine(); // based on AudioInputEngine bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre() override; void run(size_t pos, size_t len, std::vector& events) override; void post() override; bool isFreewheeling() const override; }; drumgizmo-0.9.14/drumgizmo/input/test.cc0000644000076400017500000000504613077120601015213 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * test.cc * * Sun Apr 3 13:21:26 CEST 2016 * Copyright 2016 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include "event.h" #include "test.h" TestInputEngine::TestInputEngine() : AudioInputEngine{} , probability{0.1} , instrument{-1} , length{-1} , sample_rate{44100.0} { } TestInputEngine::~TestInputEngine() { } bool TestInputEngine::init(const Instruments& instruments) { return true; } void TestInputEngine::setParm(const std::string& parm, const std::string& value) { if(parm == "p") { probability = atof(value.c_str()); } if(parm == "instr") { instrument = atoi(value.c_str()); } if(parm == "len") { length = atoi(value.c_str()); } } bool TestInputEngine::start() { return true; } void TestInputEngine::stop() { } void TestInputEngine::pre() { } void TestInputEngine::run(size_t pos, size_t len, std::vector& events) { if((float)rand() / (float)RAND_MAX > probability) { return; } events.emplace_back(); auto& event = events.back(); event.type = TYPE_ONSET; if((length != -1) && (pos > (size_t)(length * sample_rate))) { event.type = TYPE_STOP; } else { event.type = TYPE_ONSET; } if(instrument != -1) { event.instrument = instrument; } else { event.instrument = rand() % 32; } event.velocity = (float)rand()/(float)RAND_MAX; event.offset = len; } void TestInputEngine::post() { } void TestInputEngine::setSampleRate(double sample_rate) { this->sample_rate = sample_rate; } bool TestInputEngine::isFreewheeling() const { return true; } drumgizmo-0.9.14/drumgizmo/input/jackmidi.cc0000644000076400017500000000673113106047433016015 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * jackmidi.cc * * Mo 25. Jan 11:26:06 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include "cpp11fix.h" // required for c++11 #include "jackmidi.h" static int const NOTE_ON = 0x90; static int const NOTE_MASK = 0xF0; JackMidiInputEngine::JackMidiInputEngine(JackClient& client) : AudioInputEngineMidi{} , JackProcess{} , client(client) , port{nullptr} , pos{0u} , events{} { client.add(*this); } JackMidiInputEngine::~JackMidiInputEngine() { client.remove(*this); } bool JackMidiInputEngine::init(const Instruments& instruments) { if(!loadMidiMap(midimap_file, instruments)) { std::cerr << "[MidifileInputEngine] Failed to parse midimap '" << midimap_file << "'\n"; return false; } port = std::make_unique(client, "drumgizmo_midiin", JACK_DEFAULT_MIDI_TYPE, JackPortIsInput); return true; } void JackMidiInputEngine::setParm(const std::string& parm, const std::string& value) { if(parm == "midimap") { // apply midimap filename midimap_file = value; } else { std::cerr << "[JackMidiInputEngine] Unsupported parameter '" << parm << "'\n"; } } bool JackMidiInputEngine::start() { client.activate(); return true; } void JackMidiInputEngine::stop() { } void JackMidiInputEngine::pre() { } void JackMidiInputEngine::run(size_t pos, size_t len, std::vector& events) { assert(events.empty()); std::swap(events, this->events); } void JackMidiInputEngine::post() { } bool JackMidiInputEngine::isFreewheeling() const { return client.isFreewheeling(); } void JackMidiInputEngine::process(jack_nframes_t num_frames) { assert(port != nullptr); void* buffer = jack_port_get_buffer(port->port, num_frames); jack_nframes_t num_events = jack_midi_get_event_count(buffer); assert(events.empty()); events.reserve(num_events); for(jack_nframes_t i = 0; i < num_events; ++i) { jack_midi_event_t event; jack_midi_event_get(&event, buffer, i); if(event.size != 3) { continue; } if((event.buffer[0] & NOTE_MASK) != NOTE_ON) { continue; } int key = event.buffer[1]; int velocity = event.buffer[2]; printf("Event key:%d vel:%d\n", key, velocity); int k = mmap.lookup(key); if(k != -1 && velocity) { events.push_back({TYPE_ONSET, (size_t)k, event.time, velocity / 127.f}); } } jack_midi_clear_buffer(buffer); pos += num_frames; } drumgizmo-0.9.14/drumgizmo/input/test.h0000644000076400017500000000343713077120601015057 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * test.h * * Sun Apr 3 11:27:25 CEST 2016 * Copyright 2016 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include "event.h" #include "audioinputengine.h" class TestInputEngine : public AudioInputEngine { public: TestInputEngine(); ~TestInputEngine(); // based on AudioInputEngine bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre() override; void run(size_t pos, size_t len, std::vector& events) override; void post() override; void setSampleRate(double sample_rate) override; bool isFreewheeling() const override; private: float probability; int instrument; int length; double sample_rate; }; drumgizmo-0.9.14/drumgizmo/input/inputdummy.cc0000644000076400017500000000330013077120601016436 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * inputdummy.cc * * Fr 22. Jan 08:14:58 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "inputdummy.h" DummyInputEngine::DummyInputEngine() { } DummyInputEngine::~DummyInputEngine() { } bool DummyInputEngine::init(const Instruments& instruments) { return true; } void DummyInputEngine::setParm(const std::string& parm, const std::string& value) { } bool DummyInputEngine::start() { return true; } void DummyInputEngine::stop() { } void DummyInputEngine::pre() { } void DummyInputEngine::run(size_t pos, size_t len, std::vector& events) { } void DummyInputEngine::post() { } bool DummyInputEngine::isFreewheeling() const { return true; } drumgizmo-0.9.14/drumgizmo/input/jackmidi.h0000644000076400017500000000404413077120601015646 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * jackmidi.h * * Mo 25. Jan 11:26:06 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "audioinputenginemidi.h" #include "midimapper.h" #include "midimapparser.h" #include "../jackclient.h" class JackMidiInputEngine : public AudioInputEngineMidi , public JackProcess { public: JackMidiInputEngine(JackClient& client); ~JackMidiInputEngine(); // based on AudioInputEngineMidi bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre() override; void run(size_t pos, size_t len, std::vector& events) override; void post() override; bool isFreewheeling() const override; // based on JackProcess void process(jack_nframes_t num_frames) override; private: JackClient& client; std::unique_ptr port; std::string midimap_file; std::size_t pos; std::vector events; }; drumgizmo-0.9.14/drumgizmo/input/midifile.cc0000644000076400017500000001056613106047433016025 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * midifile.cc * * Mi 20. Jan 16:07:57 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include "midifile.h" static int const NOTE_ON = 0x90; static int const NOTE_MASK = 0xF0; MidifileInputEngine::MidifileInputEngine() : AudioInputEngineMidi{} , smf{nullptr} , current_event{nullptr} , file{} , speed{1.f} , track{-1} // all tracks , loop{false} , offset{0.0} , samplerate{44100.0} { } MidifileInputEngine::~MidifileInputEngine() { if(smf != nullptr) { smf_delete(smf); } } bool MidifileInputEngine::init(const Instruments& instruments) { if(file == "") { std::cerr << "[MidifileInputEngine] Missing midi filename\n"; return false; } if(midimap_file == "") { std::cerr << "[MidifileInputEngine] Missing midimap filename\n"; return false; } smf = smf_load(file.c_str()); if(smf == nullptr) { std::cerr << "[MidifileInputEngine] Failed to load midifile '" << file << "'\n"; return false; } if(!loadMidiMap(midimap_file, instruments)) { std::cerr << "[MidifileInputEngine] Failed to parse midimap '" << midimap_file << "'\n"; return false; } return true; } void MidifileInputEngine::setParm(const std::string& parm, const std::string& value) { if(parm == "file") { // apply midi input filename file = value; } else if(parm == "speed") { // try to apply speed try { speed = std::stof(value); } catch(...) { std::cerr << "[MidifileInputEngine] Invalid speed " << value << "\n"; } } else if(parm == "midimap") { // apply midimap filename midimap_file = value; } else if(parm == "loop") { // apply looping loop = true; } else { std::cerr << "[MidifileInputEngine] Unsupported parameter '" << parm << "'\n"; } } bool MidifileInputEngine::start() { return true; } void MidifileInputEngine::stop() { } void MidifileInputEngine::pre() { } void MidifileInputEngine::run(size_t pos, size_t len, std::vector& events) { assert(events.empty()); double current_max_time = (1.0 + pos + len) / (samplerate / speed); current_max_time -= offset; if(!current_event) { current_event = smf_get_next_event(smf); } while(current_event && current_event->time_seconds < current_max_time) { if(!smf_event_is_metadata(current_event)) { if((current_event->midi_buffer_length == 3) && ((current_event->midi_buffer[0] & NOTE_MASK) == NOTE_ON) && (track == -1 || current_event->track_number == track) && current_event->midi_buffer[2] > 0) { int key = current_event->midi_buffer[1]; int velocity = current_event->midi_buffer[2]; events.emplace_back(); auto& event = events.back(); event.type = TYPE_ONSET; size_t evpos = current_event->time_seconds * (samplerate / speed); event.offset = evpos - pos; int i = mmap.lookup(key); if(i != -1) { event.instrument = i; event.velocity = velocity / 127.0; } } } current_event = smf_get_next_event(smf); } if(!current_event) { if(loop) { smf_rewind(smf); offset += current_max_time; } else { assert(len >= 1); events.push_back({TYPE_STOP, 0, len-1, 0.f}); } } } void MidifileInputEngine::post() { } void MidifileInputEngine::setSampleRate(double sample_rate) { this->samplerate = sample_rate; } bool MidifileInputEngine::isFreewheeling() const { return true; } drumgizmo-0.9.14/drumgizmo/input/midifile.h0000644000076400017500000000372213077120601015657 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * minifile.h * * Mi 20. Jan 16:07:57 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include "audioinputenginemidi.h" #include "midimapper.h" #include "midimapparser.h" class MidifileInputEngine : public AudioInputEngineMidi { public: MidifileInputEngine(); ~MidifileInputEngine(); // based on AudioInputEngineMidi bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; void pre() override; void run(size_t pos, size_t len, std::vector& events) override; void post() override; void setSampleRate(double sample_rate) override; bool isFreewheeling() const override; private: smf_t* smf; smf_event_t* current_event; std::string midimap_file; std::string file; float speed; int track; bool loop; double offset, samplerate; }; drumgizmo-0.9.14/drumgizmo/Makefile.in0000644000076400017500000015765513106051610014645 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@ @ENABLE_CLI_TRUE@bin_PROGRAMS = drumgizmo$(EXEEXT) @ENABLE_CLI_TRUE@@HAVE_INPUT_DUMMY_TRUE@am__append_1 = input/inputdummy.cc @ENABLE_CLI_TRUE@@HAVE_INPUT_DUMMY_TRUE@am__append_2 = -DHAVE_INPUT_DUMMY @ENABLE_CLI_TRUE@@HAVE_INPUT_TEST_TRUE@am__append_3 = input/test.cc @ENABLE_CLI_TRUE@@HAVE_INPUT_TEST_TRUE@am__append_4 = -DHAVE_INPUT_TEST @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@am__append_5 = \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ $(SMF_CFLAGS) \ @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@ -DHAVE_INPUT_MIDIFILE @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@am__append_6 = $(SMF_LIBS) @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@am__append_7 = input/midifile.cc @ENABLE_CLI_TRUE@@HAVE_INPUT_JACKMIDI_TRUE@am__append_8 = input/jackmidi.cc @ENABLE_CLI_TRUE@@HAVE_INPUT_JACKMIDI_TRUE@am__append_9 = -DHAVE_INPUT_JACKMIDI @ENABLE_CLI_TRUE@@HAVE_OUTPUT_DUMMY_TRUE@am__append_10 = output/outputdummy.cc @ENABLE_CLI_TRUE@@HAVE_OUTPUT_DUMMY_TRUE@am__append_11 = -DHAVE_OUTPUT_DUMMY @ENABLE_CLI_TRUE@@HAVE_OUTPUT_WAVFILE_TRUE@am__append_12 = output/wavfile.cc @ENABLE_CLI_TRUE@@HAVE_OUTPUT_WAVFILE_TRUE@am__append_13 = -DHAVE_OUTPUT_WAVFILE @ENABLE_CLI_TRUE@@HAVE_OUTPUT_ALSA_TRUE@am__append_14 = \ @ENABLE_CLI_TRUE@@HAVE_OUTPUT_ALSA_TRUE@ $(ALSA_CFLAGS) \ @ENABLE_CLI_TRUE@@HAVE_OUTPUT_ALSA_TRUE@ -DHAVE_OUTPUT_ALSA @ENABLE_CLI_TRUE@@HAVE_OUTPUT_ALSA_TRUE@am__append_15 = $(ALSA_LIBS) @ENABLE_CLI_TRUE@@HAVE_OUTPUT_ALSA_TRUE@am__append_16 = output/alsa.cc @ENABLE_CLI_TRUE@@HAVE_OUTPUT_JACKAUDIO_TRUE@am__append_17 = \ @ENABLE_CLI_TRUE@@HAVE_OUTPUT_JACKAUDIO_TRUE@ $(JACK_CFLAGS) \ @ENABLE_CLI_TRUE@@HAVE_OUTPUT_JACKAUDIO_TRUE@ -DHAVE_OUTPUT_JACKAUDIO @ENABLE_CLI_TRUE@@HAVE_OUTPUT_JACKAUDIO_TRUE@am__append_18 = $(JACK_LIBS) @ENABLE_CLI_TRUE@@HAVE_OUTPUT_JACKAUDIO_TRUE@am__append_19 = output/jackaudio.cc @ENABLE_CLI_TRUE@@HAVE_OUTPUT_OSS_TRUE@am__append_20 = output/oss.cc @ENABLE_CLI_TRUE@@HAVE_OUTPUT_OSS_TRUE@am__append_21 = -DHAVE_OUTPUT_OSS # Only compile jackclient.cc if at least one of the jack modules are included. @ENABLE_CLI_TRUE@@HAVE_OUTPUT_JACKAUDIO_TRUE@am__append_22 = jackclient.cc @ENABLE_CLI_TRUE@@HAVE_INPUT_JACKMIDI_TRUE@@HAVE_OUTPUT_JACKAUDIO_FALSE@am__append_23 = jackclient.cc subdir = drumgizmo DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am__drumgizmo_SOURCES_DIST = drumgizmoc.cc enginefactory.cc \ $(top_srcdir)/hugin/hugin.c $(top_srcdir)/hugin/hugin_filter.c \ input/inputdummy.cc input/test.cc input/midifile.cc \ input/jackmidi.cc output/outputdummy.cc output/wavfile.cc \ output/alsa.cc output/jackaudio.cc output/oss.cc jackclient.cc @ENABLE_CLI_TRUE@@HAVE_INPUT_DUMMY_TRUE@am__objects_1 = drumgizmo-inputdummy.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_INPUT_TEST_TRUE@am__objects_2 = drumgizmo-test.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@am__objects_3 = drumgizmo-midifile.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_INPUT_JACKMIDI_TRUE@am__objects_4 = drumgizmo-jackmidi.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_OUTPUT_DUMMY_TRUE@am__objects_5 = drumgizmo-outputdummy.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_OUTPUT_WAVFILE_TRUE@am__objects_6 = drumgizmo-wavfile.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_OUTPUT_ALSA_TRUE@am__objects_7 = drumgizmo-alsa.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_OUTPUT_JACKAUDIO_TRUE@am__objects_8 = drumgizmo-jackaudio.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_OUTPUT_OSS_TRUE@am__objects_9 = drumgizmo-oss.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_OUTPUT_JACKAUDIO_TRUE@am__objects_10 = drumgizmo-jackclient.$(OBJEXT) @ENABLE_CLI_TRUE@@HAVE_INPUT_JACKMIDI_TRUE@@HAVE_OUTPUT_JACKAUDIO_FALSE@am__objects_11 = drumgizmo-jackclient.$(OBJEXT) @ENABLE_CLI_TRUE@am_drumgizmo_OBJECTS = \ @ENABLE_CLI_TRUE@ drumgizmo-drumgizmoc.$(OBJEXT) \ @ENABLE_CLI_TRUE@ drumgizmo-enginefactory.$(OBJEXT) \ @ENABLE_CLI_TRUE@ drumgizmo-hugin.$(OBJEXT) \ @ENABLE_CLI_TRUE@ drumgizmo-hugin_filter.$(OBJEXT) \ @ENABLE_CLI_TRUE@ $(am__objects_1) $(am__objects_2) \ @ENABLE_CLI_TRUE@ $(am__objects_3) $(am__objects_4) \ @ENABLE_CLI_TRUE@ $(am__objects_5) $(am__objects_6) \ @ENABLE_CLI_TRUE@ $(am__objects_7) $(am__objects_8) \ @ENABLE_CLI_TRUE@ $(am__objects_9) $(am__objects_10) \ @ENABLE_CLI_TRUE@ $(am__objects_11) drumgizmo_OBJECTS = $(am_drumgizmo_OBJECTS) am__DEPENDENCIES_1 = @ENABLE_CLI_TRUE@@HAVE_INPUT_MIDIFILE_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @ENABLE_CLI_TRUE@drumgizmo_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @ENABLE_CLI_TRUE@ $(top_srcdir)/src/libdg.la \ @ENABLE_CLI_TRUE@ $(am__DEPENDENCIES_2) 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 = drumgizmo_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(drumgizmo_CXXFLAGS) \ $(CXXFLAGS) $(drumgizmo_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 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(drumgizmo_SOURCES) DIST_SOURCES = $(am__drumgizmo_SOURCES_DIST) 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@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ CPPUNIT_LIBS = @CPPUNIT_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPAT_CFLAGS = @EXPAT_CFLAGS@ EXPAT_LIBS = @EXPAT_LIBS@ FGREP = @FGREP@ FLOAT_STORE = @FLOAT_STORE@ GREP = @GREP@ GUI_CPPFLAGS = @GUI_CPPFLAGS@ GUI_LIBS = @GUI_LIBS@ INPUT_PLUGINS = @INPUT_PLUGINS@ INPUT_PLUGIN_DIR = @INPUT_PLUGIN_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LV2DIR = @LV2DIR@ LV2_CFLAGS = @LV2_CFLAGS@ LV2_LIBS = @LV2_LIBS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ OUTPUT_PLUGINS = @OUTPUT_PLUGINS@ OUTPUT_PLUGIN_DIR = @OUTPUT_PLUGIN_DIR@ 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@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SMF_CFLAGS = @SMF_CFLAGS@ SMF_LIBS = @SMF_LIBS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SSEFLAGS = @SSEFLAGS@ STRIP = @STRIP@ VERSION = @VERSION@ VST_CPPFLAGS = @VST_CPPFLAGS@ VST_SOURCE_PATH = @VST_SOURCE_PATH@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XEXT_CFLAGS = @XEXT_CFLAGS@ XEXT_LIBS = @XEXT_LIBS@ ZITA_CPPFLAGS = @ZITA_CPPFLAGS@ ZITA_LIBS = @ZITA_LIBS@ 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_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ 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@ dgplugindir = @dgplugindir@ 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@ 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@ DISTDIRS = input output @ENABLE_CLI_TRUE@drumgizmo_LDADD = $(JACK_LIBS) \ @ENABLE_CLI_TRUE@ $(top_srcdir)/src/libdg.la $(am__append_6) @ENABLE_CLI_TRUE@drumgizmo_LDFLAGS = $(am__append_15) $(am__append_18) @ENABLE_CLI_TRUE@drumgizmo_CXXFLAGS = -I$(top_srcdir)/include \ @ENABLE_CLI_TRUE@ -I$(top_srcdir)/src -I$(top_srcdir)/hugin \ @ENABLE_CLI_TRUE@ -DWITH_HUG_MUTEX -DWITH_HUG_FILTER \ @ENABLE_CLI_TRUE@ $(JACK_CFLAGS) $(SSEFLAGS) $(am__append_2) \ @ENABLE_CLI_TRUE@ $(am__append_4) $(am__append_5) \ @ENABLE_CLI_TRUE@ $(am__append_9) $(am__append_11) \ @ENABLE_CLI_TRUE@ $(am__append_13) $(am__append_14) \ @ENABLE_CLI_TRUE@ $(am__append_17) $(am__append_21) @ENABLE_CLI_TRUE@drumgizmo_CFLAGS = -DWITH_HUG_MUTEX -DWITH_HUG_FILTER @ENABLE_CLI_TRUE@drumgizmo_SOURCES = drumgizmoc.cc enginefactory.cc \ @ENABLE_CLI_TRUE@ $(top_srcdir)/hugin/hugin.c \ @ENABLE_CLI_TRUE@ $(top_srcdir)/hugin/hugin_filter.c \ @ENABLE_CLI_TRUE@ $(am__append_1) $(am__append_3) \ @ENABLE_CLI_TRUE@ $(am__append_7) $(am__append_8) \ @ENABLE_CLI_TRUE@ $(am__append_10) $(am__append_12) \ @ENABLE_CLI_TRUE@ $(am__append_16) $(am__append_19) \ @ENABLE_CLI_TRUE@ $(am__append_20) $(am__append_22) \ @ENABLE_CLI_TRUE@ $(am__append_23) @ENABLE_CLI_TRUE@EXTRA_DIST = \ @ENABLE_CLI_TRUE@ drumgizmoc.h \ @ENABLE_CLI_TRUE@ jackclient.h \ @ENABLE_CLI_TRUE@ enginefactory.h \ @ENABLE_CLI_TRUE@ input/inputdummy.h \ @ENABLE_CLI_TRUE@ input/test.h \ @ENABLE_CLI_TRUE@ input/jackmidi.h \ @ENABLE_CLI_TRUE@ input/midifile.h \ @ENABLE_CLI_TRUE@ output/alsa.h \ @ENABLE_CLI_TRUE@ output/jackaudio.h \ @ENABLE_CLI_TRUE@ output/outputdummy.h \ @ENABLE_CLI_TRUE@ output/oss.h \ @ENABLE_CLI_TRUE@ output/wavfile.h all: all-am .SUFFIXES: .SUFFIXES: .c .cc .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 drumgizmo/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu drumgizmo/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 drumgizmo$(EXEEXT): $(drumgizmo_OBJECTS) $(drumgizmo_DEPENDENCIES) $(EXTRA_drumgizmo_DEPENDENCIES) @rm -f drumgizmo$(EXEEXT) $(AM_V_CXXLD)$(drumgizmo_LINK) $(drumgizmo_OBJECTS) $(drumgizmo_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-alsa.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-drumgizmoc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-enginefactory.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-hugin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-hugin_filter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-inputdummy.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-jackaudio.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-jackclient.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-jackmidi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-midifile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-oss.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-outputdummy.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drumgizmo-wavfile.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 $@ $< drumgizmo-hugin.o: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CFLAGS) $(CFLAGS) -MT drumgizmo-hugin.o -MD -MP -MF $(DEPDIR)/drumgizmo-hugin.Tpo -c -o drumgizmo-hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-hugin.Tpo $(DEPDIR)/drumgizmo-hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='drumgizmo-hugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CFLAGS) $(CFLAGS) -c -o drumgizmo-hugin.o `test -f '$(top_srcdir)/hugin/hugin.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin.c drumgizmo-hugin.obj: $(top_srcdir)/hugin/hugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CFLAGS) $(CFLAGS) -MT drumgizmo-hugin.obj -MD -MP -MF $(DEPDIR)/drumgizmo-hugin.Tpo -c -o drumgizmo-hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-hugin.Tpo $(DEPDIR)/drumgizmo-hugin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin.c' object='drumgizmo-hugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CFLAGS) $(CFLAGS) -c -o drumgizmo-hugin.obj `if test -f '$(top_srcdir)/hugin/hugin.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin.c'; fi` drumgizmo-hugin_filter.o: $(top_srcdir)/hugin/hugin_filter.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CFLAGS) $(CFLAGS) -MT drumgizmo-hugin_filter.o -MD -MP -MF $(DEPDIR)/drumgizmo-hugin_filter.Tpo -c -o drumgizmo-hugin_filter.o `test -f '$(top_srcdir)/hugin/hugin_filter.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin_filter.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-hugin_filter.Tpo $(DEPDIR)/drumgizmo-hugin_filter.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin_filter.c' object='drumgizmo-hugin_filter.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CFLAGS) $(CFLAGS) -c -o drumgizmo-hugin_filter.o `test -f '$(top_srcdir)/hugin/hugin_filter.c' || echo '$(srcdir)/'`$(top_srcdir)/hugin/hugin_filter.c drumgizmo-hugin_filter.obj: $(top_srcdir)/hugin/hugin_filter.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CFLAGS) $(CFLAGS) -MT drumgizmo-hugin_filter.obj -MD -MP -MF $(DEPDIR)/drumgizmo-hugin_filter.Tpo -c -o drumgizmo-hugin_filter.obj `if test -f '$(top_srcdir)/hugin/hugin_filter.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin_filter.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin_filter.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-hugin_filter.Tpo $(DEPDIR)/drumgizmo-hugin_filter.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/hugin/hugin_filter.c' object='drumgizmo-hugin_filter.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CFLAGS) $(CFLAGS) -c -o drumgizmo-hugin_filter.obj `if test -f '$(top_srcdir)/hugin/hugin_filter.c'; then $(CYGPATH_W) '$(top_srcdir)/hugin/hugin_filter.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/hugin/hugin_filter.c'; fi` .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< drumgizmo-drumgizmoc.o: drumgizmoc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-drumgizmoc.o -MD -MP -MF $(DEPDIR)/drumgizmo-drumgizmoc.Tpo -c -o drumgizmo-drumgizmoc.o `test -f 'drumgizmoc.cc' || echo '$(srcdir)/'`drumgizmoc.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-drumgizmoc.Tpo $(DEPDIR)/drumgizmo-drumgizmoc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumgizmoc.cc' object='drumgizmo-drumgizmoc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-drumgizmoc.o `test -f 'drumgizmoc.cc' || echo '$(srcdir)/'`drumgizmoc.cc drumgizmo-drumgizmoc.obj: drumgizmoc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-drumgizmoc.obj -MD -MP -MF $(DEPDIR)/drumgizmo-drumgizmoc.Tpo -c -o drumgizmo-drumgizmoc.obj `if test -f 'drumgizmoc.cc'; then $(CYGPATH_W) 'drumgizmoc.cc'; else $(CYGPATH_W) '$(srcdir)/drumgizmoc.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-drumgizmoc.Tpo $(DEPDIR)/drumgizmo-drumgizmoc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='drumgizmoc.cc' object='drumgizmo-drumgizmoc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-drumgizmoc.obj `if test -f 'drumgizmoc.cc'; then $(CYGPATH_W) 'drumgizmoc.cc'; else $(CYGPATH_W) '$(srcdir)/drumgizmoc.cc'; fi` drumgizmo-enginefactory.o: enginefactory.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-enginefactory.o -MD -MP -MF $(DEPDIR)/drumgizmo-enginefactory.Tpo -c -o drumgizmo-enginefactory.o `test -f 'enginefactory.cc' || echo '$(srcdir)/'`enginefactory.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-enginefactory.Tpo $(DEPDIR)/drumgizmo-enginefactory.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='enginefactory.cc' object='drumgizmo-enginefactory.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-enginefactory.o `test -f 'enginefactory.cc' || echo '$(srcdir)/'`enginefactory.cc drumgizmo-enginefactory.obj: enginefactory.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-enginefactory.obj -MD -MP -MF $(DEPDIR)/drumgizmo-enginefactory.Tpo -c -o drumgizmo-enginefactory.obj `if test -f 'enginefactory.cc'; then $(CYGPATH_W) 'enginefactory.cc'; else $(CYGPATH_W) '$(srcdir)/enginefactory.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-enginefactory.Tpo $(DEPDIR)/drumgizmo-enginefactory.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='enginefactory.cc' object='drumgizmo-enginefactory.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-enginefactory.obj `if test -f 'enginefactory.cc'; then $(CYGPATH_W) 'enginefactory.cc'; else $(CYGPATH_W) '$(srcdir)/enginefactory.cc'; fi` drumgizmo-inputdummy.o: input/inputdummy.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-inputdummy.o -MD -MP -MF $(DEPDIR)/drumgizmo-inputdummy.Tpo -c -o drumgizmo-inputdummy.o `test -f 'input/inputdummy.cc' || echo '$(srcdir)/'`input/inputdummy.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-inputdummy.Tpo $(DEPDIR)/drumgizmo-inputdummy.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='input/inputdummy.cc' object='drumgizmo-inputdummy.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-inputdummy.o `test -f 'input/inputdummy.cc' || echo '$(srcdir)/'`input/inputdummy.cc drumgizmo-inputdummy.obj: input/inputdummy.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-inputdummy.obj -MD -MP -MF $(DEPDIR)/drumgizmo-inputdummy.Tpo -c -o drumgizmo-inputdummy.obj `if test -f 'input/inputdummy.cc'; then $(CYGPATH_W) 'input/inputdummy.cc'; else $(CYGPATH_W) '$(srcdir)/input/inputdummy.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-inputdummy.Tpo $(DEPDIR)/drumgizmo-inputdummy.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='input/inputdummy.cc' object='drumgizmo-inputdummy.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-inputdummy.obj `if test -f 'input/inputdummy.cc'; then $(CYGPATH_W) 'input/inputdummy.cc'; else $(CYGPATH_W) '$(srcdir)/input/inputdummy.cc'; fi` drumgizmo-test.o: input/test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-test.o -MD -MP -MF $(DEPDIR)/drumgizmo-test.Tpo -c -o drumgizmo-test.o `test -f 'input/test.cc' || echo '$(srcdir)/'`input/test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-test.Tpo $(DEPDIR)/drumgizmo-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='input/test.cc' object='drumgizmo-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-test.o `test -f 'input/test.cc' || echo '$(srcdir)/'`input/test.cc drumgizmo-test.obj: input/test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-test.obj -MD -MP -MF $(DEPDIR)/drumgizmo-test.Tpo -c -o drumgizmo-test.obj `if test -f 'input/test.cc'; then $(CYGPATH_W) 'input/test.cc'; else $(CYGPATH_W) '$(srcdir)/input/test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-test.Tpo $(DEPDIR)/drumgizmo-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='input/test.cc' object='drumgizmo-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-test.obj `if test -f 'input/test.cc'; then $(CYGPATH_W) 'input/test.cc'; else $(CYGPATH_W) '$(srcdir)/input/test.cc'; fi` drumgizmo-midifile.o: input/midifile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-midifile.o -MD -MP -MF $(DEPDIR)/drumgizmo-midifile.Tpo -c -o drumgizmo-midifile.o `test -f 'input/midifile.cc' || echo '$(srcdir)/'`input/midifile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-midifile.Tpo $(DEPDIR)/drumgizmo-midifile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='input/midifile.cc' object='drumgizmo-midifile.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-midifile.o `test -f 'input/midifile.cc' || echo '$(srcdir)/'`input/midifile.cc drumgizmo-midifile.obj: input/midifile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-midifile.obj -MD -MP -MF $(DEPDIR)/drumgizmo-midifile.Tpo -c -o drumgizmo-midifile.obj `if test -f 'input/midifile.cc'; then $(CYGPATH_W) 'input/midifile.cc'; else $(CYGPATH_W) '$(srcdir)/input/midifile.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-midifile.Tpo $(DEPDIR)/drumgizmo-midifile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='input/midifile.cc' object='drumgizmo-midifile.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-midifile.obj `if test -f 'input/midifile.cc'; then $(CYGPATH_W) 'input/midifile.cc'; else $(CYGPATH_W) '$(srcdir)/input/midifile.cc'; fi` drumgizmo-jackmidi.o: input/jackmidi.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-jackmidi.o -MD -MP -MF $(DEPDIR)/drumgizmo-jackmidi.Tpo -c -o drumgizmo-jackmidi.o `test -f 'input/jackmidi.cc' || echo '$(srcdir)/'`input/jackmidi.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-jackmidi.Tpo $(DEPDIR)/drumgizmo-jackmidi.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='input/jackmidi.cc' object='drumgizmo-jackmidi.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-jackmidi.o `test -f 'input/jackmidi.cc' || echo '$(srcdir)/'`input/jackmidi.cc drumgizmo-jackmidi.obj: input/jackmidi.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-jackmidi.obj -MD -MP -MF $(DEPDIR)/drumgizmo-jackmidi.Tpo -c -o drumgizmo-jackmidi.obj `if test -f 'input/jackmidi.cc'; then $(CYGPATH_W) 'input/jackmidi.cc'; else $(CYGPATH_W) '$(srcdir)/input/jackmidi.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-jackmidi.Tpo $(DEPDIR)/drumgizmo-jackmidi.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='input/jackmidi.cc' object='drumgizmo-jackmidi.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-jackmidi.obj `if test -f 'input/jackmidi.cc'; then $(CYGPATH_W) 'input/jackmidi.cc'; else $(CYGPATH_W) '$(srcdir)/input/jackmidi.cc'; fi` drumgizmo-outputdummy.o: output/outputdummy.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-outputdummy.o -MD -MP -MF $(DEPDIR)/drumgizmo-outputdummy.Tpo -c -o drumgizmo-outputdummy.o `test -f 'output/outputdummy.cc' || echo '$(srcdir)/'`output/outputdummy.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-outputdummy.Tpo $(DEPDIR)/drumgizmo-outputdummy.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/outputdummy.cc' object='drumgizmo-outputdummy.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-outputdummy.o `test -f 'output/outputdummy.cc' || echo '$(srcdir)/'`output/outputdummy.cc drumgizmo-outputdummy.obj: output/outputdummy.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-outputdummy.obj -MD -MP -MF $(DEPDIR)/drumgizmo-outputdummy.Tpo -c -o drumgizmo-outputdummy.obj `if test -f 'output/outputdummy.cc'; then $(CYGPATH_W) 'output/outputdummy.cc'; else $(CYGPATH_W) '$(srcdir)/output/outputdummy.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-outputdummy.Tpo $(DEPDIR)/drumgizmo-outputdummy.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/outputdummy.cc' object='drumgizmo-outputdummy.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-outputdummy.obj `if test -f 'output/outputdummy.cc'; then $(CYGPATH_W) 'output/outputdummy.cc'; else $(CYGPATH_W) '$(srcdir)/output/outputdummy.cc'; fi` drumgizmo-wavfile.o: output/wavfile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-wavfile.o -MD -MP -MF $(DEPDIR)/drumgizmo-wavfile.Tpo -c -o drumgizmo-wavfile.o `test -f 'output/wavfile.cc' || echo '$(srcdir)/'`output/wavfile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-wavfile.Tpo $(DEPDIR)/drumgizmo-wavfile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/wavfile.cc' object='drumgizmo-wavfile.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-wavfile.o `test -f 'output/wavfile.cc' || echo '$(srcdir)/'`output/wavfile.cc drumgizmo-wavfile.obj: output/wavfile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-wavfile.obj -MD -MP -MF $(DEPDIR)/drumgizmo-wavfile.Tpo -c -o drumgizmo-wavfile.obj `if test -f 'output/wavfile.cc'; then $(CYGPATH_W) 'output/wavfile.cc'; else $(CYGPATH_W) '$(srcdir)/output/wavfile.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-wavfile.Tpo $(DEPDIR)/drumgizmo-wavfile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/wavfile.cc' object='drumgizmo-wavfile.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-wavfile.obj `if test -f 'output/wavfile.cc'; then $(CYGPATH_W) 'output/wavfile.cc'; else $(CYGPATH_W) '$(srcdir)/output/wavfile.cc'; fi` drumgizmo-alsa.o: output/alsa.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-alsa.o -MD -MP -MF $(DEPDIR)/drumgizmo-alsa.Tpo -c -o drumgizmo-alsa.o `test -f 'output/alsa.cc' || echo '$(srcdir)/'`output/alsa.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-alsa.Tpo $(DEPDIR)/drumgizmo-alsa.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/alsa.cc' object='drumgizmo-alsa.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-alsa.o `test -f 'output/alsa.cc' || echo '$(srcdir)/'`output/alsa.cc drumgizmo-alsa.obj: output/alsa.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-alsa.obj -MD -MP -MF $(DEPDIR)/drumgizmo-alsa.Tpo -c -o drumgizmo-alsa.obj `if test -f 'output/alsa.cc'; then $(CYGPATH_W) 'output/alsa.cc'; else $(CYGPATH_W) '$(srcdir)/output/alsa.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-alsa.Tpo $(DEPDIR)/drumgizmo-alsa.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/alsa.cc' object='drumgizmo-alsa.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-alsa.obj `if test -f 'output/alsa.cc'; then $(CYGPATH_W) 'output/alsa.cc'; else $(CYGPATH_W) '$(srcdir)/output/alsa.cc'; fi` drumgizmo-jackaudio.o: output/jackaudio.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-jackaudio.o -MD -MP -MF $(DEPDIR)/drumgizmo-jackaudio.Tpo -c -o drumgizmo-jackaudio.o `test -f 'output/jackaudio.cc' || echo '$(srcdir)/'`output/jackaudio.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-jackaudio.Tpo $(DEPDIR)/drumgizmo-jackaudio.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/jackaudio.cc' object='drumgizmo-jackaudio.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-jackaudio.o `test -f 'output/jackaudio.cc' || echo '$(srcdir)/'`output/jackaudio.cc drumgizmo-jackaudio.obj: output/jackaudio.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-jackaudio.obj -MD -MP -MF $(DEPDIR)/drumgizmo-jackaudio.Tpo -c -o drumgizmo-jackaudio.obj `if test -f 'output/jackaudio.cc'; then $(CYGPATH_W) 'output/jackaudio.cc'; else $(CYGPATH_W) '$(srcdir)/output/jackaudio.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-jackaudio.Tpo $(DEPDIR)/drumgizmo-jackaudio.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/jackaudio.cc' object='drumgizmo-jackaudio.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-jackaudio.obj `if test -f 'output/jackaudio.cc'; then $(CYGPATH_W) 'output/jackaudio.cc'; else $(CYGPATH_W) '$(srcdir)/output/jackaudio.cc'; fi` drumgizmo-oss.o: output/oss.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-oss.o -MD -MP -MF $(DEPDIR)/drumgizmo-oss.Tpo -c -o drumgizmo-oss.o `test -f 'output/oss.cc' || echo '$(srcdir)/'`output/oss.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-oss.Tpo $(DEPDIR)/drumgizmo-oss.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/oss.cc' object='drumgizmo-oss.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-oss.o `test -f 'output/oss.cc' || echo '$(srcdir)/'`output/oss.cc drumgizmo-oss.obj: output/oss.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-oss.obj -MD -MP -MF $(DEPDIR)/drumgizmo-oss.Tpo -c -o drumgizmo-oss.obj `if test -f 'output/oss.cc'; then $(CYGPATH_W) 'output/oss.cc'; else $(CYGPATH_W) '$(srcdir)/output/oss.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-oss.Tpo $(DEPDIR)/drumgizmo-oss.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='output/oss.cc' object='drumgizmo-oss.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-oss.obj `if test -f 'output/oss.cc'; then $(CYGPATH_W) 'output/oss.cc'; else $(CYGPATH_W) '$(srcdir)/output/oss.cc'; fi` drumgizmo-jackclient.o: jackclient.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-jackclient.o -MD -MP -MF $(DEPDIR)/drumgizmo-jackclient.Tpo -c -o drumgizmo-jackclient.o `test -f 'jackclient.cc' || echo '$(srcdir)/'`jackclient.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-jackclient.Tpo $(DEPDIR)/drumgizmo-jackclient.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='jackclient.cc' object='drumgizmo-jackclient.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-jackclient.o `test -f 'jackclient.cc' || echo '$(srcdir)/'`jackclient.cc drumgizmo-jackclient.obj: jackclient.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -MT drumgizmo-jackclient.obj -MD -MP -MF $(DEPDIR)/drumgizmo-jackclient.Tpo -c -o drumgizmo-jackclient.obj `if test -f 'jackclient.cc'; then $(CYGPATH_W) 'jackclient.cc'; else $(CYGPATH_W) '$(srcdir)/jackclient.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/drumgizmo-jackclient.Tpo $(DEPDIR)/drumgizmo-jackclient.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='jackclient.cc' object='drumgizmo-jackclient.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(drumgizmo_CXXFLAGS) $(CXXFLAGS) -c -o drumgizmo-jackclient.obj `if test -f 'jackclient.cc'; then $(CYGPATH_W) 'jackclient.cc'; else $(CYGPATH_W) '$(srcdir)/jackclient.cc'; fi` 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." 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: drumgizmo-0.9.14/drumgizmo/drumgizmoc.cc0000644000076400017500000002713213106047433015261 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * drumgizmoc.cc * * Thu Sep 16 10:23:22 CEST 2010 * Copyright 2010 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #include #include #include #include #include #include #include "drumgizmo.h" #include "drumgizmoc.h" #include "enginefactory.h" #include "bytesizeparser.h" #include "event.h" static const char version_str[] = "DrumGizmo v" VERSION "\n"; static const char copyright_str[] = "Copyright (C) 2008-2011 Bent Bisballe Nyeng - Aasimon.org.\n" "This is free software. You may redistribute copies of it under the terms " "of\n" "the GNU Lesser General Public License .\n" "There is NO WARRANTY, to the extent permitted by law.\n" "\n" "Written by Bent Bisballe Nyeng (deva@aasimon.org)\n"; static const char usage_str[] = "Usage: %s [options] drumkitfile\n" "Options:\n" " -a, --async-load Load drumkit in the background and start the " "engine immediately.\n" " -i, --inputengine dummy|test|jackmidi|midifile Use said event " "input engine.\n" " -I, --inputparms parmlist Set input engine parameters.\n" " -o, --outputengine dummy|alsa|jackaudio|wavfile Use said audio " "output engine.\n" " -O, --outputparms parmlist Set output engine parameters.\n" " -e, --endpos Number of samples to process, -1: infinite.\n" #ifndef DISABLE_HUGIN " -D, --debug ddd Enable debug messages on 'ddd'; see hugin " "documentation for details\n" #endif /*DISABLE_HUGIN*/ " -r, --no-resampling Disable resampling.\n" " -s, --streaming Enable streaming.\n" " -S, --streamingparms Streaming options.\n" " -v, --version Print version information and exit.\n" " -h, --help Print this message and exit.\n" "\n" "Input engine parameters:\n" " jackmidi: midimap=\n" " midifile: file=, speed= (default 1.0),\n" " track= (default -1, all tracks)\n" " midimap=, loop=\n" " test: p= (default 0.1)\n" " instr= (default -1, random instrument)\n" " len= (default -1, forever)\n" " dummy:\n" "\n" "Output engine parameters:\n" " alsa: dev= (default 'default'), frames= (default " "32)\n" " srate= (default 441000)\n" " oss: dev= (default '/dev/dsp'), srate=,\n" " max_fragments= (default 4, see man page for more info),\n" " fragment_size= (default 8, see man page for more info)\n" " wavfile: file= (default 'output'), srate= " "(default 44100)\n" " jackaudio:\n" " dummy:\n" "\n" "Streaming parameters:\n" " limit: Limit the amount of preloaded drumkit data to the size\n" // " chunk_size: chunk size in k,M,G\n" "\n"; int main(int argc, char* argv[]) { int c; Settings settings; settings.disk_cache_enable = false; std::string hugin_filter; unsigned int hugin_flags = 0; #ifndef DISABLE_HUGIN hugin_flags = HUG_FLAG_DEFAULT; #endif /*DISABLE_HUGIN*/ std::string outputengine; std::string inputengine; std::string iparms; std::string oparms; std::string sparms; bool async = false; int endpos = -1; EngineFactory factory; int option_index = 0; static struct option long_options[] = { {"async-load", no_argument, 0, 'a'}, {"inputengine", required_argument, 0, 'i'}, {"inputparms", required_argument, 0, 'I'}, {"outputengine", required_argument, 0, 'o'}, {"outputparms", required_argument, 0, 'O'}, {"endpos", required_argument, 0, 'e'}, #ifndef DISABLE_HUGIN {"debug", required_argument, 0, 'D'}, #endif /*DISABLE_HUGIN*/ {"streaming", no_argument, 0, 's'}, {"streamingparams", required_argument, 0, 'S'}, {"version", no_argument, 0, 'v'}, {"help", no_argument, 0, 'h'}, {"no-resample", no_argument, 0, 'r'}, {0, 0, 0, 0} }; while(1) { c = getopt_long(argc, argv, "hvpo:O:i:I:e:arsS:" #ifndef DISABLE_HUGIN "D:" #endif /*DISABLE_HUGIN*/ , long_options, &option_index); if(c == -1) { break; } switch(c) { case 'i': inputengine = optarg; if(inputengine == "help") { std::cout << "Available Input Engines = { "; for(auto const& name : factory.getInputEngines()) { std::cout << name << " "; } std::cout << "}\n"; return 0; } break; #ifndef DISABLE_HUGIN case 'D': hugin_flags |= HUG_FLAG_USE_FILTER; hugin_filter = optarg; break; #endif /*DISABLE_HUGIN*/ case 'I': iparms = optarg; break; case 'o': outputengine = optarg; if(outputengine == "help") { std::cout << "Available Output Engines = { "; for(auto const& name : factory.getOutputEngines()) { std::cout << name << " "; } std::cout << "}\n"; return 0; } break; case 'O': oparms = optarg; break; case 'a': async = true; break; case 'e': endpos = atoi(optarg); break; case '?': case 'h': printf("%s", version_str); printf(usage_str, argv[0]); return 0; case 'v': printf("%s", version_str); printf("%s", copyright_str); return 0; case 'r': settings.enable_resampling = false; break; case 's': settings.disk_cache_enable = true; break; case 'S': sparms = optarg; break; default: break; } } hug_status_t status = hug_init(hugin_flags, HUG_OPTION_FILTER, hugin_filter.c_str(), HUG_OPTION_END); if(status != HUG_STATUS_OK) { printf("Error: %d\n", status); return 1; } DEBUG(drumgizmo, "Debug enabled."); if(inputengine == "") { printf("Missing input engine\n"); return 1; } auto ie = factory.createInput(inputengine); if(ie == NULL) { printf("Invalid input engine: %s\n", inputengine.c_str()); return 1; } { std::string parm; std::string val; bool inval = false; wordexp_t exp_result; for(size_t i = 0; i < iparms.size(); ++i) { if(iparms[i] == ',') { int error = wordexp(val.data(), &exp_result, 0); if(error) { std::cerr << "Wrong argument: "; std::cerr << parm << " = " << val << std::endl; return 1; } ie->setParm(parm, exp_result.we_wordv[0]); parm = ""; val = ""; inval = false; continue; } if(iparms[i] == '=') { inval = true; continue; } if(inval) { val += iparms[i]; } else { parm += iparms[i]; } } if(parm != "") { int error = wordexp(val.data(), &exp_result, 0); if(error) { std::cerr << "Wrong argument: "; std::cerr << parm << " = " << val << std::endl; return 1; } ie->setParm(parm, exp_result.we_wordv[0]); } } { if(sparms.size() != 0) { if(sparms[0] == ',' || sparms[sparms.size()-1] == ',') { std::cerr << "Invalid streamparms" << std::endl; return 1; } std::string token; std::istringstream tokenstream(sparms); while(getline(tokenstream, token, ',')) { std::size_t index = token.find('='); if(index == std::string::npos || index == token.size()-1 || index == 0) { std::cerr << "Invalid streamparms" << std::endl; return 1; } std::string parm = token.substr(0, index); std::string value = token.substr(index+1); if(parm == "limit") { settings.disk_cache_upper_limit = byteSizeParser(value); if(settings.disk_cache_upper_limit == 0) { std::cerr << "Invalid argument for streamparms limit: " << value << std::endl; return 1; } } // else if(parm == "chunk_size") // { // settings.disk_cache_chunk_size = byteSizeParser(value); // if(settings.disk_cache_chunk_size == 0) // { // std::cerr << "Invalid argument for streamparms chunk_size: " << value << std::endl; // return 1; // } // } else { std::cerr << "Unknown streamingparms argument " << parm << std::endl; return 1; } } } } if(outputengine == "") { printf("Missing output engine\n"); return 1; } auto oe = factory.createOutput(outputengine); if(oe == NULL) { printf("Invalid output engine: %s\n", outputengine.c_str()); return 1; } { std::string parm; std::string val; bool inval = false; for(size_t i = 0; i < oparms.size(); ++i) { if(oparms[i] == ',') { oe->setParm(parm, val); parm = ""; val = ""; inval = false; continue; } if(oparms[i] == '=') { inval = true; continue; } if(inval) { val += oparms[i]; } else { parm += oparms[i]; } } if(parm != "") { oe->setParm(parm, val); } } std::string kitfile; if(option_index < argc) { while(optind < argc) { if(kitfile != "") { printf("Can only handle a single kitfile.\n"); printf(usage_str, argv[0]); return 1; } kitfile = argv[optind++]; } printf("\n"); } else { printf("Missing kitfile.\n"); printf(usage_str, argv[0]); return 1; } printf("Using kitfile: %s\n", kitfile.c_str()); DrumGizmo gizmo(settings, *oe.get(), *ie.get()); gizmo.setFrameSize(oe->getBufferSize()); settings.drumkit_file.store(kitfile); settings.reload_counter++; printf("Loading drumkit, this may take a while:\n"); if(!async) { while(settings.drumkit_load_status.load() != LoadStatus::Done) { std::this_thread::sleep_for(std::chrono::milliseconds(10)); int total = settings.number_of_files.load(); int loaded = settings.number_of_files_loaded.load(); printf("\r%d of %d ", loaded, total); fflush(stdout); if(settings.drumkit_load_status.load() == LoadStatus::Error) { printf("\nFailed to load \"%s\".\n", kitfile.c_str()); return 1; } if(loaded == total) { //break; } } printf("\ndone\n"); } gizmo.setSamplerate(oe->getSamplerate()); oe->onLatencyChange(gizmo.getLatency()); if(!gizmo.init()) { printf("Failed init engine.\n"); return 1; } // former drumgizmo run call size_t pos = 0; size_t nsamples = oe->getBufferSize(); sample_t *samples = (sample_t *)malloc(nsamples * sizeof(sample_t)); gizmo.setFrameSize(oe->getBufferSize()); ie->start(); oe->start(); while(gizmo.run(pos, samples, nsamples) == true) { pos += nsamples; if((endpos != -1) && (pos >= (size_t)endpos)) { break; } } ie->stop(); oe->stop(); free(samples); // end former drumgizmo run call printf("Quit.\n"); fflush(stdout); hug_close(); return 0; } drumgizmo-0.9.14/drumgizmo/jackclient.h0000644000076400017500000000502713077120601015045 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * jackclient.h * * Sun Jul 20 21:48:44 CEST 2008 * Copyright 2008 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #pragma once #include #include #include #include #include class JackClient; class JackProcess { public: virtual ~JackProcess(); virtual void process(jack_nframes_t num_frames) = 0; virtual void jackLatencyCallback(jack_latency_callback_mode_t mode) {} }; // -------------------------------------------------------------------- // RAII-wrapper for jack_port_t struct JackPort { JackPort(JackClient& client, const std::string& name, const char* type, JackPortFlags flags); ~JackPort(); jack_client_t* const client; jack_port_t* const port; }; // -------------------------------------------------------------------- class JackClient { friend struct JackPort; public: JackClient(); ~JackClient(); void add(JackProcess& process); void remove(JackProcess& process); void activate(); std::size_t getBufferSize() const; std::size_t getSampleRate() const; bool isFreewheeling() const; private: jack_client_t* client; std::set processes; bool is_active; bool is_freewheeling; int process(jack_nframes_t num_frames); void jackLatencyCallback(jack_latency_callback_mode_t mode); void jackFreewheelCallback(bool is_freewheeling); static int wrapJackProcess(jack_nframes_t nframes, void* arg); static void latencyCallback(jack_latency_callback_mode_t mode, void* arg); static void freewheelCallback(int is_freewheeling, void* arg); }; drumgizmo-0.9.14/drumgizmo/enginefactory.cc0000644000076400017500000000722313077120601015731 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * enginefactory.cc * * Mi 20. Jan 10:46:07 CET 2016 * Copyright 2016 Christian Glckner * cgloeckner@freenet.de ****************************************************************************/ /* * This file is part of DrumGizmo. * * DrumGizmo is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * DrumGizmo 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "cpp11fix.h" // required for c++11 #include "enginefactory.h" EngineFactory::EngineFactory() : input{} , output{} #ifdef USE_JACK , jack{nullptr} #endif { // list available input engines #ifdef HAVE_INPUT_DUMMY input.push_back("inputdummy"); #endif #ifdef HAVE_INPUT_TEST input.push_back("test"); #endif #ifdef HAVE_INPUT_MIDIFILE input.push_back("midifile"); #endif #ifdef HAVE_INPUT_JACKMIDI input.push_back("jackmidi"); #endif // list available output engines #ifdef HAVE_OUTPUT_DUMMY output.push_back("outputdummy"); #endif #ifdef HAVE_OUTPUT_WAVFILE output.push_back("wavfile"); #endif #ifdef HAVE_OUTPUT_ALSA output.push_back("alsa"); #endif #ifdef HAVE_OUTPUT_JACKAUDIO output.push_back("jackaudio"); #endif #ifdef HAVE_OUTPUT_OSS output.push_back("oss"); #endif } #ifdef USE_JACK void EngineFactory::prepareJack() { if(jack == nullptr) { jack = std::make_unique(); } } #endif const std::list& EngineFactory::getInputEngines() const { return input; } const std::list& EngineFactory::getOutputEngines() const { return output; } std::unique_ptr EngineFactory::createInput(const std::string& name) { #ifdef HAVE_INPUT_DUMMY if(name == "dummy") { return std::make_unique(); } #endif #ifdef HAVE_INPUT_TEST if(name == "test") { return std::make_unique(); } #endif #ifdef HAVE_INPUT_MIDIFILE if(name == "midifile") { return std::make_unique(); } #endif #ifdef HAVE_INPUT_JACKMIDI if(name == "jackmidi") { prepareJack(); return std::make_unique(*jack); } #endif // todo: add more engines std::cerr << "[EngineFactory] Unsupported input engine '" << name << "'\n"; return nullptr; } std::unique_ptr EngineFactory::createOutput(const std::string& name) { #ifdef HAVE_OUTPUT_DUMMY if(name == "dummy") { return std::make_unique(); } #endif #ifdef HAVE_OUTPUT_WAVFILE if(name == "wavfile") { return std::make_unique(); } #endif #ifdef HAVE_OUTPUT_ALSA if(name == "alsa") { return std::make_unique(); } #endif #ifdef HAVE_OUTPUT_JACKAUDIO if(name == "jackaudio") { prepareJack(); return std::make_unique(*jack); } #endif #ifdef HAVE_OUTPUT_OSS if(name == "oss") { return std::make_unique(); } #endif // todo: add more engines std::cerr << "[EngineFactory] Unsupported output engine '" << name << "'\n"; return nullptr; } drumgizmo-0.9.14/compile0000755000076400017500000001624513077054102012134 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2013 Free Software Foundation, Inc. # Written by Tom Tromey . # # 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. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: drumgizmo-0.9.14/hugin/0000755000076400017500000000000013106063415011740 500000000000000drumgizmo-0.9.14/hugin/hugin.hpp0000644000076400017500000000243212525311150013500 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * hugin.hpp * * Thu Nov 1 13:38:47 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of Hugin. * * Hugin 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. * * Hugin 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 Hugin; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef __HUGIN_HUGIN_HPP__ #define __HUGIN_HUGIN_HPP__ #ifdef __cplusplus extern "C" { #endif #include "hugin.h" #ifdef __cplusplus } #endif #endif/*__HUGIN_HUGIN_HPP__*/ drumgizmo-0.9.14/hugin/hugin_filter.h0000644000076400017500000000261312525311150014506 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * hugin_filter.h * * Fri Dec 7 14:24:27 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of Hugin. * * Hugin 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. * * Hugin 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 Hugin; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef __HUGIN_HUGIN_FILTER_H__ #define __HUGIN_HUGIN_FILTER_H__ #ifndef DISABLE_HUGIN #include "hugin.h" int hug_filter_enabled(const enum __debug_class cl, const char *ch); int hug_filter_parse(const char *filter); #endif/*DISABLE_HUGIN*/ #endif/*__HUGIN_HUGIN_FILTER_H__*/ drumgizmo-0.9.14/hugin/hugin_syslog.h0000644000076400017500000000257512525311150014550 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * hugin_syslog.h * * Fri Dec 7 14:24:54 CET 2012 * Copyright 2012 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of Hugin. * * Hugin 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. * * Hugin 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 Hugin; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef __HUGIN_HUGIN_SYSLOG_H__ #define __HUGIN_HUGIN_SYSLOG_H__ #ifndef DISABLE_HUGIN void hug_syslog_init(const char* host, int port); void hug_syslog_output(char* msg); void hug_syslog_close(); #endif/*DISABLE_HUGIN*/ #endif/*__HUGIN_HUGIN_SYSLOG_H__*/ drumgizmo-0.9.14/hugin/hugin.h0000644000076400017500000001274513021040252013142 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * hugin.h * * Thu Nov 1 13:38:47 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of Hugin. * * Hugin 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. * * Hugin 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 Hugin; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef __HUGIN_HUGIN_H__ #define __HUGIN_HUGIN_H__ #if defined(__WIN32__) | defined(__CYGWIN32__) #ifndef WIN32 #define WIN32 #endif #endif typedef enum { HUG_STATUS_OK = 0, HUG_STATUS_UNKNOWN_OPTION, HUG_STATUS_ERROR, } hug_status_t; #ifdef DISABLE_HUGIN #define ERR(ch, fmt...) #define WARN(ch, fmt...) #define INFO(ch, fmt...) #define DEBUG(ch, fmt...) #define hug_init(...) HUG_STATUS_OK #define hug_close() #else/*DISABLE_HUGIN*/ enum HUG_FLAG { // Features #ifdef WITH_HUG_THREAD HUG_FLAG_USE_THREAD = 0x00000001, #endif #ifdef WITH_HUG_MUTEX HUG_FLAG_USE_MUTEX = 0x00000002, #endif #ifdef WITH_HUG_FILTER HUG_FLAG_USE_FILTER = 0x00000004, #endif // Outputs HUG_FLAG_OUTPUT_TO_STDOUT = 0x00010000, HUG_FLAG_OUTPUT_TO_STDERR = 0x00020000, HUG_FLAG_OUTPUT_TO_FD = 0x00040000, HUG_FLAG_OUTPUT_TO_FILE = 0x00080000, #ifdef WITH_HUG_SYSLOG HUG_FLAG_OUTPUT_TO_SYSLOG = 0x00100000, #endif // Default value of flags HUG_FLAG_DEFAULT = HUG_FLAG_OUTPUT_TO_STDOUT, // Output to stdout }; enum HUG_OPTION { /** * No more options / last option. This is used * to terminate the VARARGs list. */ HUG_OPTION_END, /** * const char* argument containing a filename which will be used for log * output. To be used with the HUG_FLAG_OUTPUT_TO_FILE flag. */ HUG_OPTION_FILENAME, /** * Integer argument describing a file descriptor which will be used for log * output. To be used with the HUG_FLAG_OUTPUT_TO_FD flag. */ HUG_OPTION_FD, /** * Set this option to make the stdout output to be printed without any date * information in the header. * Parameter is an integer. * Values: * 0 := use date * 1 := do not use date. */ HUG_OPTION_STDOUT_NO_DATE, /** * Host and port to use when logging on an external server. * Host is a const char* argument, port is an integer. * To be used with the HUG_FLAG_USE_SYSLOG flag. * Linux: If HUG_OPTION_SYSLOG_HOST is not supplied, the local syslog will be * used. * Windows: If HUG_OPTION_SYSLOG_HOST is not supplied an error will be * returned by hugin_init. * If HUG_OPTION_SYSLOG_PORT is not supplied, the default syslogd port will * be used (port 514). */ #ifdef WITH_HUG_SYSLOG HUG_OPTION_SYSLOG_HOST, HUG_OPTION_SYSLOG_PORT, #endif /** * Filter option. Argument is a const char *. * fmt := [set[,set]*]* * set := [+-]channel * | class[+-]channel * | [+-]all */ #ifdef WITH_HUG_FILTER HUG_OPTION_FILTER, #endif }; /** * @param flags combination of HUG_FLAG values * @param ... list of options (type-value pairs, * terminated with HUG_OPTION_END). * @return HUG_STATUS_OK on success, 1 on error. */ hug_status_t hug_init(unsigned int flags, ...); void hug_close(); /** * Use this function if hugin is logging to a file and this file has just been * rotated. Hugin will then close the filedescriptor to the file and open * the a new file with the same name and location. * Be aware that logrotate might need to create this new file first with * the correct permissions in order for hugin to write to it. * @return 0 on success. HUG_STATUS_ERROR on error (cannot open file). */ hug_status_t hugin_reopen_log(); /** * Example of usage (use mutex protected calls, send output to file): * * hug_status_t status; * status = hugin_init(HUG_FLAG_OUTPUT_TO_FILE | HUG_FLAG_USE_MUTEX, * HUG_OPTION_FILENAME, "/tmp/my.log", HUG_OPTION_END); * if(status != HUG_STATUS_OK) exit(1); * INFO(example, "We are up and running\n"); * hug_close(); */ /** * Example of usage (simply outputs to stdout): * * INFO(example, "We are up and running\n"); */ enum __debug_class { __class_fixme = 0, __class_err = 1, __class_warn = 2, __class_info = 3, __class_debug = 4 }; int __hugin__debug(const char *func, const int line, enum __debug_class cl, const char *ch, const char *fmt, ...) __attribute__((format (printf,5,6))); #define __DEBUG_PRINT(cl, ch, fmt...) \ do { __hugin__debug(__func__, __LINE__, cl, ch, fmt); } while(0) #define __DEBUG(cl, ch, fmt...) \ __DEBUG_PRINT(__class##cl, #ch, fmt) #define ERR(ch, fmt...) __DEBUG(_err, ch, fmt) #define WARN(ch, fmt...) __DEBUG(_warn, ch, fmt) #define INFO(ch, fmt...) __DEBUG(_info, ch, fmt) #define DEBUG(ch, fmt...) __DEBUG(_debug, ch, fmt) #endif/*DISABLE_HUGIN*/ #endif/*__HUGIN_HUGIN_H__*/ drumgizmo-0.9.14/hugin/hugin_filter.c0000644000076400017500000000701412647156132014515 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * debug_filter.c * * Fri Dec 7 14:24:27 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of Hugin. * * Hugin 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. * * Hugin 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 Hugin; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "hugin_filter.h" #ifndef DISABLE_HUGIN #include #include #ifndef WITH_HUG_FILTER #warning hugin_filter.c compiled but WITH_HUG_FILTER not defined #endif #define NELEM(x) (sizeof(x)/sizeof((x)[0])) struct __debug_channel { char name[32]; unsigned flags; }; #define __DEBUG_CHANNEL_MAX 256 static struct __debug_channel debug_channel[__DEBUG_CHANNEL_MAX]; static unsigned n_debug_channel = 0; // Default is to enable everything... static unsigned debug_flags = 0xffffffff;//(1<<__class_err)|(1<<__class_fixme); int hug_filter_enabled(const enum __debug_class cl, const char *ch) { unsigned i; for(i = 0; i < n_debug_channel; i++) { if(!strcmp(ch, debug_channel[i].name)) { return (debug_channel[i].flags & (1 << cl)) != 0; } } return debug_flags & (1 << cl); } /* * fmt := [set[,set]*]* * set := [+-]channel * | class[+-]channel * | [+-]all */ int hug_filter_parse(const char *filter) { char *s; char *next; char *opt; // NOTE: This must be identical to the debug_class_str in debug.c const char * const debug_class_str[] = { "fixme", "err", "warn", "info", "debug" }; if(!(s = strdup(filter))) return 1; for(opt = s; opt; opt = next) { int set = 0; int clr = 0; unsigned i; if((next = strchr(opt, ','))) *next++ = '\0'; char *p = opt + strcspn(opt, "+-"); if(!*p) p = opt; // All chars -> a channel name if(p > opt) { // we have a class for(i = 0; i < NELEM(debug_class_str); i++) { int n = strlen(debug_class_str[i]); if(n != (p - opt)) continue; if(!memcmp(opt, debug_class_str[i], n)) { // Found the class if(*p == '+') set = 1 << i; else clr = 1 << i; break; } } if(i == NELEM(debug_class_str)) continue; } else { if(*p == '-') clr = ~0; else set = ~0; } if(*p == '+' || *p == '-') p++; if(!*p) continue; if(!strcmp("all", p)) { debug_flags = (debug_flags & ~clr) | set; } else { if(strlen(p) >= sizeof(debug_channel[0].name)) continue; for(i = 0; i < n_debug_channel; i++) { if(!strcmp(p, debug_channel[i].name)) { debug_channel[i].flags = (debug_channel[i].flags & ~clr) | set; break; } } if(i == n_debug_channel && n_debug_channel < __DEBUG_CHANNEL_MAX) { strcpy(debug_channel[i].name, p); debug_channel[i].flags = (debug_flags & ~clr) | set; n_debug_channel++; } } } free(s); return 0; } #endif/*DISABLE_HUGIN*/ drumgizmo-0.9.14/hugin/hugin.c0000644000076400017500000002344613022614436013151 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * hugin.c * * Thu Nov 1 13:38:47 CET 2012 * Copyright 2012 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of Hugin. * * Hugin 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. * * Hugin 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 Hugin; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "hugin.h" #ifndef DISABLE_HUGIN #include #include #include #include #include #include #include #include #include #define LOGPERM 0660 #ifdef WITH_HUG_MUTEX # ifdef WIN32 # include typedef HANDLE mutex_t; # else # include typedef pthread_mutex_t mutex_t; # endif void mutex_init(mutex_t *mutex) { #ifdef WIN32 *mutex = CreateMutex(NULL, // default security attributes FALSE, // initially not owned NULL); // unnamed mutex #else pthread_mutex_init (mutex, NULL); #endif } void mutex_close(mutex_t *mutex) { #ifdef WIN32 CloseHandle(*mutex); #else pthread_mutex_destroy(mutex); #endif } void mutex_lock(mutex_t *mutex) { #ifdef WIN32 WaitForSingleObject(*mutex, // handle to mutex INFINITE); // no time-out interval #else pthread_mutex_lock(mutex); #endif } void mutex_unlock(mutex_t *mutex) { #ifdef WIN32 ReleaseMutex(*mutex); #else pthread_mutex_unlock(mutex); #endif } #ifdef WIN32 #define MUTEX_INIT_VALUE 0 #else #define MUTEX_INIT_VALUE PTHREAD_MUTEX_INITIALIZER #endif #else/*WITH_HUG_MUTEX*/ #define MUTEX_INIT_VALUE 0 typedef int mutex_t; void mutex_init(mutex_t *mutex) { (void)mutex; } void mutex_close(mutex_t *mutex) { (void)mutex; } void mutex_lock(mutex_t *mutex) { (void)mutex; } void mutex_unlock(mutex_t *mutex) { (void)mutex; } #endif/*WITH_HUG_MUTEX*/ mutex_t localtime_mutex; #ifdef WITH_HUG_FILTER #include "hugin_filter.h" #endif #ifdef WITH_HUG_SYSLOG #include "hugin_syslog.h" #endif struct hug_config_t { unsigned int flags; int fd; int file_fd; int stdout_no_date; mutex_t mutex; char *filename; #ifdef WITH_HUG_SYSLOG const char* syslog_host; int syslog_port; #endif } hug_config = { HUG_FLAG_DEFAULT, // flags -1, // fd -1, // file_fd 0, //stdout_no_date //#ifdef WITH_HUG_MUTEX MUTEX_INIT_VALUE, // mutex; //#endif NULL, // filename #ifdef WITH_HUG_SYSLOG NULL, // syslog_host; 541, // syslog_port; #endif /* // This doesn't work in C++ .flags = HUG_FLAG_DEFAULT, .fd = -1, .file_fd = -1, .stdout_no_date = 0 */ }; struct tm *hug_localtime(const time_t *timep, struct tm *result) { struct tm *res = NULL; mutex_lock(&localtime_mutex); if(timep && result) { memcpy(result,localtime(timep),sizeof(*result)); res = result; } mutex_unlock(&localtime_mutex); return res; } static void hug_mutex_init() { #ifdef WITH_HUG_MUTEX if(hug_config.flags & HUG_FLAG_USE_MUTEX) { mutex_init(&hug_config.mutex); } mutex_init(&localtime_mutex); #endif } static void hug_mutex_lock() { #ifdef WITH_HUG_MUTEX if(hug_config.flags & HUG_FLAG_USE_MUTEX) { mutex_lock(&hug_config.mutex); } #endif } static void hug_mutex_unlock() { #ifdef WITH_HUG_MUTEX if(hug_config.flags & HUG_FLAG_USE_MUTEX) { mutex_unlock(&hug_config.mutex); } #endif } static void hug_mutex_close() { #ifdef WITH_HUG_MUTEX if(hug_config.flags & HUG_FLAG_USE_MUTEX) { // Make sure we don't destroy the mutex while another thread is using it. hug_mutex_lock(); hug_mutex_unlock(); mutex_close(&hug_config.mutex); } mutex_close(&localtime_mutex); #endif } hug_status_t hug_init(unsigned int flags, ...) { hug_status_t status = HUG_STATUS_OK; hug_config.flags = flags; int end = 0; va_list vl; va_start(vl, flags); while(!end) { int option = va_arg(vl, int); switch(option) { case HUG_OPTION_END: end = 1; break; case HUG_OPTION_FD: hug_config.fd = va_arg(vl, int); break; case HUG_OPTION_STDOUT_NO_DATE: hug_config.stdout_no_date = va_arg(vl, int); break; case HUG_OPTION_FILENAME: { const char *filename = (const char*) va_arg(vl, char*); if(!filename) break; if(hug_config.flags & HUG_FLAG_OUTPUT_TO_FILE) { hug_config.filename = strdup(filename); hug_config.file_fd = open(hug_config.filename, O_CREAT | O_APPEND | O_RDWR, LOGPERM); if(hug_config.file_fd == -1) { fprintf(stderr, "Could not open logfile for writing: %s\n", hug_config.filename); return HUG_STATUS_ERROR; } } } break; #ifdef WITH_HUG_SYSLOG case HUG_OPTION_SYSLOG_PORT: hug_config.syslog_port = va_arg(vl, int); break; case HUG_OPTION_SYSLOG_HOST: hug_config.syslog_host = (const char*)va_arg(vl, char*); break; #endif #ifdef WITH_HUG_FILTER case HUG_OPTION_FILTER: hug_filter_parse((const char*)va_arg(vl, char*)); break; #endif default: status = HUG_STATUS_UNKNOWN_OPTION; printf("option: %x\n", option); goto err; } } hug_mutex_init(); #ifdef WITH_HUG_SYSLOG if(hug_config.flags & HUG_FLAG_OUTPUT_TO_SYSLOG) { hug_syslog_init(hug_config.syslog_host, hug_config.syslog_port); } #endif err: va_end(vl); return status; } void hug_close() { if(hug_config.flags & HUG_FLAG_OUTPUT_TO_FILE) { if(hug_config.file_fd != -1) close(hug_config.file_fd); if(hug_config.filename) free(hug_config.filename); } #ifdef WITH_HUG_SYSLOG hug_syslog_close(); #endif hug_mutex_close(); } hug_status_t hugin_reopen_log() { if((hug_config.flags & HUG_FLAG_OUTPUT_TO_FILE) == 0) return HUG_STATUS_OK; close(hug_config.file_fd); hug_config.file_fd = open(hug_config.filename, O_CREAT | O_APPEND | O_RDWR, LOGPERM); if(hug_config.file_fd == -1) { fprintf(stderr, "Could not re-open logfile for writing: %s\n", hug_config.filename); return HUG_STATUS_ERROR; } return HUG_STATUS_OK; } /* static unsigned int gettid() { return (unsigned int)pthread_self(); } */ static int hug_create_header(char *hdr, size_t size) { time_t rawtime = time(NULL); struct tm t; hug_localtime(&rawtime, &t); return snprintf(hdr, size, "%d-%02d-%02d %02d:%02d:%02d", t.tm_year + 1900, t.tm_mon + 1, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec); } static int hug_output_fd(int fd, const char *msg, int withdate) { int s; if(fd == -1) return 1; if(withdate) { char hdr[32]; hug_create_header(hdr, sizeof(hdr)); s = write(fd, hdr, strlen(hdr)); s = write(fd, " ", 1); } s = write(fd, msg, strlen(msg)); if(msg[strlen(msg) - 1] != '\n') { s = write(fd, "\n", 1); } (void)s; return 0; } // These functions returns how big a buffer is needed to "render" the arg list. static int vscprintf(const char *fmt, va_list va) { #ifdef WIN32 return _vscprintf(fmt, va); #else return vsnprintf(NULL, 0, fmt, va); #endif } static int scprintf(const char *fmt, ...) { int size; va_list va; va_start(va, fmt); size = vscprintf(fmt, va); va_end(va); return size; } #define HDR_ARGS debug_class_str[(unsigned)cl], ch, func, line int __hugin__debug(const char *func, const int line, const enum __debug_class cl, const char *ch, const char *fmt, ...) { int result = 0; int sz; char *buf = NULL; int hdr_bufsz = 0; int msg_bufsz = 0; const char hdr_fmt[] = "%s:%s:%s:%d "; // NOTE: This must be identical to the debug_class_str in debug_filter.c const char * const debug_class_str[] = { "fixme", "err", "warn", "info", "debug" }; hug_mutex_lock(); #ifdef WITH_HUG_FILTER if(!hug_filter_enabled(cl, ch)) goto done; #endif // // Generate message // { va_list va; va_start(va, fmt); hdr_bufsz = scprintf(hdr_fmt, HDR_ARGS); msg_bufsz = vscprintf(fmt, va); if(hdr_bufsz < 0 || msg_bufsz < 0) return 1; // Bad format? va_end(va); } buf = (char*)malloc(hdr_bufsz + msg_bufsz + 1); if(!buf) return 1; // Out of memory sz = sprintf(buf, hdr_fmt, HDR_ARGS); if(sz < 0) return 1; // Unknown error { va_list va; va_start(va, fmt); sz = vsprintf(buf + sz, fmt, va); if(sz < 0) return 1; // Unknown error va_end(va); } // // Send message to output // if(hug_config.flags & HUG_FLAG_OUTPUT_TO_STDOUT) { hug_output_fd(STDOUT_FILENO, buf, hug_config.stdout_no_date == 0); } if(hug_config.flags & HUG_FLAG_OUTPUT_TO_STDERR) { hug_output_fd(STDERR_FILENO, buf, 1); } if(hug_config.flags & HUG_FLAG_OUTPUT_TO_FD) { hug_output_fd(hug_config.fd, buf, 1); } if(hug_config.flags & HUG_FLAG_OUTPUT_TO_FILE) { hug_output_fd(hug_config.file_fd, buf, 1); } #ifdef WITH_HUG_SYSLOG if(hug_config.flags & HUG_FLAG_OUTPUT_TO_SYSLOG) { hug_syslog_output(buf); } #endif #ifdef WITH_HUG_FILTER done: #endif hug_mutex_unlock(); if(buf) free(buf); return result; } #endif/*DISABLE_HUGIN*/ drumgizmo-0.9.14/hugin/hugin_util.h0000644000076400017500000000272612525311150014203 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * hugin_util.h * * Fri Jan 4 10:10:03 CET 2013 * Copyright 2013 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ /* * This file is part of Hugin. * * Hugin 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. * * Hugin 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 Hugin; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef __HUGIN_HUGIN_UTIL_H__ #define __HUGIN_HUGIN_UTIL_H__ #ifndef DISABLE_HUGIN #include /** * Threadsafe version of localtime (if compiled with mutex support). * See man page for the posix localtime_r function. */ struct tm *hug_localtime(const time_t *timep, struct tm *result); #endif/*DISABLE_HUGIN*/ #endif/*__HUGIN_HUGIN_UTIL_H__*/ drumgizmo-0.9.14/hugin/hugin_syslog.c0000644000076400017500000001734613021040252014537 00000000000000/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** * hugin_syslog.c * * Fri Dec 7 14:24:54 CET 2012 * Copyright 2012 Jonas Suhr Christensen * jsc@umbraculum.org ****************************************************************************/ /* * This file is part of Hugin. * * Hugin 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. * * Hugin 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 Hugin; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "hugin_syslog.h" #ifndef DISABLE_HUGIN #include #include #include #ifdef WIN32 #include #include typedef SOCKET socket_t; #else #include typedef int socket_t; #include #include #include #include #endif #include #include #include "hugin_util.h" #ifndef WITH_HUG_SYSLOG #warning hugin_syslog.c compiled but WITH_HUG_SYSLOG not defined #endif #define DO_NOT_USE_REMOTE -2 #define SYSLOG_MAXMSGLEN 1024 #define SYSLOG_MAXTIMELEN 32 #define SYSLOG_LENOFEXECNAME 256 static int hug_syslog_sock; static struct sockaddr_in hug_syslog_sockaddr; static pid_t pid; static char execname[SYSLOG_LENOFEXECNAME]; #ifdef WIN32 static void wsastartup() { WORD wVersionRequested = MAKEWORD(2, 0); WSADATA wsaData; int ret = WSAStartup(wVersionRequested, &wsaData); if(ret != 0) { fprintf(stderr, "WSAStartup failed.\n"); } } #endif void hug_syslog_init(const char* host, int port) { hug_syslog_sock = DO_NOT_USE_REMOTE; if(host == NULL) return; #ifdef WIN32 wsastartup(); #endif struct hostent *hp = gethostbyname(host); if(!hp) { fprintf(stderr, "Failed to get host by name\n"); return; } // printf("Initializing syslog module remote %s:%d\n", host, port); if ( (hug_syslog_sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { fprintf(stderr, "Failed to create socket\n"); return; } memset(&hug_syslog_sockaddr, 0, sizeof(hug_syslog_sockaddr)); hug_syslog_sockaddr.sin_family = AF_INET; // hug_syslog_sockaddr.sin_addr.s_addr = inet_addr(host); memcpy(&(hug_syslog_sockaddr.sin_addr),*(hp->h_addr_list),sizeof(struct in_addr)); hug_syslog_sockaddr.sin_port = htons(port); // This implementation has all kind of possible errors: // * It is Linux only // * Max length of execname (including path, avoid this by cmdline file in reverse order) // is set to SYSLOG_LENOFEXECNAME // * If not found execname is "" pid = getpid(); char buf[SYSLOG_LENOFEXECNAME]; FILE* f = fopen("/proc/self/cmdline", "r"); if(f) { char* s = NULL; // This will not include commandline parameters // as they are separated by \0 s = fgets(buf, SYSLOG_LENOFEXECNAME, f); (void)s; fclose(f); } char* bufptr = strrchr(buf, '/'); if(bufptr) { strncpy(execname, bufptr+1, SYSLOG_LENOFEXECNAME-1); } else { strncpy(execname, buf, SYSLOG_LENOFEXECNAME-1); } // printf("\tRunning as %s with pid %d\n", execname, pid); } /* void hug_syslog_createheader() { const time_t rawtime = time(NULL); struct tm time; localtime_r(&rawtime, &time); char timebuf[256]; strftime(timebuf, 256, "%b %e %H:%M:%S ", &time); char bufpri[SYSLOG_PRILEN] = "<20>"; char buftag[SYSLOG_TAGLEN] = "PROGRAM[PID]: "; } */ /* * Syslog message specification (based on rfc3164). * Modified after reading syslog v2. documentation * * MSG: "<%d%d>%s %s %s%c%s", FACILITY, SEVERITY, TIME, CLIENT, TAG, DELIM, CONTENT * * Example: * <34>Oct 11 22:14:15 mymachine su: 'su root' failed for lonvick on /dev/pts/8 * * * NOTE! Length of MSG must not exceed 1024 characters! * * FACILITY: * 0 kernel messages * 1 user-level messages * 2 mail system * 3 system daemons * 4 security/authorization messages (note 1) * 5 messages generated internally by syslogd * 6 line printer subsystem * 7 network news subsystem * 8 UUCP subsystem * 9 clock daemon (note 2) * 10 security/authorization messages (note 1) * 11 FTP daemon * 12 NTP subsystem * 13 log audit (note 1) * 14 log alert (note 1) * 15 clock daemon (note 2) * 16 local use 0 (local0) * 17 local use 1 (local1) * 18 local use 2 (local2) * 19 local use 3 (local3) * 20 local use 4 (local4) * 21 local use 5 (local5) * 22 local use 6 (local6) * 23 local use 7 (local7) * * SEVERITY: * 0 Emergency: system is unusable * 1 Alert: action must be taken immediately * 2 Critical: critical conditions * 3 Error: error conditions * 4 Warning: warning conditions * 5 Notice: normal but significant condition * 6 Informational: informational messages * 7 Debug: debug-level messages * * TIME: * Time of message formatted like: Mmm dd hh:mm:ss * * CLIENT: * Hostname or * IPv4 address or * IPv6 address * * TAG: format: PROGRAM[PID] * Program or process information * PROGRAM is Alphanumeric * PID is numeric * Must not exceed 32 characters * * DELIM: * A nonn-alphanumeric character (eg. ':', '[' ...) * In implementation DELIM is the first character of CONTENT * * CONTENT: * The message to log. * String of printable characters * * */ void hug_syslog_output(char* msg) { if(hug_syslog_sock == DO_NOT_USE_REMOTE) { #ifdef WIN32 // TODO: We need to do something reasoanble on win32: // See Windows Event Log Functions: // http://msdn.microsoft.com/en-us/library/windows/desktop/aa385784.aspx #else syslog(LOG_DEBUG, "%s", msg); #endif return; } if(hug_syslog_sock < 0) return; const time_t rawtime = time(NULL); struct tm time; hug_localtime(&rawtime, &time); char buftime[SYSLOG_MAXTIMELEN+1]; strftime(buftime, SYSLOG_MAXTIMELEN, "%b %e %H:%M:%S", &time); // Currently everything is mapped to local facility 4 as debug int prio = 167; char buf[SYSLOG_MAXMSGLEN+1]; buf[0] = '\0'; snprintf(buf, SYSLOG_MAXMSGLEN, "<%d>%s %s[%d]: ", prio, buftime, execname, pid); int headerlen = strlen(buf); int msglen = strlen(msg); char* msgptr = msg; while( (msgptr - msg) < msglen ) { buf[headerlen] = '\0'; strncat(buf, msgptr, SYSLOG_MAXMSGLEN - headerlen); int buflen = strlen(buf); msgptr += buflen - headerlen; if((sendto(hug_syslog_sock, buf, buflen, 0, (struct sockaddr *) &hug_syslog_sockaddr, sizeof(hug_syslog_sockaddr))) != buflen) { fprintf(stderr, "Failed to send message successfully: %s\n", strerror(errno)); } } } void hug_syslog_close() { // printf("Closing syslog module\n"); if(hug_syslog_sock < 0) return; #ifdef WIN32 closesocket(hug_syslog_sock); WSACleanup(); #else close(hug_syslog_sock); #endif } #endif/*DISABLE_HUGIN*/ drumgizmo-0.9.14/missing0000755000076400017500000001533113077054102012150 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: