]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/classpath/cp-tools/bytecodejar-workaround.patch
Add support for building java apps and libraries
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / classpath / cp-tools / bytecodejar-workaround.patch
1 --- cp-tools.orig/configure.ac  2005-10-01 19:26:32.000000000 +0200
2 +++ cp-tools/configure.ac       2005-10-01 19:34:12.000000000 +0200
3 @@ -75,8 +75,21 @@
4      with_gnubytecode=yes
5    ]
6  )
7 +AC_ARG_WITH([gnu-bytecode-jar],
8 +  [AS_HELP_STRING(--with-gnu-bytecode-jar,where to look for the gnu.bytecode.jar [[default=search]])],
9 +  [
10 +    if test "x${withval}" != xno; then
11 +      with_gnubytecodejar=${withval}
12 +    else
13 +      with_gnubytecodejar=no
14 +    fi
15 +  ],
16 +  [
17 +    with_gnubytecodejar=no
18 +  ]
19 +)
20  AM_CONDITIONAL(USE_GNUBYTECODE, test "x${with_gnubytecode}" = xyes)
21 -if test "x${with_gnubytecode}" = xyes
22 +if test "x${with_gnubytecode}" = xyes -a "x${with_gnubytecodejar}" = xno
23  then 
24    for path in /usr /usr/local; do
25      AC_CHECK_FILE([$path/share/java/bytecode.jar],
26 @@ -88,6 +101,12 @@
27    test -d src || mkdir src
28    test -d src/jars || mkdir src/jars
29    cp -f ${BYTECODE_JAR} src/jars/
30 +else
31 +  BYTECODE_JAR=$with_gnubytecodejar
32 +  export BYTECODE_JAR
33 +  test -d src || mkdir src
34 +  test -d src/jars || mkdir src/jars
35 +  cp -f ${BYTECODE_JAR} src/jars/
36  fi
37  
38  dnl