gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2916 - in freeway: . .settings m4 native src/org/gnu/freew


From: mdonoughe
Subject: [GNUnet-SVN] r2916 - in freeway: . .settings m4 native src/org/gnu/freeway/server
Date: Sat, 27 May 2006 16:38:06 -0700 (PDT)

Author: mdonoughe
Date: 2006-05-27 16:37:58 -0700 (Sat, 27 May 2006)
New Revision: 2916

Added:
   freeway/.settings/
   freeway/.settings/org.eclipse.core.resources.prefs
   freeway/.settings/org.eclipse.core.runtime.prefs
   freeway/.settings/org.eclipse.jdt.ui.prefs
   freeway/ChangeLog
   freeway/INSTALL
   freeway/NEWS
   freeway/configure.ac
   freeway/m4/
   freeway/m4/README
   freeway/m4/ac_check_class.m4
   freeway/m4/ac_check_classpath.m4
   freeway/m4/ac_check_rqrd_class.m4
   freeway/m4/ac_java_options.m4
   freeway/m4/ac_prog_jar.m4
   freeway/m4/ac_prog_java.m4
   freeway/m4/ac_prog_java_works.m4
   freeway/m4/ac_prog_javac.m4
   freeway/m4/ac_prog_javac_works.m4
   freeway/m4/ac_try_compile_java.m4
   freeway/m4/ac_try_run_java.m4
   freeway/m4/lib-ld.m4
   freeway/native/
   freeway/native/Makefile.am
   freeway/native/org_gnu_freeway_server_CPluginLoader.h
Removed:
   freeway/src/org/gnu/freeway/server/CPluginLoader.h
Modified:
   freeway/
   freeway/bootstrap
Log:
moved CPluginLoader.h into the new native folder
completed the autotools build system for the native code and made it
find GNUnet
set svn:ignore properties
added .settings from eclipse



Property changes on: freeway
___________________________________________________________________
Name: svn:ignore
   + configure
config.log
config.guess
ltmain.sh
config.sub
.build
Makefile
Makefile.in
mkinstalldirs
config.status
libtool
autom4te.cache
missing
aclocal.m4
install-sh



Added: freeway/.settings/org.eclipse.core.resources.prefs
===================================================================
--- freeway/.settings/org.eclipse.core.resources.prefs  2006-05-27 19:25:27 UTC 
(rev 2915)
+++ freeway/.settings/org.eclipse.core.resources.prefs  2006-05-27 23:37:58 UTC 
(rev 2916)
@@ -0,0 +1,3 @@
+#Thu May 25 20:54:43 UTC 2006
+eclipse.preferences.version=1
+encoding/<project>=UTF-8

Added: freeway/.settings/org.eclipse.core.runtime.prefs
===================================================================
--- freeway/.settings/org.eclipse.core.runtime.prefs    2006-05-27 19:25:27 UTC 
(rev 2915)
+++ freeway/.settings/org.eclipse.core.runtime.prefs    2006-05-27 23:37:58 UTC 
(rev 2916)
@@ -0,0 +1,3 @@
+#Thu May 25 20:54:43 UTC 2006
+eclipse.preferences.version=1
+line.separator=\n

Added: freeway/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- freeway/.settings/org.eclipse.jdt.ui.prefs  2006-05-27 19:25:27 UTC (rev 
2915)
+++ freeway/.settings/org.eclipse.jdt.ui.prefs  2006-05-27 23:37:58 UTC (rev 
2916)
@@ -0,0 +1,3 @@
+#Fri May 26 16:02:10 UTC 2006
+eclipse.preferences.version=1
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" 
encoding\="UTF-8"?><templates><template autoinsert\="true" 
context\="gettercomment_context" deleted\="false" description\="Comment for 
getter method" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" 
name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n 
*/</template><template autoinsert\="true" context\="settercomment_context" 
deleted\="false" description\="Comment for setter method" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" 
name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n 
*/</template><template autoinsert\="true" context\="constructorcomment_context" 
deleted\="false" description\="Comment for created constructors" 
enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" 
name\="constructorcomment">/**\n * ${tags}\n */</template><template 
autoinsert\="false" context\="filecomment_context" deleted\="false" 
description\="Comment for created Java files" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment"> 
/*\n      This file is part of Freeway\n\n      Freeway is free software; you 
can redistribute it and/or modify\n      it under the terms of the GNU General 
Public License as published\n      by the Free Software Foundation; either 
version 2, or (at your\n      option) any later version.\n\n      Freeway is 
distributed in the hope that it will be useful, but\n      WITHOUT ANY 
WARRANTY; without even the implied warranty of\n      MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n      General Public License 
for more details.\n\n      You should have received a copy of the GNU General 
Public License\n      along with Freeway; see the file COPYING.  If not, write 
to the\n      Free Software Foundation, Inc., 59 Temple Place - Suite 330,\n    
  Boston, MA 02111-1307, USA.\n */\n</template><template autoinsert\="false" 
context\="typecomment_context" deleted\="false" description\="Comment for 
created types" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" 
name\="typecomment">/**\n * @file ${file_name}\n * @brief \n * @author 
${user}\n * ${tags}\n */</template><template autoinsert\="true" 
context\="fieldcomment_context" deleted\="false" description\="Comment for 
fields" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" 
name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" 
context\="methodcomment_context" deleted\="false" description\="Comment for 
non-overriding methods" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" 
name\="methodcomment">/**\n * ${tags}\n */</template><template 
autoinsert\="true" context\="overridecomment_context" deleted\="false" 
description\="Comment for overriding methods" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" 
name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n 
*/</template><template autoinsert\="true" context\="newtype_context" 
deleted\="false" description\="Newly created files" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.newtype" 
name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template
 autoinsert\="true" context\="catchblock_context" deleted\="false" 
