at 16.09-beta 1.1 kB view raw
1diff --git a/Makefile.PL b/Makefile.PL 2index 606b28d..0cea060 100644 3--- a/Makefile.PL 4+++ b/Makefile.PL 5@@ -128,24 +128,10 @@ SCOPE: { 6 # the system SQLite. We expect that anyone sophisticated enough to use 7 # a system sqlite is also sophisticated enough to have a patching system 8 # that can change the if ( 0 ) to if ( 1 ) 9-my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc); 10-if ( 0 ) { 11- require File::Spec; 12- if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) { 13- $sqlite_base =~ /=(.*)/; 14- $sqlite_base = $1; 15- $sqlite_lib = File::Spec->catdir( $sqlite_base, 'lib' ); 16- $sqlite_inc = File::Spec->catdir( $sqlite_base, 'include' ); 17- } 18- if ( $sqlite_local = (grep(/USE_LOCAL_SQLITE=.*/, @ARGV))[0] ) { 19- $sqlite_local =~ /=(.*)/; 20- $sqlite_local = "$1" ? 1 : 0; 21- if ( $sqlite_local ) { 22- # Keep these from making into CFLAGS/LDFLAGS 23- undef $sqlite_lib; 24- undef $sqlite_inc; 25- } 26- } 27+my ($sqlite_local, $sqlite_lib, $sqlite_inc); 28+if ( 1 ) { 29+ $sqlite_lib = '@sqlite_out@/lib'; 30+ $sqlite_inc = '@sqlite_dev@/include'; 31 32 # Now check for a compatible sqlite3 33 unless ( $sqlite_local ) {