Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
Signed-off-by: leleliu008 <[email protected]>
  • Loading branch information
leleliu008 committed Oct 17, 2023
1 parent 99821db commit 7b7bed6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -3019,6 +3019,25 @@ static int ppkg_install_package(

//////////////////////////////////////////////////////////////////////////////

char m4Path[PATH_MAX];
size_t m4PathLength = 0U;

ret = exe_where("m4", m4Path, PATH_MAX, &m4PathLength);

if (ret < 0) {
perror(NULL);
return PPKG_ERROR;
}

if (m4PathLength > 0U) {
if (setenv("M4", m4Path, 1) != 0) {
perror("M4");
return PPKG_ERROR;
}
}

//////////////////////////////////////////////////////////////////////////////

int nativePackageIDArray[20] = {0};
int nativePackageIDArraySize = 0;

Expand Down

0 comments on commit 7b7bed6

Please sign in to comment.