aboutsummaryrefslogtreecommitdiff
path: root/am
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2008-12-16 23:38:44 +0100
committerWojciech Polak <polak@gnu.org>2008-12-16 23:51:26 +0100
commit3995f423a9b85791e4bb0519541432dfad7e0b9e (patch)
treecc7373895b0e4c4b38e5524732648cad304a0de9 /am
parenta0e41c728c6ee06db52b5d0c83379260f3848ee3 (diff)
downloadanubis-3995f423a9b85791e4bb0519541432dfad7e0b9e.tar.gz
anubis-3995f423a9b85791e4bb0519541432dfad7e0b9e.tar.bz2
Switched to Git repository.
* m4: Rename to am. * README-alpha, README-hacking: Reflect the switch. * */.cvsignore: Rename to .gitignore, update. * ChangeLog: Rename to ChangeLog-CVS-old.
Diffstat (limited to 'am')
-rw-r--r--am/.gitignore82
-rw-r--r--am/anubis.m464
-rw-r--r--am/gpgme.m486
-rw-r--r--am/gsasl.m464
-rw-r--r--am/guile.m4101
-rw-r--r--am/libgnutls.m4161
6 files changed, 558 insertions, 0 deletions
diff --git a/am/.gitignore b/am/.gitignore
new file mode 100644
index 0000000..7050797
--- /dev/null
+++ b/am/.gitignore
@@ -0,0 +1,82 @@
+Makefile
+Makefile.in
+absolute-header.m4
+alloca.m4
+codeset.m4
+eealloc.m4
+environ.m4
+eoverflow.m4
+errno_h.m4
+error.m4
+exitfail.m4
+extensions.m4
+fseeko.m4
+getdelim.m4
+getline.m4
+getopt.m4
+getpass.m4
+gettext.m4
+glibc2.m4
+glibc21.m4
+gnulib-cache.m4
+gnulib-common.m4
+gnulib-comp.m4
+gnulib-tool.m4
+gnulib.m4
+iconv.m4
+include_next.m4
+inline.m4
+intdiv0.m4
+intl.m4
+intldir.m4
+intlmacosx.m4
+intmax.m4
+inttypes-pri.m4
+inttypes.m4
+inttypes_h.m4
+inttypes_h_gl.m4
+isc-posix.m4
+lcmessage.m4
+lib-ld.m4
+lib-link.m4
+lib-prefix.m4
+lock.m4
+longdouble.m4
+longlong.m4
+lseek.m4
+malloc.m4
+malloca.m4
+nls.m4
+obstack.m4
+onceonly.m4
+onceonly_2_57.m4
+po.m4
+printf-posix.m4
+progtest.m4
+realloc.m4
+setenv.m4
+signed.m4
+size_max.m4
+stdbool.m4
+stdint.m4
+stdint_h.m4
+stdint_h_gl.m4
+stdio_h.m4
+stdlib_h.m4
+strdup.m4
+strerror.m4
+string_h.m4
+sysexits.m4
+threadlib.m4
+uintmax_t.m4
+uintmax_t_gl.m4
+ulonglong.m4
+ulonglong_gl.m4
+unistd_h.m4
+unistd_h.m4
+visibility.m4
+wchar.m4
+wchar_t.m4
+wint_t.m4
+xalloc.m4
+xsize.m4
diff --git a/am/anubis.m4 b/am/anubis.m4
new file mode 100644
index 0000000..f2dfc5e
--- /dev/null
+++ b/am/anubis.m4
@@ -0,0 +1,64 @@
+dnl
+dnl This file is part of GNU Anubis.
+dnl Copyright (C) 2001, 2002, 2003, 2004, 2007 The Anubis Team.
+dnl
+dnl GNU Anubis is free software; you can redistribute it and/or modify it
+dnl under the terms of the GNU General Public License as published by the
+dnl Free Software Foundation; either version 3 of the License, or (at your
+dnl option) any later version.
+dnl
+dnl GNU Anubis 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 Anubis. If not, see <http://www.gnu.org/licenses/>.
+dnl
+
+AC_SUBST(ANUBIS_LIBOBJS)
+AC_DEFUN([ANUBIS_LIBOBJ],[
+ ANUBIS_LIBOBJS="$ANUBIS_LIBOBJS $1.$ac_objext"])
+
+dnl ANUBIS_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([ANUBIS_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
+
+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([ANUBIS_CHECK_LIB],
+[
+ save_LIBS=$LIBS
+ AC_CACHE_CHECK([for -l$1], anubis_cv_lib_$1,
+ [
+ for path in $6
+ do
+ LIBS="$save_LIBS $3 -L$path -l$1"
+ AC_TRY_LINK_FUNC($2,
+ [anubis_cv_lib_$1="$3 -L$path -l$1"
+ break],
+ [anubis_cv_lib_$1=no],$3)
+ done
+ ])
+ ANUBIS_RESULT_ACTIONS([anubis_cv_lib_$1],[LIB$1],[$4],[$5])
+ LIBS=$save_LIBS
+])
+
+
diff --git a/am/gpgme.m4 b/am/gpgme.m4
new file mode 100644
index 0000000..351b8e8
--- /dev/null
+++ b/am/gpgme.m4
@@ -0,0 +1,86 @@
+dnl
+dnl This file is part of GNU Anubis.
+dnl Copyright (C) 2001, 2002, 2003, 2004, 2007 The Anubis Team.
+dnl
+dnl GNU Anubis is free software; you can redistribute it and/or modify it
+dnl under the terms of the GNU General Public License as published by the
+dnl Free Software Foundation; either version 3 of the License, or (at your
+dnl option) any later version.
+dnl
+dnl GNU Anubis 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 Anubis. If not, see <http://www.gnu.org/licenses/>.
+dnl
+
+dnl Autoconf macros for libgpgme
+dnl $Id$
+
+dnl AM_PATH_GPGME([MINIMUM-VERSION,
+dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
+dnl Test for libgpgme and define GPGME_CFLAGS and GPGME_LIBS
+dnl
+AC_DEFUN([AM_PATH_GPGME],
+[ AC_ARG_WITH(gpgme-prefix,
+ AC_HELP_STRING([--with-gpgme-prefix=PFX],
+ [prefix where GPGME is installed (optional)]),
+ gpgme_config_prefix="$withval", gpgme_config_prefix="")
+ if test x$gpgme_config_prefix != x ; then
+ gpgme_config_args="$gpgme_config_args --prefix=$gpgme_config_prefix"
+ if test x${GPGME_CONFIG+set} != xset ; then
+ GPGME_CONFIG=$gpgme_config_prefix/bin/gpgme-config
+ fi
+ fi
+
+ AC_PATH_PROG(GPGME_CONFIG, gpgme-config, no)
+ min_gpgme_version=ifelse([$1], ,0.3.9,$1)
+ AC_MSG_CHECKING(for GPGME - version >= $min_gpgme_version)
+ ok=no
+ if test "$GPGME_CONFIG" != "no" ; then
+ req_major=`echo $min_gpgme_version | \
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
+ req_minor=`echo $min_gpgme_version | \
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
+ req_micro=`echo $min_gpgme_version | \
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
+ gpgme_config_version=`$GPGME_CONFIG $gpgme_config_args --version`
+ major=`echo $gpgme_config_version | \
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
+ minor=`echo $gpgme_config_version | \
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
+ micro=`echo $gpgme_config_version | \
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
+ if test "$major" -gt "$req_major"; then
+ ok=yes
+ else
+ if test "$major" -eq "$req_major"; then
+ if test "$minor" -gt "$req_minor"; then
+ ok=yes
+ else
+ if test "$minor" -eq "$req_minor"; then
+ if test "$micro" -ge "$req_micro"; then
+ ok=yes
+ fi
+ fi
+ fi
+ fi
+ fi
+ fi
+ if test $ok = yes; then
+ GPGME_CFLAGS=`$GPGME_CONFIG $gpgme_config_args --cflags`
+ GPGME_LIBS=`$GPGME_CONFIG $gpgme_config_args --libs`
+ AC_MSG_RESULT(yes)
+ ifelse([$2], , :, [$2])
+ else
+ GPGME_CFLAGS=""
+ GPGME_LIBS=""
+ AC_MSG_RESULT(no)
+ ifelse([$3], , :, [$3])
+ fi
+ AC_SUBST(GPGME_CFLAGS)
+ AC_SUBST(GPGME_LIBS)
+])
+
diff --git a/am/gsasl.m4 b/am/gsasl.m4
new file mode 100644
index 0000000..89983c9
--- /dev/null
+++ b/am/gsasl.m4
@@ -0,0 +1,64 @@
+dnl This file is part of GNU mailutils.
+dnl Copyright (C) 2003, 2004, 2005, 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, see <http://www.gnu.org/licenses/>.
+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([--without-gsasl], [disable using libgsasl for SASL authentication]),
+ [case $withval in
+ yes|no) wantgsasl=$withval;;
+ *) AC_MSG_ERROR(bad value for --with-gsasl: $withval);;
+ esac],
+ [wantgsasl=yes])
+
+ 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/am/guile.m4 b/am/guile.m4
new file mode 100644
index 0000000..7109c42
--- /dev/null
+++ b/am/guile.m4
@@ -0,0 +1,101 @@
+dnl This file is part of GNU mailutils.
+dnl Copyright (C) 2001, 2003, 2004, 2007 Free Software Foundation, Inc.
+dnl
+dnl This program is free software; you can redistribute it and/or modify it
+dnl under the terms of the GNU General Public License as published by the
+dnl Free Software Foundation; either version 3 of the License, or (at your
+dnl 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 along
+dnl with this program. If not, see <http://www.gnu.org/licenses/>.
+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 `:'
+
+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.8 or higher)
+ GUILE_VERSION=`($GUILE_CONFIG --version 2>&1; echo '')|sed -n 's/guile-config - Guile version \([[0-9]][[0-9]]*\)\.\([[0-9]][[0-9]]*\).*/\1\2/p'`
+ case "x$GUILE_VERSION" in
+ x[[0-9]]*)
+ if test $GUILE_VERSION -lt 18; 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 16; 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
+ fi
+])
+
diff --git a/am/libgnutls.m4 b/am/libgnutls.m4
new file mode 100644
index 0000000..0fdbd5a
--- /dev/null
+++ b/am/libgnutls.m4
@@ -0,0 +1,161 @@
+dnl Autoconf macros for libgnutls
+dnl $id$
+
+# Modified for LIBGNUTLS -- nmav
+# Configure paths for LIBGCRYPT
+# Shamelessly stolen from the one of XDELTA by Owen Taylor
+# Werner Koch 99-12-09
+
+dnl AM_PATH_LIBGNUTLS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
+dnl Test for libgnutls, and define LIBGNUTLS_CFLAGS and LIBGNUTLS_LIBS
+dnl
+AC_DEFUN([AM_PATH_LIBGNUTLS],
+[dnl
+dnl Get the cflags and libraries from the libgnutls-config script
+dnl
+AC_ARG_WITH(libgnutls-prefix,
+ [ --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)],
+ libgnutls_config_prefix="$withval", libgnutls_config_prefix="")
+
+ if test x$libgnutls_config_prefix != x ; then
+ libgnutls_config_args="$libgnutls_config_args --prefix=$libgnutls_config_prefix"
+ if test x${LIBGNUTLS_CONFIG+set} != xset ; then
+ LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
+ fi
+ fi
+
+ AC_PATH_PROG(LIBGNUTLS_CONFIG, libgnutls-config, no)
+ min_libgnutls_version=ifelse([$1], ,0.1.0,$1)
+ AC_MSG_CHECKING(for libgnutls - version >= $min_libgnutls_version)
+ no_libgnutls=""
+ if test "$LIBGNUTLS_CONFIG" = "no" ; then
+ no_libgnutls=yes
+ else
+ LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
+ LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
+ libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
+
+
+ ac_save_CFLAGS="$CFLAGS"
+ ac_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
+ LIBS="$LIBS $LIBGNUTLS_LIBS"
+dnl
+dnl Now check if the installed libgnutls is sufficiently new. Also sanity
+dnl checks the results of libgnutls-config to some extent
+dnl
+ rm -f conf.libgnutlstest
+ AC_TRY_RUN([
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gnutls/gnutls.h>
+
+int
+main ()
+{
+ system ("touch conf.libgnutlstest");
+
+ if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
+ {
+ printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
+ "$libgnutls_config_version", gnutls_check_version(NULL) );
+ printf("*** was found! If libgnutls-config was correct, then it is best\n");
+ printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
+ printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
+ printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
+ printf("*** required on your system.\n");
+ printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
+ printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
+ printf("*** before re-running configure\n");
+ }
+ else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
+ {
+ printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
+ printf("*** library (version %s)\n", gnutls_check_version(NULL) );
+ }
+ else
+ {
+ if ( gnutls_check_version( "$min_libgnutls_version" ) )
+ {
+ return 0;
+ }
+ else
+ {
+ printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
+ gnutls_check_version(NULL) );
+ printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
+ "$min_libgnutls_version" );
+ printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
+ printf("*** \n");
+ printf("*** If you have already installed a sufficiently new version, this error\n");
+ printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
+ printf("*** being found. The easiest way to fix this is to remove the old version\n");
+ printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
+ printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
+ printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
+ printf("*** so that the correct libraries are found at run-time))\n");
+ }
+ }
+ return 1;
+}
+],, no_libgnutls=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+
+ if test "x$no_libgnutls" = x ; then
+ AC_MSG_RESULT(yes)
+ ifelse([$2], , :, [$2])
+ else
+ if test -f conf.libgnutlstest ; then
+ :
+ else
+ AC_MSG_RESULT(no)
+ fi
+ if test "$LIBGNUTLS_CONFIG" = "no" ; then
+ echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
+ echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
+ echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
+ echo "*** full path to libgnutls-config."
+ else
+ if test -f conf.libgnutlstest ; then
+ :
+ else
+ echo "*** Could not run libgnutls test program, checking why..."
+ CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
+ LIBS="$LIBS $LIBGNUTLS_LIBS"
+ AC_TRY_LINK([
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gnutls/gnutls.h>
+], [ return !!gnutls_check_version(NULL); ],
+ [ echo "*** The test program compiled, but did not run. This usually means"
+ echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
+ echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
+ echo "*** to the installed location Also, make sure you have run ldconfig if that"
+ echo "*** is required on your system"
+ echo "***"
+ echo "*** If you have an old version installed, it is best to remove it, although"
+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
+ echo "***" ],
+ [ echo "*** The test program failed to compile or link. See the file config.log for the"
+ echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
+ echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
+ echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG" ])
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ LIBGNUTLS_CFLAGS=""
+ LIBGNUTLS_LIBS=""
+ ifelse([$3], , :, [$3])
+ fi
+ rm -f conf.libgnutlstest
+ AC_SUBST(LIBGNUTLS_CFLAGS)
+ AC_SUBST(LIBGNUTLS_LIBS)
+])
+
+dnl *-*wedit:notab*-* Please keep this as the last line.

Return to:

Send suggestions and report system problems to the System administrator.