Fortunately, this is as easy as providing an option to a libtool macro...
In configure.ac
, it's a good idea to check if your libtool installation is recent enough - the current stable release being 2.4.2 :
LT_PREREQ([2.4.2])
# not 'technically' required, but good practice.
Followed by setting the relevant option in the LT_INIT
macro:
LT_INIT([disable-shared])