michael@1: ## michael@1: ## OSSP asgui - Accounting system graphical user interface michael@12: ## Copyright (c) 2002-2009 The OSSP Project (http://www.ossp.org/) michael@12: ## Copyright (c) 2002-2009 Ralf S. Engelschall michael@12: ## Copyright (c) 2002-2009 Michael Schloh von Bennewitz michael@12: ## Copyright (c) 2002-2009 Cable & Wireless Telecommunications Services GmbH michael@1: ## michael@1: ## This file is part of OSSP asgui, an accounting system graphical user michael@3: ## interface which can be found at http://asgui.europalab.com/. michael@1: ## michael@1: ## Permission to use, copy, modify, and distribute this software for michael@1: ## any purpose with or without fee is hereby granted, provided that michael@1: ## the above copyright notice and this permission notice appear in all michael@1: ## copies. michael@1: ## michael@1: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@1: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@1: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@1: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@1: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@1: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@1: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@1: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@1: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@1: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@1: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@1: ## SUCH DAMAGE. michael@1: ## michael@1: ## configure.in: Autoconf configure template michael@1: ## michael@1: michael@1: dnl Version requirement and information michael@1: AC_PREREQ(2.53) michael@1: AC_REVISION(1.0) michael@1: AC_INIT michael@1: michael@1: ASGUI_VERSION_STR=`./shtool version -l c -d long as_version.cpp` michael@1: ./shtool echo -e "Configuring %BOSSP as-gui%b, version %B${ASGUI_VERSION_STR}%b" michael@1: AC_SUBST(ASGUI_VERSION_STR) michael@1: michael@1: dnl Process this file with autoconf michael@1: AC_CONFIG_HEADERS(ac_config.h) michael@1: AC_LANG_CPLUSPLUS michael@1: michael@1: dnl Checks basic requirements michael@1: AC_PROG_CXX michael@1: AC_PROG_CXXCPP michael@1: AC_PROG_INSTALL michael@1: michael@1: AC_PROG_CC michael@1: AC_PROG_CPP michael@1: AC_PROG_CC_STDC michael@1: michael@1: dnl Checks header requirements michael@1: AC_HEADER_STDC michael@1: AC_HEADER_TIME michael@1: AC_CHECK_HEADERS(sys/sockio.h net/if.h netinet/in.h) michael@1: michael@1: dnl Portable thread conf from acx_pthread.m4 autoconf macro michael@1: ACX_PTHREAD michael@1: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" michael@1: CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" michael@1: LIBS="`echo $PTHREAD_CFLAGS | sed -e 's;.*\(-[[pmk]]thread[[s]]*\).*;\1;'` $LIBS" michael@1: michael@1: dnl Do Qt checks michael@14: PKG_CHECK_MODULES(QT, Qt3Support QtXml, have_qt=true, AC_MSG_ERROR([No qt installation found])) michael@1: AC_SUBST(QT_LIBS) michael@1: AC_SUBST(QT_CFLAGS) michael@1: michael@1: dnl Find Qt locations michael@1: AC_CHECK_QT michael@1: AC_SUBST(QTBASE) michael@1: AC_CHECK_UIC michael@1: AC_SUBST(UIC) michael@1: AC_CHECK_MOC michael@1: AC_SUBST(MOC) michael@1: michael@1: dnl Check generic libraries michael@1: AC_CHECK_LIB(dl, dlopen, [LIBS="$LIBS -ldl"]) michael@1: AC_CHECK_LIB(rt, sched_get_priority_min, [LIBS="$LIBS -lrt"]) michael@1: michael@1: dnl Check other requirements michael@1: AC_PROG_MAKE_SET michael@1: AC_CHECK_DEBUGGING michael@1: michael@1: dnl Check low level network device necessities michael@1: # AC_CHECK_SIOCGIFHWADDR michael@1: # AC_CHECK_SIOGHWADDR michael@1: # AC_CHECK_SIOCGIFCONF michael@1: # AC_CHECK_SIOCGENADDR michael@1: # AC_STRUCT_SA_LEN michael@1: michael@1: dnl Check for Dmalloc library michael@1: AC_CHECK_EXTLIB([Dmalloc], michael@1: dmalloc, dmalloc_debug, dmalloc.h, michael@1: [AC_DEFINE(WITH_DMALLOC, 1, [Define to 1 if building with Dmalloc])]) michael@1: michael@1: dnl Test for the local CORBA implementation michael@1: AC_TEST_MICO michael@1: AC_SUBST(CORBABASE) michael@1: michael@1: dnl Test for the local SOAP implementation michael@1: AC_TEST_ESOAP michael@1: AC_SUBST(SOAPBASE) michael@1: michael@1: dnl Check data type sizes of particular architecture michael@1: dnl Hack: We're really interested in the unsigned types, michael@1: dnl but they're the same size according to ISO C++ michael@1: AC_CHECK_SIZEOF(char) michael@1: AC_CHECK_SIZEOF(short) michael@1: AC_CHECK_SIZEOF(int) michael@1: AC_CHECK_SIZEOF(long) michael@1: michael@1: enable_shared=no michael@1: export enable_shared michael@1: enable_headline=no michael@1: export enable_headline michael@1: michael@1: dnl Make all the necessary Makefiles michael@1: AC_OUTPUT(Makefile)