Skip to content
Snippets Groups Projects
Select Git revision
  • struct-layout
  • master default protected
  • streebog
  • gost28147
  • master-updates
  • ed448
  • shake256
  • curve448
  • ecc-sqrt
  • gosthash94cp
  • cmac64
  • block16-refactor
  • siv-mode
  • cmac-layout
  • delete-des-compat
  • delete-rsa_blind
  • aes-struct-layout
  • release-3.4-fixes
  • attribute-deprecated
  • rename-data-symbols
  • nettle_3.5.1_release_20190627
  • nettle_3.5_release_20190626
  • nettle_3.5rc1
  • nettle_3.4.1_release_20181204
  • nettle_3.4.1rc1
  • nettle_3.4_release_20171119
  • nettle_3.4rc2
  • nettle_3.4rc1
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
  • nettle_2.7.1_release_20130528
  • nettle_2.7_release_20130424
  • nettle_2.6_release_20130116
  • nettle_2.5_release_20120707
40 results

aclocal.m4

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    aclocal.m4 37.29 KiB
    dnl Try to detect the type of the third arg to getsockname() et al
    AC_DEFUN([LSH_TYPE_SOCKLEN_T],
    [AH_TEMPLATE([socklen_t], [Length type used by getsockopt])
    AC_CACHE_CHECK([for socklen_t in sys/socket.h], ac_cv_type_socklen_t,
    [AC_EGREP_HEADER(socklen_t, sys/socket.h,
      [ac_cv_type_socklen_t=yes], [ac_cv_type_socklen_t=no])])
    if test $ac_cv_type_socklen_t = no; then
            AC_MSG_CHECKING(for AIX)
            AC_EGREP_CPP(yes, [
    #ifdef _AIX
     yes
    #endif
    ],[
    AC_MSG_RESULT(yes)
    AC_DEFINE(socklen_t, size_t)
    ],[
    AC_MSG_RESULT(no)
    AC_DEFINE(socklen_t, int)
    ])
    fi
    ])
    
    dnl Choose cc flags for compiling position independent code
    dnl FIXME: Doesn't do the right thing when crosscompiling.
    AC_DEFUN([LSH_CCPIC],
    [AC_REQUIRE([AC_CANONICAL_HOST])dnl
    AC_MSG_CHECKING(CCPIC)
    AC_CACHE_VAL(lsh_cv_sys_ccpic,[
      if test -z "$CCPIC" ; then
        if test "$GCC" = yes ; then
          case "$host_os" in
    	bsdi4.*)	CCPIC="-fPIC" ;;
    	bsdi*)		CCPIC="" ;;
    	darwin*)	CCPIC="-fPIC" ;;
    	# Could also use -fpic, depending on the number of symbol references
    	solaris*)	CCPIC="-fPIC" ;;
    	cygwin*)	CCPIC="" ;;
    	mingw32*)	CCPIC="" ;;
    	*)		CCPIC="-fpic" ;;
          esac
        else
          case "$host_os" in
    	darwin*)	CCPIC="-fPIC" ;;
            irix*)		CCPIC="-share" ;;
    	hpux*)		CCPIC="+z"; ;;
    	*freebsd*)	CCPIC="-fpic" ;;
    	sco*|sysv4.*)	CCPIC="-KPIC -dy -Bdynamic" ;;
    	solaris*)	CCPIC="-KPIC -Bdynamic" ;;
    	winnt*)		CCPIC="-shared" ;;
    	*)		CCPIC="" ;;
          esac
        fi
      fi
      OLD_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS $CCPIC"
      AC_TRY_COMPILE([], [exit(0);],
        lsh_cv_sys_ccpic="$CCPIC", lsh_cv_sys_ccpic='')
      CFLAGS="$OLD_CFLAGS"
    ])
    CCPIC="$lsh_cv_sys_ccpic"
    AC_MSG_RESULT($CCPIC)])
    
    dnl LSH_PATH_ADD(path-id, directory)
    AC_DEFUN([LSH_PATH_ADD],
    [AC_MSG_CHECKING($2)
    ac_exists=no
    if test -d "$2/." ; then
      ac_real_dir=`cd $2 && pwd`
      if test -n "$ac_real_dir" ; then
        ac_exists=yes