|
|
|
@ -456,6 +456,12 @@ AC_DEFUN([AX_USE_NODEJS], [ |
|
|
|
|
[${PATH}${PATH_SEPARATOR}${ANDROID_HOME}/tools]) |
|
|
|
|
AC_CONFIG_FILES([nodejs/package.json]) |
|
|
|
|
AC_CONFIG_FILES([nodejs/makefile]) |
|
|
|
|
if test -z "${DEB_SECTION}"; then |
|
|
|
|
AX_DEB_SECTION([web]) |
|
|
|
|
fi |
|
|
|
|
if test -z "${RPM_GROUP}"; then |
|
|
|
|
AX_RPM_GROUP([Applications/Internet]) |
|
|
|
|
fi |
|
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([maintainer-clean-am], [maintainer-clean-nodejs-targets], [nodejs/makefile.in]) |
|
|
|
|
test -f nodejs/makefile.in && cat >> nodejs/makefile.in <<EOF |
|
|
|
|
#### Begin: Appended by $0 |
|
|
|
@ -494,6 +500,12 @@ EOF |
|
|
|
|
# use this in configure.ac to support HTML data for webservers |
|
|
|
|
AC_DEFUN([AX_BUILD_HTML], [ |
|
|
|
|
AC_CONFIG_FILES([html/makefile]) |
|
|
|
|
if test -z "${DEB_SECTION}"; then |
|
|
|
|
AX_DEB_SECTION([web]) |
|
|
|
|
fi |
|
|
|
|
if test -z "${RPM_GROUP}"; then |
|
|
|
|
AX_RPM_GROUP([Applications/Internet]) |
|
|
|
|
fi |
|
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([maintainer-clean-am], [maintainer-clean-html-targets], [html/makefile.in]) |
|
|
|
|
test -f html/makefile.in && cat >> html/makefile.in <<EOF |
|
|
|
|
#### Begin: Appended by $0 |
|
|
|
@ -521,6 +533,12 @@ AC_DEFUN([AX_USE_LIBTOOL], [ |
|
|
|
|
AC_SUBST(LIB_VERSION) |
|
|
|
|
AC_PROG_LIBTOOL |
|
|
|
|
AC_CONFIG_FILES([src/${PACKAGE_NAME}.pc]) |
|
|
|
|
if test -z "${DEB_SECTION}"; then |
|
|
|
|
AX_DEB_SECTION([devel]) |
|
|
|
|
fi |
|
|
|
|
if test -z "${RPM_GROUP}"; then |
|
|
|
|
AX_RPM_GROUP([Development/Libraries]) |
|
|
|
|
fi |
|
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([install-data-am], [install-data-libtool-pkg], [src/makefile.in]) |
|
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([uninstall-am], [uninstall-data-am], [src/makefile.in]) |
|
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([uninstall-data-am], [uninstall-data-libtool-pkg], [src/makefile.in]) |
|
|
|
@ -538,7 +556,11 @@ EOF |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# use this in configure.ac to support debian packages |
|
|
|
|
# - $1: optional debian package section |
|
|
|
|
AC_DEFUN([AX_USE_DEBIAN_PACKAGING], [ |
|
|
|
|
if test -n "$1"; then |
|
|
|
|
AX_DEB_SECTION([$1]) |
|
|
|
|
fi |
|
|
|
|
if test -f README.md; then |
|
|
|
|
README_DEB=$(tail -n +3 README.md | sed -e 's/^ *$/./g' -e 's/^/ /g') |
|
|
|
|
else |
|
|
|
@ -563,7 +585,11 @@ EOF |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# use this in configure.ac to support RPM packages |
|
|
|
|
# - $1: optional rpm package group |
|
|
|
|
AC_DEFUN([AX_USE_RPM_PACKAGING], [ |
|
|
|
|
if test -n "$1"; then |
|
|
|
|
AX_RPM_GROUP([$1]) |
|
|
|
|
fi |
|
|
|
|
AC_CONFIG_FILES([${PACKAGE_NAME}.spec]) |
|
|
|
|
#AX_ADD_MAKEFILE_TARGET_DEP([clean-am], [clean-rpm-targets], [makefile.in]) |
|
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([clean-am], [clean-rpm-targets], [makefile.in]) |
|
|
|
@ -840,8 +866,8 @@ AC_DEFUN([AX_PKG_REQUIRE], [ |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
for f in $pkg $4; do |
|
|
|
|
if (test -x /usr/bin/zypper && zypper search -x "${f}-devel" 1>&2 > /dev/n ull) || \ |
|
|
|
|
(test -x /usr/bin/dnf && dnf list -q "${f}-devel" 1>&2 > /dev/null) || \ |
|
|
|
|
if (test -x /usr/bin/zypper && zypper search -x "${f}-devel" 1>&2 > /dev/null) || \ |
|
|
|
|
(test -x /usr/bin/dnf && dnf list -q "${f}-devel" 1>&2 > /dev/null) || \ |
|
|
|
|
(test -x /usr/bin/yum && yum list -q "${f}-devel" 1>&2 > /dev/null) || \ |
|
|
|
|
(test -x /usr/sbin/urpmq && urpmq "${f}-devel" 1>&2 > /dev/null); then |
|
|
|
|
rpm_pkg=${f}-devel |
|
|
|
@ -911,8 +937,8 @@ AC_DEFUN([AX_PKG_CHECK], [ |
|
|
|
|
if test -n "$(apt-cache policy -q ${deb_pkg} 2> /dev/null)"; then |
|
|
|
|
AX_DEB_BUILD_DEPEND([$deb_pkg]) |
|
|
|
|
fi |
|
|
|
|
if (test -x /usr/bin/zypper && zypper search -x "$rpm_pkg" 1>&2 > /dev/n ull) || \ |
|
|
|
|
(test -x /usr/bin/dnf && dnf list -q "$rpm_pkg" 1>&2 > /dev/null) || \ |
|
|
|
|
if (test -x /usr/bin/zypper && zypper search -x "$rpm_pkg" 1>&2 > /dev/null) || \ |
|
|
|
|
(test -x /usr/bin/dnf && dnf list -q "$rpm_pkg" 1>&2 > /dev/null) || \ |
|
|
|
|
(test -x /usr/bin/yum && yum list -q "$rpm_pkg" 1>&2 > /dev/null) || \ |
|
|
|
|
(test -x /usr/sbin/urpmq && urpmq "$rpm_pkg" 1>&2 > /dev/null); then |
|
|
|
|
AX_RPM_BUILD_DEPEND([$rpm_pkg]) |
|
|
|
|