From: Victor Julien Date: Thu, 11 Jul 2013 08:36:22 +0000 (+0200) Subject: Use relative dir instead of ac_builddir X-Git-Tag: suricata-2.0beta1~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4749420f325acc5965cd942d78ba9ce28c686eda;p=thirdparty%2Fsuricata.git Use relative dir instead of ac_builddir When generating src/build-info.h the use of ac_builddir was problematic. There were several cases where it was undefined leading to the absolute path /src/build-info.h. ./configure should be called from the parent dir to the actual src dir, so this should work. Make distcheck and normal builds complete fine. --- diff --git a/configure.ac b/configure.ac index 680904871c..8077a785c7 100644 --- a/configure.ac +++ b/configure.ac @@ -1633,9 +1633,9 @@ Generic build parameters: echo echo "$SURICATA_BUILD_CONF" -echo "printf(" >${ac_builddir}/src/build-info.h -echo "$SURICATA_BUILD_CONF" | sed -e 's/^/"/' | sed -e 's/$/\\n"/' >>${ac_builddir}/src/build-info.h -echo ");" >>${ac_builddir}/src/build-info.h +echo "printf(" >src/build-info.h +echo "$SURICATA_BUILD_CONF" | sed -e 's/^/"/' | sed -e 's/$/\\n"/' >>src/build-info.h +echo ");" >>src/build-info.h echo " To build and install run 'make' and 'make install'.