From: Thiago Jung Bauermann <bauerman@br.ibm.com>
To: gdb-patches <gdb-patches@sourceware.org>
Subject: [patch] add --with-expat configure option
Date: Sat, 14 Apr 2007 08:15:00 -0000 [thread overview]
Message-ID: <1176510719.13824.25.camel@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 440 bytes --]
Hi,
I needed to disable compiling with the expat library even if present in
the build system, so I created a --with-expat configure option to
control that. Configuring with --with-expat=no or --without-expat will
disable the expat test. The default is to use the library if available.
I'm posting here in case you are interested in incorporating the
change...
--
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center
[-- Attachment #2: with-expat-cvs-head.diff --]
[-- Type: text/plain, Size: 1481 bytes --]
2007-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
* configure.ac: Add --with-expat option.
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.44
diff -u -r1.44 configure.ac
--- configure.ac 11 Apr 2007 18:36:50 -0000 1.44
+++ configure.ac 13 Apr 2007 23:47:02 -0000
@@ -337,15 +337,26 @@
AC_MSG_ERROR([no termcap library found])
fi
-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.])
-else
- save_LIBS=$LIBS
- LIBS="$LIBS $LIBEXPAT"
- AC_CHECK_FUNCS(XML_StopParser)
- LIBS=$save_LIBS
+AC_ARG_WITH(expat,
+[ --with-expat Use expat XML library (default=yes)],
+[case "${withval}" in
+ yes) enable_expat=yes ;;
+ no) enable_expat=no ;;
+ *) AC_MSG_ERROR(bad value ${withval} for GDB with-expat option) ;;
+esac],[ enable_expat=yes ])
+
+if test x"$enable_expat" = xyes; then
+ 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.])
+ else
+ save_LIBS=$LIBS
+ LIBS="$LIBS $LIBEXPAT"
+ AC_CHECK_FUNCS(XML_StopParser)
+ LIBS=$save_LIBS
+ fi
fi
# ------------------------- #
next reply other threads:[~2007-04-14 0:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-14 8:15 Thiago Jung Bauermann [this message]
2007-09-03 20:47 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1176510719.13824.25.camel@localhost.localdomain \
--to=bauerman@br.ibm.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox