Use the standard autoconf macros to help with cross-compile

This commit is contained in:
Hamish Coleman 2023-06-22 10:43:36 +01:00
parent 1b83e0e0e9
commit 4bbee2c3b5

View File

@ -4,19 +4,11 @@ dnl> Do not add anything above
AC_DEFINE([PACKAGE_BUILDDATE], "[m4_esyscmd([scripts/version.sh date | tr -d '\n'])]", [Last change date]) AC_DEFINE([PACKAGE_BUILDDATE], "[m4_esyscmd([scripts/version.sh date | tr -d '\n'])]", [Last change date])
if test "${CC+set}" != set; then
CC=gcc
fi
if test "${AR+set}" != set; then
AR=ar
fi
if test "${WINDRES+set}" != set; then
WINDRES=windres
fi
N2N_LIBS_EXTRA= N2N_LIBS_EXTRA=
AC_PROG_CC AC_PROG_CC
AC_CHECK_TOOL([AR], [ar], [false])
AC_CHECK_TOOL([WINDRES], [windres], [false])
# TODO: ideally, should use AC_ARG_ENABLE # TODO: ideally, should use AC_ARG_ENABLE
AC_ARG_WITH([edgex], AC_ARG_WITH([edgex],