Add GPL header to rijndael benchmark.

According to the licence header it should be fine to add a GPL header
to this code.  I've removed the LICENCE file as the licence is
repeated inside every source file.

ChangeLog:

	* src/rijndael/LICENSE: Removed.
	* src/rijndael/Makefile.am: Remove reference to LICENCE file.
	* src/rijndael/Makefile.in: Regenerate.
	* src/rijndael/aes.c: Add GPL header.
	* src/rijndael/aes.h: Add GPL header.
	* src/rijndael/aestab.h: Add GPL header.
	* src/rijndael/aesxam.c: Add GPL header.
Fix repeated work Suite in header comments.

More places where I caused the work Suite to be duplicated when I
fixed the BEEBS expansion.

ChangeLog:

	* tools/generate-benchmark.sh: Remove duplicate word 'Suite' in
	two places.
	* src/common.mk.am: Remove duplicate word 'Suite'.
	* src/common.mk.in: Regenerate.
	* src/*/Makefile.in: Regenerate.
Fix 'make distcheck'.

Get 'make distcheck' working again.  This is just a case of source
files missing from the SOURCES lists in various places, add the files
to the list and regenerate the makefiles.  The only exception is the
new chipsupport.c file, in this case the generic code places a
dependency on chipsupport.c without checking if the file exists.  For
simplicity I've just added an empty file.

ChangeLog:

	* config/x86_64/chips/generic/chipsupport.c: New file.
	* src/common.mk.am: Add support.h as a source file.
	* src/miniz/Makefile.am: Add miniz.h as a source file.
	* src/qrduino/Makefile.am: Remove exxtable.h, and add ecctable.h
	qrbits.h to the source file list.
	* src/sglib-rbtree/Makefile.am: Add sglib.h as a source file.
	* src/*/Makefile.in: Regenerate.
Remove unneeded src/common.mk.in file.

The file src/common.mk.in is, in theory, generated from
src/common.mk.am by automake, however, as src/common.mk.am is only
ever included into other makefiles, and is not a top level makefile in
it's own right, the *.in version is no longer regenerated, as such the
*.in file is out of date, never actually regenerated, and not needed.

ChangeLog:

	* src/common.mk.in: Deleted.
Add GPL header to some scripts.

ChangeLog:

	* analysis/all_stats.py: Add GPL header.
	* analysis/instruction_stats.py: Add GPL header.
	* analysis/simulator.in: Add GPL header.
	* tools/energytool.py: Add GPL header.
Fix #14. Cast signed strings to unsigned to prevent ctype.h warning
Add generic dejagnu support for running benchmarks.

Adds a generic framework for running the benchmarks.  Have updated
the existing run.exp script (just run the benchmarks) to use the new
framework, and have added perf-stat.exp (uses the kernel perf counters
to measure instructions) and have rewritten measure.exp as
mageec-wand.exp to use the new framework.

ChangeLog:

	* beebs.test/measure.exp: Deleted.
	* beebs.test/mageec-wand.exp: New file.
	* beebs.test/perf-stat.exp: New file.
	* lib/beebs.exp: New file.
	* beebs.test/run.exp: Update to use beebs.exp support.
Merge pull request #15 from jpallister/newlib_tolower_fix

Fix #14. Cast signed strings to unsigned to prevent ctype.h warning
Split each benchmark into its own directory ... again.

Turns out that merging similar benchmarks into a single directory was
not a good idea.  This patch separates them again, but keeps the source
common.

All similar benchmarks now have different names, and the source lives in
a common central location, so, for example, we have benchmarks
`ctl-stack' and `ctl-vector', and the source for both lives in the `ctl'
directory.

