~ubuntu-branches/ubuntu/natty/gnupg2/natty-security

« back to all changes in this revision

Viewing changes to configure.ac

  • 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
1
# configure.ac - for GnuPG 1.9
2
2
# Copyright (C) 1998, 1999, 2000, 2001, 2002,
3
 
#               2003, 2004 Free Software Foundation, Inc.
 
3
#               2003, 2004, 2005 Free Software Foundation, Inc.
4
4
5
5
# This file is part of GnuPG.
6
6
24
24
 
25
25
# Version number: Remember to change it immediately *after* a release.
26
26
#                 Add a "-cvs" prefix for non-released code.
27
 
AC_INIT(gnupg, 1.9.15, gnupg-devel@gnupg.org)
 
27
AC_INIT(gnupg, 1.9.19, gnupg-devel@gnupg.org)
28
28
# Set development_version to yes if the minor number is odd or you
29
29
# feel that the default check for a development version is not
30
30
# sufficient.
34
34
NEED_LIBGCRYPT_API=1
35
35
NEED_LIBGCRYPT_VERSION=1.1.94
36
36
 
37
 
NEED_LIBASSUAN_VERSION=0.6.9
38
 
 
39
 
NEED_KSBA_VERSION=0.9.7
40
 
 
41
 
NEED_OPENSC_VERSION=0.8.0
42
 
 
 
37
NEED_LIBASSUAN_VERSION=0.6.10
 
38
 
 
39
NEED_KSBA_VERSION=0.9.12
43
40
 
44
41
 
45
42
PACKAGE=$PACKAGE_NAME
59
56
have_libgcrypt=no 
60
57
have_libassuan=no
61
58
have_ksba=no
62
 
have_opensc=no
63
59
have_pth=no
64
60
 
65
 
GNUPG_BUILD_PROGRAM(gpg, yes)
 
61
GNUPG_BUILD_PROGRAM(gpg, no)
66
62
GNUPG_BUILD_PROGRAM(gpgsm, yes)
67
63
GNUPG_BUILD_PROGRAM(agent, yes)
68
64
GNUPG_BUILD_PROGRAM(scdaemon, yes)
 
65
GNUPG_BUILD_PROGRAM(symcryptrun, no)
69
66
 
70
67
 
71
68
AC_SUBST(PACKAGE)
312
309
#define EXEC_TEMPFILE_ONLY
313
310
#endif
314
311
 
 
312
/* Temporary hacks to avoid requring a libgpg-error update. */
 
313
#if !HAVE_DECL_GPG_ERR_LOCKED
 
314
#define GPG_ERR_LOCKED  173
 
315
#endif
 
316
 
315
317
])
316
318
 
317
319
AM_MAINTAINER_MODE
335
337
AC_CHECK_TOOL(AR, ar, :)
336
338
AC_PATH_PROG(PERL,"perl")
337
339
AC_ISC_POSIX
 
340
gl_EARLY
338
341
AC_SYS_LARGEFILE
339
342
AC_CHECK_PROG(DOCBOOK_TO_MAN, docbook-to-man, yes, no)
340
343
AM_CONDITIONAL(HAVE_DOCBOOK_TO_MAN, test "$ac_cv_prog_DOCBOOK_TO_MAN" = yes)
436
439
#
437
440
AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",
438
441
                  have_gpg_error=yes,have_gpg_error=no)
 
442
_tmp_gpg_error_save_cflags="$CFLAGS"
 
443
CFLAGS="$CFLAGS $GPG_ERROR_CFLAGS"
 
