From 0bd38062103d7233de8f542842a26f2b9635a3e3 Mon Sep 17 00:00:00 2001 From: short <> Date: Sat, 30 Aug 2003 09:48:32 +0000 Subject: [PATCH 1/1] Ignore line leading whitespaces during "configure.in" keywords search. --- AutoGen.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AutoGen.pm b/AutoGen.pm index 95aa2e8..de75b41 100644 --- a/AutoGen.pm +++ b/AutoGen.pm @@ -501,13 +501,13 @@ my($class,%options)=@_; do { $configure_name||=$_ if -f $_ } for ("configure.ac"); $configure_name or confess "Cannot find configure.{in,ac}"; my $configure_in=_readfile($configure_name); - do { $$_=1 if !defined($$_) && $configure_in=~/^AM_GNU_GETTEXT\b/m; } + do { $$_=1 if !defined($$_) && $configure_in=~/^\s*AM_GNU_GETTEXT\b/m; } for (\$Options{"want-gettextize"}); - do { $$_=1 if !defined($$_) && $configure_in=~/^AM_GLIB_GNU_GETTEXT\b/m; } + do { $$_=1 if !defined($$_) && $configure_in=~/^\s*AM_GLIB_GNU_GETTEXT\b/m; } for (\$Options{"want-glib-gettextize"}); - do { $$_=1 if !defined($$_) && $configure_in=~/^AM_PROG_LIBTOOL\b/m; } + do { $$_=1 if !defined($$_) && $configure_in=~/^\s*AM_PROG_LIBTOOL\b/m; } for (\$Options{"want-libtoolize"}); - do { $$_=1 if !defined($$_) && $configure_in=~/^A[CM]_CONFIG_HEADER\b/m; } + do { $$_=1 if !defined($$_) && $configure_in=~/^\s*A[CM]_CONFIG_HEADER\b/m; } for (\$Options{"want-autoheader"}); my @copy_arg=(!$Options{"ARGV_copy"} ? () : "--copy"); -- 1.8.3.1