AC_INIT(libxplcommon, 0.2, ivaradi@gmail.com) AM_INIT_AUTOMAKE([foreign]) LT_INIT AM_PROG_AS AC_PROG_CC AC_PROG_CXX AC_CONFIG_MACRO_DIR([m4]) AM_VSCPL_TARGET_API AC_MSG_CHECKING([where to find the X-Plane Plugin SDK]) AC_ARG_WITH(xpsdk, AC_HELP_STRING([--with-xpsdk=DIR], [use the X-Plane Plugin SDK in DIR]), [ if test -r $withval/CHeaders/XPLM/XPLMPlugin.h; then AC_MSG_RESULT([$withval]) XPSDK_INCLUDES="-I$withval/CHeaders/XPLM -I$withval/CHeaders/Wrappers -I$withval/CHeaders/Widgets" if test $_target_win32 -eq 0; then XPSDK_LDFLAGS="-L$withval/Libraries/Win" else XPSDK_LDFLAGS="" fi else AC_MSG_FAILURE([not found in $withval]) fi ], [ AC_MSG_FAILURE([please, specify]) ]) AC_SUBST(XPSDK_INCLUDES) AC_SUBST(XPSDK_LDFLAGS) AC_CONFIG_FILES([ Makefile libxplcommon.pc src/Makefile src/hu/Makefile src/hu/varadiistvan/Makefile src/hu/varadiistvan/xplcommon/Makefile doc/Makefile ]) AC_OUTPUT()