diff options
author | David Young <dyoung@hdfgroup.org> | 2019-10-03 22:30:46 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-10-03 22:30:46 (GMT) |
commit | 82f647534c309ff97e4827fb95949954aeed4a26 (patch) | |
tree | 6258917ded5ace02e773ca318e6255a509cb7d24 /configure.ac | |
parent | 09bb031cf19e656ef8646a1448af5206b1b1cc29 (diff) | |
download | hdf5-82f647534c309ff97e4827fb95949954aeed4a26.zip hdf5-82f647534c309ff97e4827fb95949954aeed4a26.tar.gz hdf5-82f647534c309ff97e4827fb95949954aeed4a26.tar.bz2 |
Make some NetBSD compatibility patches.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 279c443..cb17e53 100644 --- a/configure.ac +++ b/configure.ac @@ -232,6 +232,9 @@ case $host_os in freebsd*) host_os_novers=freebsd ;; + netbsd*) + host_os_novers=netbsd + ;; solaris*) host_os_novers=solaris ;; @@ -2788,7 +2791,33 @@ fi ## Direct VFD files are not built if not required. AM_CONDITIONAL([DIRECT_VFD_CONDITIONAL], [test "X$DIRECT_VFD" = "Xyes"]) +## Checkpoint the cache +AC_CACHE_SAVE + ## ---------------------------------------------------------------------- +## Use custom examples path. +## +AC_MSG_CHECKING([for custom examples path definition]) +AC_ARG_WITH([examplesdir], + [AS_HELP_STRING([--with-examplesdir=location], + [Specify path for examples + [default="DATAROOTDIR/hdf5_examples"]])],, + withval="${datarootdir}/hdf5_examples") + +if test "X$withval" = "X"; then + AC_MSG_RESULT([default]) + examplesdir="${datarootdir}/hdf5_examples" +else + AC_MSG_RESULT([$withval]) + examplesdir=$withval +fi + +AC_SUBST([examplesdir]) +AC_DEFINE_UNQUOTED([EXAMPLESDIR], ["$examplesdir"], + [Define the examples directory]) + +## ---------------------------------------------------------------------- + ## Enable custom plugin default path for library. It requires SHARED support. ## AC_MSG_CHECKING([for custom plugin default path definition]) |