#!@PERL@
-eval "exec @PERL@ -S $0 $*"
- if $running_under_some_shell;
- # this emulates #! processing on NIH machines.
- # (remove #! line above if indigestible)
-
# autoscan - Create configure.scan (a preliminary configure.in) for a package.
# Copyright (C) 1994 Free Software Foundation, Inc.
$datadir = $ENV{"AC_MACRODIR"} || "@datadir@";
$verbose = 0;
+# Reference these variables to pacify perl -w.
+undef %identifiers_macros;
+undef %makevars_macros;
+undef %programs_macros;
&parse_args;
&init_tables;
# Put values in the tables of what to do with each token.
sub init_tables
{
- local($kind, $word, $macro, %files);
+ local($kind, $word, $macro);
# Initialize a table of C keywords (to ignore).
# Taken from K&R 1st edition p. 180.
s/\.in$//;
$unique_makefiles{$_}++;
}
- print CONF "AC_OUTPUT(", join(" ", keys(%unique_makefiles)), ")\n";
+ print CONF "\nAC_OUTPUT(", join(" ", keys(%unique_makefiles)), ")\n";
close CONF;
}
{
local ($word);
- print CONF "dnl Checks for programs.\n";
+ print CONF "\ndnl Checks for programs.\n";
foreach $word (sort keys %programs) {
&print_unique($programs_macros{$word});
}
foreach $word (sort keys %makevars) {
&print_unique($makevars_macros{$word});
}
- print CONF "dnl Checks for libraries.\n";
+ print CONF "\ndnl Checks for libraries.\n";
foreach $word (sort keys %libraries) {
print CONF "AC_HAVE_LIBRARY($word)\n";
}
{
local ($word);
- print CONF "dnl Checks for header files.\n";
+ print CONF "\ndnl Checks for header files.\n";
foreach $word (sort keys %headers) {
- if ($headers_macros{$word} eq 'AC_CHECK_HEADERS') {
+ if (defined($headers_macros{$word}) &&
+ $headers_macros{$word} eq 'AC_CHECK_HEADERS') {
push(@have_headers, $word);
} else {
&print_unique($headers_macros{$word});
{
local ($word);
- print CONF "dnl Checks for typedefs, structures, and compiler characteristics.\n";
+ print CONF "\ndnl Checks for typedefs, structures, and compiler characteristics.\n";
foreach $word (sort keys %identifiers) {
&print_unique($identifiers_macros{$word});
}
{
local ($word);
- print CONF "dnl Checks for library functions.\n";
+ print CONF "\ndnl Checks for library functions.\n";
foreach $word (sort keys %functions) {
- if ($functions_macros{$word} eq 'AC_CHECK_FUNCS') {
+ if (defined($functions_macros{$word}) &&
+ $functions_macros{$word} eq 'AC_CHECK_FUNCS') {
push(@have_funcs, $word);
} else {
&print_unique($functions_macros{$word});
#!@PERL@
-eval "exec @PERL@ -S $0 $*"
- if $running_under_some_shell;
- # this emulates #! processing on NIH machines.
- # (remove #! line above if indigestible)
-
# autoscan - Create configure.scan (a preliminary configure.in) for a package.
# Copyright (C) 1994 Free Software Foundation, Inc.
$datadir = $ENV{"AC_MACRODIR"} || "@datadir@";
$verbose = 0;
+# Reference these variables to pacify perl -w.
+undef %identifiers_macros;
+undef %makevars_macros;
+undef %programs_macros;
&parse_args;
&init_tables;
# Put values in the tables of what to do with each token.
sub init_tables
{
- local($kind, $word, $macro, %files);
+ local($kind, $word, $macro);
# Initialize a table of C keywords (to ignore).
# Taken from K&R 1st edition p. 180.
s/\.in$//;
$unique_makefiles{$_}++;
}
- print CONF "AC_OUTPUT(", join(" ", keys(%unique_makefiles)), ")\n";
+ print CONF "\nAC_OUTPUT(", join(" ", keys(%unique_makefiles)), ")\n";
close CONF;
}
{
local ($word);
- print CONF "dnl Checks for programs.\n";
+ print CONF "\ndnl Checks for programs.\n";
foreach $word (sort keys %programs) {
&print_unique($programs_macros{$word});
}
foreach $word (sort keys %makevars) {
&print_unique($makevars_macros{$word});
}
- print CONF "dnl Checks for libraries.\n";
+ print CONF "\ndnl Checks for libraries.\n";
foreach $word (sort keys %libraries) {
print CONF "AC_HAVE_LIBRARY($word)\n";
}
{
local ($word);
- print CONF "dnl Checks for header files.\n";
+ print CONF "\ndnl Checks for header files.\n";
foreach $word (sort keys %headers) {
- if ($headers_macros{$word} eq 'AC_CHECK_HEADERS') {
+ if (defined($headers_macros{$word}) &&
+ $headers_macros{$word} eq 'AC_CHECK_HEADERS') {
push(@have_headers, $word);
} else {
&print_unique($headers_macros{$word});
{
local ($word);
- print CONF "dnl Checks for typedefs, structures, and compiler characteristics.\n";
+ print CONF "\ndnl Checks for typedefs, structures, and compiler characteristics.\n";
foreach $word (sort keys %identifiers) {
&print_unique($identifiers_macros{$word});
}
{
local ($word);
- print CONF "dnl Checks for library functions.\n";
+ print CONF "\ndnl Checks for library functions.\n";
foreach $word (sort keys %functions) {
- if ($functions_macros{$word} eq 'AC_CHECK_FUNCS') {
+ if (defined($functions_macros{$word}) &&
+ $functions_macros{$word} eq 'AC_CHECK_FUNCS') {
push(@have_funcs, $word);
} else {
&print_unique($functions_macros{$word});
#!@PERL@
-eval "exec @PERL@ -S $0 $*"
- if $running_under_some_shell;
- # this emulates #! processing on NIH machines.
- # (remove #! line above if indigestible)
-
# autoscan - Create configure.scan (a preliminary configure.in) for a package.
# Copyright (C) 1994 Free Software Foundation, Inc.
$datadir = $ENV{"AC_MACRODIR"} || "@datadir@";
$verbose = 0;
+# Reference these variables to pacify perl -w.
+undef %identifiers_macros;
+undef %makevars_macros;
+undef %programs_macros;
&parse_args;
&init_tables;
# Put values in the tables of what to do with each token.
sub init_tables
{
- local($kind, $word, $macro, %files);
+ local($kind, $word, $macro);
# Initialize a table of C keywords (to ignore).
# Taken from K&R 1st edition p. 180.
s/\.in$//;
$unique_makefiles{$_}++;
}
- print CONF "AC_OUTPUT(", join(" ", keys(%unique_makefiles)), ")\n";
+ print CONF "\nAC_OUTPUT(", join(" ", keys(%unique_makefiles)), ")\n";
close CONF;
}
{
local ($word);
- print CONF "dnl Checks for programs.\n";
+ print CONF "\ndnl Checks for programs.\n";
foreach $word (sort keys %programs) {
&print_unique($programs_macros{$word});
}
foreach $word (sort keys %makevars) {
&print_unique($makevars_macros{$word});
}
- print CONF "dnl Checks for libraries.\n";
+ print CONF "\ndnl Checks for libraries.\n";
foreach $word (sort keys %libraries) {
print CONF "AC_HAVE_LIBRARY($word)\n";
}
{
local ($word);
- print CONF "dnl Checks for header files.\n";
+ print CONF "\ndnl Checks for header files.\n";
foreach $word (sort keys %headers) {
- if ($headers_macros{$word} eq 'AC_CHECK_HEADERS') {
+ if (defined($headers_macros{$word}) &&
+ $headers_macros{$word} eq 'AC_CHECK_HEADERS') {
push(@have_headers, $word);
} else {
&print_unique($headers_macros{$word});
{
local ($word);
- print CONF "dnl Checks for typedefs, structures, and compiler characteristics.\n";
+ print CONF "\ndnl Checks for typedefs, structures, and compiler characteristics.\n";
foreach $word (sort keys %identifiers) {
&print_unique($identifiers_macros{$word});
}
{
local ($word);
- print CONF "dnl Checks for library functions.\n";
+ print CONF "\ndnl Checks for library functions.\n";
foreach $word (sort keys %functions) {
- if ($functions_macros{$word} eq 'AC_CHECK_FUNCS') {
+ if (defined($functions_macros{$word}) &&
+ $functions_macros{$word} eq 'AC_CHECK_FUNCS') {
push(@have_funcs, $word);
} else {
&print_unique($functions_macros{$word});