Skip to content

Commit 791f781

Browse files
committed
* fix the build on precise, bump the version number
1 parent 091efc5 commit 791f781

6 files changed

Lines changed: 20 additions & 19 deletions

File tree

Makefile.am

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
CLOCAL = aclocal -I $(auxdir)
22
ACLOCAL_AMFLAGS = -I config
33

4-
SUBDIRS = debian src
5-
6-
EXTRA_DIST = README.debian
4+
SUBDIRS = src

README.debian

Lines changed: 0 additions & 5 deletions
This file was deleted.

config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@
9595
/* Define to the one symbol short name of this package. */
9696
#undef PACKAGE_TARNAME
9797

98+
/* Define to the home page for this package. */
99+
#undef PACKAGE_URL
100+
98101
/* Define to the version of this package. */
99102
#undef PACKAGE_VERSION
100103

configure.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
AC_PREREQ(2.57)
55
AC_INIT(configure.in)
66
AC_CONFIG_AUX_DIR(config)
7-
AM_INIT_AUTOMAKE(artnet-examples, 0.3.10)
7+
AM_INIT_AUTOMAKE(artnet-examples, 0.3.12)
88
AM_CONFIG_HEADER(config.h)
99

1010
# Checks for programs.
@@ -20,9 +20,8 @@ AM_CONDITIONAL(HAVE_NCURSES, test "${have_ncurses}" = "yes")
2020
AC_HEADER_STDC
2121
AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h sys/ioctl.h sys/time.h sys/timeb.h termios.h unistd.h])
2222

23-
2423
# check for libartnet
25-
PKG_CHECK_MODULES(libartnet, [libartnet >= 1.0.6])
24+
PKG_CHECK_MODULES(libartnet, [libartnet >= 1.1.0])
2625

2726
# Checks for typedefs, structures, and compiler characteristics.
2827
AC_C_CONST
@@ -37,4 +36,4 @@ AC_FUNC_SELECT_ARGTYPES
3736
AC_TYPE_SIGNAL
3837
AC_CHECK_FUNCS([gettimeofday atexit ftime memset select strdup strerror])
3938

40-
AC_OUTPUT(Makefile debian/Makefile src/Makefile)
39+
AC_OUTPUT(Makefile src/Makefile)

src/Makefile.am

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11

2-
AM_CFLAGS = -Wall -Werror
3-
AM_LDFLAGS = $(libartnet_LIBS)
2+
AM_CFLAGS = -Wall -Werror
3+
LDADD = $(libartnet_LIBS)
44

55
if HAVE_NCURSES
66
NCURSES_PROGS = artnet_dmxconsole artnet_dmxmonitor
77
artnet_dmxconsole_SOURCES = artnet-dmxconsole.c
8-
artnet_dmxconsole_LDADD = @LIBS@ -lcurses
8+
artnet_dmxconsole_LDADD = $(libartnet_LIBS) -lcurses
99

1010
artnet_dmxmonitor_SOURCES = artnet-dmxmonitor.c
11-
artnet_dmxmonitor_LDADD = @LIBS@ -lcurses
11+
artnet_dmxmonitor_LDADD = $(libartnet_LIBS) -lcurses
1212
endif
1313

1414

15-
bin_PROGRAMS = artnet_usb artnet_discover artnet_flood_rx artnet_flood_tx artnet_firmware_node artnet_firmware_server artnet_multiport artnet_profile_tx artnet_profile_rx artnet_rdm_output artnet_setdmx $(NCURSES_PROGS)
15+
bin_PROGRAMS = artnet_usb artnet_discover artnet_flood_rx artnet_flood_tx \
16+
artnet_firmware_node artnet_firmware_server artnet_multiport \
17+
artnet_profile_tx artnet_profile_rx artnet_rdm_output \
18+
artnet_setdmx $(NCURSES_PROGS)
1619

1720
artnet_usb_SOURCES = artnet-usb.c
18-
artnet_usb_LDADD = @LIBS@ -lpthread
21+
artnet_usb_LDADD = $(libartnet_LIBS) -lpthread
1922
artnet_discover_SOURCES = artnet-discover.c
2023
artnet_flood_rx_SOURCES = artnet-flood-rx.c
2124
artnet_flood_tx_SOURCES = artnet-flood-tx.c

src/artnet-dmxconsole.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,10 @@ void load(const char *filename)
377377
fprintf(stderr, "unable to open %s : %s\n", filename, strerror(errno));
378378
exit(1);
379379
}
380-
fread(dmxsave, MAXCHANNELS, MAXFKEY, file);
380+
if (MAXCHANNELS != fread(dmxsave, MAXCHANNELS, MAXFKEY, file)) {
381+
fprintf(stderr, "Failed to read %s\n", filename);
382+
exit(1);
383+
}
381384
while(!feof(file))
382385
{
383386
char buf[1024];

0 commit comments

Comments
 (0)