My configure.ac looks like

```
AC_PREREQ(2.61)
AC_INIT(MyProject, 1.0.0, BUG-REPORT-ADDRESS)
AM_INIT_AUTOMAKE([1.10 no-define foreign])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(configure.ac)
AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([obj/threading/Makefile])
#AC_OUTPUT([Makefile obj/Makefile obj/threading/Makefile])

AC_USE_SYSTEM_EXTENSIONS
AC_LANG([C++])
AC_PROG_CXX([clang++ g++])

AX_CXX_COMPILE_STDCXX_11()
AS_IF([test "x$HAVE_CXX11" != "x1"],
      [AC_MSG_ERROR([** A compiler with C++11 language features is required.])])

CXXFLAGS='-Wall -std=c++11'
AC_SUBST(CXXFLAGS)

AC_OUTPUT

```

My Makefile.am looks like 

```
AUTOMAKE_OPTIONS = subdir-objects

SRCDIR = $(top_srcdir)/src/threading

bin_PROGRAMS = node                 

node_SOURCES  = $(SRCDIR)/UnitTests/node.cpp
node_CPPFLAGS = 
node_LDFLAGS  = 
node_CXXFLAGS = $( CXXFLAGS ) 

```

I get following error 

```
Makefile:394: ../../src/threading/UnitTests/.deps/node-node.Po: No such file or directory

```