pkg-config/Makefile.am
Arch Librarian d793148d06 2002-09-13 Tor Lillqvist <tml@iki.fi>
Author: tml
Date: 2002-09-12 20:47:07 GMT
2002-09-13  Tor Lillqvist  <tml@iki.fi>

	* Makefile.am (USE_INSTALLED_GLIB): Seems that the automake
	version used by Havoc doesn't recognize pkg_config_CFLAGS and
	pkg_config_LDFLAGS, thus failing builds on Win32 directly from the
	tarball. Set included_glib_includes and pkg_config_LDADD instead,
	then, like in the !USE_INSTALLED_GLIB branch.

	* findme.c (X_OK): If X_OK undefined, define as 1, always, not
	only if G_OS_WIN32, which is never defined here. Fixes a corner
	case on Win32 with MSYS and mingw where configure as included in
	the release tarball for some reason doesn't find unistd.h.
2005-07-14 13:05:20 +00:00

36 lines
624 B
Makefile

if USE_INSTALLED_GLIB
included_glib_includes = @GLIB_CFLAGS@
pkg_config_LDADD=@GLIB_LIBS@
else
SUBDIRS = glib-1.2.8
included_glib_includes = -I./glib-1.2.8
pkg_config_LDADD=glib-1.2.8/libglib.la
endif
m4dir = $(datadir)/aclocal
m4_DATA = pkg.m4
man_MANS = pkg-config.1
EXTRA_DIST = $(m4_DATA) $(man_MANS) README.win32
bin_PROGRAMS = pkg-config
INCLUDES=-DPKGLIBDIR="\"$(pkglibdir)\"" $(included_glib_includes)
pkg_config_SOURCES= \
pkg.h \
pkg.c \
partial-glib.h \
partial-glib.c \
parse.h \
parse.c \
main.c \
findme.c \
findme.h \
popt.c \
popt.h \
poptconfig.c \
popthelp.c \
poptint.h \
poptparse.c