source: xplra/configure.ac@ 12:3696a9f93983

Last change on this file since 12:3696a9f93983 was 12:3696a9f93983, checked in by István Váradi <ivaradi@…>, 12 years ago

Customized the linking procedure

File size: 1.2 KB
Line 
1AC_INIT(xplra, 0.1, ivaradi@gmail.com)
2AM_INIT_AUTOMAKE([foreign no-exeext])
3
4AC_PROG_CC
5AC_PROG_CXX
6
7PKG_PROG_PKG_CONFIG
8
9AM_VSCPL_TARGET_API
10
11AC_MSG_CHECKING([where to find the X-Plane Plugin SDK])
12AC_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
32AC_SUBST(XPSDK_INCLUDES)
33AC_SUBST(XPSDK_LDFLAGS)
34
35AM_VSCPL
36PKG_CHECK_MODULES([LIBXPLCOMMON], [libxplcommon >= 0.1])
37
38AC_CONFIG_FILES([
39 Makefile
40 src/Makefile
41 src/xplra/Makefile
42])
43
44AC_OUTPUT()
Note: See TracBrowser for help on using the repository browser.