2018-06-20 20:23:28 +02:00
|
|
|
AC_INIT([Makefile.in], 1.0)
|
|
|
|
|
2021-02-16 12:31:23 +01:00
|
|
|
AC_ARG_WITH(edgex, [ --with-edgex Build for Ubiquity-X])
|
|
|
|
|
2019-07-06 14:40:16 +02:00
|
|
|
# NOTE: this file is not actually used. You need to edit configure as well!
|
2021-11-01 20:13:32 +01:00
|
|
|
N2N_VERSION=$(../../scripts/version.sh)
|
2019-07-06 14:40:16 +02:00
|
|
|
|
2020-08-17 09:38:53 +02:00
|
|
|
DEBIAN_VERSION=`cat /etc/debian_version | grep "^8" | wc -l`
|
|
|
|
|
|
|
|
EXTRA_DEP=""
|
|
|
|
if test $DEBIAN_VERSION = "0"; then
|
|
|
|
EXTRA_DEP=", libzstd1"
|
|
|
|
fi
|
|
|
|
|
2021-10-14 12:09:19 +02:00
|
|
|
if test "${EXTN+set}" != set; then
|
|
|
|
MACHINE=`uname -m`
|
|
|
|
SHORT_MACHINE=`echo $MACHINE | cut -b1-3`
|
2021-02-16 12:31:23 +01:00
|
|
|
|
2021-10-14 12:09:19 +02:00
|
|
|
if test $MACHINE = "x86_64"; then
|
|
|
|
EXTN="amd64"
|
2019-01-26 09:33:24 +01:00
|
|
|
else
|
2021-10-14 12:09:19 +02:00
|
|
|
if test $SHORT_MACHINE = "aar"; then
|
|
|
|
EXTN="arm64"
|
|
|
|
else
|
|
|
|
if test $SHORT_MACHINE = "arm"; then
|
|
|
|
EXTN="armhf"
|
|
|
|
else
|
|
|
|
if test $SHORT_MACHINE = "mip"; then
|
|
|
|
EXTN="mips"
|
|
|
|
else
|
|
|
|
EXTN="i386"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2018-06-20 20:23:28 +02:00
|
|
|
fi
|
|
|
|
|
2021-02-16 12:31:23 +01:00
|
|
|
if test "${with_edgex+set}" = set; then
|
|
|
|
EXTN="mipsel"
|
|
|
|
fi
|
|
|
|
|
2018-06-20 20:23:28 +02:00
|
|
|
APP=n2n
|
|
|
|
DATE=`date -R`
|
|
|
|
|
|
|
|
AC_SUBST(APP)
|
2021-11-01 20:13:32 +01:00
|
|
|
AC_SUBST(N2N_VERSION)
|
2018-06-20 20:23:28 +02:00
|
|
|
AC_SUBST(EXTN)
|
|
|
|
AC_SUBST(DATE)
|
2020-08-17 09:38:53 +02:00
|
|
|
AC_SUBST(EXTRA_DEP)
|
2018-06-20 20:23:28 +02:00
|
|
|
|
|
|
|
AC_CONFIG_FILES(debian/changelog)
|
|
|
|
AC_CONFIG_FILES(debian/files)
|
|
|
|
AC_CONFIG_FILES(debian/control)
|
|
|
|
AC_CONFIG_FILES(debian/rules)
|
|
|
|
AC_CONFIG_FILES(../etc/systemd/system/edge.service)
|
2018-11-28 13:04:44 +01:00
|
|
|
AC_CONFIG_FILES(../etc/systemd/system/edge@.service)
|
2018-12-12 16:02:41 +01:00
|
|
|
AC_CONFIG_FILES(../etc/systemd/system/edge-ntopng@.service)
|
2018-06-20 20:23:28 +02:00
|
|
|
AC_CONFIG_FILES(../etc/systemd/system/supernode.service)
|
2018-08-17 10:17:09 +02:00
|
|
|
AC_CONFIG_FILES(Makefile)
|
2018-06-20 20:23:28 +02:00
|
|
|
AC_OUTPUT
|