Home | History | Annotate | Download | only in libnl
      1 #
      2 # configure.in
      3 #
      4 # 	This library is free software; you can redistribute it and/or
      5 #	modify it under the terms of the GNU Lesser General Public
      6 #	License as published by the Free Software Foundation version 2.1
      7 #	of the License.
      8 #
      9 # Copyright (c) 2003-2010 Thomas Graf <tgraf (at] suug.ch>
     10 #
     11 
     12 AC_INIT(libnl, 2.0, tgraf@suug.ch)
     13 AC_CONFIG_HEADERS([lib/defs.h])
     14 AC_CONFIG_MACRO_DIR([m4])
     15 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
     16 
     17 AC_PROG_CC
     18 AM_PROG_CC_C_O
     19 AC_PROG_INSTALL
     20 AM_PROG_LIBTOOL
     21 AM_PROG_LEX
     22 AC_PROG_YACC
     23 
     24 AC_C_CONST
     25 AC_C_INLINE
     26 
     27 AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
     28 	[Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]),
     29 	[pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])
     30 AC_SUBST([pkgconfigdir])
     31 
     32 AC_ARG_ENABLE([cli],
     33 	AS_HELP_STRING([--disable-cli], [Do not build command line interface utils]),
     34 	[enable_cli="$enableval"], [enable_cli="yes"])
     35 AM_CONDITIONAL([ENABLE_CLI], [test "$enable_cli" = "yes"])
     36 
     37 AC_CHECK_LIB([m], [pow], [], AC_MSG_ERROR([libm is required]))
     38 
     39 AC_CONFIG_FILES([Makefile doc/Doxyfile doc/Makefile lib/Makefile
     40 	include/Makefile src/Makefile src/lib/Makefile \
     41 	libnl-2.0.pc include/netlink/version.h])
     42 AC_OUTPUT
     43