File: configure.ac

package info (click to toggle)
glib-java 0.2.5-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,564 kB
  • ctags: 113
  • sloc: sh: 8,444; ansic: 455; makefile: 161; java: 119
file content (69 lines) | stat: -rw-r--r-- 2,056 bytes parent folder | download
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
dnl Process this file with autoconf to produce a configure script.
dnl
dnl This file is part of Java-GNOME.
dnl
dnl Java-GNOME is free software; you can redistribute it and/or modify it
dnl under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2, or (at your option)
dnl any later version.
dnl
dnl Java-GNOME is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with Jade; see the file COPYING.  If not, write to
dnl the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

AC_INIT(src/jni/org_gnu_glib_Struct.c)
AC_CONFIG_AUX_DIR(.)
AM_INIT_AUTOMAKE(glib-java, 0.2.5)

AM_PROG_GCJ

AC_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL

apiversion="0.2"
AC_SUBST(apiversion)
WINDOWS_LIB_VERSION="0-2"

INSTALLED_CLASSPATH=\${prefix}/share/java/glib${apiversion}-${VERSION}.jar 
INSTALLED_JNI_DIR=\${prefix}/lib/
INSTALLED_MACRO_DIR=\${prefix}/share/glib-java/macros/
AC_SUBST(INSTALLED_CLASSPATH)
AC_SUBST(INSTALLED_JNI_DIR)
AC_SUBST(INSTALLED_MACRO_DIR)

BUILDDIR=`pwd`

INSTALLED_CLASSPATH_BUILDPLACE=$BUILDDIR/lib/glib${apiversion}-${VERSION}.jar 
INSTALLED_JNI_DIR_BUILDPLACE=$BUILDDIR/lib/
AC_SUBST(INSTALLED_CLASSPATH_BUILDPLACE)
AC_SUBST(INSTALLED_JNI_DIR_BUILDPLACE)

JG_COMMON
AM_PROG_CC_C_O

if test $platform_win32 = "yes"; then
	PLATFORM_VERSION=${WINDOWS_LIB_VERSION}
	PLATFORM_LIBRARY="${SOPREFIX}glibjni-"
else
	PLATFORM_VERSION=${apiversion}
	PLATFORM_LIBRARY="glibjni-"
fi
AC_SUBST(PLATFORM_VERSION)
AC_SUBST(PLATFORM_LIBRARY)

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

AC_CHECK_PROGS([JAVAH], ["gcjh -jni" "javah"], [gcjh -jni])

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([glib-java.pc])
AC_CONFIG_FILES([src/java/org/gnu/glib/Config.java])
AC_OUTPUT