2007-05-30 09:04:36 -04:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
# Minimum version of autoconf required
|
2010-09-23 10:10:47 -04:00
|
|
|
AC_PREREQ(2.62)
|
2007-05-30 09:04:36 -04:00
|
|
|
|
2007-08-16 15:03:00 -04:00
|
|
|
# UPDATING VERSION NUMBERS FOR RELEASES
|
|
|
|
#
|
|
|
|
# libalpm:
|
|
|
|
# current
|
|
|
|
# The most recent interface number that this library implements.
|
|
|
|
# revision
|
|
|
|
# The implementation number of the current interface.
|
|
|
|
# age
|
|
|
|
# The difference between the newest and oldest interfaces that this library
|
|
|
|
# implements. In other words, the library implements all the interface
|
|
|
|
# numbers in the range from number current - age to current.
|
|
|
|
#
|
|
|
|
# 1. Start with version information of `0:0:0' for each libtool library.
|
|
|
|
# 2. Update the version information only immediately before a public release of
|
|
|
|
# your software. More frequent updates are unnecessary, and only guarantee
|
|
|
|
# that the current interface number gets larger faster.
|
|
|
|
# 3. If the library source code has changed at all since the last update, then
|
|
|
|
# increment revision (`c:r:a' becomes `c:r+1:a').
|
|
|
|
# 4. If any interfaces have been added, removed, or changed since the last
|
|
|
|
# update, increment current, and set revision to 0.
|
|
|
|
# 5. If any interfaces have been added since the last public release, then
|
|
|
|
# increment age.
|
|
|
|
# 6. If any interfaces have been removed since the last public release, then
|
|
|
|
# set age to 0.
|
|
|
|
#
|
|
|
|
# pacman:
|
|
|
|
# Extreme huge major changes:
|
|
|
|
# pacman_version_major += 1
|
|
|
|
# pacman_version_minor = 0
|
|
|
|
# pacman_version_micro = 0
|
|
|
|
#
|
|
|
|
# Real releases:
|
|
|
|
# pacman_version_minor += 1
|
|
|
|
# pacman_version_micro = 0
|
|
|
|
#
|
|
|
|
# Bugfix releases:
|
|
|
|
# pacman_version_micro += 1
|
|
|
|
|
2011-03-16 11:40:05 -04:00
|
|
|
m4_define([lib_current], [6])
|
2011-06-02 17:33:43 -04:00
|
|
|
m4_define([lib_revision], [3])
|
2009-08-01 14:35:59 -04:00
|
|
|
m4_define([lib_age], [0])
|
2007-08-16 15:03:00 -04:00
|
|
|
|
|
|
|
m4_define([pacman_version_major], [3])
|
2011-03-16 11:40:05 -04:00
|
|
|
m4_define([pacman_version_minor], [5])
|
2011-06-02 17:33:43 -04:00
|
|
|
m4_define([pacman_version_micro], [3])
|
2007-08-16 15:03:00 -04:00
|
|
|
m4_define([pacman_version],
|
|
|
|
[pacman_version_major.pacman_version_minor.pacman_version_micro])
|
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Autoconf initialization
|
2008-05-31 12:53:51 -04:00
|
|
|
AC_INIT([pacman], [pacman_version], [pacman-dev@archlinux.org])
|
2007-05-30 09:04:36 -04:00
|
|
|
AC_CONFIG_SRCDIR([config.h.in])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
2007-02-22 16:34:51 -05:00
|
|
|
AC_CANONICAL_HOST
|
2005-10-17 14:52:43 -04:00
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
|
2008-01-19 15:50:15 -05:00
|
|
|
LIB_VERSION=`expr lib_current - lib_age`.lib_age.lib_revision
|
2007-08-16 15:03:00 -04:00
|
|
|
LIB_VERSION_INFO="lib_current:lib_revision:lib_age"
|
2005-10-17 14:52:43 -04:00
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Set subsitution values for version stuff in Makefiles and anywhere else,
|
|
|
|
# and put LIB_VERSION in config.h
|
2007-02-22 16:34:51 -05:00
|
|
|
AC_SUBST(LIB_VERSION)
|
|
|
|
AC_SUBST(LIB_VERSION_INFO)
|
|
|
|
AC_DEFINE_UNQUOTED([LIB_VERSION], ["$LIB_VERSION"], [libalpm version number])
|
2005-10-17 14:52:43 -04:00
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Help line for root directory
|
2007-03-29 03:47:34 -04:00
|
|
|
AC_ARG_WITH(root-dir,
|
2010-09-02 13:05:23 -04:00
|
|
|
AS_HELP_STRING([--with-root-dir=path], [set the location of the root operating directory]),
|
2007-06-04 17:49:09 -04:00
|
|
|
[ROOTDIR=$withval], [ROOTDIR=/])
|
2007-03-29 03:47:34 -04:00
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Help line for package extension
|
2007-03-29 03:47:34 -04:00
|
|
|
AC_ARG_WITH(pkg-ext,
|
2008-04-07 20:07:51 -04:00
|
|
|
AS_HELP_STRING([--with-pkg-ext=ext], [set the file extension used by packages]),
|
2007-06-04 17:49:09 -04:00
|
|
|
[PKGEXT=$withval], [PKGEXT=.pkg.tar.gz])
|
2007-03-29 03:47:34 -04:00
|
|
|
|
2007-05-31 12:21:37 -04:00
|
|
|
# Help line for source package directory
|
|
|
|
AC_ARG_WITH(src-ext,
|
2008-04-07 20:07:51 -04:00
|
|
|
AS_HELP_STRING([--with-src-ext=ext], [set the file extension used by source packages]),
|
2007-06-04 17:49:09 -04:00
|
|
|
[SRCEXT=$withval], [SRCEXT=.src.tar.gz])
|
2007-05-31 12:21:37 -04:00
|
|
|
|
2008-12-27 01:35:06 -05:00
|
|
|
# Help line for buildscript filename
|
|
|
|
AC_ARG_WITH(buildscript,
|
|
|
|
AS_HELP_STRING([--with-buildscript=name], [set the build script name used by makepkg]),
|
|
|
|
[BUILDSCRIPT=$withval], [BUILDSCRIPT=PKGBUILD])
|
|
|
|
|
2010-09-02 13:05:23 -04:00
|
|
|
# Help line for using OpenSSL
|
|
|
|
AC_ARG_WITH(openssl,
|
|
|
|
AS_HELP_STRING([--with-openssl], [use OpenSSL crypto implementations instead of internal routines]),
|
|
|
|
[], [with_openssl=check])
|
|
|
|
|
2011-04-24 12:40:58 -04:00
|
|
|
# Help line for using gpgme
|
|
|
|
AC_ARG_WITH(gpgme,
|
|
|
|
AS_HELP_STRING([--with-gpgme], [use GPGME for PGP signature verification]),
|
|
|
|
[], [with_gpgme=check])
|
|
|
|
|
2011-03-17 21:34:01 -04:00
|
|
|
# Check for useable libcurl
|
2011-04-24 12:42:51 -04:00
|
|
|
LIBCURL_CHECK_CONFIG([yes], [7.19.4], [with_libcurl=yes], [with_libcurl=no])
|
2008-04-06 22:00:11 -04:00
|
|
|
|
2007-12-22 00:47:18 -05:00
|
|
|
# Help line for documentation
|
|
|
|
AC_ARG_ENABLE(doc,
|
2010-06-17 01:01:23 -04:00
|
|
|
AS_HELP_STRING([--disable-doc], [prevent make from looking at doc/ dir]),
|
|
|
|
[wantdoc=$enableval], [wantdoc=yes])
|
2007-12-22 00:47:18 -05:00
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Help line for doxygen
|
2007-03-29 03:47:34 -04:00
|
|
|
AC_ARG_ENABLE(doxygen,
|
2008-04-07 20:07:51 -04:00
|
|
|
AS_HELP_STRING([--enable-doxygen], [build your own API docs via Doxygen]),
|
2007-11-13 00:36:20 -05:00
|
|
|
[wantdoxygen=$enableval], [wantdoxygen=no])
|
2007-02-21 23:36:02 -05:00
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Help line for debug
|
2007-02-21 23:36:02 -05:00
|
|
|
AC_ARG_ENABLE(debug,
|
2008-04-07 20:07:51 -04:00
|
|
|
AS_HELP_STRING([--enable-debug], [enable debugging support]),
|
2007-06-04 17:49:09 -04:00
|
|
|
[debug=$enableval], [debug=no])
|
2007-02-21 23:36:02 -05:00
|
|
|
|
2008-05-31 12:53:51 -04:00
|
|
|
# Help line for using git version in pacman version string
|
|
|
|
AC_ARG_ENABLE(git-version,
|
|
|
|
AS_HELP_STRING([--enable-git-version],
|
|
|
|
[enable use of git version in version string if available]),
|
|
|
|
[wantgitver=$enableval], [wantgitver=no])
|
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_AWK
|
2007-10-30 14:13:28 -04:00
|
|
|
AC_PROG_CC_C99
|
2007-05-30 09:04:36 -04:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
2007-10-30 01:20:18 -04:00
|
|
|
AC_PROG_LIBTOOL
|
2010-09-27 11:59:10 -04:00
|
|
|
AC_CHECK_PROGS([PYTHON], [python2.7 python2.6 python2.5 python2 python], [false])
|
2010-10-13 18:50:54 -04:00
|
|
|
AC_PATH_PROGS([BASH_SHELL], [bash bash4 bash3], [false])
|
2007-05-30 09:04:36 -04:00
|
|
|
|
|
|
|
# find installed gettext
|
2011-06-23 23:22:57 -04:00
|
|
|
AM_GNU_GETTEXT([external], [need-ngettext])
|
2007-05-30 09:04:36 -04:00
|
|
|
AM_GNU_GETTEXT_VERSION(0.13.1)
|
|
|
|
|
2011-04-02 09:49:42 -04:00
|
|
|
AC_CHECK_LIB([m], [fabs], ,
|
|
|
|
AC_MSG_ERROR([libm is needed to compile pacman!]))
|
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Check for libarchive
|
2008-04-06 22:00:11 -04:00
|
|
|
AC_CHECK_LIB([archive], [archive_read_data], ,
|
|
|
|
AC_MSG_ERROR([libarchive is needed to compile pacman!]))
|
2007-05-30 09:04:36 -04:00
|
|
|
|
2010-09-02 13:05:23 -04:00
|
|
|
# Check for OpenSSL
|
|
|
|
AC_MSG_CHECKING(whether to link with libssl)
|
|
|
|
AS_IF([test "x$with_openssl" != "xno"],
|
|
|
|
[AC_MSG_RESULT(yes)
|
|
|
|
AC_CHECK_LIB([ssl], [MD5_Final], ,
|
|
|
|
[if test "x$with_openssl" != "xcheck"; then
|
|
|
|
AC_MSG_FAILURE([--with-openssl was given, but -lssl was not found])
|
|
|
|
fi],
|
2011-04-24 12:42:51 -04:00
|
|
|
[-lcrypto])
|
|
|
|
with_openssl=$ac_cv_lib_ssl_MD5_Final],
|
2010-09-02 13:05:23 -04:00
|
|
|
AC_MSG_RESULT(no))
|
2011-04-24 12:42:51 -04:00
|
|
|
AM_CONDITIONAL([HAVE_LIBSSL], [test "x$with_openssl" = "xyes"])
|
2010-09-02 13:05:23 -04:00
|
|
|
|
2008-12-07 12:58:24 -05:00
|
|
|
# Check for gpgme
|
2011-04-24 12:40:58 -04:00
|
|
|
AC_MSG_CHECKING(whether to link with libgpgme)
|
|
|
|
AS_IF([test "x$with_gpgme" != "xno"],
|
|
|
|
[AC_MSG_RESULT(yes)
|
|
|
|
AC_CHECK_LIB([gpgme], [gpgme_check_version], ,
|
|
|
|
[if test "x$with_gpgme" != "xcheck"; then
|
|
|
|
AC_MSG_FAILURE([--with-ggpme was given, but -lgpgme was not found])
|
|
|
|
fi],
|
|
|
|
[-lgpgme])
|
|
|
|
with_gpgme=$ac_cv_lib_gpgme_gpgme_check_version],
|
|
|
|
AC_MSG_RESULT(no))
|
|
|
|
AM_CONDITIONAL([HAVE_LIBGPGME], [test "x$with_gpgme" = "xyes"])
|
2008-12-07 12:58:24 -05:00
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Checks for header files.
|
2010-12-17 14:11:29 -05:00
|
|
|
AC_CHECK_HEADERS([fcntl.h glob.h libintl.h locale.h mntent.h string.h \
|
|
|
|
sys/ioctl.h sys/mount.h sys/param.h sys/statvfs.h \
|
2011-03-18 11:03:28 -04:00
|
|
|
sys/time.h sys/types.h sys/ucred.h syslog.h termios.h \
|
|
|
|
wchar.h])
|
2007-05-30 09:04:36 -04:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_TYPE_MODE_T
|
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_TYPE_PID_T
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_STRUCT_TM
|
|
|
|
AC_TYPE_UID_T
|
2010-11-16 21:13:36 -05:00
|
|
|
AC_STRUCT_DIRENT_D_TYPE
|
2010-12-17 13:48:09 -05:00
|
|
|
PATH_MAX_DEFINED
|
2007-05-30 09:04:36 -04:00
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_FORK
|
2010-11-16 01:15:21 -05:00
|
|
|
AC_FUNC_GETMNTENT
|
2007-05-30 09:04:36 -04:00
|
|
|
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
|
2007-10-30 14:13:28 -04:00
|
|
|
AC_FUNC_MKTIME
|
2010-11-16 21:12:26 -05:00
|
|
|
AC_CHECK_FUNCS([geteuid getmntinfo realpath regcomp strcasecmp \
|
2011-03-18 11:03:28 -04:00
|
|
|
strndup strrchr strsep swprintf tcflush \
|
2008-04-07 20:07:51 -04:00
|
|
|
wcwidth uname])
|
2010-11-16 21:12:26 -05:00
|
|
|
# For the diskspace code
|
|
|
|
FS_STATS_TYPE
|
2011-02-08 22:19:00 -05:00
|
|
|
AC_CHECK_MEMBERS([struct statvfs.f_flag],,,[[#include <sys/statvfs.h>]])
|
|
|
|
AC_CHECK_MEMBERS([struct statfs.f_flags],,,[[#include <sys/param.h>
|
|
|
|
#include <sys/mount.h>]])
|
|
|
|
|
2007-07-09 16:40:50 -04:00
|
|
|
# Enable large file support if available
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
|
2007-10-31 23:19:03 -04:00
|
|
|
# Check if we can use symbol visibility support in GCC
|
|
|
|
GCC_VISIBILITY_CC
|
|
|
|
# Check if we have -fgnu89-inline flag
|
|
|
|
GCC_GNU89_INLINE_CC
|
|
|
|
|
2008-04-15 16:57:36 -04:00
|
|
|
# Host-dependant definitions
|
2009-09-23 20:11:34 -04:00
|
|
|
SIZECMD="stat -L -c %s"
|
2009-04-26 06:58:04 -04:00
|
|
|
SEDINPLACE="sed -i"
|
2009-12-21 14:26:28 -05:00
|
|
|
STRIP_BINARIES="--strip-all"
|
|
|
|
STRIP_SHARED="--strip-unneeded"
|
|
|
|
STRIP_STATIC="--strip-debug"
|
2008-04-15 16:57:36 -04:00
|
|
|
case "${host_os}" in
|
2008-08-20 00:29:56 -04:00
|
|
|
*bsd*)
|
2009-09-23 20:11:34 -04:00
|
|
|
SIZECMD="stat -L -f %z"
|
2009-04-26 06:58:04 -04:00
|
|
|
SEDINPLACE="sed -i ''"
|
2008-08-20 00:29:56 -04:00
|
|
|
;;
|
2008-04-15 16:57:36 -04:00
|
|
|
cygwin*)
|
|
|
|
host_os_cygwin=yes
|
2007-03-29 02:46:36 -04:00
|
|
|
CFLAGS="$CFLAGS -DCYGWIN"
|
2007-02-21 23:36:02 -05:00
|
|
|
;;
|
2008-04-15 16:57:36 -04:00
|
|
|
darwin*)
|
|
|
|
host_os_darwin=yes
|
2009-09-23 20:11:34 -04:00
|
|
|
SIZECMD="/usr/bin/stat -L -f %z"
|
2009-05-03 03:21:02 -04:00
|
|
|
SEDINPLACE="/usr/bin/sed -i ''"
|
2009-12-21 14:26:28 -05:00
|
|
|
STRIP_BINARIES=""
|
|
|
|
STRIP_SHARED="-S"
|
|
|
|
STRIP_STATIC="-S"
|
2008-04-15 16:57:36 -04:00
|
|
|
;;
|
2007-02-21 23:36:02 -05:00
|
|
|
esac
|
|
|
|
|
2008-04-15 16:57:36 -04:00
|
|
|
AM_CONDITIONAL([CYGWIN], test "x$host_os_cygwin" = "xyes")
|
|
|
|
AM_CONDITIONAL([DARWIN], test "x$host_os_darwin" = "xyes")
|
2010-06-29 23:29:26 -04:00
|
|
|
AC_PATH_PROGS([DUPATH], [du], [du], [/usr/bin$PATH_SEPARATOR/bin] )
|
2008-08-20 00:29:56 -04:00
|
|
|
AC_SUBST(SIZECMD)
|
2009-04-26 06:58:04 -04:00
|
|
|
AC_SUBST(SEDINPLACE)
|
2009-12-21 14:26:28 -05:00
|
|
|
AC_SUBST(STRIP_BINARIES)
|
|
|
|
AC_SUBST(STRIP_SHARED)
|
|
|
|
AC_SUBST(STRIP_STATIC)
|
2008-04-15 16:57:36 -04:00
|
|
|
|
2011-08-10 23:40:30 -04:00
|
|
|
# Variables plugged into makepkg.conf
|
|
|
|
CARCH="${host%%-*}"
|
2007-02-21 23:36:02 -05:00
|
|
|
CHOST="${host}"
|
2006-10-15 15:38:02 -04:00
|
|
|
AC_SUBST(CARCH)
|
|
|
|
AC_SUBST(CHOST)
|
2005-10-17 14:52:43 -04:00
|
|
|
|
2007-12-22 00:47:18 -05:00
|
|
|
# Check for documentation support and status
|
2010-03-15 18:46:44 -04:00
|
|
|
AC_CHECK_PROGS([ASCIIDOC], [asciidoc])
|
2007-12-22 00:47:18 -05:00
|
|
|
AC_MSG_CHECKING([for building documentation])
|
|
|
|
if test "x$wantdoc" = "xyes" ; then
|
2010-03-15 18:46:44 -04:00
|
|
|
if test $ASCIIDOC ; then
|
|
|
|
AC_MSG_RESULT([yes, enabled by configure])
|
|
|
|
else
|
|
|
|
asciidoc="(warning : asciidoc not installed)"
|
|
|
|
AC_MSG_RESULT([yes $asciidoc])
|
|
|
|
fi
|
2007-12-22 00:47:18 -05:00
|
|
|
wantdoc=yes
|
|
|
|
else
|
2010-06-17 01:01:23 -04:00
|
|
|
AC_MSG_RESULT([no, disabled by configure])
|
2007-12-22 00:47:18 -05:00
|
|
|
wantdoc=no
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WANT_DOC, test "x$wantdoc" = "xyes")
|
|
|
|
|
2007-07-09 14:38:02 -04:00
|
|
|
# Check for doxygen support and status
|
2008-05-31 12:53:51 -04:00
|
|
|
AC_CHECK_PROGS([DOXYGEN], [doxygen])
|
2007-05-30 09:04:36 -04:00
|
|
|
AC_MSG_CHECKING([for doxygen])
|
2007-02-21 23:36:02 -05:00
|
|
|
if test "x$wantdoxygen" = "xyes" ; then
|
2007-06-04 17:49:09 -04:00
|
|
|
if test $DOXYGEN ; then
|
2007-05-30 09:04:36 -04:00
|
|
|
AC_MSG_RESULT([yes])
|
2007-02-22 16:34:51 -05:00
|
|
|
usedoxygen=yes
|
2007-06-04 17:49:09 -04:00
|
|
|
else
|
2007-05-30 09:04:36 -04:00
|
|
|
AC_MSG_RESULT([no, doxygen missing])
|
2007-02-22 16:34:51 -05:00
|
|
|
usedoxygen=no
|
2007-06-04 17:49:09 -04:00
|
|
|
fi
|
2006-02-17 15:48:45 -05:00
|
|
|
else
|
2007-06-04 17:49:09 -04:00
|
|
|
AC_MSG_RESULT([no, disabled by configure])
|
2007-02-22 16:34:51 -05:00
|
|
|
usedoxygen=no
|
2005-10-17 14:52:43 -04:00
|
|
|
fi
|
2007-07-09 14:38:02 -04:00
|
|
|
AM_CONDITIONAL(USE_DOXYGEN, test "x$usedoxygen" = "xyes")
|
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Enable or disable debug code
|
2006-10-15 15:38:02 -04:00
|
|
|
AC_MSG_CHECKING(for debug mode request)
|
2007-02-22 16:34:51 -05:00
|
|
|
if test "x$debug" = "xyes" ; then
|
2007-10-26 21:31:25 -04:00
|
|
|
AC_MSG_RESULT(yes)
|
2007-02-22 16:34:51 -05:00
|
|
|
AC_DEFINE([PACMAN_DEBUG], , [Enable debug code])
|
2007-10-26 21:31:25 -04:00
|
|
|
# Check for mcheck
|
|
|
|
AC_CHECK_HEADERS([mcheck.h])
|
2007-10-31 22:30:09 -04:00
|
|
|
# Check for -fstack-protector availability
|
|
|
|
GCC_STACK_PROTECT_LIB
|
|
|
|
GCC_STACK_PROTECT_CC
|
2010-09-27 02:04:10 -04:00
|
|
|
GCC_FORTIFY_SOURCE_CC
|
2009-08-10 10:29:37 -04:00
|
|
|
CFLAGS="$CFLAGS -g -Wall -Werror"
|
2006-10-15 15:38:02 -04:00
|
|
|
else
|
2007-06-04 17:49:09 -04:00
|
|
|
AC_MSG_RESULT(no)
|
2007-10-30 14:13:28 -04:00
|
|
|
CFLAGS="$CFLAGS -Wall"
|
2006-10-15 15:38:02 -04:00
|
|
|
fi
|
|
|
|
|
2008-05-31 12:53:51 -04:00
|
|
|
# Enable or disable use of git version in pacman version string
|
|
|
|
AC_MSG_CHECKING(whether to use git version if available)
|
|
|
|
if test "x$wantgitver" = "xyes" ; then
|
2010-03-25 06:03:00 -04:00
|
|
|
AC_CHECK_PROGS([GIT], [git])
|
|
|
|
AC_CHECK_FILE([.git/], hasgitdir=yes)
|
2008-05-31 12:53:51 -04:00
|
|
|
if test $GIT -a "x$hasgitdir" = "xyes"; then
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
usegitver=yes
|
|
|
|
AC_DEFINE([USE_GIT_VERSION], , [Use GIT version in version string])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no, git or .git dir missing])
|
|
|
|
usegitver=no
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no, disabled by configure])
|
|
|
|
usegitver=no
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(USE_GIT_VERSION, test "x$usegitver" = "xyes")
|
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Set root directory
|
2007-05-31 12:13:25 -04:00
|
|
|
AC_SUBST(ROOTDIR)
|
2007-05-30 09:04:36 -04:00
|
|
|
# Set package file extension
|
2007-05-31 12:13:25 -04:00
|
|
|
AC_SUBST(PKGEXT)
|
2007-05-31 02:51:28 -04:00
|
|
|
AC_DEFINE_UNQUOTED([PKGEXT], "$PKGEXT", [The file extension used by pacman packages])
|
2007-05-31 12:21:37 -04:00
|
|
|
# Set source package file extension
|
|
|
|
AC_SUBST(SRCEXT)
|
|
|
|
AC_DEFINE_UNQUOTED([SRCEXT], "$SRCEXT", [The file extension used by pacman source packages])
|
2008-12-27 01:35:06 -05:00
|
|
|
# Set makepkg build script name
|
|
|
|
AC_SUBST(BUILDSCRIPT)
|
|
|
|
AC_DEFINE_UNQUOTED([BUILDSCRIPT], "$BUILDSCRIPT", [The build script name used by makepkg])
|
2007-03-29 03:47:34 -04:00
|
|
|
|
2007-05-30 09:04:36 -04:00
|
|
|
# Configuration files
|
|
|
|
AC_CONFIG_FILES([
|
2005-10-17 14:52:43 -04:00
|
|
|
lib/libalpm/Makefile
|
2006-06-28 01:37:15 -04:00
|
|
|
lib/libalpm/po/Makefile.in
|
2005-10-17 14:52:43 -04:00
|
|
|
src/pacman/Makefile
|
2011-06-23 22:21:51 -04:00
|
|
|
src/pacman/po/Makefile.in
|
2005-10-17 14:52:43 -04:00
|
|
|
src/util/Makefile
|
|
|
|
scripts/Makefile
|
2011-06-23 22:21:51 -04:00
|
|
|
scripts/po/Makefile.in
|
2005-10-17 14:52:43 -04:00
|
|
|
doc/Makefile
|
2006-10-15 15:38:02 -04:00
|
|
|
etc/Makefile
|
2010-05-30 00:41:59 -04:00
|
|
|
test/pacman/Makefile
|
|
|
|
test/pacman/tests/Makefile
|
2010-06-16 22:00:39 -04:00
|
|
|
test/util/Makefile
|
2007-02-22 21:00:30 -05:00
|
|
|
contrib/Makefile
|
2005-10-17 14:52:43 -04:00
|
|
|
Makefile
|
|
|
|
])
|
2007-05-30 09:04:36 -04:00
|
|
|
AC_OUTPUT
|
2005-10-17 14:52:43 -04:00
|
|
|
|
|
|
|
echo "
|
2008-05-31 12:53:51 -04:00
|
|
|
${PACKAGE_NAME}:
|
2006-10-15 15:38:02 -04:00
|
|
|
|
2007-05-31 02:51:28 -04:00
|
|
|
Build information:
|
|
|
|
source code location : ${srcdir}
|
2007-02-22 16:34:51 -05:00
|
|
|
prefix : ${prefix}
|
2007-05-30 11:04:49 -04:00
|
|
|
sysconfdir : $(eval echo ${sysconfdir})
|
2007-05-31 02:51:28 -04:00
|
|
|
conf file : $(eval echo ${sysconfdir})/pacman.conf
|
|
|
|
localstatedir : $(eval echo ${localstatedir})
|
|
|
|
database dir : $(eval echo ${localstatedir})/lib/pacman/
|
|
|
|
cache dir : $(eval echo ${localstatedir})/cache/pacman/pkg/
|
2011-07-16 19:12:18 -04:00
|
|
|
|
2007-02-22 16:34:51 -05:00
|
|
|
compiler : ${CC}
|
2011-07-16 19:12:18 -04:00
|
|
|
preprocessor flags : ${CPPFLAGS}
|
2007-02-22 16:34:51 -05:00
|
|
|
compiler flags : ${CFLAGS}
|
|
|
|
defines : ${DEFS}
|
2011-07-16 19:12:18 -04:00
|
|
|
library flags : ${LIBS}
|
|
|
|
linker flags : ${LDFLAGS}
|
2006-10-15 15:38:02 -04:00
|
|
|
|
2007-02-22 16:34:51 -05:00
|
|
|
Architecture : ${CARCH}
|
|
|
|
Host Type : ${CHOST}
|
2008-08-20 00:29:56 -04:00
|
|
|
Filesize command : ${SIZECMD}
|
2009-04-26 06:58:04 -04:00
|
|
|
In-place sed command : ${SEDINPLACE}
|
2006-02-17 15:48:45 -05:00
|
|
|
|
2007-02-22 16:34:51 -05:00
|
|
|
libalpm version : ${LIB_VERSION}
|
2008-01-19 15:50:15 -05:00
|
|
|
libalpm version info : ${LIB_VERSION_INFO}
|
2007-02-22 16:34:51 -05:00
|
|
|
pacman version : ${PACKAGE_VERSION}
|
2008-05-31 12:53:51 -04:00
|
|
|
using git version : ${usegitver}
|
2006-10-15 15:38:02 -04:00
|
|
|
|
2007-03-29 03:47:34 -04:00
|
|
|
Directory and file information:
|
2007-05-31 02:51:28 -04:00
|
|
|
root working directory : ${ROOTDIR}
|
2007-05-29 17:46:20 -04:00
|
|
|
package extension : ${PKGEXT}
|
2007-05-31 12:21:37 -04:00
|
|
|
source pkg extension : ${SRCEXT}
|
2008-12-27 01:35:06 -05:00
|
|
|
build script name : ${BUILDSCRIPT}
|
2007-03-29 03:47:34 -04:00
|
|
|
|
|
|
|
Compilation options:
|
2011-04-24 12:42:51 -04:00
|
|
|
Use libcurl : ${with_libcurl}
|
|
|
|
Use GPGME : ${with_gpgme}
|
|
|
|
Use OpenSSL : ${with_openssl}
|
2010-03-15 18:46:44 -04:00
|
|
|
Run make in doc/ dir : ${wantdoc} ${asciidoc}
|
2007-02-22 16:34:51 -05:00
|
|
|
Doxygen support : ${usedoxygen}
|
|
|
|
debug support : ${debug}
|
2005-10-17 14:52:43 -04:00
|
|
|
"
|
2007-06-04 17:49:09 -04:00
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 noet:
|