File: configure.ac

package info (click to toggle)
libcrcutil 1.0-5.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,212 kB
  • sloc: cpp: 4,237; sh: 1,112; ansic: 191; makefile: 54; awk: 17
file content (52 lines) | stat: -rw-r--r-- 1,295 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.65])
AC_INIT([crcutil], [1.0], [crcutil@googlegroups.com], [crcutil])
AM_INIT_AUTOMAKE([subdir-objects serial-tests])
AC_CONFIG_FILES([Makefile
    libcrcutil.pc:libcrcutil.pc.in
])
AC_OUTPUT()
AC_CONFIG_SRCDIR([tests/aligned_alloc.h])
AC_CONFIG_HEADERS([config.h])

# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
AC_SUBST([LIBCRCUTIL_SO_VERSION], [0:1:0])
LT_INIT([])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET

AC_C_BIGENDIAN([AC_MSG_ERROR([Big endian architectures are not supported.])])

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([stddef.h stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_CHECK_TYPES([ptrdiff_t])

my_save_cflags="$CFLAGS"
CFLAGS=-mcrc32
AC_MSG_CHECKING([whether CC supports -mcrc32])
AC_COMPILE_IFELSE(
    [AC_LANG_PROGRAM([])],
    [AC_MSG_RESULT([yes])]
    [FLAG_MCRC32=-mcrc32],
    [AC_MSG_RESULT([no])]
)
CFLAGS="$my_save_cflags"
AC_SUBST([FLAG_MCRC32])

# Checks for library functions.
AC_CHECK_FUNCS([memset strchr strrchr])

AC_OUTPUT