2000-10-27 14:55:24 +00:00
|
|
|
# configure.in for GPGME
|
|
|
|
#
|
|
|
|
dnl (Process this file with autoconf to produce a configure script.)
|
|
|
|
AC_REVISION($Revision$)dnl
|
|
|
|
|
|
|
|
AC_INIT(gpgme/gpgme.h)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
#############################################
|
|
|
|
# Version numbers (Remember to change them just before a release)
|
|
|
|
# 1. No interfaces changed, only implementations (good): Increment REVISION.
|
|
|
|
# 2. Interfaces added, none removed (good): Increment CURRENT, increment
|
|
|
|
# AGE, set REVISION to 0.
|
|
|
|
# 3. Interfaces removed (BAD, breaks upward compatibility): Increment
|
|
|
|
# CURRENT, set AGE and REVISION to 0.
|
2000-11-20 20:17:36 +00:00
|
|
|
AM_INIT_AUTOMAKE(gpgme,0.1.0)
|
2000-10-27 14:55:24 +00:00
|
|
|
LIBGPGME_LT_CURRENT=0
|
|
|
|
LIBGPGME_LT_AGE=0
|
2000-11-20 20:17:36 +00:00
|
|
|
LIBGPGME_LT_REVISION=2
|
2000-10-27 14:55:24 +00:00
|
|
|
##############################################
|
|
|
|
|
|
|
|
AC_SUBST(LIBGPGME_LT_CURRENT)
|
|
|
|
AC_SUBST(LIBGPGME_LT_AGE)
|
|
|
|
AC_SUBST(LIBGPGME_LT_REVISION)
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Checks for programs
|
|
|
|
dnl
|
|
|
|
AC_ARG_PROGRAM
|
|
|
|
|
|
|
|
dnl Don't default to build static libs
|
|
|
|
AM_DISABLE_STATIC
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
if test "$GCC" = yes; then
|
|
|
|
CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Checks for libraries
|
|
|
|
dnl
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Checks for header files
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Checks for typedefs and structures
|
|
|
|
dnl
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Checks for compiler features
|
|
|
|
dnl
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Checks for library functions
|
|
|
|
dnl
|
2000-11-22 17:10:48 +00:00
|
|
|
AC_CHECK_FUNCS(stpcpy)
|
2000-10-27 14:55:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Checks for system services
|
|
|
|
dnl
|
|
|
|
|
2000-11-17 21:20:53 +00:00
|
|
|
AC_PATH_PROG(GPG, gpg)
|
|
|
|
if test -z "$GPG"; then
|
|
|
|
AC_MSG_ERROR([[
|
|
|
|
***
|
|
|
|
*** GnuPG not found. Please install GnuPG first.
|
|
|
|
*** See http://www.gnupg.org/download.html
|
|
|
|
***
|
|
|
|
]])
|
|
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED(GPG_PATH, "$GPG")
|
2000-10-27 14:55:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Create config files
|
|
|
|
dnl
|
2000-11-17 21:20:53 +00:00
|
|
|
dnl
|
|
|
|
|
|
|
|
dnl Make the version number in gpgme/gpgme.h the same as the one here.
|
|
|
|
dnl (this is easier than to have a *.in file just for one substitution)
|
|
|
|
GNUPG_FIX_HDR_VERSION(gpgme/gpgme.h, GPGME_VERSION)
|
|
|
|
|
|
|
|
dnl Substitution used for gpgme-config
|
|
|
|
GPGME_LIBS="-L${libdir} -lgpgme"
|
|
|
|
GPGME_CFLAGS=""
|
|
|
|
AC_SUBST(GPGME_LIBS)
|
|
|
|
AC_SUBST(GPGME_CFLAGS)
|
2000-10-27 14:55:24 +00:00
|
|
|
|
|
|
|
AC_OUTPUT_COMMANDS([
|
|
|
|
chmod +x gpgme/gpgme-config
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
gpgme/Makefile
|
|
|
|
gpgme/gpgme-config
|
2000-11-07 13:32:38 +00:00
|
|
|
tests/Makefile
|
2000-10-27 14:55:24 +00:00
|
|
|
])
|
|
|
|
|
2000-11-07 13:32:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|