blob: d0b3a0c0dd29914fcd3124da5b1f374ba18f887c [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001# Process this file with autoconf to produce a configure script.
2AC_INIT(libvppinfra,1.0,)
3AC_CONFIG_AUX_DIR(config)
4AC_CONFIG_HEADERS(config/config.h)
5AC_CANONICAL_BUILD
6AC_CANONICAL_HOST
7AM_INIT_AUTOMAKE([gnu no-dist-gzip dist-bzip2])
8AM_SILENT_RULES
9
10# Checks for programs.
11AC_PROG_CC
12AM_PROG_AS
13AM_PROG_LIBTOOL
14
15######################################################################
16
17dnl ------------
18dnl Check CFLAGS, CC
19dnl ------------
20AC_ARG_WITH(cc,
21 AC_HELP_STRING([--with-cc],[Set CC for use as C compiler.]),
22 [CC="$with_cc"])
23
24AC_ARG_WITH(cflags,
25 AC_HELP_STRING([--with-cflags],[Set CFLAGS for use by C compiler.]),
26 [CFLAGS="$with_cflags"])
27
28AC_ARG_WITH(ldflags,
29 AC_HELP_STRING([--with-ldflags],[Set LDFLAGS for linking.]),
30 [LDFLAGS="$with_ldflags"])
31
32######################################################################
33
34AC_ARG_WITH(unix,
35 AC_HELP_STRING([--with-unix],[Compile unix version of clib]),
36 [],
37 [case $host_os in
38 darwin* | linux*) with_unix=yes;;
39 *) with_unix=no;;
40 esac])
41
42AM_CONDITIONAL(WITH_UNIX, test "$with_unix" = "yes")
43
44
45## Enable 64-bit vector lengths
46AC_ARG_WITH(vec64,
47 AC_HELP_STRING([--with-vec64],[Enable 64-bit vector lengths]),
48 [with_vec64=1],
49 [with_vec64=0])
50
51AC_SUBST(VEC64,[-DCLIB_VEC64=${with_vec64}])
52
53AC_CONFIG_FILES([Makefile])
54AC_OUTPUT