Mercurial > minori
annotate configure.ac @ 274:f6a756c19bfb
anime_list.cc: use mutexes so we don't sex the stack
strings.cc: use Qt to convert from HTML to plain text.
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Thu, 18 Apr 2024 17:24:42 -0400 |
| parents | f31305b9f60a |
| children | 19eb6c4dca78 |
| rev | line source |
|---|---|
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
1 AC_INIT([minori], [0.1.0-alpha.1]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
2 |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
3 AC_CANONICAL_HOST |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
4 |
| 258 | 5 AC_CONFIG_SUBDIRS([dep/pugixml dep/animone dep/anitomy]) |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
6 AC_CONFIG_SRCDIR([src/main.cc]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
7 AC_CONFIG_AUX_DIR([build-aux]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
8 AC_CONFIG_MACRO_DIRS([m4]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
9 |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
10 AM_INIT_AUTOMAKE([-Wall -Wportability foreign subdir-objects]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
11 |
| 264 | 12 dnl need C compiler for utf8proc |
| 13 AC_PROG_CC | |
| 14 | |
| 250 | 15 dnl Do we have a C++17 compiler |
|
273
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
271
diff
changeset
|
16 : ${CXXFLAGS=""} |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
17 AC_PROG_CXX |
| 237 | 18 AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory]) |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
19 |
| 250 | 20 dnl Init libtool |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
21 AM_PROG_AR |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
22 LT_INIT |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
23 |
| 250 | 24 dnl Qt? |
| 258 | 25 have_qt=no |
| 26 AX_HAVE_QT | |
| 250 | 27 |
| 28 AS_IF([test "x$have_qt" = "xno"], [AC_MSG_ERROR([*** Qt not found.])]) | |
| 258 | 29 AC_SUBST([QT_LRELEASE]) |
| 30 AC_SUBST([QT_LUPDATE]) | |
| 31 AC_SUBST([QT_MOC]) | |
| 32 AC_SUBST([QT_RCC]) | |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
33 |
| 250 | 34 dnl need this for moc |
| 35 AC_PROG_MKDIR_P | |
| 36 AC_SUBST([MKDIR_P]) | |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
37 |
| 250 | 38 dnl libcurl? |
| 237 | 39 LIBCURL_CHECK_CONFIG([yes], [7.7.2], [have_libcurl=yes], [have_libcurl=no]) |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
40 |
| 250 | 41 AS_IF([test "x$have_libcurl" = "xno"], [AC_MSG_ERROR([*** libcurl not found.])]) |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
42 |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
43 build_windows=no |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
44 build_osx=no |
| 250 | 45 build_linux=no |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
46 build_glib=no |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
47 |
| 250 | 48 AS_CASE(["$host_os"], |
| 49 [cygwin*|mingw*], [build_windows=yes], | |
| 50 [darwin*], [build_osx=yes], | |
| 51 [linux*], [build_linux=yes], | |
| 52 []) | |
| 53 | |
| 54 if test "x$build_windows" = "xyes"; then | |
| 55 AC_DEFINE([WIN32]) | |
| 56 | |
| 57 dnl Check for windres | |
| 58 AC_CHECK_TOOL([WINDRES], [windres]) | |
| 59 AC_SUBST([WINDRES]) | |
| 60 elif test "x$build_osx" = "xyes"; then | |
| 61 AC_DEFINE([MACOSX]) | |
| 62 else | |
| 63 AS_IF([test "x$build_linux" = "xyes"], [AC_DEFINE([linux])]) | |
| 64 | |
| 65 PKG_CHECK_MODULES([GLIB], [gio-2.0 glib-2.0], [build_glib=yes], [build_glib=no]) | |
| 66 if test "x$build_glib" = "xyes"; then | |
| 67 AC_DEFINE([GLIB]) | |
| 68 | |
| 69 AC_SUBST([GLIB_CFLAGS]) | |
| 70 AC_SUBST([GLIB_LIBS]) | |
| 71 fi | |
| 72 fi | |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
73 |
|
267
09c5bd74fe93
win32: make builds work again
Paper <paper@paper.us.eu.org>
parents:
264
diff
changeset
|
74 AC_DEFINE([UTF8PROC_STATIC]) |
|
09c5bd74fe93
win32: make builds work again
Paper <paper@paper.us.eu.org>
parents:
264
diff
changeset
|
75 |
|
236
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
76 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
77 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
78 AM_CONDITIONAL([BUILD_GLIB], [test "x$build_glib" = "xyes"]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
79 AM_CONDITIONAL([BUILD_WINDRES], [test "x$WINDRES" != "x"]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
80 |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
81 AC_CONFIG_FILES([Makefile]) |
|
4d461ef7d424
HUGE UPDATE: convert build system to autotools
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
82 AC_OUTPUT |
