Add a comment about settitng -std=gnu99 for avr.

	* config/avr/chips/atmega328p/chip.cfg:  Add a comment about manually
	setting -std=gnu99.
Merge branch 'planglois' into dejagnu2
Rename benchmark executable to their dir names.

	* src/ctl-stack/Makefile.am: Rename the executable according to the
	directory name.
	* src/ctl-stack/Makefile.in: Regenerate.
	* src/ctl-string/Makefile.am: Likewise.
	* src/ctl-string/Makefile.in: Regenerate.
	* src/ctl-vector/Makefile.am: Likewise.
	* src/ctl-vector/Makefile.in: Regenerate.
	* src/gdb-advance/Makefile.am: Likewise.
	* src/gdb-advance/Makefile.in: Regenerate.
	* src/gdb-all-types/Makefile.am: Likewise.
	* src/gdb-all-types/Makefile.in: Regenerate.
	* src/gdb-anon/Makefile.am: Likewise.
	* src/gdb-anon/Makefile.in: Regenerate.
	* src/gdb-arrayidx/Makefile.am: Likewise.
	* src/gdb-arrayidx/Makefile.in: Regenerate.
	* src/gdb-async/Makefile.am: Likewise.
	* src/gdb-async/Makefile.in: Regenerate.
	* src/gdb-bitfields/Makefile.am: Likewise.
	* src/gdb-bitfields/Makefile.in: Regenerate.
	* src/gdb-constvars/Makefile.am: Likewise.
	* src/gdb-constvars/Makefile.in: Regenerate.
	* src/gdb-store/Makefile.am: Likewise.
	* src/gdb-store/Makefile.in: Regenerate.
	* src/nettle-arcfour/Makefile.am: Likewise.
	* src/nettle-arcfour/Makefile.in: Regenerate.
	* src/nettle-cast128/Makefile.am: Likewise.
	* src/nettle-cast128/Makefile.in: Regenerate.
	* src/nettle-des/Makefile.am: Likewise.
	* src/nettle-des/Makefile.in: Regenerate.
	* src/nettle-md5/Makefile.am: Likewise.
	* src/nettle-md5/Makefile.in: Regenerate.
	* src/newlib-exp/Makefile.am: Likewise.
	* src/newlib-exp/Makefile.in: Regenerate.
	* src/newlib-log/Makefile.am: Likewise.
	* src/newlib-log/Makefile.in: Regenerate.
	* src/newlib-mod/Makefile.am: Likewise.
	* src/newlib-mod/Makefile.in: Regenerate.
	* src/newlib-sqrt/Makefile.am: Likewise.
	* src/newlib-sqrt/Makefile.in: Regenerate.
	* src/sglib-arraybinsearch/Makefile.am: Likewise.
	* src/sglib-arraybinsearch/Makefile.in: Regenerate.
	* src/sglib-arraysort/Makefile.am: Likewise.
	* src/sglib-arraysort/Makefile.in: Regenerate.
	* src/sglib-arraysort1/Makefile.am: Likewise.
	* src/sglib-arraysort1/Makefile.in: Regenerate.
	* src/sglib-dllist/Makefile.am: Likewise.
	* src/sglib-dllist/Makefile.in: Regenerate.
	* src/sglib-hashtable/Makefile.am: Likewise.
	* src/sglib-hashtable/Makefile.in: Regenerate.
	* src/sglib-listinsertsort/Makefile.am: Likewise.
	* src/sglib-listinsertsort/Makefile.in: Regenerate.
	* src/sglib-listinsertsort1/Makefile.am: Likewise.
	* src/sglib-listinsertsort1/Makefile.in: Regenerate.
	* src/sglib-listsort/Makefile.am: Likewise.
	* src/sglib-listsort/Makefile.in: Regenerate.
	* src/sglib-queue/Makefile.am: Likewise.
	* src/sglib-queue/Makefile.in: Regenerate.
	* src/sglib-rbtree/Makefile.am: Likewise.
	* src/sglib-rbtree/Makefile.in: Regenerate.
Add DejaGNU support to BEEBS.

This is a work in progress.

When building native, running `make check` will run the benchmarks on the host.
AVR is supported through avrdude, for example:

