ObjGameKit  Diff

Differences From Artifact [3f73c44bb7]:

To Artifact [9b142bc8ab]:


1
2


3
4
5
6
7
8
9
AC_INIT(ObjGameKit, 0.1, js@webkeks.org)
AC_CONFIG_SRCDIR(src)



AC_CHECK_TOOL(OBJFW_CONFIG, objfw-config)
AS_IF([test x"$OBJFW_CONFIG" = x""], [
	AC_MSG_ERROR(You need ObjFW and objfw-config installed!)
])

test x"$OBJC" = x"" && OBJC="$($OBJFW_CONFIG --objc)"


>
>







1
2
3
4
5
6
7
8
9
10
11
AC_INIT(ObjGameKit, 0.1, js@webkeks.org)
AC_CONFIG_SRCDIR(src)

AC_CANONICAL_HOST

AC_CHECK_TOOL(OBJFW_CONFIG, objfw-config)
AS_IF([test x"$OBJFW_CONFIG" = x""], [
	AC_MSG_ERROR(You need ObjFW and objfw-config installed!)
])

test x"$OBJC" = x"" && OBJC="$($OBJFW_CONFIG --objc)"
39
40
41
42
43
44
45






46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

PKG_CHECK_MODULES(allegro5, [allegro-5.0 allegro_main-5.0 allegro_image-5.0], [
	CPPFLAGS="$CPPFLAGS $allegro5_CFLAGS"
	LIBS="$LIBS $allegro5_LIBS"
], [
	AC_MSG_ERROR(You need allegro{_main,_image}-5.0 installed!)
])







# We add -Werror after all tests in case some tests emit warnings
OBJCFLAGS="$OBJCFLAGS -Werror"

BUILDSYS_SHARED_LIB
BUILDSYS_INIT
BUILDSYS_TOUCH_DEPS

dnl We don't call AC_PROG_CPP, but only AC_PROG_OBJCPP and set CPP to OBJCPP
dnl and add OBJCPPFLAGS to CPPFLAGS, thus we need to AC_SUBST these ourself.
AC_SUBST(CPP)
AC_SUBST(CPPFLAGS)

AC_SUBST(PACKAGE, ObjGameKit)
AC_CONFIG_FILES(buildsys.mk)
AC_OUTPUT







>
>
>
>
>
>














|

41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

PKG_CHECK_MODULES(allegro5, [allegro-5.0 allegro_main-5.0 allegro_image-5.0], [
	CPPFLAGS="$CPPFLAGS $allegro5_CFLAGS"
	LIBS="$LIBS $allegro5_LIBS"
], [
	AC_MSG_ERROR(You need allegro{_main,_image}-5.0 installed!)
])

case "$host_os" in
	darwin*)
		AC_SUBST(REEXPORT_ALLEGRO, ["-Wl,-reexport-lallegro_main"])
		;;
esac

# We add -Werror after all tests in case some tests emit warnings
OBJCFLAGS="$OBJCFLAGS -Werror"

BUILDSYS_SHARED_LIB
BUILDSYS_INIT
BUILDSYS_TOUCH_DEPS

dnl We don't call AC_PROG_CPP, but only AC_PROG_OBJCPP and set CPP to OBJCPP
dnl and add OBJCPPFLAGS to CPPFLAGS, thus we need to AC_SUBST these ourself.
AC_SUBST(CPP)
AC_SUBST(CPPFLAGS)

AC_SUBST(PACKAGE, ObjGameKit)
AC_CONFIG_FILES([buildsys.mk extra.mk])
AC_OUTPUT