Browse Source

Use the standard autoconf macros to help with cross-compile

pull/1124/head
Hamish Coleman 1 year ago
parent
commit
4bbee2c3b5
  1. 12
      configure.ac

12
configure.ac

@ -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],

Loading…
Cancel
Save