Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/redis/files: configure.ac-2.2
Date: Wed, 26 Jan 2011 02:25:47
Message-Id: 20110126022538.27DB42005C@flycatcher.gentoo.org
1 robbat2 11/01/26 02:25:38
2
3 Added: configure.ac-2.2
4 Log:
5 Bug #321487: Version bump. Bug #352266: Prefix support. Bug #335366: Respect LDFLAGS.
6
7 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-db/redis/files/configure.ac-2.2
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/files/configure.ac-2.2?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/files/configure.ac-2.2?rev=1.1&content-type=text/plain
14
15 Index: configure.ac-2.2
16 ===================================================================
17 # -*- Autoconf -*-
18 # Process this file with autoconf to produce a configure script.
19
20 AC_PREREQ(2.63)
21 AC_INIT(redis, 2.0.0, antirez@×××××.com)
22 AM_CFLAGS="-std=c99 -pedantic -Wall -W -D__EXTENSIONS__ -D_XPG6"
23 if test x"$CFLAGS" = x""; then
24 AM_CFLAGS="$AM_CFLAGS -O2"
25 else
26 AM_CFLAGS="$AM_CFLAGS $CFLAGS"
27 fi
28
29 # options
30 AC_MSG_CHECKING([whether to build with debug information])
31 AC_ARG_ENABLE([debug],
32 [AS_HELP_STRING([--enable-debug],
33 [enable debug data generation (def=no)])],
34 [debugit="$enableval"],
35 [debugit=no])
36 AC_MSG_RESULT([$debugit])
37
38 if test x"$debugit" = x"yes"; then
39 AC_DEFINE([DEBUG],[],[Debug Mode])
40 AM_CFLAGS="$AM_CFLAGS -g -rdynamic -ggdb"
41 else
42 AC_DEFINE([NDEBUG],[],[No-debug Mode])
43 fi
44 AC_SUBST([AM_CFLAGS])
45
46 # Checks for programs.
47 AC_PROG_CC
48
49 # Checks for libraries.
50
51 # Checks for header files.
52 AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
53
54 # Checks for typedefs, structures, and compiler characteristics.
55 AC_HEADER_STDBOOL
56 AC_C_INLINE
57 AC_TYPE_INT16_T
58 AC_TYPE_INT32_T
59 AC_TYPE_OFF_T
60 AC_TYPE_PID_T
61 AC_TYPE_SIZE_T
62 AC_TYPE_SSIZE_T
63 AC_TYPE_UINT16_T
64 AC_TYPE_UINT32_T
65
66 # Checks for library functions.
67 AC_FUNC_ERROR_AT_LINE
68 AC_FUNC_FORK
69 AC_FUNC_STRCOLL
70 AC_FUNC_STRTOD
71 AC_CHECK_FUNCS([dup2 gethostbyname gettimeofday inet_ntoa memchr memmove memset select socket strcasecmp strchr strerror strstr strtol])
72
73 AC_CONFIG_FILES([Makefile])
74 AC_OUTPUT