File: configure.ac

package info (click to toggle)
gio-sharp 2.22.3-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,036 kB
  • sloc: cs: 6,174; sh: 625; makefile: 128
file content (59 lines) | stat: -rw-r--r-- 1,294 bytes parent folder | download | duplicates (3)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(gio-sharp, 2.22.3, stephane@delcroix.org)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(gio/AssemblyInfo.cs.in)

AM_INIT_AUTOMAKE([dist-bzip2 tar-ustar])

PACKAGE_VERSION=gio-sharp-2.0
AC_SUBST(PACKAGE_VERSION)
AC_PATH_PROG(MONO, mono, no)
if test "x$MONO" = "xno" ; then
	using_mono=no
	MONO=
	AC_PATH_PROG(CSC, csc.exe)
else
	using_mono=yes
	AC_PATH_PROG(CSC, gmcs)
fi
AM_CONDITIONAL(USING_MONO, [test $using_mono = yes])
AC_PATH_PROG(GACUTIL, gacutil, no)
if test "x$GACUTIL" = "xno" ; then
	AC_MSG_ERROR([No gacutil tool found. You need to install either the mono or .Net SDK.])
fi

if test $using_mono = yes; then
	GACUTIL_FLAGS='/package $(PACKAGE_VERSION) /gacdir $(DESTDIR)$(prefix)/lib'
fi

AC_SUBST(GACUTIL)
AC_SUBST(GACUTIL_FLAGS)

PKG_CHECK_MODULES(GLIBSHARP, glib-sharp-2.0 >= 2.12)
PKG_CHECK_MODULES(GAPI, gapi-2.0 >= 2.12.0)

PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.22)

CSC_FLAGS="-d:GIO_SHARP_2_22"

if test `uname -s` = "Darwin"; then
	LIB_PREFIX=
	LIB_SUFFIX=.dylib
else
	LIB_PREFIX=.so
	LIB_SUFFIX=
fi

AC_SUBST(CSC_FLAGS)
AC_SUBST(LIB_PREFIX)
AC_SUBST(LIB_SUFFIX)

AC_OUTPUT(
Makefile 
generator/Makefile
gio/Makefile
gio/AssemblyInfo.cs
gio/gio-sharp.dll.config
gio/gio-sharp-2.0.pc
sources/Makefile
)