/[zanavi_public1]/navit/navit/maptool/poly2tri-c/002/configure.ac
ZANavi

Contents of /navit/navit/maptool/poly2tri-c/002/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Mon Feb 4 17:41:59 2013 UTC (11 years, 1 month ago) by zoff99
File size: 4703 byte(s)
new map version, lots of fixes and experimental new features
1 # Bump on major changes to the library which should not even be
2 # compatiable with earlier versions
3 m4_define([p2tc_major_version], [0])
4
5 # Bump on new features and interface changes (feature releases)
6 m4_define([p2tc_minor_version], [1])
7
8 # Bump on revisions that do not break the interface (bug-fix releases)
9 m4_define([p2tc_micro_version], [0])
10
11 # A version string containing all three version numbers
12 m4_define([p2tc_real_version],
13 [p2tc_major_version.p2tc_minor_version.p2tc_micro_version])
14 m4_define([p2tc_version], [p2tc_real_version])
15
16 # The version number used when linking with -llibpoly2tri-c-X.Y
17 m4_define([p2tc_api_version], [p2tc_major_version.p2tc_minor_version])
18
19 # The version number of the currently implemented interface (bump on
20 # every interface change)
21 m4_define([lt_current], [1])
22
23 # The revision number of the current interface (reset to 0 on every
24 # interface change)
25 m4_define([lt_revision], [0])
26
27 # Number of interfaces implemented minus one. The library should
28 # support all interfaces between current minus age and current.
29 # Increment by 1 on every new feature addition
30 # Reset to 0 if backwards compatiability is broken
31 m4_define([lt_age], [1])
32
33 # Declare the package details
34 AC_INIT([poly2tri-c],[p2tc_real_version],[lightningismyname@gmail.com])
35
36 P2TC_MAJOR_VERSION=p2tc_major_version
37 P2TC_MINOR_VERSION=p2tc_minor_version
38 P2TC_MICRO_VERSION=p2tc_micro_version
39 P2TC_VERSION=p2tc_version
40 P2TC_REAL_VERSION=p2tc_real_version
41 P2TC_API_VERSION=p2tc_api_version
42 AC_SUBST(P2TC_MAJOR_VERSION)
43 AC_SUBST(P2TC_MINOR_VERSION)
44 AC_SUBST(P2TC_MICRO_VERSION)
45 AC_SUBST(P2TC_VERSION)
46 AC_SUBST(P2TC_REAL_VERSION)
47 AC_SUBST(P2TC_API_VERSION)
48
49 P2TC_RELEASE=p2tc_api_version
50 AC_SUBST(P2TC_RELEASE)
51
52 P2TC_LIBRARY_VERSION="lt_current:lt_revision:lt_age"
53 AC_SUBST(P2TC_LIBRARY_VERSION)
54
55 # Output the auxilary build scripts to a subdirectory
56 AC_CONFIG_AUX_DIR([build-aux])
57
58 # Tell autoconf where to look for macros
59 AC_CONFIG_MACRO_DIR([m4])
60
61 # Initialize Automake with the following settings:
62 # Relax some of the GNU requirements
63 # Report all potential warnings and report all warnings as errors
64 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
65
66 # Enable silent rules is available
67 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
68
69 # Define maintainer mode
70 AM_MAINTAINER_MODE
71
72 # On automake 1.12 we will need to call AM_PROG_AR
73 # However, on some old versions it does not exist, so use and ifdef
74 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
75
76 # Initialize libtool
77 LT_INIT
78
79 # Find a C compiler
80 AC_PROG_CC
81
82 # Finding a function which may be built-in in GCC is known to fail when using
83 # -Werror, so we will only add that option afterwards. For more information, see
84 # the discussion at http://lists.gnu.org/archive/html/bug-autoconf/2010-01/msg00031.html
85
86 # Pedantic errors please
87 CFLAGS="$CFLAGS -Wall -ansi -pedantic"
88
89 # Find the standard math functions
90 # Taken from http://www.flameeyes.eu/autotools-mythbuster/autoconf/finding.html
91 AC_CHECK_HEADERS([math.h])
92 AC_SEARCH_LIBS([log10], [m], [], [
93 AC_MSG_ERROR([unable to find the log10() function])
94 ])
95
96 # Warnings as errors please
97 CFLAGS="$CFLAGS -Werror"
98
99 # Find GLib support via pkg-config
100 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.28])
101
102 CFLAGS="$CFLAGS $GLIB_CFLAGS"
103 LDFLAGS="$LDFLAGS $GLIB_LIBS"
104 LIBS="$LIBS $GLIB_LIBS"
105
106 # Allow building with debugging symbols
107 AC_MSG_CHECKING([whether to turn on debugging])
108 AC_ARG_ENABLE(debug,
109 AS_HELP_STRING([--enable-debug],[turn on debugging (default=no)]),
110 if eval "test x$enable_debug = xyes"; then
111 DEBUGFLAG="-g"
112 fi)
113
114 if test -n "$DEBUGFLAG"; then
115 AC_MSG_RESULT([yes])
116 CFLAGS="$DEBUGFLAG $CFLAGS"
117 else
118 AC_MSG_RESULT([no])
119 fi
120
121 # Allow forcing a validation of the CDT after each refinement step
122 AC_MSG_CHECKING([whether to enable CDT validation during refinement])
123 AC_ARG_ENABLE(cdt-validation,
124 AS_HELP_STRING([--enable-cdt-validation],[turn on CDT validation during refinement (WARNING: SLOW!, default=no)]),
125 if eval "test x$enable_cdt_validation = xyes"; then
126 P2TR_ENABLE_CDT_VALIDATION="TRUE"
127 fi)
128
129 if test -n "$P2TR_ENABLE_CDT_VALIDATION"; then
130 CDTVFLAG="-DP2TR_CDT_VALIDATE=TRUE"
131 AC_MSG_RESULT([yes])
132 else
133 CDTVFLAG="-DP2TR_CDT_VALIDATE=FALSE"
134 AC_MSG_RESULT([no])
135 fi
136
137 CFLAGS="$CDTVFLAG $CFLAGS"
138
139 # Output this configuration header file
140 AC_CONFIG_HEADERS([config.h])
141
142 # Output these files
143 AC_CONFIG_FILES([
144 poly2tri-c.pc \
145 bin/Makefile \
146 poly2tri-c/Makefile \
147 poly2tri-c/p2t/sweep/Makefile \
148 poly2tri-c/p2t/common/Makefile \
149 poly2tri-c/p2t/Makefile \
150 poly2tri-c/render/Makefile \
151 poly2tri-c/refine/Makefile \
152 Makefile \
153 ])
154
155 # Now really output
156 AC_OUTPUT

   
Visit the ZANavi Wiki