unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* configure's dependency on pkg-config
@ 2011-11-11 19:25 Stephen Berman
  2011-11-12 14:13 ` Jan Djärv
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Berman @ 2011-11-11 19:25 UTC (permalink / raw)
  To: emacs-devel

I built a GNU/Linux system from sources (Linux From Scratch) and then
built the current Emacs pretest on it with configure && make, but was
surprised that configure failed to use libxml2, although I had built and
installed the libxml2 files in the standard locations.  I then
reconfigured Emacs, passing the libxml2 requirements to configure via
CPPFLAGS, LDFLAGS and LIBS, but it still failed to use libxml2.  Then I
looked at configure and found the reason:

  if test "$PKG_CONFIG" = "no" ; then
     HAVE_LIBXML2=no

I don't have pkg-config installed on this system.  I tried passing
PKG_CONFIG=1 to configure, but that didn't help, because if that
variable is set, configure looks for the pkg-config executable.
Finally, I simply hacked out the pkg-config bits around the libxml2
tests in configure and passed the requirements via LIBXML2_CFLAGS and
LIBXML2_LIBS, and this worked.  

Is there a better way to override configure's dependency on pkg-config
for libraries such as libxml2, so that it would suffice to pass the
standard variable CPPFLAGS, LDFLAGS and LIBS?  Or if there isn't, should
there be?

Steve Berman




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-11-14 14:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-11 19:25 configure's dependency on pkg-config Stephen Berman
2011-11-12 14:13 ` Jan Djärv
2011-11-12 22:33   ` Stephen Berman
2011-11-12 22:59     ` Glenn Morris
2011-11-12 23:56       ` Stephen Berman
2011-11-13  0:32         ` Paul Eggert
2011-11-12 23:12     ` Jan Djärv
2011-11-12 23:56       ` Stephen Berman
2011-11-13 11:08         ` Jan Djärv
2011-11-14 14:01     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).