diff options
author | Aaron Marks <nymacro@gmail.com> | 2005-05-21 10:48:09 +0000 |
---|---|---|
committer | Aaron Marks <nymacro@gmail.com> | 2005-05-21 10:48:09 +0000 |
commit | fff37ac56a093ca1659d03d7fca339d96f6a931f (patch) | |
tree | 0f215b010e83650289150e4930b46f8188003f21 /configure.ac | |
parent | debc30dc9ea83ee6b7693f7258f38f52c0b15c45 (diff) | |
download | manaserv-fff37ac56a093ca1659d03d7fca339d96f6a931f.tar.gz manaserv-fff37ac56a093ca1659d03d7fca339d96f6a931f.tar.xz manaserv-fff37ac56a093ca1659d03d7fca339d96f6a931f.zip |
Disabled scripting by default (enabled using --with-scripting at configure)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2545fdf..a3b7e67 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,20 @@ AC_PROG_RANLIB # Checks for libraries. AC_CHECK_LIB([physfs], [PHYSFS_init]) AC_CHECK_LIB([SDL_net], [SDLNet_Init]) -AC_CHECK_LIB([squirrel], [sq_open]) + +AC_ARG_WITH(scripting,[ --with-scripting Build with scripting]) +if test "x$with_scripting" == "xyes"; then + AC_CHECK_LIB([squirrel], [sq_open]) + + with_scripting=yes + SCRIPT_CFLAGS=' -DSCRIPT_SUPPORT' + SCRIPT_LIBS=' -lsquirrel -lsqstdlib' + AC_SUBST(SCRIPT_CFLAGS) + AC_SUBST(SCRIPT_LIBS) +else + with_scripting=no +fi + # Checks for header files. AC_HEADER_STDC @@ -36,3 +49,6 @@ AC_CHECK_FUNCS([atexit]) AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT + +echo +echo "Building with scripting support: $with_scripting" |