File: configure.ac

package info (click to toggle)
fcitx-imlist 0.5.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 464 kB
  • sloc: sh: 1,232; ansic: 222; xml: 187; makefile: 29
file content (53 lines) | stat: -rw-r--r-- 1,230 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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([fcitx-imlist], [0.5.1], [kenhys@gmail.com])
AC_CONFIG_SRCDIR([src/fcitximlist.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE([foreign tar-pax])

# Checks for programs.
AC_PROG_CC

PKG_CHECK_MODULES([GLIB], glib-2.0 >= 2.26)
PKG_CHECK_MODULES([GIO], gio-2.0)
PKG_CHECK_MODULES([FCITX_GCLIENT], fcitx-gclient)

# For debug
AC_ARG_ENABLE(debug,
  [AS_HELP_STRING([--enable-debug],
                  [use debug flags (default=no)])],
  [fcitx_imlist_debug="$enableval"],
  [fcitx_imlist_debug="no"])
if test "x$fcitx_imlist_debug" != "xno"; then
  fcitx_imlist_debug="yes"
  if test "$CLANG" = "yes"; then
    CFLAGS="$CFLAGS -O0 -g"
    CXXFLAGS="$CXXFLAGS -O0 -g"
  elif test "$GCC" = "yes"; then
    CFLAGS="$CFLAGS -O0 -g3"
    CXXFLAGS="$CXXFLAGS -O0 -g3"
  fi
fi

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

GLIB_GSETTINGS

AC_CONFIG_FILES([
	Makefile		
	src/Makefile		
	examples/Makefile
])

AC_OUTPUT