444
AC_CHECK_DECLS(GPG_ERR_LOCKED,,,[#include <gpg-error.h>])
 
445
CFLAGS="${_tmp_gpg_error_save_cflags}"
439
446
 
440
447
 
441
448
#
477
484
AC_SUBST(DL_LIBS)
478
485
 
479
486
#
480
 
# OpenSC is needed by the SCdaemon - if it is not availbale we can only
481
 
# build a limited SCdaemon
 
487
# Checks for symcryptrun:
482
488
#
483
 
AM_PATH_OPENSC("$NEED_OPENSC_VERSION",have_opensc=yes,have_opensc=no)
484
 
if test $have_opensc = yes; then
485
 
  AC_DEFINE(HAVE_OPENSC,1,
486
 
            [defined if the OpenSC library is available])
487
 
fi
488
 
AM_CONDITIONAL(HAVE_OPENSC, test "$have_opensc" = "yes")
 
489
 
 
490
# libutil has openpty() and login_tty().
 
491
AC_CHECK_LIB(util, openpty,
 
492
              [ LIBUTIL_LIBS="$LIBUTIL_LIBS -lutil"
 
493
                AC_DEFINE(HAVE_LIBUTIL,1,
 
494
                         [defined if libutil is available])
 
495
             ])
 
496
AC_SUBST(LIBUTIL_LIBS)
 
497
 
 
498
# shred is used to clean temporary plain text files.
 
499
AC_PATH_PROG(SHRED, shred, /usr/bin/shred)
 
500
AC_DEFINE_UNQUOTED(SHRED,
 
501
        "${SHRED}", [defines the filename of the shred program])
 
502
 
489
503
 
490
504
#
491
505
# Check whether the (highly desirable) GNU Pth library is available
517
531
     PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs`"
518
532
     AC_DEFINE(USE_GNU_PTH, 1,
519
533
              [Defined if the GNU Portable Thread Library should be used])
 
534
     AC_DEFINE(HAVE_PTH, 1,
 
535
              [Defined if the GNU Pth is available])
520
536
  fi
521
537
 fi
522
538
else 
524
540
 PTH_CFLAGS=""
525
541
 PTH_LIBS=""
526
542
 AC_DEFINE(USE_GNU_PTH, 1)
 
543
 AC_DEFINE(HAVE_PTH, 1)
527
544
fi
528
545
AC_SUBST(PTH_CFLAGS)
529
546
AC_SUBST(PTH_LIBS)
530
547
 
531
 
AC_ARG_ENABLE(threads,
532
 
    AC_HELP_STRING([--disable-threads],[allow building without Pth support])
533
 
             )
534
 
 
535
548
 
536
549
dnl Must check for network library requirements before doing link tests
537
550
dnl for ldap, for example. If ldap libs are static (or dynamic and without
785
798
AC_CHECK_FUNCS(memmove gettimeofday getrusage setrlimit clock_gettime)
786
799
AC_CHECK_FUNCS(atexit raise getpagesize strftime nl_langinfo setlocale)
787
800
AC_CHECK_FUNCS(waitpid wait4 sigaction sigprocmask rand pipe stat getaddrinfo)
 
801
AC_CHECK_FUNCS(fseeko ftello ttyname isascii)
788
802
 
789
803
AC_CHECK_TYPES([struct sigaction, sigset_t],,,[#include <signal.h>])
790
804
 
 
805
# gnulib checks
 
806
gl_SOURCE_BASE(gl)
 
807
gl_M4_BASE(gl/m4)
 
808
gl_MODULES(setenv strsep mkdtemp vasprintf xsize)
 
809
gl_INIT
 
810
 
791
811
# These are needed by libjnlib - fixme: we should have macros for them
792
812
AC_CHECK_FUNCS(memicmp stpcpy strlwr strtoul memmove stricmp strtol)
793
813
AC_CHECK_FUNCS(getrusage setrlimit stat setlocale)
794
814
AC_CHECK_FUNCS(flockfile funlockfile fopencookie funopen)
795
815
 
796
 
AC_REPLACE_FUNCS(vasprintf)
797
 
AC_REPLACE_FUNCS(mkdtemp)
798
 
AC_REPLACE_FUNCS(fseeko ftello)
799
 
AC_REPLACE_FUNCS(isascii)
800
 
AC_REPLACE_FUNCS(putc_unlocked)
801
 
AC_REPLACE_FUNCS(strsep)
802
 
AC_REPLACE_FUNCS(ttyname)
803
 
 
804
 
 
805
816
 
806
817
#
807
818
# check for gethrtime and run a testprogram to see whether
889
900
  AC_MSG_CHECKING([whether the included regex lib is requested])
890
901
  AC_ARG_WITH(included-regex,
891
902
      [  --with-included-regex   use the included GNU regex library],
892
 
      [gnupg_cv_included_regex=yes],[gnupg_cv_included_regex=no])
 
903
      [gnupg_cv_included_regex="$withval"],[gnupg_cv_included_regex=no])
893
904
  AC_MSG_RESULT($gnupg_cv_included_regex)
894
905
 
895
906
  if test $gnupg_cv_included_regex = no ; then
980
991
if test "$GCC" = yes; then
981
992
    if test "$USE_MAINTAINER_MODE" = "yes"; then
982
993
        CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
983
 
        CFLAGS="$CFLAGS -Wformat-nonliteral"
 
994
        CFLAGS="$CFLAGS -Wno-format-y2k -Wformat-security"
984
995
    else
985
996
        CFLAGS="$CFLAGS -Wall"
986
997
    fi
1025
1036
     tmp=", "
1026
1037
     missing_pth=yes
1027
1038
  fi
1028
 
  if test $have_opensc = no; then
1029
 
     build_scdaemon_extra="${build_scdaemon_extra}${tmp}no pkcs#15"
1030
 
     tmp=", "
1031
 
  fi      
1032
1039
  if test -n "$build_scdaemon_extra"; then
1033
1040
     build_scdaemon_extra="(${build_scdaemon_extra})"
1034
1041
  fi
1046
1053
AM_CONDITIONAL(BUILD_GPGSM, test "$build_gpgsm" = "yes")
1047
1054
AM_CONDITIONAL(BUILD_AGENT, test "$build_agent" = "yes")
1048
1055
AM_CONDITIONAL(BUILD_SCDAEMON, test "$build_scdaemon" = "yes")
 
1056
AM_CONDITIONAL(BUILD_SYMCRYPTRUN, test "$build_symcryptrun" = "yes")
1049
1057
 
1050
1058
 
1051
1059
 
1060
1068
***  
1061
1069
*** You need libgpg-error to build this program.
1062
1070
**  This library is for example available at
1063
 
***   ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error
 
1071
***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
1064
1072
*** (at least version $NEED_GPG_ERROR_VERSION is required.)
1065
1073
***]])
1066
1074
fi
1070
1078
***  
1071
1079
*** You need libgcrypt to build this program.
1072
1080
**  This library is for example available at
1073
 
***   ftp://ftp.gnupg.org/gcrypt/alpha/libgcrypt/
 
1081
***   ftp://ftp.gnupg.org/gcrypt/libgcrypt/
1074
1082
*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API) is required.)
1075
1083
***]])
1076
1084
fi
1096
1104
if test "$missing_pth" = "yes"; then
1097
1105
    AC_MSG_NOTICE([[
1098
1106
***
1099
 
*** It is strongly suggested to build with support for the
 
1107
*** It is now required to build with support for the
1100
1108
*** GNU Portable Threads Library (Pth). Please install this
1101
 
*** library first or use --disable-threads to allow building
1102
 
*** anyway.  The library is for example available at
 
1109
*** library first.  The library is for example available at
1103
1110
***   ftp://ftp.gnu.org/gnu/pth/
1104
1111
*** On a Debian GNU/Linux system you can install it using 
1105
1112
***   apt-get install libpth-dev
1106
1113
***]])
1107
 
  if test "$enable_threads" != "no"; then
1108
 
     die=yes
1109
 
  fi
 
1114
   die=yes
1110
1115
fi
1111
1116
 
1112
1117
if test "$die" = "yes"; then
1123
1128
Makefile
1124
1129
po/Makefile.in
1125
1130
intl/Makefile
 
1131
gl/Makefile
1126
1132
jnlib/Makefile
1127
1133
common/Makefile
1128
1134
kbx/Makefile