description\="Code in new catch blocks" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// 
${todo} Auto-generated catch 
block\n${exception_var}.printStackTrace();</template><template 
autoinsert\="true" context\="methodbody_context" deleted\="false" 
description\="Code in created method stubs" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// 
${todo} Auto-generated method stub\n${body_statement}</template><template 
autoinsert\="true" context\="constructorbody_context" deleted\="false" 
description\="Code in created constructor stubs" enabled\="true" 
id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" 
name\="constructorbody">${body_statement}\n// ${todo} Auto-generated 
constructor stub</template><template autoinsert\="true" 
context\="getterbody_context" deleted\="false" description\="Code in created 
getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" 
name\="getterbody">return ${field};</template><template autoinsert\="true" 
context\="setterbody_context" deleted\="false" description\="Code in created 
setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" 
name\="setterbody">${field} \= ${param};</template></templates>

Added: freeway/ChangeLog
===================================================================
--- freeway/ChangeLog   2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/ChangeLog   2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1 @@
+Nothing to see here. Use "svn log" to get a change log.

Added: freeway/INSTALL
===================================================================
--- freeway/INSTALL     2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/INSTALL     2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,236 @@
+Installation Instructions
+*************************
+
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
+Software Foundation, Inc.
+
+This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+These are generic installation instructions.
+
+   The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation.  It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions.  Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+   It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring.  (Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.)
+
+   If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release.  If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+   The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'.  You only need
+`configure.ac' if you want to change it or regenerate `configure' using
+a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+  1. `cd' to the directory containing the package's source code and type
+     `./configure' to configure the package for your system.  If you're
+     using `csh' on an old version of System V, you might need to type
+     `sh ./configure' instead to prevent `csh' from trying to execute
+     `configure' itself.
+
+     Running `configure' takes awhile.  While running, it prints some
+     messages telling which features it is checking for.
+
+  2. Type `make' to compile the package.
+
+  3. Optionally, type `make check' to run any self-tests that come with
+     the package.
+
+  4. Type `make install' to install the programs and any data files and
+     documentation.
+
+  5. You can remove the program binaries and object files from the
+     source code directory by typing `make clean'.  To also remove the
+     files that `configure' created (so you can compile the package for
+     a different kind of computer), type `make distclean'.  There is
+     also a `make maintainer-clean' target, but that is intended mainly
+     for the package's developers.  If you use it, you may have to get
+     all sorts of other programs in order to regenerate files that came
+     with the distribution.
+
+Compilers and Options
+=====================
+
+Some systems require unusual options for compilation or linking that the
+`configure' script does not know about.  Run `./configure --help' for
+details on some of the pertinent environment variables.
+
+   You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment.  Here
+is an example:
+
+     ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
+
+   *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory.  To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'.  `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script.  `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+   If you have to use a `make' that does not support the `VPATH'
+variable, you have to compile the package for one architecture at a
+time in the source code directory.  After you have installed the
+package for one architecture, use `make distclean' before reconfiguring
+for another architecture.
+
+Installation Names
+==================
+
+By default, `make install' installs the package's commands under
+`/usr/local/bin', include files under `/usr/local/include', etc.  You
+can specify an installation prefix other than `/usr/local' by giving
+`configure' the option `--prefix=PREFIX'.
+
+   You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files.  If you
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files still use the regular prefix.
+
+   In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files.  Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+   If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System).  The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+   For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+There may be some features `configure' cannot figure out automatically,
+but needs to determine by the type of machine the package will run on.
+Usually, assuming the package is built to be run on the _same_
+architectures, `configure' can figure that out, but if it prints a
+message saying it cannot guess the machine type, give it the
+`--build=TYPE' option.  TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+     CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+     OS KERNEL-OS
+
+   See the file `config.sub' for the possible values of each field.  If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+   If you are _building_ compiler tools for cross-compiling, you should
+use the option `--target=TYPE' to select the type of system they will
+produce code for.
+
+   If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+If you want to set default values for `configure' scripts to share, you
+can create a site shell script called `config.site' that gives default
+values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+Variables not defined in a site shell script can be set in the
+environment passed to `configure'.  However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost.  In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'.  For example:
+
+     ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script).  Here is a another example:
+
+     /bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
+configuration-related scripts to be executed by `/bin/bash'.
+
+`configure' Invocation
+======================
+
+`configure' recognizes the following options to control how it operates.
+
+`--help'
+`-h'
+     Print a summary of the options to `configure', and exit.
+
+`--version'
+`-V'
+     Print the version of Autoconf used to generate the `configure'
+     script, and exit.
+
+`--cache-file=FILE'
+     Enable the cache: use and save the results of the tests in FILE,
+     traditionally `config.cache'.  FILE defaults to `/dev/null' to
+     disable caching.
+
+`--config-cache'
+`-C'
+     Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+     Do not print messages saying which checks are being made.  To
+     suppress all normal output, redirect it to `/dev/null' (any error
+     messages will still be shown).
+
+`--srcdir=DIR'
+     Look for the package's source code in directory DIR.  Usually
+     `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options.  Run
+`configure --help' for more details.
+

Added: freeway/NEWS
===================================================================
--- freeway/NEWS        2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/NEWS        2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1 @@
+Nothing to see here, but there is a changelog if you type "svn log".

Modified: freeway/bootstrap
===================================================================
--- freeway/bootstrap   2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/bootstrap   2006-05-27 23:37:58 UTC (rev 2916)
@@ -1,2 +1,3 @@
 #!/bin/sh
+test -f glibtoolize && export LIBTOOLIZE=/usr/bin/glibtoolize
 autoreconf -f -i

Added: freeway/configure.ac
===================================================================
--- freeway/configure.ac        2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/configure.ac        2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,130 @@
+# Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.57)
+AC_INIT([freeway], [0.6.9], address@hidden)
+AC_REVISION($Revision: 1.0 $)
+AM_INIT_AUTOMAKE([freenet], [0.6.9])
+AM_CONFIG_HEADER(native/config.h)
+
+AH_TOP([#define _GNU_SOURCE 1])
+
+# Checks for programs.
+AC_CANONICAL_HOST
+
+AC_PROG_CC(gcc cc /usr/ucb/cc cl)
+AC_PROG_CPP
+AC_PROG_CXX(g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC)
+
+AC_CHECK_CLASSPATH
+AC_PROG_JAVAC
+AC_PROG_JAVA
+AC_PROG_JAR
+AC_DISABLE_STATIC
+AC_PROG_LIBTOOL
+
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+
+case "$host_os" in
+linux*)
+     AC_DEFINE(LINUX,1,[This is a Linux system])
+     ;;
+freebsd*)
+     AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
+     ;;
+openbsd*)
+     AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
+     ;;
+netbsd*)
+     AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
+     ;;
+*solaris*)
+     AC_DEFINE_UNQUOTED(SOLARIS,1,[This is a Solaris system])
+     XTRA_CPPLIBS=-lstdc++
+     ;;
+darwin*)
+     AC_DEFINE_UNQUOTED(DARWIN,1,[This is a Darwin system])
+     ;;
+cygwin*)
+     AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a CYGWIN system])
+     LDFLAGS="$LDFLAGS -no-undefined"
+     ;;
+mingw*)
+     AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system])
+     AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
+     LDFLAGS="$LDFLAGS -no-undefined -Wl,--export-all-symbols -lws2_32 -lplibc"
+     ;;
+*)
+     AC_MSG_RESULT(Unrecognised OS $host_os)
+     AC_DEFINE_UNQUOTED(OTHEROS,1,[Some strange OS])
+     AC_MSG_RESULT(otheros)
+     ;;
+esac
+
+# use '-fno-strict-aliasing', but only if the compiler can take it
+if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; 
+then
+ CFLAGS="-fno-strict-aliasing $CFLAGS"
+fi
+
+# Special check for broken Operating Systems (OS X)
+AC_CACHE_CHECK(whether ${CC-cc} accepts -no-cpp-precomp,
+cv_prog_cc_darwin_cpp_precomp,
+[echo 'void f(){}' > conftest.c
+if test -z "`${CC-cc} -no-cpp-precomp -c conftest.c 2>&1`"; then
+  cv_prog_cc_darwin_cpp_precomp=yes
+else
+  cv_prog_cc_darwin_cpp_precomp=no
+fi
+rm -f conftest*
+])
+if test $cv_prog_cc_darwin_cpp_precomp = yes; then
+  CFLAGS="$CFLAGS -no-cpp-precomp"
+fi
+
+AC_HEADER_STDC
+
+# check for GNU LD
+AC_LIB_PROG_LD_GNU
+
+AC_SUBST(CPPFLAGS)
+AC_SUBST(LDFLAGS)
+
+gnunet=0
+AC_MSG_CHECKING(for GNUnet)
+AC_ARG_WITH(gnunet,
+   [  --with-gnunet=PFX    Base of GNUnet installation],
+   [AC_MSG_RESULT([$with_gnunet])
+    case $with_gnunet in
+      no)
+        ;;
+      yes)
+        AC_CHECK_HEADERS(GNUnet/gnunet_util.h,
+          AC_CHECK_LIB([gnunetutil], [initConfiguration],
+            gnunet=1))
+        ;;
+      *)
+        LDFLAGS="-L$with_gnunet/lib $LDFLAGS"
+        CPPFLAGS="-I$with_gnunet/include $CPPFLAGS"
+        AC_CHECK_HEADERS(GNUnet/gnunet_util.h,
+          AC_CHECK_LIB([gnunetutil], [initConfiguration],
+            EXT_LIB_PATH="-L$with_gnunet/lib $EXT_LIB_PATH"
+            gnunet=1))
+        ;;
+    esac
+   ],
+   [AC_MSG_RESULT([--with-gnunet not specified])
+    AC_CHECK_HEADERS(GNUnet/gnunet_util.h,
+     AC_CHECK_LIB([gnunetutil], [initConfiguration],
+      gnunet=1))])
+if test "$gnunet" != 1
+then
+ AC_MSG_ERROR([Freeway requires GNUnet])
+fi
+
+AC_CONFIG_FILES([
+Makefile
+native/Makefile
+])
+
+AC_OUTPUT

Added: freeway/m4/README
===================================================================
--- freeway/m4/README   2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/README   2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,24 @@
+$Id: README,v 1.5 2000/01/03 10:13:19 bortz Exp $
+
+These files are autoconf macros intended to be submitted to the
+autoconf archive <http://peti.cys.de/autoconf-archive/>.
+
+They are in separate files because of the archive's requirments but
+they are made to be used together.
+
+The Web page for this work is:
+http://www.internatif.org/bortzmeyer/autoconf-Java/
+
+A CVS snapshot of the latest release is at:
+ftp://ftp.internatif.org/pub/unix/autoconf-Java/
+
+The documentation is in ac_prog_java.m4.
+
+The licence is the GPL <http://www.gnu.org/copyleft/gpl.html>.
+
+Many thanks to Devin Weaver <address@hidden> for a lot
+of work on the macros.
+
+
+--
+Stephane Bortzmeyer <address@hidden>

