68 lines
2.2 KiB
Plaintext
68 lines
2.2 KiB
Plaintext
#
|
|
# configure.in
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation version 2.1
|
|
# of the License.
|
|
#
|
|
# Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
|
|
#
|
|
|
|
AC_INIT(libnl, 3.2, tgraf@suug.ch)
|
|
AC_CONFIG_HEADERS([lib/defs.h])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)], [])
|
|
|
|
MAJ_VERSION=3
|
|
AC_SUBST([MAJ_VERSION])
|
|
MIN_VERSION=2
|
|
AC_SUBST([MIN_VERSION])
|
|
|
|
AC_PROG_CC
|
|
AM_PROG_CC_C_O
|
|
AC_PROG_INSTALL
|
|
AM_PROG_LIBTOOL
|
|
AM_PROG_LEX
|
|
AC_PROG_YACC
|
|
|
|
AC_C_CONST
|
|
AC_C_INLINE
|
|
|
|
AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
|
|
[Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]),
|
|
[pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])
|
|
AC_SUBST([pkgconfigdir])
|
|
|
|
AC_ARG_ENABLE([cli],
|
|
AS_HELP_STRING([--disable-cli], [Do not build command line interface utils]),
|
|
[enable_cli="$enableval"], [enable_cli="yes"])
|
|
AM_CONDITIONAL([ENABLE_CLI], [test "$enable_cli" = "yes"])
|
|
|
|
AC_CHECK_LIB([m], [pow], [], AC_MSG_ERROR([libm is required]))
|
|
AC_CHECK_LIB([pthread], [pthread_mutex_lock], [], AC_MSG_ERROR([libpthread is required]))
|
|
|
|
AC_CONFIG_FILES([Makefile doc/Doxyfile doc/Makefile lib/Makefile
|
|
include/Makefile src/Makefile src/lib/Makefile man/Makefile
|
|
libnl-3.pc libnl-route-3.pc libnl-genl-3.pc libnl-nf-3.pc
|
|
python/Makefile python/setup.py python/netlink/Makefile
|
|
python/netlink/route/Makefile
|
|
include/netlink/version.h])
|
|
AC_OUTPUT
|
|
|
|
echo -------------------------------------------------------------------------------
|
|
echo NOTE
|
|
echo
|
|
echo Headers will be installed in ${includedir}/libnl${MAJ_VERSION} starting with
|
|
echo version 3.2. If you are using pkg-config things should continue to work as
|
|
echo expected, otherwise you will have to extend the CLFAGS of your project with
|
|
echo
|
|
echo -I${includedir}/libnl${MAJ_VERSION}
|
|
echo
|
|
echo Also, pkg-config files for sub libraries have been added, so you can
|
|
echo verify their presence
|
|
echo
|
|
echo -------------------------------------------------------------------------------
|
|
|