Make it so out-of-tree builds (autofoo and cmake) have access to the various
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 29 Oct 2013 02:28:16 +0000 (02:28 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 29 Oct 2013 02:28:16 +0000 (02:28 +0000)
commit62e71b7935a20367857fae8ed020b014011cb48f
tree57c9455c1f04f292f924fb82f8e09d061f3a3424
parentdb5f7be7996bb95233113916d228ab4f185032d6
Make it so out-of-tree builds (autofoo and cmake) have access to the various
data files (diameter/*, COPYING, manuf) when running *shark from the
build directory.

Do this by passing in the top-level source directory as a compile-time
definition (unfortunately this has to be in the top-level Makefile too because
some programs link directly with epan/filesystem.c).

The plugins dir is no longer below the datafile directory but rather the
progfile directory (if we have one).  Handle the special case of AUTHORS-SHORT
(a data file but a generated one) by checking the file name before building
the path.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5664

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@52940 f5534014-38df-0310-8fa8-9805f1628bb7
CMakeLists.txt
Makefile.am
epan/CMakeLists.txt
epan/Makefile.am
epan/filesystem.c