summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 0fe215d444ceef4fae22472f1274189b93227ea7 (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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([gncpmount], [0.0.4], [janlipovsky@gmail.com])
AM_INIT_AUTOMAKE([1.9 tar-ustar])

# Checks for programs.
AC_C_CONST
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AM_PROG_CC_C_O
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.1])


dnl Check for pkgconfig first
AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)

dnl Give error and exit if we don't have pkgconfig
if test "x$HAVE_PKGCONFIG" = "xno"; then
  AC_MSG_ERROR(you need to have pkgconfig installed !)
fi


dnl Check for ncpmount first
AC_CHECK_PROG(HAVE_NCPMOUNT, ncpmount, yes, no)
AC_PATH_PROG(NCPMOUNT_PATH, ncpmount, no)

dnl Give error and exit if we don't have ncpmount
if test "x$HAVE_NCPMOUNT" = "xno"; then
  AC_MSG_ERROR(You need to have ncpmount (ncpfs) installed !)
fi


PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28.6)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.0.10)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)

PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0)
AC_SUBST(GDK_CFLAGS)
AC_SUBST(GDK_LIBS)




DISABLE_DEPRECATED_CFLAGS=" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED"
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)

dnl WARN_CFLAGS="-Wall -Werror"
WARN_CFLAGS="-Wall"
AC_SUBST(WARN_CFLAGS)


# Checks for header files.
AC_CHECK_HEADERS([locale.h libintl.h])

# Checks for typedefs, structures, and compiler characteristics. 
AC_C_INLINE


AC_CONFIG_FILES([Makefile
		po/Makefile.in
		src/Makefile
		pixmaps/Makefile
		desktop/Makefile])

AC_OUTPUT