See the mc-4.8.26/src/vfs/smbfs/helpers/configure script.
The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines
See the mc-4.8.26/src/vfs/smbfs/helpers/configure script.