~ubuntu-branches/ubuntu/quantal/opendrim-lmp-simpleidentitymanagement/quantal

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Guillaume BOTTEX
  • Date: 2010-06-21 15:54:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100621155400-myesv5hd2f3s8x9y
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Process this file with autoconf to produce a configure script.
 
2
 
 
3
#################################################################################
 
4
# Linux Management Providers (LMP), Simple Identity Management provider package
 
5
# Copyright (C) 2007 Frederic Desmons, ETRI <desmons@etri.re.kr, desmons_frederic@yahoo.fr>
 
6
 
7
# This program is being developed under the "OpenDRIM" project.
 
8
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
 
9
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
 
10
 
11
# This program is free software; you can redistribute it and/or
 
12
# modify it under the terms of the GNU General Public License
 
13
# as published by the Free Software Foundation; version 2
 
14
# of the License.
 
15
 
16
# This program is distributed in the hope that it will be useful,
 
17
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
# GNU General Public License for more details.
 
20
 
21
# You should have received a copy of the GNU General Public License
 
22
# along with this program; if not, write to the Free Software
 
23
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
24
#################################################################################
 
25
 
 
26
#################################################################################
 
27
# To contributors, please leave your contact information in this section
 
28
# AND comment your changes in the source code.
 
29
 
30
# Modified by 2009 Khahramon NURIDDINOV, TUIT <qahramon0786@gmail.com>
 
31
# Modified by 2009 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr>
 
32
#################################################################################
 
33
 
 
34
AC_PREREQ(2.59)
 
35
AC_COPYRIGHT([[###############################################################################
 
36
Note: This Copyright statement covers the OpenDRIM original parts of this file.
 
37
It does NOT concern the parts generated by autoconf.
 
38
Linux Management Providers (LMP), Simple_Identity_Management provider package
 
39
Copyright (C) 2007 Frederic Desmons, ETRI <desmons@etri.re.kr, desmons_frederic@yahoo.fr>
 
40
 
 
41
This program is being developed under the "OpenDRIM" project.
 
42
The "OpenDRIM" project web page: http://opendrim.sourceforge.net
 
43
The "OpenDRIM" project mailing list: opendrim@googlegroups.com
 
44
 
 
45
This program is free software; you can redistribute it and/or
 
46
modify it under the terms of the GNU General Public License
 
47
as published by the Free Software Foundation; version 2
 
48
of the License.
 
49
 
 
50
This program is distributed in the hope that it will be useful,
 
51
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
52
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
53
GNU General Public License for more details.
 
54
 
 
55
You should have received a copy of the GNU General Public License
 
56
along with this program; if not, write to the Free Software
 
57
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
58
###############################################################################]])
 
59
 
 
60
AC_INIT(Simple_Identity_Management provider package, -, -)
 
61
SHOW_COPYRIGHT
 
62
AC_CONFIG_HEADER([config.h])
 
63
AM_INIT_AUTOMAKE([foreign])
 
64
 
 
65
AC_CANONICAL_HOST
 
66
case $host_cpu in
 
67
     i*86) HW=INTEL;;
 
68
     s390*) HW=S390;;
 
69
     ppc*) HW=PPC;;
 
70
     x86_64) HW=X86_64;;
 
71
     ia64) HW=IA64;;
 
72
     **) HW=GENERIC;;
 
73
esac
 
74
 
 
75
# Configuration
 
76
AC_ARG_VAR([CIMSERVER],[the target CIM server (pegasus|sfcb|openwbem).])
 
77
AC_ARG_VAR([CIMNAMESPACE],[the target CIM namespace (default: root/cimv2)])
 
78
AC_ARG_VAR([INTEROPNAMESPACE],[the target interoperability namespace (default: Interop (pegasus and sfcb) or root/Interop (openwbem))])
 
79
AC_ARG_VAR([PROVIDERDIR],[the directory where the CMPI providers will be installed.])
 
80
AC_ARG_VAR([COMMONLIBDIR],[the directory where the package common libraries will be installed.])
 
