libdnet: fix for autoreconf error on Lion
Libdnet is used by snort, but the manual autoreconf statements cause a build error on Lion. This is likely due to some subtle changes in autoconf-2.69. * Remove manual autotools statements. * Set `ACLOCAL` to include the `config` directory. * Use `autoreconf -ivf` the way the `autoconf` docs recommend. * Remove the unrecognized `--disable-debug` flag. This compiles with or without the `--with-python` flag, and it functions well in `snort` using all five compilers from XCode 4.3.2 and 4.0.2 on Lion and Snow Leopard. It's interesting to see software from 2007 build the python bindings and install them into the HB site-packages correctly. Fixes Homebrew/homebrew#12174 Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
a35cc2f234
commit
1dcb4cddd2
|
@ -15,16 +15,15 @@ class Libdnet < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
# "manual" autoreconf to get '.dylib' extension on shared lib
|
||||
system "aclocal --force -I config"
|
||||
system "glibtoolize --copy --force"
|
||||
system "autoconf --force"
|
||||
system "autoheader --force"
|
||||
system "automake --add-missing --copy --force-missing"
|
||||
# autoreconf to get '.dylib' extension on shared lib
|
||||
ENV['ACLOCAL'] = 'aclocal -I config'
|
||||
system 'autoreconf', '-ivf'
|
||||
|
||||
args = ["--disable-debug", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--mandir=#{man}"]
|
||||
args = %W[
|
||||
--disable-dependency-tracking
|
||||
--prefix=#{prefix}
|
||||
--mandir=#{man}
|
||||
]
|
||||
args << "--with-python" if ARGV.include? "--with-python"
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in New Issue