diff configure.ac @ 46:b1969e1b310d

added skeleton clojure gb driver
author Robert McIntyre <rlm@mit.edu>
date Tue, 06 Mar 2012 23:43:52 -0600
parents f6ff410a87fd
children
line wrap: on
line diff
     1.1 --- a/configure.ac	Tue Mar 06 22:07:22 2012 -0600
     1.2 +++ b/configure.ac	Tue Mar 06 23:43:52 2012 -0600
     1.3 @@ -21,6 +21,7 @@
     1.4  AC_PATH_PROG(NASM, nasm)
     1.5  AC_PROG_LIBTOOL
     1.6  
     1.7 +
     1.8  # Checks for libraries.
     1.9  AC_CHECK_LIB(z, gzopen,
    1.10    , AC_MSG_ERROR([*** Cannot compile without zlib.]))
    1.11 @@ -63,9 +64,42 @@
    1.12  AC_FUNC_STRCOLL
    1.13  AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa localeconv memchr memset modf pow setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strpbrk strrchr strstr strtoul])
    1.14  
    1.15 +
    1.16 +
    1.17 +# find JNI headers
    1.18 +AC_ARG_VAR([JAVA_INCLUDE_PATH], [The path to the jni.h])
    1.19 +AC_ARG_VAR([JAVA_INCLUDE_PATH2], [The path to jni_md.h])
    1.20 +
    1.21 +
    1.22 +if test "x$JAVA_INCLUDE_PATH" = "x"; then
    1.23 +   echo "----------------------------------"	
    1.24 +   echo "you must have JAVA_INCLUDE_PATH defined."
    1.25 +   echo "this is the path to jni.h"
    1.26 +   echo "----------------------------------"
    1.27 +fi
    1.28 +
    1.29 +if test "x$JAVA_INCLUDE_PATH2" = "x"; then
    1.30 +   echo "----------------------------------"	
    1.31 +   echo "you must have JAVA_INCLUDE_PATH2 defined."
    1.32 +   echo "this is the path to jni_md.h"
    1.33 +   echo "----------------------------------"
    1.34 +fi
    1.35 +
    1.36 +if test "x$JAVA_INCLUDE_PATH" = "x"; then
    1.37 +   AC_MSG_ERROR([JAVA_INCLUDE_PATH not defined])
    1.38 +fi
    1.39 +
    1.40 +if test "x$JAVA_INCLUDE_PATH2" = "x"; then
    1.41 +   AC_MSG_ERROR([JAVA_INCLUDE_PATH2 not defined])	
    1.42 +fi
    1.43 +
    1.44 +#AC_SUBST(JAVA_INCLUDE_PATH)
    1.45 +#AC_SUBST(JAVA_INCLUDE_PATH2)
    1.46 +
    1.47  AC_CONFIG_FILES([Makefile 
    1.48  	         src/Makefile
    1.49                   src/lua/Makefile
    1.50 +		 src/clojure/Makefile
    1.51  		 src/gb/Makefile
    1.52  		 src/gba/Makefile
    1.53  		 src/common/Makefile