"Fossies" - the Fresh Open Source Software Archive

Member "gnash-0.8.10/cygnal/acinclude.m4" (19 Jan 2012, 2328 Bytes) of package /linux/www/old/gnash-0.8.10.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 dnl  
    2 dnl  Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
    3 dnl  
    4 dnl  This program is free software; you can redistribute it and/or modify
    5 dnl  it under the terms of the GNU General Public License as published by
    6 dnl  the Free Software Foundation; either version 3 of the License, or
    7 dnl  (at your option) any later version.
    8 dnl  
    9 dnl  This program is distributed in the hope that it will be useful,
   10 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
   11 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12 dnl  GNU General Public License for more details.
   13 dnl  You should have received a copy of the GNU General Public License
   14 dnl  along with this program; if not, write to the Free Software
   15 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
   16 dnl  
   17 
   18 dnl These aren't needed unless this is buult standalone. Currently Cygnal is
   19 dnl built as part of Gnash, so this is included in the top level configure,.ac.
   20 dnl
   21 
   22 dnl AC_PREREQ(2.50)
   23 dnl AC_INIT(gnash, trunk)
   24 dnl AC_CONFIG_SRCDIR(libcore/gnash.h)
   25 dnl AM_CONFIG_HEADER(gnashconfig.h)
   26 
   27 dnl AC_CANONICAL_BUILD
   28 dnl AC_CANONICAL_HOST
   29 
   30 dnl dnl --------------------------------------------------------
   31 dnl dnl Figure out development tool stuff
   32 dnl dnl --------------------------------------------------------
   33 
   34 dnl AC_PROG_CC
   35 dnl AC_PROG_CXX
   36 dnl AC_EXEEXT
   37 dnl AC_PROG_INSTALL
   38 dnl AM_COMPILER_LIB
   39 
   40 dnl Build the cgibins server if specified.
   41 AC_DEFUN([CYGNAL_PATHS],
   42 [
   43 
   44 AC_CHECK_HEADERS(poll.h sys/epoll.h)
   45 
   46 dnl AC_CHECK_HEADERS(sys/sendfile)
   47 AC_TRY_COMPILE([#include <sys/sendfile.h>], [
   48     sendfile(0, 0, 0, 0); ],
   49     has_sendfile=yes,
   50     has_sendfile=no
   51 )
   52 if test x${has_sendfile} = xyes; then
   53    AC_DEFINE(HAVE_SENDFILE, [1], [Has the Linux sendfile() system call])
   54 fi
   55 
   56 dnl Look for the various ways of blocking while waiting for I/O
   57 AC_CHECK_FUNCS(pselect ppoll)
   58 
   59 AC_TRY_COMPILE([#include <fcntl.h>], [
   60     splice(0, 0, 0, 0); ],
   61     has_splice=yes,
   62     has_splice=no
   63 )
   64 if test x${has_splice} = xyes; then
   65    AC_DEFINE(HAVE_FCNTL_SPLICE, [1], [Has the Linux splice() system call])
   66 fi
   67 
   68 AC_TRY_COMPILE([#include <fcntl.h>], [
   69     tee(0, 0, 0, 0); ],
   70     has_tee=yes,
   71     has_tee=no
   72 )
   73 if test x${has_tee} = xyes; then
   74    AC_DEFINE(HAVE_FCNTL_TEE, [1], [Has the Linux tee() system call])
   75 fi
   76 
   77 ])