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)

version="2.8.2"
apiversion="2.8"

INSTALLED_CLASSPATH=\${prefix}/share/java/gconf${apiversion}-${version}.jar 
INSTALLED_JNI_DIR=\${prefix}/lib/jni/
AC_SUBST(INSTALLED_CLASSPATH)
AC_SUBST(INSTALLED_JNI_DIR)

AC_SUBST(version)
AC_SUBST(apiversion)

JG_GTK_JAVA(2.4)

JG_COMMON


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


AC_OUTPUT( Makefile 
			gconf-java.pc
			doc/examples/runExample.sh
			src/Makefile 
			src/java/org/gnu/gconf/ConfClient.java
			)
					
`chmod +x doc/examples/runExample.sh`

