~ubuntu-branches/ubuntu/trusty/sblim-sfcb/trusty-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2009-06-08 12:04:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090608120449-byfplk09rqz8rtg6
Tags: 1.3.3-0ubuntu1
* New upstream release.
* debian/rules: Removed rpath hacks, SFCB default build handles that now.
* Removed 1934753-remove-assignment.diff, now upstream.
* Refreshed patch cim-schema-location.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: configure.ac,v 1.69 2008/04/16 23:35:21 buccella Exp $
 
1
# $Id: configure.ac,v 1.85 2009/02/17 22:36:27 mchasal Exp $
2
2
3
3
# configure.ac
4
4
#
22
22
 
23
23
# Process this file with autoconf to produce a configure script.
24
24
 
25
 
AC_INIT(Small Footprint CIM Broker, 1.3.0, sblim-devel@lists.sourceforge.net, sblim-sfcb)
 
25
AC_INIT(Small Footprint CIM Broker, 1.3.3, sblim-devel@lists.sourceforge.net, sblim-sfcb)
26
26
AC_CONFIG_SRCDIR([providerDrv.c])
27
27
 
28
28
#disable "seems to ignore the --datarootdir setting" warnings
56
56
        [AC_HELP_STRING([--enable-slp],
57
57
                [include slp agent for SFCB - EXPERIMENTAL.])])
58
58
                
 
59
AC_ARG_ENABLE(slp-hostname-lib,
 
60
   [AC_HELP_STRING([--enable-slp-hostname-lib],
 
61
      [aquire hostname for slp registration from external library.])])
 
62
 
59
63
AC_ARG_ENABLE(qualifierrep,
60
64
        [AC_HELP_STRING([--disable-qualifierrep],
61
65
                [disable qualifier repository support.])],
70
74
        [enable_indications="yes"]
71
75
        )
72
76
 
 
77
AC_ARG_ENABLE(local_connect_only,
 
78
        [AC_HELP_STRING([--enable-local-connect-only],
 
79
                [SFCB will only support local connection. Http server will not be built.])],
 
80
        [enable_local_connect_only=$enableval],
 
81
        [enable_local_connect_only="no"]
 
82
        )
 
83
 
73
84
AC_ARG_ENABLE(default-properties,
74
85
        [AC_HELP_STRING([--disable-default-properties],
75
86
                [disable generation of default instance properties for SFCB.])],
94
105
        [AC_HELP_STRING([--enable-ipv6],
95
106
                [include ipv6 support for SFCB.])])
96
107
 
 
108
AC_ARG_ENABLE(tests,
 
109
        [AC_HELP_STRING([--enable-tests(=TESTS)],
 
110
                [Enable listed tests. If none are listed, all are enabled.])])
 
111
 
 
112
AC_ARG_ENABLE(uds,
 
113
        [AC_HELP_STRING([--enable-uds],
 
114
                [Enable UDS authentication.])])
 
115
 
97
116
# Size checks
98
117
AC_CHECK_SIZEOF(void*)
99
118
AC_CHECK_SIZEOF(int)
150
169
   AC_DEFINE(HAVE_SLP,,[SLP support enabled.])
151
170
fi
152
171
 
 
172
if test "$enable_slp_hostname_lib" == "yes"; then
 
173
   AC_DEFINE(SLP_HOSTNAME_LIB,,[SLP Hostname lib enabled])
 
174
fi
 
175
 
 
176
 
 
177
# Check and configure requested tests.
 
178
if test "$enable_tests" == "yes"; then
 
179
    # This means all tests should be on
 
180
    enable_tests="unit,gcov,wbemcli,xml,commands"
 
181
fi
 
182
 
 
183
OLDIFS="$IFS"
 
184
IFS=","
 
185
for testcase in $enable_tests;
 
186
do
 
187
    case $testcase in
 
188
        gcov)
 
189
            test_gcov=yes;;
 
190
        wbemcli)
 
191
            test_wbemcli=yes;;
 
192
        unit|unittest)
 
193
            test_unit=yes;;
 
194
        xml|xmltest)
 
195
            test_xml=yes;;
 
196
        commands|command|cmd|cmds)
 
197
            test_cmd=yes;;
 
198
        *)
 
199
            echo "Unknown testcase $testcase";;
 
200
    esac
 
201
        
 
202
done
 
203
IFS="$OLDIFS"
 
204
AM_CONDITIONAL(TEST_ENABLED,[test "$enable_tests"])
 
205
AM_CONDITIONAL(UNITTEST,[test "$test_unit" == "yes"])
 
206
AM_CONDITIONAL(GCOV,[test "$test_gcov" == "yes"])
 
207
AM_CONDITIONAL(WCTEST,[test "$test_wbemcli" == "yes"])
 
208
AM_CONDITIONAL(XMLTEST,[test "$test_xml" == "yes"])
 
209
AM_CONDITIONAL(CMDTEST,[test "$test_cmd" == "yes"])
 
210
 
 
211
if [test "$enable_tests"]; then
 
212
    # The order of TEST_SUBDIRS determines test
 
213
    # execution order.
 
