scyther/configure.in

46 lines
1.2 KiB
Plaintext
Raw Normal View History

2004-05-21 18:52:06 +01:00
AC_INIT(src/main.c)
AM_INIT_AUTOMAKE(scyther, 0.2, ccremers@win.tue.nl)
VERSION="0.1.0"
2004-05-24 10:23:08 +01:00
AM_CONFIG_HEADER(src/config.h)
2004-05-21 18:52:06 +01:00
AC_CONFIG_SRCDIR(src)
AC_PROG_LIBTOOL
2004-05-21 14:19:43 +01:00
dnl find and test the C compiler
AC_PROG_CC
AC_LANG_C
2004-05-22 13:58:38 +01:00
# Make sure 'make' program is set.
2004-05-21 14:19:43 +01:00
AC_PROG_MAKE_SET
2004-05-21 15:01:00 +01:00
# Checks for header files.
2004-05-21 14:19:43 +01:00
AC_HEADER_STDC
2004-05-21 15:01:00 +01:00
AC_CHECK_HEADERS([limits.h malloc.h stddef.h stdlib.h strings.h unistd.h])
2004-05-22 14:48:43 +01:00
AC_CHECK_HEADER([argtable2.h], [], AC_MSG_ERROR([Could not find argtable2.h required header file]))
2004-05-21 15:01:00 +01:00
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
2004-05-22 13:58:38 +01:00
# Checks for YACC and (F)LEX
2004-05-21 14:19:43 +01:00
AC_PROG_YACC
2004-05-21 20:18:47 +01:00
AM_PROG_LEX
2004-05-22 13:58:38 +01:00
# Argtable 2 library
AC_CHECK_LIB(argtable2, arg_parse,,AC_MSG_ERROR(Could not find the argtable2 libraries (LGPL).
Download and install from http://argtable.sourceforge.net/
or make sure that the libraries can be found by setting
LD_LIBRARY_PATH correctly.))
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [enable debugging mode]),
2004-05-24 10:23:08 +01:00
echo debugOn
AC_DEFINE(DEBUG,[1],[Defined if debugging mode is
enabled.]),
echo debugOff
)
2004-05-21 14:19:43 +01:00
2004-05-21 20:18:47 +01:00
SUBDIRS=src
2004-05-21 14:19:43 +01:00
2004-05-22 13:58:38 +01:00
dnl read Makefile.in's and write Makefiles
2004-05-21 18:52:06 +01:00
AC_OUTPUT(Makefile src/Makefile)