Added: freeway/m4/ac_check_class.m4
===================================================================
--- freeway/m4/ac_check_class.m4        2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_check_class.m4        2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,107 @@
+dnl @synopsis AC_CHECK_CLASS
+dnl
+dnl AC_CHECK_CLASS tests the existence of a given Java class, either in
+dnl a jar or in a '.class' file.
+dnl
+dnl *Warning*: its success or failure can depend on a proper setting of the
+dnl CLASSPATH env. variable.
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl The general documentation, as well as the sample configure.in, is
+dnl included in the AC_PROG_JAVA macro.
+dnl
+dnl @author Stephane Bortzmeyer <address@hidden>
+dnl @version $Id: ac_check_class.m4,v 1.3 2000/01/28 11:54:26 bortz Exp $
+dnl
+AC_DEFUN([AC_CHECK_CLASS],[
+AC_REQUIRE([AC_PROG_JAVA])
+ac_var_name=`echo $1 | sed 's/\./_/g'`
+dnl Normaly I'd use a AC_CACHE_CHECK here but since the variable name is
+dnl dynamic I need an extra level of extraction
+AC_MSG_CHECKING([for $1 class])
+AC_CACHE_VAL(ac_cv_class_$ac_var_name, [
+if test x$ac_cv_prog_uudecode_base64 = xyes; then
+dnl /**
+dnl  * Test.java: used to test dynamicaly if a class exists.
+dnl  */
+dnl public class Test
+dnl {
+dnl 
+dnl public static void
+dnl main( String[] argv )
+dnl {
+dnl    Class lib;
+dnl    if (argv.length < 1)
+dnl     {
+dnl            System.err.println ("Missing argument");
+dnl            System.exit (77);
+dnl     }
+dnl    try
+dnl     {
+dnl            lib = Class.forName (argv[0]);
+dnl     }
+dnl    catch (ClassNotFoundException e)
+dnl     {
+dnl            System.exit (1);
+dnl     }
+dnl    lib = null;
+dnl    System.exit (0);
+dnl }
+dnl 
+dnl }
+cat << \EOF > Test.uue
+begin-base64 644 Test.class
+yv66vgADAC0AKQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
+bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
+bWJlclRhYmxlDAAKAAsBAANlcnIBABVMamF2YS9pby9QcmludFN0cmVhbTsJ
+AA0ACQcADgEAEGphdmEvbGFuZy9TeXN0ZW0IABABABBNaXNzaW5nIGFyZ3Vt
+ZW50DAASABMBAAdwcmludGxuAQAVKExqYXZhL2xhbmcvU3RyaW5nOylWCgAV
+ABEHABYBABNqYXZhL2lvL1ByaW50U3RyZWFtDAAYABkBAARleGl0AQAEKEkp
+VgoADQAXDAAcAB0BAAdmb3JOYW1lAQAlKExqYXZhL2xhbmcvU3RyaW5nOylM
+amF2YS9sYW5nL0NsYXNzOwoAHwAbBwAgAQAPamF2YS9sYW5nL0NsYXNzBwAi
+AQAgamF2YS9sYW5nL0NsYXNzTm90Rm91bmRFeGNlcHRpb24BAAY8aW5pdD4B
+AAMoKVYMACMAJAoAAwAlAQAKU291cmNlRmlsZQEACVRlc3QuamF2YQAhAAEA
+AwAAAAAAAgAJAAUABgABAAcAAABtAAMAAwAAACkqvgSiABCyAAwSD7YAFBBN
+uAAaKgMyuAAeTKcACE0EuAAaAUwDuAAasQABABMAGgAdACEAAQAIAAAAKgAK
+AAAACgAAAAsABgANAA4ADgATABAAEwASAB4AFgAiABgAJAAZACgAGgABACMA
+JAABAAcAAAAhAAEAAQAAAAUqtwAmsQAAAAEACAAAAAoAAgAAAAQABAAEAAEA
+JwAAAAIAKA==
+====
+EOF
+               if uudecode$EXEEXT Test.uue; then
+                       :
+               else
+                       echo "configure: __oline__: uudecode had trouble 
decoding base 64 file 'Test.uue'" >&AC_FD_CC
+                       echo "configure: failed file was:" >&AC_FD_CC
+                       cat Test.uue >&AC_FD_CC
+                       ac_cv_prog_uudecode_base64=no
+               fi
+       rm -f Test.uue
+       if AC_TRY_COMMAND($JAVA $JAVAFLAGS Test $1) >/dev/null 2>&1; then
+               eval "ac_cv_class_$ac_var_name=yes"
+       else
+               eval "ac_cv_class_$ac_var_name=no"
+       fi
+       rm -f Test.class
+else
+       AC_TRY_COMPILE_JAVA([$1], , [eval "ac_cv_class_$ac_var_name=yes"],
+               [eval "ac_cv_class_$ac_var_name=no"])
+fi
+eval "ac_var_val=$`eval echo ac_cv_class_$ac_var_name`"
+eval "HAVE_$ac_var_name=$`echo ac_cv_class_$ac_var_val`"
+HAVE_LAST_CLASS=$ac_var_val
+if test x$ac_var_val = xyes; then
+       ifelse([$2], , :, [$2])
+else
+       ifelse([$3], , :, [$3])
+fi
+])
+dnl for some reason the above statment didn't fall though here?
+dnl do scripts have variable scoping?
+eval "ac_var_val=$`eval echo ac_cv_class_$ac_var_name`"
+AC_MSG_RESULT($ac_var_val)
+])

Added: freeway/m4/ac_check_classpath.m4
===================================================================
--- freeway/m4/ac_check_classpath.m4    2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_check_classpath.m4    2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,26 @@
+dnl @synopsis AC_CHECK_CLASSPATH
+dnl
+dnl AC_CHECK_CLASSPATH just displays the CLASSPATH, for the edification
+dnl of the user.
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl The general documentation, as well as the sample configure.in, is
+dnl included in the AC_PROG_JAVA macro.
+dnl
+dnl @author Stephane Bortzmeyer <address@hidden>
+dnl @version $Id: ac_check_classpath.m4,v 1.3 1999/12/29 10:45:03 bortz Exp $
+dnl
+AC_DEFUN([AC_CHECK_CLASSPATH],[
+if test "x$CLASSPATH" = x; then
+        echo "You have no CLASSPATH, I hope it is good"
+else
+        echo "You have CLASSPATH $CLASSPATH, hope it is correct"
+fi
+])
+
+
+

Added: freeway/m4/ac_check_rqrd_class.m4
===================================================================
--- freeway/m4/ac_check_rqrd_class.m4   2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_check_rqrd_class.m4   2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,26 @@
+dnl @synopsis AC_CHECK_RQRD_CLASS
+dnl
+dnl AC_CHECK_RQRD_CLASS tests the existence of a given Java class, either in
+dnl a jar or in a '.class' file and fails if it doesn't exist.
+dnl Its success or failure can depend on a proper setting of the
+dnl CLASSPATH env. variable.
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl The general documentation, as well as the sample configure.in, is
+dnl included in the AC_PROG_JAVA macro.
+dnl
+dnl @author Stephane Bortzmeyer <address@hidden>
+dnl @version $Id: ac_check_rqrd_class.m4,v 1.1 1999/12/29 09:22:26 bortz Exp $
+dnl
+
+AC_DEFUN([AC_CHECK_RQRD_CLASS],[
+CLASS=`echo $1|sed 's/\./_/g'`
+AC_CHECK_CLASS($1)
+if test "$HAVE_LAST_CLASS" = "no"; then
+        AC_MSG_ERROR([Required class $1 missing, exiting.])
+fi
+])

Added: freeway/m4/ac_java_options.m4
===================================================================
--- freeway/m4/ac_java_options.m4       2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_java_options.m4       2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,32 @@
+dnl @synopsis AC_JAVA_OPTIONS
+dnl
+dnl AC_JAVA_OPTIONS adds configure command line options used for Java m4
+dnl macros. This Macro is optional.
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl The general documentation, as well as the sample configure.in, is
+dnl included in the AC_PROG_JAVA macro.
+dnl
+dnl @author Devin Weaver <address@hidden>
+dnl @version $Id: ac_java_options.m4,v 1.2 2000/01/02 16:07:12 bortz Exp $
+dnl
+AC_DEFUN([AC_JAVA_OPTIONS],[
+AC_ARG_WITH(java-prefix,
+                       [  --with-java-prefix=PFX  prefix where Java runtime is 
installed (optional)])
+AC_ARG_WITH(javac-flags,
+                       [  --with-javac-flags=FLAGS flags to pass to the Java 
compiler (optional)])
+AC_ARG_WITH(java-flags,
+                       [  --with-java-flags=FLAGS flags to pass to the Java VM 
(optional)])
+JAVAPREFIX=$with_java_prefix
+JAVACFLAGS=$with_javac_flags
+JAVAFLAGS=$with_java_flags
+AC_SUBST(JAVAPREFIX)dnl
+AC_SUBST(JAVACFLAGS)dnl
+AC_SUBST(JAVAFLAGS)dnl
+AC_SUBST(JAVA)dnl
+AC_SUBST(JAVAC)dnl
+])

Added: freeway/m4/ac_prog_jar.m4
===================================================================
--- freeway/m4/ac_prog_jar.m4   2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_prog_jar.m4   2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,10 @@
+AC_DEFUN([AC_PROG_JAR],[
+AC_REQUIRE([AC_EXEEXT])dnl
+if test "x$JAVAPREFIX" = x; then
+        test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar$EXEEXT)
+else
+        test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar, $JAVAPREFIX)
+fi
+test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH])
+AC_PROVIDE([$0])dnl
+])

Added: freeway/m4/ac_prog_java.m4
===================================================================
--- freeway/m4/ac_prog_java.m4  2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_prog_java.m4  2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,77 @@
+dnl @synopsis AC_PROG_JAVA
+dnl
+dnl Here is a summary of the main macros:
+dnl
+dnl AC_PROG_JAVAC: finds a Java compiler.
+dnl
+dnl AC_PROG_JAVA: finds a Java virtual machine.
+dnl
+dnl AC_CHECK_CLASS: finds if we have the given class (beware of CLASSPATH!).
+dnl
+dnl AC_CHECK_RQRD_CLASS: finds if we have the given class and stops otherwise.
+dnl
+dnl AC_TRY_COMPILE_JAVA: attempt to compile user given source.
+dnl
+dnl AC_TRY_RUN_JAVA: attempt to compile and run user given source.
+dnl
+dnl AC_JAVA_OPTIONS: adds Java configure options.
+dnl
+dnl AC_PROG_JAVA tests an existing Java virtual machine. It uses the
+dnl environment variable JAVA then tests in sequence various common Java
+dnl virtual machines. For political reasons, it starts with the free ones.
+dnl You *must* call [AC_PROG_JAVAC] before.
+dnl
+dnl If you want to force a specific VM:
+dnl
+dnl - at the configure.in level, set JAVA=yourvm before calling AC_PROG_JAVA
+dnl   (but after AC_INIT)
+dnl
+dnl - at the configure level, setenv JAVA
+dnl
+dnl You can use the JAVA variable in your Makefile.in, with @address@hidden
+dnl
+dnl *Warning*: its success or failure can depend on a proper setting of the
+dnl CLASSPATH env. variable.
+dnl
+dnl TODO: allow to exclude virtual machines (rationale: most Java programs
+dnl cannot run with some VM like kaffe).
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl
+dnl A Web page, with a link to the latest CVS snapshot is at
+dnl <http://www.internatif.org/bortzmeyer/autoconf-Java/>.
+dnl
+dnl This is a sample configure.in
+dnl Process this file with autoconf to produce a configure script.
+dnl
+dnl    AC_INIT(UnTag.java)
+dnl
+dnl    dnl Checks for programs.
+dnl    AC_CHECK_CLASSPATH
+dnl    AC_PROG_JAVAC
+dnl    AC_PROG_JAVA
+dnl
+dnl    dnl Checks for classes
+dnl    AC_CHECK_RQRD_CLASS(org.xml.sax.Parser)
+dnl    AC_CHECK_RQRD_CLASS(com.jclark.xml.sax.Driver)
+dnl
+dnl    AC_OUTPUT(Makefile)
+dnl
+dnl @author Stephane Bortzmeyer <address@hidden>
+dnl @version $Id: ac_prog_java.m4,v 1.5 2000/01/02 16:07:12 bortz Exp $
+dnl
+AC_DEFUN([AC_PROG_JAVA],[
+AC_REQUIRE([AC_EXEEXT])dnl
+if test x$JAVAPREFIX = x; then
+       test x$JAVA = x && AC_CHECK_PROGS(JAVA, kaffe$EXEEXT java$EXEEXT)
+else
+       test x$JAVA = x && AC_CHECK_PROGS(JAVA, kaffe$EXEEXT java$EXEEXT, 
$JAVAPREFIX)
+fi
+test x$JAVA = x && AC_MSG_ERROR([no acceptable Java virtual machine found in 
\$PATH])
+AC_PROG_JAVA_WORKS
+AC_PROVIDE([$0])dnl
+])

