File: configure.ac

package info (click to toggle)
silly 0.1.0-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,896 kB
  • ctags: 212
  • sloc: sh: 8,893; cpp: 1,252; makefile: 125; ansic: 51
file content (67 lines) | stat: -rw-r--r-- 1,707 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
60
61
62
63
64
65
66
67
dnl File: Configure.ac 
dnl Author: Olivier Delannoy 
dnl Created: 2006-06-11

dnl Consts 
m4_define([pkg_name], [SILLY])
m4_define([pkg_prefix], [SILLY])
m4_define([pkg_maintener], [Olivier Delannoy <Olivier.Delannoy@gmail.com>])
m4_define([pkg_vers_major], [0])
m4_define([pkg_vers_minor], [1])
m4_define([pkg_vers_micro], [0])
m4_define([pkg_version], [pkg_vers_major.pkg_vers_minor.pkg_vers_micro])
m4_define([pkg_fullname],   [pkg_name pkg_version])

dnl Version requirements 
m4_define([required_autoconf_version], [2.59])
AC_PREREQ(required_autoconf_version)
AC_INIT([pkg_name], 
	[pkg_version], 
	[pkg_maintener], 
	[pkg_fullname])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([pkg_name], [pkg_version])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_HEADERS([include/SILLYOptions.h])
AC_CONFIG_SRCDIR([src/SILLYImage.cpp])
AM_SANITY_CHECK
AM_ENABLE_SHARED
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_MAKE_SET
dnl make libtool aware we may be building Win32 DLLs
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
AM_PROG_LIBTOOL

dnl is this is on mingw32?
AC_MINGW32
AM_CONDITIONAL([SILLY_MINGW32], [test x$MINGW32 = xyes])

SILLY_OPT
SILLY_IMAGE_FORMAT

dnl versioning info for libtool 
dnl Note this is the ABI version which is not the same as our actual library version 
SILLY_CURRENT=1
SILLY_REVISION=0
SILLY_AGE=0
SILLY_VERSION_INFO=$SILLY_CURRENT:$SILLY_REVISION:$SILLY_AGE
AC_SUBST(SILLY_VERSION_INFO)
AC_CONFIG_FILES([Makefile
		 include/Makefile
		 src/Makefile
         SILLY.xcodeproj/Makefile
		 SILLY.pc])
AC_OUTPUT
dnl summary 
echo 
echo pkg_fullname
echo 
echo "Build options: "
echo "  Prefix ..........................: $prefix"
SILLY_OPT_SUM 
SILLY_IMAGE_FORMAT_SUM