# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(libcpjit, 0, libcpjit@schmorp.de) AC_CONFIG_SRCDIR([cpjit.h]) AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CXX # Checks for header files. # Checks for typedefs, structures, and compiler characteristics. AC_CONFIG_FILES(Makefile) AH_BOTTOM([ #if SIZEOF_CHAR == 1 # define TYPE_INT8 char #else # error no 8-bit type found #endif #if SIZEOF_SHORT == 2 # define TYPE_INT16 short #elif SIZEOF_INT == 2 # define TYPE_INT16 int #else # error no 16-bit type found #endif #if SIZEOF_INT == 4 # define TYPE_INT32 int #elif SIZEOF_LONG == 4 # define TYPE_INT32 long #else # error no 32-bit type found #endif #if SIZEOF_INT == 8 # define TYPE_INT64 short #elif SIZEOF_LONG == 8 # define TYPE_INT64 long #elif SIZEOF_LONG_LONG == 8 # define TYPE_INT64 long long #else # error no 64-bit type found #endif ]) AC_CHECK_SIZEOF(char) AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long long) AC_DEFINE_UNQUOTED(CC,"$CC",[The C compiler to use]) AC_DEFINE_UNQUOTED(CFLAGS,"-O6 -c",[Compiler flags]) AC_DEFINE_UNQUOTED(LD,"$CC",[The linker to use]) AC_DEFINE_UNQUOTED(LFLAGS,"-O -nostdlib -lgcc -shared",[Linker flags]) AC_DEFINE_UNQUOTED(LD_R,"ld -r",[How to combine object files]) # Checks for library functions. AC_OUTPUT