summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-11-07 20:51:40 (GMT)
committerkmu <kmu@hdfgroup.org>2019-11-07 20:51:40 (GMT)
commit815611a318b64010e1dc70691a132ee18e0385f5 (patch)
treec66cdb2df58374d936d417d888f25495842c1263 /configure.ac
parent8b9338ab57eec0cc8fa5a36c44d7b28e52e9a466 (diff)
parent2dd5bbfe167e3e9b6b6ee657a882e24072de4aeb (diff)
downloadhdf5-815611a318b64010e1dc70691a132ee18e0385f5.zip
hdf5-815611a318b64010e1dc70691a132ee18e0385f5.tar.gz
hdf5-815611a318b64010e1dc70691a132ee18e0385f5.tar.bz2
Merge branch 'develop' of https://git.hdfgroup.org/scm/~kmu/hdf5 into develop
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac25
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2ffbf0f..0eada60 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
;;
@@ -2964,6 +2967,28 @@ fi
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])