-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
57 lines (46 loc) · 1.7 KB
/
Copy pathconfigure.ac
File metadata and controls
57 lines (46 loc) · 1.7 KB
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.72])
AC_INIT([bestofjava], [0.0.1])
AC_CONFIG_SRCDIR([src/java/util/Calendar.cpp])
AC_LANG([C++])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_AWK
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_MAKE_SET
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AX_CHECK_COMPILE_FLAG([-std=c++26], [CXX="$CXX -std=c++26"], [AX_CHECK_COMPILE_FLAG([-std=c++2x], [CXX="$CXX -std=c++2x"], [AX_CHECK_COMPILE_FLAG([-std=c++23], [CXX="$CXX -std=c++23"],[AX_CHECK_COMPILE_FLAG([-std=c++2b], [CXX="$CXX -std=c++2b"], AC_MSG_ERROR([your compiler does not support c++23. please upgrade it. gcc 14.2 or clang 19 or any later version of them will do the job]))])])])
AC_CHECK_LIB(curl, curl_easy_init, [], [
echo "Error! You need libcurl."
exit -1
])
AC_CHECK_LIB(expat, XML_ParserCreate, [], [
echo "Error! You need libexpat1-dev."
exit -1
])
AC_CHECK_SIZEOF([long])
# Checks for library functions.
AC_FUNC_MKTIME
AC_CHECK_FUNCS([gettimeofday localtime_r])
LT_PREREQ([2.5.4])
LT_INIT([disable-static])
AC_CONFIG_FILES([Makefile
src/Makefile
src/java/Makefile
src/java/io/Makefile
src/java/lang/Makefile
src/java/net/Makefile
src/java/util/Makefile
src/org/xml/sax/Makefile
src/org/xml/sax/helpers/Makefile
src/javax/xml/parsers/Makefile
tests/Makefile])
AC_OUTPUT