~~~
export AVRDUDE=/usr/bin/avrdude
export AVRDUDE_FLAGS="-carduino -patmega328p -P/dev/ttyUSB0 -D"
./configure --host=avr --with-chip=atmega328p --with-board=shrimp
make RUNTESTFLAGS="--target_board=atmega328p-shrimp" check
~~~

	* Makefile.am (AUTOMAKE_OPTIONS): Add dejagnu.
	(EXTRA_DEJAGNU_SITE_CONFIG): Add dejagnu/site.exp.
	(EXTRA_DIST): Include the dejagnu scripts in the distribution.
	* Makefile.in: Regenerate.
	* beebs.test/run.exp: New file. This is the main run script.
	* build-aux/compile: Import from automake.
	* config/default.exp: New file. Needed for running BEEBS native.
	* configure: Regenerate.
	* configure.ac: Add BENCHMARKS as a substitute.
	Add dejagnu/site.exp config file.
	* dejagnu/baseboards/avr-avrdude.exp: New board file for avrdude.
	* dejagnu/config/avrdude.exp: New config file for avrdude.
	* dejagnu/site.exp.in: New template for EXTRA_DEJAGNU_SITE_CONFIG.
	* src/2dfir/Makefile.in: Regenerate.
	* src/adpcm/Makefile.in: Regenerate.
	* src/blowfish/Makefile.in: Regenerate.
	* src/bs/Makefile.in: Regenerate.
	* src/bsort100/Makefile.in: Regenerate.
	* src/bubblesort/Makefile.in: Regenerate.
	* src/cnt/Makefile.in: Regenerate.
	* src/compress/Makefile.in: Regenerate.
	* src/cover/Makefile.in: Regenerate.
	* src/crc/Makefile.in: Regenerate.
	* src/crc32/Makefile.in: Regenerate.
	* src/ctl-stack/Makefile.in: Regenerate.
	* src/ctl-string/Makefile.in: Regenerate.
	* src/ctl-vector/Makefile.in: Regenerate.
	* src/cubic/Makefile.in: Regenerate.
	* src/dhrystone/Makefile.in: Regenerate.
	* src/dijkstra/Makefile.in: Regenerate.
	* src/dtoa/Makefile.in: Regenerate.
	* src/duff/Makefile.in: Regenerate.
	* src/edn/Makefile.in: Regenerate.
	* src/expint/Makefile.in: Regenerate.
	* src/fac/Makefile.in: Regenerate.
	* src/fasta/Makefile.in: Regenerate.
	* src/fdct/Makefile.in: Regenerate.
	* src/fft/Makefile.in: Regenerate.
	* src/fibcall/Makefile.in: Regenerate.
	* src/fir/Makefile.in: Regenerate.
	* src/float_matmult/Makefile.in: Regenerate.
	* src/frac/Makefile.in: Regenerate.
	* src/gdb-advance/Makefile.in: Regenerate.
	* src/gdb-all-types/Makefile.in: Regenerate.
	* src/gdb-anon/Makefile.in: Regenerate.
	* src/gdb-arrayidx/Makefile.in: Regenerate.
	* src/gdb-async/Makefile.in: Regenerate.
	* src/gdb-bitfields/Makefile.in: Regenerate.
	* src/gdb-constvars/Makefile.in: Regenerate.
	* src/gdb-store/Makefile.in: Regenerate.
	* src/huffbench/Makefile.in: Regenerate.
	* src/insertsort/Makefile.in: Regenerate.
	* src/int_matmult/Makefile.in: Regenerate.
	* src/janne_complex/Makefile.in: Regenerate.
	* src/jfdctint/Makefile.in: Regenerate.
	* src/lcdnum/Makefile.in: Regenerate.
	* src/levenshtein/Makefile.in: Regenerate.
	* src/lms/Makefile.in: Regenerate.
	* src/ludcmp/Makefile.in: Regenerate.
	* src/mergesort/Makefile.in: Regenerate.
	* src/miniz/Makefile.in: Regenerate.
	* src/minver/Makefile.in: Regenerate.
	* src/nbody/Makefile.in: Regenerate.
	* src/ndes/Makefile.in: Regenerate.
	* src/nettle-arcfour/Makefile.in: Regenerate.
	* src/nettle-cast128/Makefile.in: Regenerate.
	* src/nettle-des/Makefile.in: Regenerate.
	* src/nettle-md5/Makefile.in: Regenerate.
	* src/newlib-exp/Makefile.in: Regenerate.
	* src/newlib-log/Makefile.in: Regenerate.
	* src/newlib-mod/Makefile.in: Regenerate.
	* src/newlib-sqrt/Makefile.in: Regenerate.
	* src/ns/Makefile.in: Regenerate.
	* src/nsichneu/Makefile.in: Regenerate.
	* src/prime/Makefile.in: Regenerate.
	* src/qsort/Makefile.in: Regenerate.
	* src/qurt/Makefile.in: Regenerate.
	* src/recursion/Makefile.in: Regenerate.
	* src/rijndael/Makefile.in: Regenerate.
	* src/select/Makefile.in: Regenerate.
	* src/sglib-arraybinsearch/Makefile.in: Regenerate.
	* src/sglib-arraysort/Makefile.in: Regenerate.
	* src/sglib-arraysort1/Makefile.in: Regenerate.
	* src/sglib-dllist/Makefile.in: Regenerate.
	* src/sglib-hashtable/Makefile.in: Regenerate.
	* src/sglib-listinsertsort/Makefile.in: Regenerate.
	* src/sglib-listinsertsort1/Makefile.in: Regenerate.
	* src/sglib-listsort/Makefile.in: Regenerate.
	* src/sglib-queue/Makefile.in: Regenerate.
	* src/sglib-rbtree/Makefile.in: Regenerate.
	* src/sha/Makefile.in: Regenerate.
	* src/slre/Makefile.in: Regenerate.
	* src/sqrt/Makefile.in: Regenerate.
	* src/st/Makefile.in: Regenerate.
	* src/statemate/Makefile.in: Regenerate.
	* src/stringsearch1/Makefile.in: Regenerate.
	* src/strstr/Makefile.in: Regenerate.
	* src/tarai/Makefile.in: Regenerate.
	* src/template/Makefile.in: Regenerate.
	* src/ud/Makefile.in: Regenerate.
	* src/whetstone/Makefile.in: Regenerate.
	* src/wikisort/Makefile.in: Regenerate.
