Permalink
Browse files

configure.ac: Fix improper join of include paths

  • Loading branch information...
1 parent 7ac6c3d commit 16fca3eb099abfb939f87dfb5160fd6d8469efab @bgilbert bgilbert committed Nov 17, 2015
Showing with 3 additions and 1 deletion.
  1. +2 −0 acinclude.m4
  2. +1 −1 configure.ac
View
@@ -10,6 +10,8 @@ AC_DEFUN([FIND_FILE], [
IFS=:
for ac__path in $3
do
+ # IFS doesn't consolidate consecutive delimiters
+ ac__path=$(echo "$ac__path" | sed 's/:*$//')
if test -r "$ac__path/$2" ; then
IFS="$ac__save_ifs"
AC_MSG_RESULT([$ac__path])
View
@@ -78,7 +78,7 @@ if test z$with_jni_headers != zcross ; then
# Find jni_md.h
JOIN_EACH([platform_include_paths], [$include_paths], [$with_jni_headers])
FIND_FILE([jni_md_h_dir], [jni_md.h],
- [$platform_include_paths $include_paths])
+ [$platform_include_paths:$include_paths])
JNI_CFLAGS="\"-I$jni_h_dir\" \"-I$jni_md_h_dir\""
else
# For cross builds, we don't have the OpenJDK jni_md.h for the target

0 comments on commit 16fca3e

Please sign in to comment.