c70942
diff -up ./nss/cmd/certutil/Makefile.iquote ./nss/cmd/certutil/Makefile
c70942
--- ./nss/cmd/certutil/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/cmd/certutil/Makefile	2017-09-21 16:39:08.680260103 +0200
c70942
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/cmd/httpserv/Makefile.iquote ./nss/cmd/httpserv/Makefile
c70942
--- ./nss/cmd/httpserv/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/cmd/httpserv/Makefile	2017-09-21 16:39:08.680260103 +0200
c70942
@@ -35,7 +35,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/cmd/lib/Makefile.iquote ./nss/cmd/lib/Makefile
c70942
--- ./nss/cmd/lib/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/cmd/lib/Makefile	2017-09-21 16:39:08.680260103 +0200
c70942
@@ -38,7 +38,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/cmd/modutil/Makefile.iquote ./nss/cmd/modutil/Makefile
c70942
--- ./nss/cmd/modutil/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/cmd/modutil/Makefile	2017-09-21 16:39:08.680260103 +0200
c70942
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/cmd/pk12util/Makefile.iquote ./nss/cmd/pk12util/Makefile
c70942
--- ./nss/cmd/pk12util/Makefile.iquote	2017-09-21 16:41:23.158209761 +0200
c70942
+++ ./nss/cmd/pk12util/Makefile	2017-09-21 16:41:44.298730232 +0200
c70942
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/cmd/selfserv/Makefile.iquote ./nss/cmd/selfserv/Makefile
c70942
--- ./nss/cmd/selfserv/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/cmd/selfserv/Makefile	2017-09-21 16:39:08.680260103 +0200
c70942
@@ -35,7 +35,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/cmd/ssltap/Makefile.iquote ./nss/cmd/ssltap/Makefile
c70942
--- ./nss/cmd/ssltap/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/cmd/ssltap/Makefile	2017-09-21 16:39:08.680260103 +0200
c70942
@@ -39,7 +39,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/cmd/strsclnt/Makefile.iquote ./nss/cmd/strsclnt/Makefile
c70942
--- ./nss/cmd/strsclnt/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/cmd/strsclnt/Makefile	2017-09-21 16:39:08.681260081 +0200
c70942
@@ -36,7 +36,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/cmd/tstclnt/Makefile.iquote ./nss/cmd/tstclnt/Makefile
c70942
--- ./nss/cmd/tstclnt/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/cmd/tstclnt/Makefile	2017-09-21 16:39:08.681260081 +0200
c70942
@@ -37,6 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 #######################################################################
c70942
 
c70942
 #include ../platlibs.mk
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/cmd/vfyserv/Makefile.iquote ./nss/cmd/vfyserv/Makefile
c70942
--- ./nss/cmd/vfyserv/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/cmd/vfyserv/Makefile	2017-09-21 16:39:08.681260081 +0200
c70942
@@ -37,6 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 #######################################################################
c70942
 
c70942
 #include ../platlibs.mk
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/coreconf/location.mk.iquote ./nss/coreconf/location.mk
c70942
--- ./nss/coreconf/location.mk.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/coreconf/location.mk	2017-09-21 16:39:08.681260081 +0200
c70942
@@ -45,6 +45,10 @@ endif
c70942
 
c70942
 ifdef NSS_INCLUDE_DIR
c70942
     INCLUDES += -I$(NSS_INCLUDE_DIR)
c70942
+    ifdef IN_TREE_FREEBL_HEADERS_FIRST
c70942
+        INCLUDES += -iquote $(DIST)/../public/nss
c70942
+        INCLUDES += -iquote $(DIST)/../private/nss
c70942
+    endif
c70942
 endif
c70942
 
c70942
 ifndef NSS_LIB_DIR
c70942
diff -up ./nss/gtests/ssl_gtest/Makefile.iquote ./nss/gtests/ssl_gtest/Makefile
c70942
--- ./nss/gtests/ssl_gtest/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/gtests/ssl_gtest/Makefile	2017-09-21 16:39:08.682260058 +0200
c70942
@@ -53,6 +53,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/lib/certhigh/Makefile.iquote ./nss/lib/certhigh/Makefile
c70942
--- ./nss/lib/certhigh/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/lib/certhigh/Makefile	2017-09-21 16:39:08.681260081 +0200
c70942
@@ -38,7 +38,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/lib/cryptohi/Makefile.iquote ./nss/lib/cryptohi/Makefile
c70942
--- ./nss/lib/cryptohi/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/lib/cryptohi/Makefile	2017-09-21 16:39:08.681260081 +0200
c70942
@@ -38,7 +38,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/lib/libpkix/pkix/checker/Makefile.iquote ./nss/lib/libpkix/pkix/checker/Makefile
c70942
--- ./nss/lib/libpkix/pkix/checker/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/lib/libpkix/pkix/checker/Makefile	2017-09-21 16:39:08.681260081 +0200
c70942
@@ -38,7 +38,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/lib/nss/Makefile.iquote ./nss/lib/nss/Makefile
c70942
--- ./nss/lib/nss/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/lib/nss/Makefile	2017-09-21 16:39:08.681260081 +0200
c70942
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/lib/pkcs12/Makefile.iquote ./nss/lib/pkcs12/Makefile
c70942
--- ./nss/lib/pkcs12/Makefile.iquote	2017-09-21 16:39:49.616331555 +0200
c70942
+++ ./nss/lib/pkcs12/Makefile	2017-09-21 16:40:16.286726596 +0200
c70942
@@ -39,7 +39,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
-
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
+INCLUDES += -iquote $(DIST)/../private/nss
c70942
 
c70942
 #######################################################################
c70942
 # (7) Execute "local" rules. (OPTIONAL).                              #
c70942
diff -up ./nss/lib/ssl/Makefile.iquote ./nss/lib/ssl/Makefile
c70942
--- ./nss/lib/ssl/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
c70942
+++ ./nss/lib/ssl/Makefile	2017-09-21 16:39:08.681260081 +0200
c70942
@@ -56,6 +56,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
c70942
 # (6) Execute "component" rules. (OPTIONAL)                           #
c70942
 #######################################################################
c70942
 
c70942
+INCLUDES += -iquote $(DIST)/../public/nss
c70942
 
c70942
 
c70942
 #######################################################################