File: configure.ac

package info (click to toggle)
libgconf-java 2.12.6-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,792 kB
  • ctags: 430
  • sloc: sh: 8,926; ansic: 1,157; java: 971; makefile: 200
file content (64 lines) | stat: -rw-r--r-- 1,931 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
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_gconf_ConfClient.c)
AC_CONFIG_AUX_DIR(.)
AM_INIT_AUTOMAKE(libgconf-java, 2.12.6)

AM_PROG_GCJ

AC_DISABLE_STATIC
AC_PROG_LIBTOOL

apiversion="2.12"

INSTALLED_CLASSPATH=\${jardir}/gconf${apiversion}-${VERSION}.jar 
INSTALLED_JNI_DIR=\${prefix}/lib/
AC_SUBST(INSTALLED_CLASSPATH)
AC_SUBST(INSTALLED_JNI_DIR)

AC_SUBST(apiversion)

BUILDDIR=`pwd`

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

JG_GTK_JAVA(2.10)

PKG_CHECK_MODULES(GLIB_JAVA, glib-java >= 0.4.2)
PKG_CHECK_MODULES(GTK_JAVA, gtk2-java >= 2.10.2)

JG_LIB
JG_COMMON
AM_PROG_CC_C_O

dnl Check for libgconf >= 2.0
PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.11.2)
AC_SUBST(GCONF_CFLAGS)
AC_SUBST(GCONF_LIBS)

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

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([gconf-java.pc])
AC_CONFIG_FILES([doc/examples/runExample.sh], [chmod +x doc/examples/runExample.sh])
AC_CONFIG_FILES([src/java/org/gnu/gconf/Config.java])
AC_OUTPUT