From: Joe Konno <joe.konno at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH v3 01/15] configure: use vertical lists
Date: Tue, 14 Oct 2014 16:20:32 -0700 [thread overview]
Message-ID: <543DAFC0.6070406@linux.intel.com> (raw)
In-Reply-To: 1410125238-29600-2-git-send-email-kerolasa@iki.fi
[-- Attachment #1: Type: text/plain, Size: 4994 bytes --]
This series was merged 29 Sept, I know, but I had skin in this series,
so here's the (belated) review...
LGTM.
Reviewed-By: Joe Konno <joe.konno(a)intel.com>
On 09/07/2014 02:27 PM, Sami Kerola wrote:
> Horizontal lists has downside of being managed as a single entry in
> version control, which makes commits that add and remove items difficult
> to follow. With vertical lists each entry is managed separately, which
> is much nicer.
>
> Additionally add project URL to autoconfig init, and pretty print macro
> expressions to have indentation, and bracing that follows more or less in
> K&R style.
>
> Signed-off-by: Sami Kerola <kerolasa(a)iki.fi>
> ---
> configure.ac | 82 +++++++++++++++++++++++++++++++++++++++++++++++++-----------
> 1 file changed, 67 insertions(+), 15 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 0b02ad2..b41cfb3 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2,15 +2,21 @@
> # Process this file with autoconf to produce a configure script.
>
> AC_PREREQ([2.68])
> -AC_INIT([powertop], [2.6.1], [powertop(a)lists.01.org])
> -AM_INIT_AUTOMAKE([-Wall foreign ])
> +AC_INIT([powertop], [2.6.1], [powertop(a)lists.01.org], [], [https://01.org/powertop])
> +AM_INIT_AUTOMAKE([-Wall foreign])
> AC_LANG([C++])
> -AC_CONFIG_FILES([Makefile src/Makefile traceevent/Makefile po/Makefile.in doc/Makefile])
> +AC_CONFIG_FILES([
> + Makefile
> + src/Makefile
> + traceevent/Makefile
> + po/Makefile.in
> + doc/Makefile
> +])
> AC_CONFIG_SRCDIR([src/main.cpp])
> AC_CONFIG_MACRO_DIR([m4])
> AC_CONFIG_HEADERS([config.h])
> GETTEXT_PACKAGE=powertop
> -AC_SUBST(GETTEXT_PACKAGE)
> +AC_SUBST([GETTEXT_PACKAGE])
> AM_SILENT_RULES([yes])
> AM_GNU_GETTEXT([external])
> AM_GNU_GETTEXT_VERSION([0.18])
> @@ -26,7 +32,23 @@ AM_PROG_CC_C_O
>
> # Checks for libraries.
> # Checks for header files.
> -AC_CHECK_HEADERS([fcntl.h libintl.h limits.h locale.h malloc.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/statfs.h sys/time.h termios.h unistd.h ncurses.h])
> +AC_CHECK_HEADERS([ \
> + fcntl.h \
> + libintl.h \
> + limits.h \
> + locale.h \
> + malloc.h \
> + ncurses.h \
> + stdint.h \
> + stdlib.h \
> + string.h \
> + sys/ioctl.h \
> + sys/socket.h \
> + sys/statfs.h \
> + sys/time.h \
> + termios.h \
> + unistd.h \
> +])
>
> # Checks for typedefs, structures, and compiler characteristics.
> AC_HEADER_STDBOOL
> @@ -44,20 +66,46 @@ AC_FUNC_MALLOC
> AC_FUNC_MMAP
> AC_FUNC_REALLOC
> AC_FUNC_STRTOD
> -AC_CHECK_FUNCS([fdatasync getpagesize gettimeofday memmove memset mkdir munmap pow realpath regcomp select setlocale socket sqrt strcasecmp strchr strdup strerror strncasecmp strstr strtoul strtoull])
> +AC_CHECK_FUNCS([ \
> + fdatasync \
> + getpagesize \
> + gettimeofday \
> + memmove \
> + memset \
> + mkdir \
> + munmap \
> + pow \
> + realpath \
> + regcomp \
> + select \
> + setlocale \
> + socket \
> + sqrt \
> + strcasecmp \
> + strchr \
> + strdup \
> + strerror \
> + strncasecmp \
> + strstr \
> + strtoul \
> + strtoull \
> +])
>
> -PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS $ncurses_LIBS"],
> - AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], AC_MSG_ERROR([ncurses is required but was not found]), []))
> +PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS $ncurses_LIBS"], [
> + AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [
> + AC_MSG_ERROR([ncurses is required but was not found])
> + ], [])
> +])
>
> has_libpci=0
> -PKG_CHECK_MODULES([PCIUTILS], [libpci],[has_libpci=1],[
> - AC_SEARCH_LIBS([pci_get_dev], [pci],[has_libpci=1], [has_libpci=0] )])
> +PKG_CHECK_MODULES([PCIUTILS], [libpci],[has_libpci=1], [
> + AC_SEARCH_LIBS([pci_get_dev], [pci],[has_libpci=1], [has_libpci=0])
> +])
>
>
> has_libnl_ver=0
> -# libnl-2 provides only libnl-2.0.pc file, so we check for separate libnl-genl-3.0.pc
> -# pkg-config file just for libnl-3.0 case.
> -#
> +dnl libnl-2 provides only libnl-2.0.pc file, so we check for separate
> +dnl libnl-genl-3.0.pc pkg-config file just for libnl-3.0 case.
> PKG_CHECK_MODULES([LIBNL], [libnl-3.0 >= 3.0 libnl-genl-3.0 >= 3.0], [has_libnl_ver=3], [
> PKG_CHECK_MODULES([LIBNL], [libnl-2.0 >= 2.0], [has_libnl_ver=2], [
> PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=1], [has_libnl_ver=0])])])
> @@ -78,7 +126,11 @@ if (test "$has_libpci" -eq 0); then
> ])
> fi
>
> -AC_SEARCH_LIBS([pthread_create], [pthread], [], AC_MSG_ERROR([libpthread is required but was not found]), [])
> -AC_SEARCH_LIBS([inet_aton], [resolv], [], AC_MSG_ERROR([libresolv is required but was not found]), [])
> +AC_SEARCH_LIBS([pthread_create], [pthread], [], [
> + AC_MSG_ERROR([libpthread is required but was not found])
> +], [])
> +AC_SEARCH_LIBS([inet_aton], [resolv], [], [
> + AC_MSG_ERROR([libresolv is required but was not found])
> +], [])
>
> AC_OUTPUT
>
next reply other threads:[~2014-10-14 23:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-14 23:20 Joe Konno [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-09-07 21:27 [Powertop] [PATCH v3 01/15] configure: use vertical lists Sami Kerola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=543DAFC0.6070406@linux.intel.com \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.