2 # Copyright (C) 2011-2012 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Java compilation works also when CLASSPATH is unset or empty at
18 # compilation time. See automake bug#9306.
23 cat >> configure.ac
<<'END'
24 AC_CONFIG_SRCDIR([org/gnu/bug/Library.java])
33 mkdir org org
/gnu org
/gnu
/bug
34 cat > Makefile.am
<<END
38 echo SUBDIRS
= gnu
> org
/Makefile.am
39 echo SUBDIRS
= bug
> org
/gnu
/Makefile.am
40 cat > org
/gnu
/bug
/Makefile.am
<<'END'
42 dist_noinst_JAVA = Library.java Application.java
45 cat > org
/gnu
/bug
/Library.java
<<'END'
53 public static void doSomethingUseful (String arg)
55 System.out.println (arg);
60 cat > org
/gnu
/bug
/Application.java
<<'END'
62 public class Application
64 public static void main (String args[])
66 Library lib = new Library ();
67 lib.doSomethingUseful ("PLUGH");
81 CLASSPATH
=''; export CLASSPATH