qse/ase/configure.ac

93 lines
3.1 KiB
Plaintext
Raw Normal View History

2005-02-04 15:39:11 +00:00
AC_PREREQ(2.53)
2005-01-19 08:53:41 +00:00
AC_INIT([xpkit], [deb-0.1.0])
2005-11-20 14:22:00 +00:00
AC_REVISION([$Revision: 1.52 $])
2005-01-19 11:58:26 +00:00
AC_CONFIG_HEADER([xp/config.h])
2005-01-18 15:26:29 +00:00
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
2005-01-19 10:23:38 +00:00
AC_PROG_RANLIB
2005-01-18 15:26:29 +00:00
# Checks for libraries.
2005-03-26 09:49:09 +00:00
AC_CHECK_LIB(pthread, pthread_create)
AC_CHECK_LIB(nsl, gethostbyname)
AC_CHECK_LIB(socket, connect)
2005-03-28 12:33:22 +00:00
AC_CHECK_LIB(rt, nanosleep)
2005-01-18 15:26:29 +00:00
# Checks for header files.
2005-01-20 15:56:42 +00:00
AC_HEADER_STDC
2005-01-19 11:58:26 +00:00
AC_CHECK_HEADER([unistd.h], [AC_DEFINE([XP_HAVE_UNISTD_H],[],[unistd.h])])
AC_CHECK_HEADER([fcntl.h], [AC_DEFINE([XP_HAVE_FCNTL_H],[],[fcntl.h])])
AC_CHECK_HEADER([stdarg.h], [AC_DEFINE([XP_HAVE_STDARG_H],[],[stdarg.h])])
AC_CHECK_HEADER([stddef.h], [AC_DEFINE([XP_HAVE_STDDEF_H],[],[stddef.h])])
AC_CHECK_HEADER([limits.h], [AC_DEFINE([XP_HAVE_LIMITS_H],[],[limits.h])])
AC_CHECK_HEADER([wchar.h], [AC_DEFINE([XP_HAVE_WCHAR_H],[],[wchar.h])])
2005-04-23 16:08:14 +00:00
AC_CHECK_HEADER([poll.h], [AC_DEFINE([XP_HAVE_POLL_H],[],[poll.h])])
2005-04-24 14:55:40 +00:00
AC_CHECK_HEADER([sys/epoll.h], [AC_DEFINE([XP_HAVE_SYS_EPOLL_H],[],[sys/epoll.h])])
2005-01-18 15:26:29 +00:00
# Checks for typedefs, structures, and compiler characteristics.
2005-01-19 10:23:38 +00:00
AC_C_BIGENDIAN(
2005-01-19 11:58:26 +00:00
[AC_DEFINE([XP_ENDIAN_BIG],[],[Big Endian])],
[AC_DEFINE([XP_ENDIAN_LITTLE],[],[Little Endian])],
[AC_DEFINE([XP_ENDIAN_UNKNOWN],[],[Unknown Endian])])
2005-01-18 15:26:29 +00:00
2005-02-13 11:27:35 +00:00
# Checks for data types
AC_CHECK_TYPE(long long, [AC_DEFINE([XP_HAVE_LONG_LONG],[],[long long])])
AC_CHECK_TYPE(long double, [AC_DEFINE([XP_HAVE_LONG_DOUBLE],[],[long double])])
2005-02-13 14:22:22 +00:00
AC_CHECK_SIZEOF(char)
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
2005-02-13 16:04:56 +00:00
AC_CHECK_SIZEOF(__int8)
AC_CHECK_SIZEOF(__int16)
AC_CHECK_SIZEOF(__int32)
2005-02-13 14:48:02 +00:00
AC_CHECK_SIZEOF(__int64)
2005-02-14 03:13:32 +00:00
AC_CHECK_SIZEOF(__int128)
AC_CHECK_SIZEOF(void *)
2005-02-13 14:48:02 +00:00
AC_CHECK_SIZEOF(float)
AC_CHECK_SIZEOF(double)
AC_CHECK_SIZEOF(long double)
2005-02-13 14:22:22 +00:00
2005-03-28 12:33:22 +00:00
#AC_CHECK_FUNC(nanosleep,[AC_DEFINE([XP_HAVE_NANOSLEEP])],
# [AC_CHECK_LIB(rt,nanosleep, LIBS="${LIBS} -lrt",
# [AC_CHECK_LIB(posix4,nanosleep, LIBS="${LIBS} -lposix4")])])
2005-01-18 15:26:29 +00:00
# Checks for library functions.
2005-01-20 15:56:42 +00:00
#AC_FUNC_MEMCMP
#AC_FUNC_REALLOC
#AC_CHECK_FUNCS([memset])
2005-01-18 15:26:29 +00:00
2005-08-11 07:36:33 +00:00
AC_ARG_ENABLE([wchar], [AC_HELP_STRING([--enable-wchar],
[use wchar_t a default charater type when enabled (default. yes)])],
enable_wchar_is=$enableval,enable_wchar_is=yes)
if test "$enable_wchar_is" = "yes"
2005-04-18 04:44:09 +00:00
then
AC_DEFINE([XP_CHAR_IS_WCHAR],[],[char is wchar])
else
AC_DEFINE([XP_CHAR_IS_MCHAR],[],[char is mchar])
fi
2005-01-19 11:21:55 +00:00
2005-08-11 07:36:33 +00:00
AC_ARG_ENABLE([reentrant], [AC_HELP_STRING([--enable-reentrant],
[define _REENTRANT (default. yes)])],
enable_reentrant_is=$enableval,enable_reentrant_is=yes)
if test "$enable_reentrant_is" = "yes"
2005-08-07 13:38:41 +00:00
then
[CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"]
fi
2005-01-21 03:15:36 +00:00
AC_CONFIG_FILES([
2005-04-20 15:37:07 +00:00
Makefile utils/Makefile xp/Makefile xpp/Makefile
2005-05-17 08:56:11 +00:00
xp/bas/Makefile xp/net/Makefile xp/utl/Makefile xp/stx/Makefile
2005-05-30 07:19:09 +00:00
xp/sce/Makefile xp/lsp/Makefile xp/mp/Makefile xp/lnx/Makefile
2005-05-01 13:30:15 +00:00
xp/test/bas/Makefile xp/test/net/Makefile xp/test/utl/Makefile
2005-05-30 07:19:09 +00:00
xp/test/stx/Makefile xp/test/sce/Makefile xp/test/lsp/Makefile
2005-05-17 08:56:11 +00:00
xp/test/lnx/Makefile
2005-04-29 08:14:39 +00:00
xpp/bas/Makefile xpp/net/Makefile xpp/sys/Makefile xpp/utl/Makefile
2005-05-17 08:56:11 +00:00
xpp/test/bas/Makefile xpp/test/net/Makefile
2005-09-22 16:01:48 +00:00
xpp/test/sys/Makefile xpp/test/utl/Makefile
2005-11-20 11:11:31 +00:00
xpo/bas/Makefile xpo/net/Makefile
2005-11-20 14:22:00 +00:00
xpo/test/bas/Makefile xpo/test/net/Makefile])
2005-01-18 15:26:29 +00:00
AC_OUTPUT