File tree Expand file tree Collapse file tree 6 files changed +19
-5
lines changed Expand file tree Collapse file tree 6 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Process this file with autoconf to produce a configure script
2
2
3
3
AC_PREREQ ( 2.65 )
4
- # don't forget to also change version in module/rdp.h
4
+ # package version must be x.y.z
5
5
AC_INIT ( [ xorgxrdp] ,
[ 0.2.5] ,
[ [email protected] ] )
6
+ package_version_major=$(echo ${PACKAGE_VERSION}|cut -d. -f1)
7
+ package_version_minor=$(echo ${PACKAGE_VERSION}|cut -d. -f2)
8
+ package_version_patchlevel=$(echo ${PACKAGE_VERSION}|cut -d. -f3)
9
+ AC_SUBST ( [ package_version_major] , [ ${package_version_major}] )
10
+ AC_SUBST ( [ package_version_minor] , [ ${package_version_minor}] )
11
+ AC_SUBST ( [ package_version_patchlevel] , [ ${package_version_patchlevel}] )
6
12
AC_CONFIG_HEADERS ( config_ac.h:config_ac-h.in )
7
13
AM_INIT_AUTOMAKE ( [ 1.11 foreign parallel-tests] )
8
14
m4_ifdef ( [ AM_SILENT_RULES ] , [ AM_SILENT_RULES ([ yes] )] )
Original file line number Diff line number Diff line change 18
18
AM_CFLAGS = \
19
19
$(XORG_SERVER_CFLAGS ) \
20
20
$(XRDP_CFLAGS ) \
21
+ -DPACKAGE_VERSION_MAJOR=@package_version_major@ \
22
+ -DPACKAGE_VERSION_MINOR=@package_version_minor@ \
23
+ -DPACKAGE_VERSION_PATCHLEVEL=@package_version_patchlevel@ \
21
24
-I$(top_srcdir ) /module \
22
25
$(EXTRA_FLAGS )
23
26
Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41
41
#define XRDP_KEYB_NAME "XRDPKEYB"
42
42
#define XRDP_VERSION 1000
43
43
44
- #define PACKAGE_VERSION_MAJOR 0
45
- #define PACKAGE_VERSION_MINOR 2
46
- #define PACKAGE_VERSION_PATCHLEVEL 5
47
-
48
44
#define COLOR8 (r , g , b ) \
49
45
((((r) >> 5) << 0) | (((g) >> 5) << 3) | (((b) >> 6) << 6))
50
46
#define COLOR15 (r , g , b ) \
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ EXTRA_DIST =
3
3
AM_CFLAGS = \
4
4
$(XORG_SERVER_CFLAGS ) \
5
5
$(XRDP_CFLAGS ) \
6
+ -DPACKAGE_VERSION_MAJOR=@package_version_major@ \
7
+ -DPACKAGE_VERSION_MINOR=@package_version_minor@ \
8
+ -DPACKAGE_VERSION_PATCHLEVEL=@package_version_patchlevel@ \
6
9
-I$(top_srcdir ) /module
7
10
8
11
xrdpdev_drv_la_LTLIBRARIES = xrdpdev_drv.la
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ EXTRA_DIST =
3
3
AM_CFLAGS = \
4
4
$(XORG_SERVER_CFLAGS ) \
5
5
$(XRDP_CFLAGS ) \
6
+ -DPACKAGE_VERSION_MAJOR=@package_version_major@ \
7
+ -DPACKAGE_VERSION_MINOR=@package_version_minor@ \
8
+ -DPACKAGE_VERSION_PATCHLEVEL=@package_version_patchlevel@ \
6
9
-I$(top_srcdir ) /module
7
10
8
11
xrdpkeyb_drv_la_LTLIBRARIES = xrdpkeyb_drv.la
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ EXTRA_DIST =
3
3
AM_CFLAGS = \
4
4
$(XORG_SERVER_CFLAGS ) \
5
5
$(XRDP_CFLAGS ) \
6
+ -DPACKAGE_VERSION_MAJOR=@package_version_major@ \
7
+ -DPACKAGE_VERSION_MINOR=@package_version_minor@ \
8
+ -DPACKAGE_VERSION_PATCHLEVEL=@package_version_patchlevel@ \
6
9
-I$(top_srcdir ) /module
7
10
8
11
xrdpmouse_drv_la_LTLIBRARIES = xrdpmouse_drv.la
You can’t perform that action at this time.
0 commit comments