File: configure.ac

package info (click to toggle)
pm-utils 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,092 kB
  • ctags: 116
  • sloc: sh: 2,516; xml: 1,015; makefile: 158; ansic: 152
file content (56 lines) | stat: -rw-r--r-- 1,815 bytes parent folder | download
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
AC_PREREQ(2.52)
AC_INIT(pm-utils, 1.3.0)
AC_CONFIG_SRCDIR(src)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)

AC_PROG_CC
AC_PROG_LN_S

dnl ---------------------------------------------------------------------------
dnl - Extra verbose warning switches
dnl ---------------------------------------------------------------------------
CPPFLAGS="$CPPFLAGS -Wall -Werror"

dnl ---------------------------------------------------------------------------
dnl - Debugging switches
dnl ---------------------------------------------------------------------------
CPPFLAGS="$CPPFLAGS -g"

dnl ---------------------------------------------------------------------------
dnl - Manual page build
dnl ---------------------------------------------------------------------------
AC_PATH_PROG(XMLTO, xmlto, no)
AM_CONDITIONAL(HAVE_XMLTO, [test "x$XMLTO" != xno])

dnl ---------------------------------------------------------------------------
dnl - Make paths available for source files
dnl ---------------------------------------------------------------------------
AC_SUBST(SYSCONFDIR, $sysconfdir)
AC_SUBST(DATADIR, $datadir)
AC_SUBST(BINDIR, $bindir)
AC_SUBST(SBINDIR, $sbindir)

dnl ---------------------------------------------------------------------------
dnl - Makefiles, etc.
dnl ---------------------------------------------------------------------------
AC_OUTPUT([
Makefile
pm-utils.pc
man/Makefile
src/Makefile
pm/Makefile
pm/sleep.d/Makefile
pm/power.d/Makefile
pm/module.d/Makefile
])

dnl ==========================================================================
echo "
                    pm-utils $VERSION
                  ==================

        prefix:                    ${prefix}
        compiler:                  ${CC}
        cflags:                    ${CFLAGS}
"