Appendix C. Configure Options

As we explained in Chapter 2, the configure program is run before the Samba source code is compiled to adapt the build process to the local architecture. At this stage, it is possible to specify options to customize Samba's behavior further and include or exclude features. Here is an example of specifying configure options:

 $ ./configure --prefix    =/opt/samba --with-acl-support     

This example specification configures the Samba installation to install in /opt/samba rather than the default of /usr/local/samba and to include support for filesystem ACLs. We have picked these two configure options because they illustrate the usage of the two types of options that are included in versions up to Samba 3.0. The --with-acl-support option is a Boolean option, which can take a value of yes or no. If you want to be more explicit, you can specify --with-acl-support=yes. To turn an option off explicitly, you can also specify --without-feature rather than --with-feature=no.

Options such as --prefix are following by an equal sign (=) and one or more arguments. In this case, we are specifying a directory to be used as the software's install root.

The supported configure options vary from release to release. To get a list of the configure options for your release, use the following command:

 $ ./configure --help 

Table C-1 lists the configure options found in the 3.0.22 release.

Table C-1. Configuration options

Configuration option



Use the CUPS client libraries when communicating with cupsd to manage printers and print jobs.


Build Samba to include debugging symbols for use with debuggers such as gdb.


Enable additional compiler flags and other developer settings.


Enable integration with the dmalloc memory debugging library.


Include support for the iPrint server libraries from Novell.


Turn on support for Position Independent Executables (PIE) when compiling.


Replace basic network socket support with a local communication needed to run make test.


Support asynchronous disk I/O.


Support Unix filesystem ACLs.


Include support for Active Directory integratio (requires --with-krb5 and --with-ldap).


Support clear-text logins to access Andrew Filesystem (AFS) mounts.


Support locating home directories in NIS automount maps.


Use internal CoreFoundation encoding API when building on OS X/Darwin.


Build the Linux CIFS filesystem mount helper utilities.


Location of configuration files.


Support clear-text logins to access DCE/DFS mounts.


Include AFS Kerberos Authentication (KA) server support.


Use FHS-compliant locations of files.


Use Samba's popt( ) libraries rather than the system version.


Support Kerberos 5 (required for ADS support).


Support communicating with LDAP directory services (required for ADS support).


Specify the location of the iconv library.


Build the MS-RPC client library.


Build the SMB/CIFS client library.


Build the share modes tdb library.


Location of lock files.


Location of logfiles.


Enable PAM support in smbd.


Build PAM module.


Location of PID files.


Location of smbpasswd file.


Support gathering of profiling information.


Support interaction with filesystem disk quotas.


Enable support for the readline library.


Support sendfile( ) system call.


Support smbmount and smbfs.


Specify the location of the smbtorture tool from the SAMBA_4_0 SVN branch for use in make test.


Use spinlocks instead of fcntl locks.



List plug-ins that should be linked statically into Samba or built as shared libraries.


Location of SWAT files.


Support syslog message logging.


Include support for Samba's filesystem quota abstraction layer.


Support utmp file accounting.


Inlucde the AFS ACL Virtual Filesystem (VFS) plug-in.


Build Winbind support.

Using Samba
Using Samba: A File and Print Server for Linux, Unix & Mac OS X, 3rd Edition
ISBN: 0596007698
EAN: 2147483647
Year: 2004
Pages: 135 © 2008-2017.
If you may any questions please contact us: