summaryrefslogtreecommitdiff
path: root/configure.ac
blob: ae0a8766ef4313ffac916da99ad9efff20769c9e (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
AC_INIT([imlib2_loaders],[1.7.2],[enlightenment-devel@lists.sourceforge.net])
AC_CONFIG_SRCDIR(configure.ac)
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST

AM_INIT_AUTOMAKE(1.6 dist-bzip2)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

AM_CONDITIONAL(SRC_IS_GIT, test -d $srcdir/.git)

AC_C_BIGENDIAN
AC_PROG_CC

AC_C_CONST

dnl Next two lines is a hack to prevent libtool checking for CXX/F77
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
LT_INIT

PKG_PROG_PKG_CONFIG

ani=yes

eet=no
AC_ARG_ENABLE(eet,
[  --enable-eet            enable building the eet loader],
[
 if test x$enableval = xno; then
   eet=no
 else
   eet=yes
 fi
])

xcf=yes
AC_ARG_ENABLE(xcf,
[  --disable-xcf           disable building the xcf loader],
[
 if test x$enableval = xno; then
   xcf=no
 else
   xcf=yes
 fi
])


dnl PKG_CHECK_MODULES(IMLIB2, imlib2)

found_eet=no
if test "x$eet" != "xno" ; then
        AC_MSG_ERROR([*** Eet loader is broken ***])
        PKG_CHECK_MODULES(EET, eet, found_eet=yes, found_eet=no)
fi
if test "x$eet$found_eet" = "xyesno" ; then
	AC_MSG_ERROR(Eet support was requested but not found)
elif test "x$found_eet" = "xno" ; then
	eet=no
fi

AM_CONDITIONAL(BUILD_ANI_LOADER, test x$ani != xno)
AM_CONDITIONAL(BUILD_EET_LOADER, test x$eet != xno)
AM_CONDITIONAL(BUILD_XCF_LOADER, test x$xcf != xno)

EC_C_WARNINGS()
EC_C_VISIBILITY(yes)

AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([
Makefile
src/Makefile
src/modules/Makefile
src/modules/loaders/Makefile
README
])
AC_CONFIG_COMMANDS([default],[
],[])
AC_OUTPUT

#####################################################################
## Info
echo
echo
echo "------------------------------------------------------------------------"
echo "$PACKAGE $VERSION"
echo "------------------------------------------------------------------------"
echo
echo "Configuration Options Summary:"
echo
echo "Image loaders:"
echo "  ANI.....................: $ani"
echo "  EET.....................: $eet"
echo "  XCF.....................: $xcf"
echo
echo "Use visibility hiding.....: $enable_visibility_hiding"
echo
echo "Installation path.........: $prefix"
echo