~ubuntu-branches/ubuntu/oneiric/libtorrent/oneiric

« back to all changes in this revision

Viewing changes to scripts/checks.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Rivas
  • Date: 2007-09-11 15:12:31 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070911151231-brompt7pecvfbaau
Tags: 0.11.8-1
* New upstream version
* debian/patches/update-changelog.patch:
 + Updated with the new changelog.
* debian/control:
 + Added the Homepage field, deleted Homepages from the descriptions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
 
78
78
AC_DEFUN([TORRENT_WITH_KQUEUE], [
79
79
  AC_ARG_WITH(kqueue,
80
 
    [  --with-kqueue                  enable kqueue. [[default=no]]],
 
80
    [  --with-kqueue           enable kqueue. [[default=no]]],
81
81
    [
82
82
        if test "$withval" = "yes"; then
83
83
            AC_DEFINE(USE_KQUEUE, 1, Enable kqueue.)
288
288
      fi
289
289
    ])
290
290
])
 
291
 
 
292
 
 
293
AC_DEFUN([TORRENT_WITH_FASTCGI], [
 
294
  AC_ARG_WITH(fastcgi,
 
295
    [  --with-fastcgi=PATH      Enable FastCGI RPC support. (DO NOT USE)],
 
296
    [
 
297
      AC_MSG_CHECKING([for FastCGI (DO NOT USE)])
 
298
 
 
299
      if test "$withval" = "no"; then
 
300
        AC_MSG_RESULT(no)
 
301
 
 
302
      elif test "$withval" = "yes"; then
 
303
        CXXFLAGS="$CXXFLAGS"
 
304
        LIBS="$LIBS -lfcgi"        
 
305
 
 
306
        AC_TRY_LINK(
 
307
        [ #include <fcgiapp.h>
 
308
        ],[ FCGX_Init(); ],
 
309
        [
 
310
          AC_MSG_RESULT(ok)
 
311
        ],
 
312
        [
 
313
          AC_MSG_RESULT(not found)
 
314
          AC_MSG_ERROR(Could not compile FastCGI test.)
 
315
        ])
 
316
 
 
317
        AC_DEFINE(HAVE_FASTCGI, 1, Support for FastCGI.)
 
318
 
 
319
      else
 
320
        CXXFLAGS="$CXXFLAGS -I$withval/include"
 
321
        LIBS="$LIBS -lfcgi -L$withval/lib"
 
322
 
 
323
        AC_TRY_LINK(
 
324
        [ #include <fcgiapp.h>
 
325
        ],[ FCGX_Init(); ],
 
326
        [
 
327
          AC_MSG_RESULT(ok)
 
328
        ],
 
329
        [
 
330
          AC_MSG_RESULT(not found)
 
331
          AC_MSG_ERROR(Could not compile FastCGI test.)
 
332
        ])
 
333
 
 
334
        AC_DEFINE(HAVE_FASTCGI, 1, Support for FastCGI.)
 
335
      fi
 
336
    ])
 
337
])
 
338
 
 
339
 
 
340
AC_DEFUN([TORRENT_WITH_XMLRPC_C], [
 
341
  AC_MSG_CHECKING(for XMLRPC-C)
 
342
 
 
343
  AC_ARG_WITH(xmlrpc-c,
 
344
  [  --with-xmlrpc-c=PATH     Enable XMLRPC-C support.],
 
345
  [
 
346
    if test "$withval" = "no"; then
 
347
      AC_MSG_RESULT(no)
 
348
 
 
349
    else
 
350
      if eval xmlrpc-c-config --version 2>/dev/null >/dev/null; then
 
351
        CXXFLAGS="$CXXFLAGS `xmlrpc-c-config --cflags server-util`"
 
352
        LIBS="$LIBS `xmlrpc-c-config server-util --libs`"
 
353
 
 
354
        AC_TRY_LINK(
 
355
        [ #include <xmlrpc-c/server.h>
 
356
        ],[ xmlrpc_registry_new(NULL); ],
 
357
        [
 
358
          AC_MSG_RESULT(ok)
 
359
        ], [
 
360
          AC_MSG_RESULT(failed)
 
361
          AC_MSG_ERROR(Could not compile XMLRPC-C test.)
 
362
        ])
 
363
 
 
364
        AC_DEFINE(HAVE_XMLRPC_C, 1, Support for XMLRPC-C.)
 
365
 
 
366
      else
 
367
        AC_MSG_RESULT(failed)
 
368
        AC_MSG_ERROR(Could not compile XMLRPC-C test.)
 
369
      fi
 
370
    fi
 
371
 
 
372
  ],[
 
373
    AC_MSG_RESULT(ignored)
 
374
  ])
 
375
])