comparison configure.ac @ 249:6b2441c776dd

*: merge
author Paper <mrpapersonic@gmail.com>
date Wed, 24 Jan 2024 20:18:59 -0500
parents 1ae4d8b28a5c 06d6c351925c
children c130f47f6f48
comparison
equal deleted inserted replaced
248:cf47a8f687c0 249:6b2441c776dd
1 AC_INIT([minori], [0.1.0-alpha.1]) 1 AC_INIT([minori], [0.1.0-alpha.1])
2 2
3 AC_CANONICAL_HOST 3 AC_CANONICAL_HOST
4 4
5 AC_CONFIG_SUBDIRS([dep/pugixml dep/animia dep/anitomy])
5 AC_CONFIG_SRCDIR([src/main.cc]) 6 AC_CONFIG_SRCDIR([src/main.cc])
6 AC_CONFIG_AUX_DIR([build-aux]) 7 AC_CONFIG_AUX_DIR([build-aux])
7 AC_CONFIG_MACRO_DIRS([m4]) 8 AC_CONFIG_MACRO_DIRS([m4])
8 9
9 AM_INIT_AUTOMAKE([-Wall -Wportability foreign subdir-objects]) 10 AM_INIT_AUTOMAKE([-Wall -Wportability foreign subdir-objects])
10 11
11 # Do we have a C++17 compiler 12 # Do we have a C++17 compiler
13 : ${CXXFLAGS=""}
12 AC_PROG_CXX 14 AC_PROG_CXX
13 AX_CXX_COMPILE_STDCXX(17, noext, mandatory) 15 AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory])
14 16
17 # Init libtool
15 AM_PROG_AR 18 AM_PROG_AR
16 LT_INIT 19 LT_INIT
17 20
18 # Qt? 21 # Qt?
19 AX_HAVE_QT 22 AX_HAVE_QT
24 27
25 # need this for moc 28 # need this for moc
26 AC_PROG_MKDIR_P 29 AC_PROG_MKDIR_P
27 30
28 # libcurl? 31 # libcurl?
29 LIBCURL_CHECK_CONFIG(yes, 7.7.2, [have_libcurl=yes], [have_libcurl=no]) 32 LIBCURL_CHECK_CONFIG([yes], [7.7.2], [have_libcurl=yes], [have_libcurl=no])
30 33
31 if test "x$have_libcurl" = "xno"; then 34 if test "x$have_libcurl" = "xno"; then
32 AC_MSG_ERROR([*** libcurl not found.]) 35 AC_MSG_ERROR([*** libcurl not found.])
33 fi 36 fi
34 37
56 AC_DEFINE(LINUX) 59 AC_DEFINE(LINUX)
57 fi 60 fi
58 # Everything else 61 # Everything else
59 AC_SUBST([GIO_CFLAGS]) 62 AC_SUBST([GIO_CFLAGS])
60 AC_SUBST([GIO_LIBS]) 63 AC_SUBST([GIO_LIBS])
61 PKG_CHECK_MODULES(GIO, gio-2.0, [build_glib=yes], []) 64 PKG_CHECK_MODULES([GIO], [gio-2.0], [build_glib=yes], [])
62 ;; 65 ;;
63 esac 66 esac
64 67
65 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) 68 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"])
66 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) 69 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"])
67 AM_CONDITIONAL([BUILD_GLIB], [test "x$build_glib" = "xyes"]) 70 AM_CONDITIONAL([BUILD_GLIB], [test "x$build_glib" = "xyes"])
68 AM_CONDITIONAL([BUILD_WINDRES], [test "x$WINDRES" != "x"]) 71 AM_CONDITIONAL([BUILD_WINDRES], [test "x$WINDRES" != "x"])
69 72
70 AC_CONFIG_SUBDIRS([dep/pugixml dep/animia dep/anitomy])
71
72 AC_CONFIG_FILES([Makefile]) 73 AC_CONFIG_FILES([Makefile])
73 AC_OUTPUT 74 AC_OUTPUT