File: configure.ac

package info (click to toggle)
launchtool 0.8-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 764 kB
  • ctags: 472
  • sloc: cpp: 3,330; sh: 1,106; makefile: 19
file content (59 lines) | stat: -rw-r--r-- 1,158 bytes parent folder | download | duplicates (2)
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT
AC_CONFIG_SRCDIR([configure.ac])
AM_INIT_AUTOMAKE(launchtool, 0.8)
AM_CONFIG_HEADER(config.h)

dnl Per usare subdirs
AC_PROG_MAKE_SET

dnl Pick up the Gnome macros.
dnl AM_ACLOCAL_INCLUDE(macros)

dnl GNOME_INIT
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_STDC
AC_HEADER_STDC

AC_PROG_RANLIB

dnl GNOME_COMPILE_WARNINGS
dnl GNOME_X_CHECKS

dnl Add the languages which your application supports here.
dnl ALL_LINGUAS="fr da es no it"
dnl ALL_LINGUAS="it"
dnl ALL_LINGUAS=""
dnl AM_GNU_GETTEXT

AC_LANG([C++])

dnl Directory containing pidfiles
piddir="${localstatedir}/run"
AC_SUBST(piddir)

dnl Set DOC_DIR in config.h and in Makefile.*
docdir='$(prefix)'/share/doc/${PACKAGE}
AC_SUBST(docdir)

dnl Check for execinfo.h
AH_TEMPLATE(HAVE_EXECINFO_H, [Define to 1 if you have the <execinfo.h> header file.])
AC_CHECK_HEADER([execinfo.h], [AC_DEFINE([HAVE_EXECINFO_H])])

AC_SUBST(HAVE_EXECINFO_H)

dnl Look for libpopt
AC_CHECK_LIB(popt, poptGetContext)

CXXFLAGS="$CXXFLAGS -Wall -DPID_DIR='\"$piddir\"'"

AC_CONFIG_FILES([
Makefile
src/Makefile
src/common/Makefile
])
AC_OUTPUT