Sorry I've been silent on this, especially since I requested it. I'll make sure 
I test it next week and report back, if someone doesn't test it later.

Thanks Nicholas and especially Thomas for the patch!

Pedro.

On 2 Aug 2013, at 14:14, Nicholas Marriott <nicholas.marri...@gmail.com> wrote:

> Anyone test this?
> 
> 
> On Tue, Jul 30, 2013 at 02:58:58PM +0100, Thomas Adam wrote:
>> On Tue, Jul 30, 2013 at 01:46:50PM +0100, Nicholas Marriott wrote:
>>> This seems wrong, comments inline.
>> 
>> Good; I did ask for testing.  :)
>> 
>>> I think you need to drop this else if you just rely on pkgconfig then
>>> it'll fail.
>> 
>> The attached seems to work for me.  Mangle it all you want though.
>> 
>> -- Thomas Adam
> 
>> diff --git a/configure.ac b/configure.ac
>> index 590b9db..c51abb3 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -110,28 +110,41 @@ AC_MSG_RESULT($found_glibc)
>> # Look for clock_gettime. Must come before event_init.
>> AC_SEARCH_LIBS(clock_gettime, rt)
>> 
>> -# Look for libevent.
>> -PKG_CHECK_MODULES(
>> -    LIBEVENT,
>> -    libevent,
>> -    [
>> -            CPPFLAGS="$LIBEVENT_CFLAGS $CPPFLAGS"
>> -            LIBS="$LIBEVENT_LIBS $LIBS"
>> -            found_libevent=yes
>> -    ],
>> -    [
>> -            AC_SEARCH_LIBS(
>> -                    event_init,
>> -                    [event event-1.4 event2],
>> -                    found_libevent=yes,
>> -                    found_libevent=no
>> -            )
>> -    ]
>> +# 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
>> +                            fi
>> +                    ]
>> )
>> +
>> +# Look for libevent.
>> if test "x$found_libevent" = xno; then
>> -    AC_MSG_ERROR("libevent not found")
>> +    PKG_CHECK_MODULES(
>> +            LIBEVENT,
>> +            libevent,
>> +            [
>> +                    CPPFLAGS="$CPPFLAGS $LIBEVENT_CFLAGS"
>> +                    LIBS="$LIBS $LIBEVENT_LIBS"
>> +                    found_libevent=yes
>> +            ],
>> +            []
>> +    )
>> fi
>> 
>> +
>> +AC_SEARCH_LIBS(
>> +    event_init,
>> +    [event event-1.4 event2],
>> +    found_libevent=yes,
>> +    AC_MSG_ERROR("libevent not found")
>> +)
>> +
>> # Look for curses.
>> AC_SEARCH_LIBS(
>>      setupterm,
> 

------------------------------------------------------------------------------
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

Reply via email to