]> git.pld-linux.org Git - packages/electric.git/blob - electric-ac_fix.patch
- removed deprecated entries
[packages/electric.git] / electric-ac_fix.patch
1 --- configure.in~       Sat Jun 15 01:01:30 2002
2 +++ configure.in        Mon Aug 12 00:01:01 2002
3 @@ -47,8 +47,21 @@
4  AC_FUNC_VPRINTF
5  AC_CHECK_FUNCS(ftime getcwd gethostid getpagesize gettimeofday getwd qsort scandir setlocale strstr strchr valloc vsnprintf)
6  
7 -PTHREAD_LIBS=-lpthread
8 -ACX_PTHREAD()
9 +dnl Checks for libpthreads
10 +AC_ARG_WITH(pthreads, 
11 +           AC_HELP_STRING([--with-pthreads],[Use pthreads.]), [ 
12 +            if test "$withval" = "yes" ; then
13 +                    INCLUDEPTHREAD=1
14 +            else
15 +                    INCLUDEPTHREAD=0; 
16 +            fi ],[INCLUDEPTHREAD=1])
17 +
18 +if test "$INCLUDEPTHREAD"=1 ; then
19 +       AC_CHECK_LIB(pthread,pthread_mutex_init, 
20 +                    [LDFLAGS="$LDFLAGS -pthread"],
21 +                    [AC_MSG_ERROR(****Library not found: -pthread****)])
22 +       AC_DEFINE(HAVE_PTHREAD)
23 +fi
24  
25  dnl Figure out how to reference 64-bit unsigned integers
26  AC_CHECK_TYPE(u_int64_t, long long)
This page took 0.07059 seconds and 3 git commands to generate.