forked from jiggak/lemonlauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
61 lines (45 loc) · 1.76 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
58
59
60
61
AC_PREREQ(2.59)
AC_INIT([Lemon Launcher], [0.0.7], [[email protected]])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([config.h])
#AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE
# use c++ for checks
AC_LANG_CPLUSPLUS
AC_PROG_CC
AC_PROG_CXX
AC_CHECK_PROGS(BUILD_CC, gcc cc, $CC)
AC_CXX_NAMESPACES
AC_CXX_HAVE_STL
###########################################################
# set config file directory
AC_ARG_WITH([confdir],
AC_HELP_STRING([--with-confdir=DIR], [Where to find conf files ($HOME/.lemonlauncher)]),
AC_DEFINE_UNQUOTED(HAVE_CONF_DIR, "$withval", [Define to the directory of conf files]))
###########################################################
# set default ttf font file
AC_ARG_WITH([default-font],
AC_HELP_STRING([--with-default-font=FILE], [TrueType font to use as default font]),
[DEFAULT_FONT="$withval"], [DEFAULT_FONT='$(top_srcdir)/VeraBd.ttf'])
AC_SUBST(DEFAULT_FONT)
###########################################################
# check for libraries, always error if not found
# check will fail unless linked against lintl on OSX only
#AC_CHECK_LIB([confuse], [cfg_init], [LIBS="-lintl -lconfuse"],
AC_CHECK_LIB([confuse], [cfg_init], ,
[AC_MSG_ERROR([Confuse library not found])])
AC_CHECK_LIB([stdc++], [main], ,
[AC_MSG_ERROR([Stdc++ library not found])])
AM_PATH_SDL([0.0.0], [LIBS="$LIBS $SDL_LIBS"],
[AC_MSG_ERROR([SDL library not found])])
AC_CHECK_LIB([SDL_image], [main], ,
[AC_MSG_ERROR([SDL_image library not found])])
AC_CHECK_LIB([SDL_gfx], [main], ,
[AC_MSG_ERROR([SDL_gfx library not found])])
AC_CHECK_LIB([SDL_ttf], [main], ,
[AC_MSG_ERROR([SDL_ttf library not found])])
AC_CHECK_LIB([sqlite3], [main], ,
[AC_MSG_ERROR([sqlite3 library not found])])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT