Skip to content

Commit

Permalink
Added --with-pkgconfigdir
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfreyer committed Oct 8, 2014
1 parent 6b3c293 commit 671ebda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ endif
include_HEADERS = strophe.h
noinst_HEADERS = strophepp.h

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libstrophe.pc

EXTRA_DIST = docs
Expand Down
8 changes: 8 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ fi

AC_CHECK_HEADERS([arpa/nameser_compat.h])


m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR],
[AC_ARG_WITH([pkgconfigdir],
[AS_HELP_STRING([--with-pkgconfigdir],
[install directory for libstrophe.pc pkg-config file])],
[],[with_pkgconfigdir='$(libdir)/pkgconfig'])
AC_SUBST([pkgconfigdir], [${with_pkgconfigdir}])])

AM_CONDITIONAL([PARSER_EXPAT], [test x$with_parser != xlibxml2])

AC_SUBST([PC_REQUIRES], [${PC_REQUIRES[[@]]}])
Expand Down

0 comments on commit 671ebda

Please sign in to comment.