hello
I am not sure if I had the same issue like you are facing but I can suggest what I done when face jasper related issue.
Please install the Jasper library as recommended on the WRF forum, specifically version 1.9. In order to do this, you will need to copy the "config.guess" and "config.sub" files from the "automake" folder in Homebrew, and paste them into the "aac" folder within the Jasper 1.9 directory where these files are located. You can download Jasper 1.9 from the following link:
https://ece.engr.uvic.ca/~frodo/jasper/#download.
This link was helpful in resolving the Jasper library issue:
How to resolve configure guessing build type failure?.
please note that I am using Mac with M1-Max and this solution is tested on same machine.