214
    TEST_SUBDIRS="."
 
215
    AC_CONFIG_FILES([test/finaltest/Makefile])
 
216
    # Enable the various tests
 
217
    if [test "$test_cmd" == "yes"]; then
 
218
        TEST_SUBDIRS="$TEST_SUBDIRS commands"
 
219
        AC_CONFIG_FILES([test/commands/Makefile])
 
220
    fi
 
221
 
 
222
    if [test "$test_wbemcli" == "yes"]; then
 
223
        TEST_SUBDIRS="$TEST_SUBDIRS wbemcli"
 
224
        AC_CONFIG_FILES([test/wbemcli/Makefile])
 
225
    fi
 
226
 
 
227
    if [test "$test_xml" == "yes"]; then
 
228
        TEST_SUBDIRS="$TEST_SUBDIRS xmltest"
 
229
        AC_CONFIG_FILES([test/xmltest/Makefile])
 
230
    fi
 
231
 
 
232
    if [test "$test_unit" == "yes"]; then
 
233
        TEST_SUBDIRS="$TEST_SUBDIRS unittest"
 
234
        AC_CONFIG_FILES([test/unittest/Makefile])
 
235
        AC_DEFINE(UNITTEST,,[Unittest enabled])
 
236
    fi
 
237
 
 
238
    TEST_SUBDIRS="$TEST_SUBDIRS finaltest"
 
239
    AC_SUBST(TEST_SUBDIRS)
 
240
fi
 
241
 
 
242
if [test "$test_gcov" == "yes"]; then
 
243
    AC_CHECK_LIB(gcc,main)
 
244
    AC_CHECK_LIB(gcov,main)
 
245
    SFCB_CPPFLAGS="-D SFCB_GCOV $SFCB_CPPFLAGS"
 
246
fi
 
247
# End of test configuration 
 
248
 
 
249
if test "$enable_uds" == "yes"; then
 
250
   AC_DEFINE(HAVE_UDS,,[UDS authentication enabled])
 
251
fi
 
252
 
 
253
 
153
254
if test "$enable_qualifierrep" == "yes"; then
 
255
   LOAD_QUALIFIER_PROVIDER=
154
256
   AC_DEFINE(HAVE_QUALREP,,[Qualifier repository support enabled.])
 
257
else
 
258
   LOAD_QUALIFIER_PROVIDER='#'
155
259
fi
 
260
AC_SUBST(LOAD_QUALIFIER_PROVIDER)
156
261
 
157
262
if test "$enable_optimized_enumeration" == "yes"; then
158
263
   AC_DEFINE(HAVE_OPTIMIZED_ENUMERATION,1,[Enumeration optimization enabled.])
189
294
                ;;
190
295
     linux*)    SFCB_CMPI_PLATFORM="-D CMPI_PLATFORM_LINUX_GENERIC_GNU"
191
296
                SFCB_CMPI_OS="-D CMPI_OS_LINUX"
192
 
                SFCB_CFLAGS="-Wall -fno-strict-aliasing -fsigned-char $SFCB_CFLAGS"
 
297
                SFCB_CFLAGS="-Wall -fno-strict-aliasing -fsigned-char $SFCB_CFLAGS"
193
298
                ;;
194
299
     hpux*)     SFCB_CMPI_PLATFORM="-D CMPI_OS_HPUX"
195
300
                case $host_arch in
229
334
AC_CHECK_LIB(pthread,main)
230
335
AC_CHECK_LIB(dl,main)
231
336
AC_CHECK_LIB(z,main,[SFCB_LIBZ=-lz],[AC_MSG_ERROR([Could not find required libz])])
232
 
if test "$enable_indications" == "yes"; then
 
337
if test "$enable_indications" = "yes" ; then
 
338
   LOAD_INDICATION_PROVIDER=
233
339
   AC_DEFINE(HAVE_INDICATIONS,1,[Indication support enabled.])
234
340
   AC_CHECK_LIB(curl,main)
 
341
else
 
342
   LOAD_INDICATION_PROVIDER='#'
235
343
fi
236
344
 
 
345
AC_SUBST(LOAD_INDICATION_PROVIDER)
 
346
 
237
347
if test "$enable_ssl" = "yes"; then
238
348
   AC_CHECK_LIB(ssl,main)
239
349
   SFCB_CONF_HTTPS=true
242
352
   SFCB_CONF_HTTPS=false           
243
353
   SFCB_CONF_HTTP=true
244
354
fi
 
355
 
 
356
 
 
357
#
 
358
# if enable_local_connect_only is on then ignore whatever is set by enable_ssl
 
359
#
 
360
if test "$enable_local_connect_only" = "yes" ; then
 
361
   AC_DEFINE(LOCAL_CONNECT_ONLY_ENABLE,1,[Local Connect only.])
 
362
   SFCB_CONF_HTTPS=false           
 
363
   SFCB_CONF_HTTP=false
 
364
fi
 
365
 
245
366
AC_SUBST(SFCB_CONF_HTTPS)
246
367
AC_SUBST(SFCB_CONF_HTTP)
247
368
 
