~ubuntu-branches/ubuntu/jaunty/gnupg2/jaunty-updates

« back to all changes in this revision

Viewing changes to m4/readline.m4

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2005-12-08 22:13:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051208221321-4rvs2vu835iam5wv
Tags: 1.9.19-2
* Convert debian/changelog to UTF-8.
* Put gnupg-agent and gpgsm lintian overrides in the respectively
  right package.  Closes: #335066
* Added debhelper tokens to maintainer scripts.
* xsession fixes:
  o Added host name to gpg-agent PID file name.  Closes: #312717
  o Fixed xsession script to be able to run under zsh.  Closes: #308516
  o Don't run gpg-agent if one is already running.  Closes: #336480
* debian/control:
  o Fixed package description of gpgsm package.  Closes: #299842
  o Added mention of gpg-agent to description of gnupg-agent package.
    Closes: #304355
* Thanks to Peter Eisentraut <petere@debian.org> for all of the above.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Check for readline and dependencies
2
 
dnl Copyright (C) 2004 Free Software Foundation, Inc.
3
 
dnl
4
 
dnl This file is free software, distributed under the terms of the GNU
5
 
dnl General Public License.  As a special exception to the GNU General
6
 
dnl Public License, this file may be distributed as part of a program
7
 
dnl that contains a configuration script generated by Autoconf, under
8
 
dnl the same distribution terms as the rest of that program.
9
 
dnl
10
 
dnl Defines HAVE_LIBREADLINE to 1 if a working readline setup is
11
 
dnl found, and sets @LIBREADLINE@ to the necessary libraries.
12
 
 
13
 
AC_DEFUN([GNUPG_CHECK_READLINE],
14
 
[
15
 
  AC_ARG_WITH(readline,
16
 
     AC_HELP_STRING([--with-readline=DIR],
17
 
        [look for the readline library in DIR]),
18
 
     [_do_readline=$withval],[_do_readline=yes])
19
 
 
20
 
  if test "$_do_readline" != "no" ; then
21
 
     if test -d "$withval" ; then
22
 
        CPPFLAGS="${CPPFLAGS} -I$withval/include"
23
 
        LDFLAGS="${LDFLAGS} -L$withval/lib"
24
 
     fi
25
 
 
26
 
     for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
27
 
        _readline_save_libs=$LIBS
28
 
        _combo="-lreadline${_termcap:+ $_termcap}"
29
 
        LIBS="$LIBS $_combo"
30
 
 
31
 
        AC_MSG_CHECKING([whether readline via \"$_combo\" is present and sane])
32
 
 
33
 
        AC_LINK_IFELSE(AC_LANG_PROGRAM([
34
 
#include <stdio.h>
35
 
#include <readline/readline.h>
36
 
#include <readline/history.h>
37
 
],[
38
 
add_history("foobar");
39
 
rl_catch_signals=0;
40
 
]),_found_readline=yes,_found_readline=no)
41
 
 
42
 
        AC_MSG_RESULT([$_found_readline])
43
 
 
44
 
        LIBS=$_readline_save_libs
45
 
 
46
 
        if test $_found_readline = yes ; then
47
 
           AC_DEFINE(HAVE_LIBREADLINE,1,
48
 
              [Define to 1 if you have a fully functional readline library.])
49
 
           AC_SUBST(LIBREADLINE,$_combo)
50
 
           break
51
 
        fi
52
 
     done
53
 
 
54
 
     unset _termcap
55
 
     unset _readline_save_libs
56
 
     unset _combo
57
 
     unset _found_readline
58
 
  fi
59
 
])dnl