Changeset 38:d68450d100a8 in xplcommon for configure.ac


Ignore:
Timestamp:
01/03/13 08:51:38 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added a utility function to emit debug info into X-Plane's log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r4 r38  
    2121fi
    2222
     23AC_MSG_CHECKING([where to find the X-Plane Plugin SDK])
     24AC_ARG_WITH(xpsdk,
     25            AC_HELP_STRING([--with-xpsdk=DIR],
     26                           [use the X-Plane Plugin SDK in DIR]),
     27            [
     28                if test -r $withval/CHeaders/XPLM/XPLMPlugin.h; then
     29                    AC_MSG_RESULT([$withval])
     30                    XPSDK_INCLUDES="-I$withval/CHeaders/XPLM -I$withval/CHeaders/Wrappers -I$withval/CHeaders/Widgets"
     31                    if test $_target_win32 -eq 0; then
     32                        XPSDK_LDFLAGS="-L$withval/Libraries/Win"
     33                    else
     34                        XPSDK_LDFLAGS=""
     35                    fi
     36                else
     37                    AC_MSG_FAILURE([not found in $withval])
     38                fi
     39            ],
     40            [
     41                 AC_MSG_FAILURE([please, specify])
     42            ])
     43
     44AC_SUBST(XPSDK_INCLUDES)
     45AC_SUBST(XPSDK_LDFLAGS)
     46
    2347AC_CONFIG_FILES([
    2448        Makefile
Note: See TracChangeset for help on using the changeset viewer.