diff options
author | Martin Szulecki | 2015-01-30 00:24:01 +0100 |
---|---|---|
committer | Martin Szulecki | 2015-01-30 00:24:01 +0100 |
commit | 6799f3b2db23b9f9b14b20a38417b1fc7237cd80 (patch) | |
tree | c9ebea085ad44fac054272d754d61f3bdddd5cd3 | |
parent | f347085157006523622b0a7160be68d14f037c00 (diff) | |
download | libusbmuxd-6799f3b2db23b9f9b14b20a38417b1fc7237cd80.tar.gz libusbmuxd-6799f3b2db23b9f9b14b20a38417b1fc7237cd80.tar.bz2 |
Improve maintainability and requires of pkg-config file
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | libusbmuxd.pc.in | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 24eceed..8ffb4cb 100644 --- a/configure.ac +++ b/configure.ac @@ -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 @@ -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], diff --git a/libusbmuxd.pc.in b/libusbmuxd.pc.in index 551ad44..3385bc9 100644 --- a/libusbmuxd.pc.in +++ b/libusbmuxd.pc.in @@ -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@
\ No newline at end of file |