From 0ed20d29629a8a5a8c26650976aa12c7028d501f Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 19 Sep 2012 14:55:47 +0000 Subject: [PATCH] extensions also need sqlite3ext.h --- Makefile.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 2b0abcb..e9b1bd9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -360,7 +360,7 @@ sub postamble { my $postamble = eval { DBI::DBD::dbd_postamble(@_) }; - if (-e 'sqlite3.c' && -e 'sqlite3.h') { + if (-e 'sqlite3.c' && -e 'sqlite3.h' && -e 'sqlite3ext.h') { my $S = $^O eq 'MSWin32' ? '\\' : '/'; # only Win32 (not cygwin) my $share = "\$(INST_LIB)${S}auto${S}share${S}dist${S}\$(DISTNAME)"; my $perm_dir = $ExtUtils::MakeMaker::VERSION >= 6.52 ? '$(PERM_DIR)' : '755'; @@ -370,6 +370,7 @@ config :: \t\$(NOECHO) \$(CHMOD) $perm_dir "$share" \t\$(NOECHO) \$(CP) "sqlite3.c" "$share${S}sqlite3.c" \t\$(NOECHO) \$(CP) "sqlite3.h" "$share${S}sqlite3.h" +\t\$(NOECHO) \$(CP) "sqlite3ext.h" "$share${S}sqlite3ext.h" SHARE } return $postamble;