]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Use relative dir instead of ac_builddir
authorVictor Julien <victor@inliniac.net>
Thu, 11 Jul 2013 08:36:22 +0000 (10:36 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 11 Jul 2013 09:46:39 +0000 (11:46 +0200)
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.

configure.ac

index 680904871c58b4a91ace568ad8356fa6f8f65e43..8077a785c754760ca8c93d7466d3aa27293eb33f 100644 (file)
@@ -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'.