]> git.saurik.com Git - cycript.git/blob - configure.ac
Actually committing the file that fixed the int to size_t for the lexer warning.
[cycript.git] / configure.ac
1 #AC_PREREQ([2.65])
2 AC_INIT([Cycript], [0.9], [saurik@saurik.com], [cycript], [http://www.cycript.org/])
3 AC_CONFIG_SRCDIR([Console.cpp])
4 AX_PROG_BISON([
5 BISON=`echo $YACC | $SED -e 's/ -y//'`
6 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
7 ], [AC_MSG_ERROR([You need bison 2.4 or greater])])
8 AC_PROG_AWK
9 AC_MSG_CHECKING([if bison is >= 2.4])
10 AX_COMPARE_VERSION([$BISON_VERSION], [ge], [2.4], [AC_MSG_RESULT([yes])], [
11 AC_MSG_RESULT([no])
12 AC_MSG_ERROR([You need bison 2.4 or greater])
13 ])
14 AC_SUBST([BISON])
15 AC_PROG_LEX
16 AC_MSG_CHECKING([for flex])
17 AS_IF([test "`echo \"$LEX\" | $SED 's/^.*\(flex\).*$/\1/'`" = "flex"], [
18 AC_MSG_RESULT([yes])
19 AC_SUBST([FLEX], [$LEX])
20 ], [
21 AC_MSG_RESULT([no])
22 AC_MSG_ERROR([You need flex])
23 ])
24 APR_FIND_APR([], [], [1], [1])
25 AS_CASE([$apr_found], [yes], [
26 AC_LIB_APPENDTOVAR([CPPFLAGS], [`$apr_config --includes`])
27 AC_SUBST([APR], [`$apr_config --link-ld`])
28 ], [AC_MSG_ERROR([You need apr])])
29 AC_PROG_CXX
30 AC_PROG_INSTALL
31 AM_ICONV
32 AS_CASE([$am_cv_func_iconv], [yes], [], [AC_MSG_ERROR([You need iconv])])
33 PKG_CHECK_MODULES([WEBKIT], [webkit-1.0], [WEBKIT=yes], [
34 PKG_CHECK_MODULES([WEBKIT], [WebKitGtk], [WEBKIT=yes], [WEBKIT=no])
35 ])
36 AS_CASE([$WEBKIT], [yes], [
37 PKG_CHECK_MODULES([LIBFFI], [libffi])
38 ], [AC_MSG_WARN(No JavaScript engine!)])
39 CHECK_GNU_MAKE
40 AS_IF([test x$_cv_gnu_make_command = x], [AC_MSG_ERROR([You need GNU make])])
41 # XXX: gnustep
42 #AC_PROG_OBJCXX