[2/2] etc: switch to automake

Message ID 20210909204627.30490-2-vapier@gentoo.org
State New
Headers show
Series
  • [1/2] etc: rename configure.in to configure.ac
Related show

Commit Message

Cooper Qu via Binutils Sept. 9, 2021, 8:46 p.m.
There's no content in here currently, so switching to automake is
pretty easy with a stub file.
---
 etc/Makefile.am  |  19 ++
 etc/Makefile.in  | 407 ++++++++++++++++++++----
 etc/aclocal.m4   | 792 +++++++++++++++++++++++++++++++++++++++++++++++
 etc/configure    | 645 ++++++++++++++++++++++++++++++++++++--
 etc/configure.ac |  29 +-
 5 files changed, 1787 insertions(+), 105 deletions(-)
 create mode 100644 etc/Makefile.am
 create mode 100644 etc/aclocal.m4

-- 
2.33.0

Patch

diff --git a/etc/Makefile.am b/etc/Makefile.am
new file mode 100644
index 000000000000..1cd647167e3f
--- /dev/null
+++ b/etc/Makefile.am
@@ -0,0 +1,19 @@ 
+## Process this file with automake to generate Makefile.in
+#
+#   Copyright (C) 1992-2021 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+AUTOMAKE_OPTIONS = foreign no-dist
+ACLOCAL_AMFLAGS = -I.. -I../config
diff --git a/etc/aclocal.m4 b/etc/aclocal.m4
new file mode 100644
index 000000000000..27228d7159c8
diff --git a/etc/configure.ac b/etc/configure.ac
index 0e39559aa2eb..ce972ec088ea 100644
--- a/etc/configure.ac
+++ b/etc/configure.ac
@@ -1,26 +1,9 @@ 
 dnl Process this file with autoconf to produce a configure script.
-AC_INIT(Makefile.in)
+AC_INIT([etc], [0])
 
-AC_PROG_INSTALL
+AM_MAINTAINER_MODE
+AM_INIT_AUTOMAKE
+AM_SILENT_RULES([yes])
 
-# Command-line options.
-# Very limited version of AC_MAINTAINER_MODE.
-AC_ARG_ENABLE([maintainer-mode],
-  [AC_HELP_STRING([--enable-maintainer-mode],
-                 [enable make rules and dependencies not useful (and
-                  sometimes confusing) to the casual installer])],
-  [case ${enable_maintainer_mode} in
-     yes) MAINT='' ;;
-     no) MAINT='#' ;;
-     *) AC_MSG_ERROR([--enable-maintainer-mode must be yes or no]) ;;
-   esac
-   maintainer_mode=${enableval}],
-  [MAINT='#'])
-AC_SUBST([MAINT])dnl
-
-AC_SUBST(datarootdir)
-AC_SUBST(docdir)
-AC_SUBST(htmldir)
-AC_SUBST(pdfdir)
-
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT