convert from svn repository: remove tags directory
[lttv.git] / trunk / lttng-xenomai / LinuxTraceToolkitViewer-0.8.61-xenoltt / acinclude.m4
CommitLineData
03d7fdf3 1# AC_LTTV_SETUP_FOR_TARGET
2# ----------------
3# Check for utils function
4### [AC_REQUIRE([AC_CANONICAL_HOST])dnl
5AC_DEFUN([AC_LTTV_SETUP_FOR_TARGET],
6[ UTIL_LIBS=""
7case $host in
8*-*-cygwin*)
9 AC_SUBST(SHARED_FLAGS,"-module -no-undefined -XLinker --export-all-symbols")
10 AC_SUBST(PLUGIN_FLAGS,"-module -no-undefined -avoid-version")
11 AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is required in order to compile LinuxTraceToolkit]))
12 cygwin=true
13 ;;
14
15*-*-mingw*)
16 # mingw32 doesn't have libutil
17 AC_SUBST(SHARED_FLAGS,"-module -no-undefined -avoid-version -XLinker --export-all-symbols")
18 AC_SUBST(PLUGIN_FLAGS,"-module -no-undefined -avoid-version")
19 mingw=true
20 ;;
21*)
22 AC_SUBST(SHARED_FLAGS,"-module")
23 AC_SUBST(PLUGIN_FLAGS,"-module -avoid-version")
24 AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is required in order to compile LinuxTraceToolkit]))
25 linux=true
26 ;;
27esac
28AM_CONDITIONAL(LTTV_MINGW, test x$mingw = xtrue)
29AM_CONDITIONAL(LTTV_CYGWIN, test x$cygwin = xtrue)
30AM_CONDITIONAL(LTTV_LINUX, test x$linux = xtrue)
31AM_CONDITIONAL(USE_UTIL_LIBS, test "$UTIL_LIBS" != "")
32])# AC_LTTV_SETUP_FOR_TARGET
This page took 0.029229 seconds and 4 git commands to generate.