fixed JDK 8 detection on Linux
authorVictor Kirhenshtein <victor@netxms.org>
Wed, 17 Aug 2016 16:03:52 +0000 (19:03 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Wed, 17 Aug 2016 16:03:52 +0000 (19:03 +0300)
configure.ac

index 19fd96c..7c87af1 100644 (file)
@@ -266,6 +266,9 @@ AC_ARG_WITH(jdk,
                LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"   
                LDFLAGS="$LDFLAGS -L${withval}/lib"
                CPPFLAGS="$CPPFLAGS -I${withval}/include"
                LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"   
                LDFLAGS="$LDFLAGS -L${withval}/lib"
                CPPFLAGS="$CPPFLAGS -I${withval}/include"
+               if test -d "${withval}/include/linux"; then
+                       CPPFLAGS="$CPPFLAGS -I${withval}/include/linux"
+               fi
                if test -d "${withval}/include/solaris"; then
                        CPPFLAGS="$CPPFLAGS -I${withval}/include/solaris"
                fi
                if test -d "${withval}/include/solaris"; then
                        CPPFLAGS="$CPPFLAGS -I${withval}/include/solaris"
                fi