aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2012-03-27 10:32:21 -0500
committerPeter Seebach <peter.seebach@windriver.com>2012-03-27 10:33:07 -0500
commit19bd6188c5afde71ae350d7b509ac357d18e48ca (patch)
tree72dde786b7b117381343ef665cd841216ed57f41 /configure
parent4ff52f2f8cfa08bac5880543758461c14ef8085e (diff)
downloadpseudo-19bd6188c5afde71ae350d7b509ac357d18e48ca.tar.gz
pseudo-19bd6188c5afde71ae350d7b509ac357d18e48ca.tar.bz2
pseudo-19bd6188c5afde71ae350d7b509ac357d18e48ca.zip
Allow static sqlite
Some systems prefer to avoid messing with LD_LIBRARY_PATH as much, and instead link sqlite statically.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index eeb19f3..dfd712b 100755
--- a/configure
+++ b/configure
@@ -31,11 +31,14 @@ usage()
echo >&2 " [--libdir=...]"
echo >&2 " [--suffix=...]"
echo >&2 " [--with-sqlite=...]"
+ echo >&2 " [--enable-static-sqlite]"
echo >&2 " [--with-rpath=...|--without-rpath]"
echo >&2 " [--bits=32|64]"
exit 1
}
+sqlite_ldarg=-lsqlite3
+
for arg
do
case $arg in
@@ -46,6 +49,9 @@ do
--libdir=*)
opt_libdir=${arg#--libdir=}
;;
+ --enable-static-sqlite)
+ sqlite_ldarg='$(SQLITE)/lib/libsqlite3.a'
+ ;;
--with-sqlite=*)
opt_sqlite=${arg#--with-sqlite=}
# assign new value if unset
@@ -114,6 +120,7 @@ sed -e '
s,@LIB@,'"$opt_lib"',g
s,@SUFFIX@,'"$opt_suffix"',g
s,@SQLITE@,'"$opt_sqlite"',g
+ s,@SQLITE_LDARG@,'"$sqlite_ldarg"',g
s!@RPATH@!'"$opt_rpath"'!g
s,@MARK64@,'"$opt_mark64"',g
s,@BITS@,'"$opt_bits"',g