[X2Go-Commits] [nx-libs] 01/01: nx{comp{, ext, shad}, proxy}: try really hard to find makedepend. Do not fail if it is not available.
git-admin at x2go.org
git-admin at x2go.org
Mon Mar 16 03:29:28 CET 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit d8de5928e1e7a0677ed2d38fa4d9f53a58514ebe
Author: Mihai Moldovan <ionic at ionic.de>
Date: Mon Mar 16 03:29:16 2015 +0100
nx{comp{,ext,shad},proxy}: try really hard to find makedepend. Do not fail if it is not available.
---
nxcomp/Makefile.in | 4 ++--
nxcomp/configure.in | 10 ++++++++++
nxcompext/Makefile.in | 4 ++--
nxcompext/configure.in | 10 ++++++++++
nxcompshad/Makefile.in | 4 ++--
nxcompshad/configure.in | 10 ++++++++++
nxproxy/Makefile.in | 4 ++--
nxproxy/configure.in | 10 ++++++++++
8 files changed, 48 insertions(+), 8 deletions(-)
diff --git a/nxcomp/Makefile.in b/nxcomp/Makefile.in
index 2234474..e571b3c 100644
--- a/nxcomp/Makefile.in
+++ b/nxcomp/Makefile.in
@@ -271,9 +271,9 @@ depends: depend.status
depend: depend.status
depend.status:
- if [ -x $(MAKEDEPEND) ] ; then \
+ if [ -n "$(MAKEDEPEND)" ] && [ -x "$(MAKEDEPEND)" ] ; then \
$(MAKEDEPEND) $(CXXINCLUDES) $(CCINCLUDES) \
- $(DEPENDINCLUDES) -f Makefile $(MSRC) $(CSRC) \
+ $(DEPENDINCLUDES) -f Makefile $(MSRC) $(CSRC) \
$(CXXSRC) 2>/dev/null; \
fi
touch depend.status
diff --git a/nxcomp/configure.in b/nxcomp/configure.in
index 07c88df..43b5157 100644
--- a/nxcomp/configure.in
+++ b/nxcomp/configure.in
@@ -364,6 +364,16 @@ dnl Find makedepend somewhere.
AC_SUBST(MAKEDEPEND)
MAKEDEPEND="$(which makedepend)"
+# Try to desperately find makedepend.
+# Set MAKEDEPEND to the shipped makedepend binary. This will not
+# exist in nx-libs-lite, though, in which case MAKEDEPEND
+# will stay empty.
+if test -z "${MAKEDEPEND}"; then
+ if test -x "../nx-X11/config/makedepend/makedepend"; then
+ MAKEDEPEND="../nx-X11/config/makedepend/makedepend"
+ fi
+fi
+
dnl Determine what to build based on the platform.
dnl Override the LIBS settings on Cygwin32 so that
dnl we always link with the exact set of libraries.
diff --git a/nxcompext/Makefile.in b/nxcompext/Makefile.in
index 8777cee..da464bd 100644
--- a/nxcompext/Makefile.in
+++ b/nxcompext/Makefile.in
@@ -152,9 +152,9 @@ depends: depend.status
depend: depend.status
depend.status:
- if [ -x $(MAKEDEPEND) ] ; then \
+ if [ -n "$(MAKEDEPEND)" ] && [ -x "$(MAKEDEPEND)" ] ; then \
$(MAKEDEPEND) $(CXXINCLUDES) $(CCINCLUDES) \
- $(DEPENDINCLUDES) -f Makefile $(MSRC) $(CSRC) \
+ $(DEPENDINCLUDES) -f Makefile $(MSRC) $(CSRC) \
$(CXXSRC) 2>/dev/null; \
fi
touch depend.status
diff --git a/nxcompext/configure.in b/nxcompext/configure.in
index 6159e84..e6f13c0 100644
--- a/nxcompext/configure.in
+++ b/nxcompext/configure.in
@@ -221,6 +221,16 @@ dnl Find makedepend somewhere.
AC_SUBST(MAKEDEPEND)
MAKEDEPEND="$(which makedepend)"
+# Try to desperately find makedepend.
+# Set MAKEDEPEND to the shipped makedepend binary. This will not
+# exist in nx-libs-lite, though, in which case MAKEDEPEND
+# will stay empty.
+if test -z "${MAKEDEPEND}"; then
+ if test -x "../nx-X11/config/makedepend/makedepend"; then
+ MAKEDEPEND="../nx-X11/config/makedepend/makedepend"
+ fi
+fi
+
dnl Determine what to build based on the platform.
dnl Override the LIBS settings on Cygwin32 so that
dnl we always link with the exact set of libraries.
diff --git a/nxcompshad/Makefile.in b/nxcompshad/Makefile.in
index 2f6e50b..5ea2863 100644
--- a/nxcompshad/Makefile.in
+++ b/nxcompshad/Makefile.in
@@ -187,9 +187,9 @@ depends: depend.status
depend: depend.status
depend.status:
- if [ -x $(MAKEDEPEND) ] ; then \
+ if [ -n "$(MAKEDEPEND)" ] && [ -x "$(MAKEDEPEND)" ] ; then \
$(MAKEDEPEND) $(CXXINCLUDES) $(CCINCLUDES) \
- $(DEPENDINCLUDES) -f Makefile $(MSRC) $(CSRC) $(CXXSRC) 2>/dev/null; \
+ $(DEPENDINCLUDES) -f Makefile $(MSRC) $(CSRC) $(CXXSRC) 2>/dev/null; \
fi
touch depend.status
diff --git a/nxcompshad/configure.in b/nxcompshad/configure.in
index 4e91361..8dd1b2e 100644
--- a/nxcompshad/configure.in
+++ b/nxcompshad/configure.in
@@ -271,4 +271,14 @@ dnl Find makedepend somewhere.
AC_SUBST(MAKEDEPEND)
MAKEDEPEND="$(which makedepend)"
+# Try to desperately find makedepend.
+# Set MAKEDEPEND to the shipped makedepend binary. This will not
+# exist in nx-libs-lite, though, in which case MAKEDEPEND
+# will stay empty.
+if test -z "${MAKEDEPEND}"; then
+ if test -x "../nx-X11/config/makedepend/makedepend"; then
+ MAKEDEPEND="../nx-X11/config/makedepend/makedepend"
+ fi
+fi
+
AC_OUTPUT(Makefile)
diff --git a/nxproxy/Makefile.in b/nxproxy/Makefile.in
index c00df91..3a27cbd 100644
--- a/nxproxy/Makefile.in
+++ b/nxproxy/Makefile.in
@@ -80,9 +80,9 @@ depends: depend.status
depend: depend.status
depend.status:
- if [ -x $(MAKEDEPEND) ] ; then \
+ if [ -n "$(MAKEDEPEND)" ] && [ -x "$(MAKEDEPEND)" ] ; then \
$(MAKEDEPEND) $(CXXINCLUDES) $(CCINCLUDES) \
- $(DEPENDINCLUDES) -f Makefile $(MSRC) $(CSRC) $(CXXSRC) 2>/dev/null; \
+ $(DEPENDINCLUDES) -f Makefile $(MSRC) $(CSRC) $(CXXSRC) 2>/dev/null; \
fi
touch depend.status
diff --git a/nxproxy/configure.in b/nxproxy/configure.in
index 914e707..2685842 100644
--- a/nxproxy/configure.in
+++ b/nxproxy/configure.in
@@ -169,4 +169,14 @@ dnl Find makedepend somewhere.
AC_SUBST(MAKEDEPEND)
MAKEDEPEND="$(which makedepend)"
+# Try to desperately find makedepend.
+# Set MAKEDEPEND to the shipped makedepend binary. This will not
+# exist in nx-libs-lite, though, in which case MAKEDEPEND
+# will stay empty.
+if test -z "${MAKEDEPEND}"; then
+ if test -x "../nx-X11/config/makedepend/makedepend"; then
+ MAKEDEPEND="../nx-X11/config/makedepend/makedepend"
+ fi
+fi
+
AC_OUTPUT(Makefile)
--
Alioth's /srv/git/code.x2go.org/nx-libs.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list