[go: up one dir, main page]

File: configure.ac

package info (click to toggle)
libgksu1.2 1.3.8-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 3,212 kB
  • ctags: 1,337
  • sloc: sh: 9,359; ansic: 8,864; xml: 548; makefile: 477; yacc: 288; sed: 16
file content (75 lines) | stat: -rw-r--r-- 1,910 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)

AC_INIT(libgksu1.2, 1.3.8, kov@debian.org)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AC_CONFIG_SRCDIR(libgksu/gksu-context.c)
AM_CONFIG_HEADER(config.h)

MAJOR_VERSION=`echo $VERSION | cut -d '.' -f 1`
MINOR_VERSION=`echo $VERSION | cut -d '.' -f 2`
MICRO_VERSION=`echo $VERSION | cut -d '.' -f 3`

AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(MICRO_VERSION)

AM_MAINTAINER_MODE

AC_DEFINE(PACKAGE, AC_PACKAGE_NAME, [package name])
AC_DEFINE(VERSION, AC_PACKAGE_VERSION, [package version])

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL

# Checks for library functions.
ALL_LINGUAS="ca cs da de es eu hu it pl pt_BR ro ru sk sv nb nl"

AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION(0.14.1)

##################################################
# Check for gtk-doc.
##################################################

AC_ARG_WITH(html-dir, [  --with-html-dir=PATH path to installed docs ])

if test "x$with_html_dir" = "x" ; then
  HTML_DIR='${datadir}/gtk-doc/html'
else
  HTML_DIR=$with_html_dir
fi

AC_SUBST(HTML_DIR)

gtk_doc_min_version=1.0
AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then
  AC_MSG_RESULT(yes)
  GTKDOC=true
else
  AC_MSG_RESULT(no)
  GTKDOC=false
fi

dnl Let people disable the gtk-doc stuff.
AC_ARG_ENABLE(gtk-doc, [  --enable-gtk-doc  Use gtk-doc to build documentation [default=yes]], enable_gtk_doc="$enableval", enable_gtk_doc=yes)

AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test x$use_libtool = xyes)
# end of gtk-doc check

AC_CONFIG_FILES([
	Makefile
	m4/Makefile 
	intl/Makefile
	po/Makefile.in
	libgksu/Makefile
	libgksu/libgksu1.2.pc
	docs/Makefile
	])
AC_OUTPUT