wmframepic: Use pkg-config to check for libraries.
This commit is contained in:
parent
7a9d0f168c
commit
04bddc625f
|
@ -3,6 +3,9 @@ AC_CONFIG_SRCDIR([src/main.c])
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
PKG_CHECK_MODULES([Xlib], [x11])
|
||||||
|
PKG_CHECK_MODULES([libXpm], [xpm])
|
||||||
|
PKG_CHECK_MODULES([argtable], [argtable2])
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile src/Makefile])
|
AC_CONFIG_FILES([Makefile src/Makefile])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
@ -11,9 +11,6 @@ draw_text.c \
|
||||||
arg_parser.c \
|
arg_parser.c \
|
||||||
arg_parser.h
|
arg_parser.h
|
||||||
|
|
||||||
wmframepic_CPPFLAGS =
|
|
||||||
wmframepic_CFLAGS = $(X_CFLAGS)
|
|
||||||
wmframepic_LDFLAGS = $(X_LIBS)
|
|
||||||
|
|
||||||
wmframepic_LDADD = $(X_PRE_LIBS) -lX11 -lXpm -largtable2 $(X_EXTRA_LIBS)
|
AM_CFLAGS = $(Xlib_CFLAGS) $(libXpm_CFLAGS) $(argtable_CFLAGS)
|
||||||
|
LIBS += $(Xlib_LIBS) $(libXpm_LIBS) $(argtable_LIBS)
|
||||||
|
|
Loading…
Reference in a new issue