You can set datadir by running "./configure --datadir=/usr/opt" when you build libtool. datadir is responsible for setting the path to /usr/local/share/. This should fix the issue.
Alternatively, you could manually patch libtoolize with this: --- build/libtoolize 2024-04-23 18:38:01.944324133 +0300 +++ build/libtoolize-modified 2024-04-23 18:37:45.480416053 +0300 @@ -1912,10 +1912,10 @@ # Locations for important files: prefix="/usr/local" - datadir="/usr/local/share" - pkgauxdir="/usr/local/share/libtool/build-aux" - pkgltdldir="/usr/local/share/libtool" - aclocaldir="/usr/local/share/aclocal" + datadir="/usr/opt" + pkgauxdir="/usr/opt/libtool/build-aux" + pkgltdldir="/usr/opt/libtool" + aclocaldir="/usr/opt/aclocal" # Allow the user to override the master libtoolize repository: if test -n "$_lt_pkgdatadir"; then -- Ileana Dumitrescu GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354
OpenPGP_0x6570EA01146F7354.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature