2012-02-01 02:48:13 +01:00
|
|
|
dnl ---- configure.ac for __COMPONENT
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
AC_INIT(configure.ac)
|
2012-01-28 03:29:08 +01:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2012-02-01 02:48:13 +01:00
|
|
|
GB_INIT(__COMPONENT)
|
2007-12-30 17:41:49 +01:00
|
|
|
AC_PROG_LIBTOOL
|
2012-02-01 02:48:13 +01:00
|
|
|
|
|
|
|
#if __USE_XWINDOW || __USE_QT
|
|
|
|
GB_CHECK_XWINDOW
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if __USE_QT
|
|
|
|
GB_FIND_QT_MOC
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if __USE_PKGCONFIG
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
2012-02-01 02:48:13 +01:00
|
|
|
__NAME,
|
|
|
|
__UNAME,
|
|
|
|
[__DESCRIPTION],
|
2007-12-30 17:41:49 +01:00
|
|
|
[src],
|
2012-02-01 02:48:13 +01:00
|
|
|
__PKGCONFIG_NAME)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#if __USE_C
|
|
|
|
#define __LIBRARY_C $C_LIB
|
|
|
|
#else
|
|
|
|
#define __LIBRARY_C
|
|
|
|
#endif
|
|
|
|
#if __USE_CPP
|
|
|
|
#define __LIBRARY_CPP $CXX_LIB
|
|
|
|
#else
|
|
|
|
#define __LIBRARY_CPP
|
|
|
|
#endif
|
|
|
|
#if __USE_THREAD
|
|
|
|
#define __LIBRARY_THREAD $THREAD_LIB
|
|
|
|
#define __INCLUDE_THREAD $THREAD_INC
|
|
|
|
#else
|
|
|
|
#define __LIBRARY_THREAD
|
|
|
|
#define __INCLUDE_THREAD
|
|
|
|
#endif
|
|
|
|
|
|
|
|
GB_COMPONENT(
|
|
|
|
__NAME,
|
|
|
|
__UNAME,
|
|
|
|
[__DESCRIPTION],
|
|
|
|
[src],
|
|
|
|
#ifdef __SEARCH_INCLUDE
|
|
|
|
[GB_FIND(__SEARCH_INCLUDE, __SEARCH_INCLUDE_PATH, __SEARCH_INCLUDE_DIR)],
|
|
|
|
#else
|
|
|
|
[],
|
|
|
|
#endif
|
|
|
|
#ifdef __SEARCH_LIBRARY
|
|
|
|
[GB_FIND(__SEARCH_LIBRARY, __SEARCH_LIBRARY_PATH, __SEARCH_LIBRARY_DIR)],
|
|
|
|
#else
|
|
|
|
[],
|
|
|
|
#endif
|
|
|
|
[__LIBRARY_C __LIBRARY_CPP __LIBRARY_THREAD __LIBRARY],
|
|
|
|
[__INCLUDE_THREAD __INCLUDE])
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
|
|
|
src/Makefile \
|
|
|
|
)
|
|
|
|
|
2012-01-28 03:29:08 +01:00
|
|
|
GB_PRINT_MESSAGES
|