290
411
fi
291
412
AC_SUBST(INIT_STYLE)
292
413
 
293
 
# Checks for subdirectories
294
 
if test -d $srcdir/test; then
295
 
   AC_CONFIG_SUBDIRS([test])
296
 
fi
297
 
 
298
414
# Check for doxygen for generating documentation
299
415
if test "$enable_docs" = "yes"; then
300
416
   AC_CHECK_PROG(DOXYGEN,doxygen,[doxygen])
317
433
AM_CONDITIONAL(JDBC,[test "$enable_jdbc" == "yes"]) 
318
434
AM_CONDITIONAL(SSL,[test "$enable_ssl" == "yes"]) 
319
435
AM_CONDITIONAL(SLP,[test "$enable_slp" == "yes"]) 
 
436
AM_CONDITIONAL(SLP_HOSTNAME_LIB,[test "$enable_slp_hostname_lib" == "yes"])
320
437
AM_CONDITIONAL(SLP_ALONE,[test "$enable_slp" == "standalone"]) 
321
438
AM_CONDITIONAL(QUALREP,[test "$enable_qualifierrep" == "yes"]) 
322
439
AM_CONDITIONAL(PAM,[test "$enable_pam" == "yes"]) 
323
440
AM_CONDITIONAL(DOCS,[test "$enable_docs" == "yes"])
324
441
AM_CONDITIONAL(IPV6,[test "$enable_ipv6" == "yes"])
 
442
AM_CONDITIONAL(LOCAL_CONNECT_NO_INDICATION,[test "$enable_local_connect_only" == "yes" -a "$enable_indications" == "no"])
 
443
AM_CONDITIONAL(LOCAL_CONNECT_ONLY,[test "$enable_local_connect_only" == "yes"])
325
444
 
326
445
AC_CONFIG_FILES([Makefile sfcb.spec sfcbrepos.sh sfcbstage.sh sfcbunstage.sh 
327
446
                 sfcbuuid.sh sfcb.cfg.pre getSchema.sh.pre 
328
 
                 sfcb.init-redhat sfcb.init-suse sfcb.init-none 
 
447
                 sfcb.init-redhat sfcb.init-suse sfcb.init-none default.reg
329
448
                 man/genSslCert.1.pre  man/sfcbmof.1.pre 
330
449
                 man/sfcbunstage.1.pre man/sfcbuuid.1.pre man/getSchema.1.pre
331
450
                 man/sfcbrepos.1.pre  man/wbemcat.1.pre
332
451
                 man/sfcbd.1.pre man/sfcbstage.1.pre man/xmltest.1.pre 
333
 
                 sfcb-dox.conf])
 
452
                 sfcb-dox.conf test/Makefile])
334
453
AC_OUTPUT
335
454
 
336
 
echo ======================================================
337
 
echo sfcb configuration complete
338
 
echo configuration features:
339
 
echo -e "debug"\\t"${enable_debug:-no}"
340
 
echo -e "indications"\\t"${enable_indications}"
341
 
echo -e "ssl"\\t"${enable_ssl:-no}"
342
 
echo -e "jdbc"\\t"${enable_jdbc:-no}"
343
 
echo -e "slp"\\t"${enable_slp:-no}"
344
 
echo -e "qualifierrep"\\t"${enable_qualifierrep:-no}"
 
455
echo =================================================================
 
456
echo Configuration Features:
 
457
echo -e "ssl"\\t\\t\\t\\t"${enable_ssl:-no}"
 
458
echo -e "slp"\\t\\t\\t\\t"${enable_slp:-no}"
 
459
echo -e "slp hostname lib"\\t\\t"${enable_slp_hostname_lib:-no}"
 
460
echo -e "jdbc"\\t\\t\\t\\t"${enable_jdbc:-no}"
 
461
echo -e "IPv6"\\t\\t\\t\\t"${enable_ipv6:-no}"
 
462
echo -e "indications"\\t\\t\\t"${enable_indications}"
 
463
echo -e "qualifierrep"\\t\\t\\t"${enable_qualifierrep:-no}"
 
464
echo -e "Documentation"\\t\\t\\t"${enable_docs:-no}"
 
465
echo -e "PAM authentication"\\t\\t"${enable_pam:-no}"
 
466
echo -e "local connect only "\\t\\t"${enable_local_connect_only}"
345
467
echo -e "default instance properties"\\t"${enable_default_properties}"
346
 
echo -e "PAM authentication"\\t"${enable_pam:-no}"
347
 
echo -e "Documentation"\\t"${enable_docs:-no}"
348
 
echo -e "IPv6"\\t"${enable_ipv6:-no}"
349
 
echo ======================================================
 
468
echo -e "uds"\\t\\t\\t\\t"${enable_uds:-no}"
 
469
echo -e "tests"\\t\\t\\t\\t"${enable_tests:-no}"
 
470
echo -e "debug"\\t\\t\\t\\t"${enable_debug:-no}"
 
471
echo =================================================================
 
472
echo
 
473
echo "sfcb configuration complete.  you may now run 'make'"
 
474
echo