81
 
 
82
# Checks for programs.
 
83
AC_PROG_CXX
 
84
AC_PROG_CC
 
85
AC_PROG_INSTALL
 
86
AC_PROG_LIBTOOL
 
87
 
 
88
# Check for CIM server (defined in acinclude.m4)
 
89
CHECK_CIMSERVER
 
90
 
 
91
# Check for CIM namespace (defined in acinclude.m4)
 
92
CHECK_CIMNAMESPACE
 
93
 
 
94
# Check for interoperability namespace (defined in acinclude.m4)
 
95
CHECK_INTEROPNAMESPACE
 
96
 
 
97
# Check for OpenDRIM Common library (defined in acinclude.m4)
 
98
CHECK_OPENDRIMCOMMONLIBRARY
 
99
 
 
100
# Checks for header files.
 
101
AC_HEADER_DIRENT
 
102
AC_HEADER_STDC
 
103
AC_HEADER_SYS_WAIT
 
104
AC_CHECK_HEADERS([pthread.h])
 
105
 
 
106
# Check for CMPI headers (defined in acinclude.m4)
 
107
CHECK_CMPIHEADERS
 
108
 
 
109
# Check for OpenDRIM Common headers (defined in acinclude.m4)
 
110
CHECK_OPENDRIMCOMMONHEADERS
 
111
 
 
112
# Checks for typedefs, structures, and compiler characteristics.
 
113
AC_HEADER_STDBOOL
 
114
AC_C_CONST
 
115
AC_C_INLINE
 
116
AC_TYPE_MODE_T
 
117
AC_TYPE_OFF_T
 
118
AC_TYPE_SIZE_T
 
119
AC_HEADER_TIME
 
120
AC_STRUCT_TM
 
121
 
 
122
AC_CONFIG_FILES([Makefile Common/Makefile OpenDRIM_AccountOnSystem/Makefile OpenDRIM_AccountCapabilities/Makefile OpenDRIM_AccountIdentity/Makefile OpenDRIM_AccountAssignedIdentity/Makefile OpenDRIM_GroupAssignedIdentity/Makefile OpenDRIM_AccountManagementServiceAffectsIdentity/Makefile OpenDRIM_AccountManagementService/Makefile OpenDRIM_HostedAccountManagementService/Makefile OpenDRIM_RegisteredSimpleIdentityManagementProfile/Makefile OpenDRIM_AccountManagementServiceConformsToProfile/Makefile OpenDRIM_Group/Makefile OpenDRIM_AccountManagementServiceCapabilities/Makefile OpenDRIM_AccountAssociatedCapabilities/Makefile OpenDRIM_GroupIdentity/Makefile OpenDRIM_IdentityInGroup/Makefile OpenDRIM_AccountManagementCapabilities/Makefile OpenDRIM_Account/Makefile OpenDRIM_GroupOnSystem/Makefile test/Makefile])
 
123
 
 
124
CFLAGS="$CFLAGS -D$HW -DCMPI_PLATFORM_LINUX_GENERIC_GNU -I../Common -I$OPENDRIMCOMMONINCLUDE -I$OPENDRIMCOMMONINCLUDE/cmpi"
 
125
CPPFLAGS="$CPPFLAGS -D$HW -DCMPI_PLATFORM_LINUX_GENERIC_GNU -I../Common -I$OPENDRIMCOMMONINCLUDE -I$OPENDRIMCOMMONINCLUDE/cmpi"
 
126
 
 
127
echo "-------------------------------------------------------"
 
128
echo "CIMSERVER: " $CIMSERVER
 
129
echo "PROVIDERDIR: " $PROVIDERDIR
 
130
echo "COMMONLIBDIR: " $COMMONLIBDIR
 
131
echo "CFLAGS : " $CFLAGS
 
132
echo "CXXFLAGS : " $CXXFLAGS
 
133
echo "CPPFLAGS:" $CPPFLAGS
 
134
echo "-------------------------------------------------------"
 
135
 
 
136
AC_OUTPUT
 
137
 
 
138
echo "You may now run make"