diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-09-03 20:47:37 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-09-03 20:47:37 +0000 |
commit | 5c39566fee184453112f884bfb4a2bcf8d93b6ae (patch) | |
tree | 60ce971357cb4d43982c9a511eb0ca77a30197d7 /gdb/configure.ac | |
parent | 6a30b0a545185ae9b6b69744a64f3ff76312470a (diff) | |
download | gdb-5c39566fee184453112f884bfb4a2bcf8d93b6ae.zip gdb-5c39566fee184453112f884bfb4a2bcf8d93b6ae.tar.gz gdb-5c39566fee184453112f884bfb4a2bcf8d93b6ae.tar.bz2 |
* configure.ac: Add --with-expat.
* configure: Regenerated.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 4fdf416..6a150aa 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -352,15 +352,30 @@ AC_SUBST(READLINE) AC_SUBST(READLINE_DEPS) AC_SUBST(READLINE_CFLAGS) -AC_LIB_HAVE_LINKFLAGS([expat], [], [#include "expat.h"], - [XML_Parser p = XML_ParserCreate (0);]) -if test "$HAVE_LIBEXPAT" != yes; then - AC_MSG_WARN([expat is missing or unusable; some features may be disabled.]) +AC_ARG_WITH(expat, + AS_HELP_STRING([--with-expat], [include expat support (auto/yes/no)]), + [], [with_expat=auto]) +AC_MSG_CHECKING([whether to use expat]) +AC_MSG_RESULT([$with_expat]) + +if test "${with_expat}" = no; then + AC_MSG_WARN([expat support disabled; some features may be unavailable.]) + HAVE_LIBEXPAT=no else - save_LIBS=$LIBS - LIBS="$LIBS $LIBEXPAT" - AC_CHECK_FUNCS(XML_StopParser) - LIBS=$save_LIBS + AC_LIB_HAVE_LINKFLAGS([expat], [], [#include "expat.h"], + [XML_Parser p = XML_ParserCreate (0);]) + if test "$HAVE_LIBEXPAT" != yes; then + if test "$with_expat" = yes; then + AC_MSG_ERROR([expat is missing or unusable]) + else + AC_MSG_WARN([expat is missing or unusable; some features may be unavailable.]) + fi + else + save_LIBS=$LIBS + LIBS="$LIBS $LIBEXPAT" + AC_CHECK_FUNCS(XML_StopParser) + LIBS=$save_LIBS + fi fi # ------------------------- # |