File: configure.ac

package info (click to toggle)
lostirc 0.4.6-4.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 3,280 kB
  • ctags: 2,138
  • sloc: sh: 9,286; ansic: 8,543; cpp: 6,374; makefile: 525; yacc: 288; sed: 16
file content (64 lines) | stat: -rw-r--r-- 1,796 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
AC_INIT
AC_CONFIG_SRCDIR([src/gtkmm/main.cpp])
AM_INIT_AUTOMAKE(lostirc, 0.4.6)
AC_CONFIG_HEADERS([config.h])
AC_PROG_CXX
AC_PROG_INSTALL
AM_PROG_LIBTOOL
PKG_CHECK_MODULES(GLIBMMDEPS, glibmm-2.4)
AC_SUBST(GLIBMM_CFLAGS)
AC_SUBST(GLIBMM_LIBS)
PKG_CHECK_MODULES(GTKMMDEPS, [gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4])
AC_SUBST(GTKMMDEPS_CFLAGS)
AC_SUBST(GTKMMDEPS_LIBS)

AM_GNU_GETTEXT_VERSION(0.14.1)
AM_GNU_GETTEXT

CXXFLAGS="$CXXFLAGS -Wall"

# Add ./configure --enable-logdebug
AC_ARG_ENABLE(logdebug,
        [  --enable-logdebug       compile with log-debugging to a file],
        logdebug=$enable_logdebug,
        logdebug=no
)
AC_MSG_CHECKING(whether to log debug info to a file)
if test "x$logdebug" = xyes; then
        AC_MSG_RESULT(yes)
        AC_DEFINE(DEBUG, [], whether to log debug info to a file)
else
        AC_MSG_RESULT(no)
fi

# Add ./configure --enable-desktopfile
AC_ARG_ENABLE(desktopfile,
        [  --disable-desktopfile   don't install .desktop/menu entry],
        desktopfile=$enable_desktopfile,
        desktopfile=yes
)
AC_MSG_CHECKING(whether to install .desktop/menu entry)
if test "x$desktopfile" = xyes; then
        AC_MSG_RESULT(yes)
        AM_CONDITIONAL(DESKTOPFILE, true)
else
        AC_MSG_RESULT(no)
        AM_CONDITIONAL(DESKTOPFILE, false)
fi

dnl Used for enabling the "-no-undefined" flag while generating DLLs
dnl Copied from the official gtk+-2 configure.in
AC_MSG_CHECKING([for some Win32 platform])
case "$host" in
  *-*-mingw*|*-*-cygwin*)
    platform_win32=yes
    ;;
  *)
    platform_win32=no
    ;;
esac
AC_MSG_RESULT([$platform_win32])
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")

AC_CONFIG_FILES([lostirc.spec Makefile src/Makefile src/libirc/Makefile src/gtkmm/Makefile po/Makefile.in intl/Makefile ])
AC_OUTPUT