are found.
(output): Likewise. Use AC_CONFIG_SRCDIR and AC_CONFIG_FILES
instead of old-style arguments for AC_INIT and AC_OUTPUT.
+2000-11-10 Pavel Roskin <proski@gnu.org>
+
+ * autoscan.pl (scan_files): Eliminate a warning if no C files
+ are found.
+ (output): Likewise. Use AC_CONFIG_SRCDIR and AC_CONFIG_FILES
+ instead of old-style arguments for AC_INIT and AC_OUTPUT.
+
2000-11-10 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Limitations of Usual Tools): `&' in sed's rhs
# that might create nonportabilities.
sub scan_files
{
- $initfile = $cfiles[0]; # Pick one at random.
+ if (defined $cfiles[0]) {
+ $initfile = $cfiles[0]; # Pick one at random.
+ }
if ($verbose) {
print "cfiles:", join(" ", @cfiles), "\n";
local (%unique_makefiles);
print CONF "# Process this file with autoconf to produce a configure script.\n";
- print CONF "AC_INIT($initfile)\n";
+ print CONF "AC_INIT\n";
+ if (defined $initfile) {
+ print CONF "AC_CONFIG_SRCDIR([$initfile])\n";
+ }
&output_programs;
&output_headers;
s/\.in$//;
$unique_makefiles{$_}++;
}
- print CONF "\nAC_OUTPUT([", join("\n ", keys(%unique_makefiles)), "])\n";
+ print CONF "\nAC_CONFIG_FILES([",
+ join("\n ", keys(%unique_makefiles)), "])\n";
+ print CONF "AC_OUTPUT\n";
close CONF;
}
# that might create nonportabilities.
sub scan_files
{
- $initfile = $cfiles[0]; # Pick one at random.
+ if (defined $cfiles[0]) {
+ $initfile = $cfiles[0]; # Pick one at random.
+ }
if ($verbose) {
print "cfiles:", join(" ", @cfiles), "\n";
local (%unique_makefiles);
print CONF "# Process this file with autoconf to produce a configure script.\n";
- print CONF "AC_INIT($initfile)\n";
+ print CONF "AC_INIT\n";
+ if (defined $initfile) {
+ print CONF "AC_CONFIG_SRCDIR([$initfile])\n";
+ }
&output_programs;
&output_headers;
s/\.in$//;
$unique_makefiles{$_}++;
}
- print CONF "\nAC_OUTPUT([", join("\n ", keys(%unique_makefiles)), "])\n";
+ print CONF "\nAC_CONFIG_FILES([",
+ join("\n ", keys(%unique_makefiles)), "])\n";
+ print CONF "AC_OUTPUT\n";
close CONF;
}
# that might create nonportabilities.
sub scan_files
{
- $initfile = $cfiles[0]; # Pick one at random.
+ if (defined $cfiles[0]) {
+ $initfile = $cfiles[0]; # Pick one at random.
+ }
if ($verbose) {
print "cfiles:", join(" ", @cfiles), "\n";
local (%unique_makefiles);
print CONF "# Process this file with autoconf to produce a configure script.\n";
- print CONF "AC_INIT($initfile)\n";
+ print CONF "AC_INIT\n";
+ if (defined $initfile) {
+ print CONF "AC_CONFIG_SRCDIR([$initfile])\n";
+ }
&output_programs;
&output_headers;
s/\.in$//;
$unique_makefiles{$_}++;
}
- print CONF "\nAC_OUTPUT([", join("\n ", keys(%unique_makefiles)), "])\n";
+ print CONF "\nAC_CONFIG_FILES([",
+ join("\n ", keys(%unique_makefiles)), "])\n";
+ print CONF "AC_OUTPUT\n";
close CONF;
}