2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(gobject-introspection, 0.1, http://bugzilla.gnome.org/enter_bug.cgi?product=glib)
6 AM_INIT_AUTOMAKE([1.7])
8 AC_CONFIG_SRCDIR([src/ginvoke.c])
9 AC_CONFIG_HEADER([config.h])
11 # Checks for programs.
18 if test "$LEX" = :; then
19 AC_MSG_ERROR([flex not found but required])
22 AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc, :)
23 if test "$YACC" = :; then
24 AC_MSG_ERROR([bison not found but required])
27 # Checks for libraries.
28 AC_CHECK_LIB([dl], [dlopen])
32 PKG_CHECK_MODULES(GIREPO, [glib-2.0 gobject-2.0 gmodule-2.0 gthread-2.0 libffi],
33 [have_libffi=true], [have_libffi=false])
36 AC_DEFINE(HAVE_LIBFFI,[],[Defined if libffi was found])
39 dnl if libffi is not found, g_function_info_invoke is not available,
40 dnl but everything else still works
41 PKG_CHECK_MODULES(GIREPO, [glib-2.0 gobject-2.0 gmodule-2.0 gthread-2.0])
44 # Checks for header files.
46 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h])
48 # Checks for typedefs, structures, and compiler characteristics.
51 # Checks for library functions.
53 AC_CHECK_FUNCS([memchr strchr strspn strstr strtol strtoull])
55 AC_CONFIG_FILES([Makefile
59 gobject-introspection.pc])