Allow having different board with the same chip.

	* config/avr/boards/shrimp/boardsupport.c (initialise_board): Call
	PIN_INIT.
	(start_trigger): Call PIN_SET.
	(stop_trigger): Call PIN_CLEAR.
	* config/avr/chips/atmega328p/chipsupport.h (PIN_INIT): New macro.
	(PIN_SET): Likewise.
	(PIN_CLEAR): Likewise.
Add support for generating measurement data.

This patch adds a new test case `measure.exp` for generating energy consumption
data in csv form.

It relies on environment variables as defined in the `run-avr-measurement.sh`
script.

~~~
Usage: ./run-avr-measurement.sh [--target-board <board>]
                                [--avrdude <program>]
                                [--avrdude-flags <val>]
                                [--energytool-serial <val>]
                                [--energytool-pin <val>]
                                [--energytool-point <val>]
                                [--energy-data <file>]
                                [--timeout <val>]
~~~

	* beebs.test/measure.exp: New test case for measuring.
	* run-avr-measurement.sh: New script for easily running measurements of
	all the benchmarks.
	* tools/energytool.py: New python script for taking one measurement. It
	relies on pyenergy.
Small changes to fix segfaulting benchmarks

    * gcc.beebs/bubblesort.c: Remove call to hardware specific memory
        address
    * gcc.beebs/compress.c: Reduce HSIZE so that we don't overflow
    * gcc.beebs/crc32.c: Temporarily remove check for output
Added the ability to load an architecture specific config file

    * configure: Regenerated
    * configure.ac: Load environment variables from config/ARCH/arch.cfg
