2003-08-30 10:25:10 -04:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
2002-11-28 17:40:06 -05:00
|
|
|
|
2003-08-30 10:25:10 -04:00
|
|
|
AC_PREREQ(2.57)
|
|
|
|
AC_INIT
|
|
|
|
AM_INIT_AUTOMAKE(LWJGL, 0.7)
|
|
|
|
AC_CONFIG_SRCDIR([autogen.sh])
|
2003-09-01 08:45:47 -04:00
|
|
|
AM_CONFIG_HEADER([config.h])
|
2002-11-28 17:40:06 -05:00
|
|
|
|
2003-08-30 10:25:10 -04:00
|
|
|
AC_DISABLE_STATIC
|
|
|
|
AC_LIBTOOL_DLOPEN
|
2002-11-28 17:40:06 -05:00
|
|
|
|
2003-08-30 10:25:10 -04:00
|
|
|
# Checks for programs.
|
2002-11-28 17:40:06 -05:00
|
|
|
AC_PROG_CXX
|
2003-08-30 10:25:10 -04:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_LIBTOOL
|
2002-11-28 17:40:06 -05:00
|
|
|
|
|
|
|
|
2003-08-30 10:25:10 -04:00
|
|
|
# Checks for libraries.
|
2002-11-28 17:40:06 -05:00
|
|
|
|
2003-08-30 10:25:10 -04:00
|
|
|
# Checks for header files.
|
2002-11-29 03:29:53 -05:00
|
|
|
AC_PATH_X
|
2003-08-30 10:25:10 -04:00
|
|
|
AC_HEADER_STDC
|
2003-09-01 08:45:47 -04:00
|
|
|
|
|
|
|
AC_JNI_INCLUDE_DIR
|
|
|
|
|
|
|
|
for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
|
|
|
|
do
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
|
|
|
|
done
|
|
|
|
|
|
|
|
AC_CHECK_HEADER([stddef.h stdlib.h string.h sys/time.h])
|
2003-08-30 10:25:10 -04:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_HEADER_TIME
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_CHECK_FUNCS([gettimeofday memset strchr strstr])
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
common/Makefile
|
|
|
|
linux/Makefile])
|
|
|
|
AC_OUTPUT
|