[hamradio-commits] [wspr] 01/01: Update to snv r4893
Greg Beam
ki7mt-guest at moszumanska.debian.org
Sun Jan 11 06:27:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
ki7mt-guest pushed a commit to branch master
in repository wspr.
commit cdfe07e1f9ec8d5fa3ca8bfe4e640beba3dbc599
Author: Greg Beam <ki7mt at yahoo.com>
Date: Sat Jan 10 23:23:03 2015 -0700
Update to snv r4893
---
AUTHORS | 16 +-
COPYRIGHT | 2 +-
INSTALL.txt | 22 +-
Makefile.in | 116 +-
NEWS | 12 +-
README | 11 +-
WsprMod/specjt.py | 5 -
autogen.sh | 10 +-
build-aux/config.guess | 1420 +++++++++
build-aux/config.sub | 1794 ++++++++++++
build-aux/install-sh | 527 ++++
build-aux/missing | 331 +++
configure.ac | 158 +-
debian/README.source | 6 +-
debian/changelog | 9 +-
debian/control | 10 +-
...nerate-autotools.patch => generate-files.patch} | 3096 +++++++++++++++++++-
debian/patches/makefile.in.patch | 32 -
debian/patches/remove-ldflags.patch | 65 -
debian/patches/series | 6 +-
debian/patches/update-f2py.patch | 41 -
debian/patches/update-makefilein.patch | 120 +
debian/rules | 4 +-
doc/AUTHORS | 16 +-
doc/NEWS | 12 +-
doc/README | 11 +-
gocal | 0
start_threads.c | 19 +-
wspr.py | 6 +-
wspr.sh => wspr.sh.in | 50 +-
30 files changed, 7531 insertions(+), 396 deletions(-)
diff --git a/AUTHORS b/AUTHORS
index bde63bc..509c1ca 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -19,16 +19,20 @@ CALLSIGN: VA3DB
AUTHOR:
CALLSIGN: 4X6IZ
+AUTHOR: Greg Beam <ki7mt at yahoo.com>
+CALLSIGN: KI7MT
+
Authors can be contacted on the wsjt-devel mailing list or
-through the WSJT Yahoo Group.
+through the WSJT Yahoo Group. Also, See About informaiton
+under HELP >> About WSPR
PROJECT INFORMATION:
-------------------
-- Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
-- Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
-- Mailing List: ......... wsjt-devel at lists.sourceforge.net
-- Project Source Code: .. http://sourceforge.net/projects/wsjt/
-- Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
+Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
+Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
+Mailing List: ......... wsjt-devel at lists.sourceforge.net
+Project Source Code: .. http://sourceforge.net/projects/wsjt/
+Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
diff --git a/COPYRIGHT b/COPYRIGHT
index ca25f85..5a58359 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,4 +1,4 @@
-Copyright (C) 2014 Joseph H Taylor, Jr, K1JT
+Copyright (C) 2001-2014 by Joseph H Taylor, Jr, K1JT
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
diff --git a/INSTALL.txt b/INSTALL.txt
index b08e429..26fed97 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -18,26 +18,30 @@ To compile WSPR, you will need the following packages / applications:
* Numeric Python (Numpy 1.8.1+), providing F2PY v2.0 built against Python3
* PIL, (Python Imaging Library, sometimes referred to as PILLOW)
* Python-tk (Tcl\TK 8.6.1 or Later)
- * Python Imaging Tk (Pil or Pillow)
+ * Python Imaging, Tk Dependant
* Optional: Hamlib 1.2.15.x (or current distro version) for rig control
Example: For Ubuntu 14.04 amd64 system install, the following packages
would make be a good start:
-sudo apt-get install autoconf autotools-dev build-essential gfortran libtool
+sudo apt-get -y install autoconf autotools-dev build-essential gfortran libtool
libfftw3-dev libusb-dev libhamlib-dev libhamlib-utils libsamplerate0-dev
-portaudio19-dev python3-dev python3-tk python3-imaging-tk python3-pip
-python3-numpy
+portaudio19-dev python3-dev python3-tk python3-pil python3-pil.imagetk
+python3-imaging-tk python3-pip python3-numpy
NOTES:
-- Python Imaging and the related package names can be tricky depending
-your version of *Nix. For example, python3-imaging-tk installs / sets up the
-Python Imaging Library (Pillow, a modified version of PIL). Your Linux
-distro may be different.
+ [1] Python Imaging (Pil), Python3 Imgaging Tk dependant and the related package
+names can be tricky depending your version of *Nix. For example, python3-imaging-tk
+installs / sets up the Python Imaging Library (Pillow, a modified version of PIL).
+Your Linux distro may be different, but to be safe, install them both.
-- You may be able to slim the list down by selective installation, but the above
+ [2] You may be able to slim the list down by selective installation, but the above
provides a solid base to start with.
+ [3] Portaudio is a packages that can cause problems on various distrobutions
+like Mac OSX, FreeBSD etc, as they have portaudio v18 instaled by default, and
+you must like against v19, so follow the instructions in the respective setion.
+
IMPORTANT F2PY NOTE
- If you have python-numpy (based on Python27) installed, you should remove
it unless it is needed for other Numeric Python applications, as WSPR requires
diff --git a/Makefile.in b/Makefile.in
index 5ff8d99..4283e7b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -26,13 +26,13 @@ SHELL := @SHELL@
MKDIR := @MKDIR@
# Install locations
-INATALL := install
-BINDIR := $(DESTDIR)@BINDIR@
-DOCDIR := $(DESTDIR)@DOCDIR@
-HOMEDIR := $(DESTDIR)@HOMEDIR@
-MANDIR := $(DESTDIR)@MANDIR@
-SHARED := $(DESTDIR)@SHARED@
-WSPRLIB := $(DESTDIR)@WSPRLIB@
+INSTALL := install
+BINDIR := @BINDIR@
+DOCDIR := @DOCDIR@
+HOMEDIR := @HOMEDIR@
+MANDIR := @MANDIR@
+SHARED := @SHARED@
+WSPRLIB := @WSPRLIB@
# Compiler Information
CC := @CC@
@@ -52,6 +52,8 @@ CFLAGS += @CFLAGS@
FFLAGS += @FFLAGS@
LDFLAGS += @LDFLAGS@
FCOPT += @FCOPT@
+PORTAUDIO_INCLUDE = @PORTAUDIO_INCLUDE@
+PORTAUDIO_LIBDIR = @PORTAUDIO_LIBDIR@
# Config Definitions
DEFS := @DEFS@
@@ -74,23 +76,36 @@ all: libwspr.a WsprMod/w.so fmtest fmtave fcal fmeasure wsprcode wspr0
# Default Rules
%.o: %.c
- ${CC} ${CPPFLAGS} ${CFLAGS} -c $<
+ ${CC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${CPPFLAGS} -c $<
%.o: %.f
- ${FC} ${FFLAGS} -c $<
+ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
%.o: %.F
- ${FC} ${FFLAGS} -c $<
+ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
%.o: %.f90
- ${FC} ${FFLAGS} -c $<
+ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
%.o: %.F90
- ${FC} ${FFLAGS} -c $<
+ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
+
+# Prevent compiler warnings ( r4142 commit )
+thnix_stub.o: thnix_stub.f90
+ @echo
+ @echo Build thnix_stub
+ @echo --------------------
+ ${FC} -c thnix_stub.f90
# Objects
OBJS1 = wspr0.o wspr0init.o wspr0_rx.o wspr0_tx.o thnix_stub.o
wspr0: ${OBJS1}
- ${FC} ${FFLAGS} -o wspr0 ${FFLAGS} ${LDFLAGS} ${OBJS1} libwspr.a -lfftw3f -lportaudio
+ @echo
+ @echo Build wspr0
+ @echo --------------------
+ ${FC} ${PORTAUDIO_LIBDIR} ${FFLAGS} -o wspr0 ${FFLAGS} ${LDFLAGS} ${OBJS1} libwspr.a -lfftw3f -lportaudio
wsprcode: wsprcode.o thnix_stub.o
+ @echo
+ @echo Build wsprcode
+ @echo --------------------
${FC} ${FFLAGS} ${LDFLAGS} -o wsprcode wsprcode.o thnix_stub.o libwspr.a -pthread
OBJS3 = azdist.o ccf2.o chklevel.o db.o decode.o decode162.o deg2grid.o \
@@ -108,29 +123,47 @@ OBJS3 = azdist.o ccf2.o chklevel.o db.o decode.o decode162.o deg2grid.o \
# Build Library: libwspr.a
libwspr.a: ${OBJS3} acom1.f90 acom2.f90
+ @echo
+ @echo Build libwspr library
+ @echo -----------------------------
${AR} cr libwspr.a ${OBJS3}
ranlib libwspr.a
# Build FMT Applications
fmtest: fmtest.f90 libwspr.a
- ${FC} ${FFLAGS} ${LDFLAGS} -o fmtest fmtest.f90 libwspr.a -lfftw3f -lportaudio
+ @echo
+ @echo Build Fmtest
+ @echo --------------------
+ ${FC} ${CFLAGS} ${FFLAGS} ${PORTAUDIO_LIBDIR} ${LDFLAGS} -o fmtest fmtest.f90 libwspr.a -lfftw3f -lportaudio
fmtave: fmtave.f90
- ${FC} ${FFLAGS} ${LDFLAGS} -o fmtave fmtave.f90
+ @echo
+ @echo Build Fmtave
+ @echo --------------------
+ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} ${PORTAUDIO_LIBDIR} ${LDFLAGS} -o fmtave fmtave.f90
fcal: fcal.f90
- ${FC} ${FFLAGS} ${LDFLAGS} -o fcal fcal.f90
+ @echo
+ @echo Build Fcal
+ @echo --------------------
+ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} ${PORTAUDIO_LIBDIR} ${LDFLAGS} -o fcal fcal.f90
fmeasure: fmeasure.f90
+ @echo
+ @echo Build Fmeasure
+ @echo --------------------
${FC} ${FFLAGS} ${LDFLAGS} -o fmeasure fmeasure.f90
# SRC for w.so
F2PYSRCS = wspr1.f90 getfile.f90 paterminate.f90 audiodev.f90
# Build W.SO & MV to WsprMod/
-WsprMod/w.so: libwspr.a ${F2PYSRCS} acom1.f90
+WsprMod/w.so: libwspr.a ${F2PYSRCS} acom1.f90
+ @echo
+ @echo RUN F2PY w.so
+ @echo --------------------
${F2PY} -c --quiet --fcompiler=${FCV} --f77exec=${FC} --f90exec=${FC} \
- --opt="${FCOPT} ${LDFLAGS}" thnix.o ${LIBS} libwspr.a -m w ${F2PYSRCS}
+ --opt="${FCOPT}" thnix.o ${PORTAUDIO_LIBDIR} ${LDFLAGS} ${LIBS} libwspr.a -m w ${F2PYSRCS}
${MV} w*.so WsprMod/w.so
# Install target wspr
@@ -140,26 +173,31 @@ install:
@echo " Installing ${PROGRAM}"
@echo '-----------------------------------'
@echo ''
- @${MKDIR} -p ${BINDIR}
- @${MKDIR} -p ${MANDIR}
- @${MKDIR} -p ${DOCDIR}/examples
- @${MKDIR} -p ${SHARED}/save/Samples
- @${MKDIR} -p ${WSPRLIB}/WsprMod
- @${MKDIR} -p ${SHARED}/../applications
- @${MKDIR} -p ${SHARED}/../pixmaps
- @install -m 755 --strip fmtest fcal fmeasure fmtave wspr0 wsprcode ${BINDIR}
- @install -m 644 manpages/man1/*.1 ${MANDIR}
- @install -m 644 save/Samples/* ${SHARED}/save/Samples/
- @install -m 755 ./{gocal,Pmw*.py,wspr.py,wspr.sh,wsprrc} ${SHARED}
- @install -m 644 ./{AUTHORS,README,NEWS,COPYING,COPYRIGHT} ${DOCDIR}
- @install -m 644 ./hamlib_rig* ${SHARED}
- @install -m 755 WsprMod/* ${WSPRLIB}/WsprMod
- @install -m 644 ./wspr.desktop ${SHARED}/../applications
- @install -m 644 ./wspr.xpm ${SHARED}/../pixmaps/
- @${MV} -T ${SHARED}/wspr.sh ${BINDIR}/wspr
- @${CHMOD} 755 ${BINDIR}/wspr
- @${CP} -r doc/examples/* ${DOCDIR}/examples/
- @${CHMOD} -R 644 ${DOCDIR}/examples/*
+ @${MKDIR} -p ${DESTDIR}${BINDIR}
+ @${MKDIR} -p ${DESTDIR}${MANDIR}
+ @${MKDIR} -p ${DESTDIR}${DOCDIR}/examples
+ @${MKDIR} -p ${DESTDIR}${SHARED}
+ @${MKDIR} -p ${DESTDIR}${SHARED}/save/Samples
+ @${MKDIR} -p ${DESTDIR}${WSPRLIB}/WsprMod
+ @${MKDIR} -p ${DESTDIR}${SHARED}/../applications
+ @${MKDIR} -p ${DESTDIR}${SHARED}/../pixmaps
+ @install -m 755 fmtest fcal fmeasure fmtave wspr0 wsprcode ${DESTDIR}${BINDIR}
+ @strip ${DESTDIR}${BINDIR}/fmtest ${DESTDIR}${BINDIR}/fcal \
+ ${DESTDIR}${BINDIR}/fmeasure ${DESTDIR}${BINDIR}/fmtave \
+ ${DESTDIR}${BINDIR}/wspr0 ${DESTDIR}${BINDIR}/wsprcode
+ @install -m 644 manpages/man1/*.1 ${DESTDIR}${MANDIR}
+ @install -m 644 save/Samples/* ${DESTDIR}${SHARED}/save/Samples/
+ @install -m 755 gocal Pmw*.py wspr.py wspr.sh wsprrc ${DESTDIR}${SHARED}
+ @install -m 644 AUTHORS README NEWS COPYING COPYRIGHT ${DESTDIR}${DOCDIR}
+ @install -m 644 hamlib_rig* ${DESTDIR}${SHARED}
+ @install -m 755 WsprMod/* ${DESTDIR}${WSPRLIB}/WsprMod
+ @install -m 644 wspr.desktop ${DESTDIR}${SHARED}/../applications
+ @install -m 644 wspr.desktop ${DESTDIR}${SHARED}/applications
+ @install -m 644 wspr.xpm ${DESTDIR}${SHARED}/../pixmaps/
+ @${CP} wspr.sh ${DESTDIR}${BINDIR}/wspr
+ @${CHMOD} 755 ${DESTDIR}${BINDIR}/wspr
+ @${CP} -r doc/examples/* ${DESTDIR}${DOCDIR}/examples/
+ @${CHMOD} -R 644 ${DESTDIR}${DOCDIR}/examples/*
@echo "Finished Installing ${PROGRAM}"
@echo ''
@echo "Location: ${BINDIR}"
@@ -197,7 +235,7 @@ uninstall:
clean :
${RM} -f *.o libwspr.a *.pyc *.pyo WsprMod/*.pyc WsprMod/*.pyo \
WsprMod/w.so WsprMod/*.so w.so *~ wsprcode wspr0 fmtest fmtave fcal \
- fmeasure
+ fmeasure wspr.sh
distclean: clean
${RM} -f config.log config.status ALL_WSPR*.TXT WSPR.INI \
diff --git a/NEWS b/NEWS
index 65c8cbe..1c952bd 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,12 @@
-WSPR-4.0 NEWS
--------------
+As of WSPR v4.0 r4708
+* KI7MT - I'm sure we have some news ?
+PROJECT INFORMATION:
+-------------------
+Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
+Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
+Mailing List: ......... wsjt-devel at lists.sourceforge.net
+Project Source Code: .. http://sourceforge.net/projects/wsjt/
+Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
+
diff --git a/README b/README
index 2076acc..94ebcb5 100644
--- a/README
+++ b/README
@@ -5,10 +5,11 @@ Propagation Reporter". The program generates and decodes
a digital soundcard mode optimized for beacon-like
transmissions on the LF, MF, and HF bands.
+
PROJECT INFORMATION:
-------------------
-- Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
-- Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
-- Mailing List: ......... wsjt-devel at lists.sourceforge.net
-- Project Source Code: .. http://sourceforge.net/projects/wsjt/
-- Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
+Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
+Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
+Mailing List: ......... wsjt-devel at lists.sourceforge.net
+Project Source Code: .. http://sourceforge.net/projects/wsjt/
+Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
diff --git a/WsprMod/specjt.py b/WsprMod/specjt.py
index 9cffb0f..045060e 100644
--- a/WsprMod/specjt.py
+++ b/WsprMod/specjt.py
@@ -34,10 +34,6 @@ import pickle
import tkinter.messagebox
from . import w
-try:
- from numpy.oldnumeric import zeros, multiarray
-except:
- from Numeric import zeros, multiarray
import Image, ImageTk, ImageDraw
from .palettes import colormapblue, colormapgray0, colormapHot, \
colormapAFMHot, colormapgray1, colormapLinrad, Colormap2Palette
@@ -94,7 +90,6 @@ tol0=400
ttot=0.0
c=Canvas()
-a=zeros(225000,'s')
im=Image.new('P',(750,300))
line0=Image.new('P',(750,1)) #Image fragment for top line of waterfall
draw=ImageDraw.Draw(im)
diff --git a/autogen.sh b/autogen.sh
old mode 100644
new mode 100755
index 28eec9a..50dd98e
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,7 +3,7 @@
#-------------------------------------------------------------------------------
# This file is part of the WSPR application, Weak Signal Propagation Reporter
#
-# SVN : $Id: autogen.sh 4522 2014-10-17 05:26:06Z ki7mt $
+# SVN : $Id: autogen.sh 4846 2014-12-21 08:40:26Z ki7mt $
#
# File Name: autogen.sh
# Description: script to generate configire and makefile
@@ -58,13 +58,13 @@ autoconf -f -i
# simple test for the configure script, after running autogen.sh
if test -s ./configure; then
- echo " ..Finished"
- echo " ..Autoconf will now build the Makefile"
- echo " ..Running ./configure to generate Makefile"
- echo
+ echo "Finished"
+ echo "Autoconf will now build the Makefile"
+ echo "Running ./configure to generate Makefile"
sleep 1
else
# message if configure was not found
+ echo
echo "There was a problem generating the configure script"
echo "Check config.status for details."
echo
diff --git a/build-aux/config.guess b/build-aux/config.guess
new file mode 100644
index 0000000..1f5c50c
--- /dev/null
+++ b/build-aux/config.guess
@@ -0,0 +1,1420 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright 1992-2014 Free Software Foundation, Inc.
+
+timestamp='2014-03-23'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that
+# program. This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
+#
+# Originally written by Per Bothner.
+#
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+#
+# Please send patches with a ChangeLog entry to config-patches at gnu.org.
+
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches at gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright 1992-2014 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
+ if test x"$CC_FOR_BUILD" = x ; then
+ CC_FOR_BUILD=no_compiler_found ;
+ fi
+ ;;
+ ,,*) CC_FOR_BUILD=$CC ;;
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi at noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+case "${UNAME_SYSTEM}" in
+Linux|GNU|GNU/*)
+ # If the system lacks a compiler, then just pick glibc.
+ # We could probably try harder.
+ LIBC=gnu
+
+ eval $set_cc_for_build
+ cat <<-EOF > $dummy.c
+ #include <features.h>
+ #if defined(__UCLIBC__)
+ LIBC=uclibc
+ #elif defined(__dietlibc__)
+ LIBC=dietlibc
+ #else
+ LIBC=gnu
+ #endif
+ EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
+ ;;
+esac
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:NetBSD:*:*)
+ # NetBSD (nbsd) targets should (where applicable) match one or
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+ # switched to ELF, *-*-netbsd* would select the old
+ # object file format. This provides both forward
+ # compatibility and a consistent mechanism for selecting the
+ # object file format.
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ esac
+ # The Operating System including object format, if it has switched
+ # to ELF recently, or will in the future.
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ELF__
+ then
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ # Return netbsd for either. FIX?
+ os=netbsd
+ else
+ os=netbsdelf
+ fi
+ ;;
+ *)
+ os=netbsd
+ ;;
+ esac
+ # The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ # contains redundant information, the shorter form:
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ echo "${machine}-${os}${release}"
+ exit ;;
+ *:Bitrig:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
+ exit ;;
+ *:OpenBSD:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ alpha:OSF1:*:*)
+ case $UNAME_RELEASE in
+ *4.0)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
+ # A Vn.n version is a released version.
+ # A Tn.n version is a released field test version.
+ # A Xn.n version is an unreleased experimental baselevel.
+ # 1.2 uses "1.2" for uname -r.
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
+ exitcode=$?
+ trap '' 0
+ exit $exitcode ;;
+ Alpha\ *:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # Should we change UNAME_MACHINE based on the output of uname instead
+ # of the specific Alpha model?
+ echo alpha-pc-interix
+ exit ;;
+ 21064:Windows_NT:50:3)
+ echo alpha-dec-winnt3.5
+ exit ;;
+ Amiga*:UNIX_System_V:4.0:*)
+ echo m68k-unknown-sysv4
+ exit ;;
+ *:[Aa]miga[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-amigaos
+ exit ;;
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
+ exit ;;
+ *:OS/390:*:*)
+ echo i370-ibm-openedition
+ exit ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit ;;
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ echo arm-acorn-riscix${UNAME_RELEASE}
+ exit ;;
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
+ echo arm-unknown-riscos
+ exit ;;
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ echo hppa1.1-hitachi-hiuxmpp
+ exit ;;
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ # akee at wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ echo pyramid-pyramid-sysv3
+ else
+ echo pyramid-pyramid-bsd
+ fi
+ exit ;;
+ NILE*:*:*:dcosx)
+ echo pyramid-pyramid-svr4
+ exit ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7; exit ;;
+ esac ;;
+ s390x:SunOS:*:*)
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4H:SunOS:5.*:*)
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
+ echo i386-pc-auroraux${UNAME_RELEASE}
+ exit ;;
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:6*:*)
+ # According to config.sub, this is the proper way to canonicalize
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+ # it's likely to be more like Solaris than SunOS4.
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:*:*)
+ case "`/usr/bin/arch -k`" in
+ Series*|S4*)
+ UNAME_RELEASE=`uname -v`
+ ;;
+ esac
+ # Japanese Language versions have a version number like `4.1.3-JL'.
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ exit ;;
+ sun3*:SunOS:*:*)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ exit ;;
+ sun*:*:4.2BSD:*)
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ case "`/bin/arch`" in
+ sun3)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ ;;
+ sun4)
+ echo sparc-sun-sunos${UNAME_RELEASE}
+ ;;
+ esac
+ exit ;;
+ aushp:SunOS:*:*)
+ echo sparc-auspex-sunos${UNAME_RELEASE}
+ exit ;;
+ # The situation for MiNT is a little confusing. The machine name
+ # can be virtually everything (everything which is not
+ # "atarist" or "atariste" at least should have a processor
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+ # to the lowercase version "mint" (or "freemint"). Finally
+ # the system name "TOS" denotes a system which is actually not
+ # MiNT. But MiNT is downward compatible to TOS, so this should
+ # be no problem.
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
+ powerpc:machten:*:*)
+ echo powerpc-apple-machten${UNAME_RELEASE}
+ exit ;;
+ RISC*:Mach:*:*)
+ echo mips-dec-mach_bsd4.3
+ exit ;;
+ RISC*:ULTRIX:*:*)
+ echo mips-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ VAX*:ULTRIX*:*:*)
+ echo vax-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
+ echo clipper-intergraph-clix${UNAME_RELEASE}
+ exit ;;
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h> /* for printf() prototype */
+ int main (int argc, char *argv[]) {
+#else
+ int main (argc, argv) int argc; char *argv[]; {
+#endif
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+ SYSTEM_NAME=`$dummy $dummyarg` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo mips-mips-riscos${UNAME_RELEASE}
+ exit ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:Power_UNIX:*:*)
+ echo powerpc-harris-powerunix
+ exit ;;
+ m88k:CX/UX:7*:*)
+ echo m88k-harris-cxux7
+ exit ;;
+ m88k:*:4*:R4*)
+ echo m88k-motorola-sysv4
+ exit ;;
+ m88k:*:3*:R3*)
+ echo m88k-motorola-sysv3
+ exit ;;
+ AViiON:dgux:*:*)
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ then
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
+ then
+ echo m88k-dg-dgux${UNAME_RELEASE}
+ else
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ fi
+ else
+ echo i586-dg-dgux${UNAME_RELEASE}
+ fi
+ exit ;;
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+ echo m88k-dolphin-sysv3
+ exit ;;
+ M88*:*:R3*:*)
+ # Delta 88k system running SVR3
+ echo m88k-motorola-sysv3
+ exit ;;
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ echo m88k-tektronix-sysv3
+ exit ;;
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ echo m68k-tektronix-bsd
+ exit ;;
+ *:IRIX*:*:*)
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ exit ;;
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ i*86:AIX:*:*)
+ echo i386-ibm-aix
+ exit ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:2:3)
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <sys/systemcfg.h>
+
+ main()
+ {
+ if (!__power_pc())
+ exit(1);
+ puts("powerpc-ibm-aix3.2.5");
+ exit(0);
+ }
+EOF
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+ then
+ echo "$SYSTEM_NAME"
+ else
+ echo rs6000-ibm-aix3.2.5
+ fi
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ echo rs6000-ibm-aix3.2.4
+ else
+ echo rs6000-ibm-aix3.2
+ fi
+ exit ;;
+ *:AIX:*:[4567])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ IBM_ARCH=rs6000
+ else
+ IBM_ARCH=powerpc
+ fi
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:*:*)
+ echo rs6000-ibm-aix
+ exit ;;
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ echo romp-ibm-bsd4.4
+ exit ;;
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+ exit ;; # report: romp-ibm BSD 4.3
+ *:BOSX:*:*)
+ echo rs6000-bull-bosx
+ exit ;;
+ DPX/2?00:B.O.S.:*:*)
+ echo m68k-bull-sysv3
+ exit ;;
+ 9000/[34]??:4.3bsd:1.*:*)
+ echo m68k-hp-bsd
+ exit ;;
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ echo m68k-hp-bsd4.4
+ exit ;;
+ 9000/[34678]??:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ case "${UNAME_MACHINE}" in
+ 9000/31? ) HP_ARCH=m68000 ;;
+ 9000/[34]?? ) HP_ARCH=m68k ;;
+ 9000/[678][0-9][0-9])
+ if [ -x /usr/bin/getconf ]; then
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ esac ;;
+ esac
+ fi
+ if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
+EOF
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
+ fi ;;
+ esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ eval $set_cc_for_build
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
+ # generating 64-bit code. GNU and HP use different nomenclature:
+ #
+ # $ CC_FOR_BUILD=cc ./config.guess
+ # => hppa2.0w-hp-hpux11.23
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+ # => hppa64-hp-hpux11.23
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ grep -q __LP64__
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ exit ;;
+ ia64:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ echo ia64-hp-hpux${HPUX_REV}
+ exit ;;
+ 3050*:HI-UX:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <unistd.h>
+ int
+ main ()
+ {
+ long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
+ if (CPU_IS_PA_RISC (cpu))
+ {
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
+ }
+ }
+ else if (CPU_IS_HP_MC68K (cpu))
+ puts ("m68k-hitachi-hiuxwe2");
+ else puts ("unknown-hitachi-hiuxwe2");
+ exit (0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo unknown-hitachi-hiuxwe2
+ exit ;;
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ echo hppa1.1-hp-bsd
+ exit ;;
+ 9000/8??:4.3bsd:*:*)
+ echo hppa1.0-hp-bsd
+ exit ;;
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ echo hppa1.0-hp-mpeix
+ exit ;;
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ echo hppa1.1-hp-osf
+ exit ;;
+ hp8??:OSF1:*:*)
+ echo hppa1.0-hp-osf
+ exit ;;
+ i*86:OSF1:*:*)
+ if [ -x /usr/sbin/sysversion ] ; then
+ echo ${UNAME_MACHINE}-unknown-osf1mk
+ else
+ echo ${UNAME_MACHINE}-unknown-osf1
+ fi
+ exit ;;
+ parisc*:Lites*:*:*)
+ echo hppa1.1-hp-lites
+ exit ;;
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ echo c1-convex-bsd
+ exit ;;
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ echo c34-convex-bsd
+ exit ;;
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ echo c38-convex-bsd
+ exit ;;
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ echo c4-convex-bsd
+ exit ;;
+ CRAY*Y-MP:*:*:*)
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*[A-Z]90:*:*:*)
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*TS:*:*:*)
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*SV1:*:*:*)
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ exit ;;
+ sparc*:BSD/OS:*:*)
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:BSD/OS:*:*)
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:FreeBSD:*:*)
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ case ${UNAME_PROCESSOR} in
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
+ exit ;;
+ i*:CYGWIN*:*)
+ echo ${UNAME_MACHINE}-pc-cygwin
+ exit ;;
+ *:MINGW64*:*)
+ echo ${UNAME_MACHINE}-pc-mingw64
+ exit ;;
+ *:MINGW*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit ;;
+ *:MSYS*:*)
+ echo ${UNAME_MACHINE}-pc-msys
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit ;;
+ *:Interix*:*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ authenticamd | genuineintel | EM64T)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit ;;
+ 8664:Windows_NT:*)
+ echo x86_64-pc-mks
+ exit ;;
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ # UNAME_MACHINE based on the output of uname instead of i386?
+ echo i586-pc-interix
+ exit ;;
+ i*:UWIN*:*)
+ echo ${UNAME_MACHINE}-pc-uwin
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
+ p*:CYGWIN*:*)
+ echo powerpcle-unknown-cygwin
+ exit ;;
+ prep*:SunOS:5.*:*)
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ *:GNU:*:*)
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
+ exit ;;
+ i*86:Minix:*:*)
+ echo ${UNAME_MACHINE}-pc-minix
+ exit ;;
+ aarch64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ aarch64_be:Linux:*:*)
+ UNAME_MACHINE=aarch64_be
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep -q ld.so.1
+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ arc:Linux:*:* | arceb:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ arm*:Linux:*:*)
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ else
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
+ fi
+ fi
+ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ cris:Linux:*:*)
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
+ exit ;;
+ crisv32:Linux:*:*)
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
+ exit ;;
+ frv:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ hexagon:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ i*86:Linux:*:*)
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
+ exit ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ mips:Linux:*:* | mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef ${UNAME_MACHINE}
+ #undef ${UNAME_MACHINE}el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=${UNAME_MACHINE}el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=${UNAME_MACHINE}
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
+ ;;
+ openrisc*:Linux:*:*)
+ echo or1k-unknown-linux-${LIBC}
+ exit ;;
+ or32:Linux:*:* | or1k*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ padre:Linux:*:*)
+ echo sparc-unknown-linux-${LIBC}
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-${LIBC}
+ exit ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
+ *) echo hppa-unknown-linux-${LIBC} ;;
+ esac
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-${LIBC}
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-${LIBC}
+ exit ;;
+ ppc64le:Linux:*:*)
+ echo powerpc64le-unknown-linux-${LIBC}
+ exit ;;
+ ppcle:Linux:*:*)
+ echo powerpcle-unknown-linux-${LIBC}
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ tile*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
+ exit ;;
+ x86_64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
+ echo i386-sequent-sysv4
+ exit ;;
+ i*86:UNIX_SV:4.2MP:2.*)
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
+ # I just have to hope. -- rms.
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ exit ;;
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ else
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ fi
+ exit ;;
+ i*86:*:5:[678]*)
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ exit ;;
+ i*86:*:3.2:*)
+ if test -f /usr/options/cb.name; then
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ && UNAME_MACHINE=i686
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ && UNAME_MACHINE=i686
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-pc-sysv32
+ fi
+ exit ;;
+ pc:*:*:*)
+ # Left here for compatibility:
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i586.
+ # Note: whatever this is, it MUST be the same as what config.sub
+ # prints for the "djgpp" host, or else GDB configury will decide that
+ # this is a cross-build.
+ echo i586-pc-msdosdjgpp
+ exit ;;
+ Intel:Mach:3*:*)
+ echo i386-pc-mach3
+ exit ;;
+ paragon:*:*:*)
+ echo i860-intel-osf1
+ exit ;;
+ i860:*:4.*:*) # i860-SVR4
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ else # Add other i860-SVR4 vendors below as they are discovered.
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+ fi
+ exit ;;
+ mini*:CTIX:SYS*5:*)
+ # "miniframe"
+ echo m68010-convergent-sysv
+ exit ;;
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit ;;
+ M68*:*:R3V[5678]*:*)
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+ OS_REL=''
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
+ OS_REL='.3'
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ mc68030:UNIX_System_V:4.*:*)
+ echo m68k-atari-sysv4
+ exit ;;
+ TSUNAMI:LynxOS:2.*:*)
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ rs6000:LynxOS:2.*:*)
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ SM[BE]S:UNIX_SV:*:*)
+ echo mips-dde-sysv${UNAME_RELEASE}
+ exit ;;
+ RM*:ReliantUNIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ RM*:SINIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ *:SINIX-*:*:*)
+ if uname -p 2>/dev/null >/dev/null ; then
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ echo ${UNAME_MACHINE}-sni-sysv4
+ else
+ echo ns32k-sni-sysv
+ fi
+ exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says <Richard.M.Bartel at ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <hewes at openmarket.com>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit ;;
+ *:*:*:FTX*)
+ # From seanf at swdc.stratus.com.
+ echo i860-stratus-sysv4
+ exit ;;
+ i*86:VOS:*:*)
+ # From Paul.Green at stratus.com.
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
+ *:VOS:*:*)
+ # From Paul.Green at stratus.com.
+ echo hppa1.1-stratus-vos
+ exit ;;
+ mc68*:A/UX:*:*)
+ echo m68k-apple-aux${UNAME_RELEASE}
+ exit ;;
+ news*:NEWS-OS:6*:*)
+ echo mips-sony-newsos6
+ exit ;;
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ if [ -d /usr/nec ]; then
+ echo mips-nec-sysv${UNAME_RELEASE}
+ else
+ echo mips-unknown-sysv${UNAME_RELEASE}
+ fi
+ exit ;;
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+ echo powerpc-be-beos
+ exit ;;
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+ echo powerpc-apple-beos
+ exit ;;
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+ echo i586-pc-beos
+ exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
+ x86_64:Haiku:*:*)
+ echo x86_64-unknown-haiku
+ exit ;;
+ SX-4:SUPER-UX:*:*)
+ echo sx4-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-5:SUPER-UX:*:*)
+ echo sx5-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Darwin:*:*)
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ eval $set_cc_for_build
+ if test "$UNAME_PROCESSOR" = unknown ; then
+ UNAME_PROCESSOR=powerpc
+ fi
+ if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ case $UNAME_PROCESSOR in
+ i386) UNAME_PROCESSOR=x86_64 ;;
+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
+ esac
+ fi
+ fi
+ elif test "$UNAME_PROCESSOR" = i386 ; then
+ # Avoid executing cc on OS X 10.9, as it ships with a stub
+ # that puts up a graphical alert prompting to install
+ # developer tools. Any system running Mac OS X 10.7 or
+ # later (Darwin 11 and later) is required to have a 64-bit
+ # processor. This is not true of the ARM version of Darwin
+ # that Apple uses in portable devices.
+ UNAME_PROCESSOR=x86_64
+ fi
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ exit ;;
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
+ UNAME_MACHINE=pc
+ fi
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit ;;
+ *:QNX:*:4*)
+ echo i386-pc-qnx
+ exit ;;
+ NEO-?:NONSTOP_KERNEL:*:*)
+ echo neo-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSE-*:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ *:NonStop-UX:*:*)
+ echo mips-compaq-nonstopux
+ exit ;;
+ BS2000:POSIX*:*:*)
+ echo bs2000-siemens-sysv
+ exit ;;
+ DS/*:UNIX_System_V:*:*)
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ exit ;;
+ *:Plan9:*:*)
+ # "uname -m" is not consistent, so use $cputype instead. 386
+ # is converted to i386 for consistency with other x86
+ # operating systems.
+ if test "$cputype" = "386"; then
+ UNAME_MACHINE=i386
+ else
+ UNAME_MACHINE="$cputype"
+ fi
+ echo ${UNAME_MACHINE}-unknown-plan9
+ exit ;;
+ *:TOPS-10:*:*)
+ echo pdp10-unknown-tops10
+ exit ;;
+ *:TENEX:*:*)
+ echo pdp10-unknown-tenex
+ exit ;;
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ echo pdp10-dec-tops20
+ exit ;;
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ echo pdp10-xkl-tops20
+ exit ;;
+ *:TOPS-20:*:*)
+ echo pdp10-unknown-tops20
+ exit ;;
+ *:ITS:*:*)
+ echo pdp10-unknown-its
+ exit ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms ; exit ;;
+ I*) echo ia64-dec-vms ; exit ;;
+ V*) echo vax-dec-vms ; exit ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit ;;
+ i*86:skyos:*:*)
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ exit ;;
+ i*86:rdos:*:*)
+ echo ${UNAME_MACHINE}-pc-rdos
+ exit ;;
+ i*86:AROS:*:*)
+ echo ${UNAME_MACHINE}-pc-aros
+ exit ;;
+ x86_64:VMkernel:*:*)
+ echo ${UNAME_MACHINE}-unknown-esx
+ exit ;;
+esac
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+and
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches at gnu.org> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo = `(hostinfo) 2>/dev/null`
+/bin/universe = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/build-aux/config.sub b/build-aux/config.sub
new file mode 100644
index 0000000..d654d03
--- /dev/null
+++ b/build-aux/config.sub
@@ -0,0 +1,1794 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright 1992-2014 Free Software Foundation, Inc.
+
+timestamp='2014-05-01'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that
+# program. This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
+
+
+# Please send patches with a ChangeLog entry to config-patches at gnu.org.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support. The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+ $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches at gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright 1992-2014 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help"
+ exit 1 ;;
+
+ *local*)
+ # First pass through any local machine types.
+ echo $1
+ exit ;;
+
+ * )
+ break ;;
+ esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+ exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+ exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+ knetbsd*-gnu* | netbsd*-gnu* | \
+ kopensolaris*-gnu* | \
+ storm-chaos* | os2-emx* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
+ android-linux)
+ os=-linux-android
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
+ ;;
+ *)
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+ if [ $basic_machine != $1 ]
+ then os=`echo $1 | sed 's/.*-/-/'`
+ else os=; fi
+ ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work. We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+ -sun*os*)
+ # Prevent following clause from handling this invalid input.
+ ;;
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ -apple | -axis | -knuth | -cray | -microblaze*)
+ os=
+ basic_machine=$1
+ ;;
+ -bluegene*)
+ os=-cnk
+ ;;
+ -sim | -cisco | -oki | -wec | -winbond)
+ os=
+ basic_machine=$1
+ ;;
+ -scout)
+ ;;
+ -wrs)
+ os=-vxworks
+ basic_machine=$1
+ ;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
+ -hiux*)
+ os=-hiuxwe2
+ ;;
+ -sco6)
+ os=-sco5v6
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5)
+ os=-sco3.2v5
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco4)
+ os=-sco3.2v4
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2.[4-9]*)
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5v6*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco*)
+ os=-sco3.2v2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -udk*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -isc)
+ os=-isc2.2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -clix*)
+ basic_machine=clipper-intergraph
+ ;;
+ -isc*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -lynx*178)
+ os=-lynxos178
+ ;;
+ -lynx*5)
+ os=-lynxos5
+ ;;
+ -lynx*)
+ os=-lynxos
+ ;;
+ -ptx*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ ;;
+ -windowsnt*)
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ ;;
+ -psos*)
+ os=-psos
+ ;;
+ -mint | -mint[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+ # Recognize the basic CPU types without company name.
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+ | aarch64 | aarch64_be \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arceb \
+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
+ | avr | avr32 \
+ | be32 | be64 \
+ | bfin \
+ | c4x | c8051 | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | epiphany \
+ | fido | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | hexagon \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | k1om \
+ | le32 | le64 \
+ | lm32 \
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64octeon | mips64octeonel \
+ | mips64orion | mips64orionel \
+ | mips64r5900 | mips64r5900el \
+ | mips64vr | mips64vrel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mips64vr5900 | mips64vr5900el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa32r6 | mipsisa32r6el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64r6 | mipsisa64r6el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipsr5900 | mipsr5900el \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | moxie \
+ | mt \
+ | msp430 \
+ | nds32 | nds32le | nds32be \
+ | nios | nios2 | nios2eb | nios2el \
+ | ns16k | ns32k \
+ | open8 | or1k | or1knd | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
+ | pyramid \
+ | rl78 | rx \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | spu \
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
+ | ubicom32 \
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
+ | we32k \
+ | x86 | xc16x | xstormy16 | xtensa \
+ | z8k | z80)
+ basic_machine=$basic_machine-unknown
+ ;;
+ c54x)
+ basic_machine=tic54x-unknown
+ ;;
+ c55x)
+ basic_machine=tic55x-unknown
+ ;;
+ c6x)
+ basic_machine=tic6x-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+ ms1)
+ basic_machine=mt-unknown
+ ;;
+
+ strongarm | thumb | xscale)
+ basic_machine=arm-unknown
+ ;;
+ xgate)
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ xscaleeb)
+ basic_machine=armeb-unknown
+ ;;
+
+ xscaleel)
+ basic_machine=armel-unknown
+ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and
+ # (2) the word "unknown" tends to confuse beginning users.
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+ | aarch64-* | aarch64_be-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* | avr32-* \
+ | be32-* | be64-* \
+ | bfin-* | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
+ | c8051-* | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | hexagon-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* | iq2000-* \
+ | k1om-* \
+ | le32-* | le64-* \
+ | lm32-* \
+ | m32c-* | m32r-* | m32rle-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
+ | microblaze-* | microblazeel-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64octeon-* | mips64octeonel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64r5900-* | mips64r5900el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mips64vr5900-* | mips64vr5900el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa32r6-* | mipsisa32r6el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64r6-* | mipsisa64r6el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipsr5900-* | mipsr5900el-* \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | mt-* \
+ | msp430-* \
+ | nds32-* | nds32le-* | nds32be-* \
+ | nios-* | nios2-* | nios2eb-* | nios2el-* \
+ | none-* | np1-* | ns16k-* | ns32k-* \
+ | open8-* \
+ | or1k*-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
+ | pyramid-* \
+ | rl78-* | romp-* | rs6000-* | rx-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
+ | tahoe-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tile*-* \
+ | tron-* \
+ | ubicom32-* \
+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
+ | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
+ | xstormy16-* | xtensa*-* \
+ | ymp-* \
+ | z8k-* | z80-*)
+ ;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+ alliant | fx80)
+ basic_machine=fx80-alliant
+ ;;
+ altos | altos3068)
+ basic_machine=m68k-altos
+ ;;
+ am29k)
+ basic_machine=a29k-none
+ os=-bsd
+ ;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ amdahl)
+ basic_machine=580-amdahl
+ os=-sysv
+ ;;
+ amiga | amiga-*)
+ basic_machine=m68k-unknown
+ ;;
+ amigaos | amigados)
+ basic_machine=m68k-unknown
+ os=-amigaos
+ ;;
+ amigaunix | amix)
+ basic_machine=m68k-unknown
+ os=-sysv4
+ ;;
+ apollo68)
+ basic_machine=m68k-apollo
+ os=-sysv
+ ;;
+ apollo68bsd)
+ basic_machine=m68k-apollo
+ os=-bsd
+ ;;
+ aros)
+ basic_machine=i386-pc
+ os=-aros
+ ;;
+ aux)
+ basic_machine=m68k-apple
+ os=-aux
+ ;;
+ balance)
+ basic_machine=ns32k-sequent
+ os=-dynix
+ ;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ bluegene*)
+ basic_machine=powerpc-ibm
+ os=-cnk
+ ;;
+ c54x-*)
+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c55x-*)
+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c6x-*)
+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ cegcc)
+ basic_machine=arm-unknown
+ os=-cegcc
+ ;;
+ convex-c1)
+ basic_machine=c1-convex
+ os=-bsd
+ ;;
+ convex-c2)
+ basic_machine=c2-convex
+ os=-bsd
+ ;;
+ convex-c32)
+ basic_machine=c32-convex
+ os=-bsd
+ ;;
+ convex-c34)
+ basic_machine=c34-convex
+ os=-bsd
+ ;;
+ convex-c38)
+ basic_machine=c38-convex
+ os=-bsd
+ ;;
+ cray | j90)
+ basic_machine=j90-cray
+ os=-unicos
+ ;;
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
+ ;;
+ cr16 | cr16-*)
+ basic_machine=cr16-unknown
+ os=-elf
+ ;;
+ crds | unos)
+ basic_machine=m68k-crds
+ ;;
+ crisv32 | crisv32-* | etraxfs*)
+ basic_machine=crisv32-axis
+ ;;
+ cris | cris-* | etrax*)
+ basic_machine=cris-axis
+ ;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
+ da30 | da30-*)
+ basic_machine=m68k-da30
+ ;;
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ basic_machine=mips-dec
+ ;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
+ delta | 3300 | motorola-3300 | motorola-delta \
+ | 3300-motorola | delta-motorola)
+ basic_machine=m68k-motorola
+ ;;
+ delta88)
+ basic_machine=m88k-motorola
+ os=-sysv3
+ ;;
+ dicos)
+ basic_machine=i686-pc
+ os=-dicos
+ ;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
+ dpx20 | dpx20-*)
+ basic_machine=rs6000-bull
+ os=-bosx
+ ;;
+ dpx2* | dpx2*-bull)
+ basic_machine=m68k-bull
+ os=-sysv3
+ ;;
+ ebmon29k)
+ basic_machine=a29k-amd
+ os=-ebmon
+ ;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
+ encore | umax | mmax)
+ basic_machine=ns32k-encore
+ ;;
+ es1800 | OSE68k | ose68k | ose | OSE)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
+ genix)
+ basic_machine=ns32k-ns
+ ;;
+ gmicro)
+ basic_machine=tron-gmicro
+ os=-sysv
+ ;;
+ go32)
+ basic_machine=i386-pc
+ os=-go32
+ ;;
+ h3050r* | hiux*)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ h8300hms)
+ basic_machine=h8300-hitachi
+ os=-hms
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
+ ;;
+ h8500hms)
+ basic_machine=h8500-hitachi
+ os=-hms
+ ;;
+ harris)
+ basic_machine=m88k-harris
+ os=-sysv3
+ ;;
+ hp300-*)
+ basic_machine=m68k-hp
+ ;;
+ hp300bsd)
+ basic_machine=m68k-hp
+ os=-bsd
+ ;;
+ hp300hpux)
+ basic_machine=m68k-hp
+ os=-hpux
+ ;;
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k2[0-9][0-9] | hp9k31[0-9])
+ basic_machine=m68000-hp
+ ;;
+ hp9k3[2-9][0-9])
+ basic_machine=m68k-hp
+ ;;
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k78[0-9] | hp78[0-9])
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][13679] | hp8[0-9][13679])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hppa-next)
+ os=-nextstep3
+ ;;
+ hppaosf)
+ basic_machine=hppa1.1-hp
+ os=-osf
+ ;;
+ hppro)
+ basic_machine=hppa1.1-hp
+ os=-proelf
+ ;;
+ i370-ibm* | ibm*)
+ basic_machine=i370-ibm
+ ;;
+ i*86v32)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv32
+ ;;
+ i*86v4*)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv4
+ ;;
+ i*86v)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv
+ ;;
+ i*86sol2)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-solaris2
+ ;;
+ i386mach)
+ basic_machine=i386-mach
+ os=-mach
+ ;;
+ i386-vsta | vsta)
+ basic_machine=i386-unknown
+ os=-vsta
+ ;;
+ iris | iris4d)
+ basic_machine=mips-sgi
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
+ ;;
+ isi68 | isi)
+ basic_machine=m68k-isi
+ os=-sysv
+ ;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ m88k-omron*)
+ basic_machine=m88k-omron
+ ;;
+ magnum | m3230)
+ basic_machine=mips-mips
+ os=-sysv
+ ;;
+ merlin)
+ basic_machine=ns32k-utek
+ os=-sysv
+ ;;
+ microblaze*)
+ basic_machine=microblaze-xilinx
+ ;;
+ mingw64)
+ basic_machine=x86_64-pc
+ os=-mingw64
+ ;;
+ mingw32)
+ basic_machine=i686-pc
+ os=-mingw32
+ ;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
+ miniframe)
+ basic_machine=m68000-convergent
+ ;;
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+ mips3*-*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ ;;
+ mips3*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ ;;
+ monitor)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ msdos)
+ basic_machine=i386-pc
+ os=-msdos
+ ;;
+ ms1-*)
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+ ;;
+ msys)
+ basic_machine=i686-pc
+ os=-msys
+ ;;
+ mvs)
+ basic_machine=i370-ibm
+ os=-mvs
+ ;;
+ nacl)
+ basic_machine=le32-unknown
+ os=-nacl
+ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+ ;;
+ netbsd386)
+ basic_machine=i386-unknown
+ os=-netbsd
+ ;;
+ netwinder)
+ basic_machine=armv4l-rebel
+ os=-linux
+ ;;
+ news | news700 | news800 | news900)
+ basic_machine=m68k-sony
+ os=-newsos
+ ;;
+ news1000)
+ basic_machine=m68030-sony
+ os=-newsos
+ ;;
+ news-3600 | risc-news)
+ basic_machine=mips-sony
+ os=-newsos
+ ;;
+ necv70)
+ basic_machine=v70-nec
+ os=-sysv
+ ;;
+ next | m*-next )
+ basic_machine=m68k-next
+ case $os in
+ -nextstep* )
+ ;;
+ -ns2*)
+ os=-nextstep2
+ ;;
+ *)
+ os=-nextstep3
+ ;;
+ esac
+ ;;
+ nh3000)
+ basic_machine=m68k-harris
+ os=-cxux
+ ;;
+ nh[45]000)
+ basic_machine=m88k-harris
+ os=-cxux
+ ;;
+ nindy960)
+ basic_machine=i960-intel
+ os=-nindy
+ ;;
+ mon960)
+ basic_machine=i960-intel
+ os=-mon960
+ ;;
+ nonstopux)
+ basic_machine=mips-compaq
+ os=-nonstopux
+ ;;
+ np1)
+ basic_machine=np1-gould
+ ;;
+ neo-tandem)
+ basic_machine=neo-tandem
+ ;;
+ nse-tandem)
+ basic_machine=nse-tandem
+ ;;
+ nsr-tandem)
+ basic_machine=nsr-tandem
+ ;;
+ op50n-* | op60c-*)
+ basic_machine=hppa1.1-oki
+ os=-proelf
+ ;;
+ openrisc | openrisc-*)
+ basic_machine=or32-unknown
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
+ os68k)
+ basic_machine=m68k-none
+ os=-os68k
+ ;;
+ pa-hitachi)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ paragon)
+ basic_machine=i860-intel
+ os=-osf
+ ;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ pbd)
+ basic_machine=sparc-tti
+ ;;
+ pbb)
+ basic_machine=m68k-tti
+ ;;
+ pc532 | pc532-*)
+ basic_machine=ns32k-pc532
+ ;;
+ pc98)
+ basic_machine=i386-pc
+ ;;
+ pc98-*)
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
+ basic_machine=i586-pc
+ ;;
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ basic_machine=i686-pc
+ ;;
+ pentiumii | pentium2 | pentiumiii | pentium3)
+ basic_machine=i686-pc
+ ;;
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pn)
+ basic_machine=pn-gould
+ ;;
+ power) basic_machine=power-ibm
+ ;;
+ ppc | ppcbe) basic_machine=powerpc-unknown
+ ;;
+ ppc-* | ppcbe-*)
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppcle | powerpclittle | ppc-le | powerpc-little)
+ basic_machine=powerpcle-unknown
+ ;;
+ ppcle-* | powerpclittle-*)
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ps2)
+ basic_machine=i386-ibm
+ ;;
+ pw32)
+ basic_machine=i586-unknown
+ os=-pw32
+ ;;
+ rdos | rdos64)
+ basic_machine=x86_64-pc
+ os=-rdos
+ ;;
+ rdos32)
+ basic_machine=i386-pc
+ os=-rdos
+ ;;
+ rom68k)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ rm[46]00)
+ basic_machine=mips-siemens
+ ;;
+ rtpc | rtpc-*)
+ basic_machine=romp-ibm
+ ;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
+ sequent)
+ basic_machine=i386-sequent
+ ;;
+ sh)
+ basic_machine=sh-hitachi
+ os=-hms
+ ;;
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparclite-wrs | simso-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sps7)
+ basic_machine=m68k-bull
+ os=-sysv2
+ ;;
+ spur)
+ basic_machine=spur-unknown
+ ;;
+ st2000)
+ basic_machine=m68k-tandem
+ ;;
+ stratus)
+ basic_machine=i860-stratus
+ os=-sysv4
+ ;;
+ strongarm-* | thumb-*)
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ sun2)
+ basic_machine=m68000-sun
+ ;;
+ sun2os3)
+ basic_machine=m68000-sun
+ os=-sunos3
+ ;;
+ sun2os4)
+ basic_machine=m68000-sun
+ os=-sunos4
+ ;;
+ sun3os3)
+ basic_machine=m68k-sun
+ os=-sunos3
+ ;;
+ sun3os4)
+ basic_machine=m68k-sun
+ os=-sunos4
+ ;;
+ sun4os3)
+ basic_machine=sparc-sun
+ os=-sunos3
+ ;;
+ sun4os4)
+ basic_machine=sparc-sun
+ os=-sunos4
+ ;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ sun3 | sun3-*)
+ basic_machine=m68k-sun
+ ;;
+ sun4)
+ basic_machine=sparc-sun
+ ;;
+ sun386 | sun386i | roadrunner)
+ basic_machine=i386-sun
+ ;;
+ sv1)
+ basic_machine=sv1-cray
+ os=-unicos
+ ;;
+ symmetry)
+ basic_machine=i386-sequent
+ os=-dynix
+ ;;
+ t3e)
+ basic_machine=alphaev5-cray
+ os=-unicos
+ ;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tile*)
+ basic_machine=$basic_machine-unknown
+ os=-linux-gnu
+ ;;
+ tx39)
+ basic_machine=mipstx39-unknown
+ ;;
+ tx39el)
+ basic_machine=mipstx39el-unknown
+ ;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
+ tower | tower-32)
+ basic_machine=m68k-ncr
+ ;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ ultra3)
+ basic_machine=a29k-nyu
+ os=-sym1
+ ;;
+ v810 | necv810)
+ basic_machine=v810-nec
+ os=-none
+ ;;
+ vaxv)
+ basic_machine=vax-dec
+ os=-sysv
+ ;;
+ vms)
+ basic_machine=vax-dec
+ os=-vms
+ ;;
+ vpp*|vx|vx-*)
+ basic_machine=f301-fujitsu
+ ;;
+ vxworks960)
+ basic_machine=i960-wrs
+ os=-vxworks
+ ;;
+ vxworks68)
+ basic_machine=m68k-wrs
+ os=-vxworks
+ ;;
+ vxworks29k)
+ basic_machine=a29k-wrs
+ os=-vxworks
+ ;;
+ w65*)
+ basic_machine=w65-wdc
+ os=-none
+ ;;
+ w89k-*)
+ basic_machine=hppa1.1-winbond
+ os=-proelf
+ ;;
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
+ ;;
+ xps | xps100)
+ basic_machine=xps100-honeywell
+ ;;
+ xscale-* | xscalee[bl]-*)
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
+ z8k-*-coff)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
+ z80-*-coff)
+ basic_machine=z80-unknown
+ os=-sim
+ ;;
+ none)
+ basic_machine=none-none
+ os=-none
+ ;;
+
+# Here we handle the default manufacturer of certain CPU types. It is in
+# some cases the only manufacturer, in others, it is the most popular.
+ w89k)
+ basic_machine=hppa1.1-winbond
+ ;;
+ op50n)
+ basic_machine=hppa1.1-oki
+ ;;
+ op60c)
+ basic_machine=hppa1.1-oki
+ ;;
+ romp)
+ basic_machine=romp-ibm
+ ;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
+ rs6000)
+ basic_machine=rs6000-ibm
+ ;;
+ vax)
+ basic_machine=vax-dec
+ ;;
+ pdp10)
+ # there are many clones, so DEC is not a safe bet
+ basic_machine=pdp10-unknown
+ ;;
+ pdp11)
+ basic_machine=pdp11-dec
+ ;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
+ basic_machine=sh-unknown
+ ;;
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+ basic_machine=sparc-sun
+ ;;
+ cydra)
+ basic_machine=cydra-cydrome
+ ;;
+ orion)
+ basic_machine=orion-highlevel
+ ;;
+ orion105)
+ basic_machine=clipper-highlevel
+ ;;
+ mac | mpw | mac-mpw)
+ basic_machine=m68k-apple
+ ;;
+ pmac | pmac-mpw)
+ basic_machine=powerpc-apple
+ ;;
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
+ ;;
+ *)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+ *-digital*)
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ ;;
+ *-commodore*)
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ ;;
+ *)
+ ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+ # First match some system type aliases
+ # that might get confused with valid system types.
+ # -solaris* is a basic system type, with this one exception.
+ -auroraux)
+ os=-auroraux
+ ;;
+ -solaris1 | -solaris1.*)
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ ;;
+ -solaris)
+ os=-solaris2
+ ;;
+ -svr4*)
+ os=-sysv4
+ ;;
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;
+ # First accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST END IN A *, to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
+ | -sym* | -kopensolaris* | -plan9* \
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ | -aos* | -aros* \
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+ | -bitrig* | -openbsd* | -solidbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* | -cegcc* \
+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
+ | -linux-newlib* | -linux-musl* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ ;;
+ *)
+ os=-nto$os
+ ;;
+ esac
+ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ ;;
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ ;;
+ -mac*)
+ os=`echo $os | sed -e 's|mac|macos|'`
+ ;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
+ -linux*)
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ ;;
+ -sunos5*)
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ ;;
+ -sunos6*)
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ ;;
+ -opened*)
+ os=-openedition
+ ;;
+ -os400*)
+ os=-os400
+ ;;
+ -wince*)
+ os=-wince
+ ;;
+ -osfrose*)
+ os=-osfrose
+ ;;
+ -osf*)
+ os=-osf
+ ;;
+ -utek*)
+ os=-bsd
+ ;;
+ -dynix*)
+ os=-bsd
+ ;;
+ -acis*)
+ os=-aos
+ ;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -syllable*)
+ os=-syllable
+ ;;
+ -386bsd)
+ os=-bsd
+ ;;
+ -ctix* | -uts*)
+ os=-sysv
+ ;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
+ -ns2 )
+ os=-nextstep2
+ ;;
+ -nsk*)
+ os=-nsk
+ ;;
+ # Preserve the version number of sinix5.
+ -sinix5.*)
+ os=`echo $os | sed -e 's|sinix|sysv|'`
+ ;;
+ -sinix*)
+ os=-sysv4
+ ;;
+ -tpf*)
+ os=-tpf
+ ;;
+ -triton*)
+ os=-sysv3
+ ;;
+ -oss*)
+ os=-sysv3
+ ;;
+ -svr4)
+ os=-sysv4
+ ;;
+ -svr3)
+ os=-sysv3
+ ;;
+ -sysvr4)
+ os=-sysv4
+ ;;
+ # This must come after -sysvr4.
+ -sysv*)
+ ;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
+ -xenix)
+ os=-xenix
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -zvmoe)
+ os=-zvmoe
+ ;;
+ -dicos*)
+ os=-dicos
+ ;;
+ -nacl*)
+ ;;
+ -none)
+ ;;
+ *)
+ # Get rid of the `-' at the beginning of $os.
+ os=`echo $os | sed 's/[^-]*-//'`
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system. Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+ score-*)
+ os=-elf
+ ;;
+ spu-*)
+ os=-elf
+ ;;
+ *-acorn)
+ os=-riscix1.2
+ ;;
+ arm*-rebel)
+ os=-linux
+ ;;
+ arm*-semi)
+ os=-aout
+ ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ c8051-*)
+ os=-elf
+ ;;
+ hexagon-*)
+ os=-elf
+ ;;
+ tic54x-*)
+ os=-coff
+ ;;
+ tic55x-*)
+ os=-coff
+ ;;
+ tic6x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
+ pdp10-*)
+ os=-tops20
+ ;;
+ pdp11-*)
+ os=-none
+ ;;
+ *-dec | vax-*)
+ os=-ultrix4.2
+ ;;
+ m68*-apollo)
+ os=-domain
+ ;;
+ i386-sun)
+ os=-sunos4.0.2
+ ;;
+ m68000-sun)
+ os=-sunos3
+ ;;
+ m68*-cisco)
+ os=-aout
+ ;;
+ mep-*)
+ os=-elf
+ ;;
+ mips*-cisco)
+ os=-elf
+ ;;
+ mips*-*)
+ os=-elf
+ ;;
+ or32-*)
+ os=-coff
+ ;;
+ *-tti) # must be before sparc entry or we get the wrong os.
+ os=-sysv3
+ ;;
+ sparc-* | *-sun)
+ os=-sunos4.1.1
+ ;;
+ *-be)
+ os=-beos
+ ;;
+ *-haiku)
+ os=-haiku
+ ;;
+ *-ibm)
+ os=-aix
+ ;;
+ *-knuth)
+ os=-mmixware
+ ;;
+ *-wec)
+ os=-proelf
+ ;;
+ *-winbond)
+ os=-proelf
+ ;;
+ *-oki)
+ os=-proelf
+ ;;
+ *-hp)
+ os=-hpux
+ ;;
+ *-hitachi)
+ os=-hiux
+ ;;
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ os=-sysv
+ ;;
+ *-cbm)
+ os=-amigaos
+ ;;
+ *-dg)
+ os=-dgux
+ ;;
+ *-dolphin)
+ os=-sysv3
+ ;;
+ m68k-ccur)
+ os=-rtu
+ ;;
+ m88k-omron*)
+ os=-luna
+ ;;
+ *-next )
+ os=-nextstep
+ ;;
+ *-sequent)
+ os=-ptx
+ ;;
+ *-crds)
+ os=-unos
+ ;;
+ *-ns)
+ os=-genix
+ ;;
+ i370-*)
+ os=-mvs
+ ;;
+ *-next)
+ os=-nextstep3
+ ;;
+ *-gould)
+ os=-sysv
+ ;;
+ *-highlevel)
+ os=-bsd
+ ;;
+ *-encore)
+ os=-bsd
+ ;;
+ *-sgi)
+ os=-irix
+ ;;
+ *-siemens)
+ os=-sysv4
+ ;;
+ *-masscomp)
+ os=-rtu
+ ;;
+ f30[01]-fujitsu | f700-fujitsu)
+ os=-uxpv
+ ;;
+ *-rom68k)
+ os=-coff
+ ;;
+ *-*bug)
+ os=-coff
+ ;;
+ *-apple)
+ os=-macos
+ ;;
+ *-atari*)
+ os=-mint
+ ;;
+ *)
+ os=-none
+ ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer. We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+ *-unknown)
+ case $os in
+ -riscix*)
+ vendor=acorn
+ ;;
+ -sunos*)
+ vendor=sun
+ ;;
+ -cnk*|-aix*)
+ vendor=ibm
+ ;;
+ -beos*)
+ vendor=be
+ ;;
+ -hpux*)
+ vendor=hp
+ ;;
+ -mpeix*)
+ vendor=hp
+ ;;
+ -hiux*)
+ vendor=hitachi
+ ;;
+ -unos*)
+ vendor=crds
+ ;;
+ -dgux*)
+ vendor=dg
+ ;;
+ -luna*)
+ vendor=omron
+ ;;
+ -genix*)
+ vendor=ns
+ ;;
+ -mvs* | -opened*)
+ vendor=ibm
+ ;;
+ -os400*)
+ vendor=ibm
+ ;;
+ -ptx*)
+ vendor=sequent
+ ;;
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
+ vendor=wrs
+ ;;
+ -aux*)
+ vendor=apple
+ ;;
+ -hms*)
+ vendor=hitachi
+ ;;
+ -mpw* | -macos*)
+ vendor=apple
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
+ ;;
+ esac
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ ;;
+esac
+
+echo $basic_machine$os
+exit
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/build-aux/install-sh b/build-aux/install-sh
new file mode 100755
index 0000000..a9244eb
--- /dev/null
+++ b/build-aux/install-sh
@@ -0,0 +1,527 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2011-01-19.21; # UTC
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=" "" $nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=${DOITPROG-}
+if test -z "$doit"; then
+ doit_exec=exec
+else
+ doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+chgrpprog=${CHGRPPROG-chgrp}
+chmodprog=${CHMODPROG-chmod}
+chownprog=${CHOWNPROG-chown}
+cmpprog=${CMPPROG-cmp}
+cpprog=${CPPROG-cp}
+mkdirprog=${MKDIRPROG-mkdir}
+mvprog=${MVPROG-mv}
+rmprog=${RMPROG-rm}
+stripprog=${STRIPPROG-strip}
+
+posix_glob='?'
+initialize_posix_glob='
+ test "$posix_glob" != "?" || {
+ if (set -f) 2>/dev/null; then
+ posix_glob=
+ else
+ posix_glob=:
+ fi
+ }
+'
+
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chgrpcmd=
+chmodcmd=$chmodprog
+chowncmd=
+mvcmd=$mvprog
+rmcmd="$rmprog -f"
+stripcmd=
+
+src=
+dst=
+dir_arg=
+dst_arg=
+
+copy_on_change=false
+no_target_directory=
+
+usage="\
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+ or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+ --help display this help and exit.
+ --version display version info and exit.
+
+ -c (ignored)
+ -C install only if different (preserve the last data modification time)
+ -d create directories instead of installing files.
+ -g GROUP $chgrpprog installed files to GROUP.
+ -m MODE $chmodprog installed files to MODE.
+ -o USER $chownprog installed files to USER.
+ -s $stripprog installed files.
+ -t DIRECTORY install into DIRECTORY.
+ -T report an error if DSTFILE is a directory.
+
+Environment variables override the default commands:
+ CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
+ RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+ case $1 in
+ -c) ;;
+
+ -C) copy_on_change=true;;
+
+ -d) dir_arg=true;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift;;
+
+ --help) echo "$usage"; exit $?;;
+
+ -m) mode=$2
+ case $mode in
+ *' '* | *' '* | *'
+'* | *'*'* | *'?'* | *'['*)
+ echo "$0: invalid mode: $mode" >&2
+ exit 1;;
+ esac
+ shift;;
+
+ -o) chowncmd="$chownprog $2"
+ shift;;
+
+ -s) stripcmd=$stripprog;;
+
+ -t) dst_arg=$2
+ # Protect names problematic for `test' and other utilities.
+ case $dst_arg in
+ -* | [=\(\)!]) dst_arg=./$dst_arg;;
+ esac
+ shift;;
+
+ -T) no_target_directory=true;;
+
+ --version) echo "$0 $scriptversion"; exit $?;;
+
+ --) shift
+ break;;
+
+ -*) echo "$0: invalid option: $1" >&2
+ exit 1;;
+
+ *) break;;
+ esac
+ shift
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
+ # When -d is used, all remaining arguments are directories to create.
+ # When -t is used, the destination is already specified.
+ # Otherwise, the last argument is the destination. Remove it from $@.
+ for arg
+ do
+ if test -n "$dst_arg"; then
+ # $@ is not empty: it contains at least $arg.
+ set fnord "$@" "$dst_arg"
+ shift # fnord
+ fi
+ shift # arg
+ dst_arg=$arg
+ # Protect names problematic for `test' and other utilities.
+ case $dst_arg in
+ -* | [=\(\)!]) dst_arg=./$dst_arg;;
+ esac
+ done
+fi
+
+if test $# -eq 0; then
+ if test -z "$dir_arg"; then
+ echo "$0: no input file specified." >&2
+ exit 1
+ fi
+ # It's OK to call `install-sh -d' without argument.
+ # This can happen when creating conditional directories.
+ exit 0
+fi
+
+if test -z "$dir_arg"; then
+ do_exit='(exit $ret); exit $ret'
+ trap "ret=129; $do_exit" 1
+ trap "ret=130; $do_exit" 2
+ trap "ret=141; $do_exit" 13
+ trap "ret=143; $do_exit" 15
+
+ # Set umask so as not to create temps with too-generous modes.
+ # However, 'strip' requires both read and write access to temps.
+ case $mode in
+ # Optimize common cases.
+ *644) cp_umask=133;;
+ *755) cp_umask=22;;
+
+ *[0-7])
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw='% 200'
+ fi
+ cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+ *)
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw=,u+rw
+ fi
+ cp_umask=$mode$u_plus_rw;;
+ esac
+fi
+
+for src
+do
+ # Protect names problematic for `test' and other utilities.
+ case $src in
+ -* | [=\(\)!]) src=./$src;;
+ esac
+
+ if test -n "$dir_arg"; then
+ dst=$src
+ dstdir=$dst
+ test -d "$dstdir"
+ dstdir_status=$?
+ else
+
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+ # might cause directories to be created, which would be especially bad
+ # if $src (and thus $dsttmp) contains '*'.
+ if test ! -f "$src" && test ! -d "$src"; then
+ echo "$0: $src does not exist." >&2
+ exit 1
+ fi
+
+ if test -z "$dst_arg"; then
+ echo "$0: no destination specified." >&2
+ exit 1
+ fi
+ dst=$dst_arg
+
+ # If destination is a directory, append the input filename; won't work
+ # if double slashes aren't ignored.
+ if test -d "$dst"; then
+ if test -n "$no_target_directory"; then
+ echo "$0: $dst_arg: Is a directory" >&2
+ exit 1
+ fi
+ dstdir=$dst
+ dst=$dstdir/`basename "$src"`
+ dstdir_status=0
+ else
+ # Prefer dirname, but fall back on a substitute if dirname fails.
+ dstdir=`
+ (dirname "$dst") 2>/dev/null ||
+ expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$dst" : 'X\(//\)[^/]' \| \
+ X"$dst" : 'X\(//\)$' \| \
+ X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+ echo X"$dst" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'
+ `
+
+ test -d "$dstdir"
+ dstdir_status=$?
+ fi
+ fi
+
+ obsolete_mkdir_used=false
+
+ if test $dstdir_status != 0; then
+ case $posix_mkdir in
+ '')
+ # Create intermediate dirs using mode 755 as modified by the umask.
+ # This is like FreeBSD 'install' as of 1997-10-28.
+ umask=`umask`
+ case $stripcmd.$umask in
+ # Optimize common cases.
+ *[2367][2367]) mkdir_umask=$umask;;
+ .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+ *[0-7])
+ mkdir_umask=`expr $umask + 22 \
+ - $umask % 100 % 40 + $umask % 20 \
+ - $umask % 10 % 4 + $umask % 2
+ `;;
+ *) mkdir_umask=$umask,go-w;;
+ esac
+
+ # With -d, create the new directory with the user-specified mode.
+ # Otherwise, rely on $mkdir_umask.
+ if test -n "$dir_arg"; then
+ mkdir_mode=-m$mode
+ else
+ mkdir_mode=
+ fi
+
+ posix_mkdir=false
+ case $umask in
+ *[123567][0-7][0-7])
+ # POSIX mkdir -p sets u+wx bits regardless of umask, which
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+ ;;
+ *)
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+ if (umask $mkdir_umask &&
+ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+ then
+ if test -z "$dir_arg" || {
+ # Check for POSIX incompatibilities with -m.
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+ # other-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 X"$d" = X && continue
+
+ prefix=$prefix$d
+ if test -d "$prefix"; then
+ prefixes=
+ else
+ if $posix_mkdir; then
+ (umask=$mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+ # Don't fail if two instances are running concurrently.
+ test -d "$prefix" || exit 1
+ else
+ case $prefix in
+ *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) qprefix=$prefix;;
+ esac
+ prefixes="$prefixes '$qprefix'"
+ fi
+ fi
+ prefix=$prefix/
+ done
+
+ if test -n "$prefixes"; then
+ # Don't fail if two instances are running concurrently.
+ (umask $mkdir_umask &&
+ eval "\$doit_exec \$mkdirprog $prefixes") ||
+ test -d "$dstdir" || exit 1
+ obsolete_mkdir_used=true
+ fi
+ fi
+ fi
+
+ if test -n "$dir_arg"; then
+ { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+ { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+ else
+
+ # Make a couple of temp file names in the proper directory.
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+ # Trap to clean up those temp files at exit.
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+ # Copy the file name to the temp name.
+ (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+
+ # and set any options; do chmod last to preserve setuid bits.
+ #
+ # If any of these fail, we abort the whole thing. If we want to
+ # ignore errors from any of these, just make sure not to ignore
+ # errors from the above "$doit $cpprog $src $dsttmp" command.
+ #
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
+ { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
+ { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+ # If -C, don't bother to copy if it wouldn't change the file.
+ if $copy_on_change &&
+ old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
+ new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
+
+ eval "$initialize_posix_glob" &&
+ $posix_glob set -f &&
+ set X $old && old=:$2:$4:$5:$6 &&
+ set X $new && new=:$2:$4:$5:$6 &&
+ $posix_glob set +f &&
+
+ test "$old" = "$new" &&
+ $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
+ then
+ rm -f "$dsttmp"
+ else
+ # Rename the file to the real destination.
+ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
+
+ # The rename failed, perhaps because mv can't rename something else
+ # to itself, or perhaps because mv is so ancient that it does not
+ # support -f.
+ {
+ # Now remove or move aside any old file at destination location.
+ # We try this two ways since rm can't unlink itself on some
+ # systems and the destination file might be busy for other
+ # reasons. In this case, the final cleanup might fail but the new
+ # file should still install successfully.
+ {
+ test ! -f "$dst" ||
+ $doit $rmcmd -f "$dst" 2>/dev/null ||
+ { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
+ { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
+ } ||
+ { echo "$0: cannot unlink or rename $dst" >&2
+ (exit 1); exit 1
+ }
+ } &&
+
+ # Now rename the file to the real destination.
+ $doit $mvcmd "$dsttmp" "$dst"
+ }
+ fi || exit 1
+
+ trap '' 0
+ fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/build-aux/missing b/build-aux/missing
new file mode 100755
index 0000000..86a8fc3
--- /dev/null
+++ b/build-aux/missing
@@ -0,0 +1,331 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2012-01-06.13; # UTC
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
+# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard at iro.umontreal.ca>, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+fi
+
+run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+ configure_ac=configure.ac
+else
+ configure_ac=configure.in
+fi
+
+msg="missing on your system"
+
+case $1 in
+--run)
+ # Try to run requested program, and just exit if it succeeds.
+ run=
+ shift
+ "$@" && exit 0
+ # Exit code 63 means version mismatch. This often happens
+ # when the user try to use an ancient version of a tool on
+ # a file that requires a minimum version. In this case we
+ # we should proceed has if the program had been absent, or
+ # if --run hadn't been passed.
+ if test $? = 63; then
+ run=:
+ msg="probably too old"
+ fi
+ ;;
+
+ -h|--h|--he|--hel|--help)
+ echo "\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+ -h, --help display this help and exit
+ -v, --version output version information and exit
+ --run try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+ aclocal touch file \`aclocal.m4'
+ autoconf touch file \`configure'
+ autoheader touch file \`config.h.in'
+ autom4te touch the output file, or create a stub one
+ automake touch all \`Makefile.in' files
+ bison create \`y.tab.[ch]', if possible, from existing .[ch]
+ flex create \`lex.yy.c', if possible, from existing .c
+ help2man touch the output file
+ lex create \`lex.yy.c', if possible, from existing .c
+ makeinfo touch the output file
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
+\`g' are ignored when checking the name.
+
+Send bug reports to <bug-automake at gnu.org>."
+ 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
+
+# normalize program name to check for.
+program=`echo "$1" | sed '
+ s/^gnu-//; t
+ s/^gnu//; t
+ s/^g//; t'`
+
+# Now exit if we have it, but it failed. Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program). This is about non-GNU programs, so use $1 not
+# $program.
+case $1 in
+ lex*|yacc*)
+ # Not GNU programs, they don't have --version.
+ ;;
+
+ *)
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+ # We have it, but it failed.
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ # Could not run --version or --help. This is probably someone
+ # running `$TOOL --version' or `$TOOL --help' to check whether
+ # $TOOL exists and not knowing $TOOL uses missing.
+ exit 1
+ fi
+ ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case $program in
+ aclocal*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
+ to install the \`Automake' and \`Perl' packages. Grab them from
+ any GNU archive site."
+ touch aclocal.m4
+ ;;
+
+ autoconf*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`${configure_ac}'. You might want to install the
+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
+ archive site."
+ touch configure
+ ;;
+
+ autoheader*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
+ to install the \`Autoconf' and \`GNU m4' packages. Grab them
+ from any GNU archive site."
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+ test -z "$files" && files="config.h"
+ touch_files=
+ for f in $files; do
+ case $f in
+ *:*) touch_files="$touch_files "`echo "$f" |
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+ *) touch_files="$touch_files $f.in";;
+ esac
+ done
+ touch $touch_files
+ ;;
+
+ automake*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+ You might want to install the \`Automake' and \`Perl' packages.
+ Grab them from any GNU archive site."
+ find . -type f -name Makefile.am -print |
+ sed 's/\.am$/.in/' |
+ while read f; do touch "$f"; done
+ ;;
+
+ autom4te*)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, but is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them.
+ You can get \`$1' as part of \`Autoconf' from any GNU
+ archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo "#! /bin/sh"
+ echo "# Created by GNU Automake missing as a replacement of"
+ echo "# $ $@"
+ echo "exit 0"
+ chmod +x $file
+ exit 1
+ fi
+ ;;
+
+ bison*|yacc*)
+ echo 1>&2 "\
+WARNING: \`$1' $msg. You should only need it if
+ you modified a \`.y' file. You may need the \`Bison' package
+ in order for those modifications to take effect. You can get
+ \`Bison' from any GNU archive site."
+ rm -f y.tab.c y.tab.h
+ if test $# -ne 1; then
+ eval LASTARG=\${$#}
+ case $LASTARG in
+ *.y)
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.c
+ fi
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.h
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f y.tab.h; then
+ echo >y.tab.h
+ fi
+ if test ! -f y.tab.c; then
+ echo 'main() { return 0; }' >y.tab.c
+ fi
+ ;;
+
+ lex*|flex*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.l' file. You may need the \`Flex' package
+ in order for those modifications to take effect. You can get
+ \`Flex' from any GNU archive site."
+ rm -f lex.yy.c
+ if test $# -ne 1; then
+ eval LASTARG=\${$#}
+ case $LASTARG in
+ *.l)
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" lex.yy.c
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f lex.yy.c; then
+ echo 'main() { return 0; }' >lex.yy.c
+ fi
+ ;;
+
+ help2man*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a dependency of a manual page. You may need the
+ \`Help2man' package in order for those modifications to take
+ effect. You can get \`Help2man' from any GNU archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo ".ab help2man is required to generate this page"
+ exit $?
+ fi
+ ;;
+
+ makeinfo*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.texi' or \`.texinfo' file, or any other file
+ indirectly affecting the aspect of the manual. The spurious
+ call might also be the consequence of using a buggy \`make' (AIX,
+ DU, IRIX). You might want to install the \`Texinfo' package or
+ the \`GNU make' package. Grab either from any GNU archive site."
+ # The file to touch is that specified with -o ...
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -z "$file"; then
+ # ... or it is the one specified with @setfilename ...
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '
+ /^@setfilename/{
+ s/.* \([^ ]*\) *$/\1/
+ p
+ q
+ }' $infile`
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+ fi
+ # If the file does not exist, the user really needs makeinfo;
+ # let's fail without touching anything.
+ test -f $file || exit 1
+ touch $file
+ ;;
+
+ *)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, and is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them. Check the \`README' file,
+ it often tells you about the needed prerequisites for installing
+ this package. You may also peek at any GNU archive site, in case
+ some other package would contain this missing \`$1' program."
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# 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:
diff --git a/configure.ac b/configure.ac
index 26e385c..61e6d30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,8 +1,8 @@
-dnl $Id: configure.ac 4337 2014-09-18 18:01:13Z ki7mt $
+dnl $Id: configure.ac 4881 2015-01-04 17:43:40Z g4kla $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
-AC_COPYRIGHT([$Id: configure.ac 4337 2014-09-18 18:01:13Z ki7mt $])
+AC_COPYRIGHT([$Id: configure.ac 4881 2015-01-04 17:43:40Z g4kla $])
AC_INIT([WSPR], [4.0], [wsjt-devel at lists.sourceforge.net],[],
[http://www.physics.princeton.edu/pulsar/K1JT/wspr.html])
@@ -26,18 +26,50 @@ DOCDIR="$prefix"/share/doc/wspr
MANDIR="$prefix"/share/man/man1
AC_ARG_WITH([docdir],
-AC_HELP_STRING([--with-docdir=PATH], [path to documentuments]), [docdir=$with_docdir])
+AC_HELP_STRING([--with-docdir=DIR], [Path to documentation]), [docdir=$with_docdir])
if test -n "$with_docdir"; then
AC_SUBST([DOCDIR], ["$with_docdir"])
fi
AC_ARG_WITH([mandir],
-AC_HELP_STRING([--with-mandir=PATH], [path to manpages]), [mandir=$with_mandir])
+AC_HELP_STRING([--with-mandir=DIR], [Path to manpages]), [mandir=$with_mandir])
if test -n "$with_mandir"; then
AC_SUBST([MANDIR], ["$with_mandir"])
fi
# ------------------------------------------------------------------------------
+# Enable Optimization ( none | native )
+# ------------------------------------------------------------------------------
+flag_status=default
+
+AC_ARG_ENABLE([flags],
+AC_HELP_STRING([--enable-flags=ARG], [=native or =none]), [flags=$enable_flags])
+if test -n "${enable_flags}"; then
+ case "${enable_flags}" in
+ none )
+ OPT_FLAGS=""
+ flag_status=${OPT_FLAGS}
+ ;;
+ native )
+ OPT_FLAGS="-mtune=native"
+ flag_status=${OPT_FLAGS}
+ AC_MSG_RESULT([Using Optimization: "${enable_flags}"])
+ ;;
+ * )
+ echo "Unsupported Optimization: ${enable_flags}"
+ echo
+ echo 'Only "none or native" are supported at this time'
+ echo
+ echo 'Example:'
+ echo './autogen.sh --enable-optimization=native'
+ echo './configure --enable-optimization=native'
+ echo
+ exit 1
+ ;;
+ esac
+fi
+
+# ------------------------------------------------------------------------------
# check compilers
# ------------------------------------------------------------------------------
OCFLAGS="$CFLAGS"
@@ -115,9 +147,9 @@ if test -d "/usr/lib/arm-linux-gnueabihf"; then LIBDIR="-L/usr/lib/arm-linux-gnu
HAVE_PY3=no
# check with-enable first
+AC_ARG_WITH([python3],
+AC_HELP_STRING([--with-python3=DIR], [Path to python3]), [PY3=$with_python3])
AC_MSG_CHECKING([Python3 --with-python3])
-AC_ARG_WITH([f2py], [ --with-python3=PATH path to: ../python3],
-PY3="$withval")
# if --with-python3 is not empty
if test -n "$PY3"; then
@@ -186,10 +218,10 @@ fi
HAVE_F2PY=no
-# check with-enable first
+# check with-f2py first
+AC_ARG_WITH([f2py],
+AC_HELP_STRING([--with-f2py=DIR], [Path to f2py | f2py3]), [F2PY=$with_f2py])
AC_MSG_CHECKING([F2PY --with-f2py])
-AC_ARG_WITH([f2py], [ --with-f2py=PATH path to: ../f2py ../f2py3],
-F2PY="$withval")
# if --with-f2py is not empty
if test -n "$F2PY"; then
@@ -257,13 +289,44 @@ fi
# check gfortran
# ------------------------------------------------------------------------------
+gfortran="gfortran"
+#
+# Sames as portadio, use case for FreeBSD to prevent Linux shell errors. -gb
+#
+case "${host_os}" in
+ *freebsd* )
+ # if --with-gfortran is not empty
+ AC_ARG_WITH([gfortran],
+ AC_HELP_STRING([--with-gfortran=DIR], [Path to gfortran]), [gfortran=$with_gfortran])
+ AC_MSG_CHECKING([F2PY --with-f2py])
+ if test -n ${with_gfortran}; then
+ gfortran="${with_gfortran}"
+ gfpath=`${gfortran} --print-file-name=|awk -F/ '{print $1 "/" $2 "/" $3 "/" $4 "/" $5}'`
+ LDFLAGS="-L${gfpath} ${LDFLAGS}"
+ fi
+ ;;
+ *darwin* )
+ # if --with-gfortran is not empty
+ AC_ARG_WITH([gfortran],
+ AC_HELP_STRING([--with-gfortran=DIR], [Path to gfortran]), [gfortran=$with_gfortran])
+ AC_MSG_CHECKING([F2PY --with-f2py])
+ if test -n ${with_gfortran}; then
+ gfortran="${with_gfortran}"
+ gfpath=`${gfortran} --print-file-name=|awk -F/ '{print $1 "/" $2 "/" $3 "/" $4 "/" $5}'`
+ LDFLAGS="-L${gfpath} ${LDFLAGS}"
+ fi
+ ;;
+ *)
+ ;;
+esac
+
AC_CHECK_LIB([gfortran], [_gfortran_st_write], [], [])
if test "$ac_cv_lib_gfortran__gfortran_st_write" != "yes"; then
HAVE_GFORTRAN=0
else
HAVE_GFORTRAN=1
- FC=gfortran
+ FC=${gfortran}
FCV=gnu95
FC_LIB_PATH=`${FC} -print-file-name=`
AC_DEFINE_UNQUOTED([FC_LIB_PATH], ["${FC_LIB_PATH}"], [Path to Gfortran libs.])
@@ -278,6 +341,21 @@ fi
# ------------------------------------------------------------------------------
# check portaudio
# ------------------------------------------------------------------------------
+HAVE_PORTAUDIO=0
+#
+# This unpleasant hack due to FreeBSD supporting both portaudio2 (v19+)
+# and older portaudio. Many programs depend on older. Sorry :-( - db
+#
+
+case "${host_os}" in
+ *freebsd* )
+ AC_SUBST([PORTAUDIO_INCLUDE], ["-I/usr/local/include/portaudio2"])
+ AC_SUBST([PORTAUDIO_LIBDIR], ["-L/usr/local/lib/portaudio2"])
+ LDFLAGS="-L/usr/local/lib/portaudio2 ${LDFLAGS}"
+ ;;
+ *)
+ ;;
+esac
AC_CHECK_LIB([portaudio], [Pa_Initialize], [], [])
if test "$ac_cv_lib_portaudio_Pa_Initialize" = "yes"; then
@@ -291,11 +369,23 @@ if test "$ac_cv_header_portaudio_h" = "yes" -a "$ac_cv_lib_portaudio_Pa_Initiali
AC_DEFINE([HAVE_PORTAUDIO_LIB], [1], [Portaudio Lib])
fi
+#
+# Ensure FreeBSD picks up the right portaudio -db
+#
+case "${host_os}" in
+ *freebsd* )
+ AC_SUBST([PORTAUDIO_INCLUDE], ["-I/usr/local/include/portaudio2"])
+ AC_SUBST([PORTAUDIO_LIBDIR], ["-L/usr/local/lib/portaudio2"])
+ LDFLAGS="-L/usr/local/lib/portaudio2 ${LDFLAGS}"
+ ;;
+ *)
+ ;;
+esac
# ------------------------------------------------------------------------------
# check fftw3
# ------------------------------------------------------------------------------
-
+HAVE_FFTW3_LIB=0
AC_CHECK_LIB([fftw3f], [sfftw_destroy_plan_], [], [])
if test "$ac_cv_lib_fftw3f_sfftw_destroy_plan_" = "yes"; then
@@ -313,6 +403,7 @@ fi
# check samplerate
# ------------------------------------------------------------------------------
+HAVE_SAMPLERATE=0
AC_CHECK_LIB([samplerate], [src_simple], [], [])
if test "$ac_cv_lib_samplerate_src_simple" = "yes"; then
@@ -344,31 +435,37 @@ case "${host_os}" in
FCOPT="-cpp -fbounds-check -O2"
case "${host_cpu}" in
*armv6* )
- CFLAGS="-O2 -march=armv6j -mfpu=vfp -mfloat-abi=hard -fpic"
- FFLAGS="-O2 -Wall -fno-range-check -ffixed-line-length-none \
+ CFLAGS="${OPT_FLAGS} -O2 -march=armv6j -mfpu=vfp -mfloat-abi=hard -fpic"
+ FFLAGS="${OPT_FLAGS} -O2 -Wall -fno-range-check -ffixed-line-length-none \
-Wno-character-truncation -Wno-conversion -Wtabs -mfloat-abi=hard -fPIC"
- LDFLAGS="-Wl,-O1 -Wl,--as-needed"
+ ;;
+ *armv7* )
+ CFLAGS="${OPT_FLAGS} -fpic"
+ FFLAGS="${OPT_FLAGS} -O2 -Wall -fbounds-check -fno-second-underscore \
+-Wno-conversion -Wno-character-truncation -fPIC"
;;
*x86_64* )
- CFLAGS="-fPIC"
- FFLAGS="-O2 -Wall -fbounds-check -fno-second-underscore \
+ CFLAGS="${OPT_FLAGS} -fPIC"
+ FFLAGS="${OPT_FLAGS} -O2 -Wall -fbounds-check -fno-second-underscore \
-Wno-conversion -Wno-character-truncation -fPIC"
- LDFLAGS="-Wl,-O1 -Wl,--as-needed"
;;
*i386* )
- CFLAGS="-fPIC"
- FFLAGS="-O2 -Wall -fbounds-check -fno-second-underscore \
+ CFLAGS="${OPT_FLAGS} -fPIC"
+ FFLAGS="${OPT_FLAGS} -O2 -Wall -fbounds-check -fno-second-underscore \
-Wno-conversion -Wno-character-truncation -fPIC"
- LDFLAGS="-Wl,-O1 -Wl,--as-needed"
;;
esac
;;
- *-*-darwin-* )
+ *darwin* )
FCOPT="-cpp -fbounds-check -O2"
CFLAGS="-Wall -O0 -fPIC -m64"
FFLAGS="-O2 -m64 -Wall -fbounds-check -fno-second-underscore \
-Wno-conversion -Wno-character-truncation -fPIC"
- LDFLAGS="-Wl,-O1 -Wl,--as-needed"
+ ;;
+ *freebsd* )
+ CFLAGS="${CFLAGS} -fpic"
+ FFLAGS="-O2 -m64 -Wall -fbounds-check -fno-second-underscore \
+-Wno-conversion -Wno-character-truncation -fPIC"
;;
*)
AC_MSG_ERROR([Unsupported System: ${host_os}.])
@@ -389,13 +486,10 @@ if test "$HAVE_PY3" = "no"; then
echo "[3] Include Python3.2+:"
echo
echo 'Example:'
+ echo './autogen.sh --with-python3="/home/$USER/test/python3"'
echo './configure --with-python3="/home/$USER/test/python3"'
echo
exit 1
-else
- # add python3 path to wspr.sh script
- sed -i '/wspr.py/d' wspr.sh
- echo "$PY3_PATH -O wspr.py" >> wspr.sh
fi
# ------------------------------------------------------------------------------
@@ -412,6 +506,7 @@ if test "$HAVE_F2PY" = "no"; then
echo "[3] Include F2PY:"
echo
echo 'Example:'
+ echo './autogen.sh --with-f2py="/home/$USER/test/f2py"'
echo './configure --with-f2py="/home/$USER/test/f2py"'
echo
exit 1
@@ -432,6 +527,11 @@ if test ${HAVE_GFORTRAN} -eq 0; then
echo "Possible Solutions:"
echo "[1] Install your distro version of: gfortran"
echo "[2] On x86_64 systems, ensure you include x86 / i386 libgfortran"
+ echo "[3] Include Gfortran:"
+ echo
+ echo 'Example:'
+ echo './autogen.sh --with-gfortran=/path./to/gfortran'
+ echo './configure --with-f2py=/path./to/gfortran'
echo
exit 1
fi
@@ -520,7 +620,7 @@ AC_SUBST([BINDIR], ["$PREFIX"/bin])
AC_SUBST([LIBS], ["$LIBS"])
AC_SUBST([HOMEDIR], [/home/"$USER"/.wspr])
AC_SUBST([USER], ["$USER"])
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile wspr.sh])
AC_OUTPUT
# ------------------------------------------------------------------------------
@@ -533,9 +633,11 @@ echo " Configuration Summary"
echo "-------------------------------------------"
echo
echo " Package: .........: ${PROGRAM} ${VERSION}"
+echo " Optimization .....: ${flag_status}"
echo " Python3: .........: ${PYTHON}"
echo " F2py: ............: ${F2PY}"
-echo " Fcomplier: .......: ${FC}"
+echo " Fcompiler: .......: ${FC}"
+echo " FC Lib Path ......: ${FC_LIB_PATH}"
echo " Samplerate: ......: ${srstatus}"
echo " FFTW3: ...........: ${ffstatus}"
echo " Portaudio: .......: ${pastatus}"
diff --git a/debian/README.source b/debian/README.source
index 6172ff2..b2f98e0 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -3,7 +3,7 @@ WSPR 4.0 for Debian
Greg Beam <ki7mt at yahoo.com>
-Formal Upstream Release Version: WSPR 4.0 r4569
+Formal Upstream Release Version: WPR 4.0 r4569
Obtain Source and Create Patchs for Configure && Makefile:
@@ -34,7 +34,7 @@ BUILD Pristine Tarball
* ./wspr-dist.sh wspr 4.0
* mv ./dist/wspr-4.0.tar.gz ../
* cd ../ && rm -r ./wspr
-* mv wspr-4.0.tar.gz wspr_4.0.rxxxx.orig.tar.gz
-* tar -xzf wsprwspr_4.0.rxxxx.orig.tar.gz
+* mv wspr-4.0.tar.gz wspr_4.0.orig.tar.gz
+* tar -xzf wsprwspr_4.0.orig.tar.gz
* cd ./wspr and start customization for Debian / Ubuntu
diff --git a/debian/changelog b/debian/changelog
index d7c09a2..f595ae8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,7 @@
-wspr (4.0.r4569-1) unstable; urgency=medium
+wspr (4.0.4-1) trusty; urgency=medium
* Initial Debian Release (Closes: #557214)
- * New Upstream Number
- * Fixed Copyright warning, updated Format:
-
- -- Greg Beam <ki7mt at yahoo.com> Wed, 29 Oct 2014 16:24:00 -0600
+ * New upstram release release svn r4889
+ * Fixes long standing memnory leak
+ -- Greg Beam <ki7mt at yahoo.com> Wed, 24 Dec 2014 01:20:00 -0000
diff --git a/debian/control b/debian/control
index 7d9fecc..14169a2 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: hamradio
Priority: optional
Maintainer: Debian Hamradio Maintainers <debian-hams at lists.debian.org>
Uploaders: Greg Beam <ki7mt at yahoo.com>, Kamal Mostafa <kamal at whence.com>
-Standards-Version: 3.9.6
+Standards-Version: 3.9.5
Build-Depends: debhelper (>=9.0.0),
autotools-dev,
autoconf (>= 2.69),
@@ -15,7 +15,7 @@ Build-Depends: debhelper (>=9.0.0),
python3 (>= 3.2.0),
python3-dev,
python3-numpy (>= 1.8.0),
- python3-pil,
+ python3-pil (<< 2.5.0),
python3-pil.imagetk,
python3-tk
Homepage: http://www.physics.princeton.edu/pulsar/K1JT/wspr.html
@@ -32,10 +32,10 @@ Depends: ${misc:Depends},
libsamplerate0,
python3 (>= 3.2.0),
python3-numpy (>= 1.8.0),
- python3-pil,
+ python3-pil (<< 2.5.0),
python3-tk,
- python3-pil.imagetk,
- portaudio19-dev (>= 19+svn20111121-1~),
+ python3-pil.imagetk (<< 2.5.0),
+ portaudio19-dev (>= 19+svn20140130-1~),
xterm | x-terminal-emulator
Description: Weak Signal Propagation Reporter Digital Ham Radio Application
WSPR implements a protocol designed for probing potential propagation paths
diff --git a/debian/patches/generate-autotools.patch b/debian/patches/generate-files.patch
similarity index 70%
rename from debian/patches/generate-autotools.patch
rename to debian/patches/generate-files.patch
index 5ae2ad4..1e7d4d4 100644
--- a/debian/patches/generate-autotools.patch
+++ b/debian/patches/generate-files.patch
@@ -1,11 +1,13 @@
Description: <short summary of the patch>
- Run autogen.sh to generate Makefile & configure
- Remove uneeed sections in Makefile
+ * Generate Configure, Makefile and wspr.sh
.
- wspr (4.0.r4339-1) trusty; urgency=medium
+ wspr (4.0.4-1) trusty; urgency=medium
.
- * Update to latest SVN version r4339
+ * Initial Debian Release (Closes: #557214)
+ * New upstram release release svn r4889
+ * Fixes long standing memnory leak
Author: Greg Beam <ki7mt at yahoo.com>
+Bug-Debian: http://bugs.debian.org/557214
---
The information above should follow the Patch Tagging Guidelines, please
@@ -21,8 +23,8 @@ Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
--- /dev/null
-+++ wspr-4.0.r4339/Makefile
-@@ -0,0 +1,124 @@
++++ wspr-4.0.4/Makefile
+@@ -0,0 +1,168 @@
+# Makefile for Linux
+# Re-direct stdout and stderr: bash
+# make >& junk
@@ -51,13 +53,13 @@ Last-Update: <YYYY-MM-DD>
+MKDIR := /bin/mkdir
+
+# Install locations
-+INATALL := install
-+BINDIR := $(DESTDIR)/usr/bin
-+DOCDIR := $(DESTDIR)/usr/share/doc/wspr
-+HOMEDIR := $(DESTDIR)/home/$(LOGNAME)/.wspr@
-+MANDIR := $(DESTDIR)/usr/share/man/man1
-+SHARED := $(DESTDIR)/usr/share/wspr
-+WSPRLIB := $(DESTDIR)/usr/lib/wspr
++INSTALL := install
++BINDIR := /usr/bin
++DOCDIR := /usr/share/doc/wspr
++HOMEDIR := /home/$(LOGNAME)/.wspr
++MANDIR := /usr/share/man/man1
++SHARED := /usr/share/wspr
++WSPRLIB := /usr/lib/wspr
+
+# Compiler Information
+CC := gcc
@@ -73,90 +75,2782 @@ Last-Update: <YYYY-MM-DD>
+LIBS := -lfftw3f -lgfortran -lportaudio -lpthread -lsamplerate
+LIBDIR += -L/usr/lib -L/usr/lib/i386-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib
+CPPFLAGS += ${DEFS}
-+CFLAGS += -fPIC
-+FFLAGS += -O2 -Wall -fbounds-check -fno-second-underscore -Wno-conversion -Wno-character-truncation -fPIC
-+LDFLAGS += -Wl, -O1 -Wl, --as-needed
++CFLAGS += -fPIC
++FFLAGS += -O2 -Wall -fbounds-check -fno-second-underscore -Wno-conversion -Wno-character-truncation -fPIC
++LDFLAGS +=
+FCOPT += -cpp -fbounds-check -O2
++PORTAUDIO_INCLUDE =
++PORTAUDIO_LIBDIR =
+
+# Config Definitions
+DEFS := -DPACKAGE_NAME=\"WSPR\" -DPACKAGE_TARNAME=\"wspr\" -DPACKAGE_VERSION=\"4.0\" -DPACKAGE_STRING=\"WSPR\ 4.0\" -DPACKAGE_BUGREPORT=\"wsjt-devel at lists.sourceforge.net\" -DPACKAGE_URL=\"http://www.physics.princeton.edu/pulsar/K1JT/wspr.html\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POS [...]
+
+# WSPR Targets
-+all: libwspr.a thnix.o WsprMod/w.so fmtest fmtave fcal fmeasure wsprcode wspr0
++all: libwspr.a WsprMod/w.so fmtest fmtave fcal fmeasure wsprcode wspr0
++ @echo ''
++ @echo '---------------------------------------------'
++ @echo " ${PROGRAM} ${VERSION} Make Summary"
++ @echo '---------------------------------------------'
++ @echo ''
++ @echo " To Install ${PROGRAM}"
++ @echo ' Type .........: sudo make install'
++ @echo ' Then, type ...: wspr'
++ @echo ''
++ @echo ' Clean & Rebuild'
++ @echo ' To Clean, type .......: make clean'
++ @echo ' To Dist Clean, type ..: make distclean'
++ @echo ''
+
+# Default Rules
+%.o: %.c
-+ ${CC} ${CPPFLAGS} ${CFLAGS} -c $<
++ ${CC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${CPPFLAGS} -c $<
+%.o: %.f
-+ ${FC} ${FFLAGS} -c $<
++ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
+%.o: %.F
-+ ${FC} ${FFLAGS} -c $<
++ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
+%.o: %.f90
-+ ${FC} ${FFLAGS} -c $<
++ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
+%.o: %.F90
-+ ${FC} ${FFLAGS} -c $<
++ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
++
++# Prevent compiler warnings ( r4142 commit )
++thnix_stub.o: thnix_stub.f90
++ @echo
++ @echo Build thnix_stub
++ @echo --------------------
++ ${FC} -c thnix_stub.f90
+
+# Objects
+OBJS1 = wspr0.o wspr0init.o wspr0_rx.o wspr0_tx.o thnix_stub.o
+
-+wspr0: ${OBJS1}
-+ ${FC} ${FFLAGS} -o wspr0 ${FFLAGS} ${LDFLAGS} ${OBJS1} libwspr.a -lfftw3f -lportaudio
++wspr0: ${OBJS1}
++ @echo
++ @echo Build wspr0
++ @echo --------------------
++ ${FC} ${PORTAUDIO_LIBDIR} ${FFLAGS} -o wspr0 ${FFLAGS} ${LDFLAGS} ${OBJS1} libwspr.a -lfftw3f -lportaudio
++
++wsprcode: wsprcode.o thnix_stub.o
++ @echo
++ @echo Build wsprcode
++ @echo --------------------
++ ${FC} ${FFLAGS} ${LDFLAGS} -o wsprcode wsprcode.o thnix_stub.o libwspr.a -pthread
++
++OBJS3 = azdist.o ccf2.o chklevel.o db.o decode.o decode162.o deg2grid.o \
++ encode232.o fano232.o fchisq.o fil1.o flat3.o four2a.o\
++ fthread.o gencwid.o genmept.o genwspr.o geodist.o getrms.o getutc.o \
++ gmtime2.o gran.o grid2deg.o hash.o inter_mept.o iqdemod.o \
++ mept162.o mix162.o morse.o msgtrim.o nchar.o nhash.o pack50.o \
++ packcall.o packgrid.o packname.o packpfx.o packprop.o packtext2.o \
++ padevsub.o pctile.o peakup.o phasetx.o ps162.o ptt_unix.o rx.o \
++ rxtxcoord.o set.o sort.o sound.o spec162.o speciq.o ssort.o \
++ start_threads.o startdec.o startrx.o starttx.o sync162.o \
++ twkfreq.o tx.o thnix.o unpack50.o unpackcall.o unpackgrid.o \
++ unpackname.o unpackpfx.o unpackprop.o unpacktext2.o wfile5.o \
++ wqdecode.o wqencode.o wspr2.o xcor162.o xfft.o
++
++# Build Library: libwspr.a
++libwspr.a: ${OBJS3} acom1.f90 acom2.f90
++ @echo
++ @echo Build libwspr library
++ @echo -----------------------------
++ ${AR} cr libwspr.a ${OBJS3}
++ ranlib libwspr.a
++
++# Build FMT Applications
++fmtest: fmtest.f90 libwspr.a
++ @echo
++ @echo Build Fmtest
++ @echo --------------------
++ ${FC} ${CFLAGS} ${FFLAGS} ${PORTAUDIO_LIBDIR} ${LDFLAGS} -o fmtest fmtest.f90 libwspr.a -lfftw3f -lportaudio
++
++fmtave: fmtave.f90
++ @echo
++ @echo Build Fmtave
++ @echo --------------------
++ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} ${PORTAUDIO_LIBDIR} ${LDFLAGS} -o fmtave fmtave.f90
++
++fcal: fcal.f90
++ @echo
++ @echo Build Fcal
++ @echo --------------------
++ ${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} ${PORTAUDIO_LIBDIR} ${LDFLAGS} -o fcal fcal.f90
++
++fmeasure: fmeasure.f90
++ @echo
++ @echo Build Fmeasure
++ @echo --------------------
++ ${FC} ${FFLAGS} ${LDFLAGS} -o fmeasure fmeasure.f90
++
++# SRC for w.so
++F2PYSRCS = wspr1.f90 getfile.f90 paterminate.f90 audiodev.f90
++
++# Build W.SO & MV to WsprMod/
++WsprMod/w.so: libwspr.a ${F2PYSRCS} acom1.f90
++ @echo
++ @echo RUN F2PY w.so
++ @echo --------------------
++ ${F2PY} -c --quiet --fcompiler=${FCV} --f77exec=${FC} --f90exec=${FC} \
++ --opt="${FCOPT}" thnix.o ${PORTAUDIO_LIBDIR} ${LDFLAGS} ${LIBS} libwspr.a -m w ${F2PYSRCS}
++ ${MV} w*.so WsprMod/w.so
++
+--- /dev/null
++++ wspr-4.0.4/config.log
+@@ -0,0 +1,1689 @@
++This file contains any messages produced by compilers while
++running configure, to aid debugging if configure makes a mistake.
++
++It was created by WSPR configure 4.0, which was
++generated by GNU Autoconf 2.69. Invocation command line was
++
++ $ /home/ki7mt/debian/WSPR/wspr/configure
++
++## --------- ##
++## Platform. ##
++## --------- ##
++
++hostname = UB-64-GCC
++uname -m = x86_64
++uname -r = 3.13.0-43-generic
++uname -s = Linux
++uname -v = #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014
++
++/usr/bin/uname -p = unknown
++/bin/uname -X = unknown
++
++/bin/arch = unknown
++/usr/bin/arch -k = unknown
++/usr/convex/getsysinfo = unknown
++/usr/bin/hostinfo = unknown
++/bin/machine = unknown
++/usr/bin/oslevel = unknown
++/bin/universe = unknown
++
++PATH: /home/ki7mt/bin
++PATH: /usr/local/sbin
++PATH: /usr/local/bin
++PATH: /usr/sbin
++PATH: /usr/bin
++PATH: /sbin
++PATH: /bin
++PATH: /usr/games
++PATH: /usr/local/games
++
++
++## ----------- ##
++## Core tests. ##
++## ----------- ##
++
++configure:2474: checking build system type
++configure:2488: result: x86_64-unknown-linux-gnu
++configure:2508: checking host system type
++configure:2521: result: x86_64-unknown-linux-gnu
++configure:2664: checking for gcc
++configure:2680: found /usr/bin/gcc
++configure:2691: result: gcc
++configure:2920: checking for C compiler version
++configure:2929: gcc --version >&5
++gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
++Copyright (C) 2013 Free Software Foundation, Inc.
++This is free software; see the source for copying conditions. There is NO
++warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++
++configure:2940: $? = 0
++configure:2929: gcc -v >&5
++Using built-in specs.
++COLLECT_GCC=gcc
++COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
++Target: x86_64-linux-gnu
++Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-lib [...]
++Thread model: posix
++gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
++configure:2940: $? = 0
++configure:2929: gcc -V >&5
++gcc: error: unrecognized command line option '-V'
++gcc: fatal error: no input files
++compilation terminated.
++configure:2940: $? = 4
++configure:2929: gcc -qversion >&5
++gcc: error: unrecognized command line option '-qversion'
++gcc: fatal error: no input files
++compilation terminated.
++configure:2940: $? = 4
++configure:2960: checking whether the C compiler works
++configure:2982: gcc conftest.c >&5
++configure:2986: $? = 0
++configure:3034: result: yes
++configure:3037: checking for C compiler default output file name
++configure:3039: result: a.out
++configure:3045: checking for suffix of executables
++configure:3052: gcc -o conftest conftest.c >&5
++configure:3056: $? = 0
++configure:3078: result:
++configure:3100: checking whether we are cross compiling
++configure:3108: gcc -o conftest conftest.c >&5
++configure:3112: $? = 0
++configure:3119: ./conftest
++configure:3123: $? = 0
++configure:3138: result: no
++configure:3143: checking for suffix of object files
++configure:3165: gcc -c conftest.c >&5
++configure:3169: $? = 0
++configure:3190: result: o
++configure:3194: checking whether we are using the GNU C compiler
++configure:3213: gcc -c conftest.c >&5
++configure:3213: $? = 0
++configure:3222: result: yes
++configure:3231: checking whether gcc accepts -g
++configure:3251: gcc -c -g conftest.c >&5
++configure:3251: $? = 0
++configure:3292: result: yes
++configure:3309: checking for gcc option to accept ISO C89
++configure:3372: gcc -c -g -O2 conftest.c >&5
++configure:3372: $? = 0
++configure:3385: result: none needed
++configure:3463: checking for g++
++configure:3479: found /usr/bin/g++
++configure:3490: result: g++
++configure:3517: checking for C++ compiler version
++configure:3526: g++ --version >&5
++g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
++Copyright (C) 2013 Free Software Foundation, Inc.
++This is free software; see the source for copying conditions. There is NO
++warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++
++configure:3537: $? = 0
++configure:3526: g++ -v >&5
++Using built-in specs.
++COLLECT_GCC=g++
++COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
++Target: x86_64-linux-gnu
++Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-lib [...]
++Thread model: posix
++gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
++configure:3537: $? = 0
++configure:3526: g++ -V >&5
++g++: error: unrecognized command line option '-V'
++g++: fatal error: no input files
++compilation terminated.
++configure:3537: $? = 4
++configure:3526: g++ -qversion >&5
++g++: error: unrecognized command line option '-qversion'
++g++: fatal error: no input files
++compilation terminated.
++configure:3537: $? = 4
++configure:3541: checking whether we are using the GNU C++ compiler
++configure:3560: g++ -c conftest.cpp >&5
++configure:3560: $? = 0
++configure:3569: result: yes
++configure:3578: checking whether g++ accepts -g
++configure:3598: g++ -c -g conftest.cpp >&5
++configure:3598: $? = 0
++configure:3639: result: yes
++configure:3715: checking for gfortran
++configure:3731: found /usr/bin/gfortran
++configure:3742: result: gfortran
++configure:3768: checking for Fortran compiler version
++configure:3777: gfortran --version >&5
++GNU Fortran (Ubuntu 4.8.2-19ubuntu1) 4.8.2
++Copyright (C) 2013 Free Software Foundation, Inc.
++
++GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
++You may redistribute copies of GNU Fortran
++under the terms of the GNU General Public License.
++For more information about these matters, see the file named COPYING
++
++configure:3788: $? = 0
++configure:3777: gfortran -v >&5
++Using built-in specs.
++COLLECT_GCC=gfortran
++COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
++Target: x86_64-linux-gnu
++Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-lib [...]
++Thread model: posix
++gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
++configure:3788: $? = 0
++configure:3777: gfortran -V >&5
++gfortran: error: unrecognized command line option '-V'
++gfortran: fatal error: no input files
++compilation terminated.
++configure:3788: $? = 4
++configure:3777: gfortran -qversion >&5
++gfortran: error: unrecognized command line option '-qversion'
++gfortran: fatal error: no input files
++compilation terminated.
++configure:3788: $? = 4
++configure:3797: checking whether we are using the GNU Fortran compiler
++configure:3810: gfortran -c conftest.F >&5
++configure:3810: $? = 0
++configure:3819: result: yes
++configure:3825: checking whether gfortran accepts -g
++configure:3836: gfortran -c -g conftest.f >&5
++configure:3836: $? = 0
++configure:3844: result: yes
++configure:3879: checking how to run the C preprocessor
++configure:3910: gcc -E conftest.c
++configure:3910: $? = 0
++configure:3924: gcc -E conftest.c
++conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
++ #include <ac_nonexistent.h>
++ ^
++compilation terminated.
++configure:3924: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| /* end confdefs.h. */
++| #include <ac_nonexistent.h>
++configure:3949: result: gcc -E
++configure:3969: gcc -E conftest.c
++configure:3969: $? = 0
++configure:3983: gcc -E conftest.c
++conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
++ #include <ac_nonexistent.h>
++ ^
++compilation terminated.
++configure:3983: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| /* end confdefs.h. */
++| #include <ac_nonexistent.h>
++configure:4012: checking for grep that handles long lines and -e
++configure:4070: result: /bin/grep
++configure:4075: checking for egrep
++configure:4137: result: /bin/grep -E
++configure:4143: checking whether gcc needs -traditional
++configure:4177: result: no
++configure:4184: checking whether make sets $(MAKE)
++configure:4206: result: yes
++configure:4258: checking for ranlib
++configure:4274: found /usr/bin/ranlib
++configure:4285: result: ranlib
++configure:4307: checking whether make sets $(MAKE)
++configure:4329: result: yes
++configure:4338: checking for ANSI C header files
++configure:4358: gcc -c -g -O2 conftest.c >&5
++configure:4358: $? = 0
++configure:4431: gcc -o conftest -g -O2 conftest.c >&5
++configure:4431: $? = 0
++configure:4431: ./conftest
++configure:4431: $? = 0
++configure:4442: result: yes
++configure:4455: checking for sys/types.h
++configure:4455: gcc -c -g -O2 conftest.c >&5
++configure:4455: $? = 0
++configure:4455: result: yes
++configure:4455: checking for sys/stat.h
++configure:4455: gcc -c -g -O2 conftest.c >&5
++configure:4455: $? = 0
++configure:4455: result: yes
++configure:4455: checking for stdlib.h
++configure:4455: gcc -c -g -O2 conftest.c >&5
++configure:4455: $? = 0
++configure:4455: result: yes
++configure:4455: checking for string.h
++configure:4455: gcc -c -g -O2 conftest.c >&5
++configure:4455: $? = 0
++configure:4455: result: yes
++configure:4455: checking for memory.h
++configure:4455: gcc -c -g -O2 conftest.c >&5
++configure:4455: $? = 0
++configure:4455: result: yes
++configure:4455: checking for strings.h
++configure:4455: gcc -c -g -O2 conftest.c >&5
++configure:4455: $? = 0
++configure:4455: result: yes
++configure:4455: checking for inttypes.h
++configure:4455: gcc -c -g -O2 conftest.c >&5
++configure:4455: $? = 0
++configure:4455: result: yes
++configure:4455: checking for stdint.h
++configure:4455: gcc -c -g -O2 conftest.c >&5
++configure:4455: $? = 0
++configure:4455: result: yes
++configure:4455: checking for unistd.h
++configure:4455: gcc -c -g -O2 conftest.c >&5
++configure:4455: $? = 0
++configure:4455: result: yes
++configure:4468: checking minix/config.h usability
++configure:4468: gcc -c -g -O2 conftest.c >&5
++conftest.c:52:26: fatal error: minix/config.h: No such file or directory
++ #include <minix/config.h>
++ ^
++compilation terminated.
++configure:4468: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| /* end confdefs.h. */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| # include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| # include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| #include <minix/config.h>
++configure:4468: result: no
++configure:4468: checking minix/config.h presence
++configure:4468: gcc -E conftest.c
++conftest.c:19:26: fatal error: minix/config.h: No such file or directory
++ #include <minix/config.h>
++ ^
++compilation terminated.
++configure:4468: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| /* end confdefs.h. */
++| #include <minix/config.h>
++configure:4468: result: no
++configure:4468: checking for minix/config.h
++configure:4468: result: no
++configure:4489: checking whether it is safe to define __EXTENSIONS__
++configure:4507: gcc -c -g -O2 conftest.c >&5
++configure:4507: $? = 0
++configure:4514: result: yes
++configure:4533: checking for inline
++configure:4549: gcc -c conftest.c >&5
++configure:4549: $? = 0
++configure:4557: result: inline
++configure:4577: checking for ar
++configure:4595: found /usr/bin/ar
++configure:4607: result: /usr/bin/ar
++configure:4617: checking for awk
++configure:4635: found /usr/bin/awk
++configure:4647: result: /usr/bin/awk
++configure:4657: checking for cp
++configure:4675: found /bin/cp
++configure:4687: result: /bin/cp
++configure:4697: checking for chown
++configure:4715: found /bin/chown
++configure:4727: result: /bin/chown
++configure:4737: checking for chmod
++configure:4755: found /bin/chmod
++configure:4767: result: /bin/chmod
++configure:4777: checking for ld
++configure:4795: found /usr/bin/ld
++configure:4807: result: /usr/bin/ld
++configure:4817: checking for ln
++configure:4835: found /bin/ln
++configure:4847: result: /bin/ln
++configure:4857: checking for mkdir
++configure:4875: found /bin/mkdir
++configure:4887: result: /bin/mkdir
++configure:4897: checking for mv
++configure:4915: found /bin/mv
++configure:4927: result: /bin/mv
++configure:4937: checking for ranlib
++configure:4955: found /usr/bin/ranlib
++configure:4967: result: /usr/bin/ranlib
++configure:4977: checking for rm
++configure:4995: found /bin/rm
++configure:5007: result: /bin/rm
++configure:5017: checking for sed
++configure:5035: found /bin/sed
++configure:5047: result: /bin/sed
++configure:5057: checking for bash
++configure:5087: result: /bin/bash
++configure:5097: checking for sort
++configure:5115: found /usr/bin/sort
++configure:5127: result: /usr/bin/sort
++configure:5137: checking for tr
++configure:5155: found /usr/bin/tr
++configure:5167: result: /usr/bin/tr
++configure:5183: checking for ANSI C header files
++configure:5287: result: yes
++configure:5298: checking for dirent.h that defines DIR
++configure:5317: gcc -c conftest.c >&5
++configure:5317: $? = 0
++configure:5325: result: yes
++configure:5338: checking for library containing opendir
++configure:5369: gcc -o conftest conftest.c >&5
++configure:5369: $? = 0
++configure:5386: result: none required
++configure:5453: checking whether time.h and sys/time.h may both be included
++configure:5473: gcc -c conftest.c >&5
++configure:5473: $? = 0
++configure:5480: result: yes
++configure:5488: checking for int16_t
++configure:5488: gcc -c conftest.c >&5
++configure:5488: $? = 0
++configure:5488: gcc -c conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:64:12: error: size of array 'test_array' is negative
++ static int test_array [1 - 2 * !((int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 1)
++ ^
++configure:5488: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define __EXTENSIONS__ 1
++| #define _ALL_SOURCE 1
++| #define _GNU_SOURCE 1
++| #define _POSIX_PTHREAD_SEMANTICS 1
++| #define _TANDEM_SOURCE 1
++| #define STDC_HEADERS 1
++| #define HAVE_DIRENT_H 1
++| #define TIME_WITH_SYS_TIME 1
++| /* end confdefs.h. */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| # include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| # include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| enum { N = 16 / 2 - 1 };
++| int
++| main ()
++| {
++| static int test_array [1 - 2 * !((int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 1)
++| < (int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 2))];
++| test_array [0] = 0;
++| return test_array [0];
++|
++| ;
++| return 0;
++| }
++configure:5488: result: yes
++configure:5499: checking for int32_t
++configure:5499: gcc -c conftest.c >&5
++configure:5499: $? = 0
++configure:5499: gcc -c conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:65:53: warning: integer overflow in expression [-Woverflow]
++ < (int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 2))];
++ ^
++conftest.c:64:12: error: storage size of 'test_array' isn't constant
++ static int test_array [1 - 2 * !((int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 1)
++ ^
++configure:5499: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define __EXTENSIONS__ 1
++| #define _ALL_SOURCE 1
++| #define _GNU_SOURCE 1
++| #define _POSIX_PTHREAD_SEMANTICS 1
++| #define _TANDEM_SOURCE 1
++| #define STDC_HEADERS 1
++| #define HAVE_DIRENT_H 1
++| #define TIME_WITH_SYS_TIME 1
++| /* end confdefs.h. */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| # include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| # include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| enum { N = 32 / 2 - 1 };
++| int
++| main ()
++| {
++| static int test_array [1 - 2 * !((int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 1)
++| < (int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 2))];
++| test_array [0] = 0;
++| return test_array [0];
++|
++| ;
++| return 0;
++| }
++configure:5499: result: yes
++configure:5510: checking for int64_t
++configure:5510: gcc -c conftest.c >&5
++configure:5510: $? = 0
++configure:5510: gcc -c conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:65:53: warning: integer overflow in expression [-Woverflow]
++ < (int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 2))];
++ ^
++conftest.c:64:12: error: storage size of 'test_array' isn't constant
++ static int test_array [1 - 2 * !((int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 1)
++ ^
++configure:5510: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define __EXTENSIONS__ 1
++| #define _ALL_SOURCE 1
++| #define _GNU_SOURCE 1
++| #define _POSIX_PTHREAD_SEMANTICS 1
++| #define _TANDEM_SOURCE 1
++| #define STDC_HEADERS 1
++| #define HAVE_DIRENT_H 1
++| #define TIME_WITH_SYS_TIME 1
++| /* end confdefs.h. */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| # include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| # include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| enum { N = 64 / 2 - 1 };
++| int
++| main ()
++| {
++| static int test_array [1 - 2 * !((int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 1)
++| < (int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 2))];
++| test_array [0] = 0;
++| return test_array [0];
++|
++| ;
++| return 0;
++| }
++configure:5510: result: yes
++configure:5521: checking for int8_t
++configure:5521: gcc -c conftest.c >&5
++configure:5521: $? = 0
++configure:5521: gcc -c conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:64:12: error: size of array 'test_array' is negative
++ static int test_array [1 - 2 * !((int8_t) (((((int8_t) 1 << N) << N) - 1) * 2 + 1)
++ ^
++configure:5521: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define __EXTENSIONS__ 1
++| #define _ALL_SOURCE 1
++| #define _GNU_SOURCE 1
++| #define _POSIX_PTHREAD_SEMANTICS 1
++| #define _TANDEM_SOURCE 1
++| #define STDC_HEADERS 1
++| #define HAVE_DIRENT_H 1
++| #define TIME_WITH_SYS_TIME 1
++| /* end confdefs.h. */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| # include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| # include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| enum { N = 8 / 2 - 1 };
++| int
++| main ()
++| {
++| static int test_array [1 - 2 * !((int8_t) (((((int8_t) 1 << N) << N) - 1) * 2 + 1)
++| < (int8_t) (((((int8_t) 1 << N) << N) - 1) * 2 + 2))];
++| test_array [0] = 0;
++| return test_array [0];
++|
++| ;
++| return 0;
++| }
++configure:5521: result: yes
++configure:5532: checking for pid_t
++configure:5532: gcc -c conftest.c >&5
++configure:5532: $? = 0
++configure:5532: gcc -c conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:63:20: error: expected expression before ')' token
++ if (sizeof ((pid_t)))
++ ^
++configure:5532: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define __EXTENSIONS__ 1
++| #define _ALL_SOURCE 1
++| #define _GNU_SOURCE 1
++| #define _POSIX_PTHREAD_SEMANTICS 1
++| #define _TANDEM_SOURCE 1
++| #define STDC_HEADERS 1
++| #define HAVE_DIRENT_H 1
++| #define TIME_WITH_SYS_TIME 1
++| /* end confdefs.h. */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| # include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| # include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| int
++| main ()
++| {
++| if (sizeof ((pid_t)))
++| return 0;
++| ;
++| return 0;
++| }
++configure:5532: result: yes
++configure:5543: checking for size_t
++configure:5543: gcc -c conftest.c >&5
++configure:5543: $? = 0
++configure:5543: gcc -c conftest.c >&5
++conftest.c: In function 'main':
++conftest.c:63:21: error: expected expression before ')' token
++ if (sizeof ((size_t)))
++ ^
++configure:5543: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define __EXTENSIONS__ 1
++| #define _ALL_SOURCE 1
++| #define _GNU_SOURCE 1
++| #define _POSIX_PTHREAD_SEMANTICS 1
++| #define _TANDEM_SOURCE 1
++| #define STDC_HEADERS 1
++| #define HAVE_DIRENT_H 1
++| #define TIME_WITH_SYS_TIME 1
++| /* end confdefs.h. */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| # include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| # include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| int
++| main ()
++| {
++| if (sizeof ((size_t)))
++| return 0;
++| ;
++| return 0;
++| }
++configure:5543: result: yes
++configure:5554: checking for uint16_t
++configure:5554: gcc -c conftest.c >&5
++configure:5554: $? = 0
++configure:5554: result: yes
++configure:5566: checking for uint32_t
++configure:5566: gcc -c conftest.c >&5
++configure:5566: $? = 0
++configure:5566: result: yes
++configure:5580: checking for uint64_t
++configure:5580: gcc -c conftest.c >&5
++configure:5580: $? = 0
++configure:5580: result: yes
++configure:5594: checking for uint8_t
++configure:5594: gcc -c conftest.c >&5
++configure:5594: $? = 0
++configure:5594: result: yes
++configure:5610: checking for stdlib.h
++configure:5610: result: yes
++configure:5620: checking for GNU libc compatible malloc
++configure:5644: gcc -o conftest conftest.c >&5
++configure:5644: $? = 0
++configure:5644: ./conftest
++configure:5644: $? = 0
++configure:5654: result: yes
++configure:5678: checking for gettimeofday
++configure:5678: gcc -o conftest conftest.c >&5
++configure:5678: $? = 0
++configure:5678: result: yes
++configure:5678: checking for strchr
++configure:5678: gcc -o conftest conftest.c >&5
++conftest.c:53:6: warning: conflicting types for built-in function 'strchr' [enabled by default]
++ char strchr ();
++ ^
++configure:5678: $? = 0
++configure:5678: result: yes
++configure:5694: checking errno.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking errno.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for errno.h
++configure:5694: result: yes
++configure:5694: checking fcntl.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking fcntl.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for fcntl.h
++configure:5694: result: yes
++configure:5694: checking for fcntl.h
++configure:5694: result: yes
++configure:5694: checking float.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking float.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for float.h
++configure:5694: result: yes
++configure:5694: checking fftw3.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking fftw3.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for fftw3.h
++configure:5694: result: yes
++configure:5694: checking for inttypes.h
++configure:5694: result: yes
++configure:5694: checking libgen.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking libgen.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for libgen.h
++configure:5694: result: yes
++configure:5694: checking limits.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking limits.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for limits.h
++configure:5694: result: yes
++configure:5694: checking linux/ppdev.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking linux/ppdev.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for linux/ppdev.h
++configure:5694: result: yes
++configure:5694: checking dev/ppbus/ppi.h usability
++configure:5694: gcc -c conftest.c >&5
++conftest.c:73:27: fatal error: dev/ppbus/ppi.h: No such file or directory
++ #include <dev/ppbus/ppi.h>
++ ^
++compilation terminated.
++configure:5694: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define __EXTENSIONS__ 1
++| #define _ALL_SOURCE 1
++| #define _GNU_SOURCE 1
++| #define _POSIX_PTHREAD_SEMANTICS 1
++| #define _TANDEM_SOURCE 1
++| #define STDC_HEADERS 1
++| #define HAVE_DIRENT_H 1
++| #define TIME_WITH_SYS_TIME 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_MALLOC 1
++| #define HAVE_GETTIMEOFDAY 1
++| #define HAVE_STRCHR 1
++| #define HAVE_ERRNO_H 1
++| #define HAVE_FCNTL_H 1
++| #define HAVE_FCNTL_H 1
++| #define HAVE_FLOAT_H 1
++| #define HAVE_FFTW3_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_LIBGEN_H 1
++| #define HAVE_LIMITS_H 1
++| #define HAVE_LINUX_PPDEV_H 1
++| /* end confdefs.h. */
++| #include <stdio.h>
++| #ifdef HAVE_SYS_TYPES_H
++| # include <sys/types.h>
++| #endif
++| #ifdef HAVE_SYS_STAT_H
++| # include <sys/stat.h>
++| #endif
++| #ifdef STDC_HEADERS
++| # include <stdlib.h>
++| # include <stddef.h>
++| #else
++| # ifdef HAVE_STDLIB_H
++| # include <stdlib.h>
++| # endif
++| #endif
++| #ifdef HAVE_STRING_H
++| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++| # include <memory.h>
++| # endif
++| # include <string.h>
++| #endif
++| #ifdef HAVE_STRINGS_H
++| # include <strings.h>
++| #endif
++| #ifdef HAVE_INTTYPES_H
++| # include <inttypes.h>
++| #endif
++| #ifdef HAVE_STDINT_H
++| # include <stdint.h>
++| #endif
++| #ifdef HAVE_UNISTD_H
++| # include <unistd.h>
++| #endif
++| #include <dev/ppbus/ppi.h>
++configure:5694: result: no
++configure:5694: checking dev/ppbus/ppi.h presence
++configure:5694: gcc -E conftest.c
++conftest.c:40:27: fatal error: dev/ppbus/ppi.h: No such file or directory
++ #include <dev/ppbus/ppi.h>
++ ^
++compilation terminated.
++configure:5694: $? = 1
++configure: failed program was:
++| /* confdefs.h */
++| #define PACKAGE_NAME "WSPR"
++| #define PACKAGE_TARNAME "wspr"
++| #define PACKAGE_VERSION "4.0"
++| #define PACKAGE_STRING "WSPR 4.0"
++| #define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++| #define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++| #define STDC_HEADERS 1
++| #define HAVE_SYS_TYPES_H 1
++| #define HAVE_SYS_STAT_H 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_STRING_H 1
++| #define HAVE_MEMORY_H 1
++| #define HAVE_STRINGS_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_STDINT_H 1
++| #define HAVE_UNISTD_H 1
++| #define __EXTENSIONS__ 1
++| #define _ALL_SOURCE 1
++| #define _GNU_SOURCE 1
++| #define _POSIX_PTHREAD_SEMANTICS 1
++| #define _TANDEM_SOURCE 1
++| #define STDC_HEADERS 1
++| #define HAVE_DIRENT_H 1
++| #define TIME_WITH_SYS_TIME 1
++| #define HAVE_STDLIB_H 1
++| #define HAVE_MALLOC 1
++| #define HAVE_GETTIMEOFDAY 1
++| #define HAVE_STRCHR 1
++| #define HAVE_ERRNO_H 1
++| #define HAVE_FCNTL_H 1
++| #define HAVE_FCNTL_H 1
++| #define HAVE_FLOAT_H 1
++| #define HAVE_FFTW3_H 1
++| #define HAVE_INTTYPES_H 1
++| #define HAVE_LIBGEN_H 1
++| #define HAVE_LIMITS_H 1
++| #define HAVE_LINUX_PPDEV_H 1
++| /* end confdefs.h. */
++| #include <dev/ppbus/ppi.h>
++configure:5694: result: no
++configure:5694: checking for dev/ppbus/ppi.h
++configure:5694: result: no
++configure:5694: checking linux/parport.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking linux/parport.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for linux/parport.h
++configure:5694: result: yes
++configure:5694: checking pthread.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking pthread.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for pthread.h
++configure:5694: result: yes
++configure:5694: checking portaudio.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking portaudio.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for portaudio.h
++configure:5694: result: yes
++configure:5694: checking samplerate.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking samplerate.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for samplerate.h
++configure:5694: result: yes
++configure:5694: checking stddef.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking stddef.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for stddef.h
++configure:5694: result: yes
++configure:5694: checking for stdint.h
++configure:5694: result: yes
++configure:5694: checking for stdint.h
++configure:5694: result: yes
++configure:5694: checking stdio.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking stdio.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for stdio.h
++configure:5694: result: yes
++configure:5694: checking for stdlib.h
++configure:5694: result: yes
++configure:5694: checking for string.h
++configure:5694: result: yes
++configure:5694: checking for strings.h
++configure:5694: result: yes
++configure:5694: checking sys/ioctl.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking sys/ioctl.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for sys/ioctl.h
++configure:5694: result: yes
++configure:5694: checking for sys/ioctl.h
++configure:5694: result: yes
++configure:5694: checking sys/param.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking sys/param.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for sys/param.h
++configure:5694: result: yes
++configure:5694: checking sys/resource.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking sys/resource.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for sys/resource.h
++configure:5694: result: yes
++configure:5694: checking for sys/stat.h
++configure:5694: result: yes
++configure:5694: checking sys/syslog.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking sys/syslog.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for sys/syslog.h
++configure:5694: result: yes
++configure:5694: checking sys/time.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking sys/time.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for sys/time.h
++configure:5694: result: yes
++configure:5694: checking sys/wait.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking sys/wait.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for sys/wait.h
++configure:5694: result: yes
++configure:5694: checking termios.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking termios.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for termios.h
++configure:5694: result: yes
++configure:5694: checking for unistd.h
++configure:5694: result: yes
++configure:5694: checking wait.h usability
++configure:5694: gcc -c conftest.c >&5
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking wait.h presence
++configure:5694: gcc -E conftest.c
++configure:5694: $? = 0
++configure:5694: result: yes
++configure:5694: checking for wait.h
++configure:5694: result: yes
++configure:5729: checking Python3 --with-python3
++configure:5759: result: no
++configure:5766: checking Python3 using: python
++configure:5771: result: no
++configure:5794: checking Python3 using: python3
++configure:5815: result: yes Python 3.4.0
++configure:5833: checking F2PY --with-f2py
++configure:5863: result: no
++configure:5870: checking F2PY using: f2py
++configure:5876: result: no
++configure:5899: checking F2PY using: f2py3
++configure:5920: result: yes v2
++configure:5970: checking for _gfortran_st_write in -lgfortran
++configure:5995: gcc -o conftest conftest.c -lgfortran >&5
++configure:5995: $? = 0
++configure:6004: result: yes
++configure:6066: checking for Pa_Initialize in -lportaudio
++configure:6091: gcc -o conftest conftest.c -lportaudio -lgfortran >&5
++configure:6091: $? = 0
++configure:6100: result: yes
++configure:6145: checking for sfftw_destroy_plan_ in -lfftw3f
++configure:6170: gcc -o conftest conftest.c -lfftw3f -lportaudio -lportaudio -lgfortran >&5
++configure:6170: $? = 0
++configure:6179: result: yes
++configure:6209: checking for src_simple in -lsamplerate
++configure:6234: gcc -o conftest conftest.c -lsamplerate -lfftw3f -lfftw3f -lportaudio -lportaudio -lgfortran >&5
++configure:6234: $? = 0
++configure:6243: result: yes
++configure:6642: creating ./config.status
++
++## ---------------------- ##
++## Running config.status. ##
++## ---------------------- ##
++
++This file was extended by WSPR config.status 4.0, which was
++generated by GNU Autoconf 2.69. Invocation command line was
++
++ CONFIG_FILES =
++ CONFIG_HEADERS =
++ CONFIG_LINKS =
++ CONFIG_COMMANDS =
++ $ ./config.status
++
++on UB-64-GCC
++
++config.status:786: creating Makefile
++config.status:786: creating wspr.sh
++
++## ---------------- ##
++## Cache variables. ##
++## ---------------- ##
++
++ac_cv_build=x86_64-unknown-linux-gnu
++ac_cv_c_compiler_gnu=yes
++ac_cv_c_inline=inline
++ac_cv_c_int16_t=yes
++ac_cv_c_int32_t=yes
++ac_cv_c_int64_t=yes
++ac_cv_c_int8_t=yes
++ac_cv_c_uint16_t=yes
++ac_cv_c_uint32_t=yes
++ac_cv_c_uint64_t=yes
++ac_cv_c_uint8_t=yes
++ac_cv_cxx_compiler_gnu=yes
++ac_cv_env_CCC_set=
++ac_cv_env_CCC_value=
++ac_cv_env_CC_set=
++ac_cv_env_CC_value=
++ac_cv_env_CFLAGS_set=
++ac_cv_env_CFLAGS_value=
++ac_cv_env_CPPFLAGS_set=
++ac_cv_env_CPPFLAGS_value=
++ac_cv_env_CPP_set=
++ac_cv_env_CPP_value=
++ac_cv_env_CXXFLAGS_set=
++ac_cv_env_CXXFLAGS_value=
++ac_cv_env_CXX_set=
++ac_cv_env_CXX_value=
++ac_cv_env_FCFLAGS_set=
++ac_cv_env_FCFLAGS_value=
++ac_cv_env_FC_set=
++ac_cv_env_FC_value=
++ac_cv_env_LDFLAGS_set=
++ac_cv_env_LDFLAGS_value=
++ac_cv_env_LIBS_set=
++ac_cv_env_LIBS_value=
++ac_cv_env_build_alias_set=
++ac_cv_env_build_alias_value=
++ac_cv_env_host_alias_set=
++ac_cv_env_host_alias_value=
++ac_cv_env_target_alias_set=
++ac_cv_env_target_alias_value=
++ac_cv_fc_compiler_gnu=yes
++ac_cv_func_gettimeofday=yes
++ac_cv_func_malloc_0_nonnull=yes
++ac_cv_func_strchr=yes
++ac_cv_header_dev_ppbus_ppi_h=no
++ac_cv_header_dirent_dirent_h=yes
++ac_cv_header_errno_h=yes
++ac_cv_header_fcntl_h=yes
++ac_cv_header_fftw3_h=yes
++ac_cv_header_float_h=yes
++ac_cv_header_inttypes_h=yes
++ac_cv_header_libgen_h=yes
++ac_cv_header_limits_h=yes
++ac_cv_header_linux_parport_h=yes
++ac_cv_header_linux_ppdev_h=yes
++ac_cv_header_memory_h=yes
++ac_cv_header_minix_config_h=no
++ac_cv_header_portaudio_h=yes
++ac_cv_header_pthread_h=yes
++ac_cv_header_samplerate_h=yes
++ac_cv_header_stdc=yes
++ac_cv_header_stddef_h=yes
++ac_cv_header_stdint_h=yes
++ac_cv_header_stdio_h=yes
++ac_cv_header_stdlib_h=yes
++ac_cv_header_string_h=yes
++ac_cv_header_strings_h=yes
++ac_cv_header_sys_ioctl_h=yes
++ac_cv_header_sys_param_h=yes
++ac_cv_header_sys_resource_h=yes
++ac_cv_header_sys_stat_h=yes
++ac_cv_header_sys_syslog_h=yes
++ac_cv_header_sys_time_h=yes
++ac_cv_header_sys_types_h=yes
++ac_cv_header_sys_wait_h=yes
++ac_cv_header_termios_h=yes
++ac_cv_header_time=yes
++ac_cv_header_unistd_h=yes
++ac_cv_header_wait_h=yes
++ac_cv_host=x86_64-unknown-linux-gnu
++ac_cv_lib_fftw3f_sfftw_destroy_plan_=yes
++ac_cv_lib_gfortran__gfortran_st_write=yes
++ac_cv_lib_portaudio_Pa_Initialize=yes
++ac_cv_lib_samplerate_src_simple=yes
++ac_cv_objext=o
++ac_cv_path_AR=/usr/bin/ar
++ac_cv_path_AWK=/usr/bin/awk
++ac_cv_path_CHMOD=/bin/chmod
++ac_cv_path_CHOWN=/bin/chown
++ac_cv_path_CP=/bin/cp
++ac_cv_path_EGREP='/bin/grep -E'
++ac_cv_path_GREP=/bin/grep
++ac_cv_path_LD=/usr/bin/ld
++ac_cv_path_LN=/bin/ln
++ac_cv_path_MKDIR=/bin/mkdir
++ac_cv_path_MV=/bin/mv
++ac_cv_path_RANLIB=/usr/bin/ranlib
++ac_cv_path_RM=/bin/rm
++ac_cv_path_SED=/bin/sed
++ac_cv_path_SHELL=/bin/bash
++ac_cv_path_SORT=/usr/bin/sort
++ac_cv_path_TR=/usr/bin/tr
++ac_cv_prog_CPP='gcc -E'
++ac_cv_prog_ac_ct_CC=gcc
++ac_cv_prog_ac_ct_CXX=g++
++ac_cv_prog_ac_ct_FC=gfortran
++ac_cv_prog_ac_ct_RANLIB=ranlib
++ac_cv_prog_cc_c89=
++ac_cv_prog_cc_g=yes
++ac_cv_prog_cxx_g=yes
++ac_cv_prog_fc_g=yes
++ac_cv_prog_gcc_traditional=no
++ac_cv_prog_make_make_set=yes
++ac_cv_safe_to_define___extensions__=yes
++ac_cv_search_opendir='none required'
++ac_cv_type_pid_t=yes
++ac_cv_type_size_t=yes
++
++## ----------------- ##
++## Output variables. ##
++## ----------------- ##
++
++AR='/usr/bin/ar'
++AWK='/usr/bin/awk'
++BINDIR='/usr/bin'
++BUGS='wsjt-devel at lists.sourceforge.net'
++CC='gcc'
++CFLAGS=' -fPIC'
++CHMOD='/bin/chmod'
++CHOWN='/bin/chown'
++CP='/bin/cp'
++CPP='gcc -E'
++CPPFLAGS=' -I/usr/include -I/usr/local/include '
++CPU='x86_64'
++CXX='g++'
++CXXFLAGS='-g -O2'
++DEFS='-DPACKAGE_NAME=\"WSPR\" -DPACKAGE_TARNAME=\"wspr\" -DPACKAGE_VERSION=\"4.0\" -DPACKAGE_STRING=\"WSPR\ 4.0\" -DPACKAGE_BUGREPORT=\"wsjt-devel at lists.sourceforge.net\" -DPACKAGE_URL=\"http://www.physics.princeton.edu/pulsar/K1JT/wspr.html\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_ [...]
++DOCDIR='/usr/share/doc/wspr'
++ECHO_C=''
++ECHO_N='-n'
++ECHO_T=''
++EGREP='/bin/grep -E'
++EXEEXT=''
++F2PY='/usr/bin/f2py3'
++FC='gfortran'
++FCFLAGS='-g -O2'
++FCOPT='-cpp -fbounds-check -O2'
++FCV='gnu95'
++FC_LIB_PATH='/usr/lib/gcc/x86_64-linux-gnu/4.8/'
++FFLAGS=' -O2 -Wall -fbounds-check -fno-second-underscore -Wno-conversion -Wno-character-truncation -fPIC'
++GREP='/bin/grep'
++HOMEDIR='/home/ki7mt/.wspr'
++LD='/usr/bin/ld'
++LDFLAGS=''
++LIBDIR=' -L/usr/lib -L/usr/lib/i386-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib '
++LIBOBJS=''
++LIBS=' -lfftw3f -lgfortran -lportaudio -lpthread -lsamplerate '
++LN='/bin/ln'
++LTLIBOBJS=''
++MANDIR='/usr/share/man/man1'
++MKDIR='/bin/mkdir'
++MV='/bin/mv'
++OBJEXT='o'
++OS='linux-gnu'
++PACKAGE_BUGREPORT='wsjt-devel at lists.sourceforge.net'
++PACKAGE_NAME='WSPR'
++PACKAGE_STRING='WSPR 4.0'
++PACKAGE_TARNAME='wspr'
++PACKAGE_URL='http://www.physics.princeton.edu/pulsar/K1JT/wspr.html'
++PACKAGE_VERSION='4.0'
++PATH_SEPARATOR=':'
++PORTAUDIO_INCLUDE=''
++PORTAUDIO_LIBDIR=''
++PREFIX='/usr'
++PROGRAM='WSPR'
++PYTHON='/usr/bin/python3'
++RANLIB='/usr/bin/ranlib'
++RM='/bin/rm'
++SED='/bin/sed'
++SET_MAKE=''
++SHARED='/usr/share/wspr'
++SHELL='/bin/bash'
++SORT='/usr/bin/sort'
++TR='/usr/bin/tr'
++USER='ki7mt'
++VERSION='4.0'
++WEB='http://www.physics.princeton.edu/pulsar/K1JT/wspr.html'
++WSPRLIB='/usr/lib/wspr'
++ac_ct_CC='gcc'
++ac_ct_CXX='g++'
++ac_ct_FC='gfortran'
++bindir='${exec_prefix}/bin'
++build='x86_64-unknown-linux-gnu'
++build_alias=''
++build_cpu='x86_64'
++build_os='linux-gnu'
++build_vendor='unknown'
++datadir='${datarootdir}'
++datarootdir='${prefix}/share'
++docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
++dvidir='${docdir}'
++exec_prefix='${prefix}'
++host='x86_64-unknown-linux-gnu'
++host_alias=''
++host_cpu='x86_64'
++host_os='linux-gnu'
++host_vendor='unknown'
++htmldir='${docdir}'
++includedir='${prefix}/include'
++infodir='${datarootdir}/info'
++libdir='${exec_prefix}/lib'
++libexecdir='${exec_prefix}/libexec'
++localedir='${datarootdir}/locale'
++localstatedir='${prefix}/var'
++mandir='${datarootdir}/man'
++oldincludedir='/usr/include'
++pdfdir='${docdir}'
++prefix='/usr'
++program_transform_name='s,x,x,'
++psdir='${docdir}'
++sbindir='${exec_prefix}/sbin'
++sharedstatedir='${prefix}/com'
++sysconfdir='${prefix}/etc'
++target_alias=''
++
++## ----------- ##
++## confdefs.h. ##
++## ----------- ##
++
++/* confdefs.h */
++#define PACKAGE_NAME "WSPR"
++#define PACKAGE_TARNAME "wspr"
++#define PACKAGE_VERSION "4.0"
++#define PACKAGE_STRING "WSPR 4.0"
++#define PACKAGE_BUGREPORT "wsjt-devel at lists.sourceforge.net"
++#define PACKAGE_URL "http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++#define STDC_HEADERS 1
++#define HAVE_SYS_TYPES_H 1
++#define HAVE_SYS_STAT_H 1
++#define HAVE_STDLIB_H 1
++#define HAVE_STRING_H 1
++#define HAVE_MEMORY_H 1
++#define HAVE_STRINGS_H 1
++#define HAVE_INTTYPES_H 1
++#define HAVE_STDINT_H 1
++#define HAVE_UNISTD_H 1
++#define __EXTENSIONS__ 1
++#define _ALL_SOURCE 1
++#define _GNU_SOURCE 1
++#define _POSIX_PTHREAD_SEMANTICS 1
++#define _TANDEM_SOURCE 1
++#define STDC_HEADERS 1
++#define HAVE_DIRENT_H 1
++#define TIME_WITH_SYS_TIME 1
++#define HAVE_STDLIB_H 1
++#define HAVE_MALLOC 1
++#define HAVE_GETTIMEOFDAY 1
++#define HAVE_STRCHR 1
++#define HAVE_ERRNO_H 1
++#define HAVE_FCNTL_H 1
++#define HAVE_FCNTL_H 1
++#define HAVE_FLOAT_H 1
++#define HAVE_FFTW3_H 1
++#define HAVE_INTTYPES_H 1
++#define HAVE_LIBGEN_H 1
++#define HAVE_LIMITS_H 1
++#define HAVE_LINUX_PPDEV_H 1
++#define HAVE_LINUX_PARPORT_H 1
++#define HAVE_PTHREAD_H 1
++#define HAVE_PORTAUDIO_H 1
++#define HAVE_SAMPLERATE_H 1
++#define HAVE_STDDEF_H 1
++#define HAVE_STDINT_H 1
++#define HAVE_STDINT_H 1
++#define HAVE_STDIO_H 1
++#define HAVE_STDLIB_H 1
++#define HAVE_STRING_H 1
++#define HAVE_STRINGS_H 1
++#define HAVE_SYS_IOCTL_H 1
++#define HAVE_SYS_IOCTL_H 1
++#define HAVE_SYS_PARAM_H 1
++#define HAVE_SYS_RESOURCE_H 1
++#define HAVE_SYS_STAT_H 1
++#define HAVE_SYS_SYSLOG_H 1
++#define HAVE_SYS_TIME_H 1
++#define HAVE_SYS_WAIT_H 1
++#define HAVE_TERMIOS_H 1
++#define HAVE_UNISTD_H 1
++#define HAVE_WAIT_H 1
++#define HAVE_PY3 1
++#define PY3_PATH "/usr/bin/python3"
++#define HAVE_F2PY 1
++#define F2PY "/usr/bin/f2py3"
++#define HAVE_LIBGFORTRAN 1
++#define FC_LIB_PATH "/usr/lib/gcc/x86_64-linux-gnu/4.8/"
++#define FC "gfortran"
++#define HAVE_GFORTRAN 1
++#define HAVE_GFORTRAN_LIB 1
++#define HAVE_LIBPORTAUDIO 1
++#define HAVE_PORTAUDIO_H 1
++#define HAVE_PORTAUDIO_LIB 1
++#define HAVE_LIBFFTW3F 1
++#define HAVE_FFTW3_LIB 1
++#define HAVE_LIBSAMPLERATE 1
++#define HAVE_SAMPLERATE_H 1
++#define HAVE_SAMPLERATE_LIB 1
++
++configure: exit 0
+--- /dev/null
++++ wspr-4.0.4/config.status
+@@ -0,0 +1,953 @@
++#! /bin/bash
++# Generated by configure.
++# 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-/bin/bash}
++export SHELL
++## -------------------- ##
++## 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. ##
++## ----------------------------------- ##
++# 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 WSPR $as_me 4.0, 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`
++"
++
++# Files that config.status was made for.
++config_files=" Makefile wspr.sh"
++
++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
++
++Configuration files:
++$config_files
++
++Report bugs to <wsjt-devel at lists.sourceforge.net>.
++WSPR home page: <http://www.physics.princeton.edu/pulsar/K1JT/wspr.html>."
++
++ac_cs_config=""
++ac_cs_version="\
++WSPR config.status 4.0
++configured by /home/ki7mt/debian/WSPR/wspr/configure, 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='/home/ki7mt/debian/WSPR/wspr'
++srcdir='.'
++test -n "$AWK" || AWK=awk
++# 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;;
++ --he | --h | --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
++
++if $ac_cs_recheck; then
++ set X /bin/bash '/home/ki7mt/debian/WSPR/wspr/configure' $ac_configure_extra_args --no-create --no-recursion
++ shift
++ $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6
++ CONFIG_SHELL='/bin/bash'
++ export CONFIG_SHELL
++ exec "$@"
++fi
++
++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
++
++
++# Handling of arguments.
++for ac_config_target in $ac_config_targets
++do
++ case $ac_config_target in
++ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
++ "wspr.sh") CONFIG_FILES="$CONFIG_FILES wspr.sh" ;;
++
++ *) 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
++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 2>/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" &&
++cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
++S["LTLIBOBJS"]=""
++S["USER"]="ki7mt"
++S["HOMEDIR"]="/home/ki7mt/.wspr"
++S["BINDIR"]="/usr/bin"
++S["WSPRLIB"]="/usr/lib/wspr"
++S["SHARED"]="/usr/share/wspr"
++S["LIBDIR"]=" -L/usr/lib -L/usr/lib/i386-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib "
++S["FCOPT"]="-cpp -fbounds-check -O2"
++S["FFLAGS"]=" -O2 -Wall -fbounds-check -fno-second-underscore -Wno-conversion -Wno-character-truncation -fPIC"
++S["WEB"]="http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++S["VERSION"]="4.0"
++S["PROGRAM"]="WSPR"
++S["BUGS"]="wsjt-devel at lists.sourceforge.net"
++S["PREFIX"]="/usr"
++S["PORTAUDIO_LIBDIR"]=""
++S["PORTAUDIO_INCLUDE"]=""
++S["FCV"]="gnu95"
++S["FC_LIB_PATH"]="/usr/lib/gcc/x86_64-linux-gnu/4.8/"
++S["F2PY"]="/usr/bin/f2py3"
++S["PYTHON"]="/usr/bin/python3"
++S["LIBOBJS"]=""
++S["CPU"]="x86_64"
++S["OS"]="linux-gnu"
++S["TR"]="/usr/bin/tr"
++S["SORT"]="/usr/bin/sort"
++S["SED"]="/bin/sed"
++S["RM"]="/bin/rm"
++S["MV"]="/bin/mv"
++S["MKDIR"]="/bin/mkdir"
++S["LN"]="/bin/ln"
++S["LD"]="/usr/bin/ld"
++S["CHMOD"]="/bin/chmod"
++S["CHOWN"]="/bin/chown"
++S["CP"]="/bin/cp"
++S["AWK"]="/usr/bin/awk"
++S["AR"]="/usr/bin/ar"
++S["RANLIB"]="/usr/bin/ranlib"
++S["SET_MAKE"]=""
++S["EGREP"]="/bin/grep -E"
++S["GREP"]="/bin/grep"
++S["CPP"]="gcc -E"
++S["ac_ct_FC"]="gfortran"
++S["FCFLAGS"]="-g -O2"
++S["FC"]="gfortran"
++S["ac_ct_CXX"]="g++"
++S["CXXFLAGS"]="-g -O2"
++S["CXX"]="g++"
++S["OBJEXT"]="o"
++S["EXEEXT"]=""
++S["ac_ct_CC"]="gcc"
++S["CPPFLAGS"]=" -I/usr/include -I/usr/local/include "
++S["LDFLAGS"]=""
++S["CFLAGS"]=" -fPIC"
++S["CC"]="gcc"
++S["MANDIR"]="/usr/share/man/man1"
++S["DOCDIR"]="/usr/share/doc/wspr"
++S["host_os"]="linux-gnu"
++S["host_vendor"]="unknown"
++S["host_cpu"]="x86_64"
++S["host"]="x86_64-unknown-linux-gnu"
++S["build_os"]="linux-gnu"
++S["build_vendor"]="unknown"
++S["build_cpu"]="x86_64"
++S["build"]="x86_64-unknown-linux-gnu"
++S["target_alias"]=""
++S["host_alias"]=""
++S["build_alias"]=""
++S["LIBS"]=" -lfftw3f -lgfortran -lportaudio -lpthread -lsamplerate "
++S["ECHO_T"]=""
++S["ECHO_N"]="-n"
++S["ECHO_C"]=""
++S["DEFS"]="-DPACKAGE_NAME=\\\"WSPR\\\" -DPACKAGE_TARNAME=\\\"wspr\\\" -DPACKAGE_VERSION=\\\"4.0\\\" -DPACKAGE_STRING=\\\"WSPR\\ 4.0\\\" -DPACKAGE_BUGREPORT=\\\"wsjt-devel at lists.s"\
++"ourceforge.net\\\" -DPACKAGE_URL=\\\"http://www.physics.princeton.edu/pulsar/K1JT/wspr.html\\\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 "\
++"-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 "\
++"-D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STD"\
++"LIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRCHR=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FLOAT_H=1 -DHAVE_FFTW3_H=1 -"\
++"DHAVE_INTTYPES_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LINUX_PPDEV_H=1 -DHAVE_LINUX_PARPORT_H=1 -DHAVE_PTHREAD_H=1 -DHAVE_PORTAUDIO_H=1 -DHAV"\
++"E_SAMPLERATE_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAV"\
++"E_SYS_IOCTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_SYSLOG_H=1 -DHAVE_SYS_TIME_H=1 -DHA"\
++"VE_SYS_WAIT_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WAIT_H=1 -DHAVE_PY3=1 -DPY3_PATH=\\\"/usr/bin/python3\\\" -DHAVE_F2PY=1 -DF2PY=\\\"/usr/bin/f2"\
++"py3\\\" -DHAVE_LIBGFORTRAN=1 -DFC_LIB_PATH=\\\"/usr/lib/gcc/x86_64-linux-gnu/4.8/\\\" -DFC=\\\"gfortran\\\" -DHAVE_GFORTRAN=1 -DHAVE_GFORTRAN_LIB=1 -DHAVE_LIB"\
++"PORTAUDIO=1 -DHAVE_PORTAUDIO_H=1 -DHAVE_PORTAUDIO_LIB=1 -DHAVE_LIBFFTW3F=1 -DHAVE_FFTW3_LIB=1 -DHAVE_LIBSAMPLERATE=1 -DHAVE_SAMPLERATE_H=1 -DHAVE_SA"\
++"MPLERATE_LIB=1"
++S["mandir"]="${datarootdir}/man"
++S["localedir"]="${datarootdir}/locale"
++S["libdir"]="${exec_prefix}/lib"
++S["psdir"]="${docdir}"
++S["pdfdir"]="${docdir}"
++S["dvidir"]="${docdir}"
++S["htmldir"]="${docdir}"
++S["infodir"]="${datarootdir}/info"
++S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
++S["oldincludedir"]="/usr/include"
++S["includedir"]="${prefix}/include"
++S["localstatedir"]="${prefix}/var"
++S["sharedstatedir"]="${prefix}/com"
++S["sysconfdir"]="${prefix}/etc"
++S["datadir"]="${datarootdir}"
++S["datarootdir"]="${prefix}/share"
++S["libexecdir"]="${exec_prefix}/libexec"
++S["sbindir"]="${exec_prefix}/sbin"
++S["bindir"]="${exec_prefix}/bin"
++S["program_transform_name"]="s,x,x,"
++S["prefix"]="/usr"
++S["exec_prefix"]="${prefix}"
++S["PACKAGE_URL"]="http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
++S["PACKAGE_BUGREPORT"]="wsjt-devel at lists.sourceforge.net"
++S["PACKAGE_STRING"]="WSPR 4.0"
++S["PACKAGE_VERSION"]="4.0"
++S["PACKAGE_TARNAME"]="wspr"
++S["PACKAGE_NAME"]="WSPR"
++S["PATH_SEPARATOR"]=":"
++S["SHELL"]="/bin/bash"
++_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
++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
++fi # test -n "$CONFIG_FILES"
++
++
++eval set X " :F $CONFIG_FILES "
++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
+
-+wsprcode: wsprcode.o thnix_stub.o
-+ ${FC} ${FFLAGS} ${LDFLAGS} -o wsprcode wsprcode.o thnix_stub.o libwspr.a -pthread
++ 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=.
+
-+OBJS3 = azdist.o ccf2.o chklevel.o db.o decode.o decode162.o deg2grid.o \
-+ encode232.o fano232.o fchisq.o fil1.o flat3.o four2a.o\
-+ fthread.o gencwid.o genmept.o genwspr.o geodist.o getrms.o getutc.o \
-+ gmtime2.o gran.o grid2deg.o hash.o inter_mept.o iqdemod.o \
-+ mept162.o mix162.o morse.o msgtrim.o nchar.o nhash.o pack50.o \
-+ packcall.o packgrid.o packname.o packpfx.o packprop.o packtext2.o \
-+ padevsub.o pctile.o peakup.o phasetx.o ps162.o ptt_unix.o rx.o \
-+ rxtxcoord.o set.o sort.o sound.o spec162.o speciq.o ssort.o \
-+ start_threads.o startdec.o startrx.o starttx.o sync162.o \
-+ twkfreq.o tx.o unpack50.o unpackcall.o unpackgrid.o \
-+ unpackname.o unpackpfx.o unpackprop.o unpacktext2.o wfile5.o \
-+ wqdecode.o wqencode.o wspr2.o xcor162.o xfft.o
++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
+
-+# Build Library: libwspr.a
-+libwspr.a: ${OBJS3} acom1.f90 acom2.f90
-+ ${AR} cr libwspr.a ${OBJS3}
-+ ranlib libwspr.a
++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
+
-+# Build FMT Applications
-+fmtest: fmtest.f90 libwspr.a
-+ ${FC} ${FFLAGS} ${LDFLAGS} -o fmtest fmtest.f90 libwspr.a -lfftw3f -lportaudio
+
-+fmtave: fmtave.f90
-+ ${FC} ${FFLAGS} ${LDFLAGS} -o fmtave fmtave.f90
++ case $ac_mode in
++ :F)
++ #
++ # CONFIG_FILE
++ #
+
-+fcal: fcal.f90
-+ ${FC} ${FFLAGS} ${LDFLAGS} -o fcal fcal.f90
++# 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;}
++ ac_datarootdir_hack='
++ s&@datadir@&${datarootdir}&g
++ s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
++ s&@infodir@&${datarootdir}/info&g
++ s&@localedir@&${datarootdir}/locale&g
++ s&@mandir@&${datarootdir}/man&g
++ s&\${datarootdir}&${prefix}/share&g' ;;
++esac
++ac_sed_extra="/^[ ]*VPATH[ ]*=[ ]*/{
++h
++s///
++s/^/:/
++s/[ ]*$/:/
++s/:\$(srcdir):/:/g
++s/:\${srcdir}:/:/g
++s/:@srcdir@:/:/g
++s/^:*//
++s/:*$//
++x
++s/\(=[ ]*\).*/\1/
++G
++s/\n//
++s/^[^=]*=[ ]*$//
++}
+
-+fmeasure: fmeasure.f90
-+ ${FC} ${FFLAGS} ${LDFLAGS} -o fmeasure fmeasure.f90
++: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
++$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
+
-+# SRC for w.so
-+F2PYSRCS = wspr1.f90 getfile.f90 paterminate.f90 audiodev.f90
++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
++ ;;
+
-+# Build W.SO & MV to WsprMod/
-+WsprMod/w.so: libwspr.a ${F2PYSRCS} acom1.f90
-+ ${F2PY} -c --quiet --fcompiler=${FCV} --f77exec=${FC} --f90exec=${FC} \
-+ --opt="${FCOPT} ${LDFLAGS}" thnix.o ${LIBS} libwspr.a -m w ${F2PYSRCS}
-+ ${MV} w*.so WsprMod/w.so
+
-+# Cleanup Source Tree
-+.PHONY: clean
++
++ esac
++
++done # for ac_tag
++
++
++as_fn_exit 0
--- /dev/null
-+++ wspr-4.0.r4339/configure
-@@ -0,0 +1,7545 @@
++++ wspr-4.0.4/configure
+@@ -0,0 +1,7678 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.69 for WSPR 4.0.
+#
+# Report bugs to <wsjt-devel at lists.sourceforge.net>.
+#
-+# $Id: configure.ac 4337 2014-09-18 18:01:13Z ki7mt $
++# $Id: configure.ac 4881 2015-01-04 17:43:40Z g4kla $
+#
+#
+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -790,6 +3484,8 @@ Last-Update: <YYYY-MM-DD>
+PROGRAM
+BUGS
+PREFIX
++PORTAUDIO_LIBDIR
++PORTAUDIO_INCLUDE
+FCV
+FC_LIB_PATH
+F2PY
@@ -881,7 +3577,10 @@ Last-Update: <YYYY-MM-DD>
+enable_option_checking
+with_docdir
+with_mandir
++enable_flags
++with_python3
+with_f2py
++with_gfortran
+'
+ ac_precious_vars='build_alias
+host_alias
@@ -1506,13 +4205,20 @@ Last-Update: <YYYY-MM-DD>
+ 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-flags=ARG =native or =none
++
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
-+ --with-docdir=PATH path to documentuments
-+ --with-mandir=PATH path to manpages
-+ --with-python3=PATH path to: ../python3
-+ --with-f2py=PATH path to: ../f2py ../f2py3
++ --with-docdir=DIR Path to documentation
++ --with-mandir=DIR Path to manpages
++ --with-python3=DIR Path to python3
++ --with-f2py=DIR Path to f2py | f2py3
++ --with-gfortran=DIR Path to gfortran
+
+Some influential environment variables:
+ CC C compiler command
@@ -1602,7 +4308,7 @@ Last-Update: <YYYY-MM-DD>
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+
-+$Id: configure.ac 4337 2014-09-18 18:01:13Z ki7mt $
++$Id: configure.ac 4881 2015-01-04 17:43:40Z g4kla $
+_ACEOF
+ exit
+fi
@@ -2714,6 +5420,42 @@ Last-Update: <YYYY-MM-DD>
+fi
+
+# ------------------------------------------------------------------------------
++# Enable Optimization ( none | native )
++# ------------------------------------------------------------------------------
++flag_status=default
++
++# Check whether --enable-flags was given.
++if test "${enable_flags+set}" = set; then :
++ enableval=$enable_flags; flags=$enable_flags
++fi
++
++if test -n "${enable_flags}"; then
++ case "${enable_flags}" in
++ none )
++ OPT_FLAGS=""
++ flag_status=${OPT_FLAGS}
++ ;;
++ native )
++ OPT_FLAGS="-mtune=native"
++ flag_status=${OPT_FLAGS}
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Optimization: \"${enable_flags}\"" >&5
++$as_echo "Using Optimization: \"${enable_flags}\"" >&6; }
++ ;;
++ * )
++ echo "Unsupported Optimization: ${enable_flags}"
++ echo
++ echo 'Only "none or native" are supported at this time'
++ echo
++ echo 'Example:'
++ echo './autogen.sh --enable-optimization=native'
++ echo './configure --enable-optimization=native'
++ echo
++ exit 1
++ ;;
++ esac
++fi
++
++# ------------------------------------------------------------------------------
+# check compilers
+# ------------------------------------------------------------------------------
+OCFLAGS="$CFLAGS"
@@ -5824,14 +8566,14 @@ Last-Update: <YYYY-MM-DD>
+HAVE_PY3=no
+
+# check with-enable first
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 --with-python3" >&5
-+$as_echo_n "checking Python3 --with-python3... " >&6; }
+
-+# Check whether --with-f2py was given.
-+if test "${with_f2py+set}" = set; then :
-+ withval=$with_f2py; PY3="$withval"
++# Check whether --with-python3 was given.
++if test "${with_python3+set}" = set; then :
++ withval=$with_python3; PY3=$with_python3
+fi
+
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 --with-python3" >&5
++$as_echo_n "checking Python3 --with-python3... " >&6; }
+
+# if --with-python3 is not empty
+if test -n "$PY3"; then
@@ -5927,15 +8669,15 @@ Last-Update: <YYYY-MM-DD>
+
+HAVE_F2PY=no
+
-+# check with-enable first
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking F2PY --with-f2py" >&5
-+$as_echo_n "checking F2PY --with-f2py... " >&6; }
++# check with-f2py first
+
+# Check whether --with-f2py was given.
+if test "${with_f2py+set}" = set; then :
-+ withval=$with_f2py; F2PY="$withval"
++ withval=$with_f2py; F2PY=$with_f2py
+fi
+
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking F2PY --with-f2py" >&5
++$as_echo_n "checking F2PY --with-f2py... " >&6; }
+
+# if --with-f2py is not empty
+if test -n "$F2PY"; then
@@ -6030,6 +8772,47 @@ Last-Update: <YYYY-MM-DD>
+# check gfortran
+# ------------------------------------------------------------------------------
+
++gfortran="gfortran"
++#
++# Sames as portadio, use case for FreeBSD to prevent Linux shell errors. -gb
++#
++case "${host_os}" in
++ *freebsd* )
++ # if --with-gfortran is not empty
++
++# Check whether --with-gfortran was given.
++if test "${with_gfortran+set}" = set; then :
++ withval=$with_gfortran; gfortran=$with_gfortran
++fi
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking F2PY --with-f2py" >&5
++$as_echo_n "checking F2PY --with-f2py... " >&6; }
++ if test -n ${with_gfortran}; then
++ gfortran="${with_gfortran}"
++ gfpath=`${gfortran} --print-file-name=|awk -F/ '{print $1 "/" $2 "/" $3 "/" $4 "/" $5}'`
++ LDFLAGS="-L${gfpath} ${LDFLAGS}"
++ fi
++ ;;
++ *darwin* )
++ # if --with-gfortran is not empty
++
++# Check whether --with-gfortran was given.
++if test "${with_gfortran+set}" = set; then :
++ withval=$with_gfortran; gfortran=$with_gfortran
++fi
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking F2PY --with-f2py" >&5
++$as_echo_n "checking F2PY --with-f2py... " >&6; }
++ if test -n ${with_gfortran}; then
++ gfortran="${with_gfortran}"
++ gfpath=`${gfortran} --print-file-name=|awk -F/ '{print $1 "/" $2 "/" $3 "/" $4 "/" $5}'`
++ LDFLAGS="-L${gfpath} ${LDFLAGS}"
++ fi
++ ;;
++ *)
++ ;;
++esac
++
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gfortran_st_write in -lgfortran" >&5
+$as_echo_n "checking for _gfortran_st_write in -lgfortran... " >&6; }
+if ${ac_cv_lib_gfortran__gfortran_st_write+:} false; then :
@@ -6080,7 +8863,7 @@ Last-Update: <YYYY-MM-DD>
+ HAVE_GFORTRAN=0
+else
+ HAVE_GFORTRAN=1
-+ FC=gfortran
++ FC=${gfortran}
+ FCV=gnu95
+ FC_LIB_PATH=`${FC} -print-file-name=`
+
@@ -6108,6 +8891,23 @@ Last-Update: <YYYY-MM-DD>
+# ------------------------------------------------------------------------------
+# check portaudio
+# ------------------------------------------------------------------------------
++HAVE_PORTAUDIO=0
++#
++# This unpleasant hack due to FreeBSD supporting both portaudio2 (v19+)
++# and older portaudio. Many programs depend on older. Sorry :-( - db
++#
++
++case "${host_os}" in
++ *freebsd* )
++ PORTAUDIO_INCLUDE="-I/usr/local/include/portaudio2"
++
++ PORTAUDIO_LIBDIR="-L/usr/local/lib/portaudio2"
++
++ LDFLAGS="-L/usr/local/lib/portaudio2 ${LDFLAGS}"
++ ;;
++ *)
++ ;;
++esac
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
+$as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
@@ -6169,11 +8969,25 @@ Last-Update: <YYYY-MM-DD>
+
+fi
+
++#
++# Ensure FreeBSD picks up the right portaudio -db
++#
++case "${host_os}" in
++ *freebsd* )
++ PORTAUDIO_INCLUDE="-I/usr/local/include/portaudio2"
++
++ PORTAUDIO_LIBDIR="-L/usr/local/lib/portaudio2"
++
++ LDFLAGS="-L/usr/local/lib/portaudio2 ${LDFLAGS}"
++ ;;
++ *)
++ ;;
++esac
+
+# ------------------------------------------------------------------------------
+# check fftw3
+# ------------------------------------------------------------------------------
-+
++HAVE_FFTW3_LIB=0
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sfftw_destroy_plan_ in -lfftw3f" >&5
+$as_echo_n "checking for sfftw_destroy_plan_ in -lfftw3f... " >&6; }
+if ${ac_cv_lib_fftw3f_sfftw_destroy_plan_+:} false; then :
@@ -6237,6 +9051,7 @@ Last-Update: <YYYY-MM-DD>
+# check samplerate
+# ------------------------------------------------------------------------------
+
++HAVE_SAMPLERATE=0
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_simple in -lsamplerate" >&5
+$as_echo_n "checking for src_simple in -lsamplerate... " >&6; }
+if ${ac_cv_lib_samplerate_src_simple+:} false; then :
@@ -6316,31 +9131,37 @@ Last-Update: <YYYY-MM-DD>
+ FCOPT="-cpp -fbounds-check -O2"
+ case "${host_cpu}" in
+ *armv6* )
-+ CFLAGS="-O2 -march=armv6j -mfpu=vfp -mfloat-abi=hard -fpic"
-+ FFLAGS="-O2 -Wall -fno-range-check -ffixed-line-length-none \
++ CFLAGS="${OPT_FLAGS} -O2 -march=armv6j -mfpu=vfp -mfloat-abi=hard -fpic"
++ FFLAGS="${OPT_FLAGS} -O2 -Wall -fno-range-check -ffixed-line-length-none \
+-Wno-character-truncation -Wno-conversion -Wtabs -mfloat-abi=hard -fPIC"
-+ LDFLAGS="-Wl,-O1 -Wl,--as-needed"
++ ;;
++ *armv7* )
++ CFLAGS="${OPT_FLAGS} -fpic"
++ FFLAGS="${OPT_FLAGS} -O2 -Wall -fbounds-check -fno-second-underscore \
++-Wno-conversion -Wno-character-truncation -fPIC"
+ ;;
+ *x86_64* )
-+ CFLAGS="-fPIC"
-+ FFLAGS="-O2 -Wall -fbounds-check -fno-second-underscore \
++ CFLAGS="${OPT_FLAGS} -fPIC"
++ FFLAGS="${OPT_FLAGS} -O2 -Wall -fbounds-check -fno-second-underscore \
+-Wno-conversion -Wno-character-truncation -fPIC"
-+ LDFLAGS="-Wl,-O1 -Wl,--as-needed"
+ ;;
+ *i386* )
-+ CFLAGS="-fPIC"
-+ FFLAGS="-O2 -Wall -fbounds-check -fno-second-underscore \
++ CFLAGS="${OPT_FLAGS} -fPIC"
++ FFLAGS="${OPT_FLAGS} -O2 -Wall -fbounds-check -fno-second-underscore \
+-Wno-conversion -Wno-character-truncation -fPIC"
-+ LDFLAGS="-Wl,-O1 -Wl,--as-needed"
+ ;;
+ esac
+ ;;
-+ *-*-darwin-* )
++ *darwin* )
+ FCOPT="-cpp -fbounds-check -O2"
+ CFLAGS="-Wall -O0 -fPIC -m64"
+ FFLAGS="-O2 -m64 -Wall -fbounds-check -fno-second-underscore \
+-Wno-conversion -Wno-character-truncation -fPIC"
-+ LDFLAGS="-Wl,-O1 -Wl,--as-needed"
++ ;;
++ *freebsd* )
++ CFLAGS="${CFLAGS} -fpic"
++ FFLAGS="-O2 -m64 -Wall -fbounds-check -fno-second-underscore \
++-Wno-conversion -Wno-character-truncation -fPIC"
+ ;;
+ *)
+ as_fn_error $? "Unsupported System: ${host_os}." "$LINENO" 5
@@ -6361,13 +9182,10 @@ Last-Update: <YYYY-MM-DD>
+ echo "3 Include Python3.2+:"
+ echo
+ echo 'Example:'
++ echo './autogen.sh --with-python3="/home/$USER/test/python3"'
+ echo './configure --with-python3="/home/$USER/test/python3"'
+ echo
+ exit 1
-+else
-+ # add python3 path to wspr.sh script
-+ sed -i '/wspr.py/d' wspr.sh
-+ echo "$PY3_PATH -O wspr.py" >> wspr.sh
+fi
+
+# ------------------------------------------------------------------------------
@@ -6384,6 +9202,7 @@ Last-Update: <YYYY-MM-DD>
+ echo "3 Include F2PY:"
+ echo
+ echo 'Example:'
++ echo './autogen.sh --with-f2py="/home/$USER/test/f2py"'
+ echo './configure --with-f2py="/home/$USER/test/f2py"'
+ echo
+ exit 1
@@ -6404,6 +9223,11 @@ Last-Update: <YYYY-MM-DD>
+ echo "Possible Solutions:"
+ echo "1 Install your distro version of: gfortran"
+ echo "2 On x86_64 systems, ensure you include x86 / i386 libgfortran"
++ echo "3 Include Gfortran:"
++ echo
++ echo 'Example:'
++ echo './autogen.sh --with-gfortran=/path./to/gfortran'
++ echo './configure --with-f2py=/path./to/gfortran'
+ echo
+ exit 1
+fi
@@ -6509,7 +9333,7 @@ Last-Update: <YYYY-MM-DD>
+
+USER="$USER"
+
-+ac_config_files="$ac_config_files Makefile"
++ac_config_files="$ac_config_files Makefile wspr.sh"
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
@@ -7218,6 +10042,7 @@ Last-Update: <YYYY-MM-DD>
+do
+ case $ac_config_target in
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
++ "wspr.sh") CONFIG_FILES="$CONFIG_FILES wspr.sh" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+ esac
@@ -7678,9 +10503,11 @@ Last-Update: <YYYY-MM-DD>
+echo "-------------------------------------------"
+echo
+echo " Package: .........: ${PROGRAM} ${VERSION}"
++echo " Optimization .....: ${flag_status}"
+echo " Python3: .........: ${PYTHON}"
+echo " F2py: ............: ${F2PY}"
-+echo " Fcomplier: .......: ${FC}"
++echo " Fcompiler: .......: ${FC}"
++echo " FC Lib Path ......: ${FC_LIB_PATH}"
+echo " Samplerate: ......: ${srstatus}"
+echo " FFTW3: ...........: ${ffstatus}"
+echo " Portaudio: .......: ${pastatus}"
@@ -7695,3 +10522,80 @@ Last-Update: <YYYY-MM-DD>
+echo " make && sudo make install"
+echo
+echo
+--- /dev/null
++++ wspr-4.0.4/wspr.sh
+@@ -0,0 +1,74 @@
++#!/bin/sh
++#-------------------------------------------------------------------------------
++# This file is part of the WSPR application, Weak Signal Propogation Reporter
++#
++# File Name: wspr.sh
++# Description: Shell script wrapper to update or copy files from system install
++#
++# Copyright (C) 2001-2014 Joseph Taylor, K1JT
++# License: GNU GPL v3
++#
++# 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, write to the Free Software Foundation, Inc., 51 Franklin
++# Street, Fifth Floor, Boston, MA 02110-1301, USA.
++#
++#-------------------------------------------------------------------------------
++
++set -e
++
++os=`uname`
++
++# non gnu cp
++copyur() {
++ for f in $1/*;do
++ if [ $f -nt `basename $f` ]; then
++ if [ ! -d `basename $f` ]; then
++ cp $f .
++ fi
++ fi
++ done
++}
++
++# set dir's
++_HOMEDIR="/home/$USER/.wspr"
++
++if [ ${os} != "FreeBSD" ]; then
++# make a few dir's
++ mkdir -p $_HOMEDIR
++
++# update files only if newer
++ cp -uR /usr/share/wspr/* $_HOMEDIR
++ cp -uR /usr/share/doc/wspr/* $_HOMEDIR/
++ cp -uR /usr/lib/wspr/* $_HOMEDIR
++
++else
++# update out of date files
++if [ -e $_HOMEDIR ] ; then
++ cd $_HOMEDIR
++ copyur /usr/local/share/wspr
++ copyur /usr/local/share/doc/wspr
++ cd $_HOMEDIR/WsprMod
++ copyur /usr/local/lib/wspr/WsprMod
++ cd $_HOMEDIR
++ else
++# if _HOMEDIR does not exist make it
++ mkdir $_HOMEDIR
++ cp -R /usr/share/wspr/* $_HOMEDIR
++ cp -R /usr/share/doc/wspr/* $_HOMEDIR
++ cp -R /usr/lib/wspr/* $_HOMEDIR
++ fi
++fi
++
++# run: py location updated by configure.ac
++cd $_HOMEDIR
++/usr/bin/python3 -O wspr.py
diff --git a/debian/patches/makefile.in.patch b/debian/patches/makefile.in.patch
deleted file mode 100644
index 006ea92..0000000
--- a/debian/patches/makefile.in.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-Description: <short summary of the patch>
- Update $HOMDIR to use $(LOGNAME)
- .
- wspr (4.0.r4339-1) unstable; urgency=medium
- .
- * Update to latest SVN version r4339
-Author: Greg Beam <ki7mt at yahoo.com>
-
----
-The information above should follow the Patch Tagging Guidelines, please
-checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
-are templates for supplementary fields that you might want to add:
-
-Origin: <vendor|upstream|other>, <url of original patch>
-Bug: <url in upstream bugtracker>
-Bug-Debian: http://bugs.debian.org/<bugnumber>
-Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
-Forwarded: <no|not-needed|url proving that it has been forwarded>
-Reviewed-By: <name and email of someone who approved the patch>
-Last-Update: <YYYY-MM-DD>
-
---- wspr-4.0.r4339.orig/Makefile.in
-+++ wspr-4.0.r4339/Makefile.in
-@@ -29,7 +29,7 @@ MKDIR := @MKDIR@
- INATALL := install
- BINDIR := $(DESTDIR)@BINDIR@
- DOCDIR := $(DESTDIR)@DOCDIR@
--HOMEDIR := $(DESTDIR)@HOMEDIR@
-+HOMEDIR := $(DESTDIR)/home/$(LOGNAME)/.wspr@
- MANDIR := $(DESTDIR)@MANDIR@
- SHARED := $(DESTDIR)@SHARED@
- WSPRLIB := $(DESTDIR)@WSPRLIB@
diff --git a/debian/patches/remove-ldflags.patch b/debian/patches/remove-ldflags.patch
deleted file mode 100644
index f07060b..0000000
--- a/debian/patches/remove-ldflags.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-Description: <short summary of the patch>
- remove ldflags
- .
- wspr (4.0.r4339-1) trusty; urgency=medium
- .
- * Update to latest SVN version r4339
-Author: Greg Beam <ki7mt at yahoo.com>
-
----
-The information above should follow the Patch Tagging Guidelines, please
-checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
-are templates for supplementary fields that you might want to add:
-
-Origin: <vendor|upstream|other>, <url of original patch>
-Bug: <url in upstream bugtracker>
-Bug-Debian: http://bugs.debian.org/<bugnumber>
-Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
-Forwarded: <no|not-needed|url proving that it has been forwarded>
-Reviewed-By: <name and email of someone who approved the patch>
-Last-Update: <YYYY-MM-DD>
-
---- wspr-4.0.r4339.orig/Makefile
-+++ wspr-4.0.r4339/Makefile
-@@ -50,7 +50,6 @@ LIBDIR += -L/usr/lib -L/usr/lib/i3
- CPPFLAGS += ${DEFS}
- CFLAGS += -fPIC
- FFLAGS += -O2 -Wall -fbounds-check -fno-second-underscore -Wno-conversion -Wno-character-truncation -fPIC
--LDFLAGS += -Wl, -O1 -Wl,--as-needed
- FCOPT += -cpp -fbounds-check -O2
-
- # Config Definitions
-@@ -75,10 +74,10 @@ all: libwspr.a thnix.o WsprMod/w.so fmte
- OBJS1 = wspr0.o wspr0init.o wspr0_rx.o wspr0_tx.o thnix_stub.o
-
- wspr0: ${OBJS1}
-- ${FC} ${FFLAGS} -o wspr0 ${FFLAGS} ${LDFLAGS} ${OBJS1} libwspr.a -lfftw3f -lportaudio
-+ ${FC} ${FFLAGS} -o wspr0 ${FFLAGS} ${OBJS1} libwspr.a -lfftw3f -lportaudio
-
- wsprcode: wsprcode.o thnix_stub.o
-- ${FC} ${FFLAGS} ${LDFLAGS} -o wsprcode wsprcode.o thnix_stub.o libwspr.a -pthread
-+ ${FC} ${FFLAGS} -o wsprcode wsprcode.o thnix_stub.o libwspr.a -pthread
-
- OBJS3 = azdist.o ccf2.o chklevel.o db.o decode.o decode162.o deg2grid.o \
- encode232.o fano232.o fchisq.o fil1.o flat3.o four2a.o\
-@@ -100,16 +99,16 @@ libwspr.a: ${OBJS3} acom1.f90 acom2.f90
-
- # Build FMT Applications
- fmtest: fmtest.f90 libwspr.a
-- ${FC} ${FFLAGS} ${LDFLAGS} -o fmtest fmtest.f90 libwspr.a -lfftw3f -lportaudio
-+ ${FC} ${FFLAGS} -o fmtest fmtest.f90 libwspr.a -lfftw3f -lportaudio
-
- fmtave: fmtave.f90
-- ${FC} ${FFLAGS} ${LDFLAGS} -o fmtave fmtave.f90
-+ ${FC} ${FFLAGS} -o fmtave fmtave.f90
-
- fcal: fcal.f90
-- ${FC} ${FFLAGS} ${LDFLAGS} -o fcal fcal.f90
-+ ${FC} ${FFLAGS} -o fcal fcal.f90
-
- fmeasure: fmeasure.f90
-- ${FC} ${FFLAGS} ${LDFLAGS} -o fmeasure fmeasure.f90
-+ ${FC} ${FFLAGS} -o fmeasure fmeasure.f90
-
- # SRC for w.so
- F2PYSRCS = wspr1.f90 getfile.f90 paterminate.f90 audiodev.f90
diff --git a/debian/patches/series b/debian/patches/series
index 52ae0c6..58a173a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,2 @@
-makefile.in.patch
-generate-autotools.patch
-update-f2py.patch
-remove-ldflags.patch
+update-makefilein.patch
+generate-files.patch
diff --git a/debian/patches/update-f2py.patch b/debian/patches/update-f2py.patch
deleted file mode 100644
index 882df2c..0000000
--- a/debian/patches/update-f2py.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-Description: <short summary of the patch>
- Remvoe LDFLAGS from F2PY invocation to build w.pyd
- .
- wspr (4.0.r4339-1) trusty; urgency=medium
- .
- * Update to latest SVN version r4339
-Author: Greg Beam <ki7mt at yahoo.com>
-
----
-The information above should follow the Patch Tagging Guidelines, please
-checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
-are templates for supplementary fields that you might want to add:
-
-Origin: <vendor|upstream|other>, <url of original patch>
-Bug: <url in upstream bugtracker>
-Bug-Debian: http://bugs.debian.org/<bugnumber>
-Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
-Forwarded: <no|not-needed|url proving that it has been forwarded>
-Reviewed-By: <name and email of someone who approved the patch>
-Last-Update: <YYYY-MM-DD>
-
---- wspr-4.0.r4339.orig/Makefile
-+++ wspr-4.0.r4339/Makefile
-@@ -50,7 +50,7 @@ LIBDIR += -L/usr/lib -L/usr/lib/i3
- CPPFLAGS += ${DEFS}
- CFLAGS += -fPIC
- FFLAGS += -O2 -Wall -fbounds-check -fno-second-underscore -Wno-conversion -Wno-character-truncation -fPIC
--LDFLAGS += -Wl, -O1 -Wl, --as-needed
-+LDFLAGS += -Wl, -O1 -Wl,--as-needed
- FCOPT += -cpp -fbounds-check -O2
-
- # Config Definitions
-@@ -117,7 +117,7 @@ F2PYSRCS = wspr1.f90 getfile.f90 patermi
- # Build W.SO & MV to WsprMod/
- WsprMod/w.so: libwspr.a ${F2PYSRCS} acom1.f90
- ${F2PY} -c --quiet --fcompiler=${FCV} --f77exec=${FC} --f90exec=${FC} \
-- --opt="${FCOPT} ${LDFLAGS}" thnix.o ${LIBS} libwspr.a -m w ${F2PYSRCS}
-+ --opt="${FCOPT}" thnix.o ${LIBS} libwspr.a -m w ${F2PYSRCS}
- ${MV} w*.so WsprMod/w.so
-
- # Cleanup Source Tree
diff --git a/debian/patches/update-makefilein.patch b/debian/patches/update-makefilein.patch
new file mode 100644
index 0000000..3308a6a
--- /dev/null
+++ b/debian/patches/update-makefilein.patch
@@ -0,0 +1,120 @@
+Description: <short summary of the patch>
+ * Update HOMEDIR
+ * Remove unneeded clean items
+ .
+ wspr (4.0.4-1) trusty; urgency=medium
+ .
+ * Initial Debian Release (Closes: #557214)
+ * New upstram release release svn r4889
+ * Fixes long standing memnory leak
+Author: Greg Beam <ki7mt at yahoo.com>
+Bug-Debian: http://bugs.debian.org/557214
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- wspr-4.0.4.orig/Makefile.in
++++ wspr-4.0.4/Makefile.in
+@@ -29,7 +29,7 @@ MKDIR := @MKDIR@
+ INSTALL := install
+ BINDIR := @BINDIR@
+ DOCDIR := @DOCDIR@
+-HOMEDIR := @HOMEDIR@
++HOMEDIR := /home/$(LOGNAME)/.wspr
+ MANDIR := @MANDIR@
+ SHARED := @SHARED@
+ WSPRLIB := @WSPRLIB@
+@@ -166,83 +166,3 @@ WsprMod/w.so: libwspr.a ${F2PYSRCS} acom
+ --opt="${FCOPT}" thnix.o ${PORTAUDIO_LIBDIR} ${LDFLAGS} ${LIBS} libwspr.a -m w ${F2PYSRCS}
+ ${MV} w*.so WsprMod/w.so
+
+-# Install target wspr
+-install:
+- @clear
+- @echo '-----------------------------------'
+- @echo " Installing ${PROGRAM}"
+- @echo '-----------------------------------'
+- @echo ''
+- @${MKDIR} -p ${DESTDIR}${BINDIR}
+- @${MKDIR} -p ${DESTDIR}${MANDIR}
+- @${MKDIR} -p ${DESTDIR}${DOCDIR}/examples
+- @${MKDIR} -p ${DESTDIR}${SHARED}
+- @${MKDIR} -p ${DESTDIR}${SHARED}/save/Samples
+- @${MKDIR} -p ${DESTDIR}${WSPRLIB}/WsprMod
+- @${MKDIR} -p ${DESTDIR}${SHARED}/../applications
+- @${MKDIR} -p ${DESTDIR}${SHARED}/../pixmaps
+- @install -m 755 fmtest fcal fmeasure fmtave wspr0 wsprcode ${DESTDIR}${BINDIR}
+- @strip ${DESTDIR}${BINDIR}/fmtest ${DESTDIR}${BINDIR}/fcal \
+- ${DESTDIR}${BINDIR}/fmeasure ${DESTDIR}${BINDIR}/fmtave \
+- ${DESTDIR}${BINDIR}/wspr0 ${DESTDIR}${BINDIR}/wsprcode
+- @install -m 644 manpages/man1/*.1 ${DESTDIR}${MANDIR}
+- @install -m 644 save/Samples/* ${DESTDIR}${SHARED}/save/Samples/
+- @install -m 755 gocal Pmw*.py wspr.py wspr.sh wsprrc ${DESTDIR}${SHARED}
+- @install -m 644 AUTHORS README NEWS COPYING COPYRIGHT ${DESTDIR}${DOCDIR}
+- @install -m 644 hamlib_rig* ${DESTDIR}${SHARED}
+- @install -m 755 WsprMod/* ${DESTDIR}${WSPRLIB}/WsprMod
+- @install -m 644 wspr.desktop ${DESTDIR}${SHARED}/../applications
+- @install -m 644 wspr.desktop ${DESTDIR}${SHARED}/applications
+- @install -m 644 wspr.xpm ${DESTDIR}${SHARED}/../pixmaps/
+- @${CP} wspr.sh ${DESTDIR}${BINDIR}/wspr
+- @${CHMOD} 755 ${DESTDIR}${BINDIR}/wspr
+- @${CP} -r doc/examples/* ${DESTDIR}${DOCDIR}/examples/
+- @${CHMOD} -R 644 ${DESTDIR}${DOCDIR}/examples/*
+- @echo "Finished Installing ${PROGRAM}"
+- @echo ''
+- @echo "Location: ${BINDIR}"
+- @echo '..To run, type..: wspr'
+- @echo ''
+- @echo "..Website ......: ${WEB}"
+- @echo "..Report Bugs ..: ${BUGS}"
+- @echo ''
+-
+-# Uninstall system files
+-uninstall:
+- @clear
+- @echo '--------------------------------------'
+- @echo " Uninstalling ${PROGRAM}"
+- @echo '--------------------------------------'
+- @echo '.. Removing Installed files'
+- @echo ''
+- @${RM} -r ${SHARED}
+- @${RM} -r ${WSPRLIB}
+- @${RM} -r ${DOCDIR}
+- @${RM} -f ${BINDIR}/{fmtest,fcal,fmeasure,fmtave,wsprcode wspr}
+- @${RM} -f ${MANDIR}/{wspr.1,fmtest.1,fmtave.1,fmeasure.1,fcal.1,wsprcode.1}
+- @${RM} -f ${HOMEDIR}/{fmtest,fcal,fmeasure,fmtave,wspr0,wsprcode}
+- @${RM} -rf ${HOMEDIR}/{WsprMod/,examples/,save/,doc/,*.py,hamlib*,*.sh,*.dat,wsprrc,gocal,*cache*}
+- @${RM} -rf ${HOMEDIR}/{AUTHORS,README,NEWS,COPYING,COPYRIGHT}
+- @${RM} -f ${SHARED}/../applications/wspr.desktop
+- @${RM} -f ${SHARED}/../pixmaps/wspr.xpm
+- @echo ''
+- @echo ".. User files remain in: ${HOMEDIR}"
+- @echo ".. To remove, type ....: rm -R ${HOMEDIR}"
+- @echo ''
+-
+-# Cleanup Source Tree
+-.PHONY: clean distclean dist
+-clean :
+- ${RM} -f *.o libwspr.a *.pyc *.pyo WsprMod/*.pyc WsprMod/*.pyo \
+- WsprMod/w.so WsprMod/*.so w.so *~ wsprcode wspr0 fmtest fmtave fcal \
+- fmeasure wspr.sh
+-
+-distclean: clean
+- ${RM} -f config.log config.status ALL_WSPR*.TXT WSPR.INI \
+- audio_caps autoscan.log configure.scan decoded.txt hopping.ini \
+- fmt.ini fmt.all fmt.dat fcal.plt fmtave.out fmtave.out fmt.out fcal.out \
+- pixmap.dat wspr.log configure Makefile
+- ${RM} -rf ./autom4* WsprMod/__pycache__ ./dist
+-
+-dist: distclean
+- ${SHELL} ./wspr-dist.sh @PROGRAM@ @VERSION@
diff --git a/debian/rules b/debian/rules
index 5dbcaec..16f0a02 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,7 @@ override_dh_auto_build:
dh_clean
$(MAKE)
-# move wspr.sh to /usr/bin
+## move wspr.sh to /usr/bin
BINDIR=$(CURDIR)/debian/wspr/usr/bin
override_dh_auto_install:
cp wspr.sh $(BINDIR)/wspr.sh
@@ -34,7 +34,7 @@ override_dh_auto_install:
chmod 755 $(BINDIR)/wspr
%:
- dh $@
+ dh $@ --with autotools_dev
override_dh_compress:
@echo ''
diff --git a/doc/AUTHORS b/doc/AUTHORS
index bde63bc..509c1ca 100644
--- a/doc/AUTHORS
+++ b/doc/AUTHORS
@@ -19,16 +19,20 @@ CALLSIGN: VA3DB
AUTHOR:
CALLSIGN: 4X6IZ
+AUTHOR: Greg Beam <ki7mt at yahoo.com>
+CALLSIGN: KI7MT
+
Authors can be contacted on the wsjt-devel mailing list or
-through the WSJT Yahoo Group.
+through the WSJT Yahoo Group. Also, See About informaiton
+under HELP >> About WSPR
PROJECT INFORMATION:
-------------------
-- Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
-- Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
-- Mailing List: ......... wsjt-devel at lists.sourceforge.net
-- Project Source Code: .. http://sourceforge.net/projects/wsjt/
-- Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
+Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
+Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
+Mailing List: ......... wsjt-devel at lists.sourceforge.net
+Project Source Code: .. http://sourceforge.net/projects/wsjt/
+Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
diff --git a/doc/NEWS b/doc/NEWS
index 65c8cbe..1c952bd 100644
--- a/doc/NEWS
+++ b/doc/NEWS
@@ -1,4 +1,12 @@
-WSPR-4.0 NEWS
--------------
+As of WSPR v4.0 r4708
+* KI7MT - I'm sure we have some news ?
+PROJECT INFORMATION:
+-------------------
+Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
+Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
+Mailing List: ......... wsjt-devel at lists.sourceforge.net
+Project Source Code: .. http://sourceforge.net/projects/wsjt/
+Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
+
diff --git a/doc/README b/doc/README
index 2076acc..94ebcb5 100644
--- a/doc/README
+++ b/doc/README
@@ -5,10 +5,11 @@ Propagation Reporter". The program generates and decodes
a digital soundcard mode optimized for beacon-like
transmissions on the LF, MF, and HF bands.
+
PROJECT INFORMATION:
-------------------
-- Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
-- Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
-- Mailing List: ......... wsjt-devel at lists.sourceforge.net
-- Project Source Code: .. http://sourceforge.net/projects/wsjt/
-- Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
+Project Manager: ...... Joe Taylor, K1JT, joe -AT- princeton -DOT- edu
+Project Web Site: ..... http://physics.princeton.edu/pulsar/K1JT/
+Mailing List: ......... wsjt-devel at lists.sourceforge.net
+Project Source Code: .. http://sourceforge.net/projects/wsjt/
+Yahoo Group: .......... https://groups.yahoo.com/neo/groups/wsjtgroup/info
diff --git a/gocal b/gocal
old mode 100644
new mode 100755
diff --git a/start_threads.c b/start_threads.c
index 56b4906..90140ad 100644
--- a/start_threads.c
+++ b/start_threads.c
@@ -74,24 +74,7 @@ int th_wspr2_(void)
int th_decode_(void)
{
- int iret1;
- int iarg1 = 1;
-
- if(decode_started>0) {
- /*
- // the following was "< 100":
- if(time(NULL)-decode_started < 2) {
- printf("Attempted to start decoder too soon: %d %d",
- (int)time(NULL),decode_started);
- return 0;
- }
- */
- pthread_join(decode_thread,NULL);
- decode_started=0;
- }
- iret1 = pthread_create(&decode_thread,NULL,(void *)decode_,&iarg1);
- // if(iret1==0) decode_started=time(NULL);
- return iret1;
+ return spawn_thread(decode_);
}
int th_rx_(void)
diff --git a/wspr.py b/wspr.py
index 9d9aebb..ddf263a 100644
--- a/wspr.py
+++ b/wspr.py
@@ -1,6 +1,6 @@
# pylint: disable=wildcard-import,bad-whitespace
#----------------------------------------------------------------------------
-# $Date: 2008-03-17 08:29:04 -0400 (Mon, 17 Mar 2008) $ $Revision: 4522 $
+# $Date: 2008-03-17 08:29:04 -0400 (Mon, 17 Mar 2008) $ $Revision: 4889 $
#
# This file is part of the WSPR application, Weak Signal Propagation Reporter
#
@@ -69,7 +69,7 @@ import webbrowser
import tkinter.font
root = Tk()
-Version="4.0 r" + "$Rev: 4522 $"[6:-2]
+Version="4.0 r" + "$Rev: 4889 $"[6:-2]
print("******************************************************************")
print("WSPR Version " + Version + ", by K1JT")
print("Run date: " + time.asctime(time.gmtime()) + " UTC")
@@ -366,7 +366,7 @@ be found at http://sourceforge.net/projects/wsjt/.
"""
Label(about,text=t,justify=LEFT).pack(padx=20)
t="Revision date: " + \
- "$Date: 2014-10-16 22:41:00 -0600 (Thu, 16 Oct 2014) $"[7:-1]
+ "$Date: 2014-12-02 10:40:00 -0600 (Tue, 02 Dec 2014) $"[7:-1]
Label(about,text=t,justify=LEFT).pack(padx=20)
about.focus_set()
diff --git a/wspr.sh b/wspr.sh.in
similarity index 55%
rename from wspr.sh
rename to wspr.sh.in
index 3bde823..b7499a5 100644
--- a/wspr.sh
+++ b/wspr.sh.in
@@ -1,12 +1,12 @@
-#!/usr/bin/env bash
+#!/bin/sh
#-------------------------------------------------------------------------------
-# This file is part of the WSPR application, Weak Signal Propagation Reporter
+# This file is part of the WSPR application, Weak Signal Propogation Reporter
#
# File Name: wspr.sh
# Description: Shell script wrapper to update or copy files from system install
#
# Copyright (C) 2001-2014 Joseph Taylor, K1JT
-# License: GPL-3
+# License: GNU GPL v3
#
# 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
@@ -26,17 +26,49 @@
set -e
+os=`uname`
+
+# non gnu cp
+copyur() {
+ for f in $1/*;do
+ if [ $f -nt `basename $f` ]; then
+ if [ ! -d `basename $f` ]; then
+ cp $f .
+ fi
+ fi
+ done
+}
+
# set dir's
-_HOMEDIR="/home/$LOGNAME/.wspr"
+_HOMEDIR="/home/$USER/.wspr"
+if [ ${os} != "FreeBSD" ]; then
# make a few dir's
-mkdir -p $_HOMEDIR
+ mkdir -p $_HOMEDIR
# update files only if newer
-cp -uR /usr/share/wspr/* $_HOMEDIR
-cp -uR /usr/share/doc/wspr/* $_HOMEDIR/
-cp -uR /usr/lib/wspr/* $_HOMEDIR
+ cp -uR /usr/share/wspr/* $_HOMEDIR
+ cp -uR /usr/share/doc/wspr/* $_HOMEDIR/
+ cp -uR /usr/lib/wspr/* $_HOMEDIR
+
+else
+# update out of date files
+if [ -e $_HOMEDIR ] ; then
+ cd $_HOMEDIR
+ copyur /usr/local/share/wspr
+ copyur /usr/local/share/doc/wspr
+ cd $_HOMEDIR/WsprMod
+ copyur /usr/local/lib/wspr/WsprMod
+ cd $_HOMEDIR
+ else
+# if _HOMEDIR does not exist make it
+ mkdir $_HOMEDIR
+ cp -R @PREFIX@/share/wspr/* $_HOMEDIR
+ cp -R @PREFIX@/share/doc/wspr/* $_HOMEDIR
+ cp -R @PREFIX@/lib/wspr/* $_HOMEDIR
+ fi
+fi
# run: py location updated by configure.ac
cd $_HOMEDIR
-/usr/bin/python3 -O wspr.py
+ at PYTHON@ -O wspr.py
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/wspr.git
More information about the pkg-hamradio-commits
mailing list