ChangeLog:

	* configure.ac: Add split benchmarks to benchmark list.
	* configure: Regenerate.
	* src/ctl-stack/Makefile.am: New file.
	* src/ctl-stack/Makefile.in: New file.
	* src/ctl-vector/Makefile.am: New file.
	* src/ctl-vector/Makefile.in: New file.
	* src/ctl/Makefile.in: Removed.
	* src/ctl/Makefile.am: Removed.
	* src/matmult-float/Makefile.am: New file.
	* src/matmult-float/Makefile.in: New file.
	* src/matmult-int/Makefile.am: New file.
	* src/matmult-int/Makefile.in: New file.
	* src/matmult/Makefile.am: Removed.
	* src/matmult/Makefile.in: Removed.
	* src/sglib-arrayheapsort/Makefile.am: New file.
	* src/sglib-arrayheapsort/Makefile.in: New file.
	* src/sglib-arrayquicksort/Makefile.am: New file.
	* src/sglib-arrayquicksort/Makefile.in: New file.
	* src/sglib-arraysort/Makefile.in: Removed.
	* src/sglib-arraysort/Makefile.am: Removed.
	* src/trio-snprintf/Makefile.am: New file.
	* src/trio-snprintf/Makefile.in: New file.
	* src/trio-sscanf/Makefile.am: New file.
	* src/trio-sscanf/Makefile.in: New file.
	* src/trio/Makefile.in: Removed.
	* src/trio/Makefile.am: Removed.
Use global env in mageec-wand.exp.

Need to access the global value of env in order to see the environment
variables.

ChangeLog:

	* beebs.test/mageec-wand.exp (beebs_cleanup_after_all_benchmarks):
	Pull in global env.
	(beebs_setup_before_benchmark_run): Likewise.
Restore the beebs_run_benchmark procedure.

The beebs_run_benchmark procedure was not being set to call
default_beebs_run_benchmark as it should.

ChangeLog

	* lib/beebs.exp (beebs_restore_default_procs): Restore
	beebs_run_benchmark too.
Delete the analysis directory.

Following feedback on the mailing list it seems the contents of the
`beebs/analysis` directory are no longer required.

ChangeLog:

	* analysis/Makefile.am: Deleted.
	* analysis/Makefile.in: Deleted.
	* analysis/all_stats.py: Deleted.
	* analysis/cmd.arm-none-eabi: Deleted.
	* analysis/cmd.avr-unknown-none: Deleted.
	* analysis/instruction_stats.py: Deleted.
	* analysis/simulator.in: Deleted.
Update README.md.

Things have moved on in BEEBS, and the README has fallen behind.  This
should bring things up to date.

ChangeLog:

	* README.md: Update for latest state of BEEBS.
Merge branch 'T-J-Teru-split-benchmarks'
Merge branch 'delete-analysis' of github.com:T-J-Teru/beebs into T-J-Teru-delete-analysis
Merge branch 'T-J-Teru-delete-analysis'
Merge branch 'update-readme' of github.com:T-J-Teru/beebs into T-J-Teru-update-readme
Merge branch 'T-J-Teru-update-readme'
Merge remote-tracking branch 'tjteru/master' into dejagnu3
Update new dejagnu to handle newly split benchmarks.

Benchmarks are now split, so one binary per directory.  This commit
updates the dejagnu work to reflect this.

ChangeLog:

	* beebs.test/mageec-wand.exp (beebs_setup_before_benchmark_run):
	Rename to ...
	(beebs_setup_before_benchmark): ... this.
	(beebs_cleanup_after_benchmark_run): Rename to ...
	(beebs_cleanup_after_benchmark): ... this.
	(beebs_cleanup_after_benchmark_run): Update, use benchmark not
	filename to identify results.
	* beebs.test/perf-stat.exp (beebs_run_benchmark): Update
	parameters.  The filename is now a full path, use as such.  Use
	benchmark, not directory to identify results.
	* lib/beebs.exp (default_beebs_filter_benchmarks): Renamed to...
	(default_beebs_filter_benchmark): ...this. Rename parameters.
	(default_beebs_setup_before_benchmark): Add filename parameter.
	(default_beebs_cleanup_after_benchmark): Add filename parameter.
	(default_beebs_setup_before_benchmark_run): Deleted.
	(default_beebs_cleanup_after_benchmark_run): Deleted.
	(beebs_get_benchmark_files): Deleted.
	(default_beebs_announce): Remove directory parameter.
	(default_beebs_run_benchmark): Likewise.
	(beebs_run_all_benchmarks): Remove calls to deleted functions.
	Assume only one binary in each benchmark directory.  Update
	parameters on remaining calls.
	(beebs_restore_default_procs): Reorder procedures.  Update
	parameters.