twpsk-4.3/0000775000175000017500000000000013142420757007540 500000000000000twpsk-4.3/Makefile.am0000644000175000017500000000136312657011406011512 00000000000000# Copyright (C) 1999-2014 Ted Williams (wa0eir) # # This file is free software; as a special exception the author 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. EXTRA_DIST = twpsk.desktop config32.sh SUBDIRS = src man doc_DATA = THANKS ChangeLog README NEWS desktopdir = $(datadir)/applications desktop_DATA = twpsk.desktop DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\\$${datadir}/X11/app-defaults twpsk-4.3/config/0000775000175000017500000000000013142420757011005 500000000000000twpsk-4.3/config/compile0000755000175000017500000001624512676613141012313 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2014 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: twpsk-4.3/config/install-sh0000755000175000017500000003546312676613141012744 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2014-09-12.12; # 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. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # 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_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 is_target_a_directory=possibly 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 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi 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 if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi 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 "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else dstdir=`dirname "$dst"` 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. ;; *) # $RANDOM is not portable (e.g. dash); use it when possible to # lower collision chance tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so # create the $tmpdir first (and fail if unsuccessful) to make sure # that nobody tries to guess the $tmpdir name. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/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. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 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 oIFS=$IFS IFS=/ set -f set fnord $dstdir shift 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` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && 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: twpsk-4.3/config/depcomp0000755000175000017500000005601612676613141012312 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # Copyright (C) 1999-2014 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: twpsk-4.3/config/missing0000755000175000017500000001533012676613141012326 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2013-10-28.13; # UTC # Copyright (C) 1996-2014 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 'autom4te' 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: twpsk-4.3/INSTALL0000644000175000017500000003661012676613141010517 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 command `./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. twpsk-4.3/config.h.in0000664000175000017500000001071713142415146011505 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the `atexit' function. */ #undef HAVE_ATEXIT /* Define to 1 if you have the `bzero' function. */ #undef HAVE_BZERO /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_DIRENT_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM /* Define to 1 if you have the `pthread' library (-lpthread). */ #undef HAVE_LIBPTHREAD /* Define to 1 if you have the `pulse' library (-lpulse). */ #undef HAVE_LIBPULSE /* Define to 1 if you have the `pulse-simple' library (-lpulse-simple). */ #undef HAVE_LIBPULSE_SIMPLE /* Define to 1 if you have the `Xpm' library (-lXpm). */ #undef HAVE_LIBXPM /* "got xp" */ #undef HAVE_LIB_XP /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the `mkdir' function. */ #undef HAVE_MKDIR /* "got motif/lesstif" */ #undef HAVE_MOTIF /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_NDIR_H /* Define to 1 if you have the `pow' function. */ #undef HAVE_POW /* Define to 1 if you have the header file. */ #undef HAVE_PULSE_SIMPLE_H /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Define to 1 if you have the `sqrt' function. */ #undef HAVE_SQRT /* 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 `strdup' function. */ #undef HAVE_STRDUP /* 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 `strncasecmp' function. */ #undef HAVE_STRNCASECMP /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_DIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_NDIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_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 1 if you have the header file. */ #undef HAVE_X11_INTRINSIC_H /* Define to 1 if you have the header file. */ #undef HAVE_X11_XPM_H /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING /* Define for Solaris 2.5.1 so the uint32_t typedef from , , or is not used. If the typedef were allowed, the #define below would cause a syntax error. */ #undef _UINT32_T /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to `unsigned int' if does not define. */ #undef size_t /* Define to the type of an unsigned integer type of width exactly 32 bits if such a type exists and the standard includes do not define it. */ #undef uint32_t twpsk-4.3/configure.ac0000644000175000017500000000777513142415114011753 00000000000000 # Copyright (C) 1999-2014 Ted Williams (wa0eir) # # This file is free software; as a special exception the author 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. AC_INIT([twpsk],[4.3],[wa0eir@wa0eir.bcts.info]) AC_CONFIG_SRCDIR([src]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE(subdir-objects) # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB # Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h], [], [AC_MSG_ERROR(This header file is missing)]) AC_CHECK_HEADERS([sys/socket.h unistd.h pulse/simple.h], [], [AC_MSG_ERROR(This header file is missing)]) # Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE AC_TYPE_SIZE_T AC_TYPE_UINT32_T # Checks for library functions. AC_FUNC_MALLOC AC_CHECK_FUNCS([memset mkdir select socket strdup]) AC_CHECK_FUNCS([pow sqrt strncasecmp atexit bzero]) # Checks for libraries. AC_CHECK_LIB([m], [sqrt], [], [AC_MSG_ERROR("ERROR: libm was not found")]) AC_CHECK_LIB([pthread], [pthread_create], [], [AC_MSG_ERROR("ERROR: libpthread was not found")]) AC_CHECK_LIB([pulse-simple], [pa_simple_new], [], [AC_MSG_ERROR("ERROR: pulseaudio library was not found")]) AC_CHECK_LIB([pulse], [pa_strerror], [], [AC_MSG_ERROR("pulselibrary was not found")]) # # Find headers and libraries for X11, Xpm and Xm # AC_DEFINE([HAVE_LIBXPM], [0], ["got xpm"]) AC_DEFINE([HAVE_LIB_XP], [0], ["got xp"]) AC_DEFINE([HAVE_MOTIF], [0], ["got motif/lesstif"]) AC_CHECK_HEADERS([X11/Intrinsic.h],[], [AC_MSG_ERROR("Can't find the X11/Intrinsic.h header file.") AC_MSG_ERROR("Please install the libXt development package.")]) # Check Motif/LessTif AC_FIND_MOTIF if test "$with_motif" = "no" then AC_MSG_ERROR("Can't find Motif/LessTif on your system") fi AC_CHECK_HEADERS([X11/xpm.h], [tw_XPM_header="yes"], [AC_MSG_WARN("Can't find the Xpm header file on your system") AC_MSG_WARN("The window icon will not be created")]) # Look for the Xpm header file. If found, look for the Xpm libraryin tw_XPM_lib="no" tw_XPM_lib="no" AC_CHECK_HEADERS([X11/xpm.h], [ tw_XPM_header="yes" AC_CHECK_LIB([Xpm], [XpmCreatePixmapFromData]) tw_XPM_lib="yes" ]) if test "$tw_XPM_header" = "no" then AC_MSG_WARN("Can't find the Xpm header file on your system.") AC_MSG_WARN("The window icon will not be created.") fi if test "$tw_XPM_lib" = "no" then AC_MSG_WARN("Can't find the Xpm library on your system.") AC_MSG_WARN("The window icon will not be created.") fi # # Find the system app-defaults directory # PKG_CHECK_MODULES(APPDEFS, xt) xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` AC_ARG_WITH(appdefaultdir, AC_HELP_STRING([--with-appdefaultdir=], [specify directory for app-defaults files (default is autodetected)]), [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) AC_SUBST(appdefaultdir) ########################################################################### CFLAGS="$CFLAGS $X_CFLAGS $MOTIF_CFLAGS" LIBS="$X_LIBS $MOTIF_LIBS -lXt -lX11 $X_PRE_LIBS $X_EXTRA_LIBS $LIBS -lpulse" ########################################################################### echo "######################################################################" echo CFLAGS $CFLAGS echo LIBS $LIBS echo LDFLAGS $LDFLAGS echo APP DEFAULTS DIR = "$appdefaultdir" echo "######################################################################" USER_NAME=$USER AC_SUBST(USER_NAME) HOME_DIR=$HOME AC_SUBST(HOME_DIR) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile man/en/Makefile]) AC_OUTPUT twpsk-4.3/NEWS0000644000175000017500000000031512274555411010155 00000000000000twpsk -- History of visible changes. Copyright (C) 1999-2014, Ted Williams, wa0eir See the end for copying conditions. Please send twpsk bug reports to wa0eir@wa0eir.bcts.info twpsk-4.3/twpsk.desktop0000644000175000017500000000033412162137775012227 00000000000000[Desktop Entry] Name=twpsk Name[en_US]=twpsk Comment=PSK31 for Linux with a openMotif GUI Comment[en_US]=PSK31 for Linux with a openMotif GUI Exec=twpsk Icon=twpsk.png Terminal=false Type=Application Categories=HamRadio twpsk-4.3/src/0000775000175000017500000000000013142420757010327 500000000000000twpsk-4.3/src/psk31.cod0000644000175000017500000000525412162137774011710 000000000000001010101011 1011011011 1011101101 1101110111 1011101011 1101011111 1011101111 1011111101 1011111111 11101111 11101 1101101111 1011011101 11111 1101110101 1110101011 1011110111 1011110101 1110101101 1110101111 1101011011 1101101011 1101101101 1101010111 1101111011 1101111101 1110110111 1101010101 1101011101 1110111011 1011111011 1101111111 1 111111111 101011111 111110101 111011011 1011010101 1010111011 101111111 11111011 11110111 101101111 111011111 1110101 110101 1010111 110101111 10110111 10111101 11101101 11111111 101110111 101011011 101101011 110101101 110101011 110110111 11110101 110111101 111101101 1010101 111010111 1010101111 1010111101 1111101 11101011 10101101 10110101 1110111 11011011 11111101 101010101 1111111 111111101 101111101 11010111 10111011 11011101 10101011 11010101 111011101 10101111 1101111 1101101 101010111 110110101 101011101 101110101 101111011 1010101101 111110111 111101111 111111011 1010111111 101101101 1011011111 1011 1011111 101111 101101 11 111101 1011011 101011 1101 111101011 10111111 11011 111011 1111 111 111111 110111111 10101 10111 101 110111 1111011 1101011 11011111 1011101 111010101 1010110111 110111011 1010110101 1011010111 1110110101 1110111101 1110111111 1111010101 1111010111 1111011011 1111011101 1111011111 1111101011 1111101101 1111101111 1111110101 1111110111 1111111011 1111111101 1111111111 10101010101 10101010111 10101011011 10101011101 10101011111 10101101011 10101101101 10101101111 10101110101 10101110111 10101111011 10101111101 10101111111 10110101011 10110101101 10110101111 10110110101 10110110111 10110111011 10110111101 10110111111 10111010101 10111010111 10111011011 10111011101 10111011111 10111101011 10111101101 10111101111 10111110101 10111110111 10111111011 10111111101 10111111111 11010101011 11010101101 11010101111 11010110101 11010110111 11010111011 11010111101 11010111111 11011010101 11011010111 11011011011 11011011101 11011011111 11011101011 11011101101 11011101111 11011110101 11011110111 11011111011 11011111101 11011111111 11101010101 11101010111 11101011011 11101011101 11101011111 11101101011 11101101101 11101101111 11101110101 11101110111 11101111011 11101111101 11101111111 11110101011 11110101101 11110101111 11110110101 11110110111 11110111011 11110111101 11110111111 11111010101 11111010111 11111011011 11111011101 11111011111 11111101011 11111101101 11111101111 11111110101 11111110111 11111111011 11111111101 11111111111 101010101011 101010101101 101010101111 101010110101 101010110111 101010111011 101010111101 101010111111 101011010101 101011010111 101011011011 101011011101 101011011111 101011101011 101011101101 101011101111 101011110101 101011110111 101011111011 101011111101 101011111111 101101010101 101101010111 101101011011 twpsk-4.3/src/twpskHelp.h0000644000175000017500000000302713142417212012371 00000000000000#ifndef INCLUDE_HELP_H #define INCLUDE_HELP_H /* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #define WIN_TITLE "TWPSK HELP" #define NUM_TOPICS 11 #define PBWIDTH 80 #define FIND_AGN 0 #define THIS_SECTION 1 #define ALL_SECTIONS 2 class Help { private: Widget shell, pbform, findPB, closePB; static void popdownCB (Widget w, XtPointer cdata, XtPointer cbs); static void popupFindCB (Widget w, XtPointer cdata, XtPointer cbs); static void doFindCB (Widget w, XtPointer cdata, XtPointer cbs); static void noMatchDiag (); static char *findNoCase (char *text, char *pattern); public: Help () { /* Constructor */ } void setShell (Widget sh) { shell = sh; } void popupHelp (int topicNum); }; #endif twpsk-4.3/src/twpskWids.C0000644000175000017500000013074413142417360012355 00000000000000/* * twpsk: A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * widgets.C * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #include "GUI.h" #include "twpskWids.h" #include "twpskWF.h" #include "icons/sa.xbm" #include "icons/wf.xbm" extern Scope scope; extern Disp disp; extern Wids pskwids; extern XtAppContext ac; extern Pixel lightBG, darkBG; extern int use_stereo; #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) extern Pixmap pixmap; #endif /* * buildWidgets Method * Creates all of the widgets for the interface */ void Wids::buildWidgets (Widget shell, AppRes *appRes) { Dimension d1, d2; /* * mainForm - main form */ mainForm = XtVaCreateWidget ("mainForm", xmFormWidgetClass, shell, XmNverticalSpacing, SPACE_B, XmNhorizontalSpacing, SPACE_B, NULL); /* * label1 - callsign label */ label1 = XtVaCreateManagedWidget ("label1", xmLabelWidgetClass, mainForm, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * menubar - menubar and submenus */ menuBar = XmCreateMenuBar (mainForm, (char *)"menuBar", NULL, 0); /* All bar buttons get the tear off treatment */ XtSetArg (args[i], XmNtearOffModel, XmTEAR_OFF_ENABLED); i++; fileMenu = XmCreatePulldownMenu (menuBar, (char *)"filePulldown", args, i); controlsMenu = XmCreatePulldownMenu (menuBar, (char *)"controlsPulldown", args, i); seekMenu = XmCreatePulldownMenu (menuBar, (char *)"SeekPulldown", args, i); /* * File Cascade Button and submenu buttons */ fileCas = XtVaCreateManagedWidget ("File", xmCascadeButtonWidgetClass, menuBar, XmNmnemonic, 'F', XmNsubMenuId, fileMenu, NULL); /* Create button to match filenames in resource - appRes->buttonNames */ createButtons (shell, appRes->buttonNames); /* * Controls Cascade Button and submenu buttons */ controlsCas = XtVaCreateManagedWidget ("Controls", xmCascadeButtonWidgetClass, menuBar, XmNmnemonic, 'C', XmNsubMenuId, controlsMenu, NULL); XmStringFree (xs[0]); /* Video menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-V"); videoBtn = XtVaCreateManagedWidget("Video", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlV", XmNacceleratorText, xs[0], XmNmnemonic, 'V', NULL); XmStringFree (xs[0]); /* Separator */ sep = XtVaCreateManagedWidget("sep", xmSeparatorWidgetClass, controlsMenu, NULL); /* Recv menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-R"); rxBtn = XtVaCreateManagedWidget("Recv", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlR", XmNacceleratorText, xs[0], XmNmnemonic, 'R', NULL); XmStringFree (xs[0]); /* Xmit menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-X"); txBtn = XtVaCreateManagedWidget("Xmit", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlX", XmNacceleratorText, xs[0], XmNmnemonic, 'X', NULL); XmStringFree (xs[0]); /* Tune menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-T"); tuneBtn = XtVaCreateManagedWidget("Tune", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlT", XmNacceleratorText, xs[0], XmNmnemonic, 'T', NULL); XmStringFree (xs[0]); /* Separator */ sep = XtVaCreateManagedWidget("sep", xmSeparatorWidgetClass, controlsMenu, NULL); /* Broad menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-B"); broadBtn = XtVaCreateManagedWidget("Broad", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlB", XmNacceleratorText, xs[0], XmNmnemonic, 'B', NULL); XmStringFree (xs[0]); /* Medium menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-M"); mediumBtn = XtVaCreateManagedWidget("Medium", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlM", XmNacceleratorText, xs[0], XmNmnemonic, 'M', NULL); XmStringFree (xs[0]); /* Narrow menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-N"); narrowBtn = XtVaCreateManagedWidget("Narrow", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlN", XmNacceleratorText, xs[0], XmNmnemonic, 'N', NULL); XmStringFree (xs[0]); /* Separator */ sep = XtVaCreateManagedWidget("sep", xmSeparatorWidgetClass, controlsMenu, NULL); /* Spectrum menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-S"); saBtn = XtVaCreateManagedWidget("Spectrum", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlS", XmNacceleratorText, xs[0], XmNmnemonic, 'S', NULL); XmStringFree (xs[0]); /* Waterfall menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-W"); wfBtn = XtVaCreateManagedWidget("Waterfall", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlW", XmNacceleratorText, xs[0], XmNmnemonic, 'W', NULL); XmStringFree (xs[0]); /* Waterfall direction menu toggle button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-F"); wfDirTB = XtVaCreateManagedWidget ("Flow Up", xmToggleButtonWidgetClass, controlsMenu, XmNvisibleWhenOff, True, XmNindicatorType, XmN_OF_MANY, XmNaccelerator, "CtrlF", XmNacceleratorText, xs[0], //TJW we have two F's? ... if you count the main menu //XmNmnemonic, 'F', NULL); XmStringFree (xs[0]); disp.setWF_up (XmToggleButtonGetState (wfDirTB)); /* Separator */ sep = XtVaCreateManagedWidget("sep", xmSeparatorWidgetClass, controlsMenu, NULL); /* Local Caps menu toggle button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-L"); localCapsTB = XtVaCreateManagedWidget ("Local Caps", xmToggleButtonWidgetClass, controlsMenu, XmNvisibleWhenOff, True, XmNindicatorType, XmN_OF_MANY, XmNaccelerator, "CtrlL", XmNacceleratorText, xs[0], XmNmnemonic, 'L', NULL); XmStringFree (xs[0]); pskwids.setDoLocalCaps (XmToggleButtonGetState (localCapsTB)); /* Separator */ sep = XtVaCreateManagedWidget("sep", xmSeparatorWidgetClass, controlsMenu, NULL); /* Decoder window */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-O"); openBtn = XtVaCreateManagedWidget("Open Decoder", xmPushButtonWidgetClass, controlsMenu, XmNaccelerator, "CtrlO", XmNacceleratorText, xs[0], XmNmnemonic, 'O', NULL); XmStringFree (xs[0]); /* End of Controls Menu */ /* * Seek Cascade Button and submenu. */ seekCas = XtVaCreateManagedWidget ((char *)"Seek", xmCascadeButtonWidgetClass, menuBar, XmNmnemonic, 'S', XmNsubMenuId, seekMenu, NULL); /* Seek Up menu button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-U"); upBtn = XtVaCreateManagedWidget("Up", xmPushButtonWidgetClass, seekMenu, XmNaccelerator, "CtrlU", XmNacceleratorText, xs[0], XmNmnemonic, 'U', NULL); XmStringFree (xs[0]); /* Seek Down button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-D"); downBtn = XtVaCreateManagedWidget("Down", xmPushButtonWidgetClass, seekMenu, XmNaccelerator, "CtrlD", XmNacceleratorText, xs[0], XmNmnemonic, 'D', NULL); XmStringFree (xs[0]); /* Seek Halt button */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-H"); haltBtn = XtVaCreateManagedWidget("Halt", xmPushButtonWidgetClass, seekMenu, XmNaccelerator, "CtrlH", XmNacceleratorText, xs[0], XmNmnemonic, 'H', NULL); XmStringFree (xs[0]); /* Help Menu Button */ helpCas = XtVaCreateManagedWidget ("Help", xmCascadeButtonWidgetClass, menuBar, XmNmnemonic, 'H', XmNsubMenuId, helpMenu, NULL); /* * Help Cascade Button and submenu */ i = 0; xs[i] = XmStringCreateLocalized ((char *)"About"); i++; xs[i] = XmStringCreateLocalized ((char *)"Introduction"); i++; xs[i] = XmStringCreateLocalized ((char *)"Menu Bar"); i++; xs[i] = XmStringCreateLocalized ((char *)"Help Windows"); i++; xs[i] = XmStringCreateLocalized ((char *)"Main Window"); i++; xs[i] = XmStringCreateLocalized ((char *)"Tuning"); i++; xs[i] = XmStringCreateLocalized ((char *)"Secondary Windows"); i++; xs[i] = XmStringCreateLocalized ((char *)"Sending Files"); i++; xs[i] = XmStringCreateLocalized ((char *)"Macros Commands"); i++; xs[i] = XmStringCreateLocalized ((char *)"Resources"); i++; xs[i] = XmStringCreateLocalized ((char *)"Accelerator Keys"); i++; helpMenu = XmVaCreateSimplePulldownMenu (menuBar, (char *)"helpMenu", 3, helpCB, XmVaPUSHBUTTON, xs[0], 'A', NULL, NULL, XmVaPUSHBUTTON, xs[1], 'I', NULL, NULL, XmVaPUSHBUTTON, xs[2], 'B', NULL, NULL, XmVaPUSHBUTTON, xs[3], 'H', NULL, NULL, XmVaPUSHBUTTON, xs[4], 'M', NULL, NULL, XmVaPUSHBUTTON, xs[5], 'T', NULL, NULL, XmVaPUSHBUTTON, xs[6], 'W', NULL, NULL, XmVaPUSHBUTTON, xs[7], 'S', NULL, NULL, XmVaPUSHBUTTON, xs[8], 'C', NULL, NULL, XmVaPUSHBUTTON, xs[9], 'R', NULL, NULL, XmVaPUSHBUTTON, xs[10], 'K', NULL, NULL, NULL); for (j=0; jafc); /* * rxComboForm - for recv controls - freq, up/down, and AFC */ genFrame = XtVaCreateManagedWidget ("genFrame",xmFrameWidgetClass, controlsRC, XmNshadowType, XmSHADOW_ETCHED_IN, XmNshadowThickness, 3, NULL); rxComboForm = XtVaCreateWidget ("rxComboForm", xmFormWidgetClass, genFrame, XmNverticalSpacing, SPACE_A, XmNhorizontalSpacing, SPACE_A, NULL); /* * rxFreqText - Recv Freq Textfield */ if (appRes->rxFreq == 0.0) appRes->rxFreq = 1000.0; commControl(COMM_RXCH, COMM_FREQ, (int)(appRes->rxFreq*100)); sprintf (str, "%4.1f", appRes->rxFreq); rxFreqTF = XtVaCreateManagedWidget ("rxFreqText", xmTextFieldWidgetClass, rxComboForm, XmNuserData, (XtPointer) 'R', XmNshadowThickness, 0, XmNmaxLength, 6, XmNcolumns, 6, XmNmarginHeight, 10, XmNvalue, str, XmNtopAttachment,XmATTACH_FORM, XmNbottomAttachment,XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_NONE, NULL); /* * rxUpArrow - Arrow button for rx freq Up */ rxUpArrow = XtVaCreateManagedWidget ("rxUpArrow", xmArrowButtonWidgetClass, rxComboForm, XmNuserData, (XtPointer) 'R', XmNshadowThickness, 0, XmNwidth, ARROW_WIDTH, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 50, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, rxFreqTF, XmNrightAttachment, XmATTACH_NONE, NULL); /* * rxDownArrow - Arrow button for rx freq Down */ rxDnArrow = XtVaCreateManagedWidget ("rxUpArrow", xmArrowButtonWidgetClass, rxComboForm, XmNuserData, (XtPointer) 'R', XmNshadowThickness, 0, XmNwidth, ARROW_WIDTH, XmNarrowDirection, XmARROW_DOWN, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 50, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, rxFreqTF, XmNrightAttachment, XmATTACH_NONE, NULL); /* * afcTB - Create Toggle button for AFC and set to start up value */ afcTB = XtVaCreateManagedWidget ("AFC", xmToggleButtonWidgetClass, rxComboForm, XmNset, appRes->afc, XmNalignment, XmALIGNMENT_BEGINNING, XmNshadowThickness, 0, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, rxUpArrow, XmNrightAttachment, XmATTACH_FORM, NULL); /* Sync class with widget */ commControl(COMM_RXCH, COMM_AFC, appRes->afc); /* * txLabel - label for tx controls */ txLabel = XtVaCreateManagedWidget ("Tx Freq", xmLabelWidgetClass, controlsRC, NULL); /* * txComboForm - for xmit controls - freq, up/down, and Net */ genFrame = XtVaCreateManagedWidget ("genFrame",xmFrameWidgetClass, controlsRC, XmNshadowType, XmSHADOW_ETCHED_IN, XmNshadowThickness, 3, NULL); txComboForm = XtVaCreateWidget ("txComboForm", xmFormWidgetClass, genFrame, XmNverticalSpacing, SPACE_A, XmNhorizontalSpacing, SPACE_A, NULL); /* * txFreqText - Xmit freq Text Field */ if (appRes->txFreq == 0.0) appRes->txFreq = 1000.0; sprintf (str, "%4.1f", appRes->txFreq); txFreqTF = XtVaCreateManagedWidget ("txFreqText", xmTextFieldWidgetClass, txComboForm, XmNshadowThickness, 0, XmNuserData, (XtPointer) 'T', XmNmaxLength, 6, XmNcolumns, 6, XmNmarginHeight, 10, XmNvalue, str, XmNtopAttachment,XmATTACH_FORM, XmNbottomAttachment,XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_NONE, NULL); /* * txUpArrow - Arrow button for tx freq Up */ txUpArrow = XtVaCreateManagedWidget ("txUpArrow", xmArrowButtonWidgetClass, txComboForm, XmNuserData, (XtPointer) 'T', XmNshadowThickness, 0, XmNwidth, ARROW_WIDTH, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 50, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, txFreqTF, XmNrightAttachment, XmATTACH_NONE, NULL); /* * txDownArrow - Arrow button for tx freq Down */ txDnArrow = XtVaCreateManagedWidget ("txUpArrow", xmArrowButtonWidgetClass, txComboForm, XmNuserData, (XtPointer) 'T', XmNshadowThickness, 0, XmNwidth, ARROW_WIDTH, XmNarrowDirection, XmARROW_DOWN, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 50, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, txFreqTF, XmNrightAttachment, XmATTACH_NONE, NULL); /* * netTB - Toggle button for NET */ netTB = XtVaCreateManagedWidget ("NET", xmToggleButtonWidgetClass, txComboForm, XmNset, appRes->net, XmNshadowThickness, 0, XmNalignment, XmALIGNMENT_BEGINNING, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, txUpArrow, XmNrightAttachment, XmATTACH_FORM, NULL); /* Sync class with widget */ setNetmode (appRes->net); /* * trLabel - label for xmit/rec/tune controls */ trLabel = XtVaCreateManagedWidget ("T/R Controls", xmLabelWidgetClass, controlsForm, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, controlsRC, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * trRB - Radio Box for xmit/recv/tune mode controls */ trRB = XmCreateRadioBox (controlsForm, (char *)"trRB", NULL, 0); XtVaSetValues (trRB, XmNspacing, 10, XmNorientation, XmHORIZONTAL, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, trLabel, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * rxTB - Recv toggle button * The rx, tx, and tune togglebuttons have the indicator OFF * and the shadow thickness = 2, so they look like regular * push buttons. */ rxTB = XtVaCreateManagedWidget ("Recv", xmToggleButtonWidgetClass, trRB, XmNset, True, XmNindicatorOn, False, XmNshadowThickness, 3, XmNmnemonic, 'R', NULL); /* * txTB - Xmit toggle button */ txTB = XtVaCreateManagedWidget ("Xmit", xmToggleButtonWidgetClass, trRB, XmNindicatorOn, False, XmNshadowThickness, 3, XmNmnemonic, 'X', NULL); /* * tuneTB - Xmit toggle button */ tuneTB = XtVaCreateManagedWidget ("Tune", xmToggleButtonWidgetClass, trRB, XmNindicatorOn, False, XmNshadowThickness, 3, XmNmnemonic, 'T', NULL); /* * frame for modes */ f3 = XtVaCreateWidget ("f3", xmFrameWidgetClass, bottomForm, XmNshadowThickness, 3, XmNshadowType, XmSHADOW_OUT, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, f2, XmNrightAttachment, XmATTACH_NONE, NULL); /* * modesRC - row column for DCD, QPSK, LSB, and CW ID toggle buttons, * and IMD display */ modesRC = XtVaCreateWidget ("modesRC", xmRowColumnWidgetClass, f3, XmNisAligned, False, XmNadjustMargin, False, XmNadjustLast, False, XmNspacing, 8 * SPACE_A, XmNmarginHeight, 6, XmNmarginWidth, 6, NULL); /* * modeLabel - label for mode buttons */ modeLabel = XtVaCreateManagedWidget ("Modes", xmLabelWidgetClass, modesRC, XmNalignment, XmALIGNMENT_CENTER, NULL); /* * dcdTB - DCD toggle button */ dcdTB = XtVaCreateManagedWidget ("DCD", xmToggleButtonWidgetClass, modesRC, XmNalignment, XmALIGNMENT_END, XmNset, 0, XmNshadowThickness, 3, NULL); commControl(COMM_RXCH, COMM_DCDLEVEL, 15); /* 15 seems to work nicely! */ /* * qpsk - enables Qpsk mode when on * defaults to off state, unless set in resource file */ qpskTB = XtVaCreateManagedWidget ("QPSK", xmToggleButtonWidgetClass, modesRC, XmNalignment, XmALIGNMENT_END, XmNshadowThickness, 3, NULL); /* * sbTB - enables LSB mode when on * defaults to off state, unless set in resource file */ lsbTB = XtVaCreateManagedWidget ("LSB", xmToggleButtonWidgetClass, modesRC, XmNalignment, XmALIGNMENT_END, XmNshadowThickness, 3, NULL); /* * cwidTB - enables CW ID mode when on */ cwidTB = XtVaCreateManagedWidget ("CW ID", xmToggleButtonWidgetClass, modesRC, XmNalignment, XmALIGNMENT_END, XmNshadowThickness, 3, NULL); /* * imdFrame - frame for IMD display so it looks like a button */ imdFrame = XtVaCreateWidget ("imdFrame", xmFrameWidgetClass, modesRC, XmNshadowThickness, 3, XmNshadowType, XmSHADOW_OUT, NULL); /* * imdForm - form for IMD display */ imdForm = XtVaCreateWidget ("imdForm", xmFormWidgetClass, imdFrame, NULL); /* * imdTF - textfield for IMD display */ imdTF = XtVaCreateManagedWidget ("imdTF", xmTextFieldWidgetClass, imdForm, XmNmarginHeight, 2, /* this makes IMD box the same size as the others */ XmNcolumns, 3, XmNshadowThickness, 0, XmNvalue, "---", XmNcursorPositionVisible, False, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_NONE, NULL); /* * imdLabel - label for IMD display */ imdLabel = XtVaCreateManagedWidget ("IMD", xmLabelWidgetClass, imdForm, XmNshadowThickness, 0, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, imdTF, XmNrightAttachment, XmATTACH_FORM, NULL); /* * Sync classes with lsb and qpsk widgets. They are not set in * resource file, but just in case. */ XtVaGetValues(lsbTB, XmNset, &lsb, NULL); XtVaGetValues(qpskTB, XmNset, &qpsk, NULL); commControl(COMM_TXCH, COMM_QPSK, qpsk); commControl(COMM_RXCH, COMM_QPSK, qpsk); commControl(COMM_TXCH, COMM_LSB, lsb); commControl(COMM_RXCH, COMM_LSB, lsb); f4 = XtVaCreateWidget ("f4", xmFrameWidgetClass, mainForm, XmNshadowThickness, 5, XmNshadowType, XmSHADOW_IN, XmNtopAttachment, XmATTACH_NONE, XmNbottomAttachment, XmATTACH_WIDGET, XmNbottomWidget, bottomForm, XmNleftAttachment, XmATTACH_FORM, NULL); /* * wfDA - water fall drawing area */ wfDA = XtVaCreateWidget ("wfDA", xmDrawingAreaWidgetClass, f4, XmNheight, WF_HEIGHT, XmNwidth, WF_WIDTH, XmNbackground, BlackPixelOfScreen (XtScreen (shell)), XmNtraversalOn, False, NULL); /* * paneWin - paned window for rx and tx text wids.` */ paneWin = XtVaCreateWidget ( "paneWin", xmPanedWindowWidgetClass, mainForm, XmNbottomOffset, 2 * SPACE_B, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, menuBar, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_WIDGET, XmNbottomWidget, wfDA, NULL); /* * rxTextSW - Receive Text Scrolled Window */ rxTextSW = XtVaCreateWidget ("rxTextSW", xmScrolledWindowWidgetClass, paneWin, NULL); /* rxText - text widget for received data */ rxText = XtVaCreateManagedWidget ("rxText", xmTextWidgetClass, rxTextSW, XmNeditMode, XmMULTI_LINE_EDIT, XmNshadowThickness, 3, XmNhighlightThickness, 2, XmNeditable, False, XmNwordWrap, True, XmNcursorPositionVisible, False, XmNautoShowCursorPosition, False, XmNscrollHorizontal, False, XmNuserData, (XtPointer)this, NULL); /* * txTextSW - Transmit Text Scrolled Window */ txTextSW = XtVaCreateWidget ("txTextSW", xmScrolledWindowWidgetClass, paneWin, NULL); /* txText widget - text widget for transmit data */ txText = XtVaCreateManagedWidget ("txText", xmTextWidgetClass, txTextSW, XmNeditMode, XmMULTI_LINE_EDIT, XmNeditable, True, XmNwordWrap, True, XmNshadowThickness, 3, XmNhighlightThickness, 2, XmNblinkRate, 0, XmNscrollHorizontal, False, NULL); /* * Set up rxScrollFlag for normal and scroll mode */ rxScrollFlag = 0; /* rxText scrolling off */ XtVaGetValues (rxTextSW, /* get scrollbar widget */ XmNverticalScrollBar, &rxScrollBar, /* for adding to callbacks */ NULL); /* * End of main window */ /* * videoDiag - create the display dialog/form and its children */ videoDiag = XmCreateFormDialog (shell, (char *)"videoDiag", NULL, 0); XtVaSetValues (videoDiag, XmNverticalSpacing, SPACE_B, XmNhorizontalSpacing, SPACE_B, NULL); XtVaSetValues (XtParent (videoDiag), XmNtitle, "TWPSK VIDEO", #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) XmNiconPixmap, pixmap, #endif XmNmwmDecorations, MWM_DECOR_ALL | MWM_DECOR_RESIZEH, NULL); /* * wfControlsLabel - label for Brightness control */ videoLabel = XtVaCreateManagedWidget ("Video Controls", xmLabelWidgetClass, videoDiag, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * videoFrame - frame for video controls */ videoFrame = XtVaCreateManagedWidget ("videoFrame", xmFrameWidgetClass, videoDiag, XmNshadowThickness, 3, XmNshadowType, XmSHADOW_OUT, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, videoLabel, XmNbottomWidget, XmATTACH_NONE, XmNrightAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, NULL); videoForm = XtVaCreateManagedWidget ("videoForm", xmFormWidgetClass, videoFrame, XmNverticalSpacing, SPACE_B, XmNhorizontalSpacing, SPACE_B, NULL); /* * brightLabel - label for Brightness control */ brightLabel = XtVaCreateManagedWidget ("Brightness", xmLabelWidgetClass, videoForm, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * brightScale - fft display brightness */ brightScale = XtVaCreateManagedWidget ("brightScale", xmScaleWidgetClass, videoForm, XmNorientation, XmHORIZONTAL, XmNshowValue, True, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, brightLabel, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); XtVaGetValues (brightScale, XmNvalue, &brightness, NULL); disp.brightness = brightness; /* * fftLabel - label for fft control */ fftLabel = XtVaCreateManagedWidget ("Display Speed", xmLabelWidgetClass, videoForm, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, brightScale, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * fftScale - sets speed of display */ fftScale = XtVaCreateManagedWidget ("fftSpeedScale", xmScaleWidgetClass, videoForm, XmNorientation, XmHORIZONTAL, XmNshowValue, True, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, fftLabel, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * Get the value set by the resource file for the fft setup */ XtVaGetValues (fftScale, XmNvalue, &fftSpeed, NULL); /* * displayCloseBtn - close button */ displayCloseBtn = XtVaCreateManagedWidget ("Close", xmPushButtonWidgetClass, videoDiag, XmNtopAttachment, XmATTACH_WIDGET, XmNtopOffset, SPACE_B, XmNtopWidget, fftScale, XmNbottomAttachment, XmATTACH_FORM, XmNbottomOffset, SPACE_B, XmNleftAttachment, XmATTACH_FORM, XmNleftOffset, 5 * SPACE_B, XmNrightAttachment, XmATTACH_FORM, XmNrightOffset, 5 * SPACE_B, NULL); /* * Create two popup menus for clearing rx and tx text widgets */ i = 0; xs[i] = XmStringCreateLocalized ((char *)"Rx Text"); i++; xs[i] = XmStringCreateLocalized ((char *)"Tx Text"); i++; xs[i] = XmStringCreateLocalized ((char *)"Clear"); i++; xs[i] = XmStringCreateLocalized ((char *)"Ctrl-C"); i++; clrRxPopup = XmVaCreateSimplePopupMenu(rxTextSW, (char *)"clrRx", clrTextCB, XmVaTITLE, xs[0], XmVaSEPARATOR, XmVaPUSHBUTTON, xs[2], 'C', (char *)"Ctrlc", xs[3], NULL); XtVaSetValues (clrRxPopup, /* userdata is text wid to clear */ XmNuserData, (XtPointer)rxText, NULL); clrTxPopup = XmVaCreateSimplePopupMenu(txTextSW, (char*)"clrTx", clrTextCB, XmVaTITLE, xs[1], XmVaSEPARATOR, XmVaPUSHBUTTON, xs[2], 'C', (char *)"Ctrlc", xs[3], NULL); /* * patch for mouse grab bug in xorg that grabed the * clear tx popup window and wouldn't let go - fixed now */ #if 0 #if XmVersion >= 2000 fprintf (stderr, "newer XmVersion %d\n", XmVersion); XtVaSetValues (clrTxPopup, XmNpopupEnabled, XmPOPUP_DISABLED, NULL); XtUngrabButton (txTextSW, AnyButton, AnyModifier); #else fprintf (stderr, "older XmVersion %d\n", XmVersion); XtVaSetValues (clrTxPopup, XmNpopupEnabled, False, NULL); #endif #endif XtVaSetValues (clrTxPopup, /* userdata is text wid to clear */ XmNuserData, txText, NULL); for (j=0; j MAX_BUTTONS) { /* * There are too many button names in Twpsk, so realize * the shell and popup an error dialog */ fprintf (stderr,"Too many file names defined in Twpsk\n"); exit (0); } /* * Create the buttons for the File pulldown */ for (i=0; i"); strcat (file_acc_key, file_acc_num); fileBtns = XtVaCreateManagedWidget(buttonNames[i], xmPushButtonWidgetClass, fileMenu, XmNaccelerator, file_acc_key, XmNacceleratorText, xs[0], XmNuserData, (XtPointer) buttonNames[i], /*button name */ NULL); XmStringFree (xs[0]); XtAddCallback (fileBtns, XmNactivateCallback, fileCB, (XtPointer) shell); } /* * Now create a seperator and the QRT button, and its callback */ sep = XtVaCreateManagedWidget ("sep", xmSeparatorWidgetClass, fileMenu, NULL); sep = sep; /* TJW silence the compiler error */ xs[0] = XmStringCreateLocalized ((char *)"Ctrl-Q"); QRT = XtVaCreateManagedWidget("QRT",xmPushButtonWidgetClass,fileMenu, XmNaccelerator, "CtrlQ", XmNacceleratorText, xs[0], XmNmnemonic, 'Q', XmNmnemonicCharSet, XmFONTLIST_DEFAULT_TAG, NULL); XmStringFree (xs[0]); XtAddCallback (QRT, XmNactivateCallback, quitCB, (XtPointer) 0); } twpsk-4.3/src/Makefile.am0000644000175000017500000000350213044312647012300 00000000000000# Copyright (C) 1999-2014 Ted Williams (wa0eir) # # This file is free software; as a special exception the author 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. EXTRA_DIST = Twpsk psk31.cod icons twpskDir AM_CXXFLAGS = -Wall \ -DPKG_DATA_DIR=\"$(pkgdatadir)\" AM_LDFLAGS = @MOTIF_LIBS@ @X_LIBS@ @X_PRE_LIBS@ \ -lXt -lX11 @X_EXTRA_LIBS@ pixmapdir = $(datadir)/pixmaps pixmap_DATA = icons/twpsk.png appdefaultdir = @appdefaultdir@ dist_appdefault_DATA = Twpsk pkgdatadir = $(datadir)/twpsk pkgdata_DATA = psk31.cod pkgsubdir = $(datadir)/twpsk/twpskDir pkgsub_DATA = twpskDir/Brag twpskDir/LongCQ twpskDir/ShortCQ bin_PROGRAMS = twpsk twpsk_SOURCES = server/server.C server/server.h \ modes/psk31-coder.C modes/psk31-coder.h \ modes/psk31-fft.C modes/psk31-fft.h \ modes/psk31-receiver.C modes/psk31-receiver.h \ modes/psk31-transmitter.C modes/psk31-transmitter.h \ modes/hansis_fft.C modes/hansis_fft.h modes/coeff.h \ twpsk.C GUI.h callbox.C callbox.h \ decoderWids.C decoderWids.h twpskDiags.C \ twpskWF.C twpskWF.h twpskHelp.C twpskHelp.h helpText.h \ twpskWids.C twpskWids.h twpskCB.C twpskCB.h \ twpskScope.C twpskScope.h SHM.h twpsk-4.3/src/twpskHelp.C0000644000175000017500000002635113142416065012336 00000000000000/* * twpsk: A basic ham loging program using Motif * Copyright (C) 1999->2014 Ted Williams WA0EIR * * 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 recieved a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge. MA 02139, * USA. See the COPYING file in this directory. * * Version: 4.3 - Aug 2017 */ /* * Globals for help find */ #include "GUI.h" #include "twpskHelp.h" #include "helpText.h" #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) extern Pixmap pixmap; #endif char pattern[41]; /* pattern for help find */ Widget helpTxt, helpDiag, findAgnPB, topicLabel; int sec; char *found; /* * popupHelp Function * Created the first time it is called and then managed as needed. * Use the button number to index to the right help section. * Set for modeless so main interface is still active. */ void Help::popupHelp (int topicNum) { int i; XmString xs; Arg args[20]; if (helpDiag == NULL) { helpDiag = XmCreateFormDialog(shell, (char *)"helpDiag", NULL, 0); XtVaSetValues (helpDiag, XmNdialogStyle, XmDIALOG_MODELESS, NULL); XtVaSetValues (XtParent(helpDiag), XmNtitle, WIN_TITLE, /* set title bar */ #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) XmNiconPixmap, pixmap, #endif NULL); topicLabel = XtVaCreateManagedWidget ("topicLabel", xmLabelWidgetClass, helpDiag, XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_NONE, XmNrightAttachment, XmATTACH_FORM, NULL); pbform = XtVaCreateWidget ("pbform", xmFormWidgetClass, helpDiag, XmNwidth, 500, XmNtopAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); findPB = XtVaCreateManagedWidget ("Find", xmPushButtonWidgetClass, pbform, XmNwidth, PBWIDTH, XmNtopAttachment, XmATTACH_FORM, XmNtopOffset, 10, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 10, XmNbottomAttachment, XmATTACH_FORM, XmNbottomOffset, 10, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 20, NULL); findAgnPB = XtVaCreateManagedWidget ("Find Again", xmPushButtonWidgetClass, pbform, XmNsensitive, False, XmNwidth, PBWIDTH, XmNtopAttachment, XmATTACH_FORM, XmNtopOffset, 10, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 50, XmNleftOffset, -PBWIDTH / 2, XmNbottomAttachment, XmATTACH_FORM, XmNbottomOffset, 10, NULL); closePB = XtVaCreateManagedWidget ("Close", xmPushButtonWidgetClass, pbform, XmNwidth, PBWIDTH, XmNtopAttachment, XmATTACH_FORM, XmNtopOffset, 10, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 80, XmNbottomAttachment, XmATTACH_FORM, XmNbottomOffset, 10, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 90, NULL); XtManageChild (pbform); i=0; XtSetArg (args[i], XmNrows, 12); i++; XtSetArg (args[i], XmNeditMode, XmMULTI_LINE_EDIT); i++; XtSetArg (args[i], XmNeditable, False); i++; XtSetArg (args[i], XmNscrollHorizontal, False); i++; XtSetArg (args[i], XmNwordWrap, True); i++; XtSetArg (args[i], XmNtopAttachment, XmATTACH_WIDGET); i++; XtSetArg (args[i], XmNtopWidget, topicLabel); i++; XtSetArg (args[i], XmNleftAttachment, XmATTACH_FORM); i++; XtSetArg (args[i], XmNbottomAttachment, XmATTACH_WIDGET); i++; XtSetArg (args[i], XmNbottomWidget, pbform); i++; XtSetArg (args[i], XmNrightAttachment, XmATTACH_FORM); i++; helpTxt = XmCreateScrolledText (helpDiag, (char *)"helpTxt", args, i); /* "Find" button callback */ XtAddCallback (findPB, XmNactivateCallback, popupFindCB, XtParent (helpDiag)); /* "Find Agn" button callback */ XtAddCallback (findAgnPB, XmNactivateCallback, doFindCB, (XtPointer) FIND_AGN); /* "Cancel" button callback */ XtAddCallback (closePB, XmNactivateCallback, popdownCB, helpDiag); XtManageChild (helpTxt); } /* Load the Help window label and text */ xs = XmStringCreateLtoR ((char *)helpTopics[topicNum], XmFONTLIST_DEFAULT_TAG); XtVaSetValues (topicLabel, XmNlabelString, xs, NULL); XmStringFree (xs); /* save the section number and load the text wid with help */ sec = topicNum; XtVaSetValues (helpTxt, XmNvalue, helpText[topicNum], NULL); /* New find operation so... */ strcpy (pattern, ""); XtManageChild (helpDiag); /* pop it up */ } /* * popdownCB - popdown the help window */ void Help::popdownCB (Widget w, XtPointer cdata, XtPointer cbs) { XtVaSetValues (findAgnPB, XmNsensitive, False, NULL); XtUnmanageChild ((Widget) cdata); } /* * popupFindCB - popup the prompt dialog - The OK button and Apply buttons * are renamed "This Section" and "All Sections". */ void Help::popupFindCB (Widget w, XtPointer cdata, XtPointer cbs) { int i, j; static Widget promptDiag; XmString xms[3]; if (promptDiag == NULL) { promptDiag = XmCreatePromptDialog ((Widget)cdata, (char *)"promptDiag", NULL, 0); /* set title bar to WIN_TITLE */ XtVaSetValues (XtParent (promptDiag), XmNtitle, WIN_TITLE, #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) XmNiconPixmap, pixmap, #endif XmNmwmFunctions, MWM_FUNC_ALL | MWM_FUNC_CLOSE, NULL); /* * Unmanage the Help button and Manage the Apply button * Change there labels to "This Section" and "All Sections" */ XtUnmanageChild (XmSelectionBoxGetChild(promptDiag, XmDIALOG_HELP_BUTTON)); XtManageChild (XmSelectionBoxGetChild (promptDiag, XmDIALOG_APPLY_BUTTON)); /* Change the OK and APPLY button label to "This Section" */ i = 0; xms[i] = XmStringCreateLocalized ((char *)"This Section"); i++; xms[i] = XmStringCreateLocalized ((char *)"All Sections"); i++; xms[i] = XmStringCreateLocalized ((char *)"Enter Search String"); i++; XtVaSetValues (promptDiag, XmNokLabelString,xms[0], XmNapplyLabelString, xms[1], XmNselectionLabelString, xms[2], NULL); for (j=0; j= NUM_TOPICS) { sec = 1; } /* Load the Help window label and text */ xs = XmStringCreateLtoR ((char *)helpTopics[sec], XmFONTLIST_DEFAULT_TAG); XtVaSetValues (topicLabel, XmNlabelString, xs, NULL); XmStringFree (xs); /* Load the next section to the text widget */ XtVaSetValues (helpTxt, XmNvalue, helpText[sec], NULL); if (sec == start_sec) { noMatchDiag(); return; } doFindCB(w, FIND_AGN, cbs); } } } /* * noMatch Dialog */ void Help::noMatchDiag() { XmString xs; static Widget noMatchDiag; if (noMatchDiag == NULL) { noMatchDiag = XmCreateInformationDialog (XtParent(helpDiag), (char *)"noMatchError", NULL, 0); XtVaSetValues (XtParent(noMatchDiag), XmNtitle, WIN_TITLE, #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) XmNiconPixmap, pixmap, #endif XmNmwmDecorations, MWM_DECOR_ALL | MWM_DECOR_RESIZEH, NULL); xs = XmStringCreateLocalized ((char *)"String Not Found"); XtVaSetValues (noMatchDiag, XmNmessageAlignment, XmALIGNMENT_CENTER, XmNmessageString, xs, NULL); XmStringFree (xs); XtUnmanageChild (XmMessageBoxGetChild(noMatchDiag, XmDIALOG_HELP_BUTTON)); XtUnmanageChild (XmMessageBoxGetChild(noMatchDiag, XmDIALOG_CANCEL_BUTTON)); } XtVaSetValues (findAgnPB, XmNsensitive, False, NULL); XtManageChild (noMatchDiag); return; } /* * findNoCase - given a pattern and some text, search for * the pattern, ignoring case. */ char* Help::findNoCase (char *text, char *pattern) { char c, sc; int len; if ((c = *pattern++) != 0) { c = tolower(c); len = strlen(pattern); do { do { if ((sc = *text++) == 0) return NULL; } while (tolower(sc) != c); } while (strncasecmp(text, pattern, len) != 0); text--; } return (char *)text; } twpsk-4.3/src/callbox.h0000644000175000017500000000256013142417032012035 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #ifndef INCLUDE_CALLBOX_H #define INCLUDE_CALLBOX_H #include "GUI.h" #include #include #include #define HEIGHT 120 #define WIDTH 90 /* * Callbox class */ class Callbox { private: int shmid; /* IPC ID for shared memory */ Widget callShell, callBox, clearPB, callTF; static void clearCB (Widget w, XtPointer cdata, XtPointer cbs); static void callCB (Widget w, XtPointer cdata, XtPointer cbs); public: Callbox (Widget shell); void quiet() {}; }; #endif twpsk-4.3/src/twpskCB.C0000644000175000017500000010374213142416000011717 00000000000000 /* twpsk: PSK31 for Linux with a Motif interface * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #include "twpskCB.h" #include "GUI.h" #include "twpskWids.h" #include "twpskWF.h" #include "twpskScope.h" #include "server/server.h" #include "decoderWids.h" #include #include extern XtAppContext ac; extern AppRes appRes; extern Position winlocs[MAX_DECODERS][2]; extern Wids pskwids; extern TwpskCB twpskCB; extern Disp disp; extern Scope scope; extern int use_stereo; extern int init_audio(); extern Widget shell; Pixel darkBG, lightBG; enum { MODE_RX, MODE_TX, MODE_TUNE }; int rxtxmode=MODE_RX; /* * appendRXtext - not really a callback, but fit well here. * adds characters to the end of the RX text widget * and puts cursor to the last position. Called by workProc() * userData is the widget id of the scrollbar. * * Underline == 1 to underline transmitted text. */ void appendRXtext (Widget w, char ch, int zero, XmHighlightMode highlight_mode) { char str[2]; XmTextPosition lastPos; int flag; XtPointer *obj = NULL; DecoderWid *dec; /* build a string as keyed or as caps if doLocalCaps == TRUE */ if (pskwids.getDoLocalCaps () == TRUE) /* do local caps? */ { str[0] = toupper(ch); /* Build as caps */ } else { str[0] = ch; /* build as keyed */ } str[1] = '\0'; XmTextDisableRedisplay (w); /* stop redisplay */ lastPos = XmTextGetLastPosition(w); if (str[0] == '0' && zero == 1) /* Print slashed zero? */ { str[0] = '\330'; } if (str[0] == 0x7F || str[0] == '\b') /* If a DEL or BS char */ { XmTextReplace (w, lastPos-1, lastPos, (char *)"\0"); } else { XmTextInsert (w, lastPos, str); #if 0 fprintf (stdout, "%s\n", str); #endif } /* get the object and check its rxScrollFlag field */ XtVaGetValues (w, XmNuserData, &obj, NULL); if (obj == (XtPointer)&pskwids) /* for main window */ { flag = pskwids.getRxScrollFlag(); } else { dec = (DecoderWid *) obj; /* for secondary window */ flag = dec->getRxScrollFlag(); } if (flag != SCROLLING) { XmTextShowPosition (w, lastPos+1); XmTextSetCursorPosition (w, lastPos+1); } /* * highlight text according to highlight_mode */ if (str[0] != '\n') { XmTextSetHighlight(w, lastPos, lastPos+1, highlight_mode); } XmTextEnableRedisplay (w); } /* * appendTXtext - not really a callback, but fit well here. * Adds characters to the end of the TX text widget * Called by procMacroText and procFileData work proceedure. */ void appendTXtext (char ch, int zero) { Widget w = pskwids.getTxText(); char str[2]; XmTextPosition lastPos; str[0] = ch; /* Build a string */ str[1] = '\0'; #if 0 if (str[0] == '0' && zero == 1) /* print slashed zero? */ { //TJW //str[0] = '\330'; str[0] = '0'; } #endif lastPos = XmTextGetLastPosition(w); XmTextSetCursorPosition (w, lastPos); /* keep cursor at the end */ XmTextInsert (w, lastPos, str); } /* * Callbacks */ /* * controlsBtnCB - callback for Recv, Xmit, Tune, * Wide, Medium, Narrow, Waterfall and Spectrum * menu buttons. Set the toggle button and let the * valueChanged callbacks do the rest. */ void controlsBtnCB (Widget w, XtPointer cdata, XtPointer cbs) { Widget wid = (Widget)cdata; XmToggleButtonSetState (wid, True, True); } /* * tuneCB - value changed callback for tune toggle button */ void tuneCB (Widget w, XtPointer cdata, XtPointer cbs) { String str; int freq; Widget wid = (Widget) cdata; if(rxtxmode == MODE_TUNE) { /* Already in Tune, i.e. nothing to do... */ return; } if (wid != NULL) /* TB set by menubar*/ { XmToggleButtonSetState (wid, True, True); return; } /* Going to tune mode */ if(pskwids.getNetmode ()) { XtVaGetValues (pskwids.getRxFreqTF(), /* get the rx freq */ XmNvalue, &str, NULL); XmTextFieldSetString (pskwids.getTxFreqTF(), str); freq = atoi(str); commControl(COMM_TXCH, COMM_FREQ, (int)(freq * 100)); } commControl(COMM_TXCH, COMM_MODE, MO_TUNE ); if(rxtxmode == MODE_RX) commControl(COMM_TXCH, COMM_PTT, PTTON | PTTFORCE); rxtxmode = MODE_TUNE; changeBG (); } /* * rxCB - value changed callback for Recv radio box togglebutton */ void rxCB (Widget w, XtPointer cdata, XtPointer cbs) { char cwStr[20]; int phase; Widget wid = (Widget) cdata; /* Going into receive mode */ if (rxtxmode == MODE_RX) { /* Already receiving, i.e. nothing to do... */ /* Maybe we should "force" rx if we are still transmitting? */ return; } if (wid != NULL) /* TB set by menubar */ { XmToggleButtonSetState (wid, True, True); return; } /* if CW ID needed? */ if (rxtxmode != MODE_TUNE && (XmToggleButtonGetState (pskwids.getCwidTB()) == 1)) { strcpy (cwStr, " de "); /* Build cw id string */ strncat (cwStr, appRes.call, 15); phase = 0; scope.drawline (phase, 35, GREEN); /* switch to CW; PTT is already on */ commControl (COMM_TXCH, COMM_MODE, MO_CWSEND); commPutData (cwStr, 0); } /* and send Postamble and schedule PTT off */ commControl (COMM_TXCH, COMM_PTT, PTTOFF); /* turn off CW/Tune mode if necesary */ commControl (COMM_TXCH, COMM_MODE, MO_NORMAL); phase = 0; scope.drawline (phase, 35, GREEN); /* Now force focus to the xmit Text Widget */ XmProcessTraversal (pskwids.getTxText(), XmTRAVERSE_CURRENT); rxtxmode = MODE_RX; changeBG (); } /* * txCB - value changed callback for Xmit radio box togglebuttons */ void txCB (Widget w, XtPointer cdata, XtPointer cbs) { String str; int freq; int phase; Widget wid = (Widget) cdata; /* Going into transmit mode */ if(rxtxmode==MODE_TX) { /* Already transmitting, nothing to do * Maybe we should FORCE TX here (if we do a DCD schedule TX * otherwise) ? Then we would have to take care about two * TX commands in the queue! (Maybe server/psk31tx does not yet * handle this correctly */ return; } if (wid != NULL) /* TB set by menubar */ { XmToggleButtonSetState (wid, True, True); return; } /* Going to tx from rx or tune mode */ if (pskwids.getNetmode ()) /* if NET is set */ { XtVaGetValues (pskwids.getRxFreqTF(), /* get the rx freq */ XmNvalue, &str, NULL); /* put rx freq in tx freq */ XmTextFieldSetString (pskwids.getTxFreqTF(), str); freq = atoi(str); /* send tx freq to transmitter */ commControl (COMM_TXCH, COMM_FREQ, (int)(freq * 100)); } phase = 128; scope.drawline (phase, 35, GREEN); if (rxtxmode == MODE_RX) { /* from RX to TX */ commControl(COMM_TXCH, COMM_MODE, MO_NORMAL); commControl(COMM_TXCH, COMM_PTT, PTTON); } else { /* from TUNE to TX */ commControl(COMM_TXCH, COMM_MODE, MO_NORMAL); } /* Now force focus to the xmit Text Widget */ XmProcessTraversal (pskwids.getTxText(), XmTRAVERSE_CURRENT); rxtxmode = MODE_TX; changeBG (); } /* * changeBG - changes widget w's background to light or dark */ void changeBG (void) { int i; Widget *w; w = pskwids.get_rxtTB(); for (i=0; i<3; i++) { if (XmToggleButtonGetState(w[i]) == 0) { XtVaSetValues (w[i], XmNbackground, lightBG, NULL); XmToggleButtonSetState (w[i], False, True); } else { XtVaSetValues (w[i], XmNbackground, darkBG, NULL); XmToggleButtonSetState (w[i], True, True); } } } /* * changeDisplayCB value changed callback - changes display * from spectrum to waterfall */ void changeDisplayCB (Widget w, XtPointer cdata, XtPointer cbs) { disp.changeDisplay ((long)cdata); } /* * wfDirCB - change the direction of the waterfall */ void wfDirCB (Widget w, XtPointer cdata, XtPointer cbs) { disp.setWF_up (XmToggleButtonGetState (w)); } /* * localCapsCB - change local caps mode */ void localCapsCB (Widget w, XtPointer cdata, XtPointer cbs) { pskwids.setDoLocalCaps (XmToggleButtonGetState (w)); } /* * txTextCB - modify/verify and cursor motion callback for * transmit text widget */ void txTextCB (Widget w, XtPointer cdata, XtPointer cbs) { int i; XmTextVerifyCallbackStruct *pt = (XmTextVerifyCallbackStruct *) cbs; switch (pt->reason) { case XmCR_MODIFYING_TEXT_VALUE: if (pt->text->length == 0) /* Got a backspace */ { commPutData ((char *)"\b", 1); } else { //TJW //printf ("ch = %s\n", pt->text->ptr); for (i = 0; i < pt->text->length; i++) { if (pt->text->ptr[i] == 0) /* got a DEL */ { commPutData ((char *)"\x7F", 1); } else /* got ordinary char */ { commPutData (pt->text->ptr+i, 1); } /* Should we print zero with a slash? */ if (pt->text->ptr[i] == '0' && appRes.zero == 1 ) { pt->text->ptr[i] = '\330'; } /* Should we print it as CAPS? */ if (pskwids.getDoLocalCaps () == TRUE) { pt->text->ptr[i] = toupper (pt->text->ptr[i]); } } } break; case XmCR_MOVING_INSERT_CURSOR: /* * If text len == 0, then we probably just cleared the widget * so allow the cursor movement. If the move is back one char * then allow it - probably just a backspace key but could be mouse. * Any thing else is a mouse click inside the text, so don't do it. */ if (strlen (XmTextGetString (w)) == 0) { pt->doit = True; /* This is OK - just cleared the widget*/ break; } if (pt->newInsert < pt->currInsert - 1) { pt->doit = False; } else { pt->doit = True; } break; default: fprintf (stderr, "Unexpected TxText callback reason\n"); break; } } /* * arrowCB - handles the Up/Down arrows for Rx and Tx freq changes. * The cdata is the associated textfield widget and userData indicates * 'R' or 'T' for recv or xmit freq. */ void arrowCB (Widget w, XtPointer cdata, XtPointer cbs) { float freq, delta; XtPointer userData; String str; unsigned char direction; Widget textF = (Widget)cdata; XmArrowButtonCallbackStruct *cbsPtr = (XmArrowButtonCallbackStruct *)cbs; XButtonPressedEvent *event = (XButtonPressedEvent *) cbsPtr->event; XtVaGetValues (w, XmNuserData, &userData, XmNarrowDirection, &direction, NULL); if (event->state & ShiftMask) /* if shifted click */ delta = 8.0; /* change by 8 */ else { if (cbsPtr->click_count == 2) /* if double click, changes by 7 */ { /* cuz already beem changed by 1 */ delta = 7.0; } else { delta = 1.0; /* else single click, change by 1 */ } } XtVaGetValues (textF, /* Get the freq */ XmNvalue, &str, NULL); freq = atof(str); /* convert to a float */ if (direction == XmARROW_UP) freq = freq + delta; else freq = freq - delta; if (freq < 0) /* no negative freqs */ freq = 0.0; if (freq > MAXFREQ) /* nothing over MAXFREQ */ freq = MAXFREQ; sprintf (str, "%4.1f", freq); /* float to a char */ XmTextFieldSetString (textF, str); if ((long)userData == 'R') { //* Set new rx freq or */ commControl(COMM_RXCH, COMM_FREQ, (int)(freq*100)); } else { /* Set new tx freq */ commControl(COMM_TXCH, COMM_FREQ, (int)(freq * 100)); } } /* * freqTextCB - handles keyboard mod/ver and value changed callbacks * for rx and tx freq textfields. userData is 'R' or 'T' for rx or tx * text widget or pointer to DecoderWid object for subwindows */ void freqTextCB (Widget w, XtPointer cdata, XtPointer cbs) { int i; float freq; String str; XtPointer userData; XmTextVerifyCallbackStruct *pt = (XmTextVerifyCallbackStruct *)cbs; /* Switch on the type of callback */ switch (pt->reason) { /* Activate Callback */ /* you typed in a new freq */ case XmCR_ACTIVATE: XtVaGetValues (w, XmNuserData, &userData, XmNvalue, &str, NULL); freq = atof(str); /* first, make sure new (0 >= freq <= MAXFREQ) */ if (freq < 0 || freq > MAXFREQ) { if (freq < 0.0) { freq = 0.0; strcpy (str, "0.0"); } else { freq = MAXFREQ; strcpy (str, MAXFREQSTR); } XtVaSetValues (w, XmNvalue, str, NULL); } if ((long)userData == 'R') { /* Set new rx freq */ commControl(COMM_RXCH, COMM_FREQ, (int)(freq*100)); /* Now force focus to the xmit Text Widget */ XmProcessTraversal (pskwids.getTxText(), XmTRAVERSE_CURRENT); } else if ((long)userData == 'T') { /* Set new tx freq */ commControl(COMM_TXCH, COMM_FREQ, (int)(freq * 100)); /* Now force focus to the xmit Text Widget */ XmProcessTraversal (pskwids.getTxText(), XmTRAVERSE_CURRENT); } else { DecoderWid *dec = (DecoderWid *)cdata; if(dec==NULL) { fprintf (stderr,"callback with cdata==NULL and userData=" "%p (%c)\n", userData, (char)(long)userData); break; } commControl(dec->commChannel, COMM_FREQ, (int)(freq*100)); /* Now force focus to the Swap Button Widget */ XmProcessTraversal(dec->getSwapBtn(), XmTRAVERSE_CURRENT); } break; /* Modify/Verify Callback */ /* allow only digits or "." in freq text widgets */ case XmCR_MODIFYING_TEXT_VALUE: for (i = 0; i < pt->text->length; i++) { if (isdigit (pt->text->ptr[i]) || (pt->text->ptr[i] == '.')) pt->doit = True; else pt->doit = False; } break; default: fprintf (stderr, "freqTextCB - unexpected callback type\n"); break; } } /* * afcCB - value changed callback - sets/clears the afc mode */ void afcCB (Widget w, XtPointer cdata, XtPointer cbs) { XmToggleButtonCallbackStruct *ptr = (XmToggleButtonCallbackStruct *) cbs; /* set AFC to toggle button state */ commControl(COMM_RXCH, COMM_AFC, ptr->set); } /* * netCB - sets/clears the net mode * should xfer rx freq to tx freq too??? */ void netCB (Widget w, XtPointer cdata, XtPointer cbs) { XmToggleButtonCallbackStruct *pt = (XmToggleButtonCallbackStruct *) cbs; pskwids.setNetmode(pt->set); } /* * scopeCB - expose callback */ void scopeCB (Widget w, XtPointer cdata, XtPointer cbs) { scope.drawcirc(); } /* * wfCB callback - click to tune * uses button release event and pointer x position to change rx freq */ void wfCB (Widget w, XtPointer cdata, XtPointer cbs) { float newfreq; char freq_str[8]; int x; XmDrawingAreaCallbackStruct *ptr = (XmDrawingAreaCallbackStruct *) cbs; int button_number; if (ptr->event->xany.type == ButtonPress) { button_number = ptr->event->xbutton.button; x = ptr->event->xbutton.x; switch (button_number) { case Button1: newfreq = disp.new_fc(x); sprintf(freq_str, "%4.1f", newfreq); XmTextFieldSetString (pskwids.getRxFreqTF(), freq_str); /* Set new rx freq */ commControl(COMM_RXCH, COMM_FREQ, (int)(newfreq*100)); break; case Button3: open2Rx(x); /* create new RX decoder! */ break; } } } /* * openBtnCB callback - Opens secondary window at current rx freq. */ void openBtnCB (Widget w, XtPointer cdata, XtPointer cbs) { Widget wid; char *text; int rtn; rtn = open2Rx (WF_WIDTH/2); if (rtn != -1) /* If we got a decoder */ { wid = pskwids.getRxText(); text = XmTextGetString(wid); XmTextSetString(decoderWids[rtn].getTextWid(), text); /* Problem? - What if main has been scrolled? */ } } /* * Open Secondary Rx decoder - creates a secondary decoder. * Used by wfCB with Button 3 pressed and openBtnCB * Return == ch, or -1 if none available */ int open2Rx (int x) { float freq = disp.new_fc (x); int ch; Boolean qpsk; for(ch=0; ch= MAX_DECODERS) { fprintf (stderr, "error: no free decoder channel!\n"); return -1; } else { int channel = ch+3; decoderWids[ch].commChannel = channel; // redundand commControl(channel, COMM_MODE, MO_NORMAL); // init channel commControl(channel, COMM_DCDLEVEL, 15); /* Start new sub windows with LSB=off and AFC=on */ /* but lets not default the QPSK value */ qpsk = pskwids.getQPSK(); decoderWids[ch].setQPSK(qpsk); commControl(channel, COMM_QPSK, qpsk); commControl(channel, COMM_LSB, 0); commControl(channel, COMM_AFC, 1); commControl(channel, COMM_FREQ, (int)(freq*100)); decoderWids[ch].updateDisplay(freq,0,0); /* clear text content */ XmTextSetString(decoderWids[ch].getTextWid(), (char *)""); decoderWids[ch].visible = 1; XtPopup (decoderWids[ch].getMainWid(), XtGrabNone); XtVaSetValues (decoderWids[ch].getMainWid(), // TJW XmNmwmDecorations, MWM_DECOR_ALL | MWM_DECOR_RESIZEH, NULL); return ch; } } /* * dcdCB - Squelch value changed callback * sets dcd to opposite of button state(set) */ void dcdCB (Widget w, XtPointer cdata, XtPointer cbs) { XmToggleButtonCallbackStruct *ptr = (XmToggleButtonCallbackStruct *) cbs; int set = ptr->set; commControl(COMM_RXCH, COMM_DCD, !set); } /* * fftScaleCB - handles FFT speed */ void fftScaleCB (Widget w, XtPointer cdata, XtPointer cbs) { XmScaleCallbackStruct *ptr = (XmScaleCallbackStruct *)cbs; int val = ptr->value; disp.fft_setup(-1, val); } /* * qpskCB - enable/disable qpsk mode */ void qpskCB (Widget w, XtPointer cdata, XtPointer cbs) { XmToggleButtonCallbackStruct *ptr = (XmToggleButtonCallbackStruct *) cbs; commControl(COMM_RXCH, COMM_QPSK, ptr->set); commControl(COMM_TXCH, COMM_QPSK, ptr->set); } /* * lsbCB - enable/disable lsb */ void lsbCB (Widget w, XtPointer cdata, XtPointer cbs) { XmToggleButtonCallbackStruct *ptr = (XmToggleButtonCallbackStruct *) cbs; commControl(COMM_RXCH, COMM_LSB, ptr->set); commControl(COMM_TXCH, COMM_LSB, ptr->set); } /* * bwCB - changed bandwidth displayed */ void bwCB (Widget w, XtPointer cdata, XtPointer cbs) { int samp = (long) cdata; XmToggleButtonCallbackStruct *pt = (XmToggleButtonCallbackStruct *) cbs; if (pt->set == True) { disp.set_samples(samp); } } /* * fileCB - Main menu File buttons callback. * Builds the pathname for the text file and * starts a work process to send the file text. */ void fileCB (Widget w, XtPointer cdata, XtPointer cbs) { char *filepath, *home, *filename; char *filetext; XtAppContext ac = XtWidgetToApplicationContext(w); XtVaGetValues (w, /* Get the file name */ XmNuserData, &filename, NULL); /* XtMalloc space for path to .twpskDir + fileName */ /* and build the pathname for the text file */ home = getenv ("HOME"); filepath = (char *) XtMalloc (strlen (home) + strlen ("/.twpskDir/") + strlen (filename) +2); strcpy (filepath, home); strcat (filepath, "/.twpskDir/"); strcat (filepath, filename); /* read the file */ filetext = getFile(filepath); /* procFileText must XtFree this! */ /* start a work proc */ XtAppAddWorkProc (ac, procFileText, (XtPointer) filetext); XtFree (filepath); /* Clean house */ } /* * quitCB - time to QRT! * First, check the secondary decoder windows. * If they were used and closed, save their XY location in the winlocs array. * If they were used, but not closed, leave its position in winlocs alone. * Write the array to $HOME/.twpskDir/.twpsk.dat */ void quitCB (Widget w, XtPointer cdata, XtPointer cbs) { int i, rtn; Position x, y; for (i=0; i= 0 && decoderWids[i].visible == 0) { XtVaGetValues (decoderWids[i].getMainWid(), XmNx, &x, XmNy, &y, NULL); winlocs[i][0] = x; winlocs[i][1] = y; } } /* write the array to ini file */ if ((rtn = iniProc ('w')) == FALSE) { fprintf (stderr, "iniProc failed\n"); } exit (0); } /* * rxFreqFocusCB - rxFreqTF focus callback * used by main window and subwindows */ void rxFreqFocusCB (Widget w, XtPointer cdata, XtPointer cbs) { static Boolean savedAFC; XmAnyCallbackStruct *ptr = (XmAnyCallbackStruct *) cbs; switch (ptr->reason) { case XmCR_FOCUS: /* getting focus */ XtVaSetValues (w, XmNbackground, darkBG, NULL); /* clear focusFlag in main or 2nd rx win object */ if(cdata==(XtPointer)&pskwids) { savedAFC = pskwids.getAFC(); pskwids.setAFC(False); pskwids.setRxFreqFocus(True); } else { DecoderWid *dec = (DecoderWid *)cdata; savedAFC = dec->getAFC(); dec->setAFC(False); dec->setFreqFocus(True); } break; case XmCR_LOSING_FOCUS: /* lost focus */ XtVaSetValues (w, XmNbackground, lightBG, NULL); /* set focusFlag in main or 2nd rx win object */ if(cdata==(XtPointer) &pskwids) { pskwids.setAFC(savedAFC); pskwids.setRxFreqFocus(False); XmProcessTraversal (pskwids.getTxText(), XmTRAVERSE_CURRENT); } else { DecoderWid *dec = (DecoderWid *)cdata; dec->setAFC (savedAFC); dec->setFreqFocus(False); XmProcessTraversal (dec->getRxText(), XmTRAVERSE_CURRENT); } break; default: fprintf (stderr, "rxFreqFocusCB: gain/losing focus error\n"); break; } } #if 0 /* * rxTextCB - gainPrimary and motionVerify callbacks for rxText */ void rxTextCB (Widget w, XtPointer cdata, XtPointer cbs) { static char save[MAXCALL+1] = ""; /* room for the null */ size_t i; char *str; int shmid; callspt *calls = NULL; XmTextVerifyCallbackStruct *pt = (XmTextVerifyCallbackStruct *) cbs; printf ("In callback\n"); switch (pt->reason) { case XmCR_GAIN_PRIMARY: case XmCR_MOVING_INSERT_CURSOR: /* get the selected text */ str = XmTextGetSelection (w); printf ("selected is %s\n", str); /* check to see if nothing or too much is selected*/ if ((str == NULL) || (strlen (str) > MAXCALL)) { /* nothing selected or selection is to long, so go away */ XtFree (str); return; } printf ("call is %s len is %ld\n", calls->outCall, strlen(calls->outCall)); /* see if string has not changed from last call */ //if ((strncmp (str, save, MAXCALL) == 0) || (calls->outCall == '\0')) //above changed tnx to Ervin, HA2OS if ((strncmp(str, save, MAXCALL) == 0) || (strlen(calls->outCall) == 0)) { /* save == str so nothing changed */ XtFree (str); return; } /* save original form in case of extra callbacks on same thing */ strncpy (save, str, MAXCALL); /* change any slashed 0's to an ordinary 0 */ for (i=0; ioutCall, str, MAXCALL); shmdt ((void *)calls); /* detach shm */ XtFree (str); break; default: fprintf (stdout, "invalid callback or room to grow\n"); break; } return; } #endif /* * rxScrollBarCB - clears/sets rxScrollFlag to * enable/disable rxText scrolling */ void rxScrollBarCB (Widget w, XtPointer cdata, XtPointer cbs) { int max, position, slider; int scrollMode; Widget rxText; DecoderWid *dec = (DecoderWid *)(cdata); /* Get the rxText widget of the Object that called us */ if (cdata == (XtPointer)&pskwids) /* for the main window */ rxText = pskwids.getRxText(); else /* for the secondary windows */ rxText = dec->getRxText(); /* get some values from the scrollbar */ XtVaGetValues (w, XmNmaximum, &max, XmNvalue, &position, XmNsliderSize, &slider, NULL); /* Set scroll mode off */ if (max - position - slider == 0) { XtVaSetValues (rxText, /* Go to normal mode if at the botton */ XmNbackground, lightBG, NULL); scrollMode = 0; } else /* Set scroll mode on */ { XtVaSetValues (rxText, XmNbackground, darkBG, NULL); scrollMode = 1; } /* Set scroll mode to object */ if (cdata == (XtPointer)&pskwids) { pskwids.setRxScrollFlag (scrollMode); /* for the main window */ } else { dec->setRxScrollFlag (scrollMode); /* for the secondary windows */ } } /* * brightnessCB - sets disp.brightness equal to scale value */ void brightCB (Widget w, XtPointer cdata, XtPointer cbs) { XmScaleCallbackStruct *ptr = (XmScaleCallbackStruct *)cbs; disp.brightness = ptr->value; } /* * popupDiagCB - pops up the dialog box passed as cdata */ void popupDiagCB (Widget w, XtPointer cdata, XtPointer cbs) { Widget diag = (Widget) cdata; XtManageChild (diag); } /* * closeVideoDiagCB * doing nothing now */ void closeVideoDiagCB (Widget w, XtPointer cdata, XtPointer cbs) { } /* * popupHandler - Event handler to popup clear text menu */ void popupHandler (Widget w, XtPointer cdata, XEvent *event, Boolean *cont) { Widget menuWid = (Widget)cdata; if (event->type == ButtonPress && event->xbutton.button == Button3) { XmMenuPosition (menuWid, &(event->xbutton)); XtManageChild (menuWid); } } /* * clrTextCB - clears the text in the Rx and Tx window */ void clrTextCB (Widget w, XtPointer cdata, XtPointer cbs) { Widget wid; DecoderWid *dec; Pixel bg; // TJW // commControl(COMM_TXCH, COMM_PTT, PTTOFF); XtVaGetValues (XtParent(w), /* Get rowColumn (menu) wid */ XmNuserData, &wid, /* userData is ID of text widget */ XmNforeground, &bg, /* HACK - only works if popup */ NULL); /* are correct color */ XtVaSetValues (wid, XmNvalue, "", /* clear the text widget */ XmNcursorPosition,(XmTextPosition) 0, XmNbackground, bg, /* and make sure bg is correct */ NULL); /* make sure the scrollFlag gets cleared too - this way for main window */ if (wid == pskwids.getRxText() || wid == pskwids.getTxText()) { pskwids.setRxScrollFlag(0); } else /* or this way for the secondary windows */ { XtVaGetValues (wid, XmNuserData, &dec, /* Get userData (this ptr) */ NULL); dec->setRxScrollFlag(0); } } /* * sendOver Action - gets the other call from shared memory, * gets your call, builds the "over" string, and sends it. * If there is no call - just send de mycall */ void sendOver (Widget w, XEvent *e, String args[], Cardinal *nargs) { char *pt; if ((pt = getHisCall()) != (char *)0) /* get his call */ { /* got it */ procMacroText(pt); /* send his call, */ shmdt ((void *)pt); /* detach shm */ } procMacroText ((char*) "de"); /* send de */ procMacroText (appRes.call); /* and send my call */ } /* * sendHisCall Action - send the call from twlog shared memory */ void sendHisCall (Widget w, XEvent *e, String args[], Cardinal *nargs) { char *ch; if ((ch = getHisCall()) != (char *)0) /* get his call */ { /* got it */ procMacroText(ch); /* send his call, */ shmdt ((void *)ch); /* detach shm */ } } /* * sendMacro Action - send all the action arguments */ void sendMacro (Widget w, XEvent *e, String args[], Cardinal *nargs) { int i; for (i=0; i<(int)*nargs; i++) { procMacroText (args[i]); } } /* * getHisCall - attach the shared menory if running twlog and returns * a char * to his call * Used by sendOver and sendCall */ char *getHisCall () { int shmid; callspt *calls; if ((shmid = shmget (KEY, SHMSIZE, 0666)) < 0) { fprintf (stderr, "No twlog!\n"); return ((char*) 0); } if ((calls = (callspt *)shmat (shmid, NULL, 0)) == (callspt *)-1) { perror ("twpsk - shmat failed"); return ((char *) 0); } return (calls->inCall); } /* * procMacroText - sends a string to appendTXtext */ void procMacroText (char *ch) { int i; for (i=0; ch[i] != '\0'; i++) { appendTXtext (ch[i], appRes.zero); /* append the text */ } appendTXtext (' ', appRes.zero); /* done, append a space */ } /* * seekCB - adds a timeout routine for seek */ #define TIMER 5 XtIntervalId id=0; int first = 1; int haltFlag = 0; int seeking = 0; void seekCB (Widget w, XtPointer cdata, XtPointer cbs) { if (seeking == 1) { haltFlag = 1; return; } first = 1; seeking = 1; XtVaSetValues (pskwids.getRxFreqTF(), XmNforeground, WhitePixelOfScreen(XtScreen(pskwids.getRxFreqTF())), NULL); id = XtAppAddTimeOut (ac, TIMER, (XtTimerCallbackProc) seekTimeOut, cdata); } /* * haltCB - removes the timeout */ void haltCB (Widget w, XtPointer cdata, XtPointer cbs) { if (seeking) { haltFlag = 1; } } /* * seekTimeOut - */ #define STEP1 50.0 #define STEP2 5.0 void seekTimeOut (XtPointer cdata, XtIntervalId id) { String str=(char *)""; float freq; int rtn; float step = STEP1; if (!first) /* Not the first time, so check data */ { step = STEP2; rtn = disp.find_center(WF_WIDTH/2); if (rtn != -1) /* Found one, so */ { freq = disp.new_fc(rtn); commControl(COMM_RXCH, COMM_FREQ, (int)(freq*100)); first = 1; seeking = 0; XtVaSetValues (pskwids.getRxFreqTF(), XmNforeground, BlackPixelOfScreen(XtScreen(pskwids.getRxFreqTF())), NULL); return; /* and don't sked another timeout */ } } /* on pass .... */ first = 0; str = XmTextGetString (pskwids.getRxFreqTF()); freq = atof (str); if ((long)cdata == 'U') { freq = freq + step; } if ((long)cdata == 'D') { freq = freq - step; } sprintf (str, "%4.1f", freq); /* See if we should halt or about to go over the edge of the world */ if ( (haltFlag == 1) || (freq < 0.0) || (freq > MAXFREQ) ) { first = 1; haltFlag = 0; seeking = 0; XtVaSetValues (pskwids.getRxFreqTF(), XmNforeground, BlackPixelOfScreen(XtScreen(pskwids.getRxFreqTF())), NULL); } else { XmTextFieldSetString (pskwids.getRxFreqTF(), str); commControl(COMM_RXCH, COMM_FREQ, (int)(freq*100)); id = XtAppAddTimeOut(ac, TIMER, (XtTimerCallbackProc) seekTimeOut, cdata); } } /* * chansCB - specify soundcard channels */ void chansCB (Widget w, XtPointer cdata, XtPointer cbs) { use_stereo = (long)cdata; } twpsk-4.3/src/twpskWids.h0000644000175000017500000001663713142417501012423 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #ifndef TWPSKWIDS_INCLUDED #define TWPSKWIDS_INCLUDED #define MAX_BUTTONS 9 #define SPACE_A 1 #define SPACE_B 4 #define ARROW_WIDTH 25 #define NUM_XMSTRINGS 8 #define SCROLLING 1 #include "GUI.h" #include "twpskWF.h" #include "twpskScope.h" #include "server/server.h" /* * Wids class */ class Wids { private: int i, j; XmString xs[20]; int qpsk, lsb; char str[10]; Arg args[20]; Pixmap saPixmap, wfPixmap; Pixel fg, bg; int fftSpeed; int fftSample; int rxFreqFocus; int rxScrollFlag; int brightness; int netmode; Boolean doLocalCaps; float nbVal; Widget mainForm; Widget label1, menuBar, fileMenu, fileCas; Widget controlsMenu, controlsCas; Widget videoBtn; Widget rxBtn, txBtn, tuneBtn, sep; Widget broadBtn, mediumBtn, narrowBtn; Widget saBtn, wfBtn, wfDirTB, openBtn; Widget localCapsTB; Widget seekMenu, seekCas; Widget upBtn, downBtn, haltBtn; Widget helpMenu, helpCas; Widget aboutBtn, helpBtn; Widget bottomForm; Widget displayForm; Widget f1; Widget scopeDA; Widget displayRC; Widget displayLabel; Widget bwRB; Widget broadTB, mediumTB, narrowTB; Widget displayRB; Widget saTB, wfTB; Widget nbTB; Widget nbScale; Widget f2; Widget controlsForm; Widget controlsRC; Widget rxLabel; Widget rxComboForm; Widget rxFreqTF, rxUpArrow,rxDnArrow, afcTB; Widget txLabel; Widget txComboForm; Widget txFreqTF, txUpArrow,txDnArrow, netTB; Widget trLabel; Widget trRB; Widget rxTB, txTB, tuneTB; Widget f3; Widget modesRC; Widget modeLabel, dcdTB, qpskTB, lsbTB, cwidTB; Widget imdFrame, imdForm, imdTF, imdLabel; Widget f4, wfDA; Widget paneWin; Widget rxTextSW; Widget rxText; Widget clrRxPopup; Widget txTextSW; Widget txText; Widget clrTxPopup; Widget videoDiag; Widget videoLabel; Widget videoFrame; Widget videoForm; Widget brightLabel, brightScale; Widget fftLabel, fftScale; Widget displayCloseBtn; Widget rxScrollBar; Widget rxtTB[3]; Widget genFrame; /* used for all outlines */ void createButtons (Widget shell, char **buttonNames); public: void buildWidgets (Widget shell, AppRes *appRes); Widget get_label1() { return label1; } Boolean getLSB(void) { return (XmToggleButtonGetState (lsbTB)); } void setLSB(int value) { XtVaSetValues(lsbTB, XmNset, value, NULL); } Boolean getQPSK() { return (XmToggleButtonGetState (qpskTB)); } void setQPSK(Boolean value) { XmToggleButtonSetState (qpskTB, value, 1); } Boolean getAFC() { return (XmToggleButtonGetState (afcTB)); } void setAFC(Boolean value) { XmToggleButtonSetState (afcTB, value, 1); } int getNetmode() { return XmToggleButtonGetState (netTB); } void setNetmode(int value) { XmToggleButtonSetState (netTB, value, 1); netmode = value; } float getFreq() { String str; XtVaGetValues (rxFreqTF, XmNvalue, &str, NULL); /* Get the freq */ float f = atof(str); /* convert to a float */ return f; } void setFreq(float freq) { sprintf(str, "%4.1f", freq); XmTextFieldSetString (rxFreqTF, str); commControl(COMM_RXCH, COMM_FREQ, (int)(freq*100)); } Widget getShell(void) { return XtParent (mainForm); } Widget getScope(void) { return (scopeDA); } Widget getWF(void) { return (wfDA); } Widget getRxText(void) { return (rxText); } Widget getTxText(void) { return (txText); } Widget getDcdTB(void) { return (dcdTB); } Boolean getDCD() { return (XmToggleButtonGetState (dcdTB)); } Widget getRxFreqTF(void) { return (rxFreqTF); } Widget getTxFreqTF(void) { return (txFreqTF); } Widget getCwidTB(void) { return (cwidTB); } Widget getImdTF(void) { return (imdTF); } int getRxFreqFocus(void) { return (rxFreqFocus); } void setRxFreqFocus(int f) { rxFreqFocus = f; } void setRxScrollFlag(int x) { rxScrollFlag = x; } int getRxScrollFlag(void) { return (rxScrollFlag); } int getFFTspeed(void) { return (fftSpeed); } int getFFTsample(void) { return (fftSample); } Widget *get_rxtTB (void) { return (rxtTB); } float getNB(void) { int val; XmScaleGetValue (nbScale, &val); return (val / 100.0); } void setNB (float val) { int max; int min; /* verify that val is within the valid range. If too small or too */ /* small, set to min or max */ XtVaGetValues (nbScale, XmNmaximum, &max, XmNminimum, &min, NULL); if ((int)val > 100) { nbVal = 100; return; } if ((int)val < min) { nbVal = min; return; } nbVal = val; } /* prints a string to stderr and inserts it into the rx text widget */ int addText (char *str) { int pos; pos = XmTextGetLastPosition (rxText); XmTextInsert (rxText, pos, str); return (1); } Boolean setDoLocalCaps (int val) { if (val > 0) { doLocalCaps = TRUE; } else { doLocalCaps = FALSE; } return (doLocalCaps); } Boolean getDoLocalCaps (void) { return (doLocalCaps); } }; #endif twpsk-4.3/src/decoderWids.C0000644000175000017500000004427613142415666012625 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #include "decoderWids.h" extern Wids pskwids; extern TwpskCB twpskCB; extern Position winlocs[3][2]; extern DecoderWid decoderwids; extern Position xb, yb; #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) extern Pixmap pixmap; #endif static void closeProc(Widget w, XtPointer clientdata, XtPointer /*calldata*/ ) { DecoderWid *dec = (DecoderWid *)clientdata; commControl(dec->commChannel, COMM_MODE, MO_DISABLED); // close channel XtPopdown( dec->getMainWid() ); dec->visible = 0; } /* Scope redraw callback */ static void decScopeCB (Widget /*w*/, XtPointer cdata, XtPointer /*cbs*/) { ((DecoderWid *)cdata)->getScope().drawcirc(); } /* QPSK selection changed callback */ static void decQpskCB (Widget /*w*/, XtPointer cdata, XtPointer cbs) { XmToggleButtonCallbackStruct *ptr = (XmToggleButtonCallbackStruct *) cbs; commControl(((DecoderWid *)cdata)->commChannel, COMM_QPSK, ptr->set); } /* AFC selection changed callback */ static void decAfcCB (Widget /*w*/, XtPointer cdata, XtPointer cbs) { XmToggleButtonCallbackStruct *ptr = (XmToggleButtonCallbackStruct *) cbs; commControl(((DecoderWid *)cdata)->commChannel, COMM_AFC, ptr->set); } /* Up/Down-Arrow callback */ static void decArrowCB (Widget w, XtPointer cdata, XtPointer cbs) { DecoderWid *dec = (DecoderWid *)cdata; float freq, delta; String str; unsigned char direction; XmArrowButtonCallbackStruct *cbsPtr = (XmArrowButtonCallbackStruct *)cbs; XButtonPressedEvent *event = (XButtonPressedEvent *) cbsPtr->event; XtVaGetValues (w, XmNarrowDirection, &direction, NULL); if (event->state & ShiftMask) /* if shifted click */ delta = 8.0; /* change by 8 */ else delta = 1.0; /* else change by 1 */ if (cbsPtr->click_count == 2) /* if double click, changes by 7 */ delta = 7.0; /* cuz already been changed by 1 */ XtVaGetValues (dec->rx2FreqText, /* Get the freq */ XmNvalue, &str, NULL); freq = atof(str); /* convert to a float */ if (direction == XmARROW_UP) freq = freq + delta; else freq = freq - delta; sprintf (str, "%4.1f", freq); /* float to a string */ XmTextFieldSetString (dec->rx2FreqText, str); /* set new freq in rx class */ commControl(dec->commChannel, COMM_FREQ, (int)(freq*100)); } /* callback to "exchange secondary and main windows" */ static void swapCB (Widget w, XtPointer cdata, XtPointer cbs) { extern Pixel lightBG; Boolean mainval, otherval; DecoderWid *dec = (DecoderWid *)cdata; XmTextPosition lastPos; /* exchange low level psk31_receiver objects */ commControl(COMM_RXCH, COMM_SWAP, dec->commChannel); /* following setXXX functions invoke a commControl request * to set the values on the corresponding psk31_receiver object. * this is unnecessary as those objects have been swap, but it * doesn't do any harm... */ /* exchange Text */ char *mainstr, *otherstr; Widget mainText = pskwids.getRxText(); Widget secText = dec->getTextWid(); otherstr = (char*)XmTextGetString (secText); mainstr = (char*)XmTextGetString(mainText); XmTextDisableRedisplay (mainText); XmTextDisableRedisplay (secText); XmTextSetString (secText, mainstr); XmTextSetString (mainText, otherstr); XtFree(otherstr); XtFree(mainstr); XmTextEnableRedisplay (mainText); XmTextEnableRedisplay (secText); lastPos = XmTextGetLastPosition (secText); XmTextShowPosition (secText, lastPos); XmTextSetInsertionPosition (secText, lastPos); lastPos = XmTextGetLastPosition (mainText); XmTextShowPosition (mainText, lastPos); XmTextSetInsertionPosition (mainText, lastPos); /* clear any scrolling operations */ pskwids.setRxScrollFlag (!SCROLLING); dec->setRxScrollFlag (!SCROLLING); XtVaSetValues (mainText, XmNbackground, lightBG, NULL); XtVaSetValues (secText , XmNbackground, lightBG, NULL); /* exchange QPSK button */ mainval = pskwids.getQPSK(); otherval = dec->getQPSK(); pskwids.setQPSK(otherval); dec->setQPSK(mainval); /* exchange AFC button */ mainval = pskwids.getAFC(); otherval = dec->getAFC(); pskwids.setAFC(otherval); dec->setAFC(mainval); /* exchange frequency */ float mainf, otherf; mainf = pskwids.getFreq(); otherf = dec->getFreq(); pskwids.setFreq(otherf); dec->setFreq(mainf); } Widget DecoderWid::shell; void DecoderWid::updateDisplay(float freq, int DCD, int IMD) { if( hasfocus==0 && fabs(freq-curfreq)>0.05 ) { curfreq = freq; sprintf(str, "%4.1f", freq); XmTextFieldSetString (rx2FreqText, str); } XtVaSetValues(DCDwid, XmNset, DCD?1:0, NULL); } void DecoderWid::move(int x, int y) { XtVaSetValues(dialogShell, XmNx, x, XmNy, y, NULL); } void DecoderWid::buildWidgets(Widget shell, AppRes *appRes, int chan) { Dimension height, width; rxScrollFlag = 0; char title[24] = "TWPSK Secondary RX "; char num[4]; ch = chan; sprintf (num, "%d", chan + 1); strcat (title, num); dialogShell = XtVaCreateWidget ("secondaryDiag", xmDialogShellWidgetClass, shell, XmNmwmFunctions, MWM_FUNC_ALL | MWM_FUNC_CLOSE, XmNtitle, title, NULL); #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) XtVaSetValues (XtParent (dialogShell), XmNiconPixmap, pixmap, NULL); #endif mainForm = XtVaCreateWidget("mainForm", xmFormWidgetClass, dialogShell, XmNverticalSpacing, SPACE_B, XmNhorizontalSpacing, SPACE_B, XmNdialogStyle, XmDIALOG_MODELESS, NULL); bottomForm = XtVaCreateWidget ("bottomForm", xmFormWidgetClass, mainForm, XmNhorizontalSpacing, SPACE_B, XmNverticalSpacing, SPACE_B, XmNtopAttachment, XmATTACH_NONE, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNleftOffset, SPACE_B, XmNrightOffset, 2*SPACE_B, XmNbottomOffset, SPACE_B, NULL); frame1 = XtVaCreateWidget ("frame1", xmFrameWidgetClass, bottomForm, XmNshadowThickness, 3, XmNmarginWidth, SPACE_A, XmNmarginHeight, SPACE_A, XmNshadowType, XmSHADOW_OUT, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_NONE, NULL); dscope.scope_width = SCOPE_HEIGHT; dscope.border_width = 2; scopeDA = XtVaCreateManagedWidget ("scopeDA", xmDrawingAreaWidgetClass, frame1, XmNheight, dscope.scope_width, XmNwidth, dscope.scope_width, NULL); frame2 = XtVaCreateWidget ("frame2", xmFrameWidgetClass, bottomForm, XmNshadowThickness, 3, XmNshadowType, XmSHADOW_OUT, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, frame1, XmNrightAttachment, XmATTACH_NONE, NULL); centerForm = XtVaCreateWidget ("centerForm", xmFormWidgetClass, frame2, XmNhorizontalSpacing, SPACE_B, XmNverticalSpacing, SPACE_B, NULL); rxLabel = XtVaCreateManagedWidget ("Rx Freq", xmLabelWidgetClass, centerForm, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); frame2a = XtVaCreateWidget ("frame2a", xmFrameWidgetClass, centerForm, XmNshadowThickness, 2, XmNmarginWidth, SPACE_A, XmNmarginHeight, SPACE_A, XmNshadowType, XmSHADOW_ETCHED_IN, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, rxLabel, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); rxFreqCombo = XtVaCreateWidget("rxFreqCombo", xmFormWidgetClass, frame2a, XmNverticalSpacing, SPACE_A, XmNhorizontalSpacing, SPACE_A, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, frame1, XmNrightAttachment, XmATTACH_FORM, NULL); strcpy(str,"1000.0"); rx2FreqText = XtVaCreateManagedWidget ("rx2FreqText", xmTextFieldWidgetClass, rxFreqCombo, XmNshadowThickness, 0, XmNmaxLength, 6, XmNcolumns, 6, XmNmarginHeight, 10, XmNvalue, str, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_NONE, NULL); /* up arrow for rx freq */ rxUpArrow = XtVaCreateManagedWidget ("rxUpArrow", xmArrowButtonWidgetClass, rxFreqCombo, XmNshadowThickness, 0, XmNwidth, ARROW_WIDTH, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 50, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, rx2FreqText, XmNrightAttachment, XmATTACH_NONE, NULL); /* down arrow for rx freq */ rxDownArrow = XtVaCreateManagedWidget ("rxUpArrow", xmArrowButtonWidgetClass, rxFreqCombo, XmNshadowThickness, 0, XmNwidth, ARROW_WIDTH, XmNarrowDirection, XmARROW_DOWN, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 50, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, rx2FreqText, XmNrightAttachment, XmATTACH_NONE, NULL); AFCwid = XtVaCreateManagedWidget ("AFC", xmToggleButtonWidgetClass, rxFreqCombo, XmNshadowThickness, 0, XmNset, True, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, rxDownArrow, XmNrightAttachment, XmATTACH_NONE, NULL); pbForm = XtVaCreateWidget("pbForm", xmFormWidgetClass, centerForm, XmNhorizontalSpacing, SPACE_A, XmNverticalSpacing, SPACE_A, // XmNtopOffset, 2 * SPACE_B, // XmNbottomOffset, SPACE_B, // XmNleftOffset, SPACE_B, // XmNrightOffset, SPACE_B, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, rxFreqCombo, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET, XmNleftWidget, rxFreqCombo, XmNrightAttachment, XmATTACH_FORM, NULL); swapBtn = XtVaCreateManagedWidget ("<-> Main", xmPushButtonWidgetClass, pbForm, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 45, NULL); closeBtn = XtVaCreateManagedWidget("Close", xmPushButtonWidgetClass, pbForm, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 55, XmNrightAttachment, XmATTACH_FORM, NULL); /* rx scrolled Window */ rxTextSW = XtVaCreateWidget ("rxTextSW", xmScrolledWindowWidgetClass, mainForm, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_WIDGET, XmNbottomWidget, bottomForm, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* rx text widget */ rxText = XtVaCreateManagedWidget ("rxText", xmTextWidgetClass, rxTextSW, XmNrows, 4, XmNeditMode, XmMULTI_LINE_EDIT, XmNeditable, False, XmNwordWrap, True, XmNcursorPositionVisible, False, XmNautoShowCursorPosition, False, XmNscrollHorizontal, False, XmNshadowThickness, 2, XmNuserData, (XtPointer)this, NULL); /* get the scrollbar widget id */ XtVaGetValues (rxTextSW, XmNverticalScrollBar, &rxScrollBar, NULL); XtVaSetValues (rxScrollBar, XmNuserData, this, NULL); frame3 = XtVaCreateWidget ("frame3", xmFrameWidgetClass, bottomForm, XmNshadowThickness, 3, XmNmarginWidth, SPACE_A, XmNmarginHeight, SPACE_A, XmNshadowType, XmSHADOW_OUT, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, frame2, XmNrightAttachment, XmATTACH_NONE, NULL); modeForm = XtVaCreateManagedWidget ("modeForm", xmFormWidgetClass, frame3, XmNverticalSpacing, SPACE_B, XmNhorizontalSpacing, SPACE_B, NULL); modesLabel = XtVaCreateManagedWidget ("Modes", xmLabelWidgetClass, modeForm, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_NONE, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); QPSKwid = XtVaCreateManagedWidget ("QPSK", xmToggleButtonWidgetClass, modeForm, XmNtopAttachment, XmATTACH_NONE, //XmNtopAttachment, XmATTACH_WIDGET, //XmNtopWidget, DCDwid, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNshadowThickness, 2, NULL); DCDwid = XtVaCreateManagedWidget ("DCD", xmToggleButtonWidgetClass, modeForm, XmNtopAttachment, XmATTACH_NONE, XmNtopWidget, modesLabel, XmNbottomAttachment, XmATTACH_WIDGET, XmNbottomWidget, QPSKwid, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNshadowThickness, 2, NULL); /* * Create the popup menu to clear second rx text widgets */ xs[0] = XmStringCreateLocalized ((char *) "Rx Text"); xs[1] = XmStringCreateLocalized ((char *) "Clear"); xs[2] = XmStringCreateLocalized ((char *) "Ctrl-C"); clrRxPopup = XmVaCreateSimplePopupMenu(rxText, (char *) "clrRx", clrTextCB, XmVaTITLE, xs[0], XmVaSEPARATOR, XmVaPUSHBUTTON, xs[1], 'C', (char *) "Ctrlc", xs[2], NULL); /* * patch for mouse grab bug in xorg */ #if 0 #if XmVersion >=2000 fprintf (stderr, "newer XmVersion %d\n", XmVersion); XtVaSetValues (clrRxPopup, XmNpopupEnabled, XmPOPUP_DISABLED, NULL); XtUngrabButton (rxText, AnyButton, AnyModifier); #else fprintf (stderr, "older XmVersion %d\n", XmVersion); XtVaSetValues (clrRxText, XmNpopupEnabled, False, NULL); #endif #endif XtVaSetValues (clrRxPopup, /* userdata is text window to clear */ XmNuserData, rxText, NULL); XmStringFree (xs[0]); XmStringFree (xs[1]); XmStringFree (xs[2]); /* Add Callbacks */ /* * AFC and QPSK TB Callbacks */ XtAddCallback(AFCwid, XmNvalueChangedCallback, decAfcCB, (XtPointer)this); XtAddCallback(QPSKwid, XmNvalueChangedCallback, decQpskCB, (XtPointer)this); /* * Up/Down Arrows for Rx Freq */ XtAddCallback(rxDownArrow, XmNactivateCallback, decArrowCB, (XtPointer)this); XtAddCallback(rxUpArrow, XmNactivateCallback, decArrowCB, (XtPointer)this); /* * Swap and Close Callbacks */ XtAddCallback(swapBtn, XmNactivateCallback,swapCB,(XtPointer)this); XtAddCallback(closeBtn, XmNactivateCallback, closeProc, (XtPointer)this); /* * rxFreq Callbacks */ XtAddCallback(rx2FreqText, XmNfocusCallback, rxFreqFocusCB, (XtPointer)this); XtAddCallback(rx2FreqText, XmNlosingFocusCallback, rxFreqFocusCB, (XtPointer)this); XtAddCallback(rx2FreqText, XmNmodifyVerifyCallback, freqTextCB, (XtPointer)this); XtAddCallback(rx2FreqText, XmNactivateCallback, freqTextCB, (XtPointer)this); /* * Rx ScrollBar Callbacks */ XtAddCallback (rxScrollBar, XmNdragCallback, rxScrollBarCB, (XtPointer) this); XtAddCallback (rxScrollBar, XmNincrementCallback, rxScrollBarCB, (XtPointer) this); XtAddCallback (rxScrollBar, XmNdecrementCallback, rxScrollBarCB, (XtPointer) this); XtAddCallback (rxScrollBar, XmNpageIncrementCallback, rxScrollBarCB, (XtPointer) this); XtAddCallback (rxScrollBar, XmNpageDecrementCallback, rxScrollBarCB, (XtPointer) this); XtAddCallback (rxScrollBar, XmNtoTopCallback, rxScrollBarCB, (XtPointer) this); XtAddCallback (rxScrollBar, XmNtoBottomCallback, rxScrollBarCB, (XtPointer) this); XtAddCallback (rxScrollBar, XmNvalueChangedCallback, rxScrollBarCB, (XtPointer) this); /* * Scope Expose Callback */ XtAddCallback(scopeDA, XmNexposeCallback, decScopeCB, (XtPointer)this); /* * Event handler for clearing rx windows */ XtAddEventHandler (rxText, ButtonPressMask, False, popupHandler, (XtPointer) clrRxPopup); XtManageChild (pbForm); XtManageChild (modeForm); XtManageChild (rxFreqCombo); XtManageChild (centerForm); XtManageChild (frame1); XtManageChild (frame2a); XtManageChild (frame2); XtManageChild (frame3); XtManageChild (bottomForm); XtManageChild (rxTextSW); XtManageChild (mainForm); /* Get desired X-Y location for the channel and then */ XtVaSetValues (dialogShell, XmNx, winlocs[ch][0] - twpskCB.getBorderX(), XmNy, winlocs[ch][1] - twpskCB.getBorderY(), NULL); /* get height and width and make it the minimums */ XtVaGetValues (dialogShell, XmNheight, &height, XmNwidth, &width, NULL); XtVaSetValues (dialogShell, XmNminHeight, height, XmNminWidth, width, NULL); dscope.scope_width = SCOPE_HEIGHT; dscope.border_width = 2; dscope.setup(shell, scopeDA); dscope.drawcirc(); dscope.drawline(90, 4, 1); } twpsk-4.3/src/twpskDir/0000755000175000017500000000000012162137774012141 500000000000000twpsk-4.3/src/twpskDir/ShortCQ0000644000175000017500000000011712162137774013326 00000000000000 cq cq de n0call n0call cq cq de n0call n0call cq cq de n0call n0call pls -k- twpsk-4.3/src/twpskDir/LongCQ0000644000175000017500000000011412162137774013123 00000000000000 cq cq cq de n0call n0call n0call cq cq cq de n0call n0call n0call pls -k- twpsk-4.3/src/twpskDir/Brag0000644000175000017500000000013012162137774012651 00000000000000 rig is a ... running ~WATTS output. ant is a ... pc is a ... running Linux and twpsk twpsk-4.3/src/helpText.h0000644000175000017500000010622513142417134012214 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ const char *helpTopics[NUM_TOPICS] = { "About", "Introduction", "Menu Bar", "Help Windows", "Main Window", "Tuning", "Secondary Windows", "Sending Files", "Macros", "Resources", "Accelerator Keys" }; const char *helpText[NUM_TOPICS] = { /***** INTRODUCTION NON-SECTION *****/ "About - not used in helpText", /***** INTRODUCTION SECTION *****/ "\n\ Twpsk is a sound card program that allows you to transmit and receive \ PSK31, the digital mode developed by Peter, G3PLX. It has a \ Graphical User Interface (GUI) which uses the Motif or lesstiff libraries. \n\ \n\ The GUI consists of the main window and several other windows that you \ pop up as needed. The main window has five sections: a Menu Bar, \ text windows, tuning indicators and their controls, T/R controls, and \ Mode buttons. \n\ \n\ The Menu Bar runs across the top of the main window and has File, Controls, \ Seek, and Help buttons. Clicking on these buttons will display their drop down \ menus with additional buttons. See the the Menu Bar section for more \ information. \n\ \n\ Below the Menu Bar are two text windows with scroll bars. The top one \ displays received text. It also displays your transmit text as it is being \ sent. The bottom text window is where you enter transmit text. See the \ Main Window section for more information. \n\ \n\ Under the text windows is the Spectrum display. It shows the signals on and \ around the receive frequency. It displays signals in two forms, Spectrum \ Analyzer or Waterfall. \n\ \n\ Just below the left end of the Spectrum display are two rows of buttons \ labeled Display Controls. With the first row, you select the display type \ for the Spectrum display, either a Spectrum Analyzer or a Waterfall, as \ indicated by the pictures on the buttons. The second row has three buttons \ that let you change the bandwidth displayed in the Spectrum Display. \n\ \n\ In the lower left corner of the main window is a Phase Scope. It shows the \ phase shift of a PSK signal. Both the Spectrum display and the Phase Scope \ are used for tuning. See the Main Window and Tuning sections for more \ information. \n\ \n\ The T/R Controls are grouped in the bottom center of the interface. These \ control the receive and transmit frequency, AFC, NET, and transmit, receive, \ and tune controls. See the Main Window section for more information. \n\ \n\ The Modes buttons are the group of five buttons and indicators along the \ right hand side. These select different modes and show status information. \ See the Main Window section for more information. \n\ \n", /* MENU BAR SECTION */ "\n\ The Menu Bar has four buttons - File, Controls, Seek and Help. Clicking \ on these buttons causes a drop down menu to be displayed. The buttons on \ the drop down menus can be used to control most of the program's operations. \n\ \n\ These buttons (and most other buttons on the GUI) can also be \"pressed\" \ from the keyboard too. This is a great way to speed up operation, since \ you don't have to move your hand back and forth between the keyboard and \ the mouse. See the Accelerator Keys section for more information. \n\ \n\ All of the drop down menus have a dashed line on top. This is \ the \"tear off\" button. Selecting the \"tear off\" will create a new \ window that contains all the buttons in the drop down menu. This can be \ handy when you need to frequently use the buttons in a drop down menu. \n\ \n\ The Menu Bar buttons, and their drop down menus are described below. See \ the Main Window section for additional information on all of these buttons. \n\ \n\ \n\ File Menu Button \n\ \n\ The File button is used to send text files and to exit twpsk. You can \ have up to 9 files defined in this drop down menu. See the Sending Files \ section for more information.\n\ \n\ The last button in the file menu is labeled QRT. Use this button to exit \ the program. \n\ \n\ \n\ Controls Menu Button \n\ The Controls button displays a drop down menu with several buttons. There \ functions are described below. \n\ \n\ Most of the buttons on this drop down menu have a corresponding button on \ the main window, which you can select with a mouse click. All of these \ buttons can also be \"pressed\" from the keyboard too, which is even faster \ and easier. See the Accelerator Keys section for more information. \n\ \n\ Video \n\ The Video button pops up a dialog box to control the speed and brightness \ of the Spectrum display. This button does not have a corresponding button \ on the main window. See the Secondary Windows section for more information. \n\ \n\ Recv \n\ This button will switch the program to receive mode. It does exactly \ the same as the Recv button in the T/R controls group on the main window. \n\ \n\ Xmit \n\ This button will switch the program to transmit mode. It operates \ exactly the same as the Xmit button in the T/R controls group on the \ main window. \n\ \n\ Tune \n\ This button will switch the program to Tune mode. It causes the sound card \ to produce a 1000 cycle tone that you can use to tune your rig. It operates \ exactly the same as the Tune button in the T/R group on the main window. \n\ \n\ Broad \n\ This button switches the Spectrum Display to the broad range. The \ Spectrum Display will display +/- 1500 Hz. from the Rx Freq. This button \ performs the same operation as the B button the Display Control group. \n\ \n\ Medium \n\ This button switches the Spectrum Display to the medium range. The \ Spectrum Display will display +/- 750 Hz. from the Rx Freq. This button \ performs the same operation as the M button in the Display Control group. \n\ \n\ Narrow \n\ This button switches the Spectrum Display to the narrow range. The \ Spectrum display will display +/- 375 Hz. from the Rx Freq. This button \ performs the same operation as the N button in the Display Control group. \n\ \n\ Spectrum \n\ The Spectrum button makes the display produce a classic spectrum \ analyzer output. The horizontal scale is frequency, centered on the \ Rx Freq, and the vertical scale is signal strength. \n\ \n\ Waterfall \n\ The Waterfall button makes the display produce a waterfall output. The \ horizontal scale is frequency, centered on the Rx Freq. The signal strength \ is based on a gray scale. A strong signal is white. As a signal gets weaker, \ it will be a darker shade of gray. New data is displayed at the bottom, and \ older data runs off the top of the display. Since this is Linux, the \ waterfall flows up hill. \n\ \n\ Flow Up \n\ Since the day twpsk was written, the waterfall always flowed up. And why \ not? After all, this is linux. If you prefer to have the waterfall flow \ down, deselect this toggle button. \n\ \n\ Local Caps \n\ With PSK's variable length Unicode, it is best to send lower case characters \ because lower case codes are shorter than their upper case equivalent. \ However, some people find it easier to read text printed in upper case. \ When this button is sellected, all received and transmitted text will be \ displayed in upper case. However, the transmitted characters will be sent in \ the case they were typed - upper or lower. \n\ \n\ Open Decoder \n\ This button opens a secondary receiver window at the current receive \ frequency. This is an easy way to put the current signal into a \ secondary decoder window, so you can tune in another station. See the \ Secondary Windows section for more information. \n\ \n\ \n\ Seek Menu Button \n\ \n\ These buttons control the starting and stopping of scan operations. Since \ these buttons do not have a corresponding button on the main window, it is \ easier to \"press\" them from the keyboard. See the Accelerator Keys section \ for more information. \n\ \n\ The scan will stop when a PSK signal is detected. A scan will also stop when \ it reaches 0.0 Hz. or the maximum frequency, 4000 Hz. The display is gray for \ frequencies less than 0.0 Hz, and above the maximum frequency. \n\ \n\ NOTE: Once you start a scan, pressing any of these buttons, \ (Up, Down or Halt) will stop the scan. \n\ \n\ Up \n\ The Up button starts a scan up the band for the next PSK signal. \n\ \n\ Down \n\ The Down button starts a scan down the band for the next PSK \ signal. \n\ \n\ Halt \n\ This button will stop a scan. \n\ \n\ \n\ Help Menu Button \n\ \n\ The Menu Bar's Help button displays the About button and a button for \ each of the Help sections. \n\ \n\ About Button \n\ This button pops up the About Dialog that tells you a little bit about \ who wrote this thing. \n\ \n\ Help Topic Buttons \n\ The remaining buttons in the Help pull down are: \n\ \n\ See the Help Windows section for more information.", /***** HELP SECTION *****/ "The Help window is opened by selecting one of the buttons, other than the \ About button, under the Menu Bar's Help button. The label on the \ top of the Help window shows which section is being displayed. The Help \ window has three buttons - Find, Find Again, and Clear.\n\ \n\ Find Button\n\ This button pops up a window where you type the text string that \ you want to find. Buttons on this window allow you to search the current \ section or all of the Help sections. After pushing one of these buttons, \ the Help will be searched, and if it is found, the window will scroll to \ the matching text and highlight it. \n\ \n\ NOTE: This search is not case sensitive. \n\ \n\ Now you can use the Find Again button to find the next match, or \ you can press the Find button to start a new search with a new string. \n\ \n\ Find Again Button\n\ Once your string has been found, the Find Again button becomes active. You \ use this to find the next match. If the search reaches the end of the \ section, or if all section have been searched when searching all section, \ a \"String Not Found\" message will be displayed. \n\ ", /***** MAIN WINDOW SECTION *****/ "\n\ This section describes all of the objects in the main window, except for \ the Menu Bar, which has its own section. \n\ \n\ \n\ Receive Text \n\ This window is located directly below the Menu Bar. Received text \ is always placed at the end of the window's text. You can use the \ scroll bar on the right to scroll back and see text that has ran off the \ top of the window. This does not affect receiving new text, which will \ still be added to the end. The background color of the window is darker \ when you scroll back. This is just an indication to you that you must \ scroll back to the bottom to see any newly received characters. Once you \ scroll back to the bottom, the background color will return to normal. \n\ \n\ The Receive and the Transmit Text windows have pop up menus that allow \ you to clear the text. To activate the menu, point the mouse in one of these \ text windows, and press the right mouse button. The pop up menu has a Clear \ button. \n\ \n\ Resize Text Window Panes \n\ Between the Receive and Transmit Text scroll bars is a small square \ button. When you point at the square, the pointer changes to a + sign. If \ you then hold down the left mouse button and drag, you can change the sizes \ of these windows. \n\ \n\ Transmit Text \n\ The Transmit Text window is located below the Receive Text window. To \ enter text in this window, it must have the focus, as indicated by a black \ border around it. Click on the Receive Text window and then click on the \ Transmit Text window to see the border. \n\ \n\ To make the interface easier to use, the program is written so that pushing \ the Xmit or Recv buttons will forces the focus to the Transmit Text \ window. This tends to keep the focus where you need it. \n\ \n\ The scroll bar allows you to scroll back to see previously transmitted text. \ The window will automatically scroll back to the bottom when you enter text \ in it. \n\ \n\ This window also has a pop up menu that allows you to clear the text. To \ activate the menu, point the mouse in the window, and press the right mouse \ button. The pop up menu has the Clear button. \n\ \n\ Tuning Indicators \n\ The Scope and Spectrum Displays are used to help tune PSK signals. The \ Display Controls are used to change the type and bandwidth of the Spectrum \ Display. See the Tuning section for more details. \n\ \n\ Scope \n\ The Scope is a PSK31 tuning aid. It shows the phase shifts of a PSK31 \ signal. A properly tuned signal will be a vertical line. The line will be \ one of three colors. \n\ \n\ Red indicates no signal or an improperly tuned one. \n\ \n\ Yellow lines indicated a signal has been detected. A properly tuned \ signal will draw a vertical yellow line. The length of the line indicates \ relative signal strength. \n\ \n\ See the Tuning section for more information.\n\ \n\ While transmitting, the scoped will show a green line. \n\ \n\ Spectrum Display \n\ The Spectrum Display, located below the Text windows, is also used for tuning \ PSK31 signals and can be used in conjunction with the Scope Display. You \ can think of it as a graph that displays the signals on and around the \ receive frequency. The horizontal axis represents frequency. The red \ line is the current receive frequency, which is the value displayed in the \ Rx Freq box. \n\ \n\ The frequency range displayed around the center frequency can be set to \ one of three ranges by clicking the B (Broad), M (Medium), or N (Narrow) \ buttons. \n\ \n\ The Spectrum Display is used mostly to tune in signals. Simply point at a \ signal, and click the mouse. See the Tuning section for more information.\n\ \n\ Signals are shown in one of two forms that you select with the Spectrum \ Analyzer or Waterfall buttons below. \n\ \n\ Spectrum Analyzer Mode \n\ Under the Display Controls label are two rows of buttons. This button is the \ left hand button in the first row. It produces a classic spectrum analyzer \ display. The height of the signal is the relative signal strength. The \ position of the signal with respect to the red line indicates if it is above \ or below the current receive frequency. \n\ \n\ Waterfall Mode \n\ The right hand button in the first row selects the Waterfall Mode. It \ displays a few seconds history of the signals. A gray scale is used to \ show relative signal strength. A strong signal is white and weaker \ signals are progressively darker shades of gray. \n\ \n\ B (Broad) \n\ With the B button selects the broad range. The Spectrum Display will show \ a frequency range of +/- 1500 Hz. from the center frequency. \n\ \n\ M (Medium) \n\ With the M (Medium) button selected, the Spectrum Display will display a \ range of +/- 750 Hz. from the center frequency. \n\ \n\ N (Narrow) \n\ With the N (Narrow) button selected, the Spectrum Display will show a \ frequency range of +/- 375 Hz. from the center frequency. \n\ \n\ Frequency and T/R Controls \n\ The T/R Controls are located at the bottom center of the main window. There \ are controls to adjust the Rx Freq, Tx Freq, and two other buttons control \ AFC and NET. The bottom group of three buttons key your transceiver. \n\ \n\ Rx Freq \n\ This text field shows the center receive frequency. If you click in this \ window, you can edit the number to select a desired frequency. \n\ \n\ NOTE: While the window is selected, the AFC is disabled. To indicate \ that the AFC is disabled, the background changes to a darker color. \ Clicking outside the Rx Freq will enable the AFC again. \n\ \n\ NOTE: The text is also white during a scan. It returns to black when a \ PSK31 signal is found. \n\ \n\ Rx Freq Arrows \n\ Another way to change the frequency is with the up and down arrow buttons \ to the right of the Rx Freq window. Clicking on these buttons \ will increase or decrease the frequency by 1 Hz. If you double click or \ Shift click on the arrows, the frequency will change by 8 Hz. \n\ \n\ AFC \n\ This button will enable and disable the programs AFC function. When \ turned on, the AFC will capture a signal that is off frequency by as much \ as 7 Hz. \n\ \n\ Tx Freq \n\ This text field holds the frequency of you transmit tone. It is much like \ the Rx Freq window above, except that it has no special foreground color. \ You will probably not use this window much because setting it is automated \ by the NET button described below. \n\ \n\ Tx Freq Arrows \n\ The Up and Down arrows adjust the Tx Freq just like the ones for the \ Rx Freq described above. \n\ \n\ NET \n\ The NET button automates the setting of the Tx Freq. When the NET button \ is on, the current frequency in the Rx Freq will be transferred to the \ Tx Freq when you click on the Xmit button. This insure that you are \ transmitting on the same frequency that you were receiving. If it is off, \ and the Rx Freq and Tx Freq are different, you will be operating in a \ \"split mode\". \n\ \n\ T/R Controls \n\ The three buttons in the T/R Controls group allow you to key your \ transceiver. \n\ \n\ Recv \n\ This button puts you in receive mode. The audio going into your sound \ card will be decoded. \n\ \n\ Xmit \n\ This one puts you in transmit mode. The sound card will output the PSK \ codes for your keystrokes. The output audio can be used to key your \ transceiver via the VOX. \n\ \n\ The Xmit button also toggles the RTS line of your serial port card. The \ RTS signal can be used to key your rig with PTT. See any of the PSK \ web pages for the circuits needed for PTT operation. \n\ \n\ Tune \n\ The Tune button makes the sound card output a steady tone. This can be \ used for tuning your transmitter. \n\ \n\ NOTE: Do not exceed the power limit of your rig for continuous \ duty modes. \n\ \n\ Modes \n\ The Modes buttons are a column of five buttons along the lower right hand \ side of the interface. There are three mode buttons and two status \ indicators. The mode buttons are enabled when their indicator is red. \n\ \n\ DCD \n\ The top button in the stack is labeled DCD, and is an indicator only. \ Pushing this button has no effect. The indicator on the button turns \ red when a PSK signal is detected. \n\ \n\ QPSK \n\ When enabled, PSK is generated in the QPSK mode. When disabled, the code \ is generate in normal or BPSK mode. \n\ \n\ LSB \n\ This button should be enabled if you are transmitting in lower sideband. \n\ \n\ CW ID \n\ If this button is enabled, your call will be transmitted in CW when you \ switch from Xmit to Recv. \n\ \n\ IMD \n\ This window displays the IMD of the received signal. For the most \ accurate reading, the noise level must be low, and the signal should be \ in the idle state for at least 5 seconds. \n\ ", /***** TUNING SECTION *****/ "\n\ The main window decodes a PSK signal at the Rx Freq, which is the red line \ in the Spectrum display. There are two ways to get the PSK signal at the \ Rx Freq. You can bring the signal to the Rx Freq, or bring the program's \ Rx Freq to the signal. \n\ \n\ There are several ways you can tune a PSK signal. They range from manually, \ where you do most of the tuning, to scanning and the program does the all the \ work. In practice, you will find that you will use a combination of the \ following methods. So, it is best if you are know how to use all three \ methods. In all cases, the scope and spectrum displays will show you when \ the signal is properly tuned. \n\ \n\ Manually \n\ Tune your receiver until a PSK signal is in the Spectrum display. Try to \ center the signal on the red line, but don't try to get it perfect. Just \ use the receiver to do the course tuning. \n\ \n\ Then, use the Up and Down arrows in Rx Freq box to do the fine tuning. \ The Spectrum display will tell you which direction you need to tune. \ Remember, a double click on the arrows will change the frequency 8 Hz, and \ a single click will change it by 1 Hz. \n\ \n\ As you get close, several things will happen. The DCD indicator will turn \ red. Also, the lines in the Scope will be yellow and start to form a \ straight line. Once the line on the Scope is straight and you are within \ about 7 Hz. of the center frequency, the AFT will take over and finish the \ job for you. \n\ \n\ Click \n\ To use this method, you just tune until a PSK signal is shown anywhere in \ the Display. Then, point the mouse at the signal and push the left mouse \ button. The program will try to find and center on the signal, change the \ Rx Freq, and the AFC should do the rest. \n\ \n\ Notice that the program is now listening to a different frequency. Instead \ of tuning the receiver to the program's Rx Freq, like you did in the manual \ method, you \"tuned\" the program to a signal in the receivers bandpass. So, \ you can tune in signals without tuning the receiver. \n\ \n\ One way to use this is to tune your receiver to the low end of the PSK band \ segment. Now, every time you click near the right hand edge of the \ Spectrum, the Rx Freq changes to a higher frequency and you will see signal \ higher in the receivers bandpass. \n\ \n\ Band conditions and signal quality may cause it to line up incorrectly. For \ the best results, try to have the pointer within the white area of the \ signal. If it doesn't center correctly, you can click again or use the \ manual method. \n\ \n\ If you point and click at a spot where there is no signal, the program will \ simply set the Rx Freq to that frequency. If you have the Net button \ pressed, then this will now be your transmit frequency also. This is an \ easy way to select an open frequency to calling. \n\ \n\ Scan \n\ This method is the most automated. By hitting Ctrl-U or Ctrl-D, (see \ the ACCELERATOR KEYS section) the program will scan up or down the band \ and stop at the next PSK signal. While scanning, the Rx Text freq will be \ displayed with white numbers, which go back to black when the scan stops. \ \n\ If the scan reaches the \"edge of the world\" (0.0 Hz. or 3000 Hz.), the scan \ will stop before falling off the edge. As the scan approaches the edge, \ the spectrum display becomes solid gray. You can also stop a scan by \ hitting Ctrl-H, but there is an easier way described next. \ \n\ Besides using the Ctrl-H key to stop a scan, Ctrl-U and Ctrl-D will also \ stop a scanning operation. Here is a trick I use for scanning. Hold the \ Ctrl key down with your left hand, and hit the U or D key with your right. \ Keep your finger near the U or D key you just struck. If the scan stops \ and you want to restart it, just hit the same key with your right hand. \ Also, if you see the scan miss a signal, the same keystroke will stop the \ scan so you can tune back to it. Yes, sometimes a scan will miss a signal \ but catch it going back in the other direction. \n\ \n\ High noise levels, signal quality, signal strength, QSB, and crowded band \ conditions may cause the scan to stop off a signal. However, it still \ seems to do a pretty good job. \n\ ", /***** SECONDARY WINDOWS *****/ "\n\ There are several secondary windows in twpsk. One of these (Video) \ has controls that are \"set and forget\", so you pop up these only when \ needed. The other windows are Secondary Decoders that allow you to copy up \ to 4 QSOs at once. \n\ \n\ Secondary Decoder Windows \n\ You can display up to three Decoder windows. These windows are capable of \ receive only, and have some of the same controls as the main window. There \ are two ways to open a Decoder window. \n\ \n\ The first way works like click to tune. Assume that you are copying a \ signal in the main window and another signal appears in the Spectrum \ display. If you do a right mouse click on the second signal, a Secondary \ Decoder will pop up with its Rx Freq set for that signal. Notice that the \ Rx Freq on the main window is unchanged, and is still copying the original \ signal. \n\ \n\ The second way is used when you have a signal tuned in on the main window \ and want to put it into a secondary window. To do this from the main menu, \ click Controls and then Open Decoder. Note that the accelerator key for \ this button is Ctrl-O, so you can do this from the keyboard as well. \n\ \n\ Now that the signal is in the Secondary decoder, you can use the main window \ to tune and tune in another signal, hit Ctrl-O to put it into another window \ and so on, until you have the maximum of three Secondary Decoders. Just \ don't tune your rig, or you will detune all of the signals. \n\ \n\ Most of the controls on the Secondary Decoder are the same as the main \ window. One difference is a button labeled <-> Main. This button will \ swap its window's contents with the main window. If you see someone calling \ CQ in a Secondary Decoder click on <-> Main and you are ready to call. \n\ \n\ The very first time you use a secondary window, it will pop up in the upper \ left corner of the screen. Just drag it to where you want it. Every time \ you quit twpsk, it saves the current location of all the secondary windows. \ From now on, the secondary windows will pop up in the same location they \ were when you last quit twpsk. \n\ \n\ Video Window \n\ This window has two slider controls and a Close button. Both sliders are \ for the Spectrum/Waterfall display. The Display Speed sets the refresh \ rate on the display. \n\ \n\ Brightness is for brightness! \n\ ", /***** SENDING FILES *****/ "\n\ There are many times when you want to send the same text, like CQ's or \ brag files. There are also times when you would like to be able to insert \ something into that text, like a name, signal report, or contest number. All \ of this can be done by putting the text in a file and having twpsk send the \ file. Below are the steps need to setup a file. \n\ \n\ Create the text file \n\ First, you must create the file and its text. To create the file, cd to \ the directory called twpskDir. It is located under your home directory. \ Now use your favorite text editor to create the file. The file name will \ appear as a button label, so pick meaningful names. \n\ \n\ Second, you need to tell twpsk about the file. This is done by editing \ the resource file, Twpsk. By default, Twpsk was placed in the directory: \n\ \n\ /usr/X11R6/lib/X11/app-defaults \n\ \n\ You will have to be root to edit it. If you installed a copy of Twpsk when \ installed twpsk, then you could edit your copy. \n\ \n\ Near the top of Twpsk is a line with \"Twpsk.buttonNames\". Its value \ is a comma delimited list of the file names. Add your new file name to the \ list. Each name in the list will appear as a button in the File drop down \ menu and will have a Ctrl-1 thru Ctrl-9 next to the name. \n\ \n\ The Ctrl-1 thru Ctrl-9 are accelerator keys. (See the Accelerator Keys section \ for more info). The names on the buttons will be in the same order as they are \ in the \"Twpsk.buttonNames\" resource. Also, they will be assigned a Ctrl key \ number in the same sequence. I suggest putting the names in some logical \ order. So for example, Ctrl-1 sends a CQ, Ctrl-2 send your first \ transmission, Ctrl-3 sends the next... \n\ \n\ There is a limit of 9 file buttons. You can have as many files as you \ want in twpskDir, but only 9 can be set up at one time. Just edit the \ resource file for different situations. \n\ \n\ Finally, you will have to restart the program for these changes to take \ effect. Now click on the File button on the Main Menu, and you should see \ a button with your file name and its Ctrl- number. Click on your file name \ and the text should appear in the Transmit Text window.\n\ \n\ Variable Data \n\ This feature is for those times when you would like to be able to insert \ something into a text file, like a name, signal report, or contest number. \n\ \n\ First, you will need to create the file, and tell twpsk about the file. \ This was described above. As you create the text for the file, simply \ put ~WORD into the text where you want to insert something. WORD can be \ any word, like ~NAME, ~RST, etc... \n\ \n\ While sending a file, if ~WORD is found, the program will pop up a dialog \ box with the label WORD and you can enter the text you want in a text \ field. When you are finished, just hit the Enter key. You can have as \ many ~ fields in the file as you want. Use a good WORD, because the dialog \ box displays WORD as an indication as to what should be entered. \n\ \n\ Sending \n\ The files can be sent by clicking on File in the Menu Bar, and then \ selecting the file from the drop down menu. However, it is easier to use \ the Ctrl Accelerator keys, since you don't need to reach for the mouse. \ See the Keyboard section for more information. \n\ ", /***** MACROS SECTION *****/ "\n\ With Macros you can define your own key functions that allow you to \ send short strings of fixed text. The macros are \"associated\" with the \ Transmit Text window. This means the Transmit Text window must have the \ focus. Since Macros are used to send text, and if I have programmed things \ right, you will not have to worry about this. However, if the macro's text \ doesn't appear in the Transmit Text window, click on the Transmit Text \ window to make sure it has the focus. The Transmit Text window has the focus \ when it has a black border. \n\ \n\ Macros are defined in the resource file, Twpsk. That part of Twpsk is \ listed below. \n\ \n\ ! Translations for \"Over\", HisCall and \n\ ! user defined macros. \n\ ! \n\ ! Create your own macros using lines like these. \n\ ! \n\ ! Shift Alt m: sendMacro(WA0EIR)\\n\\ \n\ ! Shift Alt F1: sendMacro(WA0EIR)\\n\\ \n\ ! Shift Alt F2: sendMacro(WA0EIR WA0EIR)\\n\\ \n\ ! Shift Alt s: sendMacro(SK)\\n\\ \n\ ! \n\ ! The last two lines should not be modified. \n\ ! Enter your macros after the line - \n\ ! Twpsk*txText.translations: #override\\n\\ \n\ \n\ Twpsk*txText.translations: #override\\n\\ \n\ Shift Alt o: sendOver()\\n\\ \n\ Shift Alt h: sendHisCall() \\n\ \n\ \n\ \n\ In the lines above, lines that begin with an ! are comments. \ Use the examples shown in the comments as a pattern for your macros. \ Change the letter following to the letter you want to use, and change \ the text within the ( )'s of sendMacro to the text you want to send. \n\ \n\ Insert your macros between the line - \n\ \n\ Twpsk*txText.translations: #override\\n\\ \n\ \n\ and - \n\ \n\ Shift Alt o: sendOver()\\n\\ \n\ \n\ You can use other keys besides Shift Alt, but it is best if you don't because \ some of these are already being used by your window manager and twpsk itself. \ Remember, Ctrl-x is already defined to put you into transmit mode. And, on \ my window manager (fvwm), Alt-f is the same as pressing the File button on the \ main menu bar. \n\ \n\ So, Shift Alt works best because there are no conflicts. This gives you \ room for somewhere around 45 macros - more than I can remember. If you want, \ Shift Ctrl and Alt Ctrl might work too. That's over 135 macros! \n\ ", /***** RESOURCE SECTION *****/ "\n\ The resource file, Twpsk, is an important part of this program. It allows \ you to customize the program to meet your needs WITHOUT recompiling. After \ making any changes to the resource file, you must restart twpsk to have the \ changes take affect. \n\ \n\ A quick look at the file will tell you that a line beginning with an \ exclamation point (!) is a comment. Lines in a resource file can become \ quite complex, but here we will look at just the basic rules. \n\ \n\ A line in the file contains two columns. The left column is the name \ of a widget and one of its properties, like height or width. The left column \ is followed by a colon (:) and any number of spaces or tabs. The right column \ is the value to be assigned to the property. It is important that no spaces \ follow the value! For example, if the right hand value were tan followed by \ a space, you would get an error message like this: \n\ \n\ Warning: Color name \"tan \" is not defined \n\ \n\ The dumb computer is looking for a four letter word. Notice it says it can't \ find \"tan \" - that's t, a, n, and a space - not just \"tan\". \n\ \n\ If you want to create your own color scheme, change one of the colors to \ red, and restart the program. Now you can see the parts of the interface \ controlled by that property. Be sure to look at the Edit and Help windows \ to see if your change affected these windows. You can then change this \ property to any color or rgb value (#rrggbb) you want, and then repeat this \ process for the other color properties. \n\ \n\ The first 130 lines or so of Twpsk have several resources that you may want \ to adjust. There are comments in the file that describe the property, and \ what values are valid. \ ", /****** ACCELERATOR KEYS SECTION ******/ "\n\ In an application like this one, where most of the input is text typed on the \ keyboard, reaching for the mouse can be awkward and slow. Therefore, most \ of the button presses have been accelerator keys so they can be \"pressed\" \ with keystrokes instead. For example, using these accelerator keys let you \ go to transmit mode, send macros, text, files, and go back to receive mode \ without ever touching the mouse. \n\ \n\ Notice that the buttons on the interface have a Ctrl-character next to \ there names. This is a visual reminder to you that the button can be \ \"pressed\" by using the Control key sequence. For example, the Xmit button \ can be pressed by holding down the Ctrl button and pressing the X key. \n\ \n\ Two exceptions to this are the Spectrum and Waterfall buttons, since they \ have a bitmap rather than a label. The can be pressed with Ctrl-S and \ Ctrl-W. \n\ \n\ There are some menu buttons that do not have a corresponding button on the \ main window, however they still have accelerator keys. They are described \ below. \n\ \n\ Click on the File button on the menu bar. You should see the names of the \ text files that you can send. Notice that they can be sent by using their \ Ctrl key too. (Ctrl-1, Ctrl-2, etc) \n\ \n\ Now click on the Controls button on the menu bar. Most of these buttons \ are also on the interface. However, notice that the Secondary decoders, \ and Video dialogs can be called with control keys. \n\ \n\ Next, click on the Seek button in the main menu bar. You should now be \ looking at the buttons to start and stop a seek. Their accelerator keys are \ listed to the right of the button names. \n\ \n\ The Menu Bar can also be used via the keyboard. If your window manager is \ behaving right, pressing F10 will display a 3D border around the File button \ in the Menu Bar. You can then use the left and right arrows to select a \ button in the Menu Bar. Press the space bar to display the options and use \ the up and down arrows to select an option and press the space bar. \n\ \n\ There are also some shortcut keystrokes available. Notice that some of the \ buttons in the Menu Bar and drop down menus have an underlined character. \ These buttons can be pushed by typing the underlined character, however the \ button must be displayed before this will work. For example entering \ F10 H A will select the Menu Bar (F10), then the Help button (H), and finally \ the About button (A)." }; twpsk-4.3/src/install-sh0000755000175000017500000003246412162137774012267 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-12-25.00 # 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 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 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 trap '(exit $?); exit' 1 2 13 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 starting with `-'. 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 # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. 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-writeable 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 -z "$d" && 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-end: "$" # End: twpsk-4.3/src/SHM.h0000664000175000017500000000044412455643151011052 00000000000000/* * twSHM header * #defines for shared memory from twlog to other programs */ #ifndef twSHM_INCLUDED #define twSHM_INCLUDED #define KEY 6146 /* the key */ #define MAXCALL 12 /* max length for a call */ #define SHMSIZE 2 * MAXCALL /* size of shared memory */ #endif twpsk-4.3/src/modes/0000775000175000017500000000000013142420757011436 500000000000000twpsk-4.3/src/modes/coeff.h0000644000175000017500000001007412162137774012616 00000000000000/* Linux PSK31 modem driver for soundcard -- Filter coefficients * * these FIR coefs are those used by G0TJZ in his TMC320C50 code * * Hansi Reiser, DL9RDZ, 20 April 1998 */ /* 64-tap raised-cosine FIR*/ float fir1c[64]={ 0.000000, 0.000038, 0.000150, 0.000336, 0.000595, 0.000922, 0.001317, 0.001773, 0.002288, 0.002856, 0.003472, 0.004130, 0.004823, 0.005545, 0.006288, 0.007047, 0.007812, 0.008578, 0.009337, 0.010080, 0.010802, 0.011495, 0.012153, 0.012769, 0.013337, 0.013852, 0.014308, 0.014703, 0.015030, 0.015289, 0.015475, 0.015587, 0.015625, 0.015587, 0.015475, 0.015289, 0.015030, 0.014703, 0.014308, 0.013852, 0.013337, 0.012769, 0.012153, 0.011495, 0.010802, 0.010080, 0.009337, 0.008578, 0.007813, 0.007047, 0.006288, 0.005545, 0.004823, 0.004130, 0.003472, 0.002856, 0.002288, 0.001773, 0.001317, 0.000922, 0.000595, 0.000336, 0.000150, 0.000038, }; /* 4-bit receive filter for 31.25 baud BPSK * Designed by G3PLX, version 2 */ float fir2c[64]={ -0.00044789, -0.00063167, -0.00100256, -0.00156531, -0.00232266, -0.00327063, -0.00439342, -0.00565850, -0.00701253, -0.00837907, -0.00965823, -0.01072878, -0.01145278, -0.01168246, -0.01126911, -0.01007335, -0.00797606, -0.00488924, -0.00076591, 0.00439171, 0.01052660, 0.01752432, 0.02521404, 0.03337329, 0.04173643, 0.05000649, 0.05786981, 0.06501264, 0.07113857, 0.07598566, 0.07934199, 0.08105860, 0.08105860, 0.07934199, 0.07598566, 0.07113857, 0.06501264, 0.05786981, 0.05000649, 0.04173643, 0.03337329, 0.02521404, 0.01752432, 0.01052660, 0.00439171, -0.00076591, -0.00488924, -0.00797606, -0.01007335, -0.01126911, -0.01168246, -0.01145278, -0.01072878, -0.00965823, -0.00837907, -0.00701253, -0.00565850, -0.00439342, -0.00327063, -0.00232266, -0.00156531, -0.00100256, -0.00063167, -0.00044789, }; float fir2cnew[64]={ 0.000625000, 0.000820912, 0.001374651, 0.002188141, 0.003110600, 0.003956273, 0.004526787, 0.004635947, 0.004134515, 0.002932456, 0.001016352, -0.001539947, -0.004572751, -0.007834665, -0.011009254, -0.013733305, -0.015625000, -0.016315775, -0.015483216, -0.012882186, -0.008371423, -0.001933193, 0.006315933, 0.016124399, 0.027115485, 0.038807198, 0.050640928, 0.062016866, 0.072333574, 0.081028710, 0.087617820, 0.091728168, 0.093125000, 0.091728168, 0.087617820, 0.081028710, 0.072333574, 0.062016866, 0.050640928, 0.038807198, 0.027115485, 0.016124399, 0.006315933, -0.001933193, -0.008371423, -0.012882186, -0.015483216, -0.016315775, -0.015625000, -0.013733305, -0.011009254, -0.007834665, -0.004572751, -0.001539947, 0.001016352, 0.002932456, 0.004134515, 0.004635947, 0.004526787, 0.003956273, 0.003110600, 0.002188141, 0.001374651, 0.000820912 }; float ampcof[16] = { -0.097545161, -0.093796555, -0.086443400, -0.075768274, -0.062181416, -0.046204960, -0.028452874, -0.009607360, 0.009607360, 0.028452874, 0.046204960, 0.062181416, 0.075768274, 0.086443400, 0.093796555, 0.097545161 }; twpsk-4.3/src/modes/psk31-transmitter.C0000644000175000017500000003711712762117460015005 00000000000000/* PSK31 -- transmitter class * partly derived from the work of Andrew Senior G0TJZ and Peter Martinez G3PLX * (C) 1998,1999 Hansi Reiser DL9RDZ * subject to GPL -- see LICENSE for details */ #include #include #include #include #include #include #include #include #include "psk31-coder.h" #include "psk31-transmitter.h" #include #include "../server/server.h" extern pa_simple *sptx; /* Morse code encoding table */ /* 0=space, 1=dot; from msb to lsb; lowest 1 = end of code */ unsigned int psk31_transmitter::cwtab[58] = {0x14, 0x4A, 0x00, 0x00, 0x00, 0x00, 0x7A, 0xB4, 0xB6, 0x00, 0x54, 0xCE, 0x86, 0x56, 0x94, 0xFC, 0x7C, 0x3C, 0x1C, 0x0C, 0x04, 0x84, 0xC4, 0xE4, 0xF4, 0xE2, 0x00, 0x00, 0x00, 0x00, 0x32, 0x00, 0x60, 0x88, 0xA8, 0x90, 0x40, 0x28, 0xD0, 0x08, 0x20, 0x78, 0xB0, 0x48, 0xE0, 0xA0, 0xF0, 0x68, 0xD8, 0x50, 0x10, 0xC0, 0x30, 0x18, 0x70, 0x98, 0xB8, 0xC8}; int psk31_transmitter::execute_cmd (int c) { if (c & TX_MODE) { if (c & TXM_TUNE) { set_mode (-1, -1, 2); // Tune on } else { if (c & TXM_CW) { set_mode (-1, -1, 1); // CW on } else /* Normal mode */ { set_mode ((c & TXM_QPSK) ? 1 : 0, (c & TXM_LSB) ? 1 : 0, 0); } } } else { if (c & TX_FREQ) { set_freq (0.01 * (c & 0xFFFFF)); } } return 0; } int psk31_transmitter::send_char (int c) { if (c == TX_START) { /* Start: send preamble in psk mode, * don't send it if we want to tune or send cw... * remove any "TX_END's" from buffer! */ unqueue_end (); if (transmit_state == TS_INACTIVE) { transmit_state = TS_TRANSMIT; } else { if (transmit_state == TS_TRANSMIT) ; /* nothing to do */ else if (transmit_state == TS_WAITFOREND) { transmit_state = TS_TRANSMIT; } } start_execute_cmd (); if (cwmode == 0) { sendpreamble (); // txIold=txInew=1; txQold=txQnew=0; txIold = txInew = 0; txQold = txQnew = 0; } else { txIold = txInew = 0; txQold = txQnew = 0; } return 0; } if ((c == TX_END) || (c == (TX_END | TX_URGENT)) ) { if (c & TX_URGENT) { /* falls urgent: buffer weghaun... */ txbuf_sta = txbuf_end = txbuf; } if (transmit_state == TS_TRANSMIT) { if (sendchar_cwmode == 0) { sendpostamble (); } putcodeword (TX_END); transmit_state = TS_WAITFOREND; } return 0; } if (c & TX_MODE) { if (c & TXM_TUNE) { sendchar_cwmode = 2; } else { if (c & TXM_CW) { sendchar_cwmode = 1; } else { sendchar_cwmode = 0; } } } if (bufferspace () <= 128) { return -1; /* no space in buffer... */ } if (c >= 0 && c < 256) { if (sendchar_cwmode) { putcodeword (c | CODE_CW_ECHO); send_cw_char (c); } else { putcodeword (c | CODE_PLAIN); /* send a plain char */ } } else if ((c & TX_FREQ) || (c & TX_MODE)) /* set tx freq or mode */ { putcodeword (c); } return 0; } /* string should not contain control char like TX_END, TX_FREQ, ... */ int psk31_transmitter::send_string (char *str) { if (bufferspace() < (sendchar_cwmode ? 5: 1) * (int)strlen(str) + 100) { return -1; } while (*str) { int c = (int)((unsigned char)*str); if(sendchar_cwmode) { putcodeword ( c | CODE_CW_ECHO ); send_cw_char (*str); } else { putcodeword ( c | CODE_PLAIN ); } str++; } return 0; } int psk31_transmitter::send_cw_string (int need_postamble, char *str) { /* just a rough approximation of utilized space!! */ if (bufferspace () < 5 * (int)strlen (str)) { return -1; } if (need_postamble) { sendpostamble (); } while (*str) { putcodeword (((unsigned char)*str) | CODE_CW_ECHO); send_cw_char (*str); str++; } putcodeword (TX_END); return 0; } char *psk31_transmitter::strupr (char *str) { char *ptr = str; while (*ptr) { *ptr = toupper (*ptr); ptr++; } return str; } int psk31_transmitter::getnextsymbol (void) { unsigned char symb; symb = coder.encode (shiftreg, useqpsk); if (keydown) { symb |= 4; /* Tone on */ } /* Add new bit from codeword */ shiftreg <<= 1; if (codewordbuf & 1) { shiftreg |= 1; } codewordbuf >>= 1; if (codewordbuf <= 1) { /* Need to get new codeword */ codewordbuf = 0; /* Get next codeword */ codewordbuf = get_buffer_entry(); /* Read flag bits in LSBs of codeword */ if (codewordbuf & CODE_USE_QPSK) { useqpsk = 1; /* Encode this one using QPSK */ } else { useqpsk = 0; /* Encode using BPSK */ } if (codewordbuf & CODE_TONE_ON) { keydown = 1; /* Tone should be on */ } else { keydown = 0; /* Tone off */ } codewordbuf &= 0xffff; /* remove flag bits */ } return symb; } int psk31_transmitter::bufferspace () { int used = (txbuf_end-txbuf_sta + TXBUFSIZE) % TXBUFSIZE; return TXBUFSIZE - used; } /* Putting stuff into the circular tx buffer... */ void psk31_transmitter::putcodeword (int cword) { unsigned int *temp; if ((cword == (8 | CODE_PLAIN)) && (txbuf_sta != txbuf_end)) { /* backspace -> remove previous char if it is still in buffer! */ temp = txbuf_end - 1; if (temp < txbuf) { temp = txbuf + TXBUFSIZE - 1; } if ((*temp) & CODE_PLAIN) { if (((*temp) & 255) != 8) { txbuf_end = temp; return; } } } *txbuf_end = cword; txbuf_end++; if (txbuf_end >= txbuf + TXBUFSIZE) { txbuf_end = txbuf; } if (txbuf_sta == txbuf_end) { txbuf_sta++; if (txbuf_sta >= txbuf + TXBUFSIZE) { txbuf_sta = txbuf; } } } void psk31_transmitter::frontputcodeword (int c) { txbuf_sta--; if (txbuf_sta < txbuf) { txbuf_sta+=TXBUFSIZE; } *txbuf_sta = c; if (txbuf_sta == txbuf_end) { txbuf_end--; if (txbuf_end < txbuf) { txbuf_end += TXBUFSIZE; } } } void psk31_transmitter::unqueue_end () { unsigned int *ptr = txbuf_sta; while (ptr != txbuf_end) { if (*ptr == TX_END) { fprintf (stderr, "removing TX_END!\n"); *ptr = TX_DUMMY; } ptr++; if (ptr >= txbuf + TXBUFSIZE) { ptr = txbuf; } } } int psk31_transmitter::getcodeword () { int cword; if (transmit_state == TS_TRANSMIT || transmit_state == TS_WAITFOREND) { if (txbuf_end == txbuf_sta) { if (cwmode == 2) { /* Tuning... -> carrier */ cword = CODE_TONE_ON | 0xFFFF; } else { if (cwmode == 1) { /* CW send -> no idle signal */ cword = 0x10; } else { cword = CODE_TONE_ON| 0x2000; /* idle signal */ if (qpsk) { cword |= CODE_USE_QPSK; } } } } else { cword =* txbuf_sta; txbuf_sta++; if (txbuf_sta > txbuf + TXBUFSIZE) { txbuf_sta = txbuf; } } } else { /* STATE=TS_INACTIVE */ cword = 0x0002; /* one bit with TONE OFF! */ } return cword; } /* puts the preamble AT THE BEGINNING of the internal buffer */ void psk31_transmitter::sendpreamble (void) { /* Sends 32 reversals at start of over */ frontputcodeword (CODE_TONE_ON|0x0040); /* 6 */ frontputcodeword (CODE_TONE_ON|0x2000); /* 13 */ frontputcodeword (CODE_TONE_ON|0x2000); /* 13 */ } void psk31_transmitter::sendpostamble (void) { /*Flushes shift register and sends 32 bits of carrier at end of over*/ if (qpsk) { /* Flush with 20 zeroes */ putcodeword (CODE_TONE_ON|CODE_USE_QPSK|0x2000); /* 13 */ putcodeword (CODE_TONE_ON|CODE_USE_QPSK|0x0080); /* 7 */ } else { putcodeword (CODE_TONE_ON|0x0004); /*Flush with 2 zeroes */ } /* 32 bits of carrier */ putcodeword (CODE_TONE_ON|0x3FFF); /* 13 */ putcodeword (CODE_TONE_ON|0x3FFF); /* 13 */ putcodeword (CODE_TONE_ON|0x007F); /* 6 */ putcodeword (0x0001); /* Tone off */ } void psk31_transmitter::send_cw_char (int c) { unsigned char u; /* sounds better with this - else it tends to drop the first sound */ putcodeword (0x0008); /* 3 bits key-up */ c = toupper (c); if (c < ' ' || c > 'Z') { return; } if (c == ' ') { /* Inter-word space */ putcodeword ( 0x0008 ); /* 3 bits key-up */ } else { u = cwtab[c - 33]; while (u > 0) { if (u == 0x80) { /* 2 dots space: * Combines with inter-element space to give * inter-character space */ putcodeword (0x0004); /* 2 bits key-up */ } else { if (u & 0x80) { /* 3 dots mark = 1 dash */ putcodeword (CODE_TONE_ON | 0x000F); /* 3 bits key-down */ } else { /* 1 dot mark */ putcodeword (CODE_TONE_ON | 0x003); /* 1 bit key-down */ } /* 2 dot inter-element space */ putcodeword (0x0004); /* 2 bits key-up */ u = u << 1; } } } } /**********************************************************************/ /* tx functions */ /* new version: * - verify if there is space for a whole bit (256 samples) * - if not, return with TX_BUSY * - otherwise: * read current output counter (ocnt) * generate new bit and write it to device * if a new character was needed, schedule it for echo at ocnt+odelay * echo next character if ocnt is sufficiently high */ #define BLOCKSIZE 512 int psk31_transmitter::processor () { int res; int error; static int len, buflen = 256; static short val, obuf[BLOCKSIZE]; int lat = 0; echo_char = 0; for (len=0; lentimestamp = timestamp; echo_end->ch = ch; echo_end++; if (echo_end >= &echo_buffer[ECHO_BUFFER_LEN]) { echo_end =& echo_buffer[0]; } if (echo_end == echo_start) { fprintf(stderr,"Warning: ECHO char buffer overflow!\n"); } } int psk31_transmitter::get_echo_char (void) { int x; if(echo_start!=echo_end) { x = echo_start->ch; echo_start++; if (echo_start >= &echo_buffer[ECHO_BUFFER_LEN]) { echo_start = echo_buffer; } return x; } return TX_BUSY; } int psk31_transmitter::process_31 () { char txsymb; /* 0 or 2 for bspk, 0..3 for qpsk */ float tmp; txsymb = getnextsymbol (); txIold = txInew; txQold = txQnew; /* on/off */ if (txsymb & 4) { if (txInew == 0 && txQnew == 0) txInew = 1; } else { txInew = txQnew = 0; } if (txsymb & 1) { /* -I>Q, Q>I at 90, 270 */ tmp =- txInew; txInew = txQnew; txQnew = tmp; } if (txsymb & 2) { /* -I>I, -Q>Q at 180,270 */ txInew =- txInew; txQnew =- txQnew; } return 0; } /* returns sample value */ int psk31_transmitter::filter_tx_sample (int stat) /* 8000Hz-Process TX */ { float shape, Itx, Qtx, scarg, s, c; /* Compute current tx LO value */ txphase = (txphase + txfreq) & 0xFFFF; scarg = txphase * (1.0 / 65536 * 2 * M_PI); s = sin (scarg); c = cos (scarg); shape = cos ((M_PI / 512) * stat); shape *= shape; /* raised cosine shape */ Itx = txIold * shape + txInew * (1 - shape); Qtx = txQold * shape + txQnew * (1 - shape); return (int)(16000 * (Itx * s + Qtx * c)); } /* this function is executed when a TX_START token is received. * it scans the start of the code word buffer. if TX_MODE or TX_FREQ * tokens are found, they are handled before the "real work" starts. * This helps to have the correct cwmode setting when deciding about * preamble and idle signal... * * ToDo: There is one problem: If someone sends a TX_START before * the previous TX_END has been completely executed, the mode changes * affect the previos transmission. This is not a really big problem * (normally you don't start to transmit immediately after stopping , * but this might be fixed some time... */ void psk31_transmitter::start_execute_cmd () { int s; if (txbuf_sta == txbuf_end) { return; } while (1) { s =* txbuf_sta; if ((s & TX_MODE) || (s & TX_FREQ)) { /* remove mode set command from buffer... */ txbuf_sta++; if (txbuf_sta > txbuf + TXBUFSIZE) { txbuf_sta = txbuf; } /* and execute.. */ execute_cmd (s); } else { break; } } } int psk31_transmitter::get_buffer_entry () { int s; while(1) { s = getcodeword (); if (s == TX_DUMMY) { continue; } if (s & CODE_CW_ECHO) { echo_char = s; } else if ((s & TX_MODE) || (s & TX_FREQ)) { execute_cmd (s); } else { break; } } /* CW_ECHO, TX_MODE and TX_FREQ are handled in the loop. all other * symbols in the codeword buffer are treated now */ if (s & CODE_PLAIN) { /* encode character */ echo_char = s; unsigned int codeword; s = s & 255; codeword = coder.encode_varicode ((unsigned char)s); codeword |= CODE_TONE_ON; if (qpsk) { codeword |= CODE_USE_QPSK; } return codeword; } if (s == TX_END) { echo_char = s; s = 0; /* TONE OFF */ } return s; } twpsk-4.3/src/modes/psk31-receiver.h0000644000175000017500000000743013044156256014275 00000000000000/* PSK31 -- receiver classs */ #ifndef PSK31_RECEIVER_H_INCLUDED #define PSK31_RECEIVER_H_INCLUDED #define FIR1TAPS 64 #define FIR2TAPS 64 #include "psk31-coder.h" #include "psk31-fft.h" /* receiver channel interface class */ class psk31_receiver { private: int qpsk; /* QPSK mode on */ int lsb; /* inverted mode */ float _rxfreq; int rxfreq; int rxphase; int strength; /* logarithmic RX signal strength; 0..40 */ int dcd; /* dcd flag */ int dcdlevel; /* -1=ignore dcd, 0=plain pre/postamble dcd, otherwise: level 1..100 for dcd sensitivity */ int afc; /* AFC flag */ int noiselevel; /* test only: simulated addition noise */ int dofft; /* freq scan via fft activation */ int lastdelta; psk31_coder coder; /* for DCD calculation... */ unsigned long dcdshfreg; float is,qs; // signal quality estimator /* fft stuff */ float fft_result; float fftbufI[1024], fftbufQ[1024]; int fftind; /* receive filters */ float ibuf1_I[FIR1TAPS]; float ibuf1_Q[FIR1TAPS]; float ibuf2_I[FIR2TAPS]; float ibuf2_Q[FIR2TAPS]; int amp_buf[16]; float amp_buf_new[16]; int ibuf1_cur, ibuf2_cur; /*index of oldest sample/place for new one */ int lastphase; /* phase of last rx symbol... */ int bitclk; /* phase synchronisation */ int stat; /* cyclic state counter for receiver */ char *decode_buffer; float do_fir(float *base, int cur, float *coeff, int len); psk31_fft *pskfft; int process_500(); int process_rx_symbol(cmplx rxsymb); void dodcd(int diffphase); void doafc(int symb); void pdistr(float *I, float *Q); void perform_fft(float I, float Q); int diffphase2symbol(int diffphase); FILE *writefile; public: psk31_receiver(psk31_fft *fft) { pskfft = fft; stat=0; ibuf1_cur=ibuf2_cur=0; rxphase=0; for(int i=0; i<16; i++) amp_buf[i]=0; set_freq(1250); dofft=0; lastdelta=0; for(int i=0; i #include #include #include #include "psk31-coder.h" /**********************************************************************/ int psk31_coder::decotab[2048]; int psk31_coder::encotab[256]; unsigned char psk31_coder::symbols[32]; unsigned char distance[4][4]={ {0, 2, 3, 2}, {2, 0, 2, 3}, {3, 2, 0, 2}, {2, 3, 2, 0} }; /* BPSK/QPSK-Encoder */ unsigned int psk31_coder::encode_qpsk(unsigned int sreg) { unsigned int symb; symb = psk31_coder::symbols[~sreg & 0x1F]; if(!lsb) symb = (4 - symb) & 3; /* Reverse 90/270 exchanges if on LSB */ return symb; } unsigned int psk31_coder::encode_bpsk(unsigned int sreg) { if(sreg & 1) return 0; /* 1 -> no change */ else return 2; /* 0 -> reversal */ } unsigned int psk31_coder::encode(unsigned int sreg, int use_qpsk) { if(use_qpsk) return encode_qpsk(sreg); else return encode_bpsk(sreg); } /* BPSK/QPSK-decoder */ /**********************************************************************/ /* functions used for receiving */ int psk31_coder::IQ2iphase(cmplx IQval) { float phase; int iphase; phase=atan2(IQval.y, IQval.x); iphase=(int)(phase*32767/M_PI); return iphase; } int psk31_coder::encode_varicode(int symb) { return encotab[symb]; } int psk31_coder::decode_varicode(int bit) { unsigned char c; bit = !bit; /* Invert received bit */ //fprintf(stderr,"%d",bit); rxreg >>= 1; if((rxreg & 0x0002) > 0) vlerror = 1; if(bit) rxreg |= 0x8000; if(((rxreg & 0xC000) == 0) && (rxreg != 0)) { while((rxreg & 0x0001) == 0) rxreg >>= 1; rxreg >>= 1; // TJW c=vlerror?'¥':decotab[rxreg]; if(c==13) c='\n'; c=vlerror?'~':decotab[rxreg]; if(c==13) c='\n'; vlerror = 0; rxreg = 0; return c; } return NO_CHAR; /* no new char generated */ } float psk31_coder::x_distance(cmplx rxsymb, int lastphase, int delta) { int ph[4]={0, 0x40, 0x80, 0xC0}; float d; if(!lsb) { ph[1]=0xC0; ph[3]=0x40; } // change 90<>270 deg /* Wir sollten jetzt bei lastphase+delta landen, sind aber bei rxsymb... */ /* we should be at: */ float x,y; int tmp=-(ph[delta]-lastphase); x=cos( tmp/128.0*M_PI ); y=sin( tmp/128.0*M_PI ); d=sqrt( (x-rxsymb.x)*(x-rxsymb.x) + (y-rxsymb.y)*(y-rxsymb.y) ); return d*1.5; /* scaled to original scale -- unnecesary */ } int psk31_coder::decode_qpsk(cmplx rxsymb) { float dists[32]={0}, min; long ests[32]; int newabs[32]; unsigned char select, vote; int i; int rxphase; ampl=sqrt(rxsymb.x*rxsymb.x+rxsymb.y*rxsymb.y); if(ampl>1e-5) { agc=1/ampl; rxsymb.x*=agc; rxsymb.y*=agc; } // rxsymbol now scaled to absolute value of 1 //fprintf(stderr," %f'%f ",rxsymb.x,rxsymb.y); rxphase=IQ2iphase(rxsymb)>>8; int diffphase= (rxphase-lastphase)&0xFF; unsigned char rcvd = ((diffphase + 0x20) & 0xC0 ) >> 6; if(lsb) rcvd = (4 - rcvd) & 3; lastphase=rxphase; min = 1e6; /* Preset minimum = huge */ for(i = 0; i < 32; i++) { #if 0 dists[i] = states[i/2].dist + distance[rcvd][symbols[i]]; #else /* Contrary to the original version use a "soft" decoder... */ dists[i] = states[i / 2].dist + x_distance(rxsymb,states[i/2].last_abs_phase,symbols[i]); #endif newabs[i]=rxphase; if(dists[i] < min) min = dists[i]; ests[i] = ((states[i / 2].estimate) << 1) + (i & 1); } //fprintf(stderr," min=%f ",min); for(i = 0; i < 16; i++) { if(dists[i] < dists[16 + i]) select = 0; else select = 16; states[i].dist = dists[select + i] - min; states[i].estimate = ests[select + i]; states[i].last_abs_phase=newabs[select + i]; } vote = 0; for(i = 0; i < 16; i++) if(states[i].estimate & (1L << 20)) vote++; if(vote == 8) return random()/(RAND_MAX>>1); else return (unsigned char)(vote > 8); } int psk31_coder::decode(cmplx rxsymb, int symbol) { if(qpsk) return decode_varicode(decode_qpsk(rxsymb)); else return decode_varicode(symbol); } void psk31_coder::prime_decoder() { cmplx prime={1,0}; /* Prime the Viterbi decoder */ for(int k = 0; k < 20; k++) { decode_qpsk(prime); prime.x=-prime.x; } } unsigned char psk31_coder::parity(unsigned char u) { unsigned char k, p; p=0; for(k=0; k<8; k++) { p ^= u & 1; u >>= 1; } return p; } int psk31_coder::init_tables(char *datadir) { /* Generate convolutional coder symbols table */ int k; for(k = 0; k < 32; k++) { symbols[k] = 2 * parity(k & poly1) + parity(k & poly2); } /* Initialize the Varicode tables */ FILE *fp; int n; unsigned int codeword, mask; char buf[15], codfile[1024], *p, *ptr; strncpy(codfile, datadir, 1000); if(codfile[strlen(codfile)-1]!=' ') strcat(codfile, "/"); strcat(codfile, "psk31.cod"); fp = fopen(codfile, "r"); if(!fp) { ptr = getenv("HOME"); if(ptr) { strncpy(codfile, ptr, 1000); strcat(codfile, "/psk31.cod"); fp = fopen(codfile, "r"); } } if(!fp) fp = fopen("psk31.cod", "r"); if(!fp) { fprintf(stderr,"Can't open code table file 'psk31.cod'\n"); exit(1); } for(k = 0; k < 2048; k++) decotab[k] = 248; /* 'ø' indicates invalid codeword */ for(k = 0; k < 256; k++) { codeword = 4; /* Preset 100 pattern */ p = fgets(buf, 15, fp); p = p; /* silence the compiler error */ n=strlen(buf); while( buf[n]!='1' && buf[n]!='0' && n ) n--; for( ; n >= 0; n--) { codeword <<= 1; if(buf[n] == '1') codeword++; } encotab[k] = codeword; mask = 0x8000; /* Start at MSB */ while((mask & codeword) == 0) mask >>= 1; /* Find dummy '1' MSB added earlier */ codeword &= ~mask; /* Remove it */ codeword >>= 1; /* Remove (always '1') LSB */ decotab[codeword] = k; } fclose(fp); return 0; } twpsk-4.3/src/modes/psk31-transmitter.h0000644000175000017500000000521312162137774015046 00000000000000/* PSK31 -- transmitter class * (C) 1998 Hansi Reiser DL9RDZ */ #ifndef __PSK31_TRANSMITTER_INCLUDED #define __PSK31_TRANSMITTER_INCLUDED #include "psk31-transmitter.h" #include "../server/server.h" #include "psk31-coder.h" #include #include #include #include #include #include #include #include #include #include #define DMA_BUF_BITS 10 enum { TS_INACTIVE, TS_TRANSMIT, TS_WAITFOREND }; class psk31_transmitter { private: static unsigned int cwtab[58]; psk31_coder coder; int transmit_state; int cwmode; int qpsk; int lsb; float _txfreq; int txfreq; int txphase; /* process31 / filter_tx_sample */ float txIold,txQold,txInew,txQnew; int stat; /* getnextsymbol */ unsigned char shiftreg; /* Transmit shift register */ unsigned int codewordbuf; /* Current codeword buffer */ int useqpsk; int keydown; int echo_char, pending_sample; int sendchar_cwmode; #define TXBUFSIZE 2048 unsigned int txbuf[TXBUFSIZE], *txbuf_sta, *txbuf_end; char *strupr(char *str); int process_31(); int filter_tx_sample(int stat); /* 8000Hz-Process TX */ int getnextsymbol(); int get_buffer_entry(); void send_cw_char(int ch); void putcodeword(int cw); void frontputcodeword(int c); int getcodeword(); void unqueue_end(); void add_echo_char(int ch, int timestamp ); int get_echo_char(void ); struct echo_chars { int ch; int timestamp; }; #define ECHO_BUFFER_LEN 64 struct echo_chars echo_buffer[ECHO_BUFFER_LEN], *echo_start, *echo_end; // mode parameters: 0 or 1; -1==no change void set_mode(int q, int l, int cw) { if(q>=0) qpsk=q; if(l>=0) lsb=l; if(cw>=0) cwmode=cw; coder.setmode(q, l); } void set_freq(float f) { _txfreq=f; txfreq=(int)(65536.0/8000*f); } int execute_cmd(int c); void start_execute_cmd(); int bufferspace(); public: psk31_transmitter() { txIold=txInew=1; txQold=txQnew=0; txbuf_sta=txbuf; txbuf_end=txbuf; stat=255; echo_char=0; pending_sample=EMPTY_SAMPLE; set_freq(1250); transmit_state=TS_INACTIVE; echo_start=echo_end=echo_buffer; } void get_info(int *q, int *l, int *cw, float *f) { if(q) *q=qpsk; if(l) *l=lsb; if(f) *f=_txfreq; if(cw) *cw=cwmode; } int send_char(int c); int send_string(char *str); int send_cw_string(int need_postamble, char *str); void sendpreamble(); void sendpostamble(); int processor(); /* returns TX_BUSY / NO_CHAR / sent character */ }; #endif twpsk-4.3/src/modes/psk31-coder.h0000644000175000017500000000550612162137774013573 00000000000000/* PSK31 -- Viterbi and Varicode encoder / decoder * based on PSK31-Code by Andrew Senior, G0TJZ * (C) 1998,1999 Hansi Reiser, DL9RDZ * subject to GPL -- see LICENSE for details */ #ifndef __PSK31_CODER_INCLUDED #define __PSK31_CODER_INCLUDED #ifndef CMPLX_DEFINED #define CMPLX_DEFINED typedef struct { double x,y; } cmplx; #endif /* codeword-flags */ #define CODE_USE_QPSK 0x010000 /* use qpsk for this codeword flag */ #define CODE_TONE_ON 0x020000 /* tone on flag */ #define CODE_CW_ECHO 0x040000 /* cw char for echo only */ #define CODE_PLAIN 0x080000 /* not yet encoded byte */ /* Send- and Echo-Char flags. Also used in the codeword buffer */ #define TX_MODE 0x200000 #define TXM_BPSK 0x000000 #define TXM_BPSK_L 0x000001 #define TXM_QPSK 0x000002 #define TXM_QPSK_L 0x000003 #define TXM_LSB 0x000001 #define TXM_CW 0x000004 // setting CW or TUNE does not change #define TXM_TUNE 0x000008 // QPSK or LSB setting! #define TX_FREQ 0x400000 /* 3xxxxx xx 0.01Hz */ #define TX_START 0x100001 /* start new transmission */ #define TX_END 0x100002 /* indicate end of transmission */ #define TX_URGENT 0x40000000 /* flag to execute cmds immediately*/ #define TX_DUMMY 0x001FFFFF /* "unused" codeword */ #define NO_CHAR 0x800000 #define TX_BUSY 0x800001 #define TX_ERROR 0x800002 #define EMPTY_SAMPLE 0x100000 /* Viterbi and Varicode encoding and decoding funktions */ class psk31_coder { private: /* Varicode data tables */ static int hallo; static int decotab[2048]; static int encotab[256]; /* Convolutional coder/Viterbi coder data */ static unsigned char symbols[32]; static const unsigned char poly1 = 0x19, poly2 = 0x17; int qpsk, lsb; struct state { float dist; int last_abs_phase; long estimate; }; int lastphase; struct state states[16]; /* QPSK decoder trellis */ float agc,ampl; int vlerror, rxreg; /* Varicode decoder state */ unsigned int encode_qpsk(unsigned int sreg); unsigned int encode_bpsk(unsigned int sreg); int decode_qpsk(cmplx rxsymbol); int decode_bpsk(cmplx rxsymbol); float x_distance(cmplx rxsymb, int lastphase, int delta); int decode_varicode(int bit); static unsigned char parity(unsigned char u); public: void prime_decoder(); static int init_tables(char *datadir); psk31_coder() { agc=ampl=vlerror=rxreg=0; lastphase=0; qpsk=lsb=0; for(int i=0; i<16; i++) { states[i].dist=states[i].last_abs_phase=0; states[i].estimate=0; } } void setmode(int qpskfl, int lsbfl) { qpsk=qpskfl; lsb=lsbfl; } /* encodes shift register data in phase increment (0..3) */ unsigned int encode(unsigned int sreg, int use_qpsk); int encode_varicode(int symb); int decode(cmplx rxsymbol, int symb); static int IQ2iphase(cmplx IQval); }; #endif twpsk-4.3/src/modes/hansis_fft.h0000644000175000017500000000420412162137774013656 00000000000000#ifndef __HANSIS_FFT_H #define __HANSIS_FFT_H #ifndef CMPLX_DEFINED #define CMPLX_DEFINED typedef struct { double x,y; } cmplx; #endif class FFTer { public: FFTer( int l, int mod=0 ); ~FFTer(); #if 0 Vector operator*( const Vector& fd ); Vector operator*( const Vector& fd ); Vector operator*( const Vector& fd ); friend Vector operator*( const Vector& fd, const FFTer& fft ); friend Vector operator*( const Vector& fd, const FFTer& fft ); friend Vector operator*( const Vector& fd, const FFTer& fft ); friend Vector operator/( const Vector& fd, const FFTer& fft ); #endif protected: int len, M; int mode; double *real_a, *imag_a; public: // Dumm-DFT: Hilfsfunktionen und -tabellen cmplx *Dm; #if 0 Vector dft( const Vector, int invers ) const; Vector dft( const Vector, int invers ) const; Vector dft( const Vector, int invers ) const; void dft_init(); void dft_remove(); #endif // Split-Radix FFT mit Hilfstabellen (Base 2) und -funktionen void fftsr_init(); void fftsr_remove(); void fftsr_bitrevers(double *x, double *y) const; double *CT1, *CT3, *ST1, *ST3; int *itab; // a) normale Transformation (komplex) cmplx* fftsr( const cmplx* ) const; void fftsr_helper( int, int, int, double *, double *, double *, double *, double *, double *, double *, double *) const; void fftsr_main( double *, double *) const; // b) inverse Split-Radix (auch komplex) cmplx* ifftsr( const cmplx* ) const; void ifftsr_main( double *, double *) const; void ifftsr_helper( int, int, double *, double *, double *, double *, double *, double *, double *, double *) const; // c) reele Transformation (Input=Vector) cmplx* rfftsr( const double* ) const; cmplx* rfftsr( const short* ) const; cmplx* rfftsr_wrapper( double *) const; void rfftsr_bitrevers(double *x) const; void rfftsr_main( double *) const; void rfftsr_helper( int, int, double *, double *, double *, double *) const; }; #endif twpsk-4.3/src/modes/psk31-fft.C0000644000175000017500000000564412762120552013204 00000000000000#include #include "psk31-fft.h" #include "hansis_fft.h" #include void psk31_fft::set_parameters(int len, int _delta, int _mode) { if(len!=N) { if(fft) delete fft; fft = new FFTer(len); N=len; if(Idata) { delete[] Idata; } Idata = new float[N]; if(Qdata) { delete[] Qdata; } Qdata = new float[N]; if(rxdata) { delete[] rxdata; } rxdata = new int[N]; if(window) { delete[] window; } window = new float[N]; for(int i=0; i=N) cnt=0; if(valid_counter) valid_counter--; } void psk31_fft::add_if_sample(float I, float Q) { if(mode!=MODE_NARROWIF) return; Idata[cnt]=I; Qdata[cnt++]=Q; if(cnt>=N) cnt=0; if(valid_counter) valid_counter--; } int psk31_fft::has_new_data() { return valid_counter==0; } /* Just copy out those values needed for display... * the maximum number of values has been specified by set_paramters * The copy out value starts at start (lower end == 0), * writes count values to data buffer, * where it compines step FFT values to one entry... * condition: start+count*step < MAXVALUES */ int psk31_fft::get_abs_data(float *data, int start, int count, int step) { if( start<0||count<0||step<0 ) return -1; if( start + count*step > N ) return -1; cmplx * fftval; // = new cmplx[N]; //Vector fftval(N); // switch on type; copy source; performe fft if(mode==MODE_RXDATA) { double *mydata = new double[N]; for(int i=0; irfftsr_wrapper(mydata); delete[] mydata; } else { cmplx * input = new cmplx[N]; for(int i=0; ifftsr(input); delete[] input; } int index = start; //fprintf(stderr,"power value results:\n"); for(int i=0; i #include #include #include "psk31-receiver.h" #include "coeff.h" /* float fir1c[], fir2c[] */ /* * returns: -1: new sym,now rxbuf full; 0=no new sym; 1=new sym * currently: returns: new char, or NO_CHAR */ int psk31_receiver::process_rx_sample(short sample) { float s,c,scarg,smpl; int retval; if(pskfft) pskfft->add_rx_sample(sample); smpl=sample*(1/32767.0); /* scale to -1.0 .. 1.0 */ /* Compute current rx LO value */ rxphase=(rxphase+rxfreq)&0xFFFF; scarg=rxphase*(1.0/65536*2*M_PI); s=sin(scarg); c=cos(scarg); /* "mixer" to create I/Q out of Sample and LO */ ibuf1_I[ibuf1_cur]=s*smpl; ibuf1_Q[ibuf1_cur]=c*smpl; ibuf1_cur = (ibuf1_cur+1)%FIR1TAPS; /* Every 16 samples run 500Hz-RX-Process */ if( (stat&0x0F) == 0 ) { retval=process_500(); } else retval=NO_CHAR; stat=(stat+1)&0xFF; return retval; } extern int OPTnew; /* returns received character (or NO_CHAR) */ int psk31_receiver::process_500() { float Ival, Qval; float amp, ftemp, ampsum; int cor, xxx, index, i; unsigned int temp; /* do the downsampling decimation filter into second buffer */ Ival=ibuf2_I[ibuf2_cur]=do_fir(ibuf1_I, ibuf1_cur, fir1c, FIR1TAPS); Qval=ibuf2_Q[ibuf2_cur]=do_fir(ibuf1_Q, ibuf1_cur, fir1c, FIR1TAPS); if( (++ibuf2_cur) == FIR2TAPS ) ibuf2_cur=0; if(pskfft) pskfft->add_if_sample(Ival, Qval); /* And do the second FIR filtering */ if(OPTnew&1) { Ival=do_fir(ibuf2_I, ibuf2_cur, fir2cnew, FIR2TAPS); Qval=do_fir(ibuf2_Q, ibuf2_cur, fir2cnew, FIR2TAPS); } else { Ival=do_fir(ibuf2_I, ibuf2_cur, fir2c, FIR2TAPS); Qval=do_fir(ibuf2_Q, ibuf2_cur, fir2c, FIR2TAPS); } float power = Ival * Ival + Qval * Qval; if(power>0) { strength = (unsigned int)(10 * log10(65536*power)); if (strength > 40) { strength = 40; } if (strength < 0) { strength = 0; } } else { strength = 0; } #if 0 static int max; if (strength > max) { max = strength; printf ("max=%d pwr=%f\n",max,power); } #endif if(!(OPTnew&2)) { /* Compute amplitude in dB, shift it to the left in 'temp' */ /* i guess simply calling 'log' would be faster on modern machines? */ temp= (unsigned int)(65536* ( Ival*Ival + Qval*Qval )); if(temp) { xxx=31; while( xxx && !(temp&0x80000000) ) { xxx--; temp<<=1; } temp=(xxx<<20)|((temp&0x7FFFFFFF)>>11); } /* Now to the bit synchronisation. */ index=bitclk>>20; amp_buf[index]=temp; cor=0; for(i=0; i<8; i++) cor+=amp_buf[i]; for( ; i<16; i++) cor-=amp_buf[i]; cor/=500; /* syngain=0.002 */ bitclk-=cor; } else { amp = sqrt( Ival*Ival + Qval*Qval ); index=bitclk>>20; amp_buf_new[index] = amp; ftemp = do_fir(amp_buf_new, (index+1)%16, ampcof, 16); ampsum=0; for(i=0; i<16; i++) ampsum+=amp_buf_new[i]; if(ampsum!=0) ftemp=ftemp/ampsum; else ftemp=0; ftemp *= 0.06; cor = (int)(ftemp*0x100000); bitclk-=cor; } bitclk+=0x100000; if(bitclk&0xFF000000) { /* here we are at the center of the bit... */ bitclk&=0xFFFFFF; cmplx IQval; IQval.x=Ival; IQval.y=Qval; return process_rx_symbol(IQval); } else return NO_CHAR; } int psk31_receiver::process_rx_symbol(cmplx rxsymb) { int diffphase, rxphase, symbol; rxphase=psk31_coder::IQ2iphase(rxsymb)>>8; diffphase=(rxphase-lastphase)&0xFF; lastphase=rxphase; doafc(diffphase); /* Do automatic frequency correction */ lastdelta=diffphase; symbol=diffphase2symbol(diffphase); dodcd(diffphase); /* Do DCD */ /* rxsymb is used for viterbi, symbol for BPSK (needn't recompute)*/ int res=coder.decode(rxsymb, symbol); return res; } void psk31_receiver::doafc(int dp) { if( !dcd || !afc) return; /* Don't correct if: DCD is off, sending, or AFC disabled */ if(qpsk) dp = (int)((char)((dp<<2)&0xFF)); /* remove 2 MSBs */ else dp = (int)((char)((dp<<1)&0xFF)); /* remove 1 MSB */ if(dp == -128) /* eliminate bias */ dp = 0; #if 0 /* slow */ _rxfreq += dp * 0.0002; /* apply correction */ #else /* fast */ _rxfreq += dp * 0.0005; /* apply correction */ #endif rxfreq = (int)(65536.0 / 8000 * _rxfreq); } void psk31_receiver::dodcd(int diffphase) { int symbol; symbol=diffphase2symbol(diffphase); #if 0 fprintf(writefile,"%d %f,%f\n",diffphase,is,qs); #endif int n; if(qpsk) n=8; else n=4; is = 0.05*cos(n*M_PI*diffphase/256) + 0.95*is; qs = 0.05*sin(n*M_PI*diffphase/256) + 0.95*qs; dcdshfreg <<= 2; /* Shift register left */ dcdshfreg += symbol; /* Insert latest symbol */ if(dcdshfreg == 0xAAAAAAAAL) { // DCD on by Preamble dcd = 1; is=1; qs=0; } else if(dcdshfreg == 0L) { // DCD off by Postamble dcd = 0; is=qs=0; } else if(dcdlevel>0) { // TODO: for QPSK it would be better to use viterbi decoder // minimal distance as a decision metric! if( (is*is+qs*qs)*100 > dcdlevel*(dcd?0.50:1) ) { dcd = 1; } else { dcd = 0; } } // TODO: G0TJZ uses is,qs for a sponaneos frequency correction // based on that estimation... maybe we could do that here too? #if 0 fprintf(writefile,"%d %f,%f->%f %d\n",diffphase,is,qs,is*is+qs*qs,dcd); #endif } float psk31_receiver::do_fir(float *base, int cur, float *coeff, int len) { int c=0, i; float sum=0; for(i=cur; i> 6; else diffphase = ((diffphase + 0x40) & 0x80) >> 6; if(lsb) diffphase = (4 - diffphase) & 3; return diffphase; } twpsk-4.3/src/modes/hansis_fft.C0000644000175000017500000005242312162137774013617 00000000000000 /////////////////////////////////////////////////////////////////////////// // Hansi's FFT-Klasse // // (C) 1997 Hansi Reiser, dl9rdz, hsreiser@stud.informatik.uni-erlangen.de // // C++ class for a fast computation of DFT-transforms // // partly derived from: // - my own FFT-routines, (C) 1995 Hansi Reiser // - split-radix-algorithm by H.V. Sorensen, University of Pennsylavania, // hvs@ee.upenn.edu (1987) // - C++ - interface inspired by Jan Ernst's dft.C // // Reference: // - Sanjit K. Mitra, James F. Kaiser: Handbook for Digital Signal // Processing, Jung Wiley&Sons Inc. // - Richard E. Blahut, Algebraic Methods for Signal Processing and // Communications Coding, Springer Verlag // - Sorensen, Heideman, Burrus: "On Computing the split-radix FFT", // IEEE Trans. ASSP, ASSP-34, No. 1, pp 152-156 // - Sorensen, Jones, Heideman, Burrus: "Real-Valued fast Fourier // transform algorithms", IEEE Trans. ASSP, ASSP-35, No. 6, pp 849-864 // // This FFT class is provided AS IS and WITHOUT any WARRENTY or FITNESS // FOR A PARTICULAR PURPOSE // This program may be used and distributed freely provided this header // is included and left intact. /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// // Usage: // The constructor creates an FFT-object for a specific transform length, // several precomputations of often-used values are done upon creation, // which may take some time. therefor, if several transforms of the same // lengths are needed, it is advisable to instantiate on FFT-object for // this length once, and then use that one for all transforms being // perforemd. // // All Transform length NOT a power of 2 are done by the stupid O(N^2) // DFT algorithm. In most cases you could do much better there by other // methods, like the Good-Thomas or Winograd FFT algorithms, mostly based // on the Chinese Remainder Theorem. This package only has been optimized // for transform of length 2^N. Those are perfomed by an highly efficient // split-radix algorithm. // Further-optimized algorithms for computing the FFT of real-valued input // are provided, requiring half the time of complex FFT of same length. // // Basic operations provided: // Vector * FFTer -> Vector performs FFT // Vector / FFTer -> Vector performs inverse FFT // Vector * FFTer -> Vector performs FFT optimized // for real input // FFTer.fft( Vector ) performs in-place FFT // FFTer.ifft( Vector ) performs in-place inverse FFT // FFTer.rfft( Vector ) performs in-place real FFT, imag // parts of input assumed being 0 // Additional operations provided: // Vector * FFTer converted to Vector * FFTer // FFTer * Vector<...> converted to Vector<...> * FFTer // /////////////////////////////////////////////////////////////////////////// // vielleicht kann ja jemand was damit anfagen. wenn ned... macht a // nix :) ich hoff, daß keine allzu groben Bugs mehr drin sind. Der // große C++ - programmierer bin ich ned, drum kannma an dem dem klassen- // interface sicher no vieles besser machn, wenn jemandn was ned passt // kanners mir ja sagn. das ganze wurde unter linux mit der gnu ansi-c++ // libg++ entwicklet (klassen Complex und Vektor). gnu verwendet für // die exponentation statt dem XOR-Operator eine funktion namens pow, // und vector wird klein statt groß geschrieben, sonst sollts keine // größeren Unterschiede geben. (i hab jez nix gegen "`unsere"' complex- // klasse, aber i wolltmi ned lang damit beschäftigen wie man dem g++ // sagt die eigene NICHT zu verwenden :-) #include "hansis_fft.h" #include "stdio.h" #include "math.h" #include "stdlib.h" FFTer::FFTer( int l, int mod ) { int loop=2; // Testen, ob l=2^M ist, und ggf dieses M berechnen len=l; for( loop=2,M=1; loop FFTer::operator*( const Vector& fd ) { return fd * (*this); } Vector FFTer::operator*( const Vector& fd ) { return fd * (*this); } Vector FFTer::operator*( const Vector& fd ) { return fd * (*this); } #define CHECK_SIZE(fd,fft) \ if( int((fd).size()) < fft.len ) { \ fprintf(stderr, "DFT-Vector too small\n"); \ exit(1); \ } Vector operator*( const Vector& fd, const FFTer& fft ) { Vector fr(fft.len); CHECK_SIZE(fd,fft); if(fft.mode) return fft.dft( fd, 0 ); // normale DFT return fft.fftsr( fd ); // schnelle FFT } Vector operator*( const Vector& fd, const FFTer& fft ) { Vector fr(fft.len); CHECK_SIZE(fd,fft); if(fft.mode) return fft.dft( fd, 0 ); // normale DFT return fft.rfftsr( fd ); // schnelle FFT } Vector operator*( const Vector& fd, const FFTer& fft ) { Vector fr(fft.len); CHECK_SIZE(fd,fft); if(fft.mode) return fft.dft( fd, 0 ); // normale DFT return fft.rfftsr( fd ); // schnelle FFT } Vector operator/( const Vector& fd, const FFTer& fft ) { Vector fr(fft.len); CHECK_SIZE(fd, fft); if(fft.mode) return fft.dft( fd, 1 ); // normale inverse DFT return fft.ifftsr( fd ); // schnelle inverse FFT } #endif ////////////////////////////////////////////////////////////////////// //// private Hilfsfunktionen primitiv-DFT, für len != pow(2,M) ////////////////////////////////////////////////////////////////////// #if 0 void FFTer::dft_init() { Complex m(cos(2*M_PI/len), -sin(2*M_PI/len)); int i; Dm=new Complex[len]; for(i=0; i fr(len); for(i=0; i FFTer::dft( const Vector input, int invers ) const { int i, j; Vector fr(len); for(i=0; i>1; n4=n2>>2; fftsr_helper( n2, n4, its, x, x+n4, x+2*n4, x+3*n4, y, y+n4, y+2*n4, y+3*n4 ); its<<=1; } // End-"`Butterflies"' (die noch fehlenden Länge-2-Transformationen) i_start=0; i_delta=4; do { for(i=i_start; i>1; n4=n2>>2; ifftsr_helper(n2, n4, x, x+n4, x+2*n4, x+3*n4, y, y+n4, y+2*n4, y+3*n4); } // Letzte 2er-Stufe i_start=0; i_delta=4; do { for( i=i_start; i>2; rfftsr_helper(n2, n4, x, x+n4, x+2*n4, x+3*n4); } } void FFTer::rfftsr_helper( int n2, int n4, double *x1, double *x2, double *x3, double *x4) const { int n8=n2/8,i_start,i_delta,i,j,i2,jn; double tmp1,tmp2,tmp3,tmp4,tmp5; double E, SS1, SS3, SD1, SD3, CC1, CC3, CD1, CD3; i_start=0; i_delta=n2*2; do { for(i=i_start; i v(LEN), v2; Vector d(LEN); int i; printf("initalisieren...\n"); for(i=0; i. 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 outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac 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" # 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 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 -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## 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). ## - 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 -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. 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. tr ' ' ' ' < "$tmpdepfile" | ## 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. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 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 -eq 0; then : else 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 ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; 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. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 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 -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else 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. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 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 -eq 0; then : else 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,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile" else echo "#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. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #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 $1 != '--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:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 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 $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac 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. -*|$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" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 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 $1 != '--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, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; 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-end: "$" # End: twpsk-4.3/src/server/0000775000175000017500000000000013142420757011635 500000000000000twpsk-4.3/src/server/server.h0000644000175000017500000000575612665706231013252 00000000000000#ifndef _USERIF_H_INCLUDED #define _USERIF_H_INCLUDED /* server-api: * auf senden schalten: * modus angeben PSK(preamble,idle) CW(nix,ruhe), TUNE(nix,carrier) * sofort oder bei DCD off angeben * senden ausschalten: * mit postamble oder ohne... * nach tx buffer ende * txbuffer leeren, ggf. postamble, dann abschalten * sofort abschalten */ #include "../modes/psk31-receiver.h" #include "../modes/psk31-transmitter.h" #include "../modes/psk31-fft.h" #include "../modes/psk31-coder.h" #include #include #include #include #include #include #include #include #include #include "../GUI.h" #include #include #define SAMPLERATE 8000 #define PA_NAME "TWPSK" /* shows up on pavucontrol */ //#define FLUSHLEN 512 #define STEREO 1 #define MONO 0 #define COMM_PTT 0x01 #define COMM_DCD 0x02 #define COMM_DCDLEVEL 0x03 #define COMM_QPSK 0x04 #define COMM_LSB 0x05 #define COMM_AFC 0x06 #define COMM_MODE 0x07 #define COMM_FREQ 0x08 #define COMM_FFTN 0x20 #define COMM_FFTOVERLAP 0x21 #define COMM_SWAP 0x40 #define COMM_TXCH 0xFF #define COMM_ECHOCH 0x00 #define COMM_FFTCH 0x01 #define COMM_RXCH 0x02 #define PTTOFF 0 #define PTTON 1 #define PTTFORCE 0x10 #define MO_NORMAL 0x01 /* PSK31 RX or TX */ #define MO_CWSEND 0x02 /* only TX channel: send CW */ #define MO_TUNE 0x04 /* only TX channel: send tune carrier */ #define MO_DISABLED 0x80 /* disable channel. only supp. for 2nd RX */ // spec: // COMM_PTT ON OFF PTT_FORCE // COMM_DCD ON OFF // COMM_DCDLEVEL 0..100 (?) // COMM_QPSK ON OFF // COMM_LSB ON OFF // COMM_AFC ON OFF // COMM_MODE MO_DISABLED MO_NORMAL (TXonly:) MO_CWSEND MO_TUNE // COMM_FFTN 128..4096 // COMM_FFTOVERLAP 0..FFTN, evtl größer // channel: -1=TX, sonst RX // channel: TXCH, RXCH, FFTCH // value: -1= nix ändern, sonst value; return: aktueller value oder -1 typedef struct { int freq; // IF frequence (RX,TX) int qpsk; // QPSK <-> BPSK (RX,TX) int lsb; // LSB(inverted) (RX,TX) int cw; // 0=normal PSK mode 1=transmit as CW 2=tuning(TX) int dcd; // DCD active (RX) int dcdlevel; // DCD sensitifity (-1=disable DCD, (RX) // 0=only preamble/postamble DCD) int strength; // range: 0..40 int afc; // use AFC (RX) int mode; // ?? int ptt; // PTT on??? (transmitting?) (all CH) int phdelta; // last phase change (RX) float qty[4]; // quality (current,bpsk,qpsk,qpsk-inverted) } PSK31info; int commWaitUpdate (unsigned long timeout); int commGetData (int channel, char *buffer, int buflen); int commPutData (char *buffer, int buflen); int commControl (int channel, int spec, int value); int commGetInfo (int channel, void *buffer, int buflen); // for the non-socket server... int server_main (char *ptt, char *datadir); #endif twpsk-4.3/src/server/server.C0000644000175000017500000004673112672370111013173 00000000000000/* HF amateur radio communicator * * digital HF modes (PSK31, RTTY, MT63, ...) * primary server module * * servermain: * * opens and initializes sound card * * initializer encoder and decoder classes (modes/psk31*.C) * * starts new thread for encoding and decoding * * offers interface functions for the user interface * * mutex operations for accesing en-/decoder classes from en/decoding * thread and from user interface thread (==interface functions) */ #include "server.h" #include extern int use_stereo; /* [0]=mono [1]=stereo */ #define TX 1 #define RX 0 // receive / transmit state information int full_duplex; static char *ptt_path=NULL; static int pttfd=-1; static int ptt_invert=0; static int ctl_ptt(int onoff); int lastMode; /* for pulseaudio */ pa_simple *sprx, *sptx; pa_sample_spec ss; pa_buffer_attr rx_attr, tx_attr; // schedule_transmit: 0=no 1=when dcd goes off, 2=immediately static int schedule_transmit=0; static int trDir = RX; static int dcdlevel=0; /* information: mutex usage: * mutex_rx is used for accessing the psk31_receiver objects as well as * the psk31_fft object. this lock is set by the GUI when * changing configuration parameters. * mutex_tx is similar for the psk31_transmitter object. * the buffer mutexes are used for the RX buffers, when copying * data to the GUI and when transfering data from the * psk31 objects in the master loop * * secondary RX decoders: [limit: N_BUFFERS-3] * a secondary can be started by commControl on an unused channel (3..254) * with command COMM_MODE and value set to MO_NORMAL * it can be disabled by COMM_MODE with value MO_DISABLED * if the channel is disable, no other command than COMM_MODE(MO_NORMAL) is * accepted. */ static psk31_transmitter *psk31tx; static psk31_fft *psk31fft; static pthread_t master_thr; static pthread_mutex_t mutex_rx = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t mutex_tx = PTHREAD_MUTEX_INITIALIZER; #ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP static pthread_mutex_t mutex_pa = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP; #else static pthread_mutex_t mutex_pa = PTHREAD_MUTEX_INITIALIZER; #endif /* static pthread_mutex_t mutex_fft= PTHREAD_MUTEX_INITIALIZER; */ /* FFT uses RX mutex! Thus psk31rx also can access the fft */ typedef struct { int len; int rpos; int wpos; char *mem; psk31_receiver *psk31rx; pthread_mutex_t mutex; } buffer_t; /* Buffer==Channel: 0=TXdata-Echo 1=FFT-data 2=Main Rx, 3...=secondary RX */ #define N_BUFFERS 3 + MAX_DECODERS static buffer_t buffers[N_BUFFERS]; static void init_buffer() { int i; for (i=0; i b->len) { return -1; // too much data! } pthread_mutex_lock (&b->mutex); if (cnt > ((b->wpos - b->rpos) % b->len)) { error = -1; } else { error = 0; } if (b->wpos + cnt > b->len) { n = b->len - b->wpos; } else { n = cnt; } bcopy (data, b->mem + b->wpos, n); b->wpos += n; cnt -= n; if (cnt > 0) { bcopy( data + n, b->mem, cnt); b->wpos = cnt; } pthread_mutex_unlock (&b->mutex); return error; } static int read_buffer (int bufnr, char *data, int cnt) { int n, buflen; buffer_t *b = buffers + bufnr; pthread_mutex_lock (&b->mutex); buflen = (b->wpos - b->rpos) % b->len; if (buflen < 0) { buflen += b->len; } if (cnt > buflen) { cnt = buflen; } if (b->rpos + cnt > b->len) { n = b->len - b->rpos; } else { n = cnt; } bcopy (b->mem + b->rpos, data, n); b->rpos += n; cnt -= n; if (cnt > 0) { bcopy (b->mem, data + n, cnt); b->rpos = cnt; } pthread_mutex_unlock ( &b->mutex); return n; } /* * Initialize the soundcard bits per sample and mono or stereo * via the soundcard parameter */ int init_audio () { extern AppRes appRes; int error = 0; ss.format = PA_SAMPLE_S16LE; ss.rate = appRes.sampsize; ss.channels = 2; rx_attr.maxlength = (uint32_t) -1; rx_attr.tlength = 1024 * sizeof(short); rx_attr.prebuf = (uint32_t) -1; rx_attr.minreq = (uint32_t) -1; rx_attr.fragsize = 1024 * sizeof(short); sprx = pa_simple_new (NULL, PA_NAME, PA_STREAM_RECORD, NULL, PA_NAME, &ss, NULL, &rx_attr, &error); if (sprx == NULL) { fprintf (stderr, "init_audio sprx error - %d %s\n", error, pa_strerror (error)); return (0); } tx_attr.maxlength = (uint32_t) -1; tx_attr.tlength = 1024 * sizeof (short); tx_attr.prebuf = (uint32_t) -1; tx_attr.minreq = (uint32_t) -1; tx_attr.fragsize = 1024 * sizeof (short); sptx = pa_simple_new (NULL, PA_NAME, PA_STREAM_PLAYBACK, NULL, PA_NAME, &ss, NULL, &tx_attr, &error); if (sptx == NULL) { fprintf (stderr, "init_audio sptx error - %d %s\n", error, pa_strerror (error)); return (0); } return 1; } /* * init_ptt - initialize the ptt device */ static int init_ptt (void) { pttfd = open (ptt_path, O_RDWR); if (pttfd > 0) { if (ctl_ptt(0) < 0) return -1; } return pttfd; } static int ctl_ptt (int onoff) { if (pttfd < 0) { return 0; /* PTT control disabled, nothing to do... */ } if (ptt_invert) { onoff =! onoff; } int arg = TIOCM_RTS; //TJW int arg = TIOCM_RTS|TIOCM_DTR; if (ioctl (pttfd, onoff?TIOCMBIS:TIOCMBIC, &arg) < 0) { return -1; } return 0; } void master_handler (void) { int res; short sample[2]; int error; int dcd; char cd; buffers[COMM_RXCH].psk31rx->get_info (NULL, NULL, NULL, NULL, NULL, &dcd, NULL, NULL); if (trDir == RX) { while (1) { pthread_mutex_lock (&mutex_pa); // grab the mutex for the pa res = pa_simple_read (sprx, sample, 4, &error); if (error != PA_OK) { fprintf (stderr, "master_handler pa_simple_read error %s\n", pa_strerror (error)); exit (0); } sample[0] = sample[0] + sample[1]; for (int r=COMM_RXCH; rprocess_rx_sample (sample[0]); pthread_mutex_unlock (&mutex_rx); /* release rx mutex */ if (res != NO_CHAR) { rx->get_info (NULL, NULL, NULL, NULL, NULL, &dcd, NULL, NULL); if (dcd || (dcdlevel == -1)) { char cd = (char)res; write_buffer (r, &cd, 1); } } } if ((schedule_transmit == 1 && dcd == 0) || schedule_transmit == 2) { trDir = TX; ctl_ptt (1); psk31tx->send_char (TX_START); schedule_transmit = 0; pthread_mutex_unlock (&mutex_pa); /* release mutex for pa */ break; } } pthread_mutex_unlock (&mutex_pa); /* release mutex for pa */ } if (trDir == TX) { while (1) { pthread_mutex_lock (&mutex_pa); pthread_mutex_lock (&mutex_tx); res = psk31tx->processor (); pthread_mutex_unlock (&mutex_tx); pthread_mutex_unlock (&mutex_pa); /* * echo-characters, including TX_END, * are delivered from psk31tx->processor at the * exact end of the transmission! */ if (res == TX_ERROR) { fprintf (stderr, "TX_ERROR\n");; continue; } if (res == TX_BUSY) { usleep (100); /* give it some time */ continue; } if (res == TX_END) { pa_simple_flush (sptx, &error); trDir = RX; ctl_ptt (0); break; } cd = (char)(res & 0xFF); write_buffer (0, &cd, 1); } } } static void *master_thr_func (void *dummy) { while (1) { while (1) { master_handler (); } } return (NULL); } static int run_master_thread () { pthread_attr_t attr; if (pthread_attr_init (&attr)) { perror ("Cannot initialize pthread attributes"); exit (4); } if (pthread_create (&master_thr, &attr, master_thr_func, NULL)) { perror ("Cannot create IO processing thread"); exit (7); } fprintf (stderr,"run_master_thread: master thread started\n"); if (pthread_attr_destroy (&attr)) { perror ("Failed to destroy attribute"); } return 0; } /* ptt: full path to device * datadir: directory of coder data file (psk31.cod) * ptt may be something like "/dev/ttyS0,i" for inverted PTT */ int server_main (char *ptt, char *datadir) { int rtn; init_buffer (); if (ptt) { ptt_path = strdup (ptt); } if (ptt_path != NULL) { int len = strlen (ptt_path); if (len>2 && ptt_path[len-2] == ',') { ptt_invert = (ptt_path[len-1] != '0'); ptt_path[len-2] = 0; } else { ptt_invert = 0; } } if ((rtn = init_audio ()) == 0) { exit (1); } if (ptt_path && ((pttfd = init_ptt()) < 0)) { fprintf (stderr, "Cannot open PTT device "); perror (ptt_path); } psk31_coder::init_tables (datadir); psk31fft = new psk31_fft (); psk31fft->set_parameters (1024, 1024, psk31_fft::MODE_RXDATA); buffers[COMM_RXCH].psk31rx = new psk31_receiver (psk31fft); psk31tx = new psk31_transmitter (); if (run_master_thread() < 0) { return 0; } return 1; } /* * unused */ int commWaitUpdate (unsigned long timeout) { return -1; } /* * commGetData - channel selects FFT, RX or TX echo buffer. * returns length of buffer */ int commGetData (int channel, char *buffer, int buflen) { int len; if (channel<0 || channel >= N_BUFFERS) return -1; /* if FFT channel, and it has data */ if (channel == COMM_FFTCH) { if (psk31fft->has_new_data ()) { psk31fft->get_parameters (&len, NULL, NULL); if (buflen < (int)(len * sizeof(float))) { fprintf (stderr,"no space in buffer for FFT data\n"); return 0; } psk31fft->get_abs_data ((float *)buffer, 0, len, 1); return len; } else return 0; } else /* else return length of RX or TX echo buffer */ { len = read_buffer (channel, buffer, buflen); return len; } } /* * commPutData - */ int commPutData (char *buffer, int buflen) { int i; if (buflen <= 0) { buflen = strlen (buffer); } pthread_mutex_lock (&mutex_tx); for (i=0; isend_char ((unsigned char)(buffer[i])); } pthread_mutex_unlock (&mutex_tx); return buflen; } static int txControl (int spec, int value) { int retval = 0; static int mq = 0, ml = 0; //TJW , mcw = 0; pthread_mutex_lock (&mutex_tx); switch (spec) { case COMM_PTT: switch (value) { case PTTON: /* schedule TX start on DCD off */ schedule_transmit = 1; break; case PTTON | PTTFORCE: /* schedule TX start now */ schedule_transmit = 2; break; case PTTOFF: /* schedule TX end */ psk31tx->send_char (TX_END); break; case PTTOFF | PTTFORCE: /* shall we just clear the internal buffer and send * a postamble before aborting? should be the right * thing to do! TX_END|TX_URGENT does this job! * However, this does not allow "instant" abort * for emergency cases when something really goes * wrong... (TODO: clarify this matter...) */ psk31tx->send_char (TX_END|TX_URGENT); //TJW #if 0 trDir = RX; ctl_ptt(0); #endif break; } break; case COMM_QPSK: mq = value; psk31tx->send_char (TX_MODE | (value ? TXM_QPSK :0) | (ml ? TXM_LSB : 0)); break; case COMM_LSB: ml = value; psk31tx->send_char (TX_MODE | (mq ? TXM_QPSK : 0) | (value ? TXM_LSB : 0)); break; case COMM_MODE: if (value == MO_TUNE) { psk31tx->send_char (TX_MODE | TXM_TUNE); //TJW mcw = 2; } else if (value == MO_CWSEND) { psk31tx->send_char (TX_MODE | TXM_CW); //TJW mcw = 1; } else { psk31tx->send_char (TX_MODE | (mq ? TXM_QPSK : 0) | (ml ? TXM_LSB : 0)); //TJW mcw = 0; } break; case COMM_FREQ: psk31tx->send_char (TX_FREQ | (0xFFFFF & value)); break; default: retval =- 1; } pthread_mutex_unlock (&mutex_tx); return retval; } static int rxControl (int channel, int spec, int value) { int retval = 0; int mqpsk, mlsb, mafc, musedcd, mdcd; int lastdelta, strength; float mfreq; psk31_receiver *rx = buffers[channel].psk31rx; if (rx == NULL) { if (spec == COMM_MODE && value == MO_NORMAL) { /* start new decoder object */ #if 0 fprintf(stderr,"info: starting new decoder object" "on channel %d\n",channel); #endif buffers[channel].psk31rx = new psk31_receiver (NULL); return 0; } fprintf (stderr,"warning: rxControl on disabled RX channel\n" "channel=%d spec=%d value=%d\n", channel, spec, value); return -1; } pthread_mutex_lock (&mutex_rx); rx->get_info (&mqpsk, &mlsb, &mfreq, &musedcd, &mafc, &mdcd, &lastdelta, &strength); switch (spec) { case COMM_SWAP: /* exchange psk31_receiver objects of current channel and * channel * TODO- keep IQ FFT data reference on COMM_RXCH!! * (currently not used, so not a big issue) */ if (value= N_BUFFERS) { retval =- 1; break; } { psk31_receiver *rx2 = buffers[value].psk31rx; buffers[channel].psk31rx = rx2; buffers[value].psk31rx = rx; if (value == COMM_RXCH) { rx->set_fft (psk31fft); rx2->set_fft (NULL); } else if (channel == COMM_RXCH) { rx2->set_fft (psk31fft); rx->set_fft (NULL); } break; } case COMM_DCD: rx->set_dcd (value); break; case COMM_DCDLEVEL: dcdlevel = value; rx->set_dcdlevel (value); break; case COMM_QPSK: rx->set_mode (value, mlsb); break; case COMM_LSB: rx->set_mode (mqpsk, value); break; case COMM_AFC: rx->set_afc (value); break; case COMM_MODE: if (value == MO_DISABLED) { if (channel == COMM_RXCH) { /* do not delete master RX channel. won't work */ /* as base FFT depends on this master channel */ retval =- 1; break; } #if 0 fprintf(stderr,"info: deleting decoder object" "on channel %d\n",channel); #endif delete rx; buffers[channel].psk31rx = NULL; buffers[channel].rpos = buffers[channel].wpos = 0; } else { fprintf (stderr,"warning: active channel %d: COMM_MODE %d\n", channel, value); } break; case COMM_FREQ: rx->set_freq (0.01 * value); break; default: retval =- 1; } pthread_mutex_unlock (&mutex_rx); return retval; } int fftControl (int spec, int value) { int len, overlap, mode; int retval=0; pthread_mutex_lock (&mutex_rx); psk31fft->get_parameters (&len, &overlap, &mode); switch (spec) { case COMM_FFTN: len = value; psk31fft->set_parameters (len, overlap, mode); break; case COMM_FFTOVERLAP: overlap = value; psk31fft->set_parameters (len, overlap, mode); break; default: retval = -1; } pthread_mutex_unlock (&mutex_rx); return retval; } int commControl (int channel, int spec, int value) { if(channel == 255) /* transmit channel */ //if(channel == COMM_TXCH) /* transmit channel */ { return txControl (spec, value); } else if (channel == COMM_ECHOCH) /* echo channel */ { return 0; /* no control here */ } else if (channel == COMM_FFTCH) /* fft channel */ { return fftControl (spec, value); } else if (channel >= COMM_RXCH && channel < N_BUFFERS) /* rx data channel */ { return rxControl (channel, spec, value); } else { return -1; /* invalid channel */ } } int commGetInfo (int channel, void *buffer, int buflen) { float freq; PSK31info *info; if (channel == COMM_TXCH) { // transmit channel if (buflen < (int)sizeof(PSK31info)) return -1; info = (PSK31info *)buffer; info->ptt = trDir; pthread_mutex_lock (&mutex_tx); psk31tx->get_info (&info->qpsk, &info->lsb, &info->cw, &freq); info->freq = (int)(100*freq); pthread_mutex_unlock (&mutex_tx); } else if (channel == COMM_ECHOCH) { /* echo channel */ return -1; /* no info on echo channel */ } else if (channel == COMM_FFTCH) { /* fft channel */ return -1; /* no info in fft channel (TODO) */ } else if (channel >= COMM_RXCH && channel < N_BUFFERS) { /* rx channel */ int retval = 0; if (buflen < (int)sizeof(PSK31info)) return -1; info = (PSK31info *)buffer; info->ptt = trDir; pthread_mutex_lock (&mutex_rx); psk31_receiver *rx = buffers[channel].psk31rx; if (rx == NULL) { /* TODO: different return value for invalid channel */ /* vs disabled channel */ retval = -1; } else { rx->get_info (&info->qpsk, &info->lsb, &freq, & info->dcdlevel, & info->afc, & info->dcd, & info->phdelta, & info->strength); info->freq = (int)(100 * freq); } pthread_mutex_unlock (&mutex_rx); return retval; } else { return -1; // invalid channel } return 0; // or what should we return here? } twpsk-4.3/src/twpsk.C0000644000175000017500000005234513142415414011524 00000000000000/* twpsk - PSK31 for Linux with a Motif interface * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 * * Portions derived from: psk31lx * Soundcard-based implementation of the PSK31 HF keyboard-to-keyboard mode * Copyright (C) 1998 Hansi Reiser, DL9RDZ */ #include "GUI.h" #include "server/server.h" #include "twpskWids.h" #include "decoderWids.h" #include "twpskCB.h" #include "twpskScope.h" #include "twpskWF.h" #include "twpskHelp.h" #include "decoderWids.h" #include "callbox.h" #include #include #include #include <../config.h> #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) #include #include Pixmap pixmap, mask; XpmAttributes pix_attributes; XpmColorSymbol transparentColor[1] = {{NULL, (char *)"none", 0}}; #endif int OPTnew = 0; // todo: rausdamit (-> filter and sync alg selection for RX) /* Globals */ int use_stereo; char dispStr[200] = ""; XtAppContext ac; AppRes appRes; Widget shell; Wids pskwids; DecoderWid decoderWids[MAX_DECODERS]; Position winlocs[MAX_DECODERS][2]; Scope scope; Disp disp; Help help; TwpskCB twpskCB; /* DL9RDZ */ #if 0 #include "catWids.h" Cat catwids; #endif #define DO_SPEAK 0 /* comment */ #if DO_SPEAK == 1 void mkWord (char ch) { static char word[20]; // char cmd[200] = "espeak -v en-us+f4 -s 150 \""; static int i; word[i] = ch; if (ch == ' ' || ch == '\n') { word[i] = '\0'; strcat (cmd, word); strcat (cmd, "\""); strcat (cmd, " &"); system (cmd); //fprintf (stdout, "%s\n", word); //printf ("%s\n", cmd); i = 0; return; } i++; } #endif /* * main - main function for twpsk */ int main (int argc, char *argv[]) { int height = 0, width = 0, i = 0; int rtn; XtResource appRes_desc[] = { { (char *) XmNbuttonNames, /* Resource Name */ (char *) XmCButtonNames, /* Resource Class */ XmRStringTable, /* Resource Data Type */ sizeof (String *), /* Size of Resource */ XtOffsetOf (AppRes, buttonNames), /* Offset into Struct */ XmRString, /* Default Type */ (XtPointer) "-1" /* Default Value */ }, { (char *) XmNxmitHighlight, /* Same as above */ (char *) XmCXmitHighlight, XmRInt, sizeof (int), XtOffsetOf (AppRes, xmitHighlight), XtRInt, (XtPointer) 0 }, { (char *) XmNrxFreq, /* Same as above */ (char *) XmCRxFreq, XmRFloat, sizeof (float), XtOffsetOf (AppRes, rxFreq), XtRFloat, (XtPointer) 0 }, { (char *) XmNtxFreq, /* Same as above */ (char *) XmCTxFreq, XmRFloat, sizeof (float), XtOffsetOf (AppRes, txFreq), XtRFloat, (XtPointer) 0 }, { (char *) XmNafc, /* Same as above */ (char *) XmCAfc, XmRInt, sizeof (int), XtOffsetOf (AppRes, afc), XtRInt, (XtPointer) 0 }, { (char *) XmNnet, /* Same as above */ (char *) XmCNet, XmRInt, sizeof (int), XtOffsetOf (AppRes, net), XtRInt, (XtPointer) 0 }, { (char *) XmNcall, /* Same as above */ (char *) XmCCall, XmRString, sizeof (char), XtOffsetOf (AppRes, call), XtRImmediate, (XtPointer) " ", }, { (char *) XmNzero, /* Same as above */ (char *) XmCZero, XmRInt, sizeof (int), XtOffsetOf (AppRes, zero), XtRImmediate, (XtPointer) 0 }, { (char *) XmNserDev, /* Same as above */ (char *) XmCSerDev, XmRString, sizeof (char), XtOffsetOf (AppRes, serDev), XtRImmediate, (XtPointer) "/dev/ttyS1", }, { (char *) XmNptt, /* Same as above */ (char *) XmCPtt, XmRInt, sizeof (int), XtOffsetOf (AppRes, ptt), XtRImmediate, (XtPointer) 0 }, { (char *) XmNcallBox, /* Same as above */ (char *) XmCCallBox, XmRInt, sizeof (int), XtOffsetOf (AppRes, callBox), XtRImmediate, (XtPointer) 0 }, { (char *) XmNpostamble, /* Same as above */ (char *) XmCPostamble, XmRInt, sizeof (int), XtOffsetOf (AppRes, postamble), XtRImmediate, (XtPointer) 1 }, { (char *) XmNsampsize, /* Same as above */ (char *) XmCSampsize, XmRInt, sizeof (int), XtOffsetOf (AppRes, sampsize), XtRImmediate, (XtPointer) 8000 } }; /* * Create the shell, register a callback for the WM Close button, * catch the INT, QUIT, and TERM signals, and read the resource file * if Twpsk was found. */ shell = XtVaAppInitialize (&ac, "Twpsk", NULL, 0, &argc, argv, NULL, XmNmwmFunctions, MWM_FUNC_ALL | MWM_FUNC_CLOSE, XmNtitle, "TWPSK", NULL); #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) /* * then create pixmap for applicaton Icon */ pix_attributes.closeness = 40000; pix_attributes.valuemask = XpmColorSymbols | XpmCloseness; pix_attributes.colorsymbols = transparentColor; pix_attributes.numsymbols = 1; XpmCreatePixmapFromData (XtDisplay(shell), DefaultRootWindow (XtDisplay (shell)), (char **)twpsk_xpm, &pixmap, &mask, &pix_attributes); XtVaSetValues (shell, XmNiconPixmap, pixmap, NULL); #endif /* * Get the app resources from the resource file */ XtGetApplicationResources (shell, &appRes, appRes_desc, XtNumber(appRes_desc), NULL, 0); /* * Check to see if we are running on the default value for * buttonNames ("-1"). If so, Twpsk was probably not found, * so exit gracefully. */ if (strcmp (appRes.buttonNames[0], "-1") == 0) { XtRealizeWidget (shell); errorDiag (shell, (char *) "The resource file, Twpsk, is missing\n" "This is an installation problem. Did\n" "you install twpsk as root?\n\n" "Please send bug reports to \n" PACKAGE_BUGREPORT, !CANCEL_BTN, ERR_DIAG); fprintf (stderr, "twpsk: Twpsk resource file missing\n"); XtAppMainLoop(ac); exit (1); /* Never gets here */ } /* * Read parameters from ~/.twpskDir/.twpsk.dat * Don't go into the AppLoop, just continue on blindly */ rtn = iniProc ('r'); /* read window locations/channels */ if (rtn == FALSE) { XtRealizeWidget (shell); errorDiag (shell, (char *) "iniProc failed. Run twpsk from a terminal\n" "to get more error information.\n\n"\ "Please send bug reports to\n" PACKAGE_BUGREPORT, !CANCEL_BTN, ERR_DIAG); fprintf (stderr, "iniProc failed. Run twpsk from a terminal\n"); } /* * initialize server */ rtn = server_main ( appRes.ptt ? appRes.serDev : NULL, (char *)PKG_DATA_DIR); if (rtn == FALSE) { XtRealizeWidget (shell); errorDiag (shell, (char *) "The server fail to initialize.\n" "Run twpsk from a terminal to get\n" "more error information.\n\n"\ "Please send bug reports to\n" PACKAGE_BUGREPORT, !CANCEL_BTN, ERR_DIAG); fprintf (stderr, "server initialization failed\n"); XtAppMainLoop (ac); exit (1); /* Never gets here */ } /* * Create widgets * Output lesstif/openMotif info and * make icon */ pskwids.buildWidgets (shell, &appRes); /* * Any info messages have been added to dispStr and can be printed now */ pskwids.addText (dispStr); #ifdef XmVERSION_STRING extern char _XmVersionString[]; sprintf (dispStr, (char *) "Compiled with %s\n", XmVERSION_STRING + 4); pskwids.addText (dispStr); sprintf (dispStr, (char *) "Running with %s\n", _XmVersionString + 4); pskwids.addText (dispStr); #endif /* print some resources to the tx Text window */ pskwids.addText ( (char *) "Twpsk Application Resources\n Call: "); pskwids.addText (appRes.call); pskwids.addText ((char *) "\n File Names:\n"); i = 0; while (appRes.buttonNames[i] != NULL) { sprintf (dispStr, " %s%s\n", appRes.buttonNames[i], appRes.buttonNames[i+1] == NULL ? "":","); pskwids.addText (dispStr); i++; } sprintf (dispStr, " PTT Device: %s\n", appRes.ptt == 1 ? appRes.serDev : "disabled"); pskwids.addText (dispStr); /* * trap some signals */ //wm_delete_win = XmInternAtom (XtDisplay(shell), "WM_DELETE_WINDOW", False); //XmAddWMProtocolCallback (shell, wm_delete_win, quitCB, NULL); signal (SIGINT, gotSig); signal (SIGQUIT, gotSig); signal (SIGTERM, gotSig); /* * Tell the help class about the shell. */ help.setShell (shell); #if 0 /* * Hansi's cat window */ catwids.buildWidgets(shell, &appRes); #endif /* * setup secondary rx windows */ DecoderWid::shell = shell; for(int i=0; i 0) { if (l != N) { fprintf (stderr, "FFT len mismatch: l=%d N=%d\n", l, N); } disp.getFFT (fftval, N); } /* * handle transmit echo. We could use a different color? * Sri, Hansi. Best I can do is to underline or highlight it. */ rxecho = commGetData (COMM_ECHOCH, buf, sizeof buf); if (rxecho > 0) { for (i=0; i 0) { for (i=0; i .05) { sprintf (str, "%4.1f", appRes.rxFreq); XmTextFieldSetString (pskwids.getRxFreqTF(), str); /* tell the fft about it */ disp.offset (appRes.rxFreq); rxfreqOld = appRes.rxFreq; } } } else { /* scope display for each tx character put in the echo (rx) window */ if (rxecho > 0) phdelta = 0; else phdelta = 128; scope.drawline (phdelta, 35, GREEN); } /* handle receive for additional receivers */ for (ch=0; ch 0) { for (i=0; id_name, ".") == 0) | (strcmp (dirstruct->d_name, "..") == 0)) { continue; } strcpy (ifile, dname); strcat (ifile, "/"); strcat (ifile, dirstruct->d_name); strcpy (ofile, destdir); strcat (ofile, "/"); strcat (ofile, dirstruct->d_name); fdin = open (ifile, O_RDONLY, 0655); fdout = open (ofile, O_RDWR | O_CREAT, 0655); while ((n = read (fdin, buff, BUFSIZ)) > 0) { n = write (fdout, buff, n); } close (fdin); close (fdout); } closedir (dirptr); return 1; } /* * chk_dialout - checks to see if the user is a member of the dialout group * return 1 if true, otherwise return 0 */ int chk_dialout (void) { int i=0; struct group *ptr; char *user; user = getenv ("LOGNAME"); ptr = getgrnam ("dialout"); if (ptr == NULL) { perror ("getgrnam failed"); return -1; } for (i=0; ptr->gr_mem[i] != NULL; i++) { if (strcmp (ptr->gr_mem[i], user) == 0) { return 1; } } return 0; } twpsk-4.3/src/twpskDiags.C0000644000175000017500000002251213142416032012462 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #include "GUI.h" #include "twpskWids.h" #include "twpskHelp.h" #define TEXT 0 #define INSERT 1 #define ABOUT 0 extern AppRes appRes; extern Wids pskwids; extern Help help; extern Widget shell; #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) extern Pixmap pixmap; #endif /* * aboutDiag Function - Just an info dialog */ void aboutDiag () { static Widget diag = NULL; XmString msg_xs; char msg_str[] = PACKAGE_STRING " \251 2000\n" "Interfaces by Ted Williams - WA\330EIR\n" "PSK classes by Hansi Reiser - DL9RDZ\n\n" "Please send bug reports to\n" PACKAGE_BUGREPORT; if (diag == NULL) { diag = XmCreateInformationDialog (shell, (char *)"aboutDiag", (ArgList) NULL, 0); XtVaSetValues (XtParent(diag), XmNtitle, "ABOUT TWPSK", #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) XmNiconPixmap, pixmap, #endif XmNmwmDecorations, MWM_DECOR_ALL | MWM_DECOR_RESIZEH, NULL); msg_xs = XmStringCreateLtoR (msg_str, XmFONTLIST_DEFAULT_TAG); XtVaSetValues (diag, XmNmessageAlignment, XmALIGNMENT_CENTER, XmNmessageString, msg_xs, NULL); XmStringFree(msg_xs); XtUnmanageChild (XmMessageBoxGetChild (diag, XmDIALOG_CANCEL_BUTTON)); XtUnmanageChild (XmMessageBoxGetChild (diag, XmDIALOG_HELP_BUTTON)); } XtManageChild (diag); } /* * helpCB - help menu buttons callback */ void helpCB (Widget w, XtPointer topic, XtPointer call_data) { switch ((long)topic) { case ABOUT: aboutDiag(); break; default: help.popupHelp ((long)topic); break; } } /* * Ok Callback for promptDiag * cdata is the last char to transmit */ void OkCB (Widget w, XtPointer cdata, XtPointer cbs) { char lastChar = (long) cdata; XmSelectionBoxCallbackStruct *pt = (XmSelectionBoxCallbackStruct *) cbs; char *inputString, *freeMe; XmStringGetLtoR (pt->value, XmFONTLIST_DEFAULT_TAG, &inputString); freeMe = inputString; while (*inputString != '\0') { appendTXtext (*inputString, appRes.zero); inputString++; } appendTXtext (lastChar, appRes.zero); XtAppAddWorkProc (XtWidgetToApplicationContext(w), procFileText, (XtPointer) NULL); XtFree (freeMe); } /* * promptDiag - used to enter text when sending a file */ void promptDiag (char *word, char lastChar) { int i = 0; Arg args[5]; Widget promptDiag; XmString msg_xs; XmString textField; /* Create the Prompt Dialog and remove Help and Cancel buttons */ XtSetArg (args[i], XmNtitle, "TWPSK PROMPT DIALOG"); i++; /* We can only try this! Lesstif bug?*/ XtSetArg (args[i], XmNdialogStyle, XmDIALOG_FULL_APPLICATION_MODAL); i++; promptDiag = XmCreatePromptDialog (pskwids.getShell(), (char *)"promptDiag", args, i); XtUnmanageChild (XmSelectionBoxGetChild (promptDiag, XmDIALOG_HELP_BUTTON)); XtUnmanageChild (XmSelectionBoxGetChild (promptDiag, XmDIALOG_CANCEL_BUTTON)); XtAddCallback (promptDiag, XmNokCallback, OkCB, (XtPointer) ((long)lastChar)); msg_xs = XmStringCreateLocalized (word); textField = XmStringCreateLocalized ((char *)""); XtVaSetValues (promptDiag, XmNmessageAlignment, XmALIGNMENT_CENTER, XmNtextString, textField, XmNselectionLabelString, msg_xs, NULL); XtVaSetValues (XtParent (promptDiag), #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) XmNiconPixmap, pixmap, #endif NULL); XtVaSetValues (promptDiag, XmNmessageAlignment, XmALIGNMENT_CENTER, XmNtextString, textField, XmNselectionLabelString, msg_xs, NULL); XmStringFree (msg_xs); XmStringFree (textField); XtManageChild (promptDiag); } /* * Error Dialog - called from many places and passed the parrent widget, * the error message to display and a flag that indicates the Cancel * button is wanted. */ void errorDiag (Widget w, char *emess, int flag, int type) { Widget errDiag; XmString xs; if (type == ERR_DIAG) { errDiag = XmCreateErrorDialog (w, (char *) "errDiag", NULL, 0); } else { errDiag = XmCreateWarningDialog (w, (char *) "errDiag", NULL, 0); } xs = XmStringCreateLocalized(emess); XtVaSetValues (XtParent(errDiag), XmNtitle, "TWCW ERROR", #if (MAKE_ICON == 1) && (HAVE_X11_XPM_H == 1) && (HAVE_LIBXPM == 1) XmNiconPixmap, pixmap, #endif XmNmwmFunctions, MWM_FUNC_ALL | MWM_FUNC_CLOSE, NULL); XtVaSetValues (errDiag, XmNdialogStyle, XmDIALOG_PRIMARY_APPLICATION_MODAL, XmNmessageString, xs, NULL); XmStringFree (xs); XtUnmanageChild (XmMessageBoxGetChild(errDiag, XmDIALOG_HELP_BUTTON)); XtAddCallback (errDiag, XmNokCallback, errOkCB, (XtPointer) w); if (flag == CANCEL_BTN) { XtAddCallback (errDiag, XmNcancelCallback, errCancelCB, w); } else { XtUnmanageChild (XmMessageBoxGetChild(errDiag, XmDIALOG_CANCEL_BUTTON)); } XtManageChild (errDiag); } /* * errOkCB - does cleanup and exits */ void errOkCB (Widget w, XtPointer cdata, XtPointer cbs) { /* no cleanup so just exit */ exit (1); } /* * errCancelCB - unmanage the shell to exit */ void errCancelCB (Widget w, XtPointer cdata, XtPointer cbs) { // Do nothing } /* * procFileText - Sends the contents of a file * If the file contains a '~', stop the work * proc and popup a prompt dialog for text. */ Boolean procFileText (XtPointer data) { static char *start, *ptr, *begin; static Boolean first = True; static int ToDo = TEXT; char lastChar; int i = 0; if (first == True) { start = (char *) data; /* starting point within text */ begin = (char *) data; /* keep this to free later */ first = False; } switch (ToDo) { case TEXT: /* send file text and check for ~ */ while (start[i] != '\0') { /* if char is a '~' and previous char was a ' ', '\0' or '\n' */ /* then ask for text. '\0' happens when there is a ~WORD at */ /* the end of a line, and the next line starts with a ~WORD */ if (start[i] == '~' && (start[i-1] == ' ' || start[i-1] == '\0' || start[i-1] == '\n')) { i++; start = start + i; ToDo = INSERT; /* make us go to the other case next */ return (False); /* reschedule the work proc */ } else { appendTXtext (*start, appRes.zero); /*send the char */ start++; continue; } } first = True; XtFree (begin); /* Free space used by file */ return (True); /* All done so don't resked work proc */ case INSERT: /* Inserts text for *word */ ptr = start; while ( *start != ' ' && *start != '\n') start++; lastChar = *start; /* save the terminating char */ *start = '\0'; /* "~word " is now "word\0" */ promptDiag (ptr, lastChar); /* popup the prompt dialog */ start++; ToDo = TEXT; return (True); /* Don't reschedule the work proc, */ /* The diag will reschedule it */ default: printf ("We never get here :-) \n"); } return (False); /* We never get here either */ } /* * getFile Function * Passed a pathname, this will XtMalloc space for the file, * reads the file, and returns a pointer to the file contents. * The caller must XtFree this pointer! */ char *getFile (char *filename) { FILE *fp; struct stat info; char *pt; if (stat (filename, &info) != 0) { perror ("File Stat"); exit (1); } if ((pt = (char *)XtMalloc ((int)info.st_size + 1)) == NULL) { perror ("twpskDiags getFile - XtMalloc error"); exit (1); } if ((fp = fopen (filename, "r")) == NULL) { perror ("twpskDiags getFile - File Open error"); exit (1); } if (fread (pt, 1, (int)info.st_size, fp) != (unsigned int)(info.st_size)) { perror ("twpskDiags getFile - Read error"); exit (1); } pt[(int)info.st_size] = '\0'; //TJW if (0) { fprintf (stderr, "\ngetFile XtMalloc %p\nFILENAME %s\nLEN %ld\nTEXT\n%s\n", pt, filename, info.st_size+1, pt); } return (pt); } twpsk-4.3/src/icons/0000755000175000017500000000000013044164050011430 500000000000000twpsk-4.3/src/icons/sa.xbm0000644000175000017500000000073112164352640012472 00000000000000#define sa_width 32 #define sa_height 16 static unsigned char sa_bits[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0xcf, 0xf9, 0xff, 0xff, 0x07, 0xf0, 0xff, 0xff, 0x03, 0xe0, 0xff, 0x3f, 0x00, 0x00, 0xfc}; twpsk-4.3/src/icons/wfCursorMask.xbm0000644000175000017500000000046312164353753014525 00000000000000#define wfCursorMask_width 15 #define wfCursorMask_height 16 static unsigned char wfCursorMask_bits[] = { 0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xfe, 0x3f, 0xfe, 0x3f, 0xfc, 0x1f, 0xf8, 0x0f, 0xf0, 0x07, 0xe0, 0x03, 0xc0, 0x01, }; twpsk-4.3/src/icons/sine1.png0000644000175000017500000000344412162137774013117 00000000000000‰PNG  IHDR00Wù‡sRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÛ ;=O7´¤IDAThÞí˜=h#IÇ;8˜`‚R`Ò­ÀàÀ ê aÖAkØÀèî`‚¤ .hðÁ&›˜Uà¥7à…nƒƒ…;É8XFTàÜA7HÁ*8 Á]ÁÎú‚nµÕ²=cÏÎÞØÇ<¥z¯>Þÿ}T½.øBŸ—¾šïÔjµè>(ÝívS½—…{{{wZù\.ÍŒÿàGOtßðÀÿFƒN§s¥Üó<ÆÇX[[#—Ëe~½^/•÷z=666RÙöövºÙü\ÏóØÞÞÎô=Ï#—Ë1™Lèt:™µkkklll¤cn àÅ‹ ‡CÂ0d8Òl6ÓšÍ&Õj•0 ÃÏó(‹—æ Æã1•J…0 ±,‹B¡@¿ß§ßﳿ¿O¥RÁó¼tïjµÊ›7oh·Û×ê¸t7Ï”úU«U*•J†7™LØÞÞÀuÝÌšÅb‘^¯—zd^Ñjµšþ·,ëfñX«Õ¢0 Ó_¥R‰ŠÅbäºnä8NdYVäºnFD–eEŽãDÃáð’ ˆ*•JF¶¸ÇlÌ¢ÌuÝȲ¬ o¶æ.²ÉdÂx<¦Ùl2©V«Ëìïï†!…BN§C³ÙÌ̵,‹~¿Ïáá!‡‡‡Wî1[ã*ùd2¡P(¼×èï !ÏóÃðÚÓc?Ub®N¹4×qz½Žã\»Ï"Çã÷Îù`µÛíÔµ‹îÉŠÅb*·,+7ý~?r]7Ó/‹éx˲" j·Û™õgüÙ¸~¿e-]g‘“““4!¯Jâv»Íxî››±•GIù£8òß.zPaÛy|5Ms"Îùi×$ÎÑÉú„ªþ´FrŠ%cÑ4†”Ë0ý=6ý=¤\Û4ŸŒWÁ”²Mª˜¬BótÓ@óåFÊSF¾FJõÇħÄ/h :Ã4óŒ8Cê]ˆaˆäZˆ—xà M.÷ðb Ar¡½eó[x‹Öpä°í|r¼æ9VqnÈ8œþqàS¯ÿzãpñÊeDZƒ/;»]yÆÎN€gM%Ï’˜Ö”J±Òe[ dÁë)e;{fÄéÐÇ0–1M‘Üà %§&éüàu<ßï0 ðå8ãèÕÍò#©Fk€@J”»!0ÊËt»Œò2âQM¬ôojJÙXà!põqjhþB>ñŒà !”Lqq2ðØjý€õµ/[Gtž€€Ÿ~XÅiaÛn÷·;H批¶9ßñkï|5*|êÏ_açV°m#9&}i¨Ç¡"¾$µ ÎÈ·§Pòæ»r>á­ppð+@ºÞ¬ÝiíR³-òk1Ø­­U~Þz‚&DË´õz}®\Qב™ë%@`؉²ô;ðÕ[Æã$†MàÝÐI–yˆd@ 5[??Nêà·t»š²½’Ù§l¯Hk'm›ü¸£°í$Æ0®hõ¼G¯/§…tv7y¾iÇÊ‚:O“G¤ â#ö4ÓÏ›"9µf©Ï+€â¯‰Gf÷5߯ÇJ·¶j·:FßûMüô™}È\F¾ö2–ž%âËÖ¿)ÛÆÅØG%4!"A%L  «›FfˆÒŸÛÒÒMZBÐ üŒ¥JBJ”çªÏ¸Ü6Í eãZ(Äž`†a|ôM|cÂ|˜$c)«€½RÆí\øæ»²5gé'ˆRþ“—Ó7°ú(N ÜÝÈóͺ‘U®Y«±ºžÿd–þÃJvlùr}á™ïë…6¡îµîÖ™HÎÝå…w.Û´ùq§†mÚŸå•bé6ƒ;»{<Ù4/ñ[[->Ý ÀÓg5î-}àáèÎÓWWð¢û¤ÿƒ‚úB_èú/ËàšAà²NµIEND®B`‚twpsk-4.3/src/icons/wf.xbm0000644000175000017500000000073112164352635012507 00000000000000#define wf_width 32 #define wf_height 16 static unsigned char wf_bits[] = { 0xff, 0xa3, 0xc6, 0xff, 0xff, 0x63, 0xc5, 0xff, 0xff, 0xa3, 0xc6, 0xff, 0xff, 0x63, 0xc5, 0xff, 0xff, 0xa3, 0xc6, 0xff, 0xff, 0x63, 0xc5, 0xff, 0xff, 0xa3, 0xc6, 0xff, 0xff, 0x63, 0xc5, 0xff, 0xff, 0xa3, 0xc6, 0xff, 0xff, 0x63, 0xc5, 0xff, 0xff, 0xa3, 0xc6, 0xff, 0xff, 0x63, 0xc5, 0xff, 0xff, 0xa3, 0xc6, 0xff, 0xff, 0x63, 0xc5, 0xff, 0xff, 0xa3, 0xc6, 0xff, 0xff, 0x63, 0xc5, 0xff}; twpsk-4.3/src/icons/twpsk_16x32.png0000644000175000017500000000155612162137774014115 00000000000000‰PNG  IHDR BNµþsRGB®Îé pHYs  šœtIMEÚ5;™(%1IDAT8ËÍ’MoE†«ºkz¦g–¯'ë8Þb„½Ø ¾Hq) $$$Hü€ÜrápäÀÑH9‚8pA".ƒ‘"â€#aËYïfý‘õÌÎôLwqØ8ò’ÌçTR?]z»«P}üia-"Q¼2;¹›€°}w’ Ž@.ÍU}¯,K)¥µÖó¼Â2" €@D¼ï1³µŽžŠÔ Xk¥”¹Éƒ @¸¯8vpX¥AF:-{›Z‡EQL¥{Ý8žpÎ…ZŸ›cçÄ$ÊASèsc¬s¦(%Qsf&Žck­ zD’GÆÉ^gmm­Ýn/..Zk‘ˆFŒCžç5›ÍF£1??/„BŒV@ DœœœTJI)¥”Ì ²l¸Óíú¾N'Ïóååå i k]ERJ"*˲Z­FQôØÞ¾ï/,-âÖëõÑG†•Rp<üþ?6!ŠÇQʲ¤$I’À;Ž›œÂPW*•U™ðع‘£+›½­þîCoggÏ”´ruuâ›<Üz`€v:¼꣺µÖœ—$¡¤ñ¯"”4Þ€XPka‘ÅØbcfÇ—Ç9·h*+ÕkÏ¿^8GÆÚ,KPâ”VÃÒ¦…õJ†ÙªîÞKèL=©þÞ½©©ºW®ß½ôâ9 °Ÿ¦h)¿þ}ãÙæ©@ŠuBÚIÒ_úw²ìNš™,ˆoœ™.nþ±~º9+ººÕ½Óë+týýßùìòû§âF%úvcûµ™ú…/Ì•Fàéj8ÈLb,°ýüÍ—ÜÞîÏÛ;te³÷ÕÍ?_Ö4Düdõv(éöçYù?]ÿí¹VË×êâ׌ôª'NæÝ}€žŒjy Ì\ño ÊöåïkÚ“ˆî×­¡afƒLÎuRÁ!òèk•d~{:öP¾wn$]zuùéÚ5’u‚yˆ_ì™·"•®ŠHà 5½Îï÷»–9ˆ‘/,´ÈÚïnÜú „’R"ÐÒØ<IEND®B`‚twpsk-4.3/src/icons/twpsk_16x32.xpm0000644000175000017500000001115012162137774014124 00000000000000/* XPM */ static char * twpsk_xpm[] = { "15 32 223 2", " c #06798E", ". c #01768B", "+ c #04778D", "@ c #41949F", "# c #308C9A", "$ c #308D9A", "% c #198193", "& c #64A5B1", "* c #72ACB6", "= c #6EA8B2", "- c #71ABB5", "; c #73ADB7", "> c #6EAAB6", ", c #6FABB6", "' c #70ABB6", ") c #72ACB7", "! c #6FA9B4", "~ c #88B0B7", "{ c #9EB9BF", "] c #9BB6BC", "^ c #97B3B8", "/ c #9FBBC0", "( c #A0BBC1", "_ c #9EBABF", ": c #9EBAC0", "< c #99B6BA", "[ c #9AB5BB", "} c #A4B3B6", "| c #A5A4A3", "1 c #AEADAD", "2 c #A9A8A8", "3 c #AEACAC", "4 c #A4A3A2", "5 c #B3B2B2", "6 c #B1B0B0", "7 c #BBB9B9", "8 c #DDDCDC", "9 c #DCDADA", "0 c #CFCFCD", "a c #9DADB0", "b c #9E9E9E", "c c #AEAEAE", "d c #A2A2A2", "e c #A6A6A6", "f c #B6B6B6", "g c #D1D1D1", "h c #E0E0E0", "i c #DDDDDD", "j c #DEDEDE", "k c #D2D3D2", "l c #B5C5C7", "m c #989898", "n c #888888", "o c #B1B1B1", "p c #DCDCDC", "q c #D9D9D9", "r c #DADADA", "s c #BACACC", "t c #B0B0B0", "u c #D8D8D8", "v c #BBCBCE", "w c #B7B7B7", "x c #C2C2C2", "y c #E1E1E1", "z c #B3C3C5", "A c #A1A1A1", "B c #A8A8A8", "C c #AAAAAA", "D c #A3A3A3", "E c #D6D6D6", "F c #B0C0C3", "G c #ACACAC", "H c #ABABAB", "I c #C6C6C6", "J c #B7C7CA", "K c #B9C9CB", "L c #BACACD", "M c #CECFCE", "N c #AFBFC2", "O c #D2D2D2", "P c #C7C9C7", "Q c #D1D1D0", "R c #7BADB6", "S c #9FB6BA", "T c #A1B6B9", "U c #8AB0B6", "V c #1F7685", "W c #2F2D29", "X c #30312D", "Y c #2F312D", "Z c #582724", "` c #2D2E2A", " . c #276F7B", ".. c #1E7685", "+. c #2F302D", "@. c #313431", "#. c #303431", "$. c #582B28", "%. c #2D312E", "&. c #1D7889", "*. c #4E5858", "=. c #4D5A5A", "-. c #675454", ";. c #4B5858", ">. c #297784", ",. c #198497", "'. c #21899B", "). c #1C8799", "!. c #20899A", "~. c #138397", "{. c #107B8F", "]. c #057C92", "^. c #057D93", "/. c #1A8699", "(. c #118296", "_. c #077D93", ":. c #0C7E93", "<. c #087D93", "[. c #258B9C", "}. c #0F7D91", "|. c #3993A2", "1. c #639EA8", "2. c #508E9A", "3. c #65A3AD", "4. c #639AA4", "5. c #077083", "6. c #79A8B1", "7. c #76A8B1", "8. c #679EA7", "9. c #6FA5AF", "0. c #78A8B2", "a. c #2B8495", "b. c #5AA2AF", "c. c #62A5B1", "d. c #408F9D", "e. c #278898", "f. c #33808E", "g. c #277886", "h. c #378492", "i. c #317C8A", "j. c #097184", "k. c #BEC8CA", "l. c #B9C8CA", "m. c #92A5A8", "n. c #AEC3C8", "o. c #BDC9CC", "p. c #418E9C", "q. c #418D9C", "r. c #478E9A", "s. c #2D7F8F", "t. c #4F9BA8", "u. c #A6B5B7", "v. c #BEC1C2", "w. c #7AA4AB", "x. c #BCBFBE", "y. c #096F82", "z. c #02758B", "A. c #03758A", "B. c #1C8394", "C. c #0F7B8E", "D. c #04758B", "E. c #047488", "F. c #A0BDC1", "G. c #9EADB0", "H. c #69969E", "I. c #117F93", "J. c #00748A", "K. c #3A7D8E", "L. c #317E8F", "M. c #00738A", "N. c #0A7286", "O. c #E1CFCC", "P. c #E0D5D3", "Q. c #AAABAB", "R. c #DACACA", "S. c #E1D3D0", "T. c #4E94A3", "U. c #9AC0C6", "V. c #A8C3C7", "W. c #6297A1", "X. c #618895", "Y. c #72818B", "Z. c #72808A", "`. c #307F91", " + c #0B7286", ".+ c #0A778C", "++ c #1B8091", "@+ c #1E8192", "#+ c #1C8091", "$+ c #0A778B", "%+ c #09768A", "&+ c #4895A2", "*+ c #4C93A0", "=+ c #348796", "-+ c #107F93", ";+ c #6B8994", ">+ c #73818B", ",+ c #368191", "'+ c #0C7185", ")+ c #58909B", "!+ c #208194", "~+ c #72AFBA", "{+ c #208395", "]+ c #7EB5BE", "^+ c #2F8797", "/+ c #5999A5", "(+ c #5F97A0", "_+ c #3F8794", ":+ c #158094", "<+ c #10798E", "[+ c #5A8491", "}+ c #4F8492", "|+ c #05778D", "1+ c #107386", "2+ c #8AA1A4", "3+ c #368F9F", "4+ c #81A0A5", "5+ c #268293", "6+ c #9DAFB2", "7+ c #3E8896", "8+ c #A6C1C4", "9+ c #AABEC1", "0+ c #69959C", " . . . . + @ # $ % . . . . . ", "& * = - = ; > , ' ) ; ; ; * ! ", "~ { ] { ^ / ( ( ( _ : : : < [ ", "} | 1 2 3 4 5 6 7 8 9 9 9 9 0 ", "a b c d e b f g h i j j j i k ", "l m n o p q r j i j j j j i k ", "s f t u j j j j j j j j j i k ", "v w x j y y i j j j j j j i k ", "z A B x C D E j j j j j j i k ", "F G H I e o y j j j j j j i k ", "J u r r q i i j j j j j j i k ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j i k ", "L i i i i i i i i i i i i i M ", "N O O O O O O O O O O O O O P ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j j Q ", "R S S S S S S T S S S S S S U ", "V W X X X X Y Z Y X X X X ` .", "..+.@.@.@.@.#.$.#.@.@.@.@.%. .", "&.*.=.=.=.=.=.-.=.=.=.=.=.;.>.", ",.'.).!.~.{.].^./.(._.:.<.[.}.", "|.1.2.3.4.5.6.7.8.9.0.a.b.c.d.", "e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.", "t.u.v.w.x.y.z.A.B.C.D.E.F.G.H.", "I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.", "I.X.Y.Z.`. +.+++@+#+$+%+&+*+=+", "-+;+>+Z.,+'+)+!+~+{+]+^+/+(+_+", ":+<+[+}+|+1+2+3+4+5+6+7+8+9+0+"}; twpsk-4.3/src/icons/twpsk.png0000644000175000017500000000155612162137774013252 00000000000000‰PNG  IHDR BNµþsRGB®Îé pHYs  šœtIMEÚ5;™(%1IDAT8ËÍ’MoE†«ºkz¦g–¯'ë8Þb„½Ø ¾Hq) $$$Hü€ÜrápäÀÑH9‚8pA".ƒ‘"â€#aËYïfý‘õÌÎôLwqØ8ò’ÌçTR?]z»«P}üia-"Q¼2;¹›€°}w’ Ž@.ÍU}¯,K)¥µÖó¼Â2" €@D¼ï1³µŽžŠÔ Xk¥”¹Éƒ @¸¯8vpX¥AF:-{›Z‡EQL¥{Ý8žpÎ…ZŸ›cçÄ$ÊASèsc¬s¦(%Qsf&Žck­ zD’GÆÉ^gmm­Ýn/..Zk‘ˆFŒCžç5›ÍF£1??/„BŒV@ DœœœTJI)¥”Ì ²l¸Óíú¾N'Ïóååå i k]ERJ"*˲Z­FQôØÞ¾ï/,-âÖëõÑG†•Rp<üþ?6!ŠÇQʲ¤$I’À;Ž›œÂPW*•U™ðع‘£+›½­þîCoggÏ”´ruuâ›<Üz`€v:¼꣺µÖœ—$¡¤ñ¯"”4Þ€XPka‘ÅØbcfÇ—Ç9·h*+ÕkÏ¿^8GÆÚ,KPâ”VÃÒ¦…õJ†ÙªîÞKèL=©þÞ½©©ºW®ß½ôâ9 °Ÿ¦h)¿þ}ãÙæ©@ŠuBÚIÒ_úw²ìNš™,ˆoœ™.nþ±~º9+ººÕ½Óë+týýßùìòû§âF%úvcûµ™ú…/Ì•Fàéj8ÈLb,°ýüÍ—ÜÞîÏÛ;te³÷ÕÍ?_Ö4Düdõv(éöçYù?]ÿí¹VË×êâ׌ôª'NæÝ}€žŒjy Ì\ño ÊöåïkÚ“ˆî×­¡afƒLÎuRÁ!òèk•d~{:öP¾wn$]zuùéÚ5’u‚yˆ_ì™·"•®ŠHà 5½Îï÷»–9ˆ‘/,´ÈÚïnÜú „’R"ÐÒØ<IEND®B`‚twpsk-4.3/src/icons/sine1.xpm0000644000175000017500000001641512162137774013141 00000000000000/* XPM */ static char * sine1_xpm[] = { "48 48 149 2", " c None", ". c #515151", "+ c #EFEFEF", "@ c #000000", "# c #4F4F4F", "$ c #858585", "% c #BABABA", "& c #1B1B1B", "* c #9F9F9F", "= c #353535", "- c #6A6A6A", "; c #D4D4D4", "> c #DFDFEF", ", c #3041DF", "' c #7182DF", ") c #AEAEDF", "! c #0000CF", "~ c #AEA2EF", "{ c #0000BE", "] c #9692EF", "^ c #9EA2EF", "/ c #AEAEEF", "( c #7182CF", "_ c #2020BE", ": c #9E92DF", "< c #6151CF", "[ c #0000AE", "} c #4141BE", "| c #5151CF", "1 c #8671CF", "2 c #DFDFDF", "3 c #3041BE", "4 c #EFDFEF", "5 c #4141AE", "6 c #1010AE", "7 c #3030AE", "8 c #BEAEDF", "9 c #00009E", "0 c #9EA2CF", "a c #9EAECF", "b c #AEBEDF", "c c #2020AE", "d c #5161BE", "e c #3041AE", "f c #7182BE", "g c #7161CF", "h c #8671BE", "i c #000096", "j c #9E92CF", "k c #CFCFDF", "l c #9682CF", "m c #6151BE", "n c #4130AE", "o c #30309E", "p c #20109E", "q c #5161AE", "r c #CFDFDF", "s c #AEBECF", "t c #20309E", "u c #101096", "v c #96A2CF", "w c #DFEFDF", "x c #302096", "y c #101086", "z c #51419E", "A c #BEAECF", "B c #000086", "C c #303096", "D c #9682BE", "E c #7182AE", "F c #AEA2CF", "G c #AEAECF", "H c #304196", "I c #000071", "J c #41419E", "K c #96A2BE", "L c #202096", "M c #6171AE", "N c #BEBEDF", "O c #51519E", "P c #41519E", "Q c #000020", "R c #414151", "S c #61719E", "T c #61619E", "U c #9EA2BE", "V c #100071", "W c #8671AE", "X c #414186", "Y c #413096", "Z c #303086", "` c #9682AE", " . c #8682AE", ".. c #202086", "+. c #71829E", "@. c #000061", "#. c #61519E", "$. c #000051", "%. c #101071", "&. c #203086", "*. c #415196", "=. c #7161AE", "-. c #9E92BE", ";. c #102071", ">. c #414196", ",. c #71719E", "'. c #AEA2BE", "). c #514196", "!. c #AEAEBE", "~. c #413086", "{. c #717196", "]. c #86719E", "^. c #515186", "/. c #202061", "(. c #615196", "_. c #000010", ":. c #101061", "<. c #304171", "[. c #AEBEBE", "}. c #304186", "|. c #96A2AE", "1. c #9692AE", "2. c #413071", "3. c #718296", "4. c #9EA2AE", "5. c #100051", "6. c #000041", "7. c #516186", "8. c #303061", "9. c #304161", "0. c #101051", "a. c #CFCFCF", "b. c #867196", "c. c #000030", "d. c #514171", "e. c #414161", "f. c #96A29E", "g. c #303051", "h. c #BEAEBE", "i. c #413051", "j. c #AEA2AE", "k. c #615171", "l. c #AEAEAE", "m. c #718286", "n. c #AEBEAE", "o. c #867186", "p. c #718271", "q. c #96929E", "r. c #CFDFCF", " ", " ", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", " . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @ @ ", " . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + + + + + + + + + + + + + + + + + + + + # # $ + + + + + % # + + @ @ @ ", " . + + + & @ @ @ @ * + + * = @ @ - # + & @ @ % - @ @ % % @ = # & * + + # & @ = + + @ @ @ ", " . + + + * @ ; + ; @ * + @ $ + + = - + * @ ; ; # # + + ; % + + - - + + * ; @ % + + @ @ @ ", " . + + + * @ + + ; @ * + @ $ + + $ ; + * @ % = = ; + + + + * - = % + + + + @ + + + @ @ @ ", " . + + + # & * - = * + + # @ = - ; + + # @ @ # ; + + + + + # @ # + + + + * = + + + @ @ @ ", " . + + + = @ @ # $ + + + + + # @ = + + = = % @ $ + + + + + + + @ + + + + $ # + + + @ @ @ ", " . + + + @ + + + + + + # + + + + @ + + @ + + - = + + + + + + % @ + + + ; = * + + + @ @ @ ", " . + + $ @ # # + + + $ @ & # # = # + # @ # % * @ # % & = # = @ $ + + $ = @ = # % + @ @ @ ", " . + % # # # - + + + $ $ - # # - ; % # # # ; % # - ; $ # # # * + + + # # # # # ; + @ @ @ ", " . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + > , > + + + + ' + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + ) ! ) + + + ) ! ) + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + ~ { ] + + + ^ ! / + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + ( { ( + + + ( { ( + + + _ : + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + < [ } + + + | [ 1 + + 2 { ( + + > 3 > + + + + + + + + + + + + @ @ @ ", " . + + + + 4 5 > + + 5 6 7 + + + 5 [ 5 + + 8 9 1 + + 0 [ a + + + + + + + + + + + + @ @ @ ", " . + + + + b 9 b + + c d [ + + + [ e } + + f 9 e + + g 9 g + + + + + + + + + + + + @ @ @ ", " . + + + + h i j + + i j i k + > i l i + + m i n + + o p o + + + + + + + + + + + + @ @ @ ", " . + + + + q i f + k i r i s + s i s i + + t 5 u + 2 i v i 2 + w 5 2 + + + + + + + @ @ @ ", " . + + + + x y z + A B + C D + D C + B A + B E B + F y + y F + j B A G + + + + + + @ @ @ ", " . + > H > I J H + K L + J M + E J + B s ) I N I > M O + J E + P B P B s + + + + + @ @ @ ", " @ Q R A S I T I U V + W X + E Y + Y E + Z ` ...+ I G Y +.+ E Y + V ..y @.#.+ + + + + @ @ @ ", " $.@.I @.%.&.%.&.G @.+ *.=.+ -.;.+ &.` + >.+.,.*.+ @.G @.G + G @.0 %.` @.>.@.I @.I @.I @.I @.I ", " . + + '.$.).+ @.!.~.+.+ !.@.+ @.!.+ {.).X ].+ Z ^.@.+ + + @./.(.!.@.!.A !.A !.A !._._.Q @ ", " . + + 2 @.+.+ :.U :.'.+ > $.-.$.> + ].<.@.[.+ <.@.}.+ + + }.$.|.+ +.+ + + + + + + @ @ @ ", " . + + + 1.k + 2.3.$.!.+ + $.3.$.+ + 4.5.6.2 + (.6.].+ + + ].6.2 + + + + + + + + + @ @ @ ", " . + + + + + + 7.8.6.> + + 9.6.9.+ + G 6.0.+ + 3.6.[.+ + + a.1.+ + + + + + + + + + @ @ @ ", " . + + + + + + b.c.c.+ + + d.c.d.+ + 2 c.e.+ + b.c.+ + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + f.c.g.+ + + 3.c.3.+ + + Q b.+ + a.1.+ + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + h.Q i.+ + + j.Q j.+ + + k.l.+ + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + w Q m.+ + + n.Q n.+ + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + @ o.+ + + + p.+ + + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + q.r.+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @ @ @ ", " . @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ ", " @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ ", " @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ ", " ", " "}; twpsk-4.3/src/icons/twpsk.xpm0000644000175000017500000001120713044164044013252 00000000000000/* XPM */ //static char * twpsk_xpm[] = { const char * twpsk_xpm[] = { "15 32 223 2", " c #06798E", ". c #01768B", "+ c #04778D", "@ c #41949F", "# c #308C9A", "$ c #308D9A", "% c #198193", "& c #64A5B1", "* c #72ACB6", "= c #6EA8B2", "- c #71ABB5", "; c #73ADB7", "> c #6EAAB6", ", c #6FABB6", "' c #70ABB6", ") c #72ACB7", "! c #6FA9B4", "~ c #88B0B7", "{ c #9EB9BF", "] c #9BB6BC", "^ c #97B3B8", "/ c #9FBBC0", "( c #A0BBC1", "_ c #9EBABF", ": c #9EBAC0", "< c #99B6BA", "[ c #9AB5BB", "} c #A4B3B6", "| c #A5A4A3", "1 c #AEADAD", "2 c #A9A8A8", "3 c #AEACAC", "4 c #A4A3A2", "5 c #B3B2B2", "6 c #B1B0B0", "7 c #BBB9B9", "8 c #DDDCDC", "9 c #DCDADA", "0 c #CFCFCD", "a c #9DADB0", "b c #9E9E9E", "c c #AEAEAE", "d c #A2A2A2", "e c #A6A6A6", "f c #B6B6B6", "g c #D1D1D1", "h c #E0E0E0", "i c #DDDDDD", "j c #DEDEDE", "k c #D2D3D2", "l c #B5C5C7", "m c #989898", "n c #888888", "o c #B1B1B1", "p c #DCDCDC", "q c #D9D9D9", "r c #DADADA", "s c #BACACC", "t c #B0B0B0", "u c #D8D8D8", "v c #BBCBCE", "w c #B7B7B7", "x c #C2C2C2", "y c #E1E1E1", "z c #B3C3C5", "A c #A1A1A1", "B c #A8A8A8", "C c #AAAAAA", "D c #A3A3A3", "E c #D6D6D6", "F c #B0C0C3", "G c #ACACAC", "H c #ABABAB", "I c #C6C6C6", "J c #B7C7CA", "K c #B9C9CB", "L c #BACACD", "M c #CECFCE", "N c #AFBFC2", "O c #D2D2D2", "P c #C7C9C7", "Q c #D1D1D0", "R c #7BADB6", "S c #9FB6BA", "T c #A1B6B9", "U c #8AB0B6", "V c #1F7685", "W c #2F2D29", "X c #30312D", "Y c #2F312D", "Z c #582724", "` c #2D2E2A", " . c #276F7B", ".. c #1E7685", "+. c #2F302D", "@. c #313431", "#. c #303431", "$. c #582B28", "%. c #2D312E", "&. c #1D7889", "*. c #4E5858", "=. c #4D5A5A", "-. c #675454", ";. c #4B5858", ">. c #297784", ",. c #198497", "'. c #21899B", "). c #1C8799", "!. c #20899A", "~. c #138397", "{. c #107B8F", "]. c #057C92", "^. c #057D93", "/. c #1A8699", "(. c #118296", "_. c #077D93", ":. c #0C7E93", "<. c #087D93", "[. c #258B9C", "}. c #0F7D91", "|. c #3993A2", "1. c #639EA8", "2. c #508E9A", "3. c #65A3AD", "4. c #639AA4", "5. c #077083", "6. c #79A8B1", "7. c #76A8B1", "8. c #679EA7", "9. c #6FA5AF", "0. c #78A8B2", "a. c #2B8495", "b. c #5AA2AF", "c. c #62A5B1", "d. c #408F9D", "e. c #278898", "f. c #33808E", "g. c #277886", "h. c #378492", "i. c #317C8A", "j. c #097184", "k. c #BEC8CA", "l. c #B9C8CA", "m. c #92A5A8", "n. c #AEC3C8", "o. c #BDC9CC", "p. c #418E9C", "q. c #418D9C", "r. c #478E9A", "s. c #2D7F8F", "t. c #4F9BA8", "u. c #A6B5B7", "v. c #BEC1C2", "w. c #7AA4AB", "x. c #BCBFBE", "y. c #096F82", "z. c #02758B", "A. c #03758A", "B. c #1C8394", "C. c #0F7B8E", "D. c #04758B", "E. c #047488", "F. c #A0BDC1", "G. c #9EADB0", "H. c #69969E", "I. c #117F93", "J. c #00748A", "K. c #3A7D8E", "L. c #317E8F", "M. c #00738A", "N. c #0A7286", "O. c #E1CFCC", "P. c #E0D5D3", "Q. c #AAABAB", "R. c #DACACA", "S. c #E1D3D0", "T. c #4E94A3", "U. c #9AC0C6", "V. c #A8C3C7", "W. c #6297A1", "X. c #618895", "Y. c #72818B", "Z. c #72808A", "`. c #307F91", " + c #0B7286", ".+ c #0A778C", "++ c #1B8091", "@+ c #1E8192", "#+ c #1C8091", "$+ c #0A778B", "%+ c #09768A", "&+ c #4895A2", "*+ c #4C93A0", "=+ c #348796", "-+ c #107F93", ";+ c #6B8994", ">+ c #73818B", ",+ c #368191", "'+ c #0C7185", ")+ c #58909B", "!+ c #208194", "~+ c #72AFBA", "{+ c #208395", "]+ c #7EB5BE", "^+ c #2F8797", "/+ c #5999A5", "(+ c #5F97A0", "_+ c #3F8794", ":+ c #158094", "<+ c #10798E", "[+ c #5A8491", "}+ c #4F8492", "|+ c #05778D", "1+ c #107386", "2+ c #8AA1A4", "3+ c #368F9F", "4+ c #81A0A5", "5+ c #268293", "6+ c #9DAFB2", "7+ c #3E8896", "8+ c #A6C1C4", "9+ c #AABEC1", "0+ c #69959C", " . . . . + @ # $ % . . . . . ", "& * = - = ; > , ' ) ; ; ; * ! ", "~ { ] { ^ / ( ( ( _ : : : < [ ", "} | 1 2 3 4 5 6 7 8 9 9 9 9 0 ", "a b c d e b f g h i j j j i k ", "l m n o p q r j i j j j j i k ", "s f t u j j j j j j j j j i k ", "v w x j y y i j j j j j j i k ", "z A B x C D E j j j j j j i k ", "F G H I e o y j j j j j j i k ", "J u r r q i i j j j j j j i k ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j i k ", "L i i i i i i i i i i i i i M ", "N O O O O O O O O O O O O O P ", "K j j j j j j j j j j j j i k ", "K j j j j j j j j j j j j j Q ", "R S S S S S S T S S S S S S U ", "V W X X X X Y Z Y X X X X ` .", "..+.@.@.@.@.#.$.#.@.@.@.@.%. .", "&.*.=.=.=.=.=.-.=.=.=.=.=.;.>.", ",.'.).!.~.{.].^./.(._.:.<.[.}.", "|.1.2.3.4.5.6.7.8.9.0.a.b.c.d.", "e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.", "t.u.v.w.x.y.z.A.B.C.D.E.F.G.H.", "I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.", "I.X.Y.Z.`. +.+++@+#+$+%+&+*+=+", "-+;+>+Z.,+'+)+!+~+{+]+^+/+(+_+", ":+<+[+}+|+1+2+3+4+5+6+7+8+9+0+"}; twpsk-4.3/src/icons/Icon.Notes0000644000175000017500000000020112162137774013260 00000000000000Hello Maintainers: The 16x16 and 32x32 works for icewm and the 30x50 works for mwm The 32x32 png works for gnome and kde menus twpsk-4.3/src/icons/wfCursorShape.xbm0000644000175000017500000000046612164353776014702 00000000000000#define wfCursorShape_width 15 #define wfCursorShape_height 16 static unsigned char wfCursorShape_bits[] = { 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xf8, 0x0f, 0xf0, 0x07, 0xe0, 0x03, 0xc0, 0x01, 0x80, 0x00, 0x00, 0x00, }; twpsk-4.3/src/Makefile.in0000664000175000017500000006601013142420064012306 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 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@ # Copyright (C) 1999-2014 Ted Williams (wa0eir) # # This file is free software; as a special exception the author 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. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } 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)) 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 = : bin_PROGRAMS = twpsk$(EXEEXT) subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(dist_appdefault_DATA) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)" \ "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pkgdatadir)" \ "$(DESTDIR)$(pkgsubdir)" PROGRAMS = $(bin_PROGRAMS) am__dirstamp = $(am__leading_dot)dirstamp am_twpsk_OBJECTS = server/server.$(OBJEXT) modes/psk31-coder.$(OBJEXT) \ modes/psk31-fft.$(OBJEXT) modes/psk31-receiver.$(OBJEXT) \ modes/psk31-transmitter.$(OBJEXT) modes/hansis_fft.$(OBJEXT) \ twpsk.$(OBJEXT) callbox.$(OBJEXT) decoderWids.$(OBJEXT) \ twpskDiags.$(OBJEXT) twpskWF.$(OBJEXT) twpskHelp.$(OBJEXT) \ twpskWids.$(OBJEXT) twpskCB.$(OBJEXT) twpskScope.$(OBJEXT) twpsk_OBJECTS = $(am_twpsk_OBJECTS) twpsk_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)/config/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(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 = $(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 = 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 = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(twpsk_SOURCES) DIST_SOURCES = $(twpsk_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; }; \ } DATA = $(dist_appdefault_DATA) $(pixmap_DATA) $(pkgdata_DATA) \ $(pkgsub_DATA) 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__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp \ depcomp install-sh DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkgdatadir = $(datadir)/twpsk ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APPDEFS_CFLAGS = @APPDEFS_CFLAGS@ APPDEFS_LIBS = @APPDEFS_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ HOME_DIR = @HOME_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOTIF_CFLAGS = @MOTIF_CFLAGS@ MOTIF_LIBS = @MOTIF_LIBS@ OBJEXT = @OBJEXT@ 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@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USER_NAME = @USER_NAME@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ appdefaultdir = @appdefaultdir@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ include_motif = @include_motif@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ link_motif = @link_motif@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ 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 = Twpsk psk31.cod icons twpskDir AM_CXXFLAGS = -Wall \ -DPKG_DATA_DIR=\"$(pkgdatadir)\" AM_LDFLAGS = @MOTIF_LIBS@ @X_LIBS@ @X_PRE_LIBS@ \ -lXt -lX11 @X_EXTRA_LIBS@ pixmapdir = $(datadir)/pixmaps pixmap_DATA = icons/twpsk.png dist_appdefault_DATA = Twpsk pkgdata_DATA = psk31.cod pkgsubdir = $(datadir)/twpsk/twpskDir pkgsub_DATA = twpskDir/Brag twpskDir/LongCQ twpskDir/ShortCQ twpsk_SOURCES = server/server.C server/server.h \ modes/psk31-coder.C modes/psk31-coder.h \ modes/psk31-fft.C modes/psk31-fft.h \ modes/psk31-receiver.C modes/psk31-receiver.h \ modes/psk31-transmitter.C modes/psk31-transmitter.h \ modes/hansis_fft.C modes/hansis_fft.h modes/coeff.h \ twpsk.C GUI.h callbox.C callbox.h \ decoderWids.C decoderWids.h twpskDiags.C \ twpskWF.C twpskWF.h twpskHelp.C twpskHelp.h helpText.h \ twpskWids.C twpskWids.h twpskCB.C twpskCB.h \ twpskScope.C twpskScope.h SHM.h all: all-am .SUFFIXES: .SUFFIXES: .C .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 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 \ ; 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) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(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: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) server/$(am__dirstamp): @$(MKDIR_P) server @: > server/$(am__dirstamp) server/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) server/$(DEPDIR) @: > server/$(DEPDIR)/$(am__dirstamp) server/server.$(OBJEXT): server/$(am__dirstamp) \ server/$(DEPDIR)/$(am__dirstamp) modes/$(am__dirstamp): @$(MKDIR_P) modes @: > modes/$(am__dirstamp) modes/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) modes/$(DEPDIR) @: > modes/$(DEPDIR)/$(am__dirstamp) modes/psk31-coder.$(OBJEXT): modes/$(am__dirstamp) \ modes/$(DEPDIR)/$(am__dirstamp) modes/psk31-fft.$(OBJEXT): modes/$(am__dirstamp) \ modes/$(DEPDIR)/$(am__dirstamp) modes/psk31-receiver.$(OBJEXT): modes/$(am__dirstamp) \ modes/$(DEPDIR)/$(am__dirstamp) modes/psk31-transmitter.$(OBJEXT): modes/$(am__dirstamp) \ modes/$(DEPDIR)/$(am__dirstamp) modes/hansis_fft.$(OBJEXT): modes/$(am__dirstamp) \ modes/$(DEPDIR)/$(am__dirstamp) twpsk$(EXEEXT): $(twpsk_OBJECTS) $(twpsk_DEPENDENCIES) $(EXTRA_twpsk_DEPENDENCIES) @rm -f twpsk$(EXEEXT) $(AM_V_CXXLD)$(CXXLINK) $(twpsk_OBJECTS) $(twpsk_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f modes/*.$(OBJEXT) -rm -f server/*.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callbox.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decoderWids.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/twpsk.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/twpskCB.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/twpskDiags.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/twpskHelp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/twpskScope.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/twpskWF.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/twpskWids.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@modes/$(DEPDIR)/hansis_fft.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@modes/$(DEPDIR)/psk31-coder.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@modes/$(DEPDIR)/psk31-fft.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@modes/$(DEPDIR)/psk31-receiver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@modes/$(DEPDIR)/psk31-transmitter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@server/$(DEPDIR)/server.Po@am__quote@ .C.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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 $@ $< .C.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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) '$<'` install-dist_appdefaultDATA: $(dist_appdefault_DATA) @$(NORMAL_INSTALL) @list='$(dist_appdefault_DATA)'; test -n "$(appdefaultdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(appdefaultdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(appdefaultdir)" || 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)$(appdefaultdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(appdefaultdir)" || exit $$?; \ done uninstall-dist_appdefaultDATA: @$(NORMAL_UNINSTALL) @list='$(dist_appdefault_DATA)'; test -n "$(appdefaultdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(appdefaultdir)'; $(am__uninstall_files_from_dir) install-pixmapDATA: $(pixmap_DATA) @$(NORMAL_INSTALL) @list='$(pixmap_DATA)'; test -n "$(pixmapdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pixmapdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pixmapdir)" || 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)$(pixmapdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pixmapdir)" || exit $$?; \ done uninstall-pixmapDATA: @$(NORMAL_UNINSTALL) @list='$(pixmap_DATA)'; test -n "$(pixmapdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pixmapdir)'; $(am__uninstall_files_from_dir) install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || 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)$(pkgdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ done uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) install-pkgsubDATA: $(pkgsub_DATA) @$(NORMAL_INSTALL) @list='$(pkgsub_DATA)'; test -n "$(pkgsubdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgsubdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgsubdir)" || 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)$(pkgsubdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgsubdir)" || exit $$?; \ done uninstall-pkgsubDATA: @$(NORMAL_UNINSTALL) @list='$(pkgsub_DATA)'; test -n "$(pkgsubdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgsubdir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(DATA) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)" "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgsubdir)"; 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) -rm -f modes/$(DEPDIR)/$(am__dirstamp) -rm -f modes/$(am__dirstamp) -rm -f server/$(DEPDIR)/$(am__dirstamp) -rm -f server/$(am__dirstamp) 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 mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) modes/$(DEPDIR) server/$(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-dist_appdefaultDATA install-pixmapDATA \ install-pkgdataDATA install-pkgsubDATA 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) modes/$(DEPDIR) server/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-dist_appdefaultDATA \ uninstall-pixmapDATA uninstall-pkgdataDATA \ uninstall-pkgsubDATA .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-dist_appdefaultDATA 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-pixmapDATA install-pkgdataDATA \ install-pkgsubDATA install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binPROGRAMS \ uninstall-dist_appdefaultDATA uninstall-pixmapDATA \ uninstall-pkgdataDATA uninstall-pkgsubDATA .PRECIOUS: Makefile # 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: twpsk-4.3/src/twpskWF.h0000644000175000017500000000676613142417251012035 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ /* * Disp class header file */ #ifndef INCLUDED_TWPSKDISP #define INCLUDED_TWPSKDISP #define MAX_GRAYS 100 #define START 150 #define MAX_SAMPLES 8192 /* max sample buffer size */ #define MAX_FFT (MAX_SAMPLES / 2) + 1 #define WF 1 #define SA 0 #define LINE_WIDTH 2 /* keep it even? */ class Disp { private: Display *display; /* various objects for drawing */ Window window; int screen; Colormap cmap; GC gc; Cursor wfCursor; Pixmap pmap; /* WF back store pixmap */ XColor dispPix[MAX_GRAYS]; XColor redPix, defPix; float values[WF_WIDTH]; /* one row of fft data */ int displayFlag; /* indicates WF or SA */ int cnt; /* Sample counter */ int samples; /* Size of the sample */ int speed; /* Speed scale value 0 -> 100 */ int ffts; /* Number of filters */ float fc; /* Center freq of display */ float deltaf; /* Hz per fft sample */ int delta; /* Offset into fft samples */ Boolean wf_up; /* waterfall direction up=1, down=0 */ /* for IMD */ int upperSig; int lowerSig; int upperIMD; int lowerIMD; #if 1 inline float sqr(float arg) { return arg * arg; } inline void swap (float &a, float &b) { float t = a; a = b; b = t; } #endif void IMDcalc(float val[]); void mkPoints (float buffer[]); void doNB1 (void); void doNB2 (void); void drawDisplay(void); unsigned long get_mask_color(int color, unsigned long mask); void find_visual_info(int *truecolor, XVisualInfo *vinf); public: int brightness; void fft_setup (int samps, int overlap); void setup (Widget wfDA); void offset (float freq); void getFFT (float *val, int len); float new_fc (int x); int find_center (int x); void changeDisplay (int val) { displayFlag = val; } int getsamplecnt() { return samples; } void set_samples(int samps) { fft_setup (512 * samps, -1); //TJW //printf ("deltaf = %f fc = %f\n", deltaf, fc); } void setFFTspeed (int val) { speed = val; } Boolean setWF_up (int dir) { if (dir > 0) { wf_up = TRUE; } else { wf_up = FALSE; } return (wf_up); } }; #endif twpsk-4.3/src/twpskWF.C0000644000175000017500000003646513142416120011761 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 * * Disp Class - methods to draw the waterfall and spectrum analyser */ #include #include "GUI.h" #include "twpskWF.h" #include "twpskWids.h" #include "icons/wfCursorShape.xbm" #include "icons/wfCursorMask.xbm" #include "server/server.h" extern Wids pskwids; extern AppRes appRes; void Disp::find_visual_info(int *truecolor, XVisualInfo *vinfo) { int scr = DefaultScreen(display); if( XMatchVisualInfo(display, scr, 8, PseudoColor, vinfo) ) { fprintf(stderr,"find_visual_info: Using 8 bpp Pseudo Color\n"); *truecolor = 0; return; } if( XMatchVisualInfo(display, scr, 15, TrueColor, vinfo) ) { fprintf(stderr,"find_visual_info: Using 15 bpp True Color\n"); *truecolor = 1; return; } if( XMatchVisualInfo(display, scr, 16, TrueColor, vinfo) ) { fprintf(stderr,"find_visual_info: Using 16 bpp True Color\n"); *truecolor = 1; return; } if( XMatchVisualInfo(display, scr, 24, TrueColor, vinfo) ) { fprintf(stderr,"find_visual_info: Using 24 bpp True Color\n"); *truecolor = 1; return; } if( XMatchVisualInfo(display, scr, 32, TrueColor, vinfo) ) { fprintf(stderr,"find_visual_info: Using 32 bpp True Color\n"); *truecolor = 1; return; } } /* color: 16 bit values! 0x0000..0xFFFF */ unsigned long Disp::get_mask_color(int color, unsigned long mask) { int shift = 0; int notused = 16; while (!(mask&0x01)) { shift++; mask >>=1; } while(mask&0x01) { notused--; mask >>=1; } unsigned long c = (color>>notused) << shift; return c; } /* * setup for wf/sa drawing area */ void Disp::setup (Widget wfDA) { /* constants */ int i; int bad_grays = 0; int rtn = 0; /* window values */ display = XtDisplay (wfDA); window = XtWindow (wfDA); screen = DefaultScreen (display); gc = XDefaultGC (display, screen); cmap = DefaultColormap (display, screen); int wfCursorHotX = 7; int wfCursorHotY = 15; XColor cursorShapePix, cursorMaskPix; Pixmap shape, mask; /* create the pixmap for WF backstore, clear wfDA and pixmap */ pmap = XCreatePixmap (display, window, WF_WIDTH, WF_HEIGHT, DefaultDepth(display, screen)); XClearWindow (display, window); XCopyArea (display, window, pmap, gc, 0, 0, WF_WIDTH, WF_HEIGHT, 0, 0); /* Set some line attributes */ XSetLineAttributes (display, gc, 0, LineSolid, CapRound, JoinRound); /* create the waterfall cursor */ shape = XCreatePixmapFromBitmapData (display, window, (char*) wfCursorShape_bits, wfCursorShape_width, wfCursorShape_height, 1, 0, 1); mask = XCreatePixmapFromBitmapData (display, window, (char *) wfCursorMask_bits, wfCursorMask_width, wfCursorMask_height, 1, 0, 1); XParseColor (display, cmap, "red", &cursorShapePix); XParseColor (display, cmap, "black", &cursorMaskPix); /*not the best color*/ wfCursor = XCreatePixmapCursor (display, shape, mask, &cursorShapePix, &cursorMaskPix, wfCursorHotX, wfCursorHotY); XDefineCursor (display, XtWindow (wfDA), wfCursor); cnt = 0; /* * create 100 Gray pixels */ XVisualInfo vinfo; int truecolor; find_visual_info(&truecolor, &vinfo); if(!truecolor) { /* 8 bit pseudo color (with color map) */ for (i=0; i overlap=2048..256 * 0 -> 2^11 100-> 2^8 */ void Disp::fft_setup(int samps, int speed) { static int fftspeed=0; if(samps > 0) { samples = samps; /* Size of the sample - 512, 1K, 2K */ } if (speed >= 0) { if(speed > 100) { fprintf(stderr,"fft_setup: invalid speed speed=%d\n",speed); } else { float expo = 8+(100-speed)/99.0*3; // 8..11 fftspeed = (int)pow(2.0, expo); // fprintf(stderr,"setting fft speed to %d\n",fftspeed); } } ffts = samples/2; /* Number of filters */ // TJW deltaf=(float)speed/samples; /* Hz/fft sample */ deltaf=(float)SAMPLE_RATE/samples; /* Hz/fft sample */ delta = (int)(fc / deltaf - WF_WIDTH/2); /* Offset in ffts */ cnt = 0; /* setup IMD Calculations constants for the current sample rate */ upperSig = WF_WIDTH/2 + (samples / 512); lowerSig = WF_WIDTH/2 - (samples / 512); upperIMD = WF_WIDTH/2 + (samples / 512) * 3; lowerIMD = WF_WIDTH/2 - (samples / 512) * 3; commControl(COMM_FFTCH, COMM_FFTN, samples); commControl(COMM_FFTCH, COMM_FFTOVERLAP, fftspeed); } /* * getFFT handles fft data * when buffer full, this funciton will calculate IMD, scale the * data and display it. */ void Disp::getFFT(float val[], int len) { IMDcalc(val); /* calculate the IMD */ mkPoints(val); /* scale the fft data for display */ drawDisplay(); /* draw the wf or sa */ } /* * IMDcalc - calculates the IMD of the signal * If DCD is on then calculate the IMD of each main sig, and add to * IMDtotal. After IMD_CNT pairs are collected, compute the average * and display. If there are BLOCK_IMD_SIZE blocks in a row without DCD, * put "---" in the widget, so we don't display trash when there is * no signal */ #define IMD_CNT 20 //TJW orig val #define BLOCK_IMD_SIZE 10 #define BLOCK_IMD_SIZE 5 void Disp::IMDcalc(float *val) { static int cnt; static int block; static float IMDtotal = 0.0; static Widget imdTF = 0; char imdVal[8]; float ratio; if (imdTF == 0) imdTF = pskwids.getImdTF(); /* get the IMD widget id */ if (pskwids.getDCD() == 1) /* no IMD if no signal */ { cnt++; block = 0; ratio = val[delta + lowerIMD] / val[delta + lowerSig]; IMDtotal = IMDtotal + 20.0 * log10 (ratio); ratio = val[delta + upperIMD] / val[delta + upperSig]; IMDtotal = IMDtotal + 20.0 * log10 (ratio); if (cnt == IMD_CNT) { sprintf (imdVal, "%2.0f ", IMDtotal/(IMD_CNT * 2)); XmTextFieldSetString (imdTF, imdVal); cnt = 0; IMDtotal = 0.0; } } else { block++; if (block == BLOCK_IMD_SIZE) { XmTextFieldSetString (imdTF, (char *)"---"); block = 0; } } } /* * mkPoints method - gets WF_WIDTH floats from fft buffer * For negative freqs and freqs > MAXFREQ, set values to -1. * At one time, the fft data values varied with sample size so, * samples/1024.0 -> 1,2,4 - kept the fft data values constant */ void Disp::mkPoints(float val[]) { #define SCALE 2048 int x; float scale = 512.0 / samples; for (x=1; x MAXFREQ) { values[x] = -1.0; /* mark it so to be gray */ } else { //TJW now values[x] = 5 * val[x+delta] * scale; /* scale valid freqs */ } } } /* * drawDisplay method - draws display as spectrum or waterfall */ void Disp::drawDisplay() { int x; int pixIndex; int last=WF_HEIGHT; switch (displayFlag) { /* * draw waterfall */ case WF: /* move everything up or down one line */ /* wf_up -> 1=up, 0=down */ XCopyArea (display, pmap, pmap, gc, 0, wf_up, WF_WIDTH, WF_HEIGHT-1, 0, !wf_up); for (x=0; x < WF_WIDTH; x++) { /* but don't draw over the red line */ if ((x < (WF_WIDTH / 2) - 1) || (x > (WF_WIDTH / 2) + 1)) { if (values[x] == -1) /* if gray flag */ { pixIndex = 50; } else { pixIndex = (int)(log10 (5 * values[x]) * (brightness)); //pixIndex = (int)(log10 (10 * values[x]) * brightness); if (pixIndex > 99) { pixIndex = 99; } if (pixIndex < 0) pixIndex = 0; } /* draw to pixmap */ XSetForeground (display, gc, dispPix[pixIndex].pixel); if (wf_up == 1) XDrawPoint (display, pmap, gc, x, WF_HEIGHT-1); else XDrawPoint (display, pmap, gc, x, 0); } else /* draw the vertical red line to back store pixmap */ { XSetForeground (display, gc, redPix.pixel); XDrawLine (display, pmap, gc, x, 0, x, WF_HEIGHT); } } /* new row is done, so copy pixmap to window */ XCopyArea (display, pmap, window, gc, 0, 0, WF_WIDTH, WF_HEIGHT, 0, 0); break; /* * draw spectrum analyser */ case SA: XClearWindow (display, window); XSetLineAttributes (display, gc, 0, LineSolid, CapRound, JoinRound); XSetForeground (display, gc, WhitePixel(display, screen)); for (x=1; x WF_HEIGHT - 10) { pixIndex = WF_HEIGHT - 10; } if ((x < (WF_WIDTH / 2) - 1) || (x > (WF_WIDTH / 2) + 1)) { if (x+delta <= 1 || x+delta > samples/2) /* for 0 > freq > MAXFREQ draw gray line */ { XSetForeground (display, gc, dispPix[50].pixel); XDrawLine (display, pmap, gc, x, 0, x, WF_HEIGHT-1); XSetForeground (display, gc, WhitePixel(display, screen)); } else /* draw signal line */ { XDrawLine (display, pmap, gc, x, last, x, WF_HEIGHT - pixIndex); last = WF_HEIGHT - pixIndex; } } else /* Draw the center line */ { XSetForeground (display, gc, redPix.pixel); XDrawLine (display, pmap, gc, x, 0, x, WF_HEIGHT); XSetForeground (display, gc, WhitePixel(display, screen)); } } /* all done so copy pixmap to the window */ XCopyArea (display, pmap, window, gc, 0, 0, WF_WIDTH, WF_HEIGHT, 0, 0); /* clear the pixmap */ XSetForeground (display, gc, BlackPixel(display, screen)); XFillRectangle (display, pmap, gc, 0, 0, WF_WIDTH, WF_HEIGHT); break; default: fprintf (stderr,"twpskDisplay.drawDisplay - Broken WF/SA value\n"); break; } } /* * offset method - sets delta to starting index of values array */ void Disp::offset(float freq) { fc = freq; delta = (int)(fc / deltaf - WF_WIDTH/2); } /* * new_fc method - given the cursor's x position in the waterfall, * return the frequency */ float Disp::new_fc (int x) { int newx; float newfreq; if ((newx = find_center(x)) != -1) /* find the center */ x = newx; newfreq = fc + deltaf * (x-WF_WIDTH/2); if(newfreq < 0.0 ) return 0.0; else if (newfreq > MAXFREQ) return MAXFREQ; else return newfreq; } /* * find_center method - trys to find the center of the signal that * was clicked. Returns -1 if it can't figure it out. * Time for the squelch again???? */ #define SENSITIVITY 0.25 int Disp::find_center (int x) { int /*TJW r,*/ i, start, stop; int high = 0, low = 0; int width = (int)(31.25 / deltaf); int center, sigWidth; float max = 0; //r = row - 1; //if (r < 0) /* work with the latest row */ //row = WF_HEIGHT - 1; start = (int)((float)x-1.5*width); stop = (int)((float)x+1.5*width); /* find maximum */ for (i=start; i!=stop; i++) { if (i<0) /* it could be neg if near left edge */ continue; if (values[i] > max) max = values[i]; /* find the max value in the range */ } /* find the edges */ /* first the low edge */ for (i=start; istart; i--) { if (values[i] < SENSITIVITY * max) continue; else { /* found the high edge */ high = i; break; } } sigWidth = high - low; center = (high+low) / 2; //printf ("%d\n ", max); if (sigWidth > 0.5 * width && sigWidth < 1.5 * width) // && max >= 3) { //printf ("calc\n"); return center; } else { //printf ("pointer\n"); return -1; } } twpsk-4.3/src/twpskScope.h0000644000175000017500000000333413142416304012554 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #ifndef INCLUDED_SCOPE_H #define INCLUDED_SCOPE_H #define LINE_WIDTH 2 #include "GUI.h" /* * Scope class */ class Scope { private: GC gc; XGCValues gcv; Display *display; int screen; Window window; XColor color[5]; Dimension w, h; /* size of scopeDA */ Position x, y; /* end point of last line */ int agcState; public: int border_width; /* space from side to circle */ int xc, yc; /* corner of box to draw circle */ int xo, yo; /* cooridinates of circle center */ int scope_width; int outer_circle_width; Widget scopeDA; Scope() { border_width = 0; scope_width = 0; outer_circle_width = 4; agcState = 0; } void setup (Widget shell, Widget scopeDA); void drawline(int phdelta, int strength, int icolor); void drawcirc(void); }; #endif twpsk-4.3/src/twpskScope.C0000644000175000017500000001117213142417303012506 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #include "twpskScope.h" /* * Initialize drawing stuff for scope */ void Scope::setup (Widget shell, Widget scopeWid) { Colormap dcmap; XColor nill; scopeDA = scopeWid; /* * initialize these so the first time * wont't draw a line from 0,0 to center. */ x = (border_width + outer_circle_width) * 2; /* this should keep it */ y = (border_width + outer_circle_width) * 2; /* inside of the circle */ gc = XCreateGC(XtDisplay(shell), RootWindowOfScreen (XtScreen(shell)), GCForeground, &gcv); display = XtDisplay (scopeDA); window = XtWindow (scopeDA); screen = DefaultScreen (display); dcmap = DefaultColormap (display, screen); XAllocNamedColor (display, dcmap, "red", &color[0], &nill); XAllocNamedColor (display, dcmap, "yellow", &color[1], &nill); XAllocNamedColor (display, dcmap, "green2", &color[2], &nill); XAllocNamedColor (display, dcmap, "light gray", &color[3], &nill); /*Outer*/ XAllocNamedColor (display, dcmap, "slate gray", &color[4], &nill); /*Inner*/ } /* * drawline - draws the phase lines in the scope */ void Scope::drawline (int phdelta, int strength, int icolor) { float theta; float dx,dy; /* fudge factor - converts 0->256 thingies to radians */ float fudge = 2.0 * M_PI / 256.0; theta = phdelta * fudge; if ((x > 0) || (y > 0)) { XSetForeground (display, gc, color[4].pixel); /* fg color to gray to */ XDrawLine (display, window, gc, /* undraw the last line */ xo, yo, /* Start of last line */ x, y); /* End of the last line */ } XSetForeground (display, gc, color[icolor].pixel); /* fg to requested */ dx = (float) strength * cos(theta+M_PI_2); // * scope_width; dy = (float) strength * sin(theta+M_PI_2); // * scope_width; //dx = (float) strength * cos(theta+M_PI_2) * scope_width/128; //dy = (float) strength * sin(theta+M_PI_2) * scope_width/128; x = (int) ((float)xo + dx); y = (int) ((float)yo - dy); XDrawLine (display, window, gc, xo, yo, /* Start of new line */ x, y); /* End of new line */ XSetForeground (display, gc, color[3].pixel); } /* * drawcirc - redraws the circle */ void Scope::drawcirc() { XtVaGetValues (scopeDA, XmNheight, &h, XmNwidth, &w, NULL); /* calculate some coordinates for the scope */ if (h>w) /* scope_width is 90% of the minor axis */ { scope_width = w * .9; } else { scope_width = h * .9; } border_width = (w - scope_width) / 2; xc = border_width; yc = (h - scope_width) / 2; xo = w / 2; yo = h / 2; x = xo; /* set to origin of circle so the first */ y = yo; /* time won't draw a line from 0.0 */ /* Draw circles */ /* outer white ring */ XSetForeground (display, gc, color[3].pixel); /* fg = white */ XSetLineAttributes (display, gc, outer_circle_width, LineSolid, CapRound, JoinRound); XDrawArc (display, window, gc, xc, yc, /* upper left corner */ scope_width, scope_width, /* width and height */ 0, 23040); /* start/stop points */ /* Change the gc for inner gray circle */ gcv.foreground = color[4].pixel; /* fg = gray */ XChangeGC (display, gc, GCForeground, &gcv); XSetLineAttributes (display, gc, LINE_WIDTH, LineSolid, CapRound, JoinRound); /* Draw filled inner circle */ XFillArc (display, window, gc, xc, yc, /* upper left corner */ scope_width, scope_width, /* width and height */ 0, 23040); /* start/stop points */ } twpsk-4.3/src/decoderWids.h0000644000175000017500000000746413142417007012657 00000000000000/* twpsk: PSK31 for Linux with a Motif interface * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #ifndef SECQSOWIDS_H #define SECQSOWIDS_H #define SCOPE_HEIGHT 80 #include "GUI.h" #include "twpskWids.h" #include "twpskCB.h" #include "decoderWids.h" #include "server/server.h" #include "twpskScope.h" class DecoderWid { private: int i; int rxScrollFlag; int hasfocus; Arg args[30]; char str[64]; Scope dscope; float curfreq; int ch; Widget dialogShell; Widget mainForm; Widget rxTextSW; Widget rxScrollBar; Widget rxText; Widget bottomForm; Widget frame1; Widget scopeDA; Widget frame2; Widget centerForm; Widget ctlsForm; Widget frame2a; Widget rxLabel; Widget rxFreqCombo; /* for freq, arrows, and AFC */ Widget pbForm; Widget swapBtn, closeBtn; Widget frame3; Widget AFCwid, DCDwid, QPSKwid; Widget modeForm; /* for DCD and QPSK */ Widget modesLabel; Widget clrRxPopup; XmString xs[5]; public: void setCh (int c) { ch = c; } int getCh () { return ch; } void setFreqFocus(int v) { hasfocus=v; } Widget getRxText () { return rxText; } void setRxScrollFlag(int f) { rxScrollFlag = f; } int getRxScrollFlag () { return (rxScrollFlag); } Boolean getQPSK() { Boolean value; XtVaGetValues(QPSKwid, XmNset, &value, NULL); return value; } void setQPSK(Boolean value) { XtVaSetValues(QPSKwid, XmNset, value, NULL); } Boolean getAFC() { Boolean value; XtVaGetValues(AFCwid, XmNset, &value, NULL); return value; } void setAFC(Boolean value) { XtVaSetValues(AFCwid, XmNset, value, NULL); } /* unused */ void setControls(Boolean QPSK, int LSB, Boolean AFC) { setQPSK(QPSK); //setLSB(LSB); setAFC(AFC); } void setFreq(float freq) { curfreq = freq; sprintf(str, "%4.1f", freq); XmTextFieldSetString (rx2FreqText, str); commControl(commChannel, COMM_FREQ, (int)(freq*100)); } float getFreq() { String str; XtVaGetValues (rx2FreqText, /* Get the freq */ XmNvalue, &str, NULL); float f = atof(str); /* convert to a float */ return f; } DecoderWid() { visible=0; hasfocus=0; } Widget rx2FreqText, rxUpArrow, rxDownArrow; int visible; int commChannel; static Widget shell; void move(int x, int y); Scope& getScope() { return dscope; }; Widget getTextWid() { return rxText; }; Widget getMainWid() { return dialogShell; }; Widget getSwapBtn() { return swapBtn; } void buildWidgets(Widget shell, AppRes *appRes, int chan); void updateDisplay(float freq, int DCD, int IMD); }; extern DecoderWid decoderWids[MAX_DECODERS]; #endif twpsk-4.3/src/callbox.C0000644000175000017500000001066113142415555012001 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #include "callbox.h" void *shareCall; /* memory ptr - call of current station */ /* * Constructor * Set up shared memory, and create the dialog widget */ Callbox::Callbox (Widget shell) { /* * Allocate the shared memory */ if ((shmid = shmget (KEY, SHMSIZE, IPC_CREAT | 0600)) < 0) { perror ("Callbox - shmget"); exit (1); } if ((shareCall = (char *)(shmat (shmid, NULL, 0))) == (char *) -1) { perror ("Callbox - shmat"); exit (1); } /* * Build the dialog box * XmStrings for pushbutton and label. Help button gets * renamed to "Clear". XmNtraversal prevents the Clear * button from hogging the focus. */ XmString xsLabel = XmStringCreateLocalized ((char *)"His Call"); XmString xsButton = XmStringCreateLocalized ((char *)"Clear"); /* create the dialog shell */ callShell = XtVaCreateWidget ("callShell", topLevelShellWidgetClass, shell, NULL); /* create the Prompt dialog */ callBox = XtVaCreateWidget ("callBox", xmSelectionBoxWidgetClass, callShell, XmNwidth, 100, XmNdialogType, XmDIALOG_PROMPT, XmNtraversalOn, False, XmNselectionLabelString, xsLabel, XmNhelpLabelString, xsButton, NULL); XmStringFree (xsLabel); XmStringFree (xsButton); /* Get rid of some unwanted buttons - OK and Cancel */ XtUnmanageChild(XmSelectionBoxGetChild (callBox, XmDIALOG_OK_BUTTON)); XtUnmanageChild(XmSelectionBoxGetChild (callBox, XmDIALOG_CANCEL_BUTTON)); /* Get the widget for the Clear PB - really the Help button */ clearPB = XmSelectionBoxGetChild (callBox, XmDIALOG_HELP_BUTTON); /* Get the widget for the Text field and set some properties */ /* Add the callbacks and manage the dialog box */ callTF = XmSelectionBoxGetChild (callBox, XmDIALOG_TEXT); XtAddCallback (clearPB, XmNactivateCallback, &Callbox::clearCB, (XtPointer) this); XtAddCallback (callTF, XmNvalueChangedCallback, &Callbox::callCB, (XtPointer) this); XtAddCallback (callTF, XmNmodifyVerifyCallback, &Callbox::callCB, (XtPointer) this); /* Set some properties on the dialog shell */ XtVaSetValues (callShell, XmNmwmDecorations, MWM_DECOR_BORDER | MWM_DECOR_TITLE, XmNtitle, "Twpsk", NULL); XtManageChild (callBox); XtManageChild (callShell); } /* * clearCB - clears the callbox text field */ void Callbox::clearCB (Widget w, XtPointer cdata, XtPointer cbs) { Callbox *ptr = (Callbox *) cdata; XmTextSetString (ptr->callTF, (char *)""); XmProcessTraversal (ptr->callTF, XmTRAVERSE_CURRENT); } /* * callCB - value changed and modify/verify callbacks puts * "His Call" into shared memory */ void Callbox::callCB (Widget w, XtPointer cdata, XtPointer cbs) { int i; char *hisCall; XmTextVerifyCallbackStruct *ptr = (XmTextVerifyCallbackStruct *)cbs; switch (ptr->reason) { case (XmCR_VALUE_CHANGED): /* Get the call and put it in the shared memory */ hisCall = XmTextGetString (w); strncpy ((char *)shareCall, hisCall, SHMSIZE); break; case (XmCR_MODIFYING_TEXT_VALUE): /* change everything to uppercase */ for (i = 0; i < ptr->text->length; i++) { ptr->text->ptr[i] = toupper (ptr->text->ptr[i]); } break; } XmProcessTraversal (w, XmTRAVERSE_CURRENT); } twpsk-4.3/src/Twpsk0000644000175000017500000002171012660672002011275 00000000000000! ! Resource File for Twpsk ! ! This line is a comma separated list of files in the twpskDir directory ! These filenames will appear as button names on the File pulldown menu. ! Add your own files. For example, Twpsk.buttonNames: ShortCQ,LongCQ,Brag ! Start up values for rx and tx Freq Twpsk.rxFreq: 1500.0 Twpsk.txFreq: 1500.0 ! Use this to define the highlight style for your transmitted text ! No highlight 0 ! Inverse video 1 ! Underlined 2 Twpsk.xmitHighlight: 1 ! Start up state for AFC and NET - 1=ON 0=OFF Twpsk.afc: 1 Twpsk.net: 1 ! REMOVED - The squelch is gone for now. ! Start up value for Squelch Scale - Valid range 0 -> 40 !Twpsk*squelchScale.value: 5 ! Set next value to 1 for PTT control. Set the following ! line to the serial device used to key PTT Twpsk.ptt: 1 Twpsk.serDev: /dev/ttyS0 !Twpsk.serDev: /dev/ttyUSB0 ! Set the next value to your call for CW ID Twpsk.call: N0CALL !Twpsk.call: WA0EIR ! Set next value to 1 to display zeros with slashes Twpsk.zero: 1 ! Select the start up state for the display type ! Twpsk*saTB.set - selects the spectrum analyzer ! Twpsk*wfTB.set - selects the waterfall ! Uncomment only one of the following: !Twpsk*saTB.set: 1 Twpsk*wfTB.set: 1 ! Set only one of the following to 1. The other two ! should be 0. These select Broad, Medium or Narrow bandwidth display Twpsk*B.set: 0 Twpsk*M.set: 1 Twpsk*N.set: 0 ! Your call on the next line for the label on top ! Use \330 for a zero with a slash ! For example: Twpsk*label1.labelString: TWPSK !Twpsk*label1.labelString: WA\330EIR ! font for your call at the top Twpsk*label1.fontList: fixed !Twpsk*label1.fontList: -misc-ubuntu-bold-r-*-*-20-*-*-*-*-*-*-* ! Fonts,Text widgets and Label Strings Twpsk*fontList: fixed !Twpsk*XmText.fontList: fixed !Twpsk*XmTextField.fontList: fixed ! or !Twpsk*fontList: -misc-ubuntu-bold-r-*-*-14-*-*-*-*-*-*-* !Twpsk*XmText.fontList: -misc-ubuntu-bold-r-*-*-14-*-*-*-*-*-*-* !Twpsk*XmTextField.fontList: -misc-ubuntu-bold-r-*-*-14-*-*-*-*-*-*-* ! fftSpeed ! valid values are 0 -> 100 ! the bigger, the faster the display ! 60 is a good one. Twpsk*fftSpeedScale.value: 60 ! brightness start up value ! valid values are 1 -> 100 Twpsk*brightScale.value: 50 ! waterfall flow direction ! 0 flows down or 1 flows up ! This is Linux, so by default, the waterfall flows UP. Twpsk*Flow Up.set: 1 ! Local Caps ! when set to 1, all Rx letters will be displayed in upper case. ! Tx letters will be sent as typed, but displayed as upper case. Twpsk*Local Caps.set: 0 ! callBox - in case you don't use twlog, you can put the other ! stations call in this box, so you only have to type it once ! because the Over macro will work. ! set to 1 if you need the callbox ! and set the call box position Twpsk.callBox: 0 !Twpsk.callBox: 1 ! location of the callbox Twpsk*callShell.x: 50 Twpsk*callShell.y: 50 ! postamble - for contesting, set this to 0. The postamble ( a steady tone) ! will not be transmitted at the end of a transmission, making for a little ! faster over's. Set to 1 if you want the postamble (default) ! Twpsk.postamble: 1 ! Translations for "Over", HisCall and user defined macros. ! You can create your own macros here. They work well for short phrases ! Use the samples below lines like these. ! ! Shift Alt m: sendMacro(WA0EIR)\n\ ! Shift Alt F1: sendMacro(WA0EIR)\n\ ! Shift Alt 1: sendMacro("\n-k-\n")\n\ ! Shift Alt 2: sendMacro("\n-kn-\n")\n\ ! Shift Alt 2: sendMacro("\n-sk-\n")\n\ ! Shift Alt u: sendMacro("http://wa0eir.bcts.info")\n\ ! Shift Alt t: sendMacro("Tnx for the QSO and 73")\n\ ! ! A space will automatically be added to the end of your text. ! ! I suggest you use the "Shift Alt x" form: ! Shift Alt "some_key": sendMacro(your text)\n\ ! since the "Ctrl x" form may already be used by other programs. ! ! Enter your macros after the line: ! Twpsk*txText.translations: #override\n\ ! And before the last two lines. ! The last two lines should NOT be modified. ! ! Be sure to change NOCALL to your call ! Twpsk*txText.translations: #override\n\ Shift Alt m: sendMacro("N0CALL")\n\ Shift Alt 1: sendMacro("\n-k-\n")\n\ Shift Alt 2: sendMacro("\n-kn-\n")\n\ Shift Alt 3: sendMacro("\n-sk-\n")\n\ Shift Alt u: sendMacro("http://wa0eir.bcts.info")\n\ Shift Alt o: sendOver()\n\ Shift Alt h: sendHisCall() ! The window does not fit on a 640x480 or ! 800x600 display. For those resolutions, ! try setting the number of lines in the ! text windows to something less than the ! rows below. !Twpsk*rxText.rows: 10 !Twpsk*txText.rows: 25 Twpsk*rxText.rows: 10 Twpsk*txText.rows: 5 ! X-Y position of upper left corner of the window Twpsk.x: 230 Twpsk.y: 20 ! ! Geometry things ! Twpsk*highlightThickness: 1 Twpsk*waterfallDiag*.highlightThickness: 3 ! ! Color stuff ! Twpsk*XmToggleButton.selectColor: red Twpsk*foreground: black Twpsk*background: #e0e1e0 Twpsk*XmForm.background: #00768d Twpsk*XmRowColumn.background: #00768d Twpsk*rxTextSW*background: #e0e1e0 Twpsk*txTextSW*background: #e0e1e0 Twpsk*menuBar*background: #e0e1e0 Twpsk*XmLabel.background: #00768d Twpsk*XmLabel.foreground: white ! Twpsk*scopeDA.background: #00768d Twpsk*imdFrame*foreground: black Twpsk*imdFrame*background: #e0e1e0 Twpsk*f4.background: #0ee1d0 Twpsk*XmFrame.background: #00768d Twpsk*imdFrame.background: #e0e1e0 ! Twpsk*rxTextSW*clrRx*background: #00768d Twpsk*rxTextSW*clrRx*foreground: #e0e0e0 Twpsk*txTextSW*clrTx*background: #00768d Twpsk*txTextSW*clrTx*foreground: #e0e0e0 ! Twpsk*callBox.foreground: #e0e1e0 Twpsk*callBox*background: #00768d Twpsk*callBox*XmTextField.background: #e0e1e0 Twpsk*callDiag*foreground: black ! Twpsk*aboutDiag*foreground: #e0e1e0 Twpsk*aboutDiag*background: #00768d Twpsk*aboutDiag*OK.background: #e0e1e0 Twpsk*aboutDiag*OK.foreground: black ! Twpsk*helpDiag*foreground: #e0e1e0 Twpsk*helpDiag*background: #00768d Twpsk*helpDiag*XmText.foreground: black Twpsk*helpDiag*XmPushButton*foreground: black Twpsk*helpDiag*XmPushButton*background: #e0e1e0 Twpsk*helpDiag.XmScrolledWindow*background: #e0e1e0 ! Twpsk*promptDiag*foreground: #e0e1e0 Twpsk*promptDiag*background: #00768d Twpsk*promptDiag.XmTextField.foreground: black Twpsk*promptDiag*XmTextField.background: #e0e1e0 Twpsk*promptDiag*OK.foreground: black Twpsk*promptDiag*OK.background: #e0e1e0 Twpsk*promptDiag*Apply.foreground: black Twpsk*promptDiag*Apply.background: #e0e1e0 Twpsk*promptDiag*Cancel.foreground: black Twpsk*promptDiag*Cancel.background: #e0e1e0 ! Twpsk*noMatchError*foreground: #e0e1e0 Twpsk*noMatchError*background: #00768d Twpsk*noMatchError*OK.background: #e0e1e0 Twpsk*noMatchError*OK.foreground: black ! ! Key Bindings Twpsk*defaultVirtualBindings: osfBackSpace: BackSpace\n\ osfDelete: Delete\n\ osfLeft: Left\n\ osfRight: Right\n\ osfUp: Up\n\ osfDown: Down\n\ osfMenu: F10 ! For Wheel Mouse on Text Widgets Twpsk*XmText*translations: #augment\n\ : scroll-one-line-down()\n\ : scroll-one-line-up() twpsk-4.3/src/GUI.h0000644000175000017500000001625613142417071011047 00000000000000/* * GUI.h Header File */ /* twpsk: A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ /* * Include Files */ #ifndef GUI_INCLUDED #define GUI_INCLUDED #include "../config.h" //#include "../../twHEADERS/twSHM.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define MAX_DECODERS 4 /* number of secondary decoders */ #define MAKE_ICON 1 #define CANCEL_BTN 1 #define ERR_DIAG 1 #define SAMPLE_RATE 8000 #define DAT_DIR "/.twpskDir" #define DAT_FILE "/.twpsk.dat" #define WF_WIDTH 128 * 3 #define WF_HEIGHT 75 #define MAXFREQ 4000.0 #define MAXFREQSTR "MAXFREQ" #define RED 0 #define YELLOW 1 #define GREEN 2 #define PTT_ON TIOCMBIS #define PTT_OFF TIOCMBIC /* * Application Defined Resources */ #define XmNbuttonNames "buttonNames" #define XmCButtonNames "ButtonNames" #define XmNxmitHighlight "xmitHighlight" #define XmCXmitHighlight "XmitHighlight" #define XmNrxFreq "rxFreq" #define XmCRxFreq "RxFreq" #define XmNtxFreq "txFreq" #define XmCTxFreq "TxFreq" #define XmNafc "afc" #define XmCAfc "Afc" #define XmNnet "net" #define XmCNet "Net" #define XmNcall "call" #define XmCCall "Call" #define XmNzero "zero" #define XmCZero "Zero" #define XmNserDev "serDev" #define XmCSerDev "SerDev" #define XmNptt "ptt" #define XmCPtt "Ptt" #define XmNcallBox "callBox" #define XmCCallBox "CallBox" #define XmNpostamble "postamble" #define XmCPostamble "Postamble" #define XmNsampsize "sampsize" #define XmCSampsize "Sampsize" #define KEY 6146 /* things for shared memory */ #define MAXCALL 12 /* need to agree with twlog */ #define SHMSIZE 2 * MAXCALL /* put in another .h? */ typedef struct { char inCall[MAXCALL]; /* Note: the names are reversed */ char outCall[MAXCALL]; } callspt; typedef struct { char **buttonNames; int xmitHighlight; float rxFreq; float txFreq; int afc; int net; #if 0 int mainVol; int outVol; int inVol; #endif String call; int zero; String serDev; int ptt; int callBox; int postamble; int sampsize; } AppRes; #if 0 typedef struct { int recsrc; int vol; int pcm; int line; int mic; int useRec; } MixVals; #endif /* * Function Declarations */ int iniProc (char mode); int chk_dialout (void); void controlsBtnCB (Widget w, XtPointer cdata, XtPointer cbs); void popupDiagCB (Widget w, XtPointer cdata, XtPointer cbs); void closeVideoDiagCB (Widget w, XtPointer cdata, XtPointer cbs); void wideBtnCB (Widget w, XtPointer cdata, XtPointer cbs); void mediunBtnCB (Widget w, XtPointer cdata, XtPointer cbs); void narrowBtnCB (Widget w, XtPointer cdata, XtPointer cbs); Boolean workProc(XtPointer cdata); void appendRXtext (Widget w, char ch, int zero, XmHighlightMode mode); void appendTXtext (char ch, int zero); void rxScrollBarCB (Widget w, XtPointer cdata, XtPointer cbs); void changeDisplayCB (Widget w, XtPointer cdata, XtPointer cbs); void txTextCB (Widget w, XtPointer cdata, XtPointer cbs); void txCB (Widget w, XtPointer cdata, XtPointer cbs); void rxCB (Widget w, XtPointer cdata, XtPointer cbs); void changeBG (void); void tuneCB (Widget w, XtPointer cdata, XtPointer cbs); void arrowCB (Widget w, XtPointer cdata, XtPointer cbs); void freqTextCB (Widget w, XtPointer cdata, XtPointer cbs); void afcCB (Widget w, XtPointer cdata, XtPointer cbs); void netCB (Widget w, XtPointer cdata, XtPointer cbs); void scopeCB (Widget w, XtPointer cdata, XtPointer cbs); void wfCB (Widget w, XtPointer cdata, XtPointer cbs); void wfDirCB (Widget w, XtPointer cdata, XtPointer cbs); void localCapsCB (Widget w, XtPointer cdata, XtPointer cbs); void openBtnCB (Widget w, XtPointer cdata, XtPointer cbs); //void audioCB (Widget w, XtPointer cdata, XtPointer cbs); void chansCB (Widget w, XtPointer cdata, XtPointer cbs); void setLevel (int device, int level); void qpskCB (Widget w, XtPointer cdata, XtPointer cbs); void lsbCB (Widget w, XtPointer cdata, XtPointer cbs); void dcdCB (Widget w, XtPointer cdata, XtPointer cbs); void bwCB (Widget w, XtPointer cdata, XtPointer cbs); void brightCB (Widget w, XtPointer cdata, XtPointer cbs); void fftScaleCB (Widget w, XtPointer cdata, XtPointer cbs); void fileCB (Widget w, XtPointer cdata, XtPointer cbs); void quitCB (Widget w, XtPointer cdata, XtPointer cbs); void aboutCB (Widget w, XtPointer cdata, XtPointer cbs); void helpCB (Widget w, XtPointer cdata, XtPointer cbs); void errorDiag (Widget w, char *emess, int flag, int type); void errOkCB (Widget w, XtPointer cdata, XtPointer cbs); void errCancelCB (Widget w, XtPointer cdata, XtPointer cbs); void promptDiag (char *word); Boolean procFileText (XtPointer text); void popupHandler (Widget w, XtPointer cdata, XEvent *event, Boolean *cont); void clrTextCB (Widget w, XtPointer cdata, XtPointer cbs); char *getFile (char*filename); void rxFreqFocusCB (Widget w, XtPointer cdata, XtPointer cbs); int open2Rx (int x); void seekCB (Widget w, XtPointer cdata, XtPointer cbs); void haltCB (Widget w, XtPointer cdata, XtPointer cbs); void bordersCB (Widget w, XtPointer cdata, XtPointer cbs); void sendOver (Widget w, XEvent *e, String args[], Cardinal *argc); void sendHisCall (Widget w, XEvent *e, String args[], Cardinal *argc); void sendMacro (Widget w, XEvent *e, String args[], Cardinal *argc); char *getHisCall (void); void procMacroText (char *ch); void seekTimeOut (XtPointer cdata, XtIntervalId id); void callbox (Widget shell); void gotSig (int stat); void infoText (char *text); int getQSOfiles(char *destdir); void rxTextCB (Widget w, XtPointer cdata, XtPointer cbs); #endif twpsk-4.3/src/twpskCB.h0000644000175000017500000000230613142416665011777 00000000000000/* twpsk - A gui application for PSK * Copyright (C) 1999-2014 Ted Williams WA0EIR * * 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., 675 Mass Ave, Cambridge, MA 02139, * USA. * * Version: 4.3 - Aug 2017 */ #ifndef INCLUDED_TWPSKCB_H #define INCLUDED_TWPSKCB_H #include "SHM.h" #include class TwpskCB { private: Position x, y; public: void setBorders (Position xb, Position yb) { x = xb; y = yb; } Position getBorderX () { return x; } Position getBorderY () { return y; } }; #endif twpsk-4.3/config32.sh0000775000175000017500000000030112317347330011421 00000000000000#! /bin/sh ### ### Use this script to configure for a 32 bit compile on a 64 bit PC ### ./configure --build=i386-pc-linux-gnu "CXXFLAGS=-m32" "LDFLAGS=-m32" ##-L/usr/lib/i386-linux-gnu twpsk-4.3/THANKS0000644000175000017500000000136313142157375010377 00000000000000twpsk THANKS file twpsk has originally been written by Ted Williams, wa0eir. Many people have further contributed to FOO by reporting problems, suggesting various improvements, or submitting actual code. Here is a list of these people. Help me keep it complete and exempt of errors. Hansi Reiser, DL9RDZ, for psk31lx which was used for the psk engine. Bob, W9YA, for help with the desktop.file, automake, installation, configuration and keeping me honest. Pino, ZP4KFX, for finding a bug in configure.ac Hal, W8MCH for beta testing Ken, N8LGQ, for beta testing Andreas Jochens Roger, G6CKR, for help with 64 bit debug Rick, KD0RG, for suggestion to checking for dialout group membership Ervin, HA2OS, for finding a compile error with GCC7 twpsk-4.3/man/0000775000175000017500000000000013142420757010313 500000000000000twpsk-4.3/man/Makefile.am0000644000175000017500000000001612162137775012270 00000000000000 SUBDIRS = en twpsk-4.3/man/en/0000775000175000017500000000000013142420757010715 500000000000000twpsk-4.3/man/en/Makefile.am0000644000175000017500000000005112162137775012671 00000000000000 EXTRA_DIST = twpsk.1 man_MANS = twpsk.1 twpsk-4.3/man/en/twpsk.10000644000175000017500000000121412345413541012060 00000000000000.TH TWPSK 1 "March 23, 2014" .SH NAME twpsk \- a psk program .SH SYNOPSIS .B twpsk .SH "DESCRIPTION" .PP .B Twpsk is a sound card program that allows you to transmit and receive PSK31, the digital mode developed by Peter, G3PLX. It has a Graphical User Interface (GUI) which uses the Motif or lesstiff libraries .PP See the Help button on the main menu for a complete description of all the features. .SH "SEE ALSO" More information about .B twpsk is available on its website, http://wa0eir.bcts.info .SH BUGS Please send bug reports to: wa0eir@wa0eir.bcts.info .SH AUTHOR .B twpsk was written by Ted Williams, WA0EIR and Hansi Reiser, DL9RDZ. twpsk-4.3/man/en/Makefile.in0000664000175000017500000003463613142420063012704 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 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 = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } 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 = : subdir = man/en ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) 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) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APPDEFS_CFLAGS = @APPDEFS_CFLAGS@ APPDEFS_LIBS = @APPDEFS_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ HOME_DIR = @HOME_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOTIF_CFLAGS = @MOTIF_CFLAGS@ MOTIF_LIBS = @MOTIF_LIBS@ OBJEXT = @OBJEXT@ 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@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USER_NAME = @USER_NAME@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ appdefaultdir = @appdefaultdir@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ include_motif = @include_motif@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ link_motif = @link_motif@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ 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 = twpsk.1 man_MANS = twpsk.1 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/en/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu man/en/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-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 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 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 cscopelist-am \ ctags-am distclean distclean-generic 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 pdf \ pdf-am ps ps-am tags-am uninstall uninstall-am uninstall-man \ uninstall-man1 .PRECIOUS: Makefile # 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: twpsk-4.3/man/Makefile.in0000664000175000017500000004307613142420063012300 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 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 = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } 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 = : subdir = man ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APPDEFS_CFLAGS = @APPDEFS_CFLAGS@ APPDEFS_LIBS = @APPDEFS_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ HOME_DIR = @HOME_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOTIF_CFLAGS = @MOTIF_CFLAGS@ MOTIF_LIBS = @MOTIF_LIBS@ OBJEXT = @OBJEXT@ 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@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USER_NAME = @USER_NAME@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ appdefaultdir = @appdefaultdir@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ include_motif = @include_motif@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ link_motif = @link_motif@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ 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 = en all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu man/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): # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic cscopelist-am ctags ctags-am \ distclean distclean-generic distclean-tags distdir dvi dvi-am \ html html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # 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: twpsk-4.3/AUTHORS0000644000175000017500000000025712162137773010536 00000000000000Authors of twpsk. See also the files THANKS and ChangeLog. Ted Williams, wa0eir designed and implemented twpsk. Hansi Reiser, dl9rdz designed and implemented the psk engine. twpsk-4.3/configure0000775000175000017500000072341013142415123011365 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for twpsk 4.3. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: wa0eir@wa0eir.bcts.info about your system, including $0: any error possibly output before this message. Then $0: install a modern shell, or manually run the script $0: 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'" 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='twpsk' PACKAGE_TARNAME='twpsk' PACKAGE_VERSION='4.3' PACKAGE_STRING='twpsk 4.3' PACKAGE_BUGREPORT='wa0eir@wa0eir.bcts.info' PACKAGE_URL='' ac_unique_file="src" # 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 HOME_DIR USER_NAME appdefaultdir APPDEFS_LIBS APPDEFS_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG MOTIF_LIBS MOTIF_CFLAGS include_motif link_motif X_EXTRA_LIBS X_LIBS X_PRE_LIBS X_CFLAGS XMKMF LIBOBJS EGREP GREP RANLIB LN_S CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE ac_ct_CC CFLAGS CC 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 runstatedir 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 with_x with_motif_includes with_motif_libraries with_appdefaultdir ' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC CC CFLAGS CPP XMKMF PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR APPDEFS_CFLAGS APPDEFS_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' runstatedir='${localstatedir}/run' 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 ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -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 runstatedir 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 twpsk 4.3 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] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --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/twpsk] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of twpsk 4.3:";; 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 Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-x use the X Window System --with-motif-includes=DIR Motif include files are in DIR --with-motif-libraries=DIR Motif libraries are in DIR --with-appdefaultdir= specify directory for app-defaults files (default is autodetected) 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 CC C compiler command CFLAGS C compiler flags CPP C preprocessor XMKMF Path to xmkmf, Makefile generator for X Window System 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 APPDEFS_CFLAGS C compiler flags for APPDEFS, overriding pkg-config APPDEFS_LIBS linker flags for APPDEFS, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF twpsk configure 4.3 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_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_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_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_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_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## -------------------------------------- ## ## Report this to wa0eir@wa0eir.bcts.info ## ## -------------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # 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_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { 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 eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=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 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_type # ac_fn_c_find_uintX_t LINENO BITS VAR # ------------------------------------ # Finds an unsigned integer type with width BITS, setting cache variable VAR # accordingly. ac_fn_c_find_uintX_t () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 $as_echo_n "checking for uint$2_t... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" # Order is important - never check a type that is potentially smaller # than half of the expected target width. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 'unsigned long long int' 'unsigned short int' 'unsigned char'; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : case $ac_type in #( uint$2_t) : eval "$3=yes" ;; #( *) : eval "$3=\$ac_type" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if eval test \"x\$"$3"\" = x"no"; then : else break fi done 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_find_uintX_t # 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 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 twpsk $as_me 4.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" ac_aux_dir= for ac_dir in config "$srcdir"/config; 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 config \"$srcdir\"/config" "$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. am__api_version='1.15' # 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+set}" != 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='twpsk' VERSION='4.3' 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 (and possibly the TAP driver). 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 -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi # Checks for programs. 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=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 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 whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_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. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != 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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking 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 { $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 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 # Checks for header files. ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } if eval \${$as_ac_Header+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$as_ac_Header=yes" else eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$as_ac_Header { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in fcntl.h stdlib.h string.h sys/ioctl.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$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 else as_fn_error $? "This header file is missing" "$LINENO" 5 fi done for ac_header in sys/socket.h unistd.h pulse/simple.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$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 else as_fn_error $? "This header file is missing" "$LINENO" 5 fi done # Checks for typedefs, structures, and compiler characteristics. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" case $ac_cv_c_uint32_t in #( no|yes) ;; #( *) $as_echo "#define _UINT32_T 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define uint32_t $ac_cv_c_uint32_t _ACEOF ;; esac # Checks for library functions. for ac_header in stdlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDLIB_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } if ${ac_cv_func_malloc_0_nonnull+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_malloc_0_nonnull=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { return ! malloc (0); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes else ac_cv_func_malloc_0_nonnull=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } if test $ac_cv_func_malloc_0_nonnull = yes; then : $as_echo "#define HAVE_MALLOC 1" >>confdefs.h else $as_echo "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac $as_echo "#define malloc rpl_malloc" >>confdefs.h fi for ac_func in memset mkdir select socket strdup do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in pow sqrt strncasecmp atexit bzero do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Checks for libraries. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 $as_echo_n "checking for sqrt in -lm... " >&6; } if ${ac_cv_lib_m_sqrt+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sqrt (); int main () { return sqrt (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_sqrt=yes else ac_cv_lib_m_sqrt=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_m_sqrt" >&5 $as_echo "$ac_cv_lib_m_sqrt" >&6; } if test "x$ac_cv_lib_m_sqrt" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" else as_fn_error $? "\"ERROR: libm was not found\"" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_create+:} 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_create (); int main () { return pthread_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_create=yes else ac_cv_lib_pthread_pthread_create=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_create" >&5 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPTHREAD 1 _ACEOF LIBS="-lpthread $LIBS" else as_fn_error $? "\"ERROR: libpthread was not found\"" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_new in -lpulse-simple" >&5 $as_echo_n "checking for pa_simple_new in -lpulse-simple... " >&6; } if ${ac_cv_lib_pulse_simple_pa_simple_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpulse-simple $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 pa_simple_new (); int main () { return pa_simple_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pulse_simple_pa_simple_new=yes else ac_cv_lib_pulse_simple_pa_simple_new=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_pulse_simple_pa_simple_new" >&5 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_new" >&6; } if test "x$ac_cv_lib_pulse_simple_pa_simple_new" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPULSE_SIMPLE 1 _ACEOF LIBS="-lpulse-simple $LIBS" else as_fn_error $? "\"ERROR: pulseaudio library was not found\"" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_strerror in -lpulse" >&5 $as_echo_n "checking for pa_strerror in -lpulse... " >&6; } if ${ac_cv_lib_pulse_pa_strerror+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpulse $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 pa_strerror (); int main () { return pa_strerror (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pulse_pa_strerror=yes else ac_cv_lib_pulse_pa_strerror=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_pulse_pa_strerror" >&5 $as_echo "$ac_cv_lib_pulse_pa_strerror" >&6; } if test "x$ac_cv_lib_pulse_pa_strerror" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPULSE 1 _ACEOF LIBS="-lpulse $LIBS" else as_fn_error $? "\"pulselibrary was not found\"" "$LINENO" 5 fi # # Find headers and libraries for X11, Xpm and Xm # $as_echo "#define HAVE_LIBXPM 0" >>confdefs.h $as_echo "#define HAVE_LIB_XP 0" >>confdefs.h $as_echo "#define HAVE_MOTIF 0" >>confdefs.h for ac_header in X11/Intrinsic.h do : ac_fn_c_check_header_mongrel "$LINENO" "X11/Intrinsic.h" "ac_cv_header_X11_Intrinsic_h" "$ac_includes_default" if test "x$ac_cv_header_X11_Intrinsic_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_INTRINSIC_H 1 _ACEOF else as_fn_error $? "\"Can't find the X11/Intrinsic.h header file.\"" "$LINENO" 5 as_fn_error $? "\"Please install the libXt development package.\"" "$LINENO" 5 fi done # Check Motif/LessTif { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_dnet_ntoa=yes else ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_stub_dnet_ntoa=yes else ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes; then : fi if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if ${ac_cv_lib_bsd_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsd_gethostbyname=yes else ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" if test "x$ac_cv_func_connect" = xyes; then : fi if test $ac_cv_func_connect = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = xyes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" if test "x$ac_cv_func_remove" = xyes; then : fi if test $ac_cv_func_remove = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if ${ac_cv_lib_posix_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); int main () { return remove (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_posix_remove=yes else ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" if test "x$ac_cv_func_shmat" = xyes; then : fi if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if ${ac_cv_lib_ipc_shmat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); int main () { return shmat (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ipc_shmat=yes else ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ICE_IceConnectionNumber=yes else ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi ### TJW AC_REQUIRE([AC_FIND_LIBXP]) motif_includes= motif_libraries= # Check whether --with-motif-includes was given. if test "${with_motif_includes+set}" = set; then : withval=$with_motif_includes; motif_includes="$withval" fi # Check whether --with-motif-libraries was given. if test "${with_motif_libraries+set}" = set; then : withval=$with_motif_libraries; motif_libraries="$withval" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif" >&5 $as_echo_n "checking for Motif... " >&6; } # # Search the include files. # if test "$motif_includes" = ""; then if ${ac_cv_motif_includes+:} false; then : $as_echo_n "(cached) " >&6 else ac_motif_save_LIBS="$LIBS" ac_motif_save_INCLUDES="$INCLUDES" ac_motif_save_CPPFLAGS="$CPPFLAGS" ac_motif_save_LDFLAGS="$LDFLAGS" # ac_cv_motif_includes="none" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Xm/Xm.h is in the standard search path. ac_cv_motif_includes= else # Xm/Xm.h is not in the standard search path. # Locate it and put its directory in `motif_includes' # # /usr/include/Motif* are used on HP-UX (Motif). # /usr/include/X11* are used on HP-UX (X and Athena). # /usr/dt is used on Solaris (Motif). # /usr/openwin is used on Solaris (X and Athena). # Other directories are just guesses. for dir in "/usr/include/x86_64-linux-gnu" "$x_includes" \ "${prefix}/include" /usr/include /usr/local/include \ /usr/include/Motif2.1 /usr/include/Motif2.0 /usr/include/Motif1.2 \ /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 \ /usr/X11/include /usr/X11R6/include /usr/X11R5/include \ /usr/dt/include /usr/openwin/include \ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do if test -f "$dir/Xm/Xm.h"; then ac_cv_motif_includes="$dir" break fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # LIBS="$ac_motif_save_LIBS" INCLUDES="$ac_motif_save_INCLUDES" CPPFLAGS="$ac_motif_save_CPPFLAGS" LDFLAGS="$ac_motif_save_LDFLAGS" fi motif_includes="$ac_cv_motif_includes" fi # # # Now for the libraries. # if test "$motif_libraries" = ""; then if ${ac_cv_motif_libraries+:} false; then : $as_echo_n "(cached) " >&6 else ac_motif_save_LIBS="$LIBS" ac_motif_save_INCLUDES="$INCLUDES" ac_motif_save_CPPFLAGS="$CPPFLAGS" ac_motif_save_LDFLAGS="$LDFLAGS" # LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" INCLUDES="$X_CFLAGS $INCLUDES" CPPFLAGS="$X_CFLAGS $CPPFLAGS" LDFLAGS="$X_LIBS $LDFLAGS" # ac_cv_motif_libraries="none" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XtToolkitInitialize(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : # libXm.a is in the standard search path. ac_cv_motif_libraries= else # libXm.a is not in the standard search path. # Locate it and put its directory in `motif_libraries' # # /usr/lib/Motif* are used on HP-UX (Motif). # /usr/lib/X11* are used on HP-UX (X and Athena). # /usr/dt is used on Solaris (Motif). # /usr/lesstif is used on Linux (Lesstif). # /usr/openwin is used on Solaris (X and Athena). # Other directories are just guesses. for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ /usr/lib/Motif2.1 /usr/lib/Motif2.0 /usr/lib/Motif1.2 \ /usr/lib/X11 /usr/lib/X11R6 /usr/lib/X11R5 \ /usr/X11/lib /usr/X11R6/lib /usr/X11R5/lib \ /usr/dt/lib /usr/openwin/lib \ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ /usr/lesstif*/lib /usr/lib/Lesstif* \ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then ac_cv_motif_libraries="$dir" break fi done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # LIBS="$ac_motif_save_LIBS" INCLUDES="$ac_motif_save_INCLUDES" CPPFLAGS="$ac_motif_save_CPPFLAGS" LDFLAGS="$ac_motif_save_LDFLAGS" fi # motif_libraries="$ac_cv_motif_libraries" fi # # Provide an easier way to link # if test "$motif_includes" = "none" -o "$motif_libraries" = "none"; then with_motif="no" else with_motif="yes" fi ###TJW AC_FIND_LIBXP ###TJW if test "$LT_HAVE_XP" = "yes"; then ###TJW XPLIB="-lXp -lXext" ###TJW else XPLIB="" ###TJW fi if test "$with_motif" != "no"; then if test "$motif_libraries" = ""; then link_motif="-lXm $XPLIB" MOTIF_LIBS="-lXm $XPLIB" else link_motif="-L$motif_libraries -lXm $XPLIB" MOTIF_LIBS="-L$motif_libraries -lXm $XPLIB" fi if test "$motif_includes" != ""; then include_motif="-I$motif_includes" MOTIF_CFLAGS="-I$motif_includes" fi $as_echo "#define HAVE_MOTIF 1" >>confdefs.h else with_motif="no" fi # # # # motif_libraries_result="$motif_libraries" motif_includes_result="$motif_includes" test "$motif_libraries_result" = "" && motif_libraries_result="in default path" test "$motif_includes_result" = "" && motif_includes_result="in default path" test "$motif_libraries_result" = "none" && motif_libraries_result="(none)" test "$motif_includes_result" = "none" && motif_includes_result="(none)" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $motif_libraries_result, headers $motif_includes_result" >&5 $as_echo "libraries $motif_libraries_result, headers $motif_includes_result" >&6; } if test "$with_motif" = "no" then as_fn_error $? "\"Can't find Motif/LessTif on your system\"" "$LINENO" 5 fi for ac_header in X11/xpm.h do : ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" if test "x$ac_cv_header_X11_xpm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_XPM_H 1 _ACEOF tw_XPM_header="yes" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Can't find the Xpm header file on your system\"" >&5 $as_echo "$as_me: WARNING: \"Can't find the Xpm header file on your system\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"The window icon will not be created\"" >&5 $as_echo "$as_me: WARNING: \"The window icon will not be created\"" >&2;} fi done # Look for the Xpm header file. If found, look for the Xpm libraryin tw_XPM_lib="no" tw_XPM_lib="no" for ac_header in X11/xpm.h do : ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" if test "x$ac_cv_header_X11_xpm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_XPM_H 1 _ACEOF tw_XPM_header="yes" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXpm $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 XpmCreatePixmapFromData (); int main () { return XpmCreatePixmapFromData (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes else ac_cv_lib_Xpm_XpmCreatePixmapFromData=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_Xpm_XpmCreatePixmapFromData" >&5 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBXPM 1 _ACEOF LIBS="-lXpm $LIBS" fi tw_XPM_lib="yes" fi done if test "$tw_XPM_header" = "no" then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Can't find the Xpm header file on your system.\"" >&5 $as_echo "$as_me: WARNING: \"Can't find the Xpm header file on your system.\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"The window icon will not be created.\"" >&5 $as_echo "$as_me: WARNING: \"The window icon will not be created.\"" >&2;} fi if test "$tw_XPM_lib" = "no" then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Can't find the Xpm library on your system.\"" >&5 $as_echo "$as_me: WARNING: \"Can't find the Xpm library on your system.\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"The window icon will not be created.\"" >&5 $as_echo "$as_me: WARNING: \"The window icon will not be created.\"" >&2;} fi # # Find the system app-defaults directory # if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 $as_echo_n "checking for APPDEFS... " >&6; } if test -n "$APPDEFS_CFLAGS"; then pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$APPDEFS_LIBS"; then pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 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 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` else APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$APPDEFS_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (xt) were not met: $APPDEFS_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 APPDEFS_CFLAGS and APPDEFS_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 APPDEFS_CFLAGS and APPDEFS_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 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` # Check whether --with-appdefaultdir was given. if test "${with_appdefaultdir+set}" = set; then : withval=$with_appdefaultdir; appdefaultdir="$withval" else appdefaultdir="${xt_appdefaultdir}" fi ########################################################################### CFLAGS="$CFLAGS $X_CFLAGS $MOTIF_CFLAGS" LIBS="$X_LIBS $MOTIF_LIBS -lXt -lX11 $X_PRE_LIBS $X_EXTRA_LIBS $LIBS -lpulse" ########################################################################### echo "######################################################################" echo CFLAGS $CFLAGS echo LIBS $LIBS echo LDFLAGS $LDFLAGS echo APP DEFAULTS DIR = "$appdefaultdir" echo "######################################################################" USER_NAME=$USER HOME_DIR=$HOME ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile man/en/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__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 : "${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 twpsk $as_me 4.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ twpsk config.status 4.3 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" _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 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; "man/en/Makefile") CONFIG_FILES="$CONFIG_FILES man/en/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 } ;; 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 twpsk-4.3/acinclude.m40000644000175000017500000002650212373466577011673 00000000000000dnl dnl $Header: /cvsroot/xbae/Xbae/ac_find_motif.m4,v 1.2 2004/03/04 21:38:50 dannybackx Exp $ dnl dnl AC_FIND_MOTIF : find OSF/Motif or LessTif, and provide variables dnl to easily use them in a Makefile. dnl dnl Adapted from a macro by Andreas Zeller. dnl dnl The variables provided are : dnl link_motif (e.g. -L/usr/lesstif/lib -lXm) dnl include_motif (e.g. -I/usr/lesstif/lib) dnl motif_libraries (e.g. /usr/lesstif/lib) dnl motif_includes (e.g. /usr/lesstif/include) dnl dnl The link_motif and include_motif variables should be fit to put on dnl your application's link line in your Makefile. dnl dnl Oleo CVS Id: motif.m4,v 1.9 1999/04/09 11:46:49 danny dnl LessTif CVS $Id: ac_find_motif.m4,v 1.2 2004/03/04 21:38:50 dannybackx Exp $ dnl AC_DEFUN([AC_FIND_MOTIF], [ AC_REQUIRE([AC_PATH_XTRA]) ### TJW AC_REQUIRE([AC_FIND_LIBXP]) motif_includes= motif_libraries= dnl AC_ARG_WITH(motif, dnl [ --without-motif do not use Motif widgets]) dnl Treat --without-motif like dnl --without-motif-includes --without-motif-libraries. dnl if test "$with_motif" = "no" dnl then dnl motif_includes=none dnl motif_libraries=none dnl fi AC_ARG_WITH(motif-includes, [ --with-motif-includes=DIR Motif include files are in DIR], motif_includes="$withval") AC_ARG_WITH(motif-libraries, [ --with-motif-libraries=DIR Motif libraries are in DIR], motif_libraries="$withval") AC_MSG_CHECKING(for Motif) # # Search the include files. # if test "$motif_includes" = ""; then AC_CACHE_VAL(ac_cv_motif_includes, [ ac_motif_save_LIBS="$LIBS" ac_motif_save_INCLUDES="$INCLUDES" ac_motif_save_CPPFLAGS="$CPPFLAGS" ac_motif_save_LDFLAGS="$LDFLAGS" # ac_cv_motif_includes="none" AC_TRY_COMPILE([#include ],[int a;], [ # Xm/Xm.h is in the standard search path. ac_cv_motif_includes= ], [ # Xm/Xm.h is not in the standard search path. # Locate it and put its directory in `motif_includes' # # /usr/include/Motif* are used on HP-UX (Motif). # /usr/include/X11* are used on HP-UX (X and Athena). # /usr/dt is used on Solaris (Motif). # /usr/openwin is used on Solaris (X and Athena). # Other directories are just guesses. for dir in "/usr/include/x86_64-linux-gnu" "$x_includes" \ "${prefix}/include" /usr/include /usr/local/include \ /usr/include/Motif2.1 /usr/include/Motif2.0 /usr/include/Motif1.2 \ /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 \ /usr/X11/include /usr/X11R6/include /usr/X11R5/include \ /usr/dt/include /usr/openwin/include \ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do if test -f "$dir/Xm/Xm.h"; then ac_cv_motif_includes="$dir" break fi done ]) # LIBS="$ac_motif_save_LIBS" INCLUDES="$ac_motif_save_INCLUDES" CPPFLAGS="$ac_motif_save_CPPFLAGS" LDFLAGS="$ac_motif_save_LDFLAGS" ]) motif_includes="$ac_cv_motif_includes" fi # # # Now for the libraries. # if test "$motif_libraries" = ""; then AC_CACHE_VAL(ac_cv_motif_libraries, [ ac_motif_save_LIBS="$LIBS" ac_motif_save_INCLUDES="$INCLUDES" ac_motif_save_CPPFLAGS="$CPPFLAGS" ac_motif_save_LDFLAGS="$LDFLAGS" # LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" INCLUDES="$X_CFLAGS $INCLUDES" CPPFLAGS="$X_CFLAGS $CPPFLAGS" LDFLAGS="$X_LIBS $LDFLAGS" # ac_cv_motif_libraries="none" AC_TRY_LINK([#include ],[XtToolkitInitialize();], [ # libXm.a is in the standard search path. ac_cv_motif_libraries= ], [ # libXm.a is not in the standard search path. # Locate it and put its directory in `motif_libraries' # # /usr/lib/Motif* are used on HP-UX (Motif). # /usr/lib/X11* are used on HP-UX (X and Athena). # /usr/dt is used on Solaris (Motif). # /usr/lesstif is used on Linux (Lesstif). # /usr/openwin is used on Solaris (X and Athena). # Other directories are just guesses. for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ /usr/lib/Motif2.1 /usr/lib/Motif2.0 /usr/lib/Motif1.2 \ /usr/lib/X11 /usr/lib/X11R6 /usr/lib/X11R5 \ /usr/X11/lib /usr/X11R6/lib /usr/X11R5/lib \ /usr/dt/lib /usr/openwin/lib \ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ /usr/lesstif*/lib /usr/lib/Lesstif* \ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then ac_cv_motif_libraries="$dir" break fi done ]) # LIBS="$ac_motif_save_LIBS" INCLUDES="$ac_motif_save_INCLUDES" CPPFLAGS="$ac_motif_save_CPPFLAGS" LDFLAGS="$ac_motif_save_LDFLAGS" ]) # motif_libraries="$ac_cv_motif_libraries" fi # # Provide an easier way to link # if test "$motif_includes" = "none" -o "$motif_libraries" = "none"; then with_motif="no" else with_motif="yes" fi ###TJW AC_FIND_LIBXP ###TJW if test "$LT_HAVE_XP" = "yes"; then ###TJW XPLIB="-lXp -lXext" ###TJW else XPLIB="" ###TJW fi if test "$with_motif" != "no"; then if test "$motif_libraries" = ""; then link_motif="-lXm $XPLIB" MOTIF_LIBS="-lXm $XPLIB" else link_motif="-L$motif_libraries -lXm $XPLIB" MOTIF_LIBS="-L$motif_libraries -lXm $XPLIB" fi if test "$motif_includes" != ""; then include_motif="-I$motif_includes" MOTIF_CFLAGS="-I$motif_includes" fi AC_DEFINE(HAVE_MOTIF) else with_motif="no" fi # AC_SUBST(link_motif) AC_SUBST(include_motif) AC_SUBST(MOTIF_CFLAGS) AC_SUBST(MOTIF_LIBS) # # # motif_libraries_result="$motif_libraries" motif_includes_result="$motif_includes" test "$motif_libraries_result" = "" && motif_libraries_result="in default path" test "$motif_includes_result" = "" && motif_includes_result="in default path" test "$motif_libraries_result" = "none" && motif_libraries_result="(none)" test "$motif_includes_result" = "none" && motif_includes_result="(none)" AC_MSG_RESULT( [libraries $motif_libraries_result, headers $motif_includes_result]) ])dnl # TJW dnl # TJW dnl Check for libXp # TJW dnl In fact this check ensures that # TJW dnl - and # TJW dnl - both libXp libXext # TJW dnl are in place # TJW dnl Note that a simpler check only for the libraries would not # TJW dnl be sufficient perhaps. # TJW dnl If the test succeeds it defines Have_Libxp within our # TJW dnl Makefiles. Perhaps one should immediately add those libs # TJW dnl to link commands which include libXm version2.1?! # TJW dnl # TJW AC_DEFUN([AC_FIND_LIBXP], # TJW [AC_REQUIRE([AC_PATH_X]) # TJW AC_CACHE_CHECK(whether libXp is available, lt_cv_libxp, # TJW [lt_save_CFLAGS="$CFLAGS" # TJW lt_save_CPPFLAGS="$CPPFLAGS" # TJW lt_save_LIBS="$LIBS" # TJW LIBS="$X_LIBS -lXp -lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" # TJW CFLAGS="$X_CFLAGS $CFLAGS" # TJW CPPFLAGS="$X_CFLAGS $CPPFLAGS" # TJW AC_TRY_LINK([ # TJW #include # TJW #include # TJW ],[ # TJW int main() { # TJW Display *display=NULL; # TJW short major_version, minor_version; # TJW Status rc; # TJW rc=XpQueryVersion(display, &major_version, &minor_version); # TJW exit(0); # TJW } # TJW ], # TJW lt_cv_libxp=yes, # TJW lt_cv_libxp=no) # TJW ]) # TJW if test "$lt_cv_libxp" = "yes"; then # TJW AC_DEFINE(HAVE_LIB_XP) # TJW LT_HAVE_XP="yes" # TJW else # TJW LT_HAVE_XP="no" # TJW fi # TJW AM_CONDITIONAL(Have_Libxp, test "$lt_cv_libxp" = "yes") # TJW TJW AC_SUBST(LT_HAVE_XP) # TJW TJW CFLAGS="$lt_save_CFLAGS" # TJW TJW CPPFLAGS="$lt_save_CPPFLAGS" # TJW TJW LIBS="$lt_save_LIBS" # TJW ]) # # Try to find the app-defaults directory. # AC_DEFUN([AC_PATH_X_APP_DEFAULTS_XMKMF],[ rm -fr conftestdir if mkdir conftestdir; then cd conftestdir 2>/dev/null # Make sure to not put "make" in the Imakefile rules, since we grep it out. cat > Imakefile <<'EOF' acfindx: @echo 'ac_x_app_defaults="${XAPPLOADDIR}"' EOF if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which'd confuse us. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` fi cd .. 2>/dev/null rm -fr conftestdir fi]) AC_DEFUN([AC_PATH_X_APP_DEFAULTS_DIRECT],[ # Look for the directory under a standard set of common directories. # Check X11 before X11Rn because it's often a symlink to the current release. # TJW - added /usr/share/X11/app-defaults for Xorg/FC5 # TJW - added /etc/X11/app-defaults for Ubuntu for ac_dir in \ /usr/share/X11/app-defaults \ /etc/X11/app-defaults \ /usr/X11/lib/app-defaults \ /usr/X11R6/lib/app-defaults \ /usr/X11R6/lib/X11/app-defaults \ /usr/X11R5/lib/app-defaults \ /usr/X11R5/lib/X11/app-defaults \ /usr/X11R4/lib/app-defaults \ /usr/X11R4/lib/X11/app-defaults \ \ /usr/lib/X11/app-defaults \ /usr/lib/X11R6/app-defaults \ /usr/lib/X11R5/app-defaults \ /usr/lib/X11R4/app-defaults \ \ /usr/local/X11/lib/app-defaults \ /usr/local/X11R6/lib/app-defaults \ /usr/local/X11R5/lib/app-defaults \ /usr/local/X11R4/lib/app-defaults \ \ /usr/local/lib/X11/app-defaults \ /usr/local/lib/X11R6/app-defaults \ /usr/local/lib/X11R6/X11/app-defaults \ /usr/local/lib/X11R5/app-defaults \ /usr/local/lib/X11R5/X11/app-defaults \ /usr/local/lib/X11R4/app-defaults \ /usr/local/lib/X11R4/X11/app-defaults \ \ /usr/X386/lib/X11/app-defaults \ /usr/x386/lib/X11/app-defaults \ /usr/XFree86/lib/X11/app-defaults \ /usr/lib/X11/app-defaults \ /usr/local/lib/X11/app-defaults \ /usr/unsupported/lib/X11/app-defaults \ /usr/athena/lib/X11/app-defaults \ /usr/local/x11r5/lib/X11/app-defaults \ /usr/lpp/Xamples/lib/X11/app-defaults \ /lib/usr/lib/X11/app-defaults \ \ /usr/openwin/lib/app-defaults \ /usr/openwin/lib/X11/app-defaults \ /usr/openwin/share/lib/app-defaults \ /usr/openwin/share/lib/X11/app-defaults \ \ /X11R6/lib/app-defaults \ /X11R5/lib/app-defaults \ /X11R4/lib/app-defaults \ ; \ do if test -d "$ac_dir"; then ac_x_app_defaults=$ac_dir break fi done ]) AC_DEFUN([AC_PATH_X_APP_DEFAULTS], [AC_REQUIRE_CPP() AC_CACHE_CHECK([for X app-defaults directory], ac_cv_x_app_defaults, [AC_PATH_X_APP_DEFAULTS_XMKMF if test x"$ac_x_app_defaults" = x; then AC_PATH_X_APP_DEFAULTS_DIRECT fi if test x"$ac_x_app_defaults" = x; then ac_cv_x_app_defaults="/usr/lib/X11/app-defaults" else # Record where we found app-defaults for the cache. ac_cv_x_app_defaults="$ac_x_app_defaults" fi]) eval ac_x_app_defaults="$ac_cv_x_app_defaults"]) twpsk-4.3/Makefile.in0000664000175000017500000007023613142420063011523 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 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@ # Copyright (C) 1999-2014 Ted Williams (wa0eir) # # This file is free software; as a special exception the author 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. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } 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 = : subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) 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 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)$(desktopdir)" "$(DESTDIR)$(docdir)" DATA = $(desktop_DATA) $(doc_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/config/compile $(top_srcdir)/config/install-sh \ $(top_srcdir)/config/missing AUTHORS COPYING ChangeLog INSTALL \ NEWS README THANKS TODO config/compile config/depcomp \ config/install-sh config/missing 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@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APPDEFS_CFLAGS = @APPDEFS_CFLAGS@ APPDEFS_LIBS = @APPDEFS_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ HOME_DIR = @HOME_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOTIF_CFLAGS = @MOTIF_CFLAGS@ MOTIF_LIBS = @MOTIF_LIBS@ OBJEXT = @OBJEXT@ 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@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USER_NAME = @USER_NAME@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ appdefaultdir = @appdefaultdir@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ include_motif = @include_motif@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ link_motif = @link_motif@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ 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 = twpsk.desktop config32.sh SUBDIRS = src man doc_DATA = THANKS ChangeLog README NEWS desktopdir = $(datadir)/applications desktop_DATA = twpsk.desktop DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\\$${datadir}/X11/app-defaults 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 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 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 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 install-desktopDATA: $(desktop_DATA) @$(NORMAL_INSTALL) @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(desktopdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(desktopdir)" || 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)$(desktopdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(desktopdir)" || exit $$?; \ done uninstall-desktopDATA: @$(NORMAL_UNINSTALL) @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(desktopdir)'; $(am__uninstall_files_from_dir) install-docDATA: $(doc_DATA) @$(NORMAL_INSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(docdir)" || 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)$(docdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ done uninstall-docDATA: @$(NORMAL_UNINSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 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)/_build/sub $(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/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(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 $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(docdir)"; 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 mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-desktopDATA install-docDATA 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 pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-desktopDATA uninstall-docDATA .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 \ 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-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-desktopDATA \ install-docDATA 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 pdf \ pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-desktopDATA uninstall-docDATA .PRECIOUS: Makefile # 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: twpsk-4.3/README0000644000175000017500000000445312275077355010354 00000000000000TWPSK README WELCOME TO TWPSK twpsk is free software. Please see the file COPYING for details. Documentation is built in to the program and can be read via the Help button on the menu bar. For building and installation instructions please see the INSTALL file. This software is released under the GNU General License and is provided FREE. If you like it, and would like to show your appreciation, may I suggest a donation in the name of Mary Jo Dopson (my sister, and a sixteen year survivor) to "The Quad Cities Race for the Cure", a chapter of the Susan G. Komen National Foundation for Breast Cancer Prevention and Cure. Their address is: Susan G. Komen for the Cure Quad Cities Affilate 1227 East Rusholme Street Davenport, IA 52803 http://www.komenquadcities.org This program uses the C++ classes developed by Hansi Reiser, DL9RDZ. I added the graphical interface on top of Hansi's classes. INSTALLATION - TWPSK For building and installation instructions please see the INSTALL file in this directory. Once you have twpsk compiled and installed, you will want to edit Twpsk, the resource file. The install script copied Twpsk to: /usr/X11R6/lib/X11/app-defaults That file has some generic settings. You will want to change some of them. You could, as root, edit the copy made by the install script. Or to make it easier to edit, you can copy it to one of the locations below. Resource files in these locations will override the settings in the generic file. append it to the .Xdefaults file in your home directory or copy it to your home directory or I have a directory (app-defaults) in my home directory and copy all resource files there. Then, in my start up script say: XAPPLRESDIR=$HOME/app-defaults export XAPPLRESDIR The resource file has lots of comments to help you make the changes. As a minimum, you will want to change: Resource Name near line # Twpsk.call 39 Twpsk*label1 74 Maintainers can use: ./configure --bindir="path" --datarootdir="path" and make install DESTDIR="rootpath" to build their distribution trees. Drop me an e-mail if you have any problems, comments or anything you would like to see added or changed. 73, Ted - WA0EIR wa0eir@wa0eir.bcts.info twpsk-4.3/ChangeLog0000644000175000017500000002006313142415071011222 00000000000000 Changes Ver 4.3 - commented out unused function (txTextCB) tnx Ervin, HA2OS Changes Ver 4.2 - fixed Rx/Tx/Tune bug - added check to see if user is a member of dialout group so PTT will work tnx - to Rich, KD0RG - modified errDiag function - modified automake for automake 1.5 - modified to quiet fedora compile Changes Ver 4.1 - email and website addresses changed to new ones - fixed several warnings caused by 64 bit compile - added a small usleep in server.C master_handler() - changed offset on bottom form on primary and secondary rx windows - removed mouse grap patch from decoderWids.C - added accelerator keys for Clear on secondary decoders - removed all mixer code - use pa mixer instead Changes Ver 4.0 - converting to pulseaudio - removed realtime code and USE_PTHREAD #ifdef's - added man page - fixed so make distcheck runs clean Changes Ver 3.1.1 - added twclock patch for xorg popup problem. twpskWids.C 1405 Works fine. - added code removed by gremlins for postamble/no postamble resource - added Local Caps and WF Flow Up buttons to help file Changes Ver 3.1 - added Local Caps - RX/TX are displayed as caps, but send as lower case - added 4th secondary decoder ... made N_BUFFERS a function of MAX_DECODERS - grouped related buttons/displays into their own frames - added frame to waterfall controls dialog - changed colors - little closer to old Heathkit - more contrast on pop up menus - fixed window decorations on secondary decoders - must use close button now - improved behavior of Rx Freq text field while editing - added numbers to secondary RX titles - fixed typo in Help - changed Close button size on Mixer Controls - moved scopeDA into display form with bandwidth and display type buttons - improved scope drawing and geometry control so scope size is set dynamically - missed char returns a underscore (~) instead of the funny Y - fixed compiler warnings (ignored rtn values) - got "Modes" centered Changes Ver 3.0 - added no-write-strings to src/Makefile.am - waterfall is greatly enlarged - Info messages sent to RX text window at start up - fixed right attachment on WF drawing area - must have gotted lost - fixed a bug in gotSig() while restoring mixer values - Controls - Flow Up menu button to change waterfall direction - waterfall drawning uses much less cpu time - postamble can be turned off via the resource file - spectrum analyser uses "connected points" - put under automake - use INSTALL_DATA and @docdir@ in Makefile.am - fixed memory leak in twpsk.C - using XtMalloc for all allocs - installing THANKS, ChangeLog and README - removed error diag for no Twpsk file - no longer needed - added icons for all windows and tray - soundcard device specified in the resource file - Help feature now divided into sections - Help text is searchable - using config.h for About Dialog - improved check for Xpm - changed noMixer to useMixer in Twpsk - better handling of positions of secondary RX windows - original mixer settings are saved and restored - included patch from Andreas Jochens for gcc 4.0 - removed psk31lx for dist - general code cleanup Changes Ver 2.1 - rewrote to use Open Motif. Previous versions were written for lessTif. - Added tear off menus - Install is more automated. - Transmitted text is inverse video in the RX window. (could be underlined) - When you move a secondary receive window, its position will be saved on exit so it will open in the same location the next time. - Control C will clear the selected RX and TX text windows. - Trapping some signals to make close cleaner. - The window manager Close button is now enabled. Changes Ver 2.0 - Added Seek feature. - Macros can be set in the resource file. Two are already defined. - Attaches to TWLOG's shared memory (if you are running it) and allows sending Call and Over via a macro. - Removed Setup button from main menu and moved the Audio and Display buttons to the Controls menu. Renamed the Display button Video. - Cleaned up some swap operations - Added Open Decoder button to the Controls menu. Ctrl-O will open a secondary decoder at the current Rx frequency. - Rx and Tx windows are in a Paned Window - Renamed the waterfall Wide button to Broad, so Ctrl-W now works to select the waterfall. It was Ctrl-F. - Modified find_center method. - Modified to work with Lesstif 0.91 now, which should really fixed double char on send file. - Added better control of insert cursor on Tx Text. Keeps it at the end. - Send file allows for inserting variable text such as signal reports, names, contest numbers, etc. - "make install_twpsk" copies resource file to X11/app-defaults. - "psk31.cod" is now installed in /usr/local/share/psk31. - Fixed Clear Rx Text behavior. Background is reset to normal when clear is invoked while scrolling and scroll flag is reset. - Invalid freqs (freq < 0 or freq > 4000) are prevented and the display is gray for these freqs. - Modified constants in calculations for IMD which eliminated some strange output values. --------------------- Changes Ver 1.1 - Added three secondary receive windows which can be "swaped" back to the main window. - Added popup menu to clear tx and rx text windows - Added IMD Meter - Make click to tune smarter so it tries to find signal center freq - finally fixed the double char on file send. XmInsertText was broken on lesstif version 0.88 (and earlier?) - Less flicker when scrolling the RX window - Less flicker in other windows too --------------------- Changes Ver 1.0 Changed - added (Hansi's) appendTXtext. - changed name of appendText to appendRXtext - added pixmap for display cursor - red arrow now. - simplified twpskDisp scaling of fft data --------------------- Changes Ver 0.10 Changed - many changes to connect with Hansi's new server class. - fixed rx freq so focus blocks AFC update again. - needed to add PTTFORCE when going to TX mode. - adjusted size of main screen for 800x600 users by: - moved mixer controls and display speed to different window - Moved rx text widget rows to resource file. Just set rows to - smaller value until it fits 800x600 screen. - removed squelch control. - selected T/R button had dark background - fixed rx text scroll - dark background when scrolled - no Button 3 anymore. Just scroll to bottom and background goes back to normal - less flicker on the rx text window (better but not perfect yet) - less flicker on the rx freq window too. --------------------- Changes Ver 0.9 Changed - twpskDisp.C - Hansi's fix for different Visuals - some menu buttons had the wrong callback - added CXXFLAGS to fix makefile - add Error dialog if Twpsk is not found. - doPTT toggles RTS iff ptt is enabled in Twpsk - make backup will update twpskDir/twpskHelpfile - for now - cleaned up unused vars --------------------- Changes Ver 0.8 Renamed - Hansi's README to COPYING.DL9RDZ Added - can disable Mixer widgets via resource file - Controls button on main menu with cascade buttons for Wide, Medium, Narrow, Recv, Xmit, and Tune. - Added accelerator and mnemonic keys so Wide, Medium, Narrow, Recv, Xmit, and Tune can be "pushed" with a keystroke - Added Hansi to the About Dialog - Added gain/lose focus callback to rxFreqTF so AFC disabled while changing RX freq - Added Actions and Translations to receive Text window to let the text window scroll while receiving text. - Min and Max values for shell size Changed - Changed some file names. - Still hacking with the waterfall to make it less B/W - Can now scroll back while receiving - Fixed a bug in file send --------------------- Changes Ver 0.7 Fixed - fc initialization? - backspaces were not being sent right? Added - widgets.C/widgets.h is now a class - About dialog - Help dialog - just the README file for now. - Double click on tune arrows changes freq by +/-8 Hz - cleaned up some of the motif code - moved code file (psk31.cod) and added resource (twpskDir) - modified xpm for display toggle buttons - send files --------------------- Changes Ver 0.6 Added - freq controls ... bandwidth and mode - Click to tune --------------------- Changes Ver 0.5 Added - fft for spectrum analyzer twpsk-4.3/aclocal.m40000664000175000017500000014630213142415123011315 00000000000000# generated automatically by aclocal 1.15 -*- Autoconf -*- # Copyright (C) 1996-2014 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'.])]) dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- dnl serial 11 (pkg-config-0.29.1) dnl dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.1]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. 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 ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl 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]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. 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 ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. 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 ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl 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 ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl 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 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --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 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl 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 ])dnl PKG_CHECK_VAR # Copyright (C) 2002-2014 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.15' 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.15], [], [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.15])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-2014 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], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2014 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-2014 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-2014 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-2014 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. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # 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 (and possibly the TAP driver). 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 # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) 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-2014 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+set}" != 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-2014 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-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2014 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-2014 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])]) # Copyright (C) 1999-2014 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. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != 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 AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2014 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_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2014 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-2014 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-2014 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-2014 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-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([acinclude.m4]) twpsk-4.3/COPYING0000644000175000017500000010451312676613141010517 00000000000000 GNU 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. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . twpsk-4.3/TODO0000644000175000017500000000077212227415704010153 00000000000000TWPSK TODO worked on line length for scope. should change strength calc? fix CTRL-C in main window (xorg grab patch?) - secondary are OK now change scan - add range (start-stop) and reverse at end points with two modes scan and seek. use xpm to pixmap resource converter instead of XPM (or both) look at auto Xmt and Rcv when sending files - Pino single window for second decoder with many lines and no scope,txfreq, afc, qpsk, dcd, but still clickable swap to main. just show rx freq, and close.