diff options
author | Ed Warnicke <eaw@cisco.com> | 2015-12-08 15:45:58 -0700 |
---|---|---|
committer | Ed Warnicke <eaw@cisco.com> | 2015-12-08 15:47:27 -0700 |
commit | cb9cadad578297ffd78fa8a33670bdf1ab669e7e (patch) | |
tree | 6ac2be912482cc7849a26f0ab845561c3d7f4e26 /vppinfra/configure.ac | |
parent | fb0815d4ae4bb0fe27bd9313f34b45c8593b907e (diff) |
Initial commit of vpp code.v1.0.0
Change-Id: Ib246f1fbfce93274020ee93ce461e3d8bd8b9f17
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Diffstat (limited to 'vppinfra/configure.ac')
-rw-r--r-- | vppinfra/configure.ac | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/vppinfra/configure.ac b/vppinfra/configure.ac new file mode 100644 index 00000000000..d0b3a0c0dd2 --- /dev/null +++ b/vppinfra/configure.ac @@ -0,0 +1,54 @@ +# Process this file with autoconf to produce a configure script. +AC_INIT(libvppinfra,1.0,) +AC_CONFIG_AUX_DIR(config) +AC_CONFIG_HEADERS(config/config.h) +AC_CANONICAL_BUILD +AC_CANONICAL_HOST +AM_INIT_AUTOMAKE([gnu no-dist-gzip dist-bzip2]) +AM_SILENT_RULES + +# Checks for programs. +AC_PROG_CC +AM_PROG_AS +AM_PROG_LIBTOOL + +###################################################################### + +dnl ------------ +dnl Check CFLAGS, CC +dnl ------------ +AC_ARG_WITH(cc, + AC_HELP_STRING([--with-cc],[Set CC for use as C compiler.]), + [CC="$with_cc"]) + +AC_ARG_WITH(cflags, + AC_HELP_STRING([--with-cflags],[Set CFLAGS for use by C compiler.]), + [CFLAGS="$with_cflags"]) + +AC_ARG_WITH(ldflags, + AC_HELP_STRING([--with-ldflags],[Set LDFLAGS for linking.]), + [LDFLAGS="$with_ldflags"]) + +###################################################################### + +AC_ARG_WITH(unix, + AC_HELP_STRING([--with-unix],[Compile unix version of clib]), + [], + [case $host_os in + darwin* | linux*) with_unix=yes;; + *) with_unix=no;; + esac]) + +AM_CONDITIONAL(WITH_UNIX, test "$with_unix" = "yes") + + +## Enable 64-bit vector lengths +AC_ARG_WITH(vec64, + AC_HELP_STRING([--with-vec64],[Enable 64-bit vector lengths]), + [with_vec64=1], + [with_vec64=0]) + +AC_SUBST(VEC64,[-DCLIB_VEC64=${with_vec64}]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |