This seems wrong, comments inline. On Tue, Jul 30, 2013 at 01:18:07PM +0100, Thomas Adam wrote: > On Tue, Jul 30, 2013 at 09:23:05AM +0100, Nicholas Marriott wrote: > > You can use CPPFLAGS/CFLAGS and LDFLAGS but I'm not opposed to > > --with-libevent if someone knocks up a diff. > > Hmm. Perhaps see the attached patch? I don't much care for it, but I > think it might work. Someone will need to test it, and I'm unsure if there > should be a corresponding --with-ncurses check. If someone wants that, they > can add it. > > I haven't even tested this, so please do test it, Pedro. > > -- Thomas Adam
> diff --git a/configure.ac b/configure.ac > index 590b9db..b4fc79b 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -110,13 +110,32 @@ AC_MSG_RESULT($found_glibc) > # Look for clock_gettime. Must come before event_init. > AC_SEARCH_LIBS(clock_gettime, rt) > > +# Allow for --with-libevent to be specified, in case libevent is not in the > +# system path. > +AC_ARG_WITH(libevent, > + [ --with-libevent=DIR libevent install directory], > + [ > + if test -f "$withval/include/event.h"; then > + CPPFLAGS="$CPPFLAGS -I$withval/include" > + LIBS="$LIBS -L$withval/lib" > + found_libevent=yes > + else > + found_libevent=no > + fi > + ] > +) > + > # Look for libevent. > +if test "x$found_libevent" = xno; then > + AC_MSG_ERROR("libevent not found") > +fi I think you need to drop this else if you just rely on pkgconfig then it'll fail. > + > PKG_CHECK_MODULES( And put this inside the if found_libevent = no test? Or you'll end up with both if you have --with-libevent and pkgconfig. > LIBEVENT, > libevent, > [ > - CPPFLAGS="$LIBEVENT_CFLAGS $CPPFLAGS" > - LIBS="$LIBEVENT_LIBS $LIBS" > + CPPFLAGS="$CPPFLAGS $LIBEVENT_CFLAGS" > + LIBS="$LIBS $LIBEVENT_LIBS" > found_libevent=yes > ], > [ ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users