diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -26,7 +26,11 @@ opt_sqlite=/usr usage() { echo >&2 "usage:" - echo >&2 " configure --prefix=... [--suffix=...] [--with-sqlite=...] [--bits=32|64]" + echo >&2 " configure --prefix=..." + echo >&2 " [--suffix=...]" + echo >&2 " [--with-sqlite=...]" + echo >&2 " [--with-rpath=...|--without-rpath]" + echo >&2 " [--bits=32|64]" exit 1 } @@ -39,6 +43,15 @@ do ;; --with-sqlite=*) opt_sqlite=${arg#--with-sqlite=} + # assign new value if unset + : ${opt_rpath=-Wl,-R\$(SQLITE)/lib} + ;; + --without-rpath) + opt_rpath='' + ;; + --with-rpath=*) + rpath=${arg#--with-rpath=} + opt_rpath=${rpath:+-Wl,-R$rpath} ;; --suffix=*) opt_suffix=${arg#--suffix=} @@ -82,6 +95,7 @@ sed -e ' s,@PREFIX@,'"$opt_prefix"',g s,@SUFFIX@,'"$opt_suffix"',g s,@SQLITE@,'"$opt_sqlite"',g + s!@RPATH@!'"$opt_rpath"'!g s,@MARK64@,'"$opt_mark64"',g s,@BITS@,'"$opt_bits"',g ' < Makefile.in > Makefile |