Skip to content

Commit

Permalink
Improve maintainability and requires of pkg-config file
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyM committed Jan 29, 2015
1 parent f347085 commit 6799f3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ dnl libtool versioning
# CURRENT : REVISION : AGE
LIBUSBMUXD_SO_VERSION=4:0:0


dnl Minimum package versions
LIBPLIST_VERSION=1.11

AC_SUBST(LIBUSBMUXD_SO_VERSION)
AC_SUBST(LIBPLIST_VERSION)

# Checks for programs.
AC_PROG_CC
Expand All @@ -26,7 +31,7 @@ AM_PROG_CC_C_O
AC_PROG_LIBTOOL

# Checks for libraries.
PKG_CHECK_MODULES(libplist, libplist >= 1.11)
PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION)
AC_CHECK_HEADERS([sys/inotify.h], have_inotify=yes, have_inotify=no)

AC_ARG_WITH([inotify],
Expand Down
6 changes: 3 additions & 3 deletions libusbmuxd.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libusbmuxd
Name: @PACKAGE_NAME@
Description: A library to communicate with the usbmux daemon
Version: @VERSION@
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lusbmuxd
Cflags: -I${includedir}

Requires.private: libplist >= @LIBPLIST_VERSION@

0 comments on commit 6799f3b

Please sign in to comment.