Add `--enable-experimental' option
Rewrite DBM handling Withdraw old DBM support
Showing
4 changed files
with
49 additions
and
63 deletions
1 | ## Process this file with GNU Automake to create Makefile.in | 1 | ## Process this file with GNU Automake to create Makefile.in |
2 | 2 | ||
3 | ## Copyright (C) 2000,2001,2002,2003,2004,2005,2006 | 3 | ## Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 |
4 | ## Free Software Foundation, Inc. | 4 | ## Free Software Foundation, Inc. |
5 | ## | 5 | ## |
6 | ## GNU Mailutils is free software; you can redistribute it and/or | 6 | ## GNU Mailutils is free software; you can redistribute it and/or |
... | @@ -31,6 +31,7 @@ SUBDIRS = \ | ... | @@ -31,6 +31,7 @@ SUBDIRS = \ |
31 | libproto\ | 31 | libproto\ |
32 | lib\ | 32 | lib\ |
33 | libsieve\ | 33 | libsieve\ |
34 | libmu_cpp\ | ||
34 | libmu_scm\ | 35 | libmu_scm\ |
35 | doc\ | 36 | doc\ |
36 | config\ | 37 | config\ | ... | ... |
1 | GNU mailutils NEWS -- history of user-visible changes. 2007-02-25 | 1 | GNU mailutils NEWS -- history of user-visible changes. 2007-02-27 |
2 | Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 2 | Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
3 | See the end of file for copying conditions. | 3 | See the end of file for copying conditions. |
4 | 4 | ||
... | @@ -51,6 +51,8 @@ from the available data. | ... | @@ -51,6 +51,8 @@ from the available data. |
51 | New options `--bulletin-db' and `--bulletin-source' implement bulletin | 51 | New options `--bulletin-db' and `--bulletin-source' implement bulletin |
52 | facility. | 52 | facility. |
53 | 53 | ||
54 | * Support for old DBM has been withdrawn. | ||
55 | |||
54 | 56 | ||
55 | Version 1.1: | 57 | Version 1.1: |
56 | 58 | ... | ... |
... | @@ -266,10 +266,6 @@ use DBM-based mail box quotas with mail.local. | ... | @@ -266,10 +266,6 @@ use DBM-based mail box quotas with mail.local. |
266 | 266 | ||
267 | Use NDBM | 267 | Use NDBM |
268 | 268 | ||
269 | --with-dbm | ||
270 | |||
271 | Use old DBM | ||
272 | |||
273 | Only one dbm option may be specified. Which one depends on | 269 | Only one dbm option may be specified. Which one depends on |
274 | the flavor of DBM you are using. GDBM is most common for GNU | 270 | the flavor of DBM you are using. GDBM is most common for GNU |
275 | system. | 271 | system. | ... | ... |
1 | dnl Configuration for GNU Mailutils -- a suite of utilities for electronic mail | 1 | dnl Configuration for GNU Mailutils -- a suite of utilities for electronic mail |
2 | dnl | 2 | dnl |
3 | dnl Copyright (C) 1999,2000,2001,2002,2003,2004,2005, | 3 | dnl Copyright (C) 1999,2000,2001,2002,2003,2004,2005, |
4 | dnl 2006 Free Software Foundation, Inc. | 4 | dnl 2006,2007 Free Software Foundation, Inc. |
5 | dnl | 5 | dnl |
6 | dnl GNU Mailutils is free software; you can redistribute it and/or modify | 6 | dnl GNU Mailutils is free software; you can redistribute it and/or modify |
7 | dnl it under the terms of the GNU General Public License as published by | 7 | dnl it under the terms of the GNU General Public License as published by |
... | @@ -65,10 +65,7 @@ AM_PROG_LEX | ... | @@ -65,10 +65,7 @@ AM_PROG_LEX |
65 | ## Predefine several variables used to display configuration status | 65 | ## Predefine several variables used to display configuration status |
66 | status_pam=no | 66 | status_pam=no |
67 | status_ltdl=no | 67 | status_ltdl=no |
68 | status_bdb=no | ||
69 | status_ndbm=no | ||
70 | status_dbm=no | 68 | status_dbm=no |
71 | status_gdbm=no | ||
72 | status_gsasl=no | 69 | status_gsasl=no |
73 | status_mysql=no | 70 | status_mysql=no |
74 | status_pgsql=no | 71 | status_pgsql=no |
... | @@ -298,16 +295,6 @@ case "${withval}" in | ... | @@ -298,16 +295,6 @@ case "${withval}" in |
298 | *) AC_MSG_ERROR(bad value ${withval} for --with-ndbm) ;; | 295 | *) AC_MSG_ERROR(bad value ${withval} for --with-ndbm) ;; |
299 | esac]) | 296 | esac]) |
300 | 297 | ||
301 | AC_ARG_WITH([dbm], | ||
302 | AC_HELP_STRING([--with-dbm], | ||
303 | [use old DBM]), | ||
304 | [ | ||
305 | case "${withval}" in | ||
306 | yes) use_dbm=ODBM ;; | ||
307 | no) use_dbm=no ;; | ||
308 | *) AC_MSG_ERROR(bad value ${withval} for --with-old-dbm) ;; | ||
309 | esac]) | ||
310 | |||
311 | AC_MSG_CHECKING(for log facility) | 298 | AC_MSG_CHECKING(for log facility) |
312 | log_facility="LOG_MAIL" | 299 | log_facility="LOG_MAIL" |
313 | AC_ARG_WITH([log-facility], | 300 | AC_ARG_WITH([log-facility], |
... | @@ -757,12 +744,6 @@ MU_ENABLE_SUPPORT(radius, | ... | @@ -757,12 +744,6 @@ MU_ENABLE_SUPPORT(radius, |
757 | [mu_cv_enable_radius=no]) | 744 | [mu_cv_enable_radius=no]) |
758 | fi]) | 745 | fi]) |
759 | 746 | ||
760 | dnl AC_ARG_ENABLE([experimental], | ||
761 | dnl AC_HELP_STRING([--enable-experimental], | ||
762 | dnl [build experimental and/or unfinished utilities]), | ||
763 | dnl [MU_BUILD_EXPERIMENTAL="${enableval}"], | ||
764 | dnl [MU_BUILD_EXPERIMENTAL=no]) | ||
765 | |||
766 | AC_ARG_ENABLE([mh-utils], | 747 | AC_ARG_ENABLE([mh-utils], |
767 | AC_HELP_STRING([--enable-mh-utils], | 748 | AC_HELP_STRING([--enable-mh-utils], |
768 | [Build MH utilities]), | 749 | [Build MH utilities]), |
... | @@ -785,6 +766,17 @@ AC_ARG_WITH([mh-bindir], | ... | @@ -785,6 +766,17 @@ AC_ARG_WITH([mh-bindir], |
785 | esac], | 766 | esac], |
786 | [MH_BIN_DIR='${exec_prefix}/bin/mu-mh']) | 767 | [MH_BIN_DIR='${exec_prefix}/bin/mu-mh']) |
787 | 768 | ||
769 | AC_ARG_ENABLE([experimental], | ||
770 | AC_HELP_STRING([--enable-experimental], | ||
771 | [build experimental and/or unfinished utilities]), | ||
772 | [MU_BUILD_EXPERIMENTAL="${enableval}"], | ||
773 | [MU_BUILD_EXPERIMENTAL=no]) | ||
774 | |||
775 | AC_SUBST(MU_CXX_LIBS) | ||
776 | if test "$MU_BUILD_EXPERIMENTAL" = yes; then | ||
777 | MU_CXX_LIBS='$(MU_CXX_LIBS)' | ||
778 | fi | ||
779 | |||
788 | if test x"$testpam" = x"yes"; then | 780 | if test x"$testpam" = x"yes"; then |
789 | AC_CHECK_HEADERS(security/pam_appl.h) | 781 | AC_CHECK_HEADERS(security/pam_appl.h) |
790 | if test x"$ac_cv_header_security_pam_appl_h" = x"yes"; then | 782 | if test x"$ac_cv_header_security_pam_appl_h" = x"yes"; then |
... | @@ -885,11 +877,10 @@ AH_BOTTOM([ | ... | @@ -885,11 +877,10 @@ AH_BOTTOM([ |
885 | 877 | ||
886 | dnl Check for DBM | 878 | dnl Check for DBM |
887 | 879 | ||
888 | AC_SUBST(POPAUTH) | ||
889 | AH_TEMPLATE([WITH_BDB], | 880 | AH_TEMPLATE([WITH_BDB], |
890 | [Define to the major version of Berkeley DB library to use]) | 881 | [Define to the major version of Berkeley DB library to use]) |
891 | 882 | ||
892 | ## Set the variable status_bdb to $1 if: | 883 | ## Set the variable status_dbm to $1 if: |
893 | ## | 884 | ## |
894 | ## 1. Function $3 is defined in the library $2 | 885 | ## 1. Function $3 is defined in the library $2 |
895 | ## 2. Header file db.h is available | 886 | ## 2. Header file db.h is available |
... | @@ -907,10 +898,9 @@ check_bdb() { | ... | @@ -907,10 +898,9 @@ check_bdb() { |
907 | if test $ac_cv_header_db_h = yes; then | 898 | if test $ac_cv_header_db_h = yes; then |
908 | LIBS="$LIBS -l$2" | 899 | LIBS="$LIBS -l$2" |
909 | MU_DB2_CURSOR | 900 | MU_DB2_CURSOR |
910 | POPAUTH='popauth$(EXEEXT)' | 901 | status_dbm=$1 |
911 | status_bdb=$1 | ||
912 | fi]) | 902 | fi]) |
913 | if test $status_bdb = no; then | 903 | if test "$status_dbm" = no; then |
914 | : | 904 | : |
915 | else | 905 | else |
916 | AC_RUN_IFELSE( | 906 | AC_RUN_IFELSE( |
... | @@ -923,9 +913,8 @@ check_bdb() { | ... | @@ -923,9 +913,8 @@ check_bdb() { |
923 | && v_patch == DB_VERSION_PATCH); | 913 | && v_patch == DB_VERSION_PATCH); |
924 | ])], | 914 | ])], |
925 | [], | 915 | [], |
926 | [AC_MSG_ERROR([DB Library and header versions don't match]) | 916 | [status_dbm=no]) |
927 | status_bdb=no]) | 917 | if test "$status_dbm" != no; then |
928 | if test $status_bdb != no; then | ||
929 | AC_DEFINE_UNQUOTED(WITH_BDB,$ver) | 918 | AC_DEFINE_UNQUOTED(WITH_BDB,$ver) |
930 | fi | 919 | fi |
931 | fi | 920 | fi |
... | @@ -940,9 +929,9 @@ check_slackware_bdb() { | ... | @@ -940,9 +929,9 @@ check_slackware_bdb() { |
940 | dir=db`echo $1|tr -d '.'` | 929 | dir=db`echo $1|tr -d '.'` |
941 | save_CPPFLAGS=$CPPFLAGS | 930 | save_CPPFLAGS=$CPPFLAGS |
942 | CPPFLAGS="$CPPFLAGS -I/usr/include/$dir" | 931 | CPPFLAGS="$CPPFLAGS -I/usr/include/$dir" |
943 | check_bdb $1 db-$1 db_create | 932 | check_bdb "$1" db-$1 db_create |
944 | CPPFLAGS=$save_CPPFLAGS | 933 | CPPFLAGS=$save_CPPFLAGS |
945 | if test $status_bdb = "$1"; then | 934 | if test "$status_dbm" = "$1"; then |
946 | MU_COMMON_INCLUDES="$MU_COMMON_INCLUDES -I/usr/include/$dir" | 935 | MU_COMMON_INCLUDES="$MU_COMMON_INCLUDES -I/usr/include/$dir" |
947 | fi | 936 | fi |
948 | } | 937 | } |
... | @@ -954,10 +943,10 @@ GDBM) | ... | @@ -954,10 +943,10 @@ GDBM) |
954 | AC_DEFINE(WITH_GDBM,1, | 943 | AC_DEFINE(WITH_GDBM,1, |
955 | [Enable use of GNU DBM library])) | 944 | [Enable use of GNU DBM library])) |
956 | LIBS="$LIBS -lgdbm" | 945 | LIBS="$LIBS -lgdbm" |
957 | POPAUTH='popauth$(EXEEXT)' | 946 | status_dbm="GDBM"]);; |
958 | status_gdbm=yes]);; | ||
959 | 947 | ||
960 | BDB2) check_bdb 2 db db_open;; | 948 | BDB2) check_bdb 2 db db_open |
949 | test -n "$status_dbm" && status_dbm="Berkeley DB v. $status_dbm";; | ||
961 | 950 | ||
962 | BDB) for version in 4 3 2 | 951 | BDB) for version in 4 3 2 |
963 | do | 952 | do |
... | @@ -966,7 +955,8 @@ BDB) for version in 4 3 2 | ... | @@ -966,7 +955,8 @@ BDB) for version in 4 3 2 |
966 | 2) func=db_open;; | 955 | 2) func=db_open;; |
967 | esac | 956 | esac |
968 | check_bdb $version db $func | 957 | check_bdb $version db $func |
969 | if test "$status_bdb" != no; then | 958 | if test "$status_dbm" != no; then |
959 | status_dbm="Berkeley DB v. $status_dbm" | ||
970 | break; | 960 | break; |
971 | fi | 961 | fi |
972 | done;; | 962 | done;; |
... | @@ -975,8 +965,18 @@ BDB=*) | ... | @@ -975,8 +965,18 @@ BDB=*) |
975 | name=`expr $use_dbm : 'BDB=\(.*\)'` | 965 | name=`expr $use_dbm : 'BDB=\(.*\)'` |
976 | case $name in | 966 | case $name in |
977 | [[0-9]]*) check_slackware_bdb $name;; | 967 | [[0-9]]*) check_slackware_bdb $name;; |
978 | *) check_bdb 2 $name db_open | 968 | *) for version in 4 3 2 |
979 | test $status_bdb = no && check_bdb 3 $name db_create | 969 | do |
970 | case $version in | ||
971 | 4|3) func=db_create;; | ||
972 | 2) func=db_open;; | ||
973 | esac | ||
974 | check_bdb $version $name $func | ||
975 | if test "$status_dbm" != no; then | ||
976 | status_dbm="Berkeley DB v. $status_dbm" | ||
977 | break; | ||
978 | fi | ||
979 | done | ||
980 | ;; | 980 | ;; |
981 | esac | 981 | esac |
982 | ;; | 982 | ;; |
... | @@ -987,18 +987,14 @@ NDBM) | ... | @@ -987,18 +987,14 @@ NDBM) |
987 | AC_DEFINE(WITH_NDBM,1, | 987 | AC_DEFINE(WITH_NDBM,1, |
988 | [Enable use of NDBM])) | 988 | [Enable use of NDBM])) |
989 | LIBS="$LIBS -lndbm" | 989 | LIBS="$LIBS -lndbm" |
990 | POPAUTH='popauth$(EXEEXT)' | 990 | status_dbm="NDBM"]);; |
991 | status_ndbm=yes]);; | ||
992 | ODBM) | ||
993 | AC_CHECK_LIB(dbm, dbminit, | ||
994 | [AC_CHECK_HEADERS(dbm.h, | ||
995 | AC_DEFINE(WITH_OLD_DBM,1, | ||
996 | [Enable use of old DBM library])) | ||
997 | LIBS="$LIBS -ldbm" | ||
998 | POPAUTH='popauth$(EXEEXT)' | ||
999 | status_dbm=yes]);; | ||
1000 | esac | 991 | esac |
1001 | 992 | ||
993 | AC_SUBST(POPAUTH) | ||
994 | if test "$status_dbm" != no; then | ||
995 | POPAUTH='popauth$(EXEEXT)' | ||
996 | fi | ||
997 | |||
1002 | dnl Check for Guile | 998 | dnl Check for Guile |
1003 | AC_SUBST(GUILE_INCLUDES) | 999 | AC_SUBST(GUILE_INCLUDES) |
1004 | AC_SUBST(GUILE_LIBS) | 1000 | AC_SUBST(GUILE_LIBS) |
... | @@ -1094,10 +1090,7 @@ GNU Mailutils configured with the following settings: | ... | @@ -1094,10 +1090,7 @@ GNU Mailutils configured with the following settings: |
1094 | 1090 | ||
1095 | Use PAM........................ $status_pam | 1091 | Use PAM........................ $status_pam |
1096 | Use -ltdl...................... $status_ltdl | 1092 | Use -ltdl...................... $status_ltdl |
1097 | Use Berkeley DB................ $status_bdb | ||
1098 | Use NDBM....................... $status_ndbm | ||
1099 | Use DBM........................ $status_dbm | 1093 | Use DBM........................ $status_dbm |
1100 | Use GDBM....................... $status_gdbm | ||
1101 | Use GNU TLS.................... $status_gnutls | 1094 | Use GNU TLS.................... $status_gnutls |
1102 | Use GSASL...................... $status_gsasl | 1095 | Use GSASL...................... $status_gsasl |
1103 | Use GSSAPI..................... $status_gssapi | 1096 | Use GSSAPI..................... $status_gssapi |
... | @@ -1129,14 +1122,7 @@ EOF | ... | @@ -1129,14 +1122,7 @@ EOF |
1129 | ], | 1122 | ], |
1130 | [status_pam=$status_pam | 1123 | [status_pam=$status_pam |
1131 | status_ltdl=$status_ltdl | 1124 | status_ltdl=$status_ltdl |
1132 | if test $status_bdb = no; then | 1125 | status_dbm="$status_dbm" |
1133 | status_bdb=$status_bdb | ||
1134 | else | ||
1135 | status_bdb="v. $status_bdb" | ||
1136 | fi | ||
1137 | status_ndbm=$status_ndbm | ||
1138 | status_dbm=$status_dbm | ||
1139 | status_gdbm=$status_gdbm | ||
1140 | status_gnutls=$WITH_GNUTLS | 1126 | status_gnutls=$WITH_GNUTLS |
1141 | status_gsasl=$status_gsasl | 1127 | status_gsasl=$status_gsasl |
1142 | status_gssapi=$WITH_GSSAPI | 1128 | status_gssapi=$WITH_GSSAPI |
... | @@ -1181,6 +1167,7 @@ AC_CONFIG_FILES([Makefile | ... | @@ -1181,6 +1167,7 @@ AC_CONFIG_FILES([Makefile |
1181 | include/mailutils/gnu/Makefile | 1167 | include/mailutils/gnu/Makefile |
1182 | include/mailutils/sys/Makefile | 1168 | include/mailutils/sys/Makefile |
1183 | lib/Makefile | 1169 | lib/Makefile |
1170 | libmu_cpp/Makefile | ||
1184 | libmu_scm/Makefile | 1171 | libmu_scm/Makefile |
1185 | libproto/Makefile | 1172 | libproto/Makefile |
1186 | libproto/mbox/Makefile | 1173 | libproto/mbox/Makefile | ... | ... |
-
Please register or sign in to post a comment