Added: freeway/m4/ac_prog_java_works.m4
===================================================================
--- freeway/m4/ac_prog_java_works.m4    2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_prog_java_works.m4    2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,97 @@
+dnl @synopsis AC_PROG_JAVA_WORKS
+dnl
+dnl Internal use ONLY.
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl The general documentation, as well as the sample configure.in, is
+dnl included in the AC_PROG_JAVA macro.
+dnl
+dnl @author Stephane Bortzmeyer <address@hidden>
+dnl @version $Id: ac_prog_java_works.m4,v 1.2 1999/12/29 09:58:48 bortz Exp $
+dnl
+AC_DEFUN([AC_PROG_JAVA_WORKS], [
+AC_CHECK_PROG(uudecode, uudecode$EXEEXT, yes)
+if test x$uudecode = xyes; then
+AC_CACHE_CHECK([if uudecode can decode base 64 file], 
ac_cv_prog_uudecode_base64, [
+dnl /**
+dnl  * Test.java: used to test if java compiler works.
+dnl  */
+dnl public class Test
+dnl {
+dnl 
+dnl public static void
+dnl main( String[] argv )
+dnl {
+dnl    System.exit (0);
+dnl }
+dnl 
+dnl }
+cat << \EOF > Test.uue
+begin-base64 644 Test.class
+yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
+bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
+bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
+YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
+aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
+AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
+AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
+====
+EOF
+if uudecode$EXEEXT Test.uue; then
+       ac_cv_prog_uudecode_base64=yes
+else
+       echo "configure: __oline__: uudecode had trouble decoding base 64 file 
'Test.uue'" >&AC_FD_CC
+       echo "configure: failed file was:" >&AC_FD_CC
+       cat Test.uue >&AC_FD_CC
+       ac_cv_prog_uudecode_base64=no
+fi
+rm -f Test.uue])
+fi
+if test x$ac_cv_prog_uudecode_base64 != xyes; then
+       rm -f Test.class
+       AC_MSG_WARN([I have to compile Test.class from scratch])
+       if test x$ac_cv_prog_javac_works = xno; then
+               AC_MSG_ERROR([Cannot compile java source. $JAVAC does not work 
properly])
+       fi
+       if test x$ac_cv_prog_javac_works = x; then
+               AC_PROG_JAVAC
+       fi
+fi
+AC_CACHE_CHECK(if $JAVA works, ac_cv_prog_java_works, [
+JAVA_TEST=Test.java
+CLASS_TEST=Test.class
+TEST=Test
+changequote(, )dnl
+cat << \EOF > $JAVA_TEST
+/* [#]line __oline__ "configure" */
+public class Test {
+public static void main (String args[]) {
+       System.exit (0);
+} }
+EOF
+changequote([, ])dnl
+if test x$ac_cv_prog_uudecode_base64 != xyes; then
+       if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) && test -s 
$CLASS_TEST; then
+               :
+       else
+         echo "configure: failed program was:" >&AC_FD_CC
+         cat $JAVA_TEST >&AC_FD_CC
+         AC_MSG_ERROR(The Java compiler $JAVAC failed (see config.log, check 
the CLASSPATH?))
+       fi
+fi
+if AC_TRY_COMMAND($JAVA $JAVAFLAGS $TEST) >/dev/null 2>&1; then
+  ac_cv_prog_java_works=yes
+else
+  echo "configure: failed program was:" >&AC_FD_CC
+  cat $JAVA_TEST >&AC_FD_CC
+  AC_MSG_ERROR(The Java VM $JAVA failed (see config.log, check the CLASSPATH?))
+fi
+rm -fr $JAVA_TEST $CLASS_TEST Test.uue
+])
+AC_PROVIDE([$0])dnl
+]
+)

