118 |
{ |
{ |
119 |
my $srcdir; |
my $srcdir; |
120 |
|
|
121 |
getopt ('I|include|A|autoconf-dir|m|macrodir|l|localdir=s' => \@include, |
getopt ('I|include=s' => \@include, |
122 |
'B|prepend-include=s' => \@prepend_include, |
'B|prepend-include=s' => \@prepend_include, |
123 |
'i|install' => \$install, |
'i|install' => \$install, |
124 |
's|symlink' => \$symlink); |
's|symlink' => \$symlink); |
125 |
|
|
126 |
# Even if the user specified a configure.ac, trim to get the |
# Even if the user specified a configure.ac, trim to get the |
127 |
# directory, and look for configure.ac again. Because (i) the code |
# directory, and look for configure.ac again. Because (i) the code |
132 |
|
|
133 |
if ($verbose && $debug) |
if ($verbose && $debug) |
134 |
{ |
{ |
135 |
xsystem ("$autoconf --version | sed 1q >&2"); |
for my $prog ($autoconf, $autoheader, |
136 |
print STDERR "\n"; |
$automake, $aclocal, |
137 |
xsystem ("$autoheader --version | sed 1q >&2"); |
$autopoint, |
138 |
print STDERR "\n"; |
$libtoolize) |
139 |
xsystem ("$automake --version | sed 1q >&2"); |
{ |
140 |
print STDERR "\n"; |
xsystem ("$prog --version | sed 1q >&2"); |
141 |
xsystem ("$aclocal --version | sed 1q >&2"); |
print STDERR "\n"; |
142 |
print STDERR "\n"; |
} |
|
xsystem ("$autopoint --version | sed 1q >&2"); |
|
|
print STDERR "\n"; |
|
|
xsystem ("$libtoolize --version | sed 1q >&2"); |
|
|
print STDERR "\n"; |
|
143 |
} |
} |
144 |
|
|
145 |
# Dispatch autoreconf's option to the tools. |
# Dispatch autoreconf's option to the tools. |
188 |
{ |
{ |
189 |
my ($directory) = @_; |
my ($directory) = @_; |
190 |
|
|
191 |
verbose "working in `$directory'"; |
# The format for this message is not free: taken from Emacs, itself |
192 |
|
# using GNU Make's format. |
193 |
|
verbose "Entering directory `$directory'"; |
194 |
chdir $directory |
chdir $directory |
195 |
or error "cannot chdir to $directory: $!"; |
or error "cannot chdir to $directory: $!"; |
196 |
|
|
504 |
xsystem ($automake); |
xsystem ($automake); |
505 |
} |
} |
506 |
|
|
507 |
|
# The format is not free: taken from Emacs, itself using GNU Make's |
508 |
|
# format. |
509 |
|
verbose "Leaving directory `$directory'"; |
510 |
chdir $cwd |
chdir $cwd |
511 |
or error "cannot chdir to $cwd: $!"; |
or error "cannot chdir to $cwd: $!"; |
512 |
} |
} |