~ubuntu-branches/ubuntu/oneiric/atomicparsley/oneiric

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2010-03-25 01:15:42 UTC
  • mfrom: (0.1.4 sid) (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325011542-peo860r6r555ck7y
Tags: 0.9.2~svn110-4
* Drop all local CDBS snippets: included with main cdbs package now.
* Refresh patch.
* Drop build-dependencies on devscripts and dh-buildinfo.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
 
 
3
 
 
4
 
 
5
dnl Some intro checks and defines
 
6
AC_INIT(AtomicParsley,AP_VER,pu@me.com)
 
7
AC_REVISION ($Id: configure.ac,v 1.14 2006/11/23 12:00:00 PU Exp $)
 
8
AC_PREREQ(2.50)
 
9
AC_CONFIG_SRCDIR(src/AtomicParsley.cpp)
 
10
AC_CONFIG_HEADER(src/config.h)
 
11
 
 
12
PACKAGE=atomicparsley
 
13
AP_MAJOR_VERSION=0
 
14
AP_MINOR_VERSION=9
 
15
AP_MICRO_VERSION=2
 
16
 
 
17
AP_VER=\"$AP_MAJOR_VERSION.$AP_MINOR_VERSION.$AP_MICRO_VERSION\"
 
18
AC_DEFINE_UNQUOTED(AP_VER,$AP_VER,[Define program version])
 
19
 
 
20
dnl---------------------------------------------------------
 
21
dnl Checks for programs.
 
22
AC_PROG_CXX
 
23
AC_PROG_MAKE_SET
 
24
 
 
25
dnl---------------------------------------------------------
 
26
dnl Checks for header files.
 
27
AC_HEADER_DIRENT
 
28
AC_HEADER_STDC
 
29
AC_HEADER_SYS_WAIT
 
30
AC_CHECK_HEADERS([stdio.h string.h stdlib.h time.h math.h signal.h \
 
31
                  wchar.h \
 
32
                  stddef.h \
 
33
                  sys/types.h sys/stat.h errno.h \
 
34
                  zlib.h])
 
35
 
 
36
AC_CHECK_HEADERS(getopt.h, [HAVE_GETOPT_H=1; AC_SUBST(HAVE_GETOPT_H)])
 
37
 
 
38
AC_CHECK_HEADERS(linux/cdrom.h)
 
39
 
 
40
dnl---------------------------------------------------------
 
41
dnl Checks for typedefs, structures, and compiler characteristics.
 
42
AC_C_CONST
 
43
 
 
44
dnl---------------------------------------------------------
 
45
dnl Checks for library functions.
 
46
AC_CHECK_FUNCS([fseeko fsetpos memset memcmp remove rename sranddev sscanf strdup strerror strftime strncmp strncasecmp strrchr strsep strstr strtol wmemset])
 
47
AC_FUNC_MALLOC
 
48
AC_CHECK_FUNCS(lroundf)
 
49
 
 
50
dnl---------------------------------------------------------
 
51
dnl Checks for libraries.
 
52
AC_CHECK_LIB(z, deflateEnd, [HAVE_LIBZ=1; AC_SUBST(HAVE_LIBZ)])
 
53
 
 
54
dnl---------------------------------------------------------
 
55
dnl OS checks.
 
56
dnl from aclocal.m4
 
57
AC_OS_VERSION
 
58
os_name=$AP_OS_NAME
 
59
AC_SUBST(os_name)
 
60
AC_DEFINE_UNQUOTED(os_name, $AP_OS_NAME, [OS Platform name])
 
61
if test "$os_name" = "Darwin" ; then
 
62
HAVE_DARWIN_PLATFORM="true"
 
63
AC_SUBST(HAVE_DARWIN_PLATFORM)
 
64
fi
 
65
 
 
66
dnl---------------------------------------------------------
 
67
dnl Mac OS X Universal Build
 
68
AC_ARG_ENABLE(universal, dnl
 
69
[  --disable-universal     build a universal binary on Mac OS X [default=yes]],
 
70
              universal=$enableval, universal=no)
 
71
if test "$universal" = "yes" ; then
 
72
AC_CHECK_DARWIN_UNIVERSAL_SDK
 
73
AC_SUBST(universal)
 
74
fi
 
75
 
 
76
dnl---------------------------------------------------------
 
77
AC_ARG_ENABLE(debug, dnl
 
78
[  --disable-debug_build   do not build a debug version [default=yes]],
 
79
              debug=$enableval, debug=no)
 
80
if test "$debug" = "yes" ; then
 
81
AC_DEFINE_UNQUOTED(DEBUG, $debug, [build binary with debug output])
 
82
AC_SUBST(debug)
 
83
fi
 
84
 
 
85
dnl---------------------------------------------------------
 
86
dnl Done
 
87
echo "Creating files"
 
88
AC_OUTPUT([Makefile src/Makefile])
 
89
echo
 
90
 
 
91
 
 
92
 
 
93
dnl Pretty-print status message
 
94
echo "+----------------------------------------------+"
 
95
echo "|                  SUCCESS                     |"
 
96
echo "+----------------------------------------------+"
 
97
echo "  AtomicParsley has been configured, you should"
 
98
echo "  now type 'make' to compile AtomicParsley."
 
99
echo
 
100
echo "+----------------------------------------------+"
 
101
echo "|             YOUR CONFIGURATION               |"
 
102
echo "+----------------------------------------------+"
 
103
 
 
104
echo "  Version:      $AP_MAJOR_VERSION.$AP_MINOR_VERSION.$AP_MICRO_VERSION"
 
105
 
 
106
if test "$universal" = "no" ; then
 
107
        echo "  MacOSX universal build:       disabled"
 
108
else
 
109
        echo "  MacOSX universal build:       enabled"
 
110
fi      
 
111
 
 
112
if test "$debug" = "no" ; then
 
113
        echo "  debug build:       disabled"
 
114
else
 
115
        echo "  debug build:       enabled"
 
116
fi
 
117
 
 
118
echo