-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.in
58 lines (41 loc) · 1.27 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/js.cpp)
dnl Every other copy of the package version number gets its value from here
AM_INIT_AUTOMAKE(sysjs, 3.6.8)
dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
AM_CONFIG_HEADER(config.h)
AC_SUBST(VERSION)
ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)
AC_CANONICAL_HOST
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LIBTOOL
#AC_CHECK_TOOL(JS_CONFIG, js-config, :)
#AC_SUBST(LIBJSXX_LIBS, `js-config --libs`)
#AC_SUBST(LIBJSXX_INC, `js-config --cflags`)
PKG_CHECK_MODULES(MOZJS, mozilla-js >= 1.9.2)
AC_SUBST(MOZJS_CFLAGS)
AC_SUBST(MOZJS_LIBS)
#
# needed for js headers:
#
PKG_CHECK_MODULES(XULU,libxul-unstable >= 1.9.2)
AC_SUBST(XULU_CFLAGS)
AC_SUBST(XULU_LIBS)
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h sys/param.h sys/time.h time.h sys/mkdev.h sys/sysmacros.h string.h memory.h fcntl.h dirent.h sys/ndir.h ndir.h alloca.h locale.h )
dnl jm_CHECK_TYPE_STRUCT_UTIMBUF
AC_HEADER_MAJOR
AC_FUNC_ALLOCA
AC_STRUCT_TM
AC_STRUCT_ST_BLOCKS
AC_FUNC_CLOSEDIR_VOID
AC_CHECK_FUNCS(mkfifo)
AC_CHECK_FUNC(mknod)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AC_OUTPUT(Makefile src/Makefile)