-
Notifications
You must be signed in to change notification settings - Fork 41
build nxproxy using autoreconf #473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3df3541 to
4d09a56
Compare
m4/nx-macros.m4
Outdated
| ] | ||
| ) | ||
|
|
||
| [xorg_testset_save_]PREFIX[FLAGS]="$PREFIX[FLAGS]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xorg_[...] instead of nx_[...] here and all the way down.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xorg_[...] instead of nx_[...] here and all the way down.
Yeah, got that.
m4/nx-macros.m4
Outdated
|
|
||
| PREFIX[FLAGS]="$PREFIX[FLAGS] ]flag[" | ||
|
|
||
| # Some hackery here since AC_CACHE_VAL can't handle a non-literal varname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream uses dnl instead of # here - the basic difference being that a line preceded by dnl is discarded completely (i.e., won't show up in the generated output), while #-style comments will be included verbatim in the generated output with the shell later on ignoring that line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream uses dnl instead of # here...
Thanks for the explanation. I wasn't aware of that. I have adapted the nx-macros.m4 file now appropriately, I hope. Having some "#" comments and some dnl comments.
m4/nx-macros.m4
Outdated
| AC_SUBST([BASE_]PREFIX[FLAGS]) | ||
| ]) # NX_COMPILER_FLAGS | ||
|
|
||
| # Check to see if we're running under Cygwin32. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to keep these comments as dnl, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to keep these comments as dnl, too.
Done
| m4_define([nxproxy_version], m4_esyscmd([tr -d '\n' < VERSION])) | ||
|
|
||
| # Initialize Autoconf | ||
| AC_PREREQ(2.60) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're raising the autoconf requirement from 2.13 to 2.60 here. Might be totally okay, but might also cause trouble on older distros (like The QVD or @uli42 use.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> SUSE 11.2 (which is the oldest target distro to build on) has autoconf 2.63. So leaving this.
| CXXFLAGS="$CXXFLAGS -DVERSION=\\\"${VERSION}\\\"" | ||
| CPPFLAGS="$CPPFLAGS -DVERSION=\\\"${VERSION}\\\"" | ||
|
|
||
| dnl Check whether --with-symbols or --without-symbols was |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're losing the --with-symbols flag and functionality here. Debian builds by default make use of that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're losing the --with-symbols flag and functionality here. Debian builds by default make use of that.
Good catch. And still... If you look at the current build logs, we have "-g" twice in the options string. One stemming from --with-symbols, the other being added by debhelper. So we can drop this one here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're losing the --with-symbols...
Removed --with-symbols from CONFIGURE variable in debian/rules now.
nxproxy/man/Makefile.am
Outdated
| @@ -0,0 +1,9 @@ | |||
| NULL = | |||
|
|
|||
| man_MANS = \ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing that to dist_man_MANS should better reflect what you are trying to do - and the EXTRA_DIST definition can be also dropped when using dist_man_MANS.
nxproxy/src/Makefile.am
Outdated
| -L$(top_srcdir)/../nxcomp/ -lXcomp \ | ||
| $(NULL) | ||
|
|
||
| AM_CFLAGS = \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AM_CPPFLAGS should be more appropriate.
m4/nx-macros.m4
Outdated
| @@ -0,0 +1,314 @@ | |||
| # nx-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really have to duplicate X.Org code? Can't we depend upon and use util-macros directly for the few functions that we need? I understand that doing that might be more difficult (for now - at some point we'll have to use util-macros within the X.Org code base anyway) and that copying makes the NX components more independent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really have to duplicate X.Org code? Can't we depend upon and use util-macros directly for the few functions that we need? I understand that doing that might be more difficult (for now - at some point we'll have to use util-macros within the X.Org code base anyway) and that copying makes the NX components more independent.
Of course, we can use util-marcos directly. Or rather, we could. However, that let's our builds fail on all older platforms where our customers and friends may need nx-libs to build.
4d09a56 to
c9b1e15
Compare
|
@Ionic: most of the commits will be flattened into one at the end (except the --with-symbols drop from debian/rules). Update: Flattened into two commits (the nx-macros.m4 file and changes to nxproxy/). So three commits for this PR with the change to debian/rules. |
35731a0 to
06d86a9
Compare
…configure.in files.
This also solves the last remnant of overlinking as described in GH issue ArcticaProject#133. Fixes ArcticaProject#133.
…ready gets added by debhelper.
06d86a9 to
397d3ac
Compare
This is the first of finally 5 PRs that bring autoreconf build flow into the different parts of nx-libs.