I have tried to configure the asterisk 18.15 using below line
./configure --libdir=/usr/lib64 --with-jansson-bundled --sysconfdir=/etc/release/interdialog
but It will be configured under the /etc/release/interdialog/asterisk
I guess you need to change the source code. You can get it if you really want, but I don’t see any reason why you would want to do something like that. If the path is hardcoded in other software, I think a symbolic link would also do the trick.