Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 38368 invoked by uid 500); 5 Feb 2003 20:45:25 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Delivered-To: moderator for apreq-dev@httpd.apache.org Received: (qmail 96159 invoked from network); 5 Feb 2003 20:30:29 -0000 Message-ID: From: "Monin, Jeremy" To: "'apreq-dev@httpd.apache.org'" Subject: Makefile.PL patch for compilation on HP-UX Date: Wed, 5 Feb 2003 15:34:59 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, While installing libapreq-1.1 with Perl 5.6 on an HP-UX 11.00 system, I found that Makefile.PL was looking for Apache::MyConfig inside if ($Is_Win32) {} . My system doesn't have Apache::MyConfig, which would not be a problem, it's looking for this module inside the if statement. But since we have "use" instead of "require", this module request is interpreted at compile time, not runtime - it looks for Apache::MyConfig, regardless of $Is_Win32. The patch below corrects this. -Jeremy Jeremy Monin ISPD Network Administrator Rich Products Corp. (716) 878-8205 *** Makefile.PL.orig Sun Jan 5 07:44:12 2003 --- Makefile.PL Wed Feb 5 14:58:36 2003 *************** *** 51,57 **** open (FILE, ">>$lib") or die "Cannot touch $lib: $!\n"; close FILE; ! use Apache::MyConfig; $ENV{APREQ_LIB} = "$root/libapreq"; $ENV{AP_INC} = $Apache::MyConfig::Setup{APACHE_INC}; $ENV{MP_INC} = $Apache::MyConfig::Setup{MODPERL_INC}; --- 51,57 ---- open (FILE, ">>$lib") or die "Cannot touch $lib: $!\n"; close FILE; ! require Apache::Myconfig; import Apache::MyConfig (); $ENV{APREQ_LIB} = "$root/libapreq"; $ENV{AP_INC} = $Apache::MyConfig::Setup{APACHE_INC}; $ENV{MP_INC} = $Apache::MyConfig::Setup{MODPERL_INC};