1.1 --- a/configure Wed Jun 08 15:47:03 2011 +0200
1.2 +++ b/configure Wed Jun 08 15:47:43 2011 +0200
1.3 @@ -462,6 +462,34 @@
1.4 err="static 'libstdc++' is needed to statically link the toolchain's executables" \
1.5 kconfig=has_static_libstdcxx
1.6
1.7 +expat_libs="$( for x in so dylib a; do \
1.8 + printf "libexpat.$x "; \
1.9 + done \
1.10 + )"
1.11 +has_or_warn inc="expat.h" \
1.12 + lib="${expat_libs}" \
1.13 + err="The 'expat' header file and library are needed to link cross-gdb's executables" \
1.14 + kconfig=has_expat
1.15 +
1.16 +# Yes, we may be checking twice for libexpat.a
1.17 +# The first is because we need one instance of libexpat (shared or static)
1.18 +# because it is needed for cross-gdb; the second is because the static version
1.19 +# is required for static-linking, and if missing, the option is removed.
1.20 +has_or_warn lib="libexpat.a" \
1.21 + err="static 'expat' is needed to statically link cross-gdb's executables" \
1.22 + kconfig=has_static_expat
1.23 +
1.24 +for v in 7 6 5 4; do
1.25 + python_incs="${python_incs}$( printf "python2.$v/Python.h " )"
1.26 + python_libs="${python_libs}$( for x in so dylib a; do \
1.27 + printf "libpython2.$v.$x "; \
1.28 + done \
1.29 + )"
1.30 +done
1.31 +has_or_warn inc="${python_incs}" \
1.32 + lib="${python_libs}" \
1.33 + err="The 'python' header file and library are needed for some features of cross-gdb"
1.34 +
1.35 #---------------------------------------------------------------------
1.36 # Compute the version string
1.37