Skip to content
Snippets Groups Projects
Select Git revision
  • 236bab343c207426d7adfa9f764a773ef4461c59
  • master default
  • support_pre_UAL_arm_asm
  • skein
  • rsa-crt-hardening
  • chacha96
  • fat-library
  • versioned-symbols
  • curve25519
  • dsa-reorg
  • aead-api
  • set_key-changes
  • poly1305
  • aes-reorg
  • nettle-2.7-fixes
  • size_t-changes
  • ecc-support
  • experimental-20050201
  • lsh-1.4.2
  • 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
  • converted-master-branch-to-git
  • nettle_2.4_release_20110903
  • nettle_2.3_release_20110902
  • nettle_2.2_release_20110711
  • nettle_2.1_release_20100725
  • camellia_32bit_20100720
  • nettle_2.0_release_20090608
  • nettle_1.15_release_20061128
39 results

configure.ac

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    configure.ac 5.19 KiB
    dnl -*- mode: shell-script; sh-indentation: 2; -*-
    
    dnl Process this file with autoconf to produce a configure script.
    
    AC_INIT([nettle], [1.10])
    AC_CONFIG_SRCDIR([arcfour.c])
    AC_PREREQ(2.50)
    AM_INIT_AUTOMAKE
    AM_CONFIG_HEADER([config.h])
    
    SHLIBMAJOR=2
    SHLIBMINOR=1
    
    AC_CANONICAL_HOST
    
    # Command line options
    AC_ARG_WITH(include-path,
      AC_HELP_STRING([--with-include-path], [A colon-separated list of directories to search for include files]),,
      [with_include_path=''])
    
    if test x$with_include_path != x ; then
      CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
    fi
    
    AC_ARG_WITH(lib-path,
      AC_HELP_STRING([--with-lib-path], [A colon-separated list of directories to search for libraries]),,
      [with_lib_path=''])
    
    if test x$with_lib_path != x ; then
      LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
    fi
    
    AC_ARG_ENABLE(public-key,
      AC_HELP_STRING([--disable-public-key], [Disable public key algorithms]),,
      [enable_public_key=yes])
    
    AC_ARG_ENABLE(assembler,
      AC_HELP_STRING([--disable-assembler],[Disable assembler code]),,
      [enable_assembler=yes])
    
    AC_ARG_ENABLE(shared,
      AC_HELP_STRING([--enable-shared], [Build a shared library]),,
      [enable_shared=no])
    
    LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \
        `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
        /usr/local/lib /sw/local/lib /sw/lib \
        /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib])
    
    # Checks for programs.
    AC_PROG_CC
    AC_PROG_MAKE_SET
    AC_PROG_RANLIB
    AM_PROG_CC_STDC
    
    if test "x$am_cv_prog_cc_stdc" = xno ; then
      AC_ERROR([the C compiler doesn't handle ANSI-C])
    fi
    
    # Select assembler code
    asm_path=
    case "$host" in
      [i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*])
        asm_path=x86
        ;;
      *sparc*-*-*)
        asm_path=sparc
        ;;
      *)
        enable_assembler=no