Add spec file
[jansson.git] / configure.ac
1 AC_PREREQ([2.60])
2 AC_INIT([jansson], [2.0], [petri@digip.org])
3
4 AM_INIT_AUTOMAKE([1.10 foreign])
5
6 AC_CONFIG_SRCDIR([src/value.c])
7 AC_CONFIG_HEADERS([config.h])
8
9 # Checks for programs.
10 AC_PROG_CC
11 AC_PROG_LIBTOOL
12 AM_CONDITIONAL([GCC], [test x$GCC = xyes])
13
14 # Checks for libraries.
15
16 # Checks for header files.
17
18 # Checks for typedefs, structures, and compiler characteristics.
19 AC_TYPE_INT32_T
20
21 AC_TYPE_LONG_LONG_INT
22 case $ac_cv_type_long_long_int in
23      yes) json_have_long_long=1;;
24      *) json_have_long_long=0;;
25 esac
26 AC_SUBST([json_have_long_long])
27
28 AC_C_INLINE
29 case $ac_cv_c_inline in
30     yes) json_inline=inline;;
31     no) json_inline=;;
32     *) json_inline=$ac_cv_c_inline;;
33 esac
34 AC_SUBST([json_inline])
35
36 # Checks for library functions.
37
38 AC_CONFIG_FILES([
39         jansson.pc
40         Makefile
41         doc/Makefile
42         src/Makefile
43         src/jansson_config.h
44         test/Makefile
45         test/bin/Makefile
46         test/suites/Makefile
47         test/suites/api/Makefile
48 ])
49 AC_OUTPUT