File: configure.ac

package info (click to toggle)
genders 1.22-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 4,068 kB
  • sloc: ansic: 19,722; sh: 10,115; perl: 537; makefile: 497; yacc: 490; cpp: 407; java: 318; python: 157; lex: 53
file content (264 lines) | stat: -rw-r--r-- 6,433 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
##*****************************************************************************
## $Id: configure.ac,v 1.56 2010-03-24 21:32:37 chu11 Exp $
##*****************************************************************************
## Process this file with autoconf to produce a configure script.
##*****************************************************************************

##
# Prologue.
##
AC_INIT([genders], [1.22])
AC_META
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_SRCDIR([README])
AC_CANONICAL_SYSTEM

##
# Automake support.
##
AM_INIT_AUTOMAKE(tar-ustar)
AM_CONFIG_HEADER([config/config.h])
AM_MAINTAINER_MODE

# Update this information before a public release only!

# libgenders versioning
#
# If the library source code has changed at all since the last update,
# then increment c:r: c:r+1:).                                                                                     
#
# If any interfaces have been added, removed, or changed since the
# last update, increment current, and set revision to 0.
#
# If any interfaces have been added since the last public release,
# then increment age.
#
# If any interfaces have been removed or changed since the last public                                                
# release, then set age to 0.
#                                               
LIBGENDERS_CURRENT=3
LIBGENDERS_REVISION=2
LIBGENDERS_AGE=3
LIBGENDERS_VERSION_INFO=$LIBGENDERS_CURRENT:$LIBGENDERS_REVISION:$LIBGENDERS_AGE
AC_SUBST([LIBGENDERS_VERSION_INFO])

# C++ library
LIBGENDERSPLUSPLUS_CURRENT=2
LIBGENDERSPLUSPLUS_REVISION=0
LIBGENDERSPLUSPLUS_AGE=0
LIBGENDERSPLUSPLUS_VERSION_INFO=$LIBGENDERSPLUSPLUS_CURRENT:$LIBGENDERSPLUSPLUS_REVISION:$LIBGENDERSPLUSPLUS_AGE
AC_SUBST([LIBGENDERSPLUSPLUS_VERSION_INFO])

# Java JNI C library
LIBGENDERSJNI_CURRENT=0
LIBGENDERSJNI_REVISION=0
LIBGENDERSJNI_AGE=0
LIBGENDERSJNI_VERSION_INFO=$LIBGENDERSJNI_CURRENT:$LIBGENDERSJNI_REVISION:$LIBGENDERSJNI_AGE
AC_SUBST([LIBGENDERSJNI_VERSION_INFO])

# Perl Libgenders and Genders versioning
PERLGENDERS_MAJOR=0
PERLGENDERS_MINOR=03
PERLGENDERS_VERSION=$PERLGENDERS_MAJOR.$PERLGENDERS_MINOR
AC_SUBST([PERLGENDERS_VERSION])

# Python Libgenders and Genders versioning
PYTHONGENDERS_MAJOR=1
PYTHONGENDERS_MINOR=2
PYTHONGENDERS_VERSION=$PYTHONGENDERS_MAJOR.$PYTHONGENDERS_MINOR
AC_SUBST([PYTHONGENDERS_VERSION])

##
# Checks for programs.
##
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_PROG_MAKE_SET
AM_PROG_LEX
AC_PROG_YACC
AM_CONDITIONAL(WITH_GNU_LD, test "$with_gnu_ld" = "yes")
AC_PATH_PROG([PERL], [perl])
AC_PATH_PROG([PYTHON], [python])
AC_PATH_PROG([POD2MAN], [pod2man], [/usr/bin/pod2man], [$PATH:/usr/perl5/bin/])
AC_PATH_PROG([JAVAC], [javac])
AC_PATH_PROG([JAVAH], [javah])
AC_PATH_PROG([JAVA], [java])
AC_PATH_PROG([JAR], [jar])
AC_PATH_PROG([JAVADOC], [javadoc])
AC_DEBUG

##
## achu: Solaris 10 (and maybe some other earlier Solarises) bison has
## a bug which segfaults.  So we use the below to force yacc usage
## when we need to .
##
AC_MSG_CHECKING(for --with-force-yacc )
AC_ARG_WITH(force-yacc,
   AC_HELP_STRING([--with-force-yacc],
                  [force yacc to be used]),
   [ case "$withval" in
   yes)
       ac_force_yacc=yes
       ;;
   no)
       ac_force_yacc=no
       ;;
   *)
       ac_force_yacc=no
       ;;
   esac ]
) 
AC_MSG_RESULT(${ac_force_yacc=no})
if test "$ac_force_yacc" = yes; then
  YACC=yacc
  AC_SUBST(FORCE_YACC)
