1 | | --- src/native/unix/configure.orig 2012-02-06 16:21:27.000000000 -0800 |
2 | | +++ src/native/unix/configure 2012-02-06 16:25:41.000000000 -0800 |
3 | | @@ -2718,67 +2718,6 @@ |
4 | | { (exit 1); exit 1; }; } |
5 | | fi |
6 | | |
7 | | -if test -d $JAVA_HOME/Headers |
8 | | -then |
9 | | - JAVA_INC=Headers |
10 | | -else |
11 | | - JAVA_INC=include |
12 | | -fi |
13 | | - |
14 | | - tempval="" |
15 | | - JAVA_OS="" |
16 | | - |
17 | | -# Check whether --with-os-type or --without-os-type was given. |
18 | | -if test "${with_os_type+set}" = set; then |
19 | | - withval="$with_os_type" |
20 | | - |
21 | | - tempval=$withval |
22 | | - if test ! -d "$JAVA_HOME/$tempval" |
23 | | - then |
24 | | - { { echo "$as_me:$LINENO: error: Not a directory: ${JAVA_HOME}/${tempval}" >&5 |
25 | | -echo "$as_me: error: Not a directory: ${JAVA_HOME}/${tempval}" >&2;} |
26 | | - { (exit 1); exit 1; }; } |
27 | | - fi |
28 | | - JAVA_OS=$tempval |
29 | | - |
30 | | -else |
31 | | - |
32 | | - echo "$as_me:$LINENO: checking for JDK os include directory" >&5 |
33 | | -echo $ECHO_N "checking for JDK os include directory... $ECHO_C" >&6 |
34 | | - JAVA_OS=NONE |
35 | | - if test -f $JAVA_HOME/$JAVA_INC/jni_md.h |
36 | | - then |
37 | | - JAVA_OS="" |
38 | | - else |
39 | | - for f in $JAVA_HOME/$JAVA_INC/*/jni_md.h |
40 | | - do |
41 | | - if test -f $f; then |
42 | | - JAVA_OS=`dirname $f` |
43 | | - JAVA_OS=`basename $JAVA_OS` |
44 | | - echo " $JAVA_OS" |
45 | | - break |
46 | | - fi |
47 | | - done |
48 | | - if test "x$JAVA_OS" = "xNONE"; then |
49 | | - echo "$as_me:$LINENO: result: Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&5 |
50 | | -echo "${ECHO_T}Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&6 |
51 | | - { { echo "$as_me:$LINENO: error: You should retry --with-os-type=SUBDIR" >&5 |
52 | | -echo "$as_me: error: You should retry --with-os-type=SUBDIR" >&2;} |
53 | | - { (exit 1); exit 1; }; } |
54 | | - fi |
55 | | - fi |
56 | | - |
57 | | -fi; |
58 | | - |
59 | | -if test -z "${JAVA_OS}" |
60 | | -then |
61 | | - echo "$as_me:$LINENO: result: jni_md.h found in $JAVA_HOME/$JAVA_INC" >&5 |
62 | | -echo "${ECHO_T}jni_md.h found in $JAVA_HOME/$JAVA_INC" >&6 |
63 | | - INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/$JAVA_INC" |
64 | | -else |
65 | | - INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$supported_os" |
66 | | -fi |
67 | | - |
68 | | if test "$GCC" = "yes" |
69 | | then |
70 | | CFLAGS="$CFLAGS -Wall -Wstrict-prototypes" |