--- dw-testbed-0.0.43j/configure.in.orig 2007-10-01 00:17:07.000000000 +0200 +++ dw-testbed-0.0.43j/configure.in 2007-10-03 19:06:36.000000000 +0200 @@ -22,11 +22,21 @@ , enable_ansi=no) AC_ARG_ENABLE(rtfl, [ --enable-rtfl Build with rtfl messages], enable_rtfl=yes) +AC_GNU_SOURCE AC_PROG_CXX AM_PROG_CC_STDC AC_PROG_RANLIB AC_PROG_CPP +default_perl=/usr/bin/perl +AC_PATH_PROG(PERL, perl) +if test -z "$PERL"; then + AC_MSG_WARN(Perl not found - proceeding with $default_perl) + PERL=$default_perl +fi + +AC_CHECK_FUNCS(strndup) + dnl --------------------- dnl Test for FLTK library dnl --------------------- @@ -94,4 +104,4 @@ AC_SUBST(LIBFLTK_CXXFLAGS) AC_SUBST(LIBFLTK_LIBS) -AC_OUTPUT(Makefile lout/Makefile dw/Makefile test/Makefile doc/Makefile) +AC_OUTPUT(Doxyfile Makefile lout/Makefile dw/Makefile test/Makefile doc/Makefile) --- dw-testbed-0.0.43j/Doxyfile.orig 2007-10-03 19:09:29.000000000 +0200 +++ dw-testbed-0.0.43j/Doxyfile.in 2007-10-03 19:05:17.000000000 +0200 @@ -997,7 +997,7 @@ # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). -PERL_PATH = /usr/bin/perl +PERL_PATH = @PERL@ #--------------------------------------------------------------------------- # Configuration options related to the dot tool --- dw-testbed-0.0.43j/dw/selection.cc.orig 2007-10-01 00:39:50.000000000 +0200 +++ dw-testbed-0.0.43j/dw/selection.cc 2007-10-03 18:53:00.000000000 +0200 @@ -22,12 +22,23 @@ #include "core.hh" +#ifdef HAVE_STRNDUP +#define _GNU_SOURCE /* needed to get strndup() */ +#endif #include -/** - * \todo Why is this not found in ? - */ -extern "C" char *strndup(const char *s, size_t size); +#ifndef HAVE_STRNDUP +extern "C" char *strndup(const char *s, size_t size) +{ + char *r = (char *) calloc (size + 1, 1); + + if (r) { + strncpy (r, s, size); + } + + return r; +} +#endif namespace dw { namespace core {