423 |
# Perform a single trace reading to avoid --force forcing a rerun |
# Perform a single trace reading to avoid --force forcing a rerun |
424 |
# between two --trace, that's useless. If there is no AC_INIT, then |
# between two --trace, that's useless. If there is no AC_INIT, then |
425 |
# we are not interested: it looks like a Cygnus thingy. |
# we are not interested: it looks like a Cygnus thingy. |
426 |
|
my $aux_dir; |
427 |
my $uses_gettext_via_traces; |
my $uses_gettext_via_traces; |
428 |
my $uses_libtool; |
my $uses_libtool; |
429 |
my $uses_autoheader; |
my $uses_autoheader; |
434 |
. join (' --trace=', '', |
. join (' --trace=', '', |
435 |
# If you change this list, update the |
# If you change this list, update the |
436 |
# `Autoreconf-preselections' section of autom4te.in. |
# `Autoreconf-preselections' section of autom4te.in. |
437 |
|
'AC_CONFIG_AUX_DIR:AC_CONFIG_AUX_DIR:\$1', |
438 |
'AC_CONFIG_HEADERS', |
'AC_CONFIG_HEADERS', |
439 |
'AC_CONFIG_SUBDIRS:AC_CONFIG_SUBDIRS:\$1', |
'AC_CONFIG_SUBDIRS:AC_CONFIG_SUBDIRS:\$1', |
440 |
'AC_INIT', |
'AC_INIT', |
444 |
. ' |'); |
. ' |'); |
445 |
while ($_ = $traces->getline) |
while ($_ = $traces->getline) |
446 |
{ |
{ |
447 |
|
$aux_dir = $1 if /AC_CONFIG_AUX_DIR:(.*)/; |
448 |
$uses_autoconf = 1 if /AC_INIT/; |
$uses_autoconf = 1 if /AC_INIT/; |
449 |
$uses_gettext_via_traces = 1 if /AM_GNU_GETTEXT/; |
$uses_gettext_via_traces = 1 if /AM_GNU_GETTEXT/; |
450 |
$uses_libtool = 1 if /AC_PROG_LIBTOOL/; |
$uses_libtool = 1 if /AC_PROG_LIBTOOL/; |
473 |
if $uses_gettext && ! $uses_gettext_via_traces; |
if $uses_gettext && ! $uses_gettext_via_traces; |
474 |
|
|
475 |
|
|
476 |
|
# ---------------------------- # |
477 |
|
# Setting up the source tree. # |
478 |
|
# ---------------------------- # |
479 |
|
|
480 |
|
# libtoolize, automake --add-missing etc. will drop files in the |
481 |
|
# $AUX_DIR. But these tools fail to install these files if the |
482 |
|
# directory itself does not exist, which valid: just imagine a CVS |
483 |
|
# repository with hand written code only (there is not even a need |
484 |
|
# for a Makefile.am!). |
485 |
|
|
486 |
|
if (defined $aux_dir && ! -d $aux_dir) |
487 |
|
{ |
488 |
|
verb "$configure_ac: creating directory $aux_dir"; |
489 |
|
mkdir $aux_dir |
490 |
|
or error "cannot create $aux_dir: $!"; |
491 |
|
} |
492 |
|
|
493 |
|
|
494 |
# -------------------- # |
# -------------------- # |
495 |
# Running libtoolize. # |
# Running libtoolize. # |
496 |
# -------------------- # |
# -------------------- # |