2005-11-12 16:27:19 -05:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
|
2006-03-30 09:43:39 -05:00
|
|
|
AC_CONFIG_AUX_DIR(build/config)
|
2005-11-12 16:27:19 -05:00
|
|
|
AM_INIT_AUTOMAKE(libfreeswitch,0.1)
|
|
|
|
AC_CONFIG_SRCDIR([src/switch.c])
|
2006-04-03 17:00:13 -04:00
|
|
|
AC_CONFIG_HEADER([src/include/switch_am_config.h])
|
2005-11-12 16:27:19 -05:00
|
|
|
|
2006-01-02 13:31:50 -05:00
|
|
|
AC_PREFIX_DEFAULT(/usr/local/freeswitch)
|
2006-01-05 18:13:00 -05:00
|
|
|
|
2005-11-12 16:27:19 -05:00
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
2006-03-29 21:12:50 -05:00
|
|
|
AC_PROG_AWK
|
2005-11-12 16:27:19 -05:00
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_INSTALL
|
2006-03-29 21:12:50 -05:00
|
|
|
AC_PROG_LIBTOOL
|
2005-11-12 16:27:19 -05:00
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
2005-11-18 19:10:16 -05:00
|
|
|
AC_CHECK_HEADERS([sys/types.h])
|
2005-11-12 16:27:19 -05:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_HEADER_TIME
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_FUNC_STRFTIME
|
2005-12-14 16:29:46 -05:00
|
|
|
AC_CHECK_FUNCS([gethostname vasprintf])
|
2005-11-12 16:27:19 -05:00
|
|
|
|
2006-02-22 16:14:22 -05:00
|
|
|
AC_C_BIGENDIAN(AC_DEFINE([__BYTE_ORDER],__BIG_ENDIAN,[Big Endian]),AC_DEFINE([__BYTE_ORDER],__LITTLE_ENDIAN,[Little Endian]))
|
|
|
|
AC_DEFINE([__LITTLE_ENDIAN],1234,[for the places where it is not defined])
|
|
|
|
AC_DEFINE([__BIG_ENDIAN],4321,[for the places where it is not defined])
|
2006-01-05 18:13:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-12-21 11:24:37 -05:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
2005-11-12 16:27:19 -05:00
|
|
|
|
2005-11-18 19:10:16 -05:00
|
|
|
AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux])
|
2005-12-13 16:26:03 -05:00
|
|
|
AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])
|
2006-01-25 18:59:02 -05:00
|
|
|
AM_CONDITIONAL(IS64BITLINUX, [test `uname -m` = x86_64])
|
2006-03-30 09:43:39 -05:00
|
|
|
# AM_CONDITIONAL(ISSUNOS, [test `uname -s` = SunOS])
|
|
|
|
# AM_CONDITIONAL(ISSUN64, [test `isainfo -b` = 64])
|
|
|
|
# AM_CONDITIONAL(ISSUNSPARC, [test `isainfo -n` = sparcv9])
|
|
|
|
# AM_CONDITIONAL(ISGCC, [test `echo $GCC` = true])
|
2005-11-18 19:10:16 -05:00
|
|
|
|
2006-01-05 18:13:00 -05:00
|
|
|
AC_OUTPUT([src/include/switch_version.h])
|