📄 configure.in
字号:
AC_DEFINE_UNQUOTED(ENABLE_LOGGING,$ENABLE_LOGGING,"") ;; p*|P*) AC_MSG_RESULT([errors, with password]) ENABLE_LOGGING=3 AC_DEFINE_UNQUOTED(ENABLE_LOGGING,$ENABLE_LOGGING,"") ;; v*|V*) AC_MSG_RESULT([verbose, all with password]) ENABLE_LOGGING=4 AC_DEFINE_UNQUOTED(ENABLE_LOGGING,$ENABLE_LOGGING,"") ;; *) AC_MSG_RESULT(no) ENABLE_LOGGING=0 AC_DEFINE_UNQUOTED(ENABLE_LOGGING,$ENABLE_LOGGING,"") ;;esac#----------------------------------------------------------------------log_name="vpopmail"AC_ARG_ENABLE(log-name, [ --enable-log-name=TEXT Set syslog name [vpopmail].], log_name="$enableval",)AC_DEFINE_UNQUOTED(LOG_NAME,"$log_name","")#----------------------------------------------------------------------AC_MSG_CHECKING(whether auth-logging is enabled)AC_ARG_ENABLE(auth-logging, [ --disable-auth-logging Don't record time and ip of last auth attempt. Valid only for CDB, MySQL, PGSQL, LDAP, ActiveDir.], ENABLE_AUTH_LOGGING=$enableval, [ ENABLE_AUTH_LOGGING=y ])case $ENABLE_AUTH_LOGGING in 1*|y*|Y*) AC_MSG_RESULT(yes) ENABLE_AUTH_LOGGING=1 AC_DEFINE_UNQUOTED(ENABLE_AUTH_LOGGING,$ENABLE_AUTH_LOGGING,"") ;; *) AC_MSG_RESULT(no) ;;esac#----------------------------------------------------------------------AC_MSG_CHECKING(whether mysql-logging is enabled)AC_ARG_ENABLE(mysql-logging, [ --enable-mysql-logging Enable authentication logging to MySQL. Uses setting from --enable-auth-logging.], ENABLE_MYSQL_LOGGING=$enableval, [ ENABLE_MYSQL_LOGGING=n ])case $ENABLE_MYSQL_LOGGING in 1*|y*|Y*) AC_MSG_RESULT(yes) if test $USE_MYSQL != 1 then AC_MSG_ERROR(mysql-logging is only supported in the MySQL authentication module) else ENABLE_MYSQL_LOGGING=1 AC_DEFINE_UNQUOTED(ENABLE_MYSQL_LOGGING,$ENABLE_MYSQL_LOGGING,"") fi ;; *) AC_MSG_RESULT(no) ;;esac#----------------------------------------------------------------------AC_MSG_CHECKING(whether pgsql-logging is enabled)AC_ARG_ENABLE(pgsql-logging, [ --enable-pgsql-logging Enable authentication logging to PostgreSQL. Uses setting from --enable-auth-logging.], ENABLE_PGSQL_LOGGING=$enableval, [ ENABLE_PGSQL_LOGGING=n ])case $ENABLE_PGSQL_LOGGING in 1*|y*|Y*) AC_MSG_RESULT(yes) if test $USE_PGSQL != 1 then AC_MSG_ERROR(pgsql-logging is only supported in the PostgreSQL authentication module) else ENABLE_PGSQL_LOGGING=1 AC_DEFINE_UNQUOTED(ENABLE_PGSQL_LOGGING,$ENABLE_PGSQL_LOGGING,"") fi ;; *) AC_MSG_RESULT(no) ;;esac#----------------------------------------------------------------------AC_MSG_CHECKING(whether mysql-limits is enabled)AC_ARG_ENABLE(mysql-limits, [ --enable-mysql-limits Use MySQL to store limits instead of .qmailadmin-limits files.], ENABLE_MYSQL_LIMITS=$enableval, [ ENABLE_MYSQL_LIMITS=n ])case $ENABLE_MYSQL_LIMITS in 1*|y*|Y*) AC_MSG_RESULT(yes) if test $USE_MYSQL != 1 then AC_MSG_ERROR(mysql-limits is only supported in the MySQL authentication module) else ENABLE_MYSQL_LIMITS=1 AC_DEFINE_UNQUOTED(ENABLE_MYSQL_LIMITS,$ENABLE_MYSQL_LIMITS,"") fi ;; *) AC_MSG_RESULT(no) ;;esac#----------------------------------------------------------------------AC_MSG_CHECKING(whether mysql-replication is enabled)AC_ARG_ENABLE(mysql-replication, [ --enable-mysql-replication Enable support for replicated MySQL auth servers.], MYSQL_REPLICATION=$enableval, [ MYSQL_REPLICATION=n ])case $MYSQL_REPLICATION in 1*|y*|Y*) AC_MSG_RESULT(yes) if test $USE_MYSQL != 1 then AC_MSG_ERROR(mysql-replication is only supported in the MySQL authentication module) else MYSQL_REPLICATION=1 AC_DEFINE_UNQUOTED(MYSQL_REPLICATION,$MYSQL_REPLICATION,"") fi ;; *) AC_MSG_RESULT(no) ;;esac#----------------------------------------------------------------------AC_MSG_CHECKING(whether valias is enabled)AC_ARG_ENABLE(valias, [ --enable-valias Store email aliases in MySQL.], VALIAS=$enableval, [ VALIAS=n ])case $VALIAS in 1*|y*|Y*) AC_MSG_RESULT(yes) if test $USE_MYSQL != 1 then AC_MSG_ERROR(valias is only supported in the MySQL authentication module) else VALIAS=1 AC_DEFINE_UNQUOTED(VALIAS,$VALIAS,"") fi ;; *) AC_MSG_RESULT(no) ;;esac#----------------------------------------------------------------------AC_MSG_CHECKING(whether many-domains is enabled)AC_ARG_ENABLE(many-domains, [ --disable-many-domains Creates a table for each virtual domain instead of storing all users in a single table. Only valid for MySQL and PostgreSQL], MANY_DOMAINS=$enableval, [ MANY_DOMAINS=y ])case $MANY_DOMAINS in 1*|y*|Y*) AC_MSG_RESULT(yes) #if test $USE_SQL != 1 #then # AC_MSG_ERROR(many-domains is only supported in the SQL authentication modules) #else MANY_DOMAINS=1 AC_DEFINE_UNQUOTED(MANY_DOMAINS,$MANY_DOMAINS,"") #fi ;; *) AC_MSG_RESULT(no) MANY_DOMAINS=0 ;;esac#----------------------------------------------------------------------AC_MSG_CHECKING(whether any discontinued --enable commands have been used)AC_ARG_ENABLE(mysql, [], [ AC_MSG_RESULT(yes) AC_MSG_ERROR(--enable-mysql has been superceded. Please use --enable-auth-module=mysql instead) ])AC_ARG_ENABLE(pgsql, [], [ AC_MSG_RESULT(yes) AC_MSG_ERROR(--enable-pgsql has been superceded. Please use --enable-auth-module=pgsql instead) ])AC_ARG_ENABLE(ldap, [], [ AC_MSG_RESULT(yes) AC_MSG_ERROR(--enable-ldap has been superceded. Please use --enable-auth-module=ldap instead) ])AC_ARG_ENABLE(oracle, [], [ AC_MSG_RESULT(yes) AC_MSG_ERROR(--enable-oracle has been superceded. Please use --enable-auth-module=oracle instead) ])AC_ARG_ENABLE(sybase, [], [ AC_MSG_RESULT(yes) AC_MSG_ERROR(--enable-sybase has been superceded. Please use --enable-auth-module=sybase instead) ])AC_ARG_ENABLE(active-directory, [], [ AC_MSG_RESULT(yes) AC_MSG_ERROR(--enable-active-directory has been superceded. Please use --enable-auth-module=activedir instead) ]) AC_ARG_ENABLE(hardquota, [], [ AC_MSG_RESULT(yes) AC_MSG_ERROR(--enable-hardquota has been superceded. Please use the ~vpopmail/etc/vlimits.default file instead.) ])AC_ARG_ENABLE(defaultquota, [], [ AC_MSG_RESULT(yes) AC_MSG_ERROR(--enable-defaultquota has been superceded. Please use the ~vpopmail/etc/vlimits.default file instead.) ])AC_ARG_ENABLE(default-domain, [], [ AC_MSG_RESULT(yes) AC_MSG_ERROR(--enable-default-domain has been superceded. The default domain should be put into the file ~vpopmail/etc/defaultdomain instead) ])AC_MSG_RESULT(no)#----------------------------------------------------------------------AC_OUTPUT(Makefile)#----------------------------------------------------------------------echo ""echo " $PACKAGE $VERSION "echo " Current settings"echo "---------------------------------------"echo ""echo "vpopmail directory = "$vpopmaildir""echo " uid = "$vpopmailuid""echo " gid = "$vpopmailgid""case $POPRELAY in 1*|y*|Y*) echo " roaming users = ON --enable-roaming-users" echo " tcpserver file = $tcpserver_file" echo " open_smtp file = $open_smtp_cur" case $REBUILD_TCPSERVER in 1*|y*|Y*) echo "rebuild tcpserver file = ON --enable-rebuild-tcpserver-file (default)" ;; *) echo "rebuild tcpserver file = OFF --disable-rebuild-tcpserver-file" ;; esac ;; *) echo " roaming users = OFF --disable-roaming-users (default)" ;;esaccase $ENABLE_LEARN_PASSWORDS in 1*|y*|Y*) echo " password learning = ON --enable-learn-passwords" ;; *) echo " password learning = OFF --disable-learn-passwords (default)" ;;esaccase $ENABLE_MD5_PASSWORDS in 1*|y*|Y*) echo " md5 passwords = ON --enable-md5-passwords (default)" ;; *) echo " md5 passwords = OFF --disable-md5-passwords" ;;esaccase $FILE_LOCKING in 1*|y*|Y*) echo " file locking = ON --enable-file-locking (default)" ;; *) echo " file locking = OFF --disable-file-locking" ;;esaccase $FILE_SYNC in 1*|y*|Y*) echo "vdelivermail fsync = ON --enable-file-sync" ;; *) echo "vdelivermail fsync = OFF --disable-file-sync (default)" ;;esaccase $MAKE_SEEKABLE in 1*|y*|Y*) echo " make seekable = ON --enable-make-seekable (default)" ;; *) echo " make seekable = OFF --disable-make-seekable" ;;esaccase $CLEAR_PASS in 1*|y*|Y*) echo " clear passwd = ON --enable-clear-passwd (default)" ;; *) echo " clear passwd = OFF --disable-clear-passwd" ;;esaccase $USERS_BIG_DIR in 1*|y*|Y*) echo " user dir hashing = ON --enable-users-big-dir (default)" ;; *) echo " user dir hashing = OFF --disable-users-big-dir" ;;esac# SQWEBMAIL PASScase $QMAIL_EXT in 1*|y*|Y*) echo "address extensions = ON --enable-qmail-ext" ;; *) echo "address extensions = OFF --disable-qmail-ext (default)" ;;esaccase $IPALIAS in 1*|y*|Y*) echo " ip alias = ON --enable-ip-alias-domains" ;; *) echo " ip alias = OFF --disable-ip-alias-domains (default)" ;;esaccase $ENABLE_DOMAIN_QUOTAS in 1*|y*|Y*) echo " domain quotas = ON --enable-domainquotas" ;; *) echo " domain quotas = OFF --disable-domainquotas (default)" ;;esaccase $AUTH_MODULE in cd*|Cd*|CD*) echo " auth module = cdb --enable-auth-module=cdb (default)" ;; my*|My*|MY*) echo " auth module = mysql --enable-auth-module=mysql" case $MYSQL_REPLICATION in 1*|y*|Y*) echo " mysql replication = ON --enable-mysql-replication" ;; *) echo " mysql replication = OFF --disable-mysql-replication (default)" ;; esac case $ENABLE_MYSQL_LOGGING in 1*|y*|Y*) echo " mysql logging = ON --enable-mysql-logging" ;; *) echo " mysql logging = OFF --disable-mysql-logging (default)" ;; esac case $ENABLE_MYSQL_LIMITS in 1*|y*|Y*) echo " mysql limits = ON --enable-mysql-limits" ;; *) echo " mysql limits = OFF --disable-mysql-limits (default)" ;; esac case $VALIAS in 1*|y*|Y*) echo " MySQL valias = ON --enable-valias" ;; *) echo " MySQL valias = OFF --disable-valias (default)" ;; esac ;; pg*|Pg*|PG*) echo " auth module = postgres --enable-auth-module=postgres" case $ENABLE_PGSQL_LOGGING in 1*|y*|Y*) echo " pgsql logging = ON --enable-pgsql-logging" ;; *) echo " pgsql logging = OFF --disable-pgsql-logging (default)" ;; esac ;; ld*|Ld*|LD*) echo " auth module = ldap --enable-auth-module=ldap" ;; or*|Or*|OR*) echo " auth module = oracle --enable-auth-module=oracle" ;; sy*|Sy*|SY*) echo " auth module = sybase --enable-auth-module=sybase" ;; ac*|Ac*|AC*) echo " auth module = active directory --enable-auth-module=activedir" ;;esacecho " auth inc = $auth_inc"echo " auth lib = $auth_libs"case $ENABLE_PASSWD in 1*|y*|Y*) echo " system passwords = ON --enable-passwd" ;; *) echo " system passwords = OFF --disable-passwd (default)" ;;esaccase $ENABLE_LOGGING in 1*|y*|Y*) echo " pop syslog = show successful and failed login attempts" echo " --enable-logging=y" ;; 2*|e*|E*) echo " pop syslog = show only failed attempts" echo " --enable-logging=e (default)" ;; 3*|p*|P*) echo " pop syslog = show failed attempts with clear text password" echo " --enable-logging=p" ;; 4*|v*|V*) echo " pop syslog = log success and errors including passwords" echo " --enable-logging=v" ;; *) echo " pop syslog = OFF" ;;esaccase $ENABLE_AUTH_LOGGING in 1*|y*|Y*) echo " auth logging = ON --enable-auth-logging (default)" ;; *) echo " auth logging = OFF --disable-auth-logging" ;;esacif test $USE_SQL = 1then if test $MANY_DOMAINS = 1 then echo "all domains in one SQL table = --enable-many-domains (default)" else echo "one domain per SQL table = --disable-many-domains" fifiecho "${CC} -O2" > cdb/conf-ccecho "${CC} -s" > cdb/conf-ldecho ""echo ""
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -