summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-12-02 17:56:05 -0500
committerColin Walters <walters@verbum.org>2009-12-02 18:10:32 -0500
commit494c1c92520917999407832453c11c2247b4e7bb (patch)
tree24c03197fcd07e0cbf5b4ab543818c955c05978d
parentffd9b39620c9665a8685363202b4f02fa895288c (diff)
downloadgobject-introspection-494c1c92520917999407832453c11c2247b4e7bb.tar.gz
Require libffi.pc
We use it for girffi.h. Remove the code to detect libffi without the .pc file. If you don't have it, get it. https://bugzilla.gnome.org/show_bug.cgi?id=603653
-rw-r--r--configure.ac42
-rw-r--r--gobject-introspection-1.0.pc.in2
-rw-r--r--gobject-introspection-no-export-1.0.pc.in2
3 files changed, 3 insertions, 43 deletions
diff --git a/configure.ac b/configure.ac
index fccc0769..f5f723cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,50 +127,10 @@ AM_CONDITIONAL(HAVE_GIO_UNIX, test x$have_gio_unix = xtrue)
PKG_CHECK_MODULES(SCANNER, [gobject-2.0 gthread-2.0 gio-2.0])
-dnl libffi
-PKG_CHECK_MODULES(FFI, libffi, have_ffi_pkgconfig=yes, have_ffi_pkgconfig=no)
-
-if test x"$have_ffi_pkgconfig" = xno ; then
- AC_MSG_CHECKING(for ffi.h)
-
- AC_TRY_CPP([#include <ffi.h>], have_ffi_h=yes, have_ffi_h=no)
- if test x"$have_ffi_h" = x"yes"; then
-
- save_LIBS=$LIBS
- if test x"$with_ffi" = x"yes" || test x"$with_ffi" = x"auto"; then
- other_LIBS=
- else
- other_LIBS=$with_ffi
- fi
-
- AC_SEARCH_LIBS(ffi_call,ffi,,AC_MSG_ERROR([libffi not found]),$other_LIBS)
- if test x"$ac_cv_search_ffi_call" = x"none required" ; then
- FFI_LIBS=$other_LIBS
- else
- FFI_LIBS="$ac_cv_search_ffi_call $other_LIBS"
- fi
-
- LIBS=$save_LIBS
- fi
- if test x"$have_ffi_h" != x"yes" ; then
- AC_MSG_ERROR([ffi.h not found])
- fi
-
- FFI_CFLAGS=
-
- AC_MSG_RESULT([$have_ffi_h])
- AC_SUBST(FFI_LIBS)
- AC_SUBST(FFI_CFLAGS)
-fi
AC_CHECK_SIZEOF(time_t, [], [#include <time.h>])
-PKG_CHECK_MODULES(GIREPO, [glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0])
-
-# if we ever remove manual check for ffi and require .pc file, then
-# just put libffi in the PKG_CHECK_MODULES(GIREPO) deps
-GIREPO_LIBS="$GIREPO_LIBS $GCOV_LIBS $FFI_LIBS"
-GIREPO_CFLAGS="$GIREPO_CFLAGS $FFI_CFLAGS"
+PKG_CHECK_MODULES(GIREPO, [glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0 libffi])
GIREPO_CFLAGS="$GIREPO_CFLAGS $GCOV_CFLAGS"
diff --git a/gobject-introspection-1.0.pc.in b/gobject-introspection-1.0.pc.in
index f9c85f7b..1efc9a2c 100644
--- a/gobject-introspection-1.0.pc.in
+++ b/gobject-introspection-1.0.pc.in
@@ -13,7 +13,7 @@ girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Cflags: -I${includedir}/gobject-introspection-1.0
-Requires: glib-2.0 gobject-2.0 gmodule-2.0 gthread-2.0
+Requires: glib-2.0 gobject-2.0 gmodule-2.0 gthread-2.0 libffi
Libs: -L${libdir} -lgirepository-1.0
Name: gobject-introspection
diff --git a/gobject-introspection-no-export-1.0.pc.in b/gobject-introspection-no-export-1.0.pc.in
index 54deae0e..373ab3e9 100644
--- a/gobject-introspection-no-export-1.0.pc.in
+++ b/gobject-introspection-no-export-1.0.pc.in
@@ -13,7 +13,7 @@ girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Cflags: -I${includedir}/gobject-introspection-1.0
-Requires: glib-2.0 gobject-2.0 gmodule-no-export-2.0 gthread-2.0
+Requires: glib-2.0 gobject-2.0 gmodule-no-export-2.0 gthread-2.0 libffi
Libs: -L${libdir} -lgirepository-1.0
Name: gobject-introspection