#!/bin/sh | |
set -e | |
aclocal | |
libtoolize --force --copy --automake | |
automake -afc | |
autoconf | |
rm -f configure.new | |
sed -E -e "s/^([[:space:]]+)(hardcode_libdir_flag_spec[_a-zA-Z0-9]*=[\"'](\\\$(\\{wl\\}|wl)){0,1}(\\-{1,2}(rpath|blibpath|R)|\\+b ).+)/\\1#\\2/" -e "s/^([[:space:]]+)(runpath_var=[\"']{0,1}LD_RUN_PATH[\"']{0,1})/\\1#\\2/" -e 's/^([[:space:]]+)(hardcode_into_libs=yes)/\1#\2/' -e 's#( \-install_name )\\\$rpath/#\1#g' configure > configure.new | |
cat configure.new > configure | |
rm -f configure.new |