fi

##
##
##
AC_MSG_CHECKING(for --with-non-shortened-hostnames)
AC_ARG_WITH(non-shortened-hostnames,
   AC_HELP_STRING([--with-non-shortened-hostnames],
                  [allow non-shortened hostnames with periods]),
   [ case "$withval" in
   yes)
       ac_non_shortened_hostnames=yes
       ;;
   no)
       ac_non_shortened_hostnames=no
       ;;
   *)
       ac_non_shortened_hostnames=no
       ;;
   esac ]
) 
AC_MSG_RESULT(${ac_non_shortened_hostnames=no})

if test x"${ac_non_shortened_hostnames}" = xyes; then
   AC_DEFINE([WITH_NON_SHORTENED_HOSTNAMES], [1], [Define if you want to support non shortened hostnames])
fi

##
# Checks for header files.
##
AC_HEADER_STDC
AC_CHECK_HEADERS( \
  fcntl.h \
  unistd.h \
  getopt.h \
  paths.h \
)

#
# Check for default paths
#
AC_GENDERS_FILE

#
# Check for extension stuff
#
AC_EXTENSION_DESTDIR

#
# Check for perl stuff
#
AC_PERL_EXTENSIONS
AM_CONDITIONAL(WITH_PERL_EXTENSIONS, [test "$ac_with_perl_extensions" = "yes"])

#
# Determine Perl section-3 man page extension
#
PERLMAN3EXT=`$PERL -MConfig -e 'print $Config{man3ext}'`
AC_SUBST([PERLMAN3EXT])

#
# Determine Perl Install Location
#
AC_PERL_SITE_ARCH
AC_PERL_VENDOR_ARCH
if test "$ac_with_perl_site_arch" = yes && \
   test "$ac_with_perl_vendor_arch" = yes ; then
   AC_MSG_ERROR([cannot specify both perl site arch and vendor arch])
elif test "$ac_with_perl_site_arch" = yes; then
   PERL_ARCH_INSTALL=site
elif test "$ac_with_perl_vendor_arch" = yes; then
   PERL_ARCH_INSTALL=vendor
else
   PERL_ARCH_INSTALL=vendor
fi
AC_SUBST(PERL_ARCH_INSTALL)

#
# Check for python stuff
#
AC_PYTHON_EXTENSIONS
AM_CONDITIONAL(WITH_PYTHON_EXTENSIONS, [test "$ac_with_python_extensions" = "yes"])

#
# Check for c++ stuff
#
AC_CPLUSPLUS_EXTENSIONS
AM_CONDITIONAL(WITH_CPLUSPLUS_EXTENSIONS, [test "$ac_with_cplusplus_extensions" = "yes"])

#
# Check for java stuff
#
AC_JAVA_EXTENSIONS
AM_CONDITIONAL(WITH_JAVA_EXTENSIONS, [test "$ac_with_java_extensions" = "yes"])

##
# Checks for typedefs, structures, and compiler characteristics.
##
AC_C_BIGENDIAN
AC_C_CONST
AC_TYPE_UID_T

##
# Checks for library functions.
##
AC_CHECK_FUNCS( \
  strcmp \
  strlen \
  strcpy \
  strchr \
  strsep \
  strspn \
  strtok_r \
  getopt_long \
)

##
# Epilogue.
##
AC_CONFIG_FILES( \
  genders.spec \
  Makefile \
  src/Makefile \
  src/libcommon/Makefile \
  src/libgenders/Makefile \
  src/nodeattr/Makefile \
  src/libgenders/genders.h \
  src/extensions/Makefile \
  src/extensions/cplusplus/Makefile \
  src/extensions/perl/Makefile \
  src/extensions/perl/Libgenders/Makefile \
  src/extensions/perl/Libgenders/Libgenders.pm \
  src/extensions/perl/Genders/Makefile \
  src/extensions/perl/Genders/Genders.pm \
  src/extensions/python/Makefile \
  src/extensions/python/genderssetup.py \
  src/extensions/java/Makefile \
  src/testsuite/Makefile \
  src/testsuite/libgenders/Makefile \
  src/testsuite/libgenders/testdatabases/Makefile \
  compat/Makefile \
  contrib/Makefile \
  contrib/php/Makefile \
  man/Makefile \
  man/compat/Makefile \
)
AC_OUTPUT