summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/mkmakefile.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r--usr.sbin/config/mkmakefile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index 2823780..bd110ec 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -225,6 +225,13 @@ makefile(void)
ofp = fopen(path("hints.c.new"), "w");
if (ofp == NULL)
err(1, "%s", path("hints.c.new"));
+ if (hintmode == 0) {
+ snprintf(line, sizeof(line), "%s.hints", PREFIX);
+ ifp = fopen(line, "r");
+ if (ifp)
+ hintmode = 2;
+ }
+ fprintf(ofp, "int hintmode = %d;\n", hintmode);
fprintf(ofp, "char static_hints[] = {\n");
if (ifp) {
while (fgets(line, BUFSIZ, ifp) != 0) {
OpenPOWER on IntegriCloud