Merge branch 'dejagnu2' into jp
Fixed the CFLAGS and LDFLAGS to work with CFLAGS specified on the cmdline

    * Makefile.in: Regenerated
    * configure: Regenerated
    * configure.ac: Config flags are now placed into CONFIG_CFLAGS and
        CONFIG_LDFLAGS for substitution into the Makefiles
    * src/2dfir/Makefile.in: Regenerated
    * src/adpcm/Makefile.in: Regenerated
    * src/blowfish/Makefile.in: Regenerated
    * src/bs/Makefile.in: Regenerated
    * src/bsort100/Makefile.in: Regenerated
    * src/bubblesort/Makefile.in: Regenerated
    * src/cnt/Makefile.in: Regenerated
    * src/common.mk.am: Use CONFIG_CFLAGS and CONFIG_LDFLAGS when
        constructing AM_CFLAGS and AM_LDFLAGS
    * src/compress/Makefile.in: Regenerated
    * src/cover/Makefile.in: Regenerated
    * src/crc/Makefile.in: Regenerated
    * src/crc32/Makefile.in: Regenerated
    * src/ctl-stack/Makefile.in: Regenerated
    * src/ctl-string/Makefile.in: Regenerated
    * src/ctl-vector/Makefile.in: Regenerated
    * src/cubic/Makefile.in: Regenerated
    * src/dhrystone/Makefile.in: Regenerated
    * src/dijkstra/Makefile.in: Regenerated
    * src/dtoa/Makefile.in: Regenerated
    * src/duff/Makefile.in: Regenerated
    * src/edn/Makefile.in: Regenerated
    * src/expint/Makefile.in: Regenerated
    * src/fac/Makefile.in: Regenerated
    * src/fasta/Makefile.in: Regenerated
    * src/fdct/Makefile.in: Regenerated
    * src/fft/Makefile.in: Regenerated
    * src/fibcall/Makefile.in: Regenerated
    * src/fir/Makefile.in: Regenerated
    * src/float_matmult/Makefile.in: Regenerated
    * src/frac/Makefile.in: Regenerated
    * src/gdb-advance/Makefile.in: Regenerated
    * src/gdb-all-types/Makefile.in: Regenerated
    * src/gdb-anon/Makefile.in: Regenerated
    * src/gdb-arrayidx/Makefile.in: Regenerated
    * src/gdb-async/Makefile.in: Regenerated
    * src/gdb-bitfields/Makefile.in: Regenerated
    * src/gdb-constvars/Makefile.in: Regenerated
    * src/gdb-store/Makefile.in: Regenerated
    * src/huffbench/Makefile.in: Regenerated
    * src/insertsort/Makefile.in: Regenerated
    * src/int_matmult/Makefile.in: Regenerated
    * src/janne_complex/Makefile.in: Regenerated
    * src/jfdctint/Makefile.in: Regenerated
    * src/lcdnum/Makefile.in: Regenerated
    * src/levenshtein/Makefile.in: Regenerated
    * src/lms/Makefile.in: Regenerated
    * src/ludcmp/Makefile.in: Regenerated
    * src/mergesort/Makefile.in: Regenerated
    * src/miniz/Makefile.in: Regenerated
    * src/minver/Makefile.in: Regenerated
    * src/nbody/Makefile.in: Regenerated
    * src/ndes/Makefile.in: Regenerated
    * src/nettle-arcfour/Makefile.in: Regenerated
    * src/nettle-cast128/Makefile.in: Regenerated
    * src/nettle-des/Makefile.in: Regenerated
    * src/nettle-md5/Makefile.in: Regenerated
    * src/newlib-exp/Makefile.in: Regenerated
    * src/newlib-log/Makefile.in: Regenerated
    * src/newlib-mod/Makefile.in: Regenerated
    * src/newlib-sqrt/Makefile.in: Regenerated
    * src/ns/Makefile.in: Regenerated
    * src/nsichneu/Makefile.in: Regenerated
    * src/prime/Makefile.in: Regenerated
    * src/qsort/Makefile.in: Regenerated
    * src/qurt/Makefile.in: Regenerated
    * src/recursion/Makefile.in: Regenerated
    * src/rijndael/Makefile.in: Regenerated
    * src/select/Makefile.in: Regenerated
    * src/sglib-arraybinsearch/Makefile.in: Regenerated
    * src/sglib-arraysort/Makefile.in: Regenerated
    * src/sglib-arraysort1/Makefile.in: Regenerated
    * src/sglib-dllist/Makefile.in: Regenerated
    * src/sglib-hashtable/Makefile.in: Regenerated
    * src/sglib-listinsertsort/Makefile.in: Regenerated
    * src/sglib-listinsertsort1/Makefile.in: Regenerated
    * src/sglib-listsort/Makefile.in: Regenerated
    * src/sglib-queue/Makefile.in: Regenerated
    * src/sglib-rbtree/Makefile.in: Regenerated
    * src/sha/Makefile.in: Regenerated
    * src/slre/Makefile.in: Regenerated
    * src/sqrt/Makefile.in: Regenerated
    * src/st/Makefile.in: Regenerated
    * src/statemate/Makefile.in: Regenerated
    * src/stringsearch1/Makefile.in: Regenerated
    * src/strstr/Makefile.in: Regenerated
    * src/tarai/Makefile.in: Regenerated
    * src/template/Makefile.in: Regenerated
    * src/ud/Makefile.in: Regenerated
    * src/whetstone/Makefile.in: Regenerated
    * src/wikisort/Makefile.in: Regenerated