configure.ac 1.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
dnl ***************************************************************************
dnl *** configure.ac for nxproxy                                         ***
dnl ***************************************************************************

m4_define([nxproxy_version], m4_esyscmd([tr -d '\n' < VERSION]))

# Initialize Autoconf
AC_PREREQ(2.60)

AC_INIT([NX Proxy], [nxproxy_version], [https://github.com/ArcticaProject/nx-libs/issues])
11

12 13 14 15 16 17
AC_CONFIG_AUX_DIR([build-aux])
AC_PROG_CC
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])

18
AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2])
19

20 21 22
# Initialize libtool
AC_PROG_LIBTOOL

23 24 25 26 27 28 29
# enable this to add the variable to the Makefiles
#AC_ARG_VAR(NX_VERSION_CUSTOM, [custom version string])

if test "x$NX_VERSION_CUSTOM" != x; then
    AC_DEFINE_UNQUOTED([NX_VERSION_CUSTOM], ["${NX_VERSION_CUSTOM}"], [user provided custom version string])
fi

30 31 32 33
PROXY_VERSION=nxproxy_version
AC_SUBST([PROXY_VERSION])

AC_LANG([C])
34
NX_COMPILER_BRAND
35
NX_DEFAULT_OPTIONS
36

37 38
NX_TARGET_USE_ELF

39 40 41 42 43 44 45
AC_CONFIG_FILES([
Makefile
man/Makefile
src/Makefile
])

AC_OUTPUT