www.pudn.com > sxg.rar > configure.in


#
# configure.in
#
#      Process this file with autoconf to produce a configure script.
#
# Copyright (c) 2003 Jens Mueller
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#

AC_INIT(sxg/SnmpXmlGateway.java)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(sxg, 0.0.15)

AC_PROG_INSTALL
AC_PROG_MAKE_SET

AC_ARG_WITH(java-home,
[  --with-java-home=DIR    use DIR for JDK toplevel directory [/usr/local/jdk1.2.2]],
JAVA_HOME="$withval", JAVA_HOME=/usr/local/jdk1.2.2)

AC_ARG_WITH(classpath,
[  --with-classpath=PATH   add PATH to the Java CLASSPATH []],
CLASSPATHADD=":$withval", CLASSPATHADD="")

#
# JDK dependent variables
#
CLASSPATH="$JAVA_HOME/lib/classes.zip""$CLASSPATHADD"
JAVAROOT=.
JAVA=$JAVA_HOME/bin/java
JAVAC=$JAVA_HOME/bin/javac
JAVAH=$JAVA_HOME/bin/javah
JAVADOC=$JAVA_HOME/bin/javadoc
JAR=$JAVA_HOME/bin/jar

#
#
#

AC_SUBST(JNI_INCLUDE_DIR)
AC_SUBST(JAVA_HOME)
AC_SUBST(JAVA)
AC_SUBST(JAVAC)
AC_SUBST(JAVAH)
AC_SUBST(JAVADOC)
AC_SUBST(JAR)
AC_SUBST(CLASSPATH)
AC_SUBST(JAVAROOT)
AC_SUBST(prefix)

#
#
#
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix=${prefix}

AC_OUTPUT(Makefile)