Fixes to work with automake 1.8/autoconf 2.59
Showing
10 changed files
with
26 additions
and
27 deletions
... | @@ -340,9 +340,6 @@ MU_CHECK_FUNCS(fgetpwent strtok_r getline strndup strnlen strchrnul) | ... | @@ -340,9 +340,6 @@ MU_CHECK_FUNCS(fgetpwent strtok_r getline strndup strnlen strchrnul) |
340 | ## Check for presence of utmp.h and utmp-related functions | 340 | ## Check for presence of utmp.h and utmp-related functions |
341 | MU_CHECK_UTMP | 341 | MU_CHECK_UTMP |
342 | 342 | ||
343 | AC_CHECK_HEADER([getopt.h], | ||
344 | AC_DEFINE(HAVE_GETOPT_H,1,[Define if the system has getopt.h]), | ||
345 | MU_HEADER(getopt.h)) | ||
346 | MU_REPLACE_GNU_GETOPT | 343 | MU_REPLACE_GNU_GETOPT |
347 | 344 | ||
348 | dnl Check for libraries | 345 | dnl Check for libraries |
... | @@ -498,16 +495,16 @@ if test ".$MU_BUILD_MH" = ".no"; then | ... | @@ -498,16 +495,16 @@ if test ".$MU_BUILD_MH" = ".no"; then |
498 | BUILD_MH_PROGRAMS= | 495 | BUILD_MH_PROGRAMS= |
499 | BUILD_MH_LIBRARIES= | 496 | BUILD_MH_LIBRARIES= |
500 | BUILD_MH_EXEC_HOOK= | 497 | BUILD_MH_EXEC_HOOK= |
501 | else | 498 | fi |
502 | AC_ARG_WITH([mh-bindir], | 499 | |
503 | AC_HELP_STRING([--with-mh-bindir], | 500 | AC_ARG_WITH([mh-bindir], |
504 | [Set the directory where to install the MH binaries. If it starts with '/' it is taken as an absolute path specification, otherwise ${prefix} is prepended to it. (Default: ${exec_prefix}/bin/mu-mh)]), | 501 | AC_HELP_STRING([--with-mh-bindir], |
502 | [Set the directory where to install the MH binaries. If it starts with '/' it is taken as an absolute path specification, otherwise ${prefix} is prepended to it. (Default: ${exec_prefix}/bin/mu-mh)]), | ||
505 | [case "${withval}" in | 503 | [case "${withval}" in |
506 | /*) MH_BIN_DIR=${withval};; | 504 | /*) MH_BIN_DIR=${withval};; |
507 | *) MH_BIN_DIR="\${prefix}/${withval}";; | 505 | *) MH_BIN_DIR="\${prefix}/${withval}";; |
508 | esac], | 506 | esac], |
509 | [MH_BIN_DIR='${exec_prefix}/bin/mu-mh']) | 507 | [MH_BIN_DIR='${exec_prefix}/bin/mu-mh']) |
510 | fi | ||
511 | 508 | ||
512 | if test x"$testpam" = x"yes"; then | 509 | if test x"$testpam" = x"yes"; then |
513 | AC_CHECK_HEADERS(security/pam_appl.h) | 510 | AC_CHECK_HEADERS(security/pam_appl.h) |
... | @@ -719,8 +716,6 @@ AC_SUBST(MU_LTLIBOBJS) | ... | @@ -719,8 +716,6 @@ AC_SUBST(MU_LTLIBOBJS) |
719 | AC_SUBST(SIEVE_MODDIR) | 716 | AC_SUBST(SIEVE_MODDIR) |
720 | SIEVE_MODDIR='$(libdir)/$(PACKAGE)' | 717 | SIEVE_MODDIR='$(libdir)/$(PACKAGE)' |
721 | 718 | ||
722 | MU_FINISH_LINKS | ||
723 | |||
724 | dnl Output Makefiles | 719 | dnl Output Makefiles |
725 | AC_CONFIG_FILES([Makefile | 720 | AC_CONFIG_FILES([Makefile |
726 | auth/Makefile | 721 | auth/Makefile | ... | ... |
... | @@ -23,7 +23,7 @@ dnl The cursor member of DB structure used to take three arguments in older | ... | @@ -23,7 +23,7 @@ dnl The cursor member of DB structure used to take three arguments in older |
23 | dnl implementations of Berkeley DB. Newer versions (>= 4.0) declare | 23 | dnl implementations of Berkeley DB. Newer versions (>= 4.0) declare |
24 | dnl it as taking four arguments. | 24 | dnl it as taking four arguments. |
25 | dnl This macro checks which of the variants we have. | 25 | dnl This macro checks which of the variants we have. |
26 | AC_DEFUN(MU_DB2_CURSOR, | 26 | AC_DEFUN([MU_DB2_CURSOR], |
27 | [AC_CACHE_CHECK([whether db->cursor takes 4 arguments], | 27 | [AC_CACHE_CHECK([whether db->cursor takes 4 arguments], |
28 | [mu_cv_bdb2_cursor_four_args], | 28 | [mu_cv_bdb2_cursor_four_args], |
29 | [AC_TRY_COMPILE([#include <db.h>], | 29 | [AC_TRY_COMPILE([#include <db.h>], | ... | ... |
... | @@ -13,7 +13,7 @@ dnl Check for --enable-debug switch. When the switch is specified, add | ... | @@ -13,7 +13,7 @@ dnl Check for --enable-debug switch. When the switch is specified, add |
13 | dnl -ggdb to CFLAGS and remove any optimization options from there. | 13 | dnl -ggdb to CFLAGS and remove any optimization options from there. |
14 | dnl | 14 | dnl |
15 | 15 | ||
16 | AC_DEFUN(MU_DEBUG_MODE, | 16 | AC_DEFUN([MU_DEBUG_MODE], |
17 | [AC_ARG_ENABLE(debug, | 17 | [AC_ARG_ENABLE(debug, |
18 | [ --enable-debug enable debugging mode], | 18 | [ --enable-debug enable debugging mode], |
19 | [if test x"$enableval" = xyes; then | 19 | [if test x"$enableval" = xyes; then | ... | ... |
... | @@ -7,8 +7,12 @@ | ... | @@ -7,8 +7,12 @@ |
7 | 7 | ||
8 | AH_TEMPLATE(HAVE_GNU_GETOPT, [Define if your system has GNU getopt functions]) | 8 | AH_TEMPLATE(HAVE_GNU_GETOPT, [Define if your system has GNU getopt functions]) |
9 | 9 | ||
10 | AC_DEFUN(MU_REPLACE_GNU_GETOPT, | 10 | AC_DEFUN([MU_REPLACE_GNU_GETOPT], |
11 | [ | 11 | [ |
12 | AC_CHECK_HEADER([getopt.h], | ||
13 | mu_cv_have_getopt_h=yes | ||
14 | AC_DEFINE(HAVE_GETOPT_H,1,[Define if the system has getopt.h]), | ||
15 | mu_cv_have_getopt_h=no) | ||
12 | AC_CACHE_CHECK([for GNU getopt], mu_cv_have_gnu_getopt, | 16 | AC_CACHE_CHECK([for GNU getopt], mu_cv_have_gnu_getopt, |
13 | [ | 17 | [ |
14 | AC_TRY_RUN([ | 18 | AC_TRY_RUN([ |
... | @@ -33,12 +37,15 @@ int argc; char **argv; | ... | @@ -33,12 +37,15 @@ int argc; char **argv; |
33 | mu_cv_have_gnu_getopt=no)]) | 37 | mu_cv_have_gnu_getopt=no)]) |
34 | 38 | ||
35 | if test x"$mu_cv_have_gnu_getopt" != xyes ; then | 39 | if test x"$mu_cv_have_gnu_getopt" != xyes ; then |
36 | MU_HEADER(getopt.h) | 40 | mu_cv_have_getopt_h=no |
37 | MU_LIBOBJ(getopt) | 41 | MU_LIBOBJ(getopt) |
38 | MU_LIBOBJ(getopt1) | 42 | MU_LIBOBJ(getopt1) |
39 | else | 43 | else |
40 | AC_DEFINE(HAVE_GNU_GETOPT) | 44 | AC_DEFINE(HAVE_GNU_GETOPT) |
41 | fi | 45 | fi |
46 | if test "$mu_cv_have_getopt_h" = no; then | ||
47 | MU_HEADER(getopt.h) | ||
48 | fi | ||
42 | ]) | 49 | ]) |
43 | 50 | ||
44 | 51 | ... | ... |
... | @@ -15,7 +15,7 @@ dnl You should have received a copy of the GNU General Public License | ... | @@ -15,7 +15,7 @@ dnl You should have received a copy of the GNU General Public License |
15 | dnl along with GNU Mailutils; if not, write to the Free Software | 15 | dnl along with GNU Mailutils; if not, write to the Free Software |
16 | dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 | dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | dnl | 17 | dnl |
18 | AC_DEFUN(MU_CHECK_GSASL, | 18 | AC_DEFUN([MU_CHECK_GSASL], |
19 | [AC_CACHE_CHECK([whether to use GNU SASL library], | 19 | [AC_CACHE_CHECK([whether to use GNU SASL library], |
20 | [mu_cv_lib_gsasl], | 20 | [mu_cv_lib_gsasl], |
21 | [if test "x$mu_cv_lib_gsasl" = x; then | 21 | [if test "x$mu_cv_lib_gsasl" = x; then | ... | ... |
... | @@ -5,7 +5,7 @@ dnl Search for a GSSAPI implementation in the standard locations plus PREFIX, | ... | @@ -5,7 +5,7 @@ dnl Search for a GSSAPI implementation in the standard locations plus PREFIX, |
5 | dnl if it is set and not "yes". | 5 | dnl if it is set and not "yes". |
6 | dnl Defines GSSAPI_CFLAGS and GSSAPI_LIBS if found. | 6 | dnl Defines GSSAPI_CFLAGS and GSSAPI_LIBS if found. |
7 | dnl Defines GSSAPI_IMPL to "Heimdal", "MIT", or "OldMIT", or "none" if not found | 7 | dnl Defines GSSAPI_IMPL to "Heimdal", "MIT", or "OldMIT", or "none" if not found |
8 | AC_DEFUN(MU_CHECK_GSSAPI, | 8 | AC_DEFUN([MU_CHECK_GSSAPI], |
9 | [ | 9 | [ |
10 | if test "x$mu_cv_lib_gssapi_libs" = x; then | 10 | if test "x$mu_cv_lib_gssapi_libs" = x; then |
11 | cached="" | 11 | cached="" | ... | ... |
... | @@ -32,7 +32,7 @@ else | ... | @@ -32,7 +32,7 @@ else |
32 | ]ifelse([$4], , [:], [$4])[ | 32 | ]ifelse([$4], , [:], [$4])[ |
33 | fi]])dnl | 33 | fi]])dnl |
34 | 34 | ||
35 | AC_DEFUN(MU_CHECK_GUILE, | 35 | AC_DEFUN([MU_CHECK_GUILE], |
36 | [ | 36 | [ |
37 | if test "x$mu_cv_lib_guile" = x; then | 37 | if test "x$mu_cv_lib_guile" = x; then |
38 | cached="" | 38 | cached="" | ... | ... |
... | @@ -5,7 +5,7 @@ dnl $3 -- Any additional libraries that might be needed | ... | @@ -5,7 +5,7 @@ dnl $3 -- Any additional libraries that might be needed |
5 | dnl $4 -- Action to be taken when test succeeds | 5 | dnl $4 -- Action to be taken when test succeeds |
6 | dnl $5 -- Action to be taken when test fails | 6 | dnl $5 -- Action to be taken when test fails |
7 | dnl $6 -- Directories where the library may reside | 7 | dnl $6 -- Directories where the library may reside |
8 | AC_DEFUN(MU_CHECK_LIB, | 8 | AC_DEFUN([MU_CHECK_LIB], |
9 | [ | 9 | [ |
10 | save_LIBS=$LIBS | 10 | save_LIBS=$LIBS |
11 | AC_CACHE_CHECK([for -l$1], mu_cv_lib_$1, | 11 | AC_CACHE_CHECK([for -l$1], mu_cv_lib_$1, | ... | ... |
... | @@ -17,26 +17,26 @@ dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ... | @@ -17,26 +17,26 @@ dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
17 | dnl | 17 | dnl |
18 | 18 | ||
19 | AC_SUBST(MU_LIBOBJS) | 19 | AC_SUBST(MU_LIBOBJS) |
20 | AC_DEFUN(MU_LIBOBJ,[ | 20 | AC_DEFUN([MU_LIBOBJ],[ |
21 | MU_LIBOBJS="$MU_LIBOBJS $1.o"]) | 21 | MU_LIBOBJS="$MU_LIBOBJS $1.o"]) |
22 | 22 | ||
23 | AC_DEFUN(MU_CHECK_FUNC,[ | 23 | AC_DEFUN([MU_CHECK_FUNC],[ |
24 | AC_CHECK_FUNC($1,, | 24 | AC_CHECK_FUNC($1,, |
25 | [MU_LIBOBJ($1)])]) | 25 | [MU_LIBOBJ($1)])]) |
26 | 26 | ||
27 | AC_DEFUN(MU_CHECK_FUNCS,[ | 27 | AC_DEFUN([MU_CHECK_FUNCS],[ |
28 | for mu_func in $1 | 28 | for mu_func in $1 |
29 | do | 29 | do |
30 | MU_CHECK_FUNC($mu_func) | 30 | MU_CHECK_FUNC($mu_func) |
31 | done]) | 31 | done]) |
32 | 32 | ||
33 | AC_SUBST(GNU_INCLS) | 33 | AC_SUBST(GNU_INCLS) |
34 | AC_DEFUN(MU_HEADER,[ | 34 | AC_DEFUN([MU_HEADER],[ |
35 | pushdef([mu_upcase],translit($1,[a-z-],[A-Z_])) | 35 | pushdef([mu_upcase],translit($1,[a-z-],[A-Z_])) |
36 | pushdef([mu_cache_var],[mu_cv_header_]translit($1,[-./],[___])) | 36 | pushdef([mu_cache_var],[mu_cv_header_]translit($1,[-./],[___])) |
37 | 37 | ||
38 | if test x"[$]mu_cache_var" != xyes; then | 38 | if test x"[$]mu_cache_var" != xyes; then |
39 | mu_header_list="$mu_header_list include/mailutils/gnu/$1:headers/$1" | 39 | AC_CONFIG_LINKS(include/mailutils/gnu/$1:headers/$1) |
40 | GNU_INCLS="$GNU_INCLS $1" | 40 | GNU_INCLS="$GNU_INCLS $1" |
41 | mu_cache_var=yes | 41 | mu_cache_var=yes |
42 | fi | 42 | fi |
... | @@ -45,6 +45,3 @@ AC_DEFUN(MU_HEADER,[ | ... | @@ -45,6 +45,3 @@ AC_DEFUN(MU_HEADER,[ |
45 | popdef([mu_cache_var]) | 45 | popdef([mu_cache_var]) |
46 | ]) | 46 | ]) |
47 | 47 | ||
48 | AC_DEFUN(MU_FINISH_LINKS,[ | ||
49 | AC_CONFIG_LINKS([$mu_header_list]) | ||
50 | ]) | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -15,7 +15,7 @@ dnl You should have received a copy of the GNU General Public License | ... | @@ -15,7 +15,7 @@ dnl You should have received a copy of the GNU General Public License |
15 | dnl along with GNU Mailutils; if not, write to the Free Software | 15 | dnl along with GNU Mailutils; if not, write to the Free Software |
16 | dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 | dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | dnl | 17 | dnl |
18 | AC_DEFUN(MU_CHECK_TLS, | 18 | AC_DEFUN([MU_CHECK_TLS], |
19 | [ | 19 | [ |
20 | if test "x$WITH_GNUTLS" = x; then | 20 | if test "x$WITH_GNUTLS" = x; then |
21 | cached="" | 21 | cached="" | ... | ... |
-
Please register or sign in to post a comment