Problems compiling 2.x in Debian Squeeze

I’m fairly new to compiling from source, but seeing as that appears to be the only way to get the latest Audacity in Debian Squeeze I had a go at it. Followed the instructions, but of course it didn’t work and I have no idea what to do now. Here is the config log. ANy ideas what I need to do now or is there an easier way to install Audacity 2.x in Debian Squeeze?

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = debian
uname -m = x86_64
uname -r = 2.6.32-5-amd64
uname -s = Linux
uname -v = #1 SMP Sun May 6 04:00:17 UTC 2012

/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: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2444: checking for gcc
configure:2460: found /usr/bin/gcc
configure:2471: result: gcc
configure:2700: checking for C compiler version
configure:2709: gcc --version >&5
gcc (Debian 4.4.5-8) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2720: $? = 0
configure:2709: gcc -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8) 
configure:2720: $? = 0
configure:2709: gcc -V >&5
gcc: '-V' option must have argument
configure:2720: $? = 1
configure:2709: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:2720: $? = 1
configure:2740: checking whether the C compiler works
configure:2762: gcc    conftest.c  >&5
configure:2766: $? = 0
configure:2814: result: yes
configure:2817: checking for C compiler default output file name
configure:2819: result: a.out
configure:2825: checking for suffix of executables
configure:2832: gcc -o conftest    conftest.c  >&5
configure:2836: $? = 0
configure:2858: result: 
configure:2880: checking whether we are cross compiling
configure:2888: gcc -o conftest    conftest.c  >&5
configure:2892: $? = 0
configure:2899: ./conftest
configure:2903: $? = 0
configure:2918: result: no
configure:2923: checking for suffix of object files
configure:2945: gcc -c   conftest.c >&5
configure:2949: $? = 0
configure:2970: result: o
configure:2974: checking whether we are using the GNU C compiler
configure:2993: gcc -c   conftest.c >&5
configure:2993: $? = 0
configure:3002: result: yes
configure:3011: checking whether gcc accepts -g
configure:3031: gcc -c -g  conftest.c >&5
configure:3031: $? = 0
configure:3072: result: yes
configure:3089: checking for gcc option to accept ISO C89
configure:3153: gcc  -c -g -O2  conftest.c >&5
configure:3153: $? = 0
configure:3166: result: none needed
configure:3188: checking for C compiler vendor
configure:3212: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:15: error: 'thisisanerror' undeclared (first use in this function)
conftest.c:15: error: (Each undeclared identifier is reported only once
conftest.c:15: error: for each function it appears in.)
configure:3212: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
| #if !(defined(__ICC) || defined(__ECC) || defined(__INTEL_COMPILER))
|       thisisanerror;
| #endif
| 
|   ;
|   return 0;
| }
configure:3212: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:15: error: 'thisisanerror' undeclared (first use in this function)
conftest.c:15: error: (Each undeclared identifier is reported only once
conftest.c:15: error: for each function it appears in.)
configure:3212: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
| #if !(defined(__xlc__) || defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__))
|       thisisanerror;
| #endif
| 
|   ;
|   return 0;
| }
configure:3212: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:15: error: 'thisisanerror' undeclared (first use in this function)
conftest.c:15: error: (Each undeclared identifier is reported only once
conftest.c:15: error: for each function it appears in.)
configure:3212: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
| #if !(defined(__PATHCC__) || defined(__PATHSCALE__))
|       thisisanerror;
| #endif
| 
|   ;
|   return 0;
| }
configure:3212: gcc -c -g -O2  conftest.c >&5
configure:3212: $? = 0
configure:3219: result: gnu
configure:3270: checking for gcc
configure:3297: result: gcc
configure:3526: checking for C compiler version
configure:3535: gcc --version >&5
gcc (Debian 4.4.5-8) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3546: $? = 0
configure:3535: gcc -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8) 
configure:3546: $? = 0
configure:3535: gcc -V >&5
gcc: '-V' option must have argument
configure:3546: $? = 1
configure:3535: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3546: $? = 1
configure:3550: checking whether we are using the GNU C compiler
configure:3578: result: yes
configure:3587: checking whether gcc accepts -g
configure:3648: result: yes
configure:3665: checking for gcc option to accept ISO C89
configure:3742: result: none needed
configure:3826: checking for g++
configure:3856: result: no
configure:3826: checking for c++
configure:3856: result: no
configure:3826: checking for gpp
configure:3856: result: no
configure:3826: checking for aCC
configure:3856: result: no
configure:3826: checking for CC
configure:3856: result: no
configure:3826: checking for cxx
configure:3856: result: no
configure:3826: checking for cc++
configure:3856: result: no
configure:3826: checking for cl.exe
configure:3856: result: no
configure:3826: checking for FCC
configure:3856: result: no
configure:3826: checking for KCC
configure:3856: result: no
configure:3826: checking for RCC
configure:3856: result: no
configure:3826: checking for xlC_r
configure:3856: result: no
configure:3826: checking for xlC
configure:3856: result: no
configure:3880: checking for C++ compiler version
configure:3889: g++ --version >&5
./configure: line 3891: g++: command not found
configure:3900: $? = 127
configure:3889: g++ -v >&5
./configure: line 3891: g++: command not found
configure:3900: $? = 127
configure:3889: g++ -V >&5
./configure: line 3891: g++: command not found
configure:3900: $? = 127
configure:3889: g++ -qversion >&5
./configure: line 3891: g++: command not found
configure:3900: $? = 127
configure:3904: checking whether we are using the GNU C++ compiler
configure:3923: g++ -c   conftest.cpp >&5
./configure: line 1650: g++: command not found
configure:3923: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| #ifndef __GNUC__
|        choke me
| #endif
| 
|   ;
|   return 0;
| }
configure:3932: result: no
configure:3941: checking whether g++ accepts -g
configure:3961: g++ -c -g  conftest.cpp >&5
./configure: line 1650: g++: command not found
configure:3961: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3976: g++ -c   conftest.cpp >&5
./configure: line 1650: g++: command not found
configure:3976: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3992: g++ -c -g  conftest.cpp >&5
./configure: line 1650: g++: command not found
configure:3992: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4002: result: no
configure:4030: checking how to run the C++ preprocessor
configure:4057: g++ -E  conftest.cpp
./configure: line 1687: g++: command not found
configure:4057: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4057: g++ -E  conftest.cpp
./configure: line 1687: g++: command not found
configure:4057: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4057: /lib/cpp  conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:4057: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4057: /lib/cpp  conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:4057: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4096: result: /lib/cpp
configure:4116: /lib/cpp  conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:4116: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4116: /lib/cpp  conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:4116: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4146: error: in `/home/don/audacity':
configure:4148: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=no
ac_cv_env_AVCODEC_CFLAGS_set=
ac_cv_env_AVCODEC_CFLAGS_value=
ac_cv_env_AVCODEC_LIBS_set=
ac_cv_env_AVCODEC_LIBS_value=
ac_cv_env_AVFORMAT_CFLAGS_set=
ac_cv_env_AVFORMAT_CFLAGS_value=
ac_cv_env_AVFORMAT_LIBS_set=
ac_cv_env_AVFORMAT_LIBS_value=
ac_cv_env_AVUTIL_CFLAGS_set=
ac_cv_env_AVUTIL_CFLAGS_value=
ac_cv_env_AVUTIL_LIBS_set=
ac_cv_env_AVUTIL_LIBS_value=
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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_GTK_CFLAGS_set=
ac_cv_env_GTK_CFLAGS_value=
ac_cv_env_GTK_LIBS_set=
ac_cv_env_GTK_LIBS_value=
ac_cv_env_JACK_CFLAGS_set=
ac_cv_env_JACK_CFLAGS_value=
ac_cv_env_JACK_LIBS_set=
ac_cv_env_JACK_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBMAD_CFLAGS_set=
ac_cv_env_LIBMAD_CFLAGS_value=
ac_cv_env_LIBMAD_LIBS_set=
ac_cv_env_LIBMAD_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIBTWOLAME_CFLAGS_set=
ac_cv_env_LIBTWOLAME_CFLAGS_value=
ac_cv_env_LIBTWOLAME_LIBS_set=
ac_cv_env_LIBTWOLAME_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PORTAUDIO_CFLAGS_set=
ac_cv_env_PORTAUDIO_CFLAGS_value=
ac_cv_env_PORTAUDIO_LIBS_set=
ac_cv_env_PORTAUDIO_LIBS_value=
ac_cv_env_PORTSMF_CFLAGS_set=
ac_cv_env_PORTSMF_CFLAGS_value=
ac_cv_env_PORTSMF_LIBS_set=
ac_cv_env_PORTSMF_LIBS_value=
ac_cv_env_SAMPLERATE_CFLAGS_set=
ac_cv_env_SAMPLERATE_CFLAGS_value=
ac_cv_env_SAMPLERATE_LIBS_set=
ac_cv_env_SAMPLERATE_LIBS_value=
ac_cv_env_SBSMS_CFLAGS_set=
ac_cv_env_SBSMS_CFLAGS_value=
ac_cv_env_SBSMS_LIBS_set=
ac_cv_env_SBSMS_LIBS_value=
ac_cv_env_SNDFILE_CFLAGS_set=
ac_cv_env_SNDFILE_CFLAGS_value=
ac_cv_env_SNDFILE_LIBS_set=
ac_cv_env_SNDFILE_LIBS_value=
ac_cv_env_SOUNDTOUCH_CFLAGS_set=
ac_cv_env_SOUNDTOUCH_CFLAGS_value=
ac_cv_env_SOUNDTOUCH_LIBS_set=
ac_cv_env_SOUNDTOUCH_LIBS_value=
ac_cv_env_VAMP_CFLAGS_set=
ac_cv_env_VAMP_CFLAGS_value=
ac_cv_env_VAMP_LIBS_set=
ac_cv_env_VAMP_LIBS_value=
ac_cv_env_WIDGETEXTRA_CFLAGS_set=
ac_cv_env_WIDGETEXTRA_CFLAGS_value=
ac_cv_env_WIDGETEXTRA_LIBS_set=
ac_cv_env_WIDGETEXTRA_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_objext=o
ac_cv_prog_CXXCPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=no
ax_cv_c_compiler_vendor=gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

AFTERBUILD=''
AUDACITY_NAME=''
AVCODEC_CFLAGS=''
AVCODEC_LIBS=''
AVFORMAT_CFLAGS=''
AVFORMAT_LIBS=''
AVUTIL_CFLAGS=''
AVUTIL_LIBS=''
BUILD_LDFLAGS=''
CC='gcc'
CDEPEND=''
CFLAGS='-g -O2'
CFLAG_VISIBILITY=''
CONFIGHEADER=''
CPPFLAGS=''
CXX='g++'
CXXCPP='/lib/cpp'
CXXFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRAINSTALLTARGETS=''
EXTRAOBJS=''
EXTRATARGETS=''
EXTRAUNINSTALLTARGETS=''
GREP=''
GTK_CFLAGS=''
GTK_LIBS=''
HAVE_GTK=''
HAVE_PKG_CONFIG=''
HAVE_VISIBILITY=''
INSTALL_DATA=''
INSTALL_PREFIX=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
JACK_CFLAGS=''
JACK_LIBS=''
LDFLAGS=''
LIBMAD_CFLAGS=''
LIBMAD_LIBS=''
LIBOBJS=''
LIBS=''
LIBSRC_BUILD=''
LIBTWOLAME_CFLAGS=''
LIBTWOLAME_LIBS=''
LOCAL_LIBS=''
LTLIBOBJS=''
MIMETYPES=''
OBJEXT='o'
OPTOBJS=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PORTAUDIO_CFLAGS=''
PORTAUDIO_LIBS=''
PORTSMF_CFLAGS=''
PORTSMF_LIBS=''
PRECOMP_CFLAGS=''
SAMPLERATE_CFLAGS=''
SAMPLERATE_LIBS=''
SBSMS_CFLAGS=''
SBSMS_LIBS=''
SED=''
SHELL='/bin/bash'
SNDFILE_CFLAGS=''
SNDFILE_LIBS=''
SOUNDTOUCH_CFLAGS=''
SOUNDTOUCH_LIBS=''
VAMP_CFLAGS=''
VAMP_LIBS=''
WIDGETEXTRA_CFLAGS=''
WIDGETEXTRA_LIBS=''
WX_CONFIG=''
ac_ct_CC='gcc'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
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='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 1

Which tarball did you download, or are you using SVN?
Which instructions are you using?

I am using the FULL or larger of the two tarballs from http://audacityteam.org/download/source , and using those instructions.

Those instructions are probably enough for people that are experienced in compiling programs, but not really detailed enough for everyone else.
Specific instructions for different operating systems have now been added to the Audacity wiki and these should be a lot easier to follow.

This example (for Ubuntu) works for Debian Squeeze: http://wiki.audacityteam.org/wiki/CompilingAudacityForBeginners#Example_compiling_the_latest_Audacity_source_code_on_Ubuntu

As you have the tarball you can ignore the first 2 steps about obtaining it from SVN.
The relevant step is step 3:

sudo apt-get build-dep audacity

This will install all of the necessary dependencies for Audacity (or will produce an error message if they are not available).

After that, change to the directory where you extracted the source tarball, then:

./configure

to configure (the defaults are usually a good choice)

I then like to run:

make

which will build the binaries,
then the program can be tested before it is installed by launching with:

./audacity

Finally, to install:

sudo make install

apt-get build-dep audacity (have to use su as debian doesn’t have sudo) reports unable to find a source package for audacity.

./configure gives the error message that I posted originally.

Now what do I do?

I forgot that. I prefer sudo so I always add it after installation (it’s in the main Debian stable repository). If you’re happy to use su then there’s no need to change that.

Add debian-multimedia to your sources list.
http://www.deb-multimedia.org/debian-m

Tried that, but I keep getting the following error when I do an apt-get update

GPG error: http://apt.wxwidgets.org squeeze-wx Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E0BCE7F53B087BC

GPG error: http://www.deb-multimedia.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907

I’m totally lost now.

See here: http://www.deb-multimedia.org/

If this repository is too slow for you, use a mirror.

The first package to install is deb-multimedia-keyring.
Since Squeeze you can install this package with apt-get but you need to presse Y when the package ask what to do and do not press return.
An new “apt-get update” is also necessary.

For squeeze (stable) amd64, armel, i386, ia64, kfreebsd-i386, mipsel, powerpc and sparc packages
add in your /etc/apt/sources.list
deb > http://www.deb-multimedia.org > squeeze main non-free
or
deb > ftp://ftp.deb-multimedia.org > squeeze main non-free
or
deb > http://www.deb-multimedia.org > stable main non-free
or
deb > ftp://ftp.deb-multimedia.org > stable main non-free

Ultimately the error in the original config.log file is that the system doesn’t have a C++ compiler installed, i.e. the build tools needed are not present. If you scroll up from the bottom of the log past the state dump you get to the last test output, which fails with ‘g++: no such file or directory’.