mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
DBD-SQLite: let's always use the bundled library as we're bundling the latest one.
This commit is contained in:
parent
6e74fa6ca3
commit
75a99648de
1 changed files with 15 additions and 0 deletions
15
Makefile.PL
15
Makefile.PL
|
@ -42,8 +42,15 @@ EOT
|
||||||
#
|
#
|
||||||
# In absense of either of those, expect SQLite 3.X.X libs and headers in the
|
# In absense of either of those, expect SQLite 3.X.X libs and headers in the
|
||||||
# common places known to Perl or the C compiler.
|
# common places known to Perl or the C compiler.
|
||||||
|
|
||||||
|
# 2009/04/02
|
||||||
|
# But why do we need to use an older, system-installed library?
|
||||||
|
# Let's always use the bundled one. -- ISHIGAKI
|
||||||
|
|
||||||
require File::Spec;
|
require File::Spec;
|
||||||
my ($force_local, $sqlite_base, $sqlite_lib, $sqlite_inc);
|
my ($force_local, $sqlite_base, $sqlite_lib, $sqlite_inc);
|
||||||
|
|
||||||
|
=begin dont_try_looking_for_a_buggy_library
|
||||||
if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) {
|
if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) {
|
||||||
$sqlite_base =~ /=(.*)/;
|
$sqlite_base =~ /=(.*)/;
|
||||||
$sqlite_base = $1;
|
$sqlite_base = $1;
|
||||||
|
@ -100,6 +107,14 @@ unless ( $force_local ) {
|
||||||
print "Looks good\n" if $ENV{AUTOMATED_TESTING};
|
print "Looks good\n" if $ENV{AUTOMATED_TESTING};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
=cut
|
||||||
|
|
||||||
|
# Use always the bundled one.
|
||||||
|
# XXX: ... and this message should be more informative.
|
||||||
|
|
||||||
|
$force_local = 1;
|
||||||
|
print "We're using the bundled sqlite library.\n" if $ENV{AUTOMATED_TESTING};
|
||||||
|
|
||||||
|
|
||||||
@ARGV = grep( ! /SQLITE_LOCATION|USE_LOCAL_SQLITE/, @ARGV );
|
@ARGV = grep( ! /SQLITE_LOCATION|USE_LOCAL_SQLITE/, @ARGV );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue