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