- dnl Look for erl_interface directory in various places.
- AC_MSG_CHECKING([for erl_interface])
-
- for d in \
- $libdir /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
- do
- dir=`ls -1d $d/erlang/lib/erl_interface-* 2>/dev/null`
- if test "x$dir" != "x" && test -d "$dir"; then
- AC_MSG_RESULT([$dir])
- ERL_INTERFACEDIR=$dir
- break
- fi
- done
-
- if test "x$ERL_INTERFACEDIR" = "xno"; then
- AC_MSG_RESULT([not found])
- fi
+ AC_ERLANG_CHECK_LIB([erl_interface], [],
+ [AC_MSG_FAILURE([Erlang erl_interface library not installed. Use --disable-erlang to disable.])])
+ AC_ERLANG_SUBST_LIB_DIR