-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
67 lines (57 loc) · 1.73 KB
/
configure.ac
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
56
57
58
59
60
61
62
63
64
65
66
67
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([libved], [3.4.1], [[email protected]])
AC_CONFIG_SRCDIR([src/libved.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([./build-aux])
AC_SUBST(RELEASE)
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AM_PROG_AR
LT_INIT
AC_CONFIG_MACRO_DIR([m4])
AC_ARG_WITH(veos, [AS_HELP_STRING([--with-veos],
[VEOS installed prefix])],
[with_veos=$withval], [with_veos=/opt/nec/ve/veos])
AC_ARG_WITH([release-id], [AS_HELP_STRING([--with-release-id],
[Specify release id])],
[RELEASE=${with_release_id}],
[RELEASE="1"])
AC_ARG_WITH([no-memcpy], [AS_HELP_STRING([--with-no-memcpy],
[Without memcpy option])],
[NO_MEMCPY=${with_no_memcpy}],
[NO_MEMCPY="0"])
AS_IF([test "$NO_MEMCPY" != 0],
[CFLAGS=$CFLAGS" -DNO_MEMCPY"])
AC_SUBST(NO_MEMCPY)
CPPFLAGS=$CPPFLAGS" -I${with_veos}/include"
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_CHECK_LIB([udev], [udev_device_new_from_devnum])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h limits.h stddef.h stdlib.h string.h sys/ioctl.h unistd.h])
AC_CHECK_HEADERS([ve_drv.h vp.h])
AC_CHECK_HEADERS([ve_drv_ve1.h ve_drv_ve3_h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_TYPE_UID_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_ENABLE_SHARED
AC_DISABLE_STATIC
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([strerror strtol strtoul strtoull])
AC_CONFIG_FILES([Makefile
libved.spec
src/Makefile
debian/rules
debian/control
debian/libved.install
debian/libved-dev.install])
AC_OUTPUT