2008-12-23 21:01:25 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script
|
|
|
|
AC_INIT
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE(openbsc, 0.0alpha1)
|
|
|
|
|
2009-10-27 02:34:49 +00:00
|
|
|
dnl kernel style compile messages
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
2008-12-23 21:01:25 +00:00
|
|
|
dnl checks for programs
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
2009-02-20 18:33:00 +00:00
|
|
|
AC_PROG_RANLIB
|
2008-12-23 21:01:25 +00:00
|
|
|
|
|
|
|
dnl checks for libraries
|
2009-06-08 10:32:28 +00:00
|
|
|
AC_SEARCH_LIBS(crypt, crypt,
|
|
|
|
[LIBCRYPT="-lcrypt"; AC_DEFINE([VTY_CRYPT_PW], [], [Use crypt functionality of vty.])])
|
2008-12-23 21:01:25 +00:00
|
|
|
|
|
|
|
dnl checks for header files
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
dnl Checks for typedefs, structures and compiler characteristics
|
|
|
|
|
2009-06-08 10:32:54 +00:00
|
|
|
# The following test is taken from WebKit's webkit.m4
|
|
|
|
saved_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -fvisibility=hidden "
|
|
|
|
AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
|
|
|
|
AC_COMPILE_IFELSE([char foo;],
|
|
|
|
[ AC_MSG_RESULT([yes])
|
|
|
|
SYMBOL_VISIBILITY="-fvisibility=hidden"],
|
|
|
|
AC_MSG_RESULT([no]))
|
|
|
|
CFLAGS="$saved_CFLAGS"
|
|
|
|
AC_SUBST(SYMBOL_VISIBILITY)
|
|
|
|
|
|
|
|
|
|
|
|
dnl Generate the output
|
|
|
|
AM_CONFIG_HEADER(bscconfig.h)
|
|
|
|
|
2008-12-27 09:42:59 +00:00
|
|
|
AC_OUTPUT(
|
2009-06-08 10:32:39 +00:00
|
|
|
openbsc.pc
|
2008-12-27 09:42:59 +00:00
|
|
|
include/openbsc/Makefile
|
2009-03-11 03:29:43 +00:00
|
|
|
include/vty/Makefile
|
2009-07-29 05:37:48 +00:00
|
|
|
include/sccp/Makefile
|
2008-12-27 09:42:59 +00:00
|
|
|
include/Makefile
|
|
|
|
src/Makefile
|
|
|
|
tests/Makefile
|
2008-12-27 12:03:07 +00:00
|
|
|
tests/debug/Makefile
|
2008-12-27 09:42:59 +00:00
|
|
|
tests/timer/Makefile
|
2008-12-28 01:51:14 +00:00
|
|
|
tests/sms/Makefile
|
2008-12-28 21:55:40 +00:00
|
|
|
tests/gsm0408/Makefile
|
2008-12-31 23:25:05 +00:00
|
|
|
tests/db/Makefile
|
2009-06-10 10:36:38 +00:00
|
|
|
tests/channel/Makefile
|
2009-07-29 05:37:48 +00:00
|
|
|
tests/sccp/Makefile
|
2008-12-27 09:42:59 +00:00
|
|
|
Makefile)
|