Added: freeway/m4/ac_prog_javac.m4
===================================================================
--- freeway/m4/ac_prog_javac.m4 2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_prog_javac.m4 2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,43 @@
+dnl @synopsis AC_PROG_JAVAC
+dnl
+dnl AC_PROG_JAVAC tests an existing Java compiler. It uses the environment
+dnl variable JAVAC then tests in sequence various common Java compilers. For
+dnl political reasons, it starts with the free ones.
+dnl
+dnl If you want to force a specific compiler:
+dnl
+dnl - at the configure.in level, set JAVAC=yourcompiler before calling
+dnl AC_PROG_JAVAC
+dnl
+dnl - at the configure level, setenv JAVAC
+dnl
+dnl You can use the JAVAC variable in your Makefile.in, with @address@hidden
+dnl
+dnl *Warning*: its success or failure can depend on a proper setting of the
+dnl CLASSPATH env. variable.
+dnl
+dnl TODO: allow to exclude compilers (rationale: most Java programs cannot 
compile
+dnl with some compilers like guavac).
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl The general documentation, as well as the sample configure.in, is
+dnl included in the AC_PROG_JAVA macro.
+dnl
+dnl @author Stephane Bortzmeyer <address@hidden>
+dnl @version $Id: ac_prog_javac.m4,v 1.3 1999/12/29 10:46:15 bortz Exp $
+dnl
+AC_DEFUN([AC_PROG_JAVAC],[
+AC_REQUIRE([AC_EXEEXT])dnl
+if test "x$JAVAPREFIX" = x; then
+       test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, "gcj$EXEEXT -C" 
guavac$EXEEXT jikes$EXEEXT javac$EXEEXT)
+else
+       test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, "gcj$EXEEXT -C" 
guavac$EXEEXT jikes$EXEEXT javac$EXEEXT, $JAVAPREFIX)
+fi
+test "x$JAVAC" = x && AC_MSG_ERROR([no acceptable Java compiler found in 
\$PATH])
+AC_PROG_JAVAC_WORKS
+AC_PROVIDE([$0])dnl
+])

Added: freeway/m4/ac_prog_javac_works.m4
===================================================================
--- freeway/m4/ac_prog_javac_works.m4   2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_prog_javac_works.m4   2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,35 @@
+dnl @synopsis AC_PROG_JAVAC_WORKS
+dnl
+dnl Internal use ONLY.
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl The general documentation, as well as the sample configure.in, is
+dnl included in the AC_PROG_JAVA macro.
+dnl
+dnl @author Stephane Bortzmeyer <address@hidden>
+dnl @version $Id: ac_prog_javac_works.m4,v 1.2 1999/12/29 09:58:48 bortz Exp $
+dnl
+AC_DEFUN([AC_PROG_JAVAC_WORKS],[
+AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
+JAVA_TEST=Test.java
+CLASS_TEST=Test.class
+cat << \EOF > $JAVA_TEST
+/* [#]line __oline__ "configure" */
+public class Test {
+}
+EOF
+if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
+  ac_cv_prog_javac_works=yes
+else
+  AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the 
CLASSPATH?)])
+  echo "configure: failed program was:" >&AC_FD_CC
+  cat $JAVA_TEST >&AC_FD_CC
+fi
+rm -f $JAVA_TEST $CLASS_TEST
+])
+AC_PROVIDE([$0])dnl
+])

Added: freeway/m4/ac_try_compile_java.m4
===================================================================
--- freeway/m4/ac_try_compile_java.m4   2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_try_compile_java.m4   2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,39 @@
+dnl @synopsis AC_TRY_COMPILE_JAVA
+dnl
+dnl AC_TRY_COMPILE_JAVA attempt to compile user given source.
+dnl
+dnl *Warning*: its success or failure can depend on a proper setting of the
+dnl CLASSPATH env. variable.
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl The general documentation, as well as the sample configure.in, is
+dnl included in the AC_PROG_JAVA macro.
+dnl
+dnl @author Devin Weaver <address@hidden>
+dnl @version $Id: ac_try_compile_java.m4,v 1.1 1999/12/29 09:59:34 bortz Exp $
+dnl
+AC_DEFUN([AC_TRY_COMPILE_JAVA],[
+AC_REQUIRE([AC_PROG_JAVAC])dnl
+cat << \EOF > Test.java
+/* [#]line __oline__ "configure" */
+ifelse([$1], , , [import $1;])
+public class Test {
+[$2]
+}
+EOF
+if AC_TRY_COMMAND($JAVAC $JAVACFLAGS Test.java) && test -s Test.class
+then
+dnl Don't remove the temporary files here, so they can be examined.
+  ifelse([$3], , :, [$3])
+else
+  echo "configure: failed program was:" >&AC_FD_CC
+  cat Test.java >&AC_FD_CC
+ifelse([$4], , , [  rm -fr Test*
+  $4
+])dnl
+fi
+rm -fr Test*])

Added: freeway/m4/ac_try_run_java.m4
===================================================================
--- freeway/m4/ac_try_run_java.m4       2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/ac_try_run_java.m4       2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,40 @@
+dnl @synopsis AC_TRY_RUN_JAVA
+dnl
+dnl AC_TRY_RUN_JAVA attempt to compile and run user given source.
+dnl
+dnl *Warning*: its success or failure can depend on a proper setting of the
+dnl CLASSPATH env. variable.
+dnl
+dnl Note: This is part of the set of autoconf M4 macros for Java programs.
+dnl It is VERY IMPORTANT that you download the whole set, some
+dnl macros depend on other. Unfortunately, the autoconf archive does not
+dnl support the concept of set of macros, so I had to break it for
+dnl submission.
+dnl The general documentation, as well as the sample configure.in, is
+dnl included in the AC_PROG_JAVA macro.
+dnl
+dnl @author Devin Weaver <address@hidden>
+dnl @version $Id: ac_try_run_java.m4,v 1.1 1999/12/29 09:59:34 bortz Exp $
+dnl
+AC_DEFUN([AC_TRY_RUN_JAVA],[
+AC_REQUIRE([AC_PROG_JAVAC])dnl
+AC_REQUIRE([AC_PROG_JAVA])dnl
+cat << \EOF > Test.java
+/* [#]line __oline__ "configure" */
+ifelse([$1], , , [include $1;])
+public class Test {
+[$2]
+}
+EOF
+if AC_TRY_COMMAND($JAVAC $JAVACFLAGS Test.java) && test -s Test.class && 
($JAVA $JAVAFLAGS Test; exit) 2>/dev/null
+then
+dnl Don't remove the temporary files here, so they can be examined.
+  ifelse([$3], , :, [$3])
+else
+  echo "configure: failed program was:" >&AC_FD_CC
+  cat Test.java >&AC_FD_CC
+ifelse([$4], , , [  rm -fr Test*
+  $4
+])dnl
+fi
+rm -fr Test*])

Added: freeway/m4/lib-ld.m4
===================================================================
--- freeway/m4/lib-ld.m4        2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/m4/lib-ld.m4        2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1,112 @@
+# lib-ld.m4 serial 3 (gettext-0.13)
+dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License.  As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl Subroutines of libtool.m4,
+dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
+dnl with libtool.m4.
+
+dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
+AC_DEFUN([AC_LIB_PROG_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+  acl_cv_prog_gnu_ld=yes ;;
+*)
+  acl_cv_prog_gnu_ld=no ;;
+esac])
+with_gnu_ld=$acl_cv_prog_gnu_ld
+])
+
+dnl From libtool-1.4. Sets the variable LD.
+AC_DEFUN([AC_LIB_PROG_LD],
+[AC_ARG_WITH(gnu-ld,
+[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
+test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  echo "#! /bin/sh" >conf$$.sh
+  echo  "exit 0"   >>conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+ac_prog=ld
+if test "$GCC" = yes; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  AC_MSG_CHECKING([for ld used by GCC])
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [[\\/]* | [A-Za-z]:[\\/]*)]
+      [re_direlt='/[^/][^/]*/\.\./']
+      # Canonicalize the path of ld
+      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+      done
+      test -z "$LD" && LD="$ac_prog"
+      ;;
+  "")
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test "$with_gnu_ld" = yes; then
+  AC_MSG_CHECKING([for GNU ld])
+else
+  AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(acl_cv_path_LD,
+[if test -z "$LD"; then
+  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
+  for ac_dir in $PATH; do
+    test -z "$ac_dir" && ac_dir=.
+    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+      acl_cv_path_LD="$ac_dir/$ac_prog"
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some GNU ld's only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
+      *GNU* | *'with BFD'*)
+       test "$with_gnu_ld" != no && break ;;
+      *)
+       test "$with_gnu_ld" != yes && break ;;
+      esac
+    fi
+  done
+  IFS="$ac_save_ifs"
+else
+  acl_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$acl_cv_path_LD"
+if test -n "$LD"; then
+  AC_MSG_RESULT($LD)
+else
+  AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+AC_LIB_PROG_LD_GNU
+])


Property changes on: freeway/native
___________________________________________________________________
Name: svn:ignore
   + config.h.in
Makefile.in
stamp-h1
config.h
Makefile


Added: freeway/native/Makefile.am
===================================================================
--- freeway/native/Makefile.am  2006-05-27 19:25:27 UTC (rev 2915)
+++ freeway/native/Makefile.am  2006-05-27 23:37:58 UTC (rev 2916)
@@ -0,0 +1 @@
+SUBDIRS = .

Copied: freeway/native/org_gnu_freeway_server_CPluginLoader.h (from rev 2912, 
freeway/src/org/gnu/freeway/server/CPluginLoader.h)

Deleted: freeway/src/org/gnu/freeway/server/CPluginLoader.h
===================================================================
--- freeway/src/org/gnu/freeway/server/CPluginLoader.h  2006-05-27 19:25:27 UTC 
(rev 2915)
+++ freeway/src/org/gnu/freeway/server/CPluginLoader.h  2006-05-27 23:37:58 UTC 
(rev 2916)
@@ -1,37 +0,0 @@
-/* DO NOT EDIT THIS FILE - it is machine generated */
-#include <jni.h>
-/* Header for class org_gnu_freeway_server_CPluginLoader */
-
-#ifndef _Included_org_gnu_freeway_server_CPluginLoader
-#define _Included_org_gnu_freeway_server_CPluginLoader
-#ifdef __cplusplus
-extern "C" {
-#endif
-/*
- * Class:     org_gnu_freeway_server_CPluginLoader
- * Method:    loadService
- * Signature: (Ljava/lang/String;Lorg/gnu/freeway/server/CoreAPI;)J
- */
-JNIEXPORT jlong JNICALL Java_org_gnu_freeway_server_CPluginLoader_loadService
-  (JNIEnv *, jobject, jstring, jobject);
-
-/*
- * Class:     org_gnu_freeway_server_CPluginLoader
- * Method:    callC
- * Signature: (JI[Ljava/lang/Object;I)Ljava/lang/Object;
- */
-JNIEXPORT jobject JNICALL Java_org_gnu_freeway_server_CPluginLoader_callC
-  (JNIEnv *, jobject, jlong, jint, jobjectArray, jint);
-
-/*
- * Class:     org_gnu_freeway_server_CPluginLoader
- * Method:    unloadService
- * Signature: (J)V
- */
-JNIEXPORT void JNICALL Java_org_gnu_freeway_server_CPluginLoader_unloadService
-  (JNIEnv *, jobject, jlong);
-
-#ifdef __cplusplus
-}
-#endif
-#endif





reply via email to

[Prev in Thread] Current Thread [Next in Thread]