1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
|
# configure.ac
# Copyright (C) 2002 g10 Code GmbH
#
# This file is part of CRYPTPLUG.
#
# CRYPTPLUG is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# CRYPTPLUG is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
# (Process this file with autoconf to produce a configure script.)
AC_REVISION($Revision: 1.1.1.3 $)
AC_PREREQ(2.54)
# Remove "-cvs" suffix right *before* doing a release; bump version
# number after a release and append "-cvs" again.
AC_INIT(cryptplug, 0.3.16, [gpa-dev@gnupg.org])
# Note: When changing the interface, increment the version number returned by
# interfaceVersion ()
AM_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR(include/cryptplug.h)
AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
AH_TOP([
/* We need this, because some autoconf tests rely on this (e.g. stpcpy)
and it should be used for new programs anyway */
#define _GNU_SOURCE 1
])
AM_MAINTAINER_MODE
AC_CANONICAL_HOST
dnl Checks for programs.
missing_dir=`cd $ac_aux_dir && pwd`
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LIBTOOL
dnl Checks for compiler features.
if test "$GCC" = yes; then
CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
CPPFLAGS="$CPPFLAGS -Wall"
fi
dnl
dnl Check for GPGME CryptPlug.
dnl
AC_ARG_ENABLE(cryptplug-gpgme,
AC_HELP_STRING([--enable-cryptplug-gpgme], [build GPGME cryptplug]),
cryptplug_gpgme=$enableval, cryptplug_gpgme=maybe)
dnl
dnl Checks for GPGME library. Deal correctly with $cryptplug_gpgme = maybe.
dnl
AC_ARG_WITH([foo],
AC_HELP_STRING([--with-foo],
[use foo (default is NO)]),
[ac_cv_use_foo=$withval], [ac_cv_use_foo=no])
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 "$cryptplug_gpgme" != "no"; then
if test x$gpgme_config_prefix != x ; then
GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
fi
AC_PATH_PROG(GPGME_CONFIG, gpgme-config, no)
if test "$GPGME_CONFIG" = "no"; then
GPGME_CFLAGS=
GPGME_LIBS=
else
GPGME_CFLAGS=`$GPGME_CONFIG --cflags`
GPGME_LIBS=`$GPGME_CONFIG --libs`
fi
AC_SUBST(GPGME_CFLAGS)
AC_SUBST(GPGME_LIBS)
fi
if test "$GPGME_LIBS"; then
if test "$cryptplug_gpgme" != "no"; then
cryptplug_gpgme=yes
fi
else
if test "$cryptplug_gpgme" = "yes"; then
AC_MSG_ERROR([[
*** The GPGME library is required. The latest version of
*** GPGME is always available from ftp://ftp.gnupg.org/GnuPG/gpgme/.
]])
fi
cryptplug_gpgme=no
fi
AM_CONDITIONAL(BUILD_CRYPTPLUG_GPGME, test "$cryptplug_gpgme" = "yes")
dnl if test "$cryptplug_gpgme" = "yes"; then
dnl dnl Additional checks for GPGME CryptPlug.
dnl dnl End of checks for GPGME CryptPlug.
dnl fi
AC_CONFIG_FILES([
include/Makefile
gpgme/Makefile
Makefile
])
AC_OUTPUT
AC_MSG_NOTICE([
CryptPlug v${VERSION} has been configured as follows:
CryptPlug GPGME: $cryptplug_gpgme
])
|