forked from pioneerspacesim/pioneer-thirdparty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,6 @@ dnl setup | |
AC_PREREQ(2.59) | ||
AC_INIT([pioneer-thirdparty], [0.1], [[email protected]]) | ||
|
||
dnl static linking | ||
AC_ARG_ENABLE([static], AS_HELP_STRING([--enable-static], [Build libs for static linking]), [P3P_BUILD_STATIC=$enableval], [P3P_BUILD_STATIC=]) | ||
|
||
dnl detect and setup mxe | ||
AC_DEFUN([MXE_SETUP], [ | ||
AC_ARG_WITH([mxe], AS_HELP_STRING([--with-mxe], [Path to MXE MinGW environment for cross-building]), [MXE_BASE=$withval], [MXE_BASE=]) | ||
|
@@ -15,7 +12,7 @@ AC_DEFUN([MXE_SETUP], [ | |
AC_MSG_ERROR([Cannot specify --host with --with-mxe]) | ||
fi | ||
AC_MSG_CHECKING([for MXE]) | ||
MXE_CMAKE_TOOLCHAIN_FILE="$MXE_BASE/usr/i686-pc-mingw32/share/cmake/mxe-conf.cmake" | ||
MXE_CMAKE_TOOLCHAIN_FILE="$MXE_BASE/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake" | ||
if ! test -f "$MXE_CMAKE_TOOLCHAIN_FILE" ; then | ||
AC_MSG_RESULT([no]) | ||
AC_MSG_ERROR([MXE not found in $MXE_BASE]) | ||
|
@@ -25,9 +22,9 @@ AC_DEFUN([MXE_SETUP], [ | |
MXE_PATH="$MXE_BASE/usr/bin" | ||
PATH="$MXE_PATH:$PATH" | ||
host_alias=i686-pc-mingw32 | ||
host_alias=i686-w64-mingw32.static | ||
ac_tool_prefix=$host_alias- | ||
cross_compiling=yes | ||
P3P_BUILD_STATIC=yes | ||
fi | ||
AC_SUBST(MXE_BASE) | ||
AC_SUBST(MXE_CROSS) | ||
|
@@ -37,8 +34,6 @@ AC_DEFUN([MXE_SETUP], [ | |
|
||
MXE_SETUP | ||
|
||
AC_SUBST(P3P_BUILD_STATIC) | ||
|
||
dnl normalise build and host triples | ||
AC_CANONICAL_BUILD | ||
AC_CANONICAL_HOST | ||
|