[go: up one dir, main page]

File: configure.ac

package info (click to toggle)
diskscan 0.14.1-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 800 kB
  • ctags: 465
  • sloc: ansic: 3,696; sh: 3,565; python: 155; makefile: 41
file content (48 lines) | stat: -rw-r--r-- 1,342 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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([diskscan], [0.14-dev], [https://github.com/baruch/diskscan/issues])
AC_CONFIG_SRCDIR([diskscan.c])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC
#AC_PROG_INSTALL

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h inttypes.h memory.h stdint.h stdlib.h string.h sys/ioctl.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([clock_gettime memset munmap strcasecmp strstr strtol])

# Check the host arch
AC_CANONICAL_HOST

AX_PYTHON_MODULE(yaml, fatal)

arch_internal="arch-posix.h"
case $host_os in
        linux*) machine=linux; libscsicmd="libscsicmd/libscsicmd.a"; arch_internal="arch-linux.h" ;;
        freebsd*) machine=freebsd; libscsicmd="" ;;
        *) machine=generic; libscsicmd="";;
esac
AC_SUBST(LIBSCSICMD, [$libscsicmd])

AC_CONFIG_LINKS([arch/arch.c:arch/arch-$machine.c
                 include/arch-internal.h:arch/$arch_internal])
AC_CONFIG_FILES([diskscan.do Documentation/diskscan.1])
AC_OUTPUT