X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=acinclude.m4;h=81814018a2ad11bf5ae51665a5c063f1f45f47a5;hp=5a6440e26249ab15a1bd26fec1337c1f5ca96a08;hb=refs%2Fheads%2Fupstream;hpb=55978d1d1f9c468a0c0cce92fbe3ab958384761d diff --git a/acinclude.m4 b/acinclude.m4 index 5a6440e..8181401 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,34 +1,10 @@ -dnl -dnl Macro: unet_PIPE_CFLAGS -dnl -dnl If the compiler understands -pipe, add it to CFLAGS if not already -dnl there. -dnl -AC_DEFUN(unet_PIPE_CFLAGS, -[AC_MSG_CHECKING([if the compiler understands -pipe]) -unet_cv_pipe_flags="$ac_cv_prog_gcc" -if test "$ac_cv_prog_gcc" = no; then - OLDCFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -pipe" - AC_TRY_COMPILE(,,unet_cv_pipe_flags=yes,) - CFLAGS="$OLDCFLAGS" -fi -AC_MSG_RESULT($unet_cv_pipe_flags) -if test "$unet_cv_pipe_flags" = yes ; then - x=`echo $CFLAGS | grep 'pipe' 2>/dev/null` - if test "$x" = "" ; then - CFLAGS="$CFLAGS -pipe" - fi -fi -]) - dnl dnl Macro: unet_NONBLOCKING dnl dnl Check whether we have posix, bsd or sysv non-blocking sockets and dnl define respectively NBLOCK_POSIX, NBLOCK_BSD or NBLOCK_SYSV. dnl -AC_DEFUN(unet_NONBLOCKING, +AC_DEFUN([unet_NONBLOCKING], [dnl Do we have posix, bsd or sysv non-blocking stuff ? AC_CACHE_CHECK([for posix non-blocking], unet_cv_sys_nonblocking_posix, [AC_TRY_RUN([#include @@ -95,7 +71,7 @@ dnl Check if we have posix signals, reliable bsd signals or dnl unreliable sysv signals and define respectively POSIX_SIGNALS, dnl BSD_RELIABLE_SIGNALS or SYSV_UNRELIABLE_SIGNALS. dnl -AC_DEFUN(unet_SIGNALS, +AC_DEFUN([unet_SIGNALS], [dnl Do we have posix signals, reliable bsd signals or unreliable sysv signals ? AC_CACHE_CHECK([for posix signals], unet_cv_sys_signal_posix, [AC_TRY_COMPILE([#include ], @@ -132,7 +108,7 @@ dnl Macro: unet_CHECK_TYPE_SIZES dnl dnl Check the size of several types and define a valid int16_t and int32_t. dnl -AC_DEFUN(unet_CHECK_TYPE_SIZES, +AC_DEFUN([unet_CHECK_TYPE_SIZES], [dnl Check type sizes AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(int) @@ -203,7 +179,7 @@ dnl dnl The check for libresolv is in case you are attempting to link statically dnl and happen to have a libresolv.a lying around (and no libnsl.a). dnl -AC_DEFUN(AC_LIBRARY_NET, [ +AC_DEFUN([AC_LIBRARY_NET], [ # Most operating systems have gethostbyname() in the default searched # libraries (i.e. libc): AC_CHECK_FUNC(gethostbyname, ,