From 4d95679e67a11b6a748d0df192e410457229b83c Mon Sep 17 00:00:00 2001
From: Martin Szulecki
Date: Wed, 28 Jan 2015 20:54:25 +0100
Subject: [PATCH] Move pkg-config file into src directory
---
Makefile.am | 3 ---
configure.ac | 2 +-
src/Makefile.am | 3 +++
libimobiledevice-1.0.pc.in => src/libimobiledevice-1.0.pc.in | 0
4 files changed, 4 insertions(+), 4 deletions(-)
rename libimobiledevice-1.0.pc.in => src/libimobiledevice-1.0.pc.in (100%)
diff --git a/Makefile.am b/Makefile.am
index fdd273f44..c7d69cc07 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,9 +2,6 @@ AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = common src include $(CYTHON_SUB) tools docs
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libimobiledevice-1.0.pc
-
EXTRA_DIST = docs
docs/html: $(top_builddir)/doxygen.cfg $(top_srcdir)/src/*.c $(top_srcdir)/src/*.h $(top_srcdir)/include/libimobiledevice/*.h
diff --git a/configure.ac b/configure.ac
index 44e1e096a..44daa65ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -209,11 +209,11 @@ AC_OUTPUT([
Makefile
common/Makefile
src/Makefile
+src/libimobiledevice-1.0.pc
include/Makefile
tools/Makefile
cython/Makefile
docs/Makefile
-libimobiledevice-1.0.pc
doxygen.cfg
])
diff --git a/src/Makefile.am b/src/Makefile.am
index e45437b34..da603865e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -34,3 +34,6 @@ if WIN32
libimobiledevice_la_LDFLAGS += -avoid-version
libimobiledevice_la_LIBADD += -lole32 -lws2_32
endif
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libimobiledevice-1.0.pc
diff --git a/libimobiledevice-1.0.pc.in b/src/libimobiledevice-1.0.pc.in
similarity index 100%
rename from libimobiledevice-1.0.pc.in
rename to src/libimobiledevice-1.0.pc.in