- disorder-playrtp needs an explicit -lpthread.
- libdb is installed off even the non-default path
- find GNU sed as the native sed is not adequate
- adding some missing includes
The result builds but I've not run all the test yet.
disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c \
playrtp-alsa.c playrtp-coreaudio.c playrtp-oss.c
disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c \
playrtp-alsa.c playrtp-coreaudio.c playrtp-oss.c
disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
- $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO) $(LIBDB)
+ $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO) \
+ $(LIBDB) $(LIBPTHREAD)
disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
filename_bytes_SOURCES=filename-bytes.c
disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
filename_bytes_SOURCES=filename-bytes.c
*-freebsd* )
AC_MSG_RESULT([FreeBSD])
want_server=yes
*-freebsd* )
AC_MSG_RESULT([FreeBSD])
want_server=yes
+ # Ports install to /usr/local but the compiler stupidly doesn't look
+ # there by default
LDFLAGS="${LDFLAGS} -L/usr/local/lib"
CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
LDFLAGS="${LDFLAGS} -L/usr/local/lib"
CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
+ # libdb installs elsewhere again
+ LDFLAGS="${LDFLAGS} -L/usr/local/lib/db44"
+ CPPFLAGS="${CPPFLAGS} -I/usr/local/include/db44"
;;
* )
AC_MSG_RESULT([unknown, winging it])
;;
* )
AC_MSG_RESULT([unknown, winging it])
+AC_CACHE_CHECK([for GNU sed],[rjk_cv_gnused],[
+ rjk_cv_gnused="not found"
+ for candidate in sed gsed; do
+ if $candidate --version >/dev/null 2>&1; then
+ rjk_cv_gnused=$candidate
+ fi
+ done
+])
+GNUSED="${GNUSED:-$rjk_cv_gnused}"
+if test "$GNUSED" = "not found"; then
+ AC_MSG_ERROR([GNU sed is required to build this program])
+fi
+AC_SUBST([GNUSED])
+
missing_libraries=""
missing_headers=""
missing_functions=""
missing_libraries=""
missing_headers=""
missing_functions=""
[AC_SUBST(LIBFLAC,[-lFLAC])],
[missing_libraries="$missing_libraries libFLAC"])
fi
[AC_SUBST(LIBFLAC,[-lFLAC])],
[missing_libraries="$missing_libraries libFLAC"])
fi
+AC_CHECK_LIB([pthread], [pthread_create],
+ [AC_SUBST(LIBPTHREAD,[-lpthread])],
+ [missing_libraries="$missing_libraries libpthread"])
if test $want_gtk = yes; then
AM_PATH_GLIB_2_0([],[],[missing_libraries="$missing_libraries libglib"])
if test $want_gtk = yes; then
AM_PATH_GLIB_2_0([],[],[missing_libraries="$missing_libraries libglib"])
images.h: $(PNGS)
exec > @$.new; \
for png in $(PNGS); do \
images.h: $(PNGS)
exec > @$.new; \
for png in $(PNGS); do \
- name=`echo $$png | sed 's,.*/,,;s,\.png,,;'`; \
+ name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
gdk-pixbuf-csource --raw --name=image_$$name $$png; \
done; \
echo "static const struct image images[] = {"; \
for png in $(PNGS); do \
gdk-pixbuf-csource --raw --name=image_$$name $$png; \
done; \
echo "static const struct image images[] = {"; \
for png in $(PNGS); do \
- name=`echo $$png | sed 's,.*/,,;s,\.png,,;'`; \
+ name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
echo " { \"$$name.png\", image_$$name },"; \
done; \
echo "};"
echo " { \"$$name.png\", image_$$name },"; \
done; \
echo "};"
# check everything has working --help
check-help: all
./disobedience --version > /dev/null
# check everything has working --help
check-help: all
./disobedience --version > /dev/null
disorder-stats.8.in disorder-dbupgrade.8.in
CLEANFILES=$(SEDFILES) $(HTMLMAN)
disorder-stats.8.in disorder-dbupgrade.8.in
CLEANFILES=$(SEDFILES) $(HTMLMAN)
#include <unistd.h>
#include <gcrypt.h>
#include <time.h>
#include <unistd.h>
#include <gcrypt.h>
#include <time.h>
#include "syscalls.h"
#include "log.h"
#include "syscalls.h"
#include "log.h"
fi
printf " <pre class=manpage>"
# this is kind of painful using only BREs
fi
printf " <pre class=manpage>"
# this is kind of painful using only BREs
+nroff -man "$1" | ${GNUSED} \
'1d;$d;
1,/./{/^$/d};
s/&/\&/g;
'1d;$d;
1,/./{/^$/d};
s/&/\&/g;
$(SEDFILES) : % : %.in Makefile
rm -f $@.new
$(SEDFILES) : % : %.in Makefile
rm -f $@.new
- sed -e 's!sbindir!${sbindir}!g;' \
+ $(GNUSED) -e 's!sbindir!${sbindir}!g;' \
-e 's!bindir!${bindir}!g;' \
-e 's!pkgconfdir!${sysconfdir}/disorder!g;' \
-e 's!pkgstatedir!${localstatedir}/disorder!g;' \
-e 's!bindir!${bindir}!g;' \
-e 's!pkgconfdir!${sysconfdir}/disorder!g;' \
-e 's!pkgstatedir!${localstatedir}/disorder!g;' \
#include <net/if.h>
#include <ifaddrs.h>
#include <errno.h>
#include <net/if.h>
#include <ifaddrs.h>
#include <errno.h>
#include "configuration.h"
#include "syscalls.h"
#include "configuration.h"
#include "syscalls.h"