diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/.cvsignore | 121 | ||||
-rw-r--r-- | m4/db2.m4 | 42 | ||||
-rw-r--r-- | m4/debug.m4 | 34 | ||||
-rw-r--r-- | m4/enable.m4 | 49 | ||||
-rw-r--r-- | m4/gsasl.m4 | 65 | ||||
-rw-r--r-- | m4/gssapi.m4 | 126 | ||||
-rw-r--r-- | m4/guile.m4 | 125 | ||||
-rw-r--r-- | m4/lib.m4 | 26 | ||||
-rw-r--r-- | m4/md5.m4 | 14 | ||||
-rw-r--r-- | m4/nls.m4 | 31 | ||||
-rw-r--r-- | m4/sha1.m4 | 14 | ||||
-rw-r--r-- | m4/tls.m4 | 48 | ||||
-rw-r--r-- | m4/utmp.m4 | 14 |
13 files changed, 0 insertions, 709 deletions
diff --git a/m4/.cvsignore b/m4/.cvsignore deleted file mode 100644 index 75a247768..000000000 --- a/m4/.cvsignore +++ /dev/null @@ -1,121 +0,0 @@ -Makefile -Makefile.in -absolute-header.m4 -alloca.m4 -argp.m4 -autobuild.m4 -canonicalize-lgpl.m4 -chdir-long.m4 -chown.m4 -codeset.m4 -d-ino.m4 -d-type.m4 -des.m4 -dirfd.m4 -dirname.m4 -dos.m4 -double-slash-root.m4 -dup2.m4 -eealloc.m4 -environ.m4 -eoverflow.m4 -errno_h.m4 -error.m4 -exitfail.m4 -extensions.m4 -fchdir.m4 -fcntl-safer.m4 -fcntl_h.m4 -float_h.m4 -fnmatch.m4 -fseeko.m4 -getcwd-abort-bug.m4 -getcwd-path-max.m4 -getcwd.m4 -getdelim.m4 -getline.m4 -getlogin_r.m4 -getopt.m4 -getpass.m4 -gettext.m4 -glibc21.m4 -glob.m4 -gnulib-cache.m4 -gnulib-common.m4 -gnulib-comp.m4 -gnulib-tool.m4 -iconv.m4 -include_next.m4 -inline.m4 -intl.m4 -intldir.m4 -intlmacosx.m4 -intmax.m4 -intmax_t.m4 -inttostr.m4 -inttypes-h.m4 -inttypes-pri.m4 -inttypes_h.m4 -lchown.m4 -lib-ld.m4 -lib-link.m4 -lib-prefix.m4 -localcharset.m4 -longdouble.m4 -longlong.m4 -lseek.m4 -lstat.m4 -malloc.m4 -malloca.m4 -mbrtowc.m4 -mbstate_t.m4 -mbswidth.m4 -mempcpy.m4 -memrchr.m4 -openat.m4 -pathmax.m4 -po.m4 -printf.m4 -progtest.m4 -rawmemchr.m4 -readlink.m4 -realloc.m4 -regex.m4 -save-cwd.m4 -setenv.m4 -signed.m4 -size_max.m4 -sleep.m4 -snprintf.m4 -ssize_t.m4 -stdbool.m4 -stdint.m4 -stdint_h.m4 -stdio_h.m4 -stdlib_h.m4 -strcase.m4 -strchrnul.m4 -strdup.m4 -strerror.m4 -string_h.m4 -strings_h.m4 -strndup.m4 -strnlen.m4 -strtok_r.m4 -sys_stat_h.m4 -sysexits.m4 -threadlib.m4 -unistd-safer.m4 -unistd_h.m4 -vasnprintf.m4 -vasprintf.m4 -vsnprintf.m4 -wchar.m4 -wchar_t.m4 -wctype.m4 -wcwidth.m4 -wint_t.m4 -xalloc.m4 -xgetcwd.m4 -xsize.m4 -xstrndup.m4 diff --git a/m4/db2.m4 b/m4/db2.m4 deleted file mode 100644 index 64a8ba05c..000000000 --- a/m4/db2.m4 +++ /dev/null @@ -1,42 +0,0 @@ -dnl This file is part of GNU mailutils. -dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. -dnl -dnl GNU Mailutils is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 3, or (at your option) -dnl any later version. -dnl -dnl GNU Mailutils is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with GNU Mailutils; if not, write to the Free Software Foundation, -dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -dnl - -AH_TEMPLATE(BDB2_CURSOR_LASTARG, - [Last argument to the cursor member of Berkeley 2 DB structure]) - -dnl The cursor member of DB structure used to take three arguments in older -dnl implementations of Berkeley DB. Newer versions (>= 4.0) declare -dnl it as taking four arguments. -dnl This macro checks which of the variants we have. -AC_DEFUN([MU_DB2_CURSOR], - [AC_CACHE_CHECK([whether db->cursor takes 4 arguments], - [mu_cv_bdb2_cursor_four_args], - [AC_TRY_COMPILE([#include <db.h>], - [ -DB *db; -db->cursor(NULL, NULL, NULL, 0) - ], - [mu_cv_bdb2_cursor_four_args=yes], - [mu_cv_bdb2_cursor_four_args=no])]) - if test $mu_cv_bdb2_cursor_four_args = yes; then - AC_DEFINE(BDB2_CURSOR_LASTARG,[,0]) - else - AC_DEFINE(BDB2_CURSOR_LASTARG,[]) - fi]) - - diff --git a/m4/debug.m4 b/m4/debug.m4 deleted file mode 100644 index 5e7de1b3c..000000000 --- a/m4/debug.m4 +++ /dev/null @@ -1,34 +0,0 @@ -dnl This file is part of GNU mailutils. -dnl Copyright (C) 2001 Free Software Foundation, Inc. -dnl -dnl This file is free software; as a special exception the author gives -dnl unlimited permission to copy and/or distribute it, with or without -dnl modifications, as long as this notice is preserved. -dnl -dnl This program is distributed in the hope that it will be useful, but -dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the -dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -dnl -dnl Check for --enable-debug switch. When the switch is specified, add -dnl -ggdb to CFLAGS and remove any optimization options from there. -dnl - -AC_DEFUN([MU_DEBUG_MODE], - [AC_ARG_ENABLE(debug, - AC_HELP_STRING([--enable-debug], [enable debugging mode]), - [if test x"$enableval" = xyes; then - if test x"$GCC" = xyes; then - AC_MSG_CHECKING([whether gcc accepts -ggdb]) - save_CFLAGS=$CFLAGS - CFLAGS="-ggdb -Wall" - AC_TRY_COMPILE([],void f(){}, - AC_MSG_RESULT(yes), - [if test x"$ac_cv_prog_cc_g" = xyes; then - CFLAGS="-g -Wall" - else - CFLAGS= - fi - AC_MSG_RESULT(no)]) - CFLAGS="`echo $save_CFLAGS | sed 's/-O[[0-9]]//g'` $CFLAGS" - fi - fi])]) diff --git a/m4/enable.m4 b/m4/enable.m4 deleted file mode 100644 index d0d6ad0f8..000000000 --- a/m4/enable.m4 +++ /dev/null @@ -1,49 +0,0 @@ -dnl This file is part of GNU mailutils. -dnl Copyright (C) 2002, 2005, 2007 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software Foundation, -dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -dnl - -dnl MU_ENABLE_SUPPORT(feature, [action-if-true], [action-if-false]) - -AC_DEFUN([MU_ENABLE_SUPPORT], [ - pushdef([mu_upcase],translit($1,[a-z-],[A-Z_])) - pushdef([mu_cache_var],[mu_cv_enable_]translit($1,[-],[_])) - - AC_ARG_ENABLE($1, - AC_HELP_STRING([--disable-]$1, - [disable ]$1[ support]), - [ - case "${enableval}" in - yes) mu_cache_var=yes;; - no) mu_cache_var=no;; - *) AC_MSG_ERROR([bad value ${enableval} for --disable-$1]) ;; - esac], - [mu_cache_var=yes]) - - if test x"[$]mu_cache_var" = x"yes"; then - ifelse([$2],,:,[$2]) - ifelse([$3],,,else - [$3]) - fi - if test x"[$]mu_cache_var" = x"yes"; then - AC_DEFINE([ENABLE_]mu_upcase,1,[Define this if you enable $1 support]) - fi - popdef([mu_upcase]) - popdef([mu_cache_var]) -]) - - - diff --git a/m4/gsasl.m4 b/m4/gsasl.m4 deleted file mode 100644 index 427bd9943..000000000 --- a/m4/gsasl.m4 +++ /dev/null @@ -1,65 +0,0 @@ -dnl This file is part of GNU mailutils. -dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. -dnl -dnl GNU Mailutils is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 3, or (at your option) -dnl any later version. -dnl -dnl GNU Mailutils is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with GNU Mailutils; if not, write to the Free Software Foundation, -dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -dnl -AC_DEFUN([MU_CHECK_GSASL], -[AC_CACHE_CHECK([whether to use GNU SASL library], - [mu_cv_lib_gsasl], - [if test "x$mu_cv_lib_gsasl" = x; then - cached="" - mu_cv_lib_gsasl=no - - AC_ARG_WITH(gsasl, - AC_HELP_STRING([--with-gsasl], [use libgsasl for SASL authentication]), - [case $withval in - yes|no) wantgsasl=$withval;; - *) AC_MSG_ERROR([bad value for --with-gsasl: $withval]);; - esac], - [wantgsasl=no]) - - if test $wantgsasl = yes; then - AC_CHECK_HEADER(gsasl.h, - [:], - [wantgsasl=no]) - - if test $wantgsasl != no; then - save_LIBS=$LIBS - AC_CHECK_LIB(gsasl, gsasl_init, - [mu_cv_lib_gsasl=-lgsasl], - [mu_cv_lib_gsasl=no]) - if test $mu_cv_lib_gsasl != no; then - LIBS="$LIBS $mu_cv_lib_gsasl" - AC_TRY_RUN([ -#include <gsasl.h> - -int -main() -{ - return gsasl_check_version ("$1") == (char*) 0; -}], - [:], - [mu_cv_lib_gsasl=no], - [mu_cv_lib_gsasl=no]) - fi - LIBS=$save_LIBS - fi - fi - fi]) - if test $mu_cv_lib_gsasl != no; then - GSASL_LIBS=$mu_cv_lib_gsasl - ifelse([$2],,,[$2]) - fi]) - diff --git a/m4/gssapi.m4 b/m4/gssapi.m4 deleted file mode 100644 index 8e4f5d709..000000000 --- a/m4/gssapi.m4 +++ /dev/null @@ -1,126 +0,0 @@ -# Based on gssapi.m4 by Brendan Cully <brendan@kublai.com> 20010529 - -dnl MU_CHECK_GSSAPI(PREFIX) -dnl Search for a GSSAPI implementation in the standard locations plus PREFIX, -dnl if it is set and not "yes". -dnl Defines GSSAPI_CFLAGS and GSSAPI_LIBS if found. -dnl Defines GSSAPI_IMPL to "GSS", "Heimdal", "MIT", or "OldMIT", or -dnl "none" if not found - -AC_DEFUN([MU_CHECK_GSSAPI], -[ - if test "x$mu_cv_lib_gssapi_libs" = x; then - cached="" - GSSAPI_PREFIX=[$1] - GSSAPI_IMPL="none" - # First try krb5-config - if test "$GSSAPI_PREFIX" != "yes"; then - krb5_path="$GSSAPI_PREFIX/bin" - else - krb5_path="$PATH" - fi - AC_PATH_PROG(KRB5CFGPATH, krb5-config, none, $krb5_path) - AC_CHECK_HEADER(gss.h, [wantgss=yes], [wantgss=no]) - if test $wantgss != no; then - save_LIBS=$LIBS - AC_CHECK_LIB(gss, gss_check_version, [GSSAPI_LIBS=-lgss], [wantgss=no]) - if test $wantgss != no; then - LIBS="$LIBS $GSSAPI_LIBS" - AC_TRY_RUN([ -#include <gss.h> -int main() { return gss_check_version ("0.0.9") == (char*) 0; }], - [:], - [wantgss=no], - [wantgss=no]) - fi - LIBS=$save_LIBS - fi - if test $wantgss != no; then - GSSAPI_IMPL="GSS" - AC_DEFINE(WITH_GSS,1,[Define if mailutils is using GSS library for GSSAPI]) - elif test "$KRB5CFGPATH" != "none"; then - GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`" - GSSAPI_LIBS="`$KRB5CFGPATH --libs gssapi`" - GSSAPI_IMPL="Heimdal" - else - ## OK, try the old code - saved_CPPFLAGS="$CPPFLAGS" - saved_LDFLAGS="$LDFLAGS" - saved_LIBS="$LIBS" - if test "$GSSAPI_PREFIX" != "yes"; then - GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include" - GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib" - CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS" - LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS" - fi - - ## Check for new MIT kerberos V support - AC_CHECK_LIB(gssapi_krb5, gss_init_sec_context, - [GSSAPI_IMPL="MIT", - GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"] - ,, -lkrb5 -lk5crypto -lcom_err) - - ## Heimdal kerberos V support - if test "$GSSAPI_IMPL" = "none"; then - AC_CHECK_LIB(gssapi, gss_init_sec_context, - [GSSAPI_IMPL="Heimdal" - GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken" - GSSAPI_LIBS="$GSSAPI_LDFLAGS -lcrypt -lcom_err"] - ,, -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err) - fi - - ## Old MIT Kerberos V - ## Note: older krb5 distributions use -lcrypto instead of - ## -lk5crypto, which collides with OpenSSL. One way of dealing - ## with that is to extract all objects from krb5's libcrypto - ## and from openssl's libcrypto into the same directory, then - ## to create a new libcrypto from these. - if test "$GSSAPI_IMPL" = "none"; then - AC_CHECK_LIB(gssapi_krb5, g_order_init, - [GSSAPI_IMPL="OldMIT", - GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"] - ,, -lkrb5 -lcrypto -lcom_err) - fi - - CPPFLAGS="$saved_CPPFLAGS" - LDFLAGS="$saved_LDFLAGS" - LIBS="$saved_LIBS" - fi - - saved_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS" - AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h) - AC_CHECK_DECL(GSS_C_NT_HOSTBASED_SERVICE,, [ - AC_DEFINE(GSS_C_NT_HOSTBASED_SERVICE, - gss_nt_service_name, - [Work around buggy MIT library])],[ -#ifdef WITH_GSS -# include <gss.h> -#else -# ifdef HAVE_GSSAPI_H -# include <gssapi.h> -# else -# ifdef HAVE_GSSAPI_GSSAPI_H -# include <gssapi/gssapi.h> -# endif -# ifdef HAVE_GSSAPI_GSSAPI_GENERIC_H -# include <gssapi/gssapi_generic.h> -# endif -# endif -#endif -]) - CPPFLAGS="$saved_CPPFLAGS" - - mu_cv_lib_gssapi_cflags="$GSSAPI_CFLAGS" - mu_cv_lib_gssapi_libs="$GSSAPI_LIBS" - mu_cv_lib_gssapi_impl="$GSSAPI_IMPL" - - else - cached=" (cached) " - GSSAPI_CFLAGS="$mu_cv_lib_gssapi_cflags" - GSSAPI_LIBS="$mu_cv_lib_gssapi_libs" - GSSAPI_IMPL="$mu_cv_lib_gssapi_impl" - fi - AC_MSG_CHECKING(GSSAPI implementation) - AC_MSG_RESULT(${cached}$GSSAPI_IMPL) -]) diff --git a/m4/guile.m4 b/m4/guile.m4 deleted file mode 100644 index 30fa29897..000000000 --- a/m4/guile.m4 +++ /dev/null @@ -1,125 +0,0 @@ -dnl This file is part of GNU mailutils. -dnl Copyright (C) 2001, 2006, 2007 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software Foundation, -dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -dnl - -dnl MU_RESULT_ACTIONS -- generate shell code for the result of a test -dnl $1 -- CVAR -- cache variable to check -dnl $2 -- NAME -- if not empty, used to generate a default value TRUE: -dnl `AC_DEFINE(HAVE_NAME)' -dnl $2 -- TRUE -- what to do if the CVAR is not `no' -dnl $3 -- FALSE -- what to do otherwise; defaults to `:' -dnl -AC_DEFUN([MU_RESULT_ACTIONS], [ -[if test "$$1" != "" -a "$$1" != no; then - ]ifelse([$3], , - [AC_DEFINE(HAVE_]translit($2, [a-z ./<>], [A-Z___])[,1,[FIXME])], - [$3])[ -else - ]ifelse([$4], , [:], [$4])[ -fi]])dnl - -AC_DEFUN([MU_CHECK_GUILE], -[ - if test "x$mu_cv_lib_guile" = x; then - cached="" - AC_PATH_PROG(GUILE_CONFIG, guile-config, no, $PATH) - if test $GUILE_CONFIG = no; then - mu_cv_lib_guile=no - else - GUILE_INCLUDES=`$GUILE_CONFIG compile` - GUILE_LIBS=`$GUILE_CONFIG link` - fi - - if test $GUILE_CONFIG != no; then - AC_MSG_CHECKING(for guile version 1.4 or higher) - GUILE_VERSION=`($GUILE_CONFIG --version 2>&1; echo '')|sed -n 's/guile-config [[^0-9]]* \([[0-9]][[0-9]]*\)\.\([[0-9]][[0-9]]*\).*/\1\2/p'` - case "x$GUILE_VERSION" in - x[[0-9]]*) - if test $GUILE_VERSION -lt 14; then - AC_MSG_RESULT([Nope. Version number too low.]) - mu_cv_lib_guile=no - else - AC_DEFINE_UNQUOTED(GUILE_VERSION, $GUILE_VERSION, - [Guile version number: MAX*10 + MIN]) - AC_MSG_RESULT(OK) - save_LIBS=$LIBS - save_CFLAGS=$CFLAGS - LIBS="$LIBS $GUILE_LIBS" - CFLAGS="$CFLAGS $GUILE_INCLUDES" - AC_TRY_LINK([#include <libguile.h>], - ifelse([$1], , scm_shell(0, NULL);, [$1]), - [mu_cv_lib_guile=yes], - [mu_cv_lib_guile=no]) - LIBS=$save_LIBS - CFLAGS=$save_CFLAGS - fi ;; - *) AC_MSG_RESULT(Nope. Unknown version number) - mu_cv_lib_guile=no;; - esac - fi - else - cached=" (cached) " - GUILE_INCLUDES=`$GUILE_CONFIG compile` - GUILE_LIBS=`$GUILE_CONFIG link` - fi - AC_MSG_CHECKING(whether to build guile support) - MU_RESULT_ACTIONS([mu_cv_lib_guile],[LIBGUILE],[$2],[$3]) - AC_MSG_RESULT(${cached}$mu_cv_lib_guile) - if test $mu_cv_lib_guile = yes; then - if test $GUILE_VERSION -gt 14; then - LIBS="$LIBS $GUILE_LIBS" - CFLAGS="$CFLAGS $GUILE_INCLUDES" - AC_CHECK_FUNCS(scm_long2num scm_cell scm_list_1 scm_list_n scm_c_define\ - scm_c_lookup) - if test $ac_cv_func_scm_cell = no; then - AC_MSG_CHECKING(for inline scm_cell) - AC_TRY_LINK([#include <libguile.h>], - [scm_cell(SCM_EOL, SCM_EOL)], - [ac_cv_func_scm_cell=yes - AC_DEFINE(HAVE_SCM_CELL,1, - Define if you have scm_cell function)]) - AC_MSG_RESULT($ac_cv_func_scm_cell) - fi - CFLAGS=$save_CFLAGS - LIBS=$save_LIBS - fi - AC_ARG_WITH([guiledir], - AC_HELP_STRING([--with-guiledir=DIR], - [Specify the directory to install guile modules to]), - [case $withval in - /*) GUILE_SITE=$withval;; - yes) GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site;; - *) AC_MSG_ERROR([Argument to --with-guiledir must be an absolute directory name]);; - esac], - [GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site - pfx=$prefix - test "x$pfx" = xNONE && pfx=$ac_default_prefix - case $GUILE_SITE in - $pfx/*) ;; # OK - *) AC_MSG_WARN([guile site directory "$GUILE_SITE" lies outside your current prefix ($pfx).]) - GUILE_SITE='$(pkgdatadir)/$(VERSION)/guile' - AC_MSG_WARN([Falling back to ${GUILE_SITE} instead. Use --with-guiledir to force using site directory.]) - ;; - esac]) - fi - AC_SUBST(GUILE_SITE) - AC_SUBST(GUILE_INCLUDES) - AC_SUBST(GUILE_LIBS) -]) - - - diff --git a/m4/lib.m4 b/m4/lib.m4 deleted file mode 100644 index b756a213b..000000000 --- a/m4/lib.m4 +++ /dev/null @@ -1,26 +0,0 @@ -dnl Arguments: -dnl $1 -- Library to look for -dnl $2 -- Function to check in the library -dnl $3 -- Any additional libraries that might be needed -dnl $4 -- Action to be taken when test succeeds -dnl $5 -- Action to be taken when test fails -dnl $6 -- Directories where the library may reside -AC_DEFUN([MU_CHECK_LIB], -[ - save_LIBS=$LIBS - AC_CACHE_CHECK([for -l$1], mu_cv_lib_$1, - [ - for path in $6 - do - LIBS="$save_LIBS -L$path" - AC_CHECK_LIB($1, $2, - [mu_cv_lib_$1="$3 -L$path -l$1" - break], - [mu_cv_lib_$1=no],$3) - done - ]) - MU_RESULT_ACTIONS([mu_cv_lib_$1],[LIB$1],[$4],[$5]) - LIBS=$save_LIBS -]) - - diff --git a/m4/md5.m4 b/m4/md5.m4 deleted file mode 100644 index 62e995924..000000000 --- a/m4/md5.m4 +++ /dev/null @@ -1,14 +0,0 @@ -# md5.m4 serial 9 -dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_MD5], -[ - MU_LIBOBJ([md5]) - - dnl Prerequisites of lib/md5.c. - AC_REQUIRE([AC_C_BIGENDIAN]) - : -]) diff --git a/m4/nls.m4 b/m4/nls.m4 deleted file mode 100644 index 7967cc2f9..000000000 --- a/m4/nls.m4 +++ /dev/null @@ -1,31 +0,0 @@ -# nls.m4 serial 3 (gettext-0.15) -dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. -dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. - -AC_PREREQ(2.50) - -AC_DEFUN([AM_NLS], -[ - AC_MSG_CHECKING([whether NLS is requested]) - dnl Default is enabled NLS - AC_ARG_ENABLE(nls, - [ --disable-nls do not use Native Language Support], - USE_NLS=$enableval, USE_NLS=yes) - AC_MSG_RESULT($USE_NLS) - AC_SUBST(USE_NLS) -]) diff --git a/m4/sha1.m4 b/m4/sha1.m4 deleted file mode 100644 index 0c7915056..000000000 --- a/m4/sha1.m4 +++ /dev/null @@ -1,14 +0,0 @@ -# sha1.m4 serial 7 -dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_SHA1], -[ - MU_LIBOBJ([sha1]) - - dnl Prerequisites of lib/sha1.c. - AC_REQUIRE([AC_C_BIGENDIAN]) - : -]) diff --git a/m4/tls.m4 b/m4/tls.m4 deleted file mode 100644 index 61a6beb8d..000000000 --- a/m4/tls.m4 +++ /dev/null @@ -1,48 +0,0 @@ -dnl This file is part of GNU mailutils. -dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. -dnl -dnl GNU Mailutils is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 3, or (at your option) -dnl any later version. -dnl -dnl GNU Mailutils is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with GNU Mailutils; if not, write to the Free Software Foundation, -dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -dnl -AC_DEFUN([MU_CHECK_TLS], -[ - if test "x$WITH_GNUTLS" = x; then - cached="" - AC_ARG_WITH([gnutls], - AC_HELP_STRING([--with-gnutls], - [use GNU TLS library]), - [WITH_GNUTLS=$withval], - [WITH_GNUTLS=no]) - - if test "$WITH_GNUTLS" != "no"; then - AC_CHECK_HEADER(gnutls/gnutls.h, - [:], - [WITH_GNUTLS=no]) - if test "$WITH_GNUTLS" != "no"; then - saved_LIBS=$LIBS - AC_CHECK_LIB(gcrypt, main, - [TLS_LIBS="-lgcrypt"], - [WITH_GNUTLS=no]) - LIBS="$LIBS $TLS_LIBS" - AC_CHECK_LIB(gnutls, gnutls_global_init, - [TLS_LIBS="-lgnutls $TLS_LIBS"], - [WITH_GNUTLS=no]) - LIBS=$saved_LIBS - fi - fi - else - cached=" (cached) " - fi - AC_MSG_CHECKING([whether to use TLS libraries]) - AC_MSG_RESULT(${cached}${WITH_GNUTLS})]) diff --git a/m4/utmp.m4 b/m4/utmp.m4 deleted file mode 100644 index ce9406a91..000000000 --- a/m4/utmp.m4 +++ /dev/null @@ -1,14 +0,0 @@ -dnl MU_CHECK_UTMP -- Check for the presence of utmp.h, setutent, getutent -dnl and endutent calls. -AC_DEFUN([MU_CHECK_UTMP], -[ - AC_CHECK_HEADERS([utmp.h]) - # The three functions setutent,getutent and endutent depend on each other, - # so it seems reasonable to provide replacements for all three if getutent - # is not present. - AC_CHECK_FUNC(getutent, - AC_DEFINE(HAVE_GETUTENT_CALLS,, - [Define if your system has the three ???utent functions]), - [if test "$ac_cv_header_utmp_h" = "yes"; then - AC_LIBOBJ([utmp]) - fi])]) |