mirror of
https://gitee.com/openharmony/third_party_alsa-lib
synced 2024-12-12 02:15:33 +00:00
Only install alsa.m4 if aclocal is present
This commit is contained in:
parent
da615d2a4f
commit
4fad6cb780
13
aclocal.m4
vendored
13
aclocal.m4
vendored
@ -140,6 +140,19 @@ else
|
|||||||
fi
|
fi
|
||||||
AC_SUBST($1)])
|
AC_SUBST($1)])
|
||||||
|
|
||||||
|
# Define a conditional.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONDITIONAL,
|
||||||
|
[AC_SUBST($1_TRUE)
|
||||||
|
AC_SUBST($1_FALSE)
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi])
|
||||||
|
|
||||||
|
|
||||||
# serial 25 AM_PROG_LIBTOOL
|
# serial 25 AM_PROG_LIBTOOL
|
||||||
AC_DEFUN(AM_PROG_LIBTOOL,
|
AC_DEFUN(AM_PROG_LIBTOOL,
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(src/control/control.c)
|
AC_INIT(src/control/control.c)
|
||||||
AM_INIT_AUTOMAKE(alsa-lib, 0.1.3)
|
AM_INIT_AUTOMAKE(alsa-lib, 0.1.3)
|
||||||
|
AM_CONDITIONAL(INSTALL_M4, test "x${ACLOCAL}" = "xaclocal")
|
||||||
|
|
||||||
AC_PREFIX_DEFAULT(/usr)
|
AC_PREFIX_DEFAULT(/usr)
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
if INSTALL_M4
|
||||||
aclocaldir=$(datadir)/aclocal
|
aclocaldir=$(datadir)/aclocal
|
||||||
aclocal_DATA=alsa.m4
|
aclocal_DATA=alsa.m4
|
||||||
|
endif
|
||||||
|
|
||||||
rpm: buildrpm alsa-lib.spec
|
rpm: buildrpm alsa-lib.spec
|
||||||
VERSION=$(VERSION) $(srcdir)/buildrpm
|
VERSION=$(VERSION) $(srcdir)/buildrpm
|
||||||
|
@ -59,8 +59,6 @@ PRE_UNINSTALL = :
|
|||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
host_triplet = @host@
|
host_triplet = @host@
|
||||||
ALSA_CFLAGS = @ALSA_CFLAGS@
|
|
||||||
ALSA_LIBS = @ALSA_LIBS@
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
LD = @LD@
|
LD = @LD@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
@ -71,10 +69,15 @@ PACKAGE = @PACKAGE@
|
|||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
VERSION = @VERSION@
|
VERSION = @VERSION@
|
||||||
|
|
||||||
|
@INSTALL_M4_TRUE@aclocaldir=$(datadir)/aclocal
|
||||||
|
@INSTALL_M4_TRUE@aclocal_DATA=alsa.m4
|
||||||
|
|
||||||
INCLUDES=-I$(top_srcdir)/include
|
INCLUDES=-I$(top_srcdir)/include
|
||||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
CONFIG_HEADER = ../include/config.h
|
CONFIG_HEADER = ../include/config.h
|
||||||
CONFIG_CLEAN_FILES = alsa-lib.spec
|
CONFIG_CLEAN_FILES = alsa-lib.spec
|
||||||
|
DATA = $(aclocal_DATA)
|
||||||
|
|
||||||
DIST_COMMON = Makefile.am Makefile.in alsa-lib.spec.in
|
DIST_COMMON = Makefile.am Makefile.in alsa-lib.spec.in
|
||||||
|
|
||||||
|
|
||||||
@ -82,7 +85,7 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
|||||||
|
|
||||||
TAR = tar
|
TAR = tar
|
||||||
GZIP = --best
|
GZIP = --best
|
||||||
all: Makefile
|
all: Makefile $(DATA)
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
@ -94,6 +97,25 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|||||||
|
|
||||||
alsa-lib.spec: $(top_builddir)/config.status alsa-lib.spec.in
|
alsa-lib.spec: $(top_builddir)/config.status alsa-lib.spec.in
|
||||||
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
install-aclocalDATA: $(aclocal_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(aclocaldir)
|
||||||
|
@list='$(aclocal_DATA)'; for p in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(aclocaldir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(aclocaldir)/$$p; \
|
||||||
|
else if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(aclocaldir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $$p $(DESTDIR)$(aclocaldir)/$$p; \
|
||||||
|
fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-aclocalDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(aclocal_DATA)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(aclocaldir)/$$p; \
|
||||||
|
done
|
||||||
tags: TAGS
|
tags: TAGS
|
||||||
TAGS:
|
TAGS:
|
||||||
|
|
||||||
@ -116,17 +138,18 @@ installcheck:
|
|||||||
install-exec:
|
install-exec:
|
||||||
@$(NORMAL_INSTALL)
|
@$(NORMAL_INSTALL)
|
||||||
|
|
||||||
install-data:
|
install-data: install-aclocalDATA
|
||||||
@$(NORMAL_INSTALL)
|
@$(NORMAL_INSTALL)
|
||||||
|
|
||||||
install: install-exec install-data all
|
install: install-exec install-data all
|
||||||
@:
|
@:
|
||||||
|
|
||||||
uninstall:
|
uninstall: uninstall-aclocalDATA
|
||||||
|
|
||||||
install-strip:
|
install-strip:
|
||||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
|
||||||
installdirs:
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(aclocaldir)
|
||||||
|
|
||||||
|
|
||||||
mostlyclean-generic:
|
mostlyclean-generic:
|
||||||
@ -150,10 +173,10 @@ maintainer-clean: maintainer-clean-generic distclean
|
|||||||
@echo "This command is intended for maintainers to use;"
|
@echo "This command is intended for maintainers to use;"
|
||||||
@echo "it deletes files that may require special tools to rebuild."
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
.PHONY: tags distdir info dvi installcheck install-exec install-data \
|
.PHONY: uninstall-aclocalDATA install-aclocalDATA tags distdir info dvi \
|
||||||
install uninstall all installdirs mostlyclean-generic distclean-generic \
|
installcheck install-exec install-data install uninstall all \
|
||||||
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||||
maintainer-clean
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
rpm: buildrpm alsa-lib.spec
|
rpm: buildrpm alsa-lib.spec
|
||||||
|
Loading…
Reference in New Issue
Block a user