-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathconfigure.ac
More file actions
85 lines (72 loc) · 2.92 KB
/
configure.ac
File metadata and controls
85 lines (72 loc) · 2.92 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# This is the main configure file for the hdf5_plugins project.
# Edward Hartnett, Intelligent Data Design, Inc. 9/13/25
AC_PREREQ([2.59])
# Initialize with name, version, and support email address.
AC_INIT([hdf5_plugins], [1.0], [])
AM_INIT_AUTOMAKE([foreign dist-zip])
# Keep libtool macros in an m4 directory.
AC_CONFIG_MACRO_DIR([m4])
# Set up libtool.
LT_PREREQ([2.4])
LT_INIT()
# If the env. variable HDF5_PLUGIN_PATH is set, or if
# --with-hdf5-plugin-path=<directory>, use it.
AC_MSG_CHECKING([where to put HDF5 plugins])
AC_ARG_WITH([hdf5-plugin-path],
[AS_HELP_STRING([--with-hdf5-plugin-path=<directory>],
[specify HDF5 plugin directory (defaults to /usr/local/hdf5/lib/plugin, or value of HDF5_PLUGIN_PATH, if set)])],
[HDF5_PLUGIN_PATH=$with_hdf5_plugin_path])
HDF5_PLUGIN_PATH=${HDF5_PLUGIN_PATH:-.}
AC_MSG_RESULT($HDF5_PLUGIN_PATH)
# Does the user want BZIP2?
AC_MSG_CHECKING([whether BZIP2 filter library should be built and installed])
AC_ARG_ENABLE([bzip2],
[AS_HELP_STRING([--disable-bzip2],
[Disable the build and install of bzip2 filter library.])])
test "x$enable_bzip2" = xno || enable_bzip2=yes
AC_MSG_RESULT($enable_bzip2)
AM_CONDITIONAL(BUILD_BZIP2, [test "x$enable_bzip2" = xyes])
# Does the user want LZ4?
AC_MSG_CHECKING([whether LZ4 filter library should be built and installed])
AC_ARG_ENABLE([lz4],
[AS_HELP_STRING([--disable-lz4],
[Disable the build and install of lz4 filter library.])])
test "x$enable_lz4" = xno || enable_lz4=yes
AC_MSG_RESULT($enable_lz4)
AM_CONDITIONAL(BUILD_LZ4, [test "x$enable_lz4" = xyes])
# Does the user want JPEG?
AC_MSG_CHECKING([whether JPEG filter library should be built and installed])
AC_ARG_ENABLE([jpeg],
[AS_HELP_STRING([--disable-jpeg],
[Disable the build and install of jpeg filter library.])])
test "x$enable_jpeg" = xno || enable_jpeg=yes
AC_MSG_RESULT($enable_jpeg)
AM_CONDITIONAL(BUILD_JPEG, [test "x$enable_jpeg" = xyes])
# Does the user want LZF?
AC_MSG_CHECKING([whether LZF filter library should be built and installed])
AC_ARG_ENABLE([lzf],
[AS_HELP_STRING([--disable-lzf],
[Disable the build and install of lzf filter library.])])
test "x$enable_lzf" = xno || enable_lzf=yes
AC_MSG_RESULT($enable_lzf)
AM_CONDITIONAL(BUILD_LZF, [test "x$enable_lzf" = xyes])
# Build the filter libraries as desired.
if test "x$enable_bzip2" = xyes; then
AC_CONFIG_SUBDIRS([BZIP2])
fi
if test "x$enable_lz4" = xyes; then
AC_CONFIG_SUBDIRS([LZ4])
fi
if test "x$enable_jpeg" = xyes; then
AC_CONFIG_SUBDIRS([JPEG])
fi
if test "x$enable_lzf" = xyes; then
AC_CONFIG_SUBDIRS([LZF])
fi
#AC_CONFIG_SUBDIRS([BLOSC])
#AC_CONFIG_SUBDIRS([BLOSC2])
# These files will be created when the configure script is run.
AC_CONFIG_FILES([Makefile
libs/Makefile
])
AC_OUTPUT()