summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.sh.in2
-rw-r--r--configure.ac40
2 files changed, 42 insertions, 0 deletions
diff --git a/config.sh.in b/config.sh.in
index 775f002..2f7f025 100644
--- a/config.sh.in
+++ b/config.sh.in
@@ -1,3 +1,5 @@
PACKAGE='@PACKAGE@'
PACKAGE_NAME='@PACKAGE_NAME@'
OPKG='@OPKG@'
+TOUCH='@TOUCH@'
+HAVE_TOUCH_NODEREF='@HAVE_TOUCH_NODEREF@'
diff --git a/configure.ac b/configure.ac
index f733cae..1aed897 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,6 +84,46 @@ AC_ARG_WITH(
)
AC_ARG_WITH(
+ [touch],
+ [AS_HELP_STRING([--with-touch=PATH], [path to touch utility])],
+ [
+ case "${withval}" in
+ 'yes'|'')
+ AC_MSG_ERROR(
+ [--with-touch requires an argument])
+ ;;
+ 'no')
+ AC_MSG_ERROR([touch is required])
+ ;;
+ *)
+ OPKG="${withval}"
+ AC_SUBST([OPKG])
+ ;;
+ esac
+ ],
+ [
+ AC_PATH_PROG([TOUCH], [touch])
+ if test -z "${TOUCH}"; then
+ AC_MSG_ERROR([touch not found])
+ fi
+ ]
+)
+AC_MSG_CHECKING([whether touch accepts -h])
+ln -s conftest.none conftest.link
+if "${TOUCH}" -h conftest.link 1>/dev/null 2>&1; then
+ if test -f conftest.none; then
+ AC_MSG_RESULT([no])
+ AC_SUBST([HAVE_TOUCH_NODEREF], [false])
+ else
+ AC_MSG_RESULT([yes])
+ AC_SUBST([HAVE_TOUCH_NODEREF], [true])
+ fi
+else
+ AC_MSG_RESULT([no])
+ AC_SUBST([HAVE_TOUCH_NODEREF], [false])
+fi
+
+AC_ARG_WITH(
[metadata],
[AS_HELP_STRING([--with-metadata=SYSTEM],
[use SYSTEM metadata plugin @<:@default: proteanos@:>@])],