File: configure.ac

package info (click to toggle)
pullseq 1.0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,460 kB
  • sloc: ansic: 2,581; sh: 148; ruby: 21; makefile: 17
file content (55 lines) | stat: -rw-r--r-- 1,803 bytes parent folder | download | duplicates (2)
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
53
54
55
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([pullseq], [1.1.0], [bct.x42@gmail.com])
#AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/pullseq.c])
AC_CONFIG_HEADERS([src/config.h])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB([z],[gzopen])
AC_CHECK_LIB([pcre2-8],[pcre2_config_8], [], [
              echo "  Error! You need to have libpcre2 installed."
              echo "  If you have PCRE2 installed in a non-standard"
              echo "  location (e.g. as with brew on a mac), you'll"
              echo "  need to update the CFLAGS/LDFLAGS env"
              echo "  variables. See the README for more details."
              exit -1
              ])

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

# this no longer works, but the above does... will debug later
#AC_CHECK_HEADERS([pcre2.h], [], [
#                  echo "  Error! You need to have libpcre2 headers installed."
#                  echo "  If you have PCRE2 installed in a non-standard"
#                  echo "  location (e.g. as with brew on a mac), you'll"
#                  echo "  need to update the CFLAGS/LDFLAGS env"
#                  echo "  variables. See the README for more details."
#                  exit -1
#                 ])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([strlen memset strchr strerror strtol])


AC_CONFIG_FILES([Makefile src/Makefile])

AC_OUTPUT