2003-06-03 17:36:17 +00:00
|
|
|
dnl -*- autoconf -*-
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT(api/api_test.C)
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
|
|
|
|
dnl Checks for libraries.
|
|
|
|
dnl Replace `main' with a function in -lgen:
|
|
|
|
AC_CHECK_LIB(gen, main)
|
|
|
|
dnl Replace `main' with a function in -lm:
|
|
|
|
AC_CHECK_LIB(m, main)
|
|
|
|
dnl Replace `main' with a function in -lnsl:
|
|
|
|
AC_CHECK_LIB(nsl, main)
|
|
|
|
dnl Replace `main' with a function in -lsocket:
|
|
|
|
AC_CHECK_LIB(socket, main)
|
|
|
|
dnl Replace `main' with a function in -lstdc:
|
2002-09-26 23:12:13 +00:00
|
|
|
AC_CHECK_LIB(stdc++, main)
|
|
|
|
dnl Replace `main' with a function in -lstdc:
|
2002-04-30 22:22:54 +00:00
|
|
|
AC_CHECK_LIB(stdc, main)
|
|
|
|
dnl Replace `main' with a function in -lz:
|
2002-05-25 14:54:09 +00:00
|
|
|
AC_CHECK_LIB(z, gzopen)
|
2002-11-12 20:59:00 +00:00
|
|
|
dnl check for pthread
|
|
|
|
AC_CHECK_LIB(pthread, pthread_mutex_init, AC_DEFINE(HAVE_PTHREAD))
|
|
|
|
dnl check for GL library
|
|
|
|
AC_CHECK_LIB(GL, glCallList, AC_DEFINE(HAVE_GL_LIB))
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_SYS_WAIT
|
2003-04-08 18:36:03 +00:00
|
|
|
AC_CHECK_HEADERS(fcntl.h malloc.h strings.h sys/time.h unistd.h sys/systeminfo.h sys/swap.h sys/sysctl.h sys/resource.h sys/types.h dirent.h sys/utsname.h netdb.h netinet/in.h arpa/inet.h signal.h sys/wait.h sys/file.h sys/ipc.h sys/shm.h)
|
2002-05-25 07:30:55 +00:00
|
|
|
AC_CHECK_HEADERS(mysql/include/mysql_com.h mysql/mysql_com.h)
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_HEADER_TIME
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
AC_FUNC_VPRINTF
|
|
|
|
AC_FUNC_WAIT3
|
2002-12-16 23:51:33 +00:00
|
|
|
AC_CHECK_FUNCS(gethostname gettimeofday mkdir select socket strstr uname lockf flock)
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2003-06-03 17:36:17 +00:00
|
|
|
AC_OUTPUT(RSAEuro/source/Makefile \
|
|
|
|
apps/Makefile \
|
|
|
|
db/Makefile \
|
|
|
|
Makefile \
|
|
|
|
client/Makefile \
|
|
|
|
api/Makefile \
|
|
|
|
)
|
|
|
|
|
|
|
|
dnl sched/Makefile \
|
|
|
|
dnl lib/Makefile \
|
|
|
|
dnl tools/Makefile \
|