I have a configure.ac which generates in doc/Doxyfile like this: AC_CONFIG_FILES([Makefile doc/Doxyfile]) Now in doc/Doxyfile.in I have: INPUT = @srcdir@/src When ./configure is run, the macro is expanded to: INPUT = ./src (i.e. relatively to top directory where configure is) but when I go into _build/ subdir and run ../configure, I get: INPUT = ../../doc/src (i.e. relatively to the doc/ subdirectory) When using @top_srcdir@ I get consistent behavior. I'm mostly wondering whether this is a bug or feature.
that's how it's always operated as long as i can remember. srcdir is meant to be the cheap route (which means in-tree builds are going to use ".").