Last change
on this file since 109:47aee810ba21 was 85:ad0ce3502257, checked in by István Váradi <ivaradi@…>, 11 years ago |
Added a configure switch to enable compilation for X-Plane 9
|
File size:
1.4 KB
|
Rev | Line | |
---|
[85] | 1 | AC_INIT(xplra-plugin, 0.1, ivaradi@gmail.com)
|
---|
| 2 | AM_INIT_AUTOMAKE([foreign no-exeext])
|
---|
| 3 |
|
---|
| 4 | AC_PROG_CC
|
---|
| 5 | AC_PROG_CXX
|
---|
| 6 |
|
---|
| 7 | PKG_PROG_PKG_CONFIG
|
---|
| 8 |
|
---|
| 9 | AM_VSCPL_TARGET_API
|
---|
| 10 |
|
---|
| 11 | AC_MSG_CHECKING([where to find the X-Plane Plugin SDK])
|
---|
| 12 | AC_ARG_WITH(xpsdk,
|
---|
| 13 | AC_HELP_STRING([--with-xpsdk=DIR],
|
---|
| 14 | [use the X-Plane Plugin SDK in DIR]),
|
---|
| 15 | [
|
---|
| 16 | if test -r $withval/CHeaders/XPLM/XPLMPlugin.h; then
|
---|
| 17 | AC_MSG_RESULT([$withval])
|
---|
| 18 | XPSDK_INCLUDES="-I$withval/CHeaders/XPLM -I$withval/CHeaders/Wrappers -I$withval/CHeaders/Widgets"
|
---|
| 19 | if test $_target_win32 -eq 0; then
|
---|
| 20 | XPSDK_LDFLAGS="-L$withval/Libraries/Win"
|
---|
| 21 | else
|
---|
| 22 | XPSDK_LDFLAGS=""
|
---|
| 23 | fi
|
---|
| 24 | else
|
---|
| 25 | AC_MSG_FAILURE([not found in $withval])
|
---|
| 26 | fi
|
---|
| 27 | ],
|
---|
| 28 | [
|
---|
| 29 | AC_MSG_FAILURE([please, specify])
|
---|
| 30 | ])
|
---|
| 31 |
|
---|
| 32 | AC_ARG_ENABLE(xplane9,
|
---|
| 33 | AC_HELP_STRING([--enable-xplane9],
|
---|
| 34 | [compile the plugin for X-Plane 9]),
|
---|
| 35 | [AM_CONDITIONAL([XPLANE_9], test "$enableval" = "yes")],
|
---|
| 36 | [AM_CONDITIONAL([XPLANE_9], false)])
|
---|
| 37 |
|
---|
| 38 | AC_SUBST(XPSDK_INCLUDES)
|
---|
| 39 | AC_SUBST(XPSDK_LDFLAGS)
|
---|
| 40 |
|
---|
| 41 | AM_VSCPL
|
---|
| 42 | PKG_CHECK_MODULES([LIBXPLCOMMON], [libxplcommon >= 0.1])
|
---|
| 43 |
|
---|
| 44 | AC_CONFIG_FILES([
|
---|
| 45 | Makefile
|
---|
| 46 | src/Makefile
|
---|
| 47 | src/xplra/Makefile
|
---|
| 48 | ])
|
---|
| 49 |
|
---|
| 50 | AC_OUTPUT()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.