You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(26) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(5) |
Feb
(16) |
Mar
(5) |
Apr
(5) |
May
(13) |
Jun
(12) |
Jul
(1) |
Aug
(2) |
Sep
(13) |
Oct
(6) |
Nov
(1) |
Dec
(29) |
2008 |
Jan
(2) |
Feb
(2) |
Mar
(2) |
Apr
(57) |
May
(35) |
Jun
(45) |
Jul
(132) |
Aug
(87) |
Sep
(141) |
Oct
(86) |
Nov
(17) |
Dec
(2) |
2009 |
Jan
(3) |
Feb
(2) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <mik...@us...> - 2008-07-01 23:53:27
|
Revision: 682 http://omc.svn.sourceforge.net/omc/?rev=682&view=rev Author: mike-brasher Date: 2008-07-01 16:53:36 -0700 (Tue, 01 Jul 2008) Log Message: ----------- Moved headers from DIST to SOURCES. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-01 23:52:02 UTC (rev 681) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-01 23:53:36 UTC (rev 682) @@ -14,12 +14,7 @@ LANEndpointProvider.c \ ReferencedProfileProvider.c \ RegisteredProfileProvider.c \ - SystemDeviceProvider.c - -liblinux_ethportprovider_la_LIBADD = \ - -lkonkret - -EXTRA_DIST = \ + SystemDeviceProvider.c \ CIM_Capabilities.h \ CIM_ConcreteJob.h \ CIM_LogicalDevice.h \ @@ -41,5 +36,11 @@ ReferencedProfile.h \ RegisteredProfileComputerSystem.h \ RegisteredProfile.h \ - SystemDevice.h \ + SystemDevice.h + +liblinux_ethportprovider_la_LIBADD = \ + -lkonkret + +EXTRA_DIST = \ EthernetPort.kon + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-01 23:51:58
|
Revision: 681 http://omc.svn.sourceforge.net/omc/?rev=681&view=rev Author: mike-brasher Date: 2008-07-01 16:52:02 -0700 (Tue, 01 Jul 2008) Log Message: ----------- Added EthernetPort.kon file to distribution list. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-01 23:50:29 UTC (rev 680) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-01 23:52:02 UTC (rev 681) @@ -41,4 +41,5 @@ ReferencedProfile.h \ RegisteredProfileComputerSystem.h \ RegisteredProfile.h \ - SystemDevice.h + SystemDevice.h \ + EthernetPort.kon This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-01 23:50:20
|
Revision: 680 http://omc.svn.sourceforge.net/omc/?rev=680&view=rev Author: mike-brasher Date: 2008-07-01 16:50:29 -0700 (Tue, 01 Jul 2008) Log Message: ----------- Added script to cleanup generated files. Added Paths: ----------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh 2008-07-01 23:50:29 UTC (rev 680) @@ -0,0 +1,18 @@ +#!/bin/sh + +# Clean up files created by autotools. + +rm -rf \ + configure \ + Makefile.in \ + depcomp \ + config.guess \ + config.sub \ + ltmain.sh \ + config.h.in \ + autom4te.cache \ + missing \ + aclocal.m4 \ + install-sh \ + mof/Makefile.in \ + src/Makefile.in Property changes on: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-01 23:49:55
|
Revision: 679 http://omc.svn.sourceforge.net/omc/?rev=679&view=rev Author: mike-brasher Date: 2008-07-01 16:50:02 -0700 (Tue, 01 Jul 2008) Log Message: ----------- Removed generated file. Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING 2008-07-01 23:48:02 UTC (rev 678) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING 2008-07-01 23:50:02 UTC (rev 679) @@ -1 +0,0 @@ -link /usr/share/automake-1.10/COPYING \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-01 23:47:55
|
Revision: 678 http://omc.svn.sourceforge.net/omc/?rev=678&view=rev Author: mike-brasher Date: 2008-07-01 16:48:02 -0700 (Tue, 01 Jul 2008) Log Message: ----------- Added missing file. Added Paths: ----------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/bootstrap.sh Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/bootstrap.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/bootstrap.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/bootstrap.sh 2008-07-01 23:48:02 UTC (rev 678) @@ -0,0 +1,7 @@ +#!/bin/sh +touch NEWS README AUTHORS ChangeLog +aclocal \ +&& autoconf \ +&& autoheader \ +&& libtoolize --force --copy \ +&& automake --add-missing Property changes on: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/bootstrap.sh ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-01 23:46:34
|
Revision: 677 http://omc.svn.sourceforge.net/omc/?rev=677&view=rev Author: mike-brasher Date: 2008-07-01 16:46:44 -0700 (Tue, 01 Jul 2008) Log Message: ----------- Added missing files. Added Paths: ----------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/AUTHORS cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/NEWS cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.original Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/AUTHORS =================================================================== Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/NEWS =================================================================== Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-01 23:46:44 UTC (rev 677) @@ -0,0 +1,44 @@ +lib_LTLIBRARIES = liblinux_ethportprovider.la + +liblinux_ethportprovider_la_SOURCES = \ + common.c \ + DeviceSAPImplementationProvider.c \ + ElementCapabilitiesLANEndpointProvider.c \ + ElementCapabilitiesProvider.c \ + ElementConformsToProfileProvider.c \ + EnabledLogicalElementCapabilitiesLANEndpointProvider.c \ + EnabledLogicalElementCapabilitiesProvider.c \ + EthernetPortProvider.c \ + EthernetPortResource.c \ + HostedAccessPointProvider.c \ + LANEndpointProvider.c \ + ReferencedProfileProvider.c \ + RegisteredProfileProvider.c \ + SystemDeviceProvider.c + +liblinux_ethportprovider_la_LIBADD = \ + -lkonkret + +EXTRA_DIST = \ + CIM_Capabilities.h \ + CIM_ConcreteJob.h \ + CIM_LogicalDevice.h \ + CIM_ManagedElement.h \ + CIM_ServiceAccessPoint.h \ + CIM_System.h \ + common.h \ + ComputerSystem.h \ + DeviceSAPImplementation.h \ + ElementCapabilities.h \ + ElementCapabilitiesLANEndpoint.h \ + ElementConformsToProfile.h \ + EnabledLogicalElementCapabilities.h \ + EnabledLogicalElementCapabilitiesLANEndpoint.h \ + EthernetPort.h \ + EthernetPortResource.h \ + HostedAccessPoint.h \ + LANEndpoint.h \ + ReferencedProfile.h \ + RegisteredProfileComputerSystem.h \ + RegisteredProfile.h \ + SystemDevice.h Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.original =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.original (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.original 2008-07-01 23:46:44 UTC (rev 677) @@ -0,0 +1,69 @@ +TARGET = libEthernetPortProvider.so + +SOURCES = \ + common.c \ + EthernetPortResource.c \ + LANEndpointProvider.c \ + EthernetPortProvider.c \ + DeviceSAPImplementationProvider.c \ + HostedAccessPointProvider.c \ + RegisteredProfileProvider.c \ + ElementConformsToProfileProvider.c \ + ReferencedProfileProvider.c \ + SystemDeviceProvider.c \ + EnabledLogicalElementCapabilitiesProvider.c \ + ElementCapabilitiesProvider.c \ + EnabledLogicalElementCapabilitiesLANEndpointProvider.c \ + ElementCapabilitiesLANEndpointProvider.c + +LIBRARIES += konkret + +FLAGS = -fPIC -Wall -O2 + +OBJECTS = $(SOURCES:.c=.o) + +$(TARGET): $(OBJECTS) + gcc -shared $(FLAGS) -o $(TARGET) $(OBJECTS) -lkonkret + +%.o : %.c + gcc -c $(FLAGS) $< + +clean: + rm -f $(TARGET) $(OBJECTS) + +##============================================================================== +## +## gen: +## +##============================================================================== + +PREFIX=/usr/local +MOFSDIR=$(PREFIX)/var/lib/sfcb/stage/mofs +REGSDIR=$(PREFIX)/var/lib/sfcb/stage/regs + +MOFS = \ + -m $(MOFSDIR)/root/cimv2/Linux_Base.mof \ + -m EthernetPort.mof \ + -m EthernetPortInterop.mof \ + +gen: + konkret $(MOFS) -f EthernetPort.kon + +##============================================================================== +## +## install: +## +##============================================================================== + +install: + su -c "make install-su" + +install-su: + cp $(TARGET) $(PREFIX)/lib + mkdir -p $(MOFSDIR)/root/cimv2 + cp EthernetPort.mof $(MOFSDIR)/root/cimv2 + mkdir -p $(MOFSDIR)/root/interop + cp EthernetPortInterop.mof $(MOFSDIR)/root/interop + cp EthernetPort.reg $(REGSDIR) + $(PREFIX)/bin/sfcbrepos < yes + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-01 23:44:56
|
Revision: 676 http://omc.svn.sourceforge.net/omc/?rev=676&view=rev Author: mike-brasher Date: 2008-07-01 16:45:02 -0700 (Tue, 01 Jul 2008) Log Message: ----------- Converted to autotools. Added Paths: ----------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/ChangeLog cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/Makefile.am cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/README cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/configure.ac cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPortInterop.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/Makefile.am Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortInterop.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING 2008-07-01 23:45:02 UTC (rev 676) @@ -0,0 +1 @@ +link /usr/share/automake-1.10/COPYING \ No newline at end of file Property changes on: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING ___________________________________________________________________ Name: svn:special + * Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/ChangeLog =================================================================== Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/Makefile.am (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/Makefile.am 2008-07-01 23:45:02 UTC (rev 676) @@ -0,0 +1,5 @@ +## Process this file with automake to produce Makefile.in + +AUTOMAKE_OPTIONS = gnu + +SUBDIRS = . src mof Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/README =================================================================== Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/configure.ac =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/configure.ac (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/configure.ac 2008-07-01 23:45:02 UTC (rev 676) @@ -0,0 +1,15 @@ +# Process this file with autoconf to produce a configure script +AC_PREREQ(2.57) +AC_INIT(sblim-cmpi-ethport_profile, 1.0.0) +AM_INIT_AUTOMAKE +AC_CONFIG_SRCDIR([src]) +AC_CONFIG_HEADER([config.h]) +AC_PROG_LIBTOOL +AC_PREFIX_DEFAULT(/usr) +AC_PROG_CC +AC_PROG_CPP +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET +AC_CONFIG_FILES([Makefile src/Makefile mof/Makefile]) +AC_OUTPUT Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.mof (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.mof 2008-07-01 23:45:02 UTC (rev 676) @@ -0,0 +1,80 @@ +[Association] +class Linux_DeviceSAPImplementation : CIM_DeviceSAPImplementation +{ +}; + +[Association] +class Linux_HostedAccessPoint : CIM_HostedAccessPoint +{ +}; + +[Association] +class Linux_SystemDevice : CIM_SystemDevice +{ +}; + +[Association] +class Linux_ElementCapabilities : CIM_ElementCapabilities +{ +}; + +class Linux_EnabledLogicalElementCapabilities : + CIM_EnabledLogicalElementCapabilities +{ +}; + +//============================================================================== +// +// Ethernet port profile classes +// +//============================================================================== + +class Linux_EthernetPort : CIM_EthernetPort +{ +}; + +class Linux_LANEndpoint : CIM_LANEndpoint +{ +}; + +[Association] +class Linux_DeviceSAPImplementationEthernetPort : Linux_DeviceSAPImplementation +{ +}; + +[Association] +class Linux_SystemDeviceEthernetPort : Linux_SystemDevice +{ + [Key] Linux_ComputerSystem REF GroupComponent; + [Key] Linux_EthernetPort REF PartComponent; +}; + +[Association] +class Linux_HostedAccessPointEthernetPort : Linux_HostedAccessPoint +{ +}; + +class Linux_EnabledLogicalElementCapabilitiesEthernetPort : + Linux_EnabledLogicalElementCapabilities +{ +}; + +[Association] +class Linux_ElementCapabilitiesEthernetPort : Linux_ElementCapabilities +{ + [Key] Linux_EthernetPort REF ManagedElement; + [Key] Linux_EnabledLogicalElementCapabilitiesEthernetPort REF Capabilities; +}; + +class Linux_EnabledLogicalElementCapabilitiesLANEndpoint : + Linux_EnabledLogicalElementCapabilities +{ +}; + +[Association] +class Linux_ElementCapabilitiesLANEndpoint : Linux_ElementCapabilities +{ + [Key] Linux_LANEndpoint REF ManagedElement; + [Key] Linux_EnabledLogicalElementCapabilitiesLANEndpoint REF Capabilities; +}; + Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPortInterop.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPortInterop.mof (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPortInterop.mof 2008-07-01 23:45:02 UTC (rev 676) @@ -0,0 +1,54 @@ +//============================================================================== +// +// These should be relocated to cmpi-base: +// +//============================================================================== + +class Linux_RegisteredProfile : CIM_RegisteredProfile +{ +}; + +[Association] +class Linux_ElementConformsToProfile : CIM_ElementConformsToProfile +{ +}; + +[Association] +class Linux_ReferencedProfile : CIM_ReferencedProfile +{ +}; + +//============================================================================== +// +// This should be relocated "Base Server" profile. +// +//============================================================================== + +class Linux_RegisteredProfileComputerSystem : Linux_RegisteredProfile +{ +}; + +//============================================================================== +// +// Ethernet Port Profile Registration Related Classes +// +//============================================================================== + +class Linux_RegisteredProfileEthernetPort : Linux_RegisteredProfile +{ +}; + +[Association] +class Linux_ElementConformsToProfileEthernetPort : Linux_ElementConformsToProfile +{ + [Key] Linux_RegisteredProfileEthernetPort REF ConformantStandard; + [Key] Linux_EthernetPort REF ManagedElement; +}; + +[Association] +class Linux_ReferencedProfileEthernetPort : Linux_ReferencedProfile +{ + [Key] Linux_RegisteredProfileComputerSystem REF Antecedent; + [Key] Linux_RegisteredProfileEthernetPort REF Dependent; +}; + Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/Makefile.am (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/Makefile.am 2008-07-01 23:45:02 UTC (rev 676) @@ -0,0 +1,3 @@ +EXTRA_DIST = \ + EthernetPortInterop.mof \ + EthernetPort.mof Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.mof 2008-06-27 20:19:19 UTC (rev 675) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.mof 2008-07-01 23:45:02 UTC (rev 676) @@ -1,80 +0,0 @@ -[Association] -class Linux_DeviceSAPImplementation : CIM_DeviceSAPImplementation -{ -}; - -[Association] -class Linux_HostedAccessPoint : CIM_HostedAccessPoint -{ -}; - -[Association] -class Linux_SystemDevice : CIM_SystemDevice -{ -}; - -[Association] -class Linux_ElementCapabilities : CIM_ElementCapabilities -{ -}; - -class Linux_EnabledLogicalElementCapabilities : - CIM_EnabledLogicalElementCapabilities -{ -}; - -//============================================================================== -// -// Ethernet port profile classes -// -//============================================================================== - -class Linux_EthernetPort : CIM_EthernetPort -{ -}; - -class Linux_LANEndpoint : CIM_LANEndpoint -{ -}; - -[Association] -class Linux_DeviceSAPImplementationEthernetPort : Linux_DeviceSAPImplementation -{ -}; - -[Association] -class Linux_SystemDeviceEthernetPort : Linux_SystemDevice -{ - [Key] Linux_ComputerSystem REF GroupComponent; - [Key] Linux_EthernetPort REF PartComponent; -}; - -[Association] -class Linux_HostedAccessPointEthernetPort : Linux_HostedAccessPoint -{ -}; - -class Linux_EnabledLogicalElementCapabilitiesEthernetPort : - Linux_EnabledLogicalElementCapabilities -{ -}; - -[Association] -class Linux_ElementCapabilitiesEthernetPort : Linux_ElementCapabilities -{ - [Key] Linux_EthernetPort REF ManagedElement; - [Key] Linux_EnabledLogicalElementCapabilitiesEthernetPort REF Capabilities; -}; - -class Linux_EnabledLogicalElementCapabilitiesLANEndpoint : - Linux_EnabledLogicalElementCapabilities -{ -}; - -[Association] -class Linux_ElementCapabilitiesLANEndpoint : Linux_ElementCapabilities -{ - [Key] Linux_LANEndpoint REF ManagedElement; - [Key] Linux_EnabledLogicalElementCapabilitiesLANEndpoint REF Capabilities; -}; - Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortInterop.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortInterop.mof 2008-06-27 20:19:19 UTC (rev 675) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortInterop.mof 2008-07-01 23:45:02 UTC (rev 676) @@ -1,54 +0,0 @@ -//============================================================================== -// -// These should be relocated to cmpi-base: -// -//============================================================================== - -class Linux_RegisteredProfile : CIM_RegisteredProfile -{ -}; - -[Association] -class Linux_ElementConformsToProfile : CIM_ElementConformsToProfile -{ -}; - -[Association] -class Linux_ReferencedProfile : CIM_ReferencedProfile -{ -}; - -//============================================================================== -// -// This should be relocated "Base Server" profile. -// -//============================================================================== - -class Linux_RegisteredProfileComputerSystem : Linux_RegisteredProfile -{ -}; - -//============================================================================== -// -// Ethernet Port Profile Registration Related Classes -// -//============================================================================== - -class Linux_RegisteredProfileEthernetPort : Linux_RegisteredProfile -{ -}; - -[Association] -class Linux_ElementConformsToProfileEthernetPort : Linux_ElementConformsToProfile -{ - [Key] Linux_RegisteredProfileEthernetPort REF ConformantStandard; - [Key] Linux_EthernetPort REF ManagedElement; -}; - -[Association] -class Linux_ReferencedProfileEthernetPort : Linux_ReferencedProfile -{ - [Key] Linux_RegisteredProfileComputerSystem REF Antecedent; - [Key] Linux_RegisteredProfileEthernetPort REF Dependent; -}; - Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile 2008-06-27 20:19:19 UTC (rev 675) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile 2008-07-01 23:45:02 UTC (rev 676) @@ -1,69 +0,0 @@ -TARGET = libEthernetPortProvider.so - -SOURCES = \ - common.c \ - EthernetPortResource.c \ - LANEndpointProvider.c \ - EthernetPortProvider.c \ - DeviceSAPImplementationProvider.c \ - HostedAccessPointProvider.c \ - RegisteredProfileProvider.c \ - ElementConformsToProfileProvider.c \ - ReferencedProfileProvider.c \ - SystemDeviceProvider.c \ - EnabledLogicalElementCapabilitiesProvider.c \ - ElementCapabilitiesProvider.c \ - EnabledLogicalElementCapabilitiesLANEndpointProvider.c \ - ElementCapabilitiesLANEndpointProvider.c - -LIBRARIES += konkret - -FLAGS = -fPIC -Wall -O2 - -OBJECTS = $(SOURCES:.c=.o) - -$(TARGET): $(OBJECTS) - gcc -shared $(FLAGS) -o $(TARGET) $(OBJECTS) -lkonkret - -%.o : %.c - gcc -c $(FLAGS) $< - -clean: - rm -f $(TARGET) $(OBJECTS) - -##============================================================================== -## -## gen: -## -##============================================================================== - -PREFIX=/usr/local -MOFSDIR=$(PREFIX)/var/lib/sfcb/stage/mofs -REGSDIR=$(PREFIX)/var/lib/sfcb/stage/regs - -MOFS = \ - -m $(MOFSDIR)/root/cimv2/Linux_Base.mof \ - -m EthernetPort.mof \ - -m EthernetPortInterop.mof \ - -gen: - konkret $(MOFS) -f EthernetPort.kon - -##============================================================================== -## -## install: -## -##============================================================================== - -install: - su -c "make install-su" - -install-su: - cp $(TARGET) $(PREFIX)/lib - mkdir -p $(MOFSDIR)/root/cimv2 - cp EthernetPort.mof $(MOFSDIR)/root/cimv2 - mkdir -p $(MOFSDIR)/root/interop - cp EthernetPortInterop.mof $(MOFSDIR)/root/interop - cp EthernetPort.reg $(REGSDIR) - $(PREFIX)/bin/sfcbrepos < yes - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-06-27 20:19:25
|
Revision: 675 http://omc.svn.sourceforge.net/omc/?rev=675&view=rev Author: mike-brasher Date: 2008-06-27 13:19:19 -0700 (Fri, 27 Jun 2008) Log Message: ----------- First cut of ethernet port profile. Added Paths: ----------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/ cmpiprofiles/sblim-cmpi-ethernet_port_profile/branches/ cmpiprofiles/sblim-cmpi-ethernet_port_profile/tags/ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_Capabilities.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ConcreteJob.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_LogicalDevice.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ManagedElement.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ServiceAccessPoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_System.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ComputerSystem.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementation.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilities.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfile.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilities.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.kon cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.reg cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortInterop.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfile.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfile.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileComputerSystem.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDevice.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/common.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/common.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/yes Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_Capabilities.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_Capabilities.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_Capabilities.h 2008-06-27 20:19:19 UTC (rev 675) @@ -0,0 +1,417 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_Capabilities_h +#define _konkrete_CIM_Capabilities_h + +#include <konkret/konkret.h> + +/* +**============================================================================== +** +** struct CIM_CapabilitiesRef +** +**============================================================================== +*/ + +/* classname=CIM_Capabilities */ +typedef struct _CIM_CapabilitiesRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_Capabilities features */ + const KString InstanceID; +} +CIM_CapabilitiesRef; + +static const unsigned char __CIM_CapabilitiesRef_sig[] = +{ + 0x10,0x43,0x49,0x4d,0x5f,0x43,0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x69, + 0x65,0x73,0x00,0x01,0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49, + 0x44,0x00, +}; + +KINLINE void CIM_CapabilitiesRef_Init( + CIM_CapabilitiesRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_CapabilitiesRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_CapabilitiesRef_InitFromInstance( + CIM_CapabilitiesRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_CapabilitiesRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_CapabilitiesRef_InitFromObjectPath( + CIM_CapabilitiesRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_CapabilitiesRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_CapabilitiesRef_Print( + const CIM_CapabilitiesRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_CapabilitiesRef_ToInstance( + const CIM_CapabilitiesRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_CapabilitiesRef_ToObjectPath( + const CIM_CapabilitiesRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_CapabilitiesRef_NameSpace( + CIM_CapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_CapabilitiesRef_SetString_InstanceID( + CIM_CapabilitiesRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void CIM_CapabilitiesRef_Set_InstanceID( + CIM_CapabilitiesRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_CapabilitiesRef_Null_InstanceID( + CIM_CapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void CIM_CapabilitiesRef_Clr_InstanceID( + CIM_CapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_Capabilities +** +**============================================================================== +*/ + +/* classname=CIM_Capabilities */ +typedef struct _CIM_Capabilities +{ + KBase __base; + /* CIM_ManagedElement features */ + const KString Caption; + const KString Description; + const KString ElementName; + /* CIM_Capabilities features */ + const KString InstanceID; +} +CIM_Capabilities; + +static const unsigned char __CIM_Capabilities_sig[] = +{ + 0x10,0x43,0x49,0x4d,0x5f,0x43,0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x69, + 0x65,0x73,0x00,0x04,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c, + 0x0b,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b, + 0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x4c,0x0a,0x49, + 0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00, +}; + +KINLINE void CIM_Capabilities_Init( + CIM_Capabilities* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_Capabilities_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_Capabilities_InitFromInstance( + CIM_Capabilities* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_Capabilities_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_Capabilities_InitFromObjectPath( + CIM_Capabilities* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_Capabilities_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_Capabilities_Print( + const CIM_Capabilities* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_Capabilities_ToInstance( + const CIM_Capabilities* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_Capabilities_ToObjectPath( + const CIM_Capabilities* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_Capabilities_NameSpace( + CIM_Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_Capabilities_SetString_Caption( + CIM_Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void CIM_Capabilities_Set_Caption( + CIM_Capabilities* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_Capabilities_Null_Caption( + CIM_Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void CIM_Capabilities_Clr_Caption( + CIM_Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void CIM_Capabilities_SetString_Description( + CIM_Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void CIM_Capabilities_Set_Description( + CIM_Capabilities* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_Capabilities_Null_Description( + CIM_Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void CIM_Capabilities_Clr_Description( + CIM_Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void CIM_Capabilities_SetString_ElementName( + CIM_Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_Capabilities_Set_ElementName( + CIM_Capabilities* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_Capabilities_Null_ElementName( + CIM_Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void CIM_Capabilities_Clr_ElementName( + CIM_Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void CIM_Capabilities_SetString_InstanceID( + CIM_Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void CIM_Capabilities_Set_InstanceID( + CIM_Capabilities* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_Capabilities_Null_InstanceID( + CIM_Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void CIM_Capabilities_Clr_InstanceID( + CIM_Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** CIM_Capabilities methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus CIM_Capabilities_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CIM_CapabilitiesRef self; + + KReturnIf(CIM_CapabilitiesRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_CIM_Capabilities_h */ Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ConcreteJob.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ConcreteJob.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ConcreteJob.h 2008-06-27 20:19:19 UTC (rev 675) @@ -0,0 +1,2330 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_ConcreteJob_h +#define _konkrete_CIM_ConcreteJob_h + +#include <konkret/konkret.h> + +/* +**============================================================================== +** +** struct CIM_ConcreteJobRef +** +**============================================================================== +*/ + +/* classname=CIM_ConcreteJob */ +typedef struct _CIM_ConcreteJobRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_ManagedSystemElement features */ + /* CIM_LogicalElement features */ + /* CIM_Job features */ + /* CIM_ConcreteJob features */ + const KString InstanceID; +} +CIM_ConcreteJobRef; + +static const unsigned char __CIM_ConcreteJobRef_sig[] = +{ + 0x0f,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6e,0x63,0x72,0x65,0x74,0x65,0x4a,0x6f, + 0x62,0x00,0x01,0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44, + 0x00, +}; + +KINLINE void CIM_ConcreteJobRef_Init( + CIM_ConcreteJobRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_ConcreteJobRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_ConcreteJobRef_InitFromInstance( + CIM_ConcreteJobRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_ConcreteJobRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_ConcreteJobRef_InitFromObjectPath( + CIM_ConcreteJobRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_ConcreteJobRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_ConcreteJobRef_Print( + const CIM_ConcreteJobRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_ConcreteJobRef_ToInstance( + const CIM_ConcreteJobRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_ConcreteJobRef_ToObjectPath( + const CIM_ConcreteJobRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_ConcreteJobRef_NameSpace( + CIM_ConcreteJobRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_ConcreteJobRef_SetString_InstanceID( + CIM_ConcreteJobRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ConcreteJobRef_Set_InstanceID( + CIM_ConcreteJobRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ConcreteJobRef_Null_InstanceID( + CIM_ConcreteJobRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void CIM_ConcreteJobRef_Clr_InstanceID( + CIM_ConcreteJobRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_ConcreteJob +** +**============================================================================== +*/ + +/* classname=CIM_ConcreteJob */ +typedef struct _CIM_ConcreteJob +{ + KBase __base; + /* CIM_ManagedElement features */ + const KString Caption; + const KString Description; + const KString ElementName; + /* CIM_ManagedSystemElement features */ + const KDateTime InstallDate; + const KString Name; + const KUint16A OperationalStatus; + const KStringA StatusDescriptions; + const KString Status; + const KUint16 HealthState; + /* CIM_LogicalElement features */ + /* CIM_Job features */ + const KString JobStatus; + const KDateTime TimeSubmitted; + const KDateTime ScheduledStartTime; + const KDateTime StartTime; + const KDateTime ElapsedTime; + const KUint32 JobRunTimes; + const KUint8 RunMonth; + const KSint8 RunDay; + const KSint8 RunDayOfWeek; + const KDateTime RunStartInterval; + const KUint16 LocalOrUtcTime; + const KDateTime UntilTime; + const KString Notify; + const KString Owner; + const KUint32 Priority; + const KUint16 PercentComplete; + const KBoolean DeleteOnCompletion; + const KUint16 ErrorCode; + const KString ErrorDescription; + const KUint16 RecoveryAction; + const KString OtherRecoveryAction; + /* CIM_ConcreteJob features */ + const KString InstanceID; + const KUint16 JobState; + const KDateTime TimeOfLastStateChange; + const KDateTime TimeBeforeRemoval; +} +CIM_ConcreteJob; + +static const unsigned char __CIM_ConcreteJob_sig[] = +{ + 0x0f,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6e,0x63,0x72,0x65,0x74,0x65,0x4a,0x6f, + 0x62,0x00,0x22,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b, + 0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x45, + 0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x0d,0x0b,0x49,0x6e, + 0x73,0x74,0x61,0x6c,0x6c,0x44,0x61,0x74,0x65,0x00,0x0c,0x04,0x4e,0x61,0x6d, + 0x65,0x00,0x83,0x11,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x61,0x6c, + 0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x8c,0x12,0x53,0x74,0x61,0x74,0x75,0x73, + 0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x0c,0x06, + 0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0b,0x48,0x65,0x61,0x6c,0x74,0x68, + 0x53,0x74,0x61,0x74,0x65,0x00,0x0c,0x09,0x4a,0x6f,0x62,0x53,0x74,0x61,0x74, + 0x75,0x73,0x00,0x0d,0x0d,0x54,0x69,0x6d,0x65,0x53,0x75,0x62,0x6d,0x69,0x74, + 0x74,0x65,0x64,0x00,0x0d,0x12,0x53,0x63,0x68,0x65,0x64,0x75,0x6c,0x65,0x64, + 0x53,0x74,0x61,0x72,0x74,0x54,0x69,0x6d,0x65,0x00,0x0d,0x09,0x53,0x74,0x61, + 0x72,0x74,0x54,0x69,0x6d,0x65,0x00,0x0d,0x0b,0x45,0x6c,0x61,0x70,0x73,0x65, + 0x64,0x54,0x69,0x6d,0x65,0x00,0x05,0x0b,0x4a,0x6f,0x62,0x52,0x75,0x6e,0x54, + 0x69,0x6d,0x65,0x73,0x00,0x01,0x08,0x52,0x75,0x6e,0x4d,0x6f,0x6e,0x74,0x68, + 0x00,0x02,0x06,0x52,0x75,0x6e,0x44,0x61,0x79,0x00,0x02,0x0c,0x52,0x75,0x6e, + 0x44,0x61,0x79,0x4f,0x66,0x57,0x65,0x65,0x6b,0x00,0x0d,0x10,0x52,0x75,0x6e, + 0x53,0x74,0x61,0x72,0x74,0x49,0x6e,0x74,0x65,0x72,0x76,0x61,0x6c,0x00,0x03, + 0x0e,0x4c,0x6f,0x63,0x61,0x6c,0x4f,0x72,0x55,0x74,0x63,0x54,0x69,0x6d,0x65, + 0x00,0x0d,0x09,0x55,0x6e,0x74,0x69,0x6c,0x54,0x69,0x6d,0x65,0x00,0x0c,0x06, + 0x4e,0x6f,0x74,0x69,0x66,0x79,0x00,0x0c,0x05,0x4f,0x77,0x6e,0x65,0x72,0x00, + 0x05,0x08,0x50,0x72,0x69,0x6f,0x72,0x69,0x74,0x79,0x00,0x03,0x0f,0x50,0x65, + 0x72,0x63,0x65,0x6e,0x74,0x43,0x6f,0x6d,0x70,0x6c,0x65,0x74,0x65,0x00,0x00, + 0x12,0x44,0x65,0x6c,0x65,0x74,0x65,0x4f,0x6e,0x43,0x6f,0x6d,0x70,0x6c,0x65, + 0x74,0x69,0x6f,0x6e,0x00,0x03,0x09,0x45,0x72,0x72,0x6f,0x72,0x43,0x6f,0x64, + 0x65,0x00,0x0c,0x10,0x45,0x72,0x72,0x6f,0x72,0x44,0x65,0x73,0x63,0x72,0x69, + 0x70,0x74,0x69,0x6f,0x6e,0x00,0x03,0x0e,0x52,0x65,0x63,0x6f,0x76,0x65,0x72, + 0x79,0x41,0x63,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x13,0x4f,0x74,0x68,0x65,0x72, + 0x52,0x65,0x63,0x6f,0x76,0x65,0x72,0x79,0x41,0x63,0x74,0x69,0x6f,0x6e,0x00, + 0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00,0x03,0x08, + 0x4a,0x6f,0x62,0x53,0x74,0x61,0x74,0x65,0x00,0x0d,0x15,0x54,0x69,0x6d,0x65, + 0x4f,0x66,0x4c,0x61,0x73,0x74,0x53,0x74,0x61,0x74,0x65,0x43,0x68,0x61,0x6e, + 0x67,0x65,0x00,0x0d,0x11,0x54,0x69,0x6d,0x65,0x42,0x65,0x66,0x6f,0x72,0x65, + 0x52,0x65,0x6d,0x6f,0x76,0x61,0x6c,0x00, +}; + +KINLINE void CIM_ConcreteJob_Init( + CIM_ConcreteJob* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_ConcreteJob_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_ConcreteJob_InitFromInstance( + CIM_ConcreteJob* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_ConcreteJob_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_ConcreteJob_InitFromObjectPath( + CIM_ConcreteJob* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_ConcreteJob_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_ConcreteJob_Print( + const CIM_ConcreteJob* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_ConcreteJob_ToInstance( + const CIM_ConcreteJob* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_ConcreteJob_ToObjectPath( + const CIM_ConcreteJob* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_ConcreteJob_NameSpace( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_ConcreteJob_SetString_Caption( + CIM_ConcreteJob* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Set_Caption( + CIM_ConcreteJob* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ConcreteJob_Null_Caption( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_Caption( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_SetString_Description( + CIM_ConcreteJob* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Set_Description( + CIM_ConcreteJob* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ConcreteJob_Null_Description( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_Description( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_SetString_ElementName( + CIM_ConcreteJob* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Set_ElementName( + CIM_ConcreteJob* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ConcreteJob_Null_ElementName( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_ElementName( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_InstallDate( + CIM_ConcreteJob* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_InstallDate( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_InstallDate( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_SetString_Name( + CIM_ConcreteJob* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Set_Name( + CIM_ConcreteJob* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ConcreteJob_Null_Name( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_Name( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean CIM_ConcreteJob_Init_OperationalStatus( + CIM_ConcreteJob* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_ConcreteJob_InitNull_OperationalStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_ConcreteJob_Set_OperationalStatus( + CIM_ConcreteJob* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 CIM_ConcreteJob_Get_OperationalStatus( + CIM_ConcreteJob* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean CIM_ConcreteJob_Null_OperationalStatus( + CIM_ConcreteJob* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void CIM_ConcreteJob_Clr_OperationalStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_ConcreteJob_OperationalStatus_Unknown 0 + +/* "Other" */ +#define CIM_ConcreteJob_OperationalStatus_Other 1 + +/* "OK" */ +#define CIM_ConcreteJob_OperationalStatus_OK 2 + +/* "Degraded" */ +#define CIM_ConcreteJob_OperationalStatus_Degraded 3 + +/* "Stressed" */ +#define CIM_ConcreteJob_OperationalStatus_Stressed 4 + +/* "Predictive Failure" */ +#define CIM_ConcreteJob_OperationalStatus_Predictive_Failure 5 + +/* "Error" */ +#define CIM_ConcreteJob_OperationalStatus_Error 6 + +/* "Non-Recoverable Error" */ +#define CIM_ConcreteJob_OperationalStatus_Non_Recoverable_Error 7 + +/* "Starting" */ +#define CIM_ConcreteJob_OperationalStatus_Starting 8 + +/* "Stopping" */ +#define CIM_ConcreteJob_OperationalStatus_Stopping 9 + +/* "Stopped" */ +#define CIM_ConcreteJob_OperationalStatus_Stopped 10 + +/* "In Service" */ +#define CIM_ConcreteJob_OperationalStatus_In_Service 11 + +/* "No Contact" */ +#define CIM_ConcreteJob_OperationalStatus_No_Contact 12 + +/* "Lost Communication" */ +#define CIM_ConcreteJob_OperationalStatus_Lost_Communication 13 + +/* "Aborted" */ +#define CIM_ConcreteJob_OperationalStatus_Aborted 14 + +/* "Dormant" */ +#define CIM_ConcreteJob_OperationalStatus_Dormant 15 + +/* "Supporting Entity in Error" */ +#define CIM_ConcreteJob_OperationalStatus_Supporting_Entity_in_Error 16 + +/* "Completed" */ +#define CIM_ConcreteJob_OperationalStatus_Completed 17 + +/* "Power Mode" */ +#define CIM_ConcreteJob_OperationalStatus_Power_Mode 18 + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_OperationalStatus_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_OperationalStatus_Vendor_Reserved 0 + +/* "Unknown" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Unknown(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Other" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Other(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 1) + +/* "OK" */ +#define CIM_ConcreteJob_Set_OperationalStatus_OK(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 2) + +/* "Degraded" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Degraded(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 3) + +/* "Stressed" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Stressed(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 4) + +/* "Predictive Failure" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 5) + +/* "Error" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Error(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 6) + +/* "Non-Recoverable Error" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 7) + +/* "Starting" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Starting(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 8) + +/* "Stopping" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Stopping(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 9) + +/* "Stopped" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Stopped(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 10) + +/* "In Service" */ +#define CIM_ConcreteJob_Set_OperationalStatus_In_Service(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 11) + +/* "No Contact" */ +#define CIM_ConcreteJob_Set_OperationalStatus_No_Contact(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 12) + +/* "Lost Communication" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 13) + +/* "Aborted" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Aborted(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 14) + +/* "Dormant" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Dormant(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 15) + +/* "Supporting Entity in Error" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 16) + +/* "Completed" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Completed(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 17) + +/* "Power Mode" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Power_Mode(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 18) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0) + +KINLINE CMPIBoolean CIM_ConcreteJob_Init_StatusDescriptions( + CIM_ConcreteJob* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_ConcreteJob_InitNull_StatusDescriptions( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_ConcreteJob_SetString_StatusDescriptions( + CIM_ConcreteJob* self, + CMPICount i, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_SetString(field, i, x); + } + return 0; +} + +KINLINE CMPIBoolean CIM_ConcreteJob_Set_StatusDescriptions( + CIM_ConcreteJob* self, + CMPICount i, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Set(field, self->__base.cb, i, s); + } + return 0; +} + +KINLINE KString CIM_ConcreteJob_GetString_StatusDescriptions( + CIM_ConcreteJob* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_GetString(field, i); + } + return KStringA_GetString(NULL, 0); +} + +KINLINE const char* CIM_ConcreteJob_Get_StatusDescriptions( + CIM_ConcreteJob* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean CIM_ConcreteJob_Null_StatusDescriptions( + CIM_ConcreteJob* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void CIM_ConcreteJob_Clr_StatusDescriptions( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_SetString_Status( + CIM_ConcreteJob* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Set_Status( + CIM_ConcreteJob* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ConcreteJob_Null_Status( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_Status( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_HealthState( + CIM_ConcreteJob* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_HealthState( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_HealthState( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_ConcreteJob_HealthState_Unknown 0 + +/* "OK" */ +#define CIM_ConcreteJob_HealthState_OK 5 + +/* "Degraded/Warning" */ +#define CIM_ConcreteJob_HealthState_Degraded_Warning 10 + +/* "Minor failure" */ +#define CIM_ConcreteJob_HealthState_Minor_failure 15 + +/* "Major failure" */ +#define CIM_ConcreteJob_HealthState_Major_failure 20 + +/* "Critical failure" */ +#define CIM_ConcreteJob_HealthState_Critical_failure 25 + +/* "Non-recoverable error" */ +#define CIM_ConcreteJob_HealthState_Non_recoverable_error 30 + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_HealthState_DMTF_Reserved 0 + +/* "Unknown" */ +#define CIM_ConcreteJob_Set_HealthState_Unknown(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 0) + +/* "OK" */ +#define CIM_ConcreteJob_Set_HealthState_OK(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 5) + +/* "Degraded/Warning" */ +#define CIM_ConcreteJob_Set_HealthState_Degraded_Warning(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 10) + +/* "Minor failure" */ +#define CIM_ConcreteJob_Set_HealthState_Minor_failure(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 15) + +/* "Major failure" */ +#define CIM_ConcreteJob_Set_HealthState_Major_failure(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 20) + +/* "Critical failure" */ +#define CIM_ConcreteJob_Set_HealthState_Critical_failure(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 25) + +/* "Non-recoverable error" */ +#define CIM_ConcreteJob_Set_HealthState_Non_recoverable_error(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 30) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_HealthState_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 0) + +KINLINE void CIM_ConcreteJob_SetString_JobStatus( + CIM_ConcreteJob* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->JobStatus; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Set_JobStatus( + CIM_ConcreteJob* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->JobStatus; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ConcreteJob_Null_JobStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->JobStatus; + KString_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_JobStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->JobStatus; + KString_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_TimeSubmitted( + CIM_ConcreteJob* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->TimeSubmitted; + KDateTime_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_TimeSubmitted( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->TimeSubmitted; + KDateTime_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_TimeSubmitted( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->TimeSubmitted; + KDateTime_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_ScheduledStartTime( + CIM_ConcreteJob* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->ScheduledStartTime; + KDateTime_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_ScheduledStartTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->ScheduledStartTime; + KDateTime_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_ScheduledStartTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->ScheduledStartTime; + KDateTime_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_StartTime( + CIM_ConcreteJob* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->StartTime; + KDateTime_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_StartTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->StartTime; + KDateTime_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_StartTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->StartTime; + KDateTime_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_ElapsedTime( + CIM_ConcreteJob* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->ElapsedTime; + KDateTime_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_ElapsedTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->ElapsedTime; + KDateTime_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_ElapsedTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->ElapsedTime; + KDateTime_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_JobRunTimes( + CIM_ConcreteJob* self, + CMPIUint32 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->JobRunTimes; + KUint32_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_JobRunTimes( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->JobRunTimes; + KUint32_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_JobRunTimes( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->JobRunTimes; + KUint32_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_RunMonth( + CIM_ConcreteJob* self, + CMPIUint8 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint8* field = (KUint8*)&self->RunMonth; + KUint8_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_RunMonth( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint8* field = (KUint8*)&self->RunMonth; + KUint8_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_RunMonth( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint8* field = (KUint8*)&self->RunMonth; + KUint8_Clr(field); + } +} + +/* "January" */ +#define CIM_ConcreteJob_RunMonth_January 0 + +/* "February" */ +#define CIM_ConcreteJob_RunMonth_February 1 + +/* "March" */ +#define CIM_ConcreteJob_RunMonth_March 2 + +/* "April" */ +#define CIM_ConcreteJob_RunMonth_April 3 + +/* "May" */ +#define CIM_ConcreteJob_RunMonth_May 4 + +/* "June" */ +#define CIM_ConcreteJob_RunMonth_June 5 + +/* "July" */ +#define CIM_ConcreteJob_RunMonth_July 6 + +/* "August" */ +#define CIM_ConcreteJob_RunMonth_August 7 + +/* "September" */ +#define CIM_ConcreteJob_RunMonth_September 8 + +/* "October" */ +#define CIM_ConcreteJob_RunMonth_October 9 + +/* "November" */ +#define CIM_ConcreteJob_RunMonth_November 10 + +/* "December" */ +#define CIM_ConcreteJob_RunMonth_December 11 + +/* "January" */ +#define CIM_ConcreteJob_Set_RunMonth_January(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 0) + +/* "February" */ +#define CIM_ConcreteJob_Set_RunMonth_February(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 1) + +/* "March" */ +#define CIM_ConcreteJob_Set_RunMonth_March(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 2) + +/* "April" */ +#define CIM_ConcreteJob_Set_RunMonth_April(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 3) + +/* "May" */ +#define CIM_ConcreteJob_Set_RunMonth_May(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 4) + +/* "June" */ +#define CIM_ConcreteJob_Set_RunMonth_June(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 5) + +/* "July" */ +#define CIM_ConcreteJob_Set_RunMonth_July(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 6) + +/* "August" */ +#define CIM_ConcreteJob_Set_RunMonth_August(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 7) + +/* "September" */ +#define CIM_ConcreteJob_Set_RunMonth_September(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 8) + +/* "October" */ +#define CIM_ConcreteJob_Set_RunMonth_October(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 9) + +/* "November" */ +#define CIM_ConcreteJob_Set_RunMonth_November(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 10) + +/* "December" */ +#define CIM_ConcreteJob_Set_RunMonth_December(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 11) + +KINLINE void CIM_ConcreteJob_Set_RunDay( + CIM_ConcreteJob* self, + CMPISint8 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KSint8* field = (KSint8*)&self->RunDay; + KSint8_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_RunDay( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KSint8* field = (KSint8*)&self->RunDay; + KSint8_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_RunDay( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KSint8* field = (KSint8*)&self->RunDay; + KSint8_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_RunDayOfWeek( + CIM_ConcreteJob* self, + CMPISint8 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KSint8* field = (KSint8*)&self->RunDayOfWeek; + KSint8_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_RunDayOfWeek( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KSint8* field = (KSint8*)&self->RunDayOfWeek; + KSint8_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_RunDayOfWeek( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KSint8* field = (KSint8*)&self->RunDayOfWeek; + KSint8_Clr(field); + } +} + +/* "-Saturday" */ +#define CIM_ConcreteJob_RunDayOfWeek__Saturday -7 + +/* "-Friday" */ +#define CIM_ConcreteJob_RunDayOfWeek__Friday -6 + +/* "-Thursday" */ +#define CIM_ConcreteJob_RunDayOfWeek__Thursday -5 + +/* "-Wednesday" */ +#define CIM_ConcreteJob_RunDayOfWeek__Wednesday -4 + +/* "-Tuesday" */ +#define CIM_ConcreteJob_RunDayOfWeek__Tuesday -3 + +/* "-Monday" */ +#define CIM_ConcreteJob_RunDayOfWeek__Monday -2 + +/* "-Sunday" */ +#define CIM_ConcreteJob_RunDayOfWeek__Sunday -1 + +/* "ExactDayOfMonth" */ +#define CIM_ConcreteJob_RunDayOfWeek_ExactDayOfMonth 0 + +/* "Sunday" */ +#define CIM_ConcreteJob_RunDayOfWeek_Sunday 1 + +/* "Monday" */ +#define CIM_ConcreteJob_RunDayOfWeek_Monday 2 + +/* "Tuesday" */ +#define CIM_ConcreteJob_RunDayOfWeek_Tuesday 3 + +/* "Wednesday" */ +#define CIM_ConcreteJob_RunDayOfWeek_Wednesday 4 + +/* "Thursday" */ +#define CIM_ConcreteJob_RunDayOfWeek_Thursday 5 + +/* "Friday" */ +#define CIM_ConcreteJob_RunDayOfWeek_Friday 6 + +/* "Saturday" */ +#define CIM_ConcreteJob_RunDayOfWeek_Saturday 7 + +/* "-Saturday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Saturday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -7) + +/* "-Friday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Friday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -6) + +/* "-Thursday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Thursday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -5) + +/* "-Wednesday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Wednesday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -4) + +/* "-Tuesday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Tuesday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -3) + +/* "-Monday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Monday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -2) + +/* "-Sunday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Sunday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -1) + +/* "ExactDayOfMonth" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_ExactDayOfMonth(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 0) + +/* "Sunday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Sunday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 1) + +/* "Monday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Monday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 2) + +/* "Tuesday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Tuesday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 3) + +/* "Wednesday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Wednesday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 4) + +/* "Thursday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Thursday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 5) + +/* "Friday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Friday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 6) + +/* "Saturday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Saturday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 7) + +KINLINE void CIM_ConcreteJob_Set_RunStartInterval( + CIM_ConcreteJob* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->RunStartInterval; + KDateTime_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_RunStartInterval( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->RunStartInterval; + KDateTime_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_RunStartInterval( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->RunStartInterval; + KDateTime_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_LocalOrUtcTime( + CIM_ConcreteJob* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->LocalOrUtcTime; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_LocalOrUtcTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->LocalOrUtcTime; + KUint16_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_LocalOrUtcTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->LocalOrUtcTime; + KUint16_Clr(field); + } +} + +/* "Local Time" */ +#define CIM_ConcreteJob_LocalOrUtcTime_Local_Time 1 + +/* "UTC Time" */ +#define CIM_ConcreteJob_LocalOrUtcTime_UTC_Time 2 + +/* "Local Time" */ +#define CIM_ConcreteJob_Set_LocalOrUtcTime_Local_Time(SELF) \ + CIM_ConcreteJob_Set_LocalOrUtcTime(SELF, 1) + +/* "UTC Time" */ +#define CIM_ConcreteJob_Set_LocalOrUtcTime_UTC_Time(SELF) \ + CIM_ConcreteJob_Set_LocalOrUtcTime(SELF, 2) + +KINLINE void CIM_ConcreteJob_Set_UntilTime( + CIM_ConcreteJob* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->UntilTime; + KDateTime_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_UntilTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->UntilTime; + KDateTime_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_UntilTime( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->UntilTime; + KDateTime_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_SetString_Notify( + CIM_ConcreteJob* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Notify; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Set_Notify( + CIM_ConcreteJob* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Notify; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ConcreteJob_Null_Notify( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Notify; + KString_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_Notify( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Notify; + KString_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_SetString_Owner( + CIM_ConcreteJob* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Owner; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Set_Owner( + CIM_ConcreteJob* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Owner; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ConcreteJob_Null_Owner( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Owner; + KString_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_Owner( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Owner; + KString_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_Priority( + CIM_ConcreteJob* self, + CMPIUint32 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->Priority; + KUint32_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_Priority( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->Priority; + KUint32_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_Priority( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->Priority; + KUint32_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_PercentComplete( + CIM_ConcreteJob* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PercentComplete; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_PercentComplete( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PercentComplete; + KUint16_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_PercentComplete( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PercentComplete; + KUint16_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_DeleteOnCompletion( + CIM_ConcreteJob* self, + CMPIBoolean x) +{ + if (self && self->__base.magic == KMAGIC) + { + KBoolean* field = (KBoolean*)&self->DeleteOnCompletion; + KBoolean_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_DeleteOnCompletion( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KBoolean* field = (KBoolean*)&self->DeleteOnCompletion; + KBoolean_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_DeleteOnCompletion( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KBoolean* field = (KBoolean*)&self->DeleteOnCompletion; + KBoolean_Clr(field); + } +} + +KINLINE void CIM_ConcreteJob_Set_ErrorCode( + CIM_ConcreteJob* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->ErrorCode; + KUint16_Set(fie... [truncated message content] |
From: <ba...@us...> - 2008-06-25 05:10:49
|
Revision: 674 http://omc.svn.sourceforge.net/omc/?rev=674&view=rev Author: bartw Date: 2008-06-24 22:10:58 -0700 (Tue, 24 Jun 2008) Log Message: ----------- got association calls somewhat working Modified Paths: -------------- cmpi-bindings/TODO cmpi-bindings/src/cmpi_provider.c cmpi-bindings/swig/python/pycmpi_provider.py Modified: cmpi-bindings/TODO =================================================================== --- cmpi-bindings/TODO 2008-06-24 14:20:15 UTC (rev 673) +++ cmpi-bindings/TODO 2008-06-25 05:10:58 UTC (rev 674) @@ -12,3 +12,6 @@ to libpython. Cmake only knows how to statically link to libpython. Right now it is hard-coded for libpython-2.5. +Finish wrapping broker FTs, such as upcalls. + + Modified: cmpi-bindings/src/cmpi_provider.c =================================================================== --- cmpi-bindings/src/cmpi_provider.c 2008-06-24 14:20:15 UTC (rev 673) +++ cmpi-bindings/src/cmpi_provider.c 2008-06-25 05:10:58 UTC (rev 674) @@ -276,6 +276,11 @@ for (i = 0; i < nargs; ++i) { PyObject* arg = va_arg(vargs, PyObject*); + if (arg == NULL) + { + arg = Py_None; + Py_IncRef(arg); + } PyTuple_SET_ITEM(pyargs, i, arg); } va_end(vargs); @@ -902,10 +907,26 @@ PyObject *pyctx = SWIG_NewPointerObj((void*) ctx, SWIGTYPE_p__CMPIContext, 0); PyObject *pyrslt = SWIG_NewPointerObj((void*) rslt, SWIGTYPE_p__CMPIResult, 0); PyObject *pyobjName = SWIG_NewPointerObj((void*) objName, SWIGTYPE_p__CMPIObjectPath, 0); - PyObject *pyassocClass = PyString_FromString(assocClass); - PyObject *pyresultClass = PyString_FromString(resultClass); - PyObject *pyrole = PyString_FromString(role); - PyObject *pyresultRole = PyString_FromString(resultRole); + PyObject *pyassocClass = NULL; + PyObject *pyresultClass = NULL; + PyObject* pyrole = NULL; + PyObject* pyresultRole = NULL; + if (assocClass != NULL) + { + pyassocClass = PyString_FromString(assocClass); + } + if (resultClass != NULL) + { + pyresultClass = PyString_FromString(resultClass); + } + if (role != NULL) + { + pyrole = PyString_FromString(role); + } + if (resultRole != NULL) + { + pyresultRole = PyString_FromString(resultRole); + } call_py_provider((PyObject*)self->hdl, &status, "associator_names", 7, pyctx, @@ -947,11 +968,27 @@ PyObject *pyctx = SWIG_NewPointerObj((void*) ctx, SWIGTYPE_p__CMPIContext, 0); PyObject *pyrslt = SWIG_NewPointerObj((void*) rslt, SWIGTYPE_p__CMPIResult, 0); PyObject *pyobjName = SWIG_NewPointerObj((void*) objName, SWIGTYPE_p__CMPIObjectPath, 0); - PyObject *pyassocClass = PyString_FromString(assocClass); - PyObject *pyresultClass = PyString_FromString(resultClass); - PyObject *pyrole = PyString_FromString(role); - PyObject *pyresultRole = PyString_FromString(resultRole); PyObject *pyprops = proplist2py(properties); + PyObject *pyassocClass = NULL; + PyObject *pyresultClass = NULL; + PyObject* pyrole = NULL; + PyObject* pyresultRole = NULL; + if (assocClass != NULL) + { + pyassocClass = PyString_FromString(assocClass); + } + if (resultClass != NULL) + { + pyresultClass = PyString_FromString(resultClass); + } + if (role != NULL) + { + pyrole = PyString_FromString(role); + } + if (resultRole != NULL) + { + pyresultRole = PyString_FromString(resultRole); + } call_py_provider((PyObject*)self->hdl, &status, "associators", 8, pyctx, @@ -978,28 +1015,36 @@ const CMPIContext* ctx, const CMPIResult* rslt, const CMPIObjectPath* objName, - const char* role, - const char* resultRole) + const char* resultClass, + const char* role) { CMPIStatus status = {CMPI_RC_ERR_NOT_SUPPORTED, NULL}; #ifdef SWIGPYTHON - _SBLIM_TRACE(1,("referenceNames(Python) called, ctx %p, rslt %p, objName %p, role %s, resultRole %s", ctx, rslt, objName, role, resultRole)); + _SBLIM_TRACE(1,("referenceNames(Python) called, ctx %p, rslt %p, objName %p, resultClass %s, role %s", ctx, rslt, objName, resultClass, role)); PY_CMPI_INIT PyObject *pyctx = SWIG_NewPointerObj((void*) ctx, SWIGTYPE_p__CMPIContext, 0); PyObject *pyrslt = SWIG_NewPointerObj((void*) rslt, SWIGTYPE_p__CMPIResult, 0); PyObject *pyobjName = SWIG_NewPointerObj((void*) objName, SWIGTYPE_p__CMPIObjectPath, 0); - PyObject *pyrole = PyString_FromString(role); - PyObject *pyresultRole = PyString_FromString(resultRole); + PyObject* pyresultClass = NULL; + PyObject* pyrole = NULL; + if (role != NULL) + { + pyrole = PyString_FromString(role); + } + if (resultClass != NULL) + { + pyresultClass = PyString_FromString(resultClass); + } call_py_provider((PyObject*)self->hdl, &status, "reference_names", 5, pyctx, pyrslt, pyobjName, - pyrole, - pyresultRole); + pyresultClass, + pyrole); #endif /* Query filtering is not supported for this class. */ @@ -1017,30 +1062,38 @@ const CMPIContext* ctx, const CMPIResult* rslt, const CMPIObjectPath* objName, + const char* resultClass, const char* role, - const char* resultRole, const char** properties) { CMPIStatus status = {CMPI_RC_ERR_NOT_SUPPORTED, NULL}; #ifdef SWIGPYTHON - _SBLIM_TRACE(1,("references(Python) called, ctx %p, rslt %p, objName %p, role %s, resultRole %s, properties %p", ctx, rslt, objName, role, resultRole, properties)); + _SBLIM_TRACE(1,("references(Python) called, ctx %p, rslt %p, objName %p, role %s, resultRole %s, properties %p", ctx, rslt, objName, resultClass, role, properties)); PY_CMPI_INIT PyObject *pyctx = SWIG_NewPointerObj((void*) ctx, SWIGTYPE_p__CMPIContext, 0); PyObject *pyrslt = SWIG_NewPointerObj((void*) rslt, SWIGTYPE_p__CMPIResult, 0); PyObject *pyobjName = SWIG_NewPointerObj((void*) objName, SWIGTYPE_p__CMPIObjectPath, 0); - PyObject *pyrole = PyString_FromString(role); - PyObject *pyresultRole = PyString_FromString(resultRole); + PyObject* pyrole = NULL; + PyObject* pyresultClass = NULL; + if (role != NULL) + { + pyrole = PyString_FromString(role); + } + if (resultClass != NULL) + { + pyresultClass = PyString_FromString(resultClass); + } PyObject *pyprops = proplist2py(properties); call_py_provider((PyObject*)self->hdl, &status, "references", 6, pyctx, pyrslt, pyobjName, + pyresultClass, pyrole, - pyresultRole, pyprops); #endif Modified: cmpi-bindings/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-24 14:20:15 UTC (rev 673) +++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-25 05:10:58 UTC (rev 674) @@ -101,10 +101,8 @@ def _get_class(ns, cname): key = ns + ':' + cname.lower() try: - print '***** trying cache' return _classcache[key] except KeyError: - print '***** cache miss' cc = _conn.GetClass(cname, namespace=ns, IncludeQualifiers=True, IncludeClassOrigin=False, LocalOnly=False) _classcache[key] = cc @@ -151,6 +149,7 @@ rslt.return_instance(cinst) except pywbem.CIMError, args: return args[:2] + print 'calling done()' rslt.done() return (0, '') @@ -234,26 +233,28 @@ return (0, '') - def reference_names(self, ctx, rslt, objName, role, resultRole): + def reference_names(self, ctx, rslt, objName, resultClass, role): + print 'pycmpi_provider.py: In reference_names()' piname = cmpi2pywbem_instname(objName) try: for i in self.proxy.MI_referenceNames(self.env, piname, - piname.classname, role): + resultClass, role): ciname = pywbem2cmpi_instname(i) rslt.return_objectpath(ciname) except pywbem.CIMError, args: + import traceback; traceback.print_exc() return args[:2] rslt.done() return (0, '') - def references(self, ctx, rslt, objName, role, resultRole, props): + def references(self, ctx, rslt, objName, resultClass, role, props): piname = cmpi2pywbem_instname(objName) try: for i in self.proxy.MI_references(self.env, piname, - piname.classname, role, props): + resultClass, role, props): cinst = pywbem2cmpi_inst(i) rslt.return_instance(cinst) except pywbem.CIMError, args: @@ -381,7 +382,10 @@ def pywbem2cmpi_value(pdata, _type=None, cval=None): is_array = isinstance(pdata, list) if _type is None: - _type = pywbem.cimtype(pdata) + if isinstance(pdata, pywbem.CIMInstanceName): + _type = 'reference' + else: + _type = pywbem.cimtype(pdata) attr = _type if cval is None: cval = cmpi.CMPIValue() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-06-24 14:21:46
|
Revision: 673 http://omc.svn.sourceforge.net/omc/?rev=673&view=rev Author: bartw Date: 2008-06-24 07:20:15 -0700 (Tue, 24 Jun 2008) Log Message: ----------- updated TODO Modified Paths: -------------- cmpi-bindings/TODO Modified: cmpi-bindings/TODO =================================================================== --- cmpi-bindings/TODO 2008-06-24 08:36:23 UTC (rev 672) +++ cmpi-bindings/TODO 2008-06-24 14:20:15 UTC (rev 673) @@ -8,4 +8,7 @@ Items marked as "TODO" in the code. +Fix the build to figure determine the python version and dynamically link +to libpython. Cmake only knows how to statically link to libpython. +Right now it is hard-coded for libpython-2.5. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-06-24 08:37:39
|
Revision: 672 http://omc.svn.sourceforge.net/omc/?rev=672&view=rev Author: kkaempf Date: 2008-06-24 01:36:23 -0700 (Tue, 24 Jun 2008) Log Message: ----------- fix cmpi_type Modified Paths: -------------- cmpi-bindings/swig/cmpi_types.i Modified: cmpi-bindings/swig/cmpi_types.i =================================================================== --- cmpi-bindings/swig/cmpi_types.i 2008-06-24 06:31:37 UTC (rev 671) +++ cmpi-bindings/swig/cmpi_types.i 2008-06-24 08:36:23 UTC (rev 672) @@ -843,8 +843,8 @@ int size() { return CMGetArrayCount( $self, NULL ); } - /* Gets the element type. / - int CMPIType cmpi_type() { + /* Gets the element type. */ + CMPIType cmpi_type() { return CMGetArrayType( $self, NULL ); } /* Gets an element value defined by its index. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-06-24 06:31:30
|
Revision: 671 http://omc.svn.sourceforge.net/omc/?rev=671&view=rev Author: bartw Date: 2008-06-23 23:31:37 -0700 (Mon, 23 Jun 2008) Log Message: ----------- got Python provider testsuite (from pywbem/pyprovifc/test project) to pass for Instance and Method provider tests Modified Paths: -------------- cmpi-bindings/src/cmpi_provider.c cmpi-bindings/swig/python/CMakeLists.txt cmpi-bindings/swig/python/pycmpi_provider.py Added Paths: ----------- cmpi-bindings/TODO Added: cmpi-bindings/TODO =================================================================== --- cmpi-bindings/TODO (rev 0) +++ cmpi-bindings/TODO 2008-06-24 06:31:37 UTC (rev 671) @@ -0,0 +1,11 @@ +Keep track of which objects are created with new*() methods from the +brokerEncFT, and which are created with clone(). We have to release the +later, not the former. + +Setting NULL property values currently doesn't work. + +Fix memory leaks related to cloning of CMPIData structs. + +Items marked as "TODO" in the code. + + Modified: cmpi-bindings/src/cmpi_provider.c =================================================================== --- cmpi-bindings/src/cmpi_provider.c 2008-06-24 03:54:09 UTC (rev 670) +++ cmpi-bindings/src/cmpi_provider.c 2008-06-24 06:31:37 UTC (rev 671) @@ -249,6 +249,7 @@ pyfunc = PyObject_GetAttrString(hdl, opname); if (pyfunc == NULL) { + PyErr_Print(); PyErr_Clear(); char* str = fmtstr("Python module does not contain \"%s\"", opname); _SBLIM_TRACE(1,(str)); @@ -288,7 +289,8 @@ goto cleanup; } - if (! PyTuple_Check(prv) || PyTuple_Size(prv) != 2) + if (! PyTuple_Check(prv) || + (PyTuple_Size(prv) != 2 && PyTuple_Size(prv) != 1)) { char* str = fmtstr("Python function \"%s\" didn't return a two-tuple", opname); @@ -300,7 +302,12 @@ goto cleanup; } PyObject* prc = PyTuple_GetItem(prv, 0); - PyObject* prstr = PyTuple_GetItem(prv, 1); + PyObject* prstr = Py_None; + if (PyTuple_Size(prv) == 2) + { + prstr = PyTuple_GetItem(prv, 1); + } + if (! PyInt_Check(prc) || (! PyString_Check(prstr) && prstr != Py_None)) { char* str = fmtstr("Python function \"%s\" didn't return a {<int>, <str>) two-tuple", opname); @@ -650,12 +657,12 @@ /* DeleteInstance() - delete/remove the specified instance. */ static CMPIStatus DeleteInstance( - CMPIInstanceMI * self, /* [in] Handle to this provider (i.e. 'self'). */ - const CMPIContext * context, /* [in] Additional context info, if any. */ - const CMPIResult * results, /* [out] Results of this operation. */ - const CMPIObjectPath * reference) /* [in] Contains the target namespace, classname and objectpath. */ + CMPIInstanceMI * self, + const CMPIContext * context, + const CMPIResult * results, + const CMPIObjectPath * reference) { - CMPIStatus status = {CMPI_RC_OK, NULL}; /* Return status of CIM operations. */ + CMPIStatus status = {CMPI_RC_OK, NULL}; #ifdef SWIGRUBY _SBLIM_TRACE(1,("DeleteInstance(Ruby) called, context %p, results %p, reference %p", context, results, reference)); Modified: cmpi-bindings/swig/python/CMakeLists.txt =================================================================== --- cmpi-bindings/swig/python/CMakeLists.txt 2008-06-24 03:54:09 UTC (rev 670) +++ cmpi-bindings/swig/python/CMakeLists.txt 2008-06-24 06:31:37 UTC (rev 671) @@ -56,4 +56,3 @@ # INSTALL(FILES pycmpi_provider.py DESTINATION ${PYTHON_LIB_DIR}/site-packages ) INSTALL(FILES Py_UnixProcessProvider.py DESTINATION /usr/lib/pycim ) -Py_UnixProcessProvider.py Modified: cmpi-bindings/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-24 03:54:09 UTC (rev 670) +++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-24 06:31:37 UTC (rev 671) @@ -112,7 +112,6 @@ class CMPIProvider(object): - def __init__(self, miname, broker): print 'called CMPIProvider(', miname, ',', broker, ')' self.broker = broker @@ -123,30 +122,35 @@ def enum_instance_names(self, ctx, rslt, objname): print 'provider.py: In enum_instance_names()' + #test_conversions() op = cmpi2pywbem_instname(objname) conn = SFCBUDSConnection() cc = _get_class(op.namespace, op.classname) - for i in self.proxy.MI_enumInstanceNames(self.env, op.namespace, cc): - cop = pywbem2cmpi_instname(i) - rslt.return_objectpath(cop) - - + try: + for i in self.proxy.MI_enumInstanceNames(self.env, + op.namespace, cc): + cop = pywbem2cmpi_instname(i) + rslt.return_objectpath(cop) + except pywbem.CIMError, args: + return args[:2] rslt.done() return (0, '') def enum_instances(self, ctx, rslt, objname, plist): print 'provider.py: In enum_instances()' - #test_conversions() op = cmpi2pywbem_instname(objname) conn = SFCBUDSConnection() cc = _get_class(op.namespace, op.classname) - for i in self.proxy.MI_enumInstances(self.env, op.namespace, - plist, cc, cc): - cinst = pywbem2cmpi_inst(i) - rslt.return_instance(cinst) + try: + for i in self.proxy.MI_enumInstances(self.env, op.namespace, + plist, cc, cc): + cinst = pywbem2cmpi_inst(i) + rslt.return_instance(cinst) + except pywbem.CIMError, args: + return args[:2] rslt.done() return (0, '') @@ -159,7 +163,7 @@ try: pinst = self.proxy.MI_getInstance(self.env, op, plist, cc) except pywbem.CIMError, arg: - return (arg[0], arg[1]) + return args[:2] cinst = pywbem2cmpi_inst(pinst) rslt.return_instance(cinst) rslt.done() @@ -171,9 +175,9 @@ try: piname = self.proxy.MI_createInstance(self.env, pinst) except pywbem.CIMError, args: - return (args[0], args[1]) - + return args[:2] ciname = pywbem2cmpi_instname(piname) + ciname.thisown = 0 rslt.return_objectpath(ciname) rslt.done return (0, '') @@ -183,17 +187,17 @@ pinst = cmpi2pywbem_inst(newinst) cc = _get_class(objname.namespace(), objname.classname()) try: - self.proxy.MI_modifyInstance(self.env, pinst, None, plist, cc) + self.proxy.MI_modifyInstance(self.env, pinst, True, plist, cc) except pywbem.CIMError, args: - return (args[0], args[1]) + return args[:2] return (0, '') def delete_instance(self, ctx, rslt, objname): piname = cmpi2pywbem_instname(objname) try: - self.proxy.MI_deleteInstance(self.env, objname) + self.proxy.MI_deleteInstance(self.env, piname) except pywbem.CIMError, args: - return (args[0], args[1]) + return args[:2] return (0, '') @@ -211,7 +215,7 @@ ciname = pywbem2cmpi_instname(i) rslt.return_objectpath(ciname) except pywbem.CIMError, args: - return (args[0], args[1]) + return args[:2] rslt.done() return (0, '') @@ -225,7 +229,7 @@ cinst = pywbem2cmpi_inst(i) rslt.return_instance(cinst) except pywbem.CIMError, args: - return (args[0], args[1]) + return args[:2] rslt.done() return (0, '') @@ -239,7 +243,7 @@ ciname = pywbem2cmpi_instname(i) rslt.return_objectpath(ciname) except pywbem.CIMError, args: - return (args[0], args[1]) + return args[:2] rslt.done() return (0, '') @@ -253,7 +257,7 @@ cinst = pywbem2cmpi_inst(i) rslt.return_instance(cinst) except pywbem.CIMError, args: - return (args[0], args[1]) + return args[:2] rslt.done() return (0, '') @@ -268,10 +272,11 @@ ((_type, rv), poutargs) = self.proxy.MI_invokeMethod(self.env, op, mm, pinargs) except pywbem.CIMError, args: - return (args[0], args[1]) + return args[:2] pywbem2cmpi_args(poutargs, outargs) + data, _type = pywbem2cmpi_value(rv, _type=_type) rslt.return_data(data, _pywbem2cmpi_typemap[_type]) rslt.done @@ -329,9 +334,12 @@ def pywbem2cmpi_args(pargs, cargs=None): if cargs is None: cargs = cmpi.CMPIArgs() - for name, pval in pargs.items(): - data, _type = pywbem2cmpi_value(pval) - cargs.set(str(name), data, _pywbem2cmpi_typemap[_type]) + for name, (_type, pval) in pargs.items(): + data, _type = pywbem2cmpi_value(pval, _type) + ctype = _pywbem2cmpi_typemap[_type] + if isinstance(pval, list): + ctype = ctype | cmpi.CMPI_ARRAY + cargs.set(str(name), data, ctype) return cargs @@ -345,7 +353,6 @@ data, _type = pywbem2cmpi_value(prop.value, _type=prop.type) ctype = _pywbem2cmpi_typemap[_type] if isinstance(prop.value, list): - # TODO make this reusable for other related funcs. ctype = ctype | cmpi.CMPI_ARRAY cinst.set_property(str(prop.name), data, ctype) return cinst @@ -375,6 +382,7 @@ is_array = isinstance(pdata, list) if _type is None: _type = pywbem.cimtype(pdata) + attr = _type if cval is None: cval = cmpi.CMPIValue() if is_array: @@ -385,14 +393,16 @@ cv, tt = pywbem2cmpi_value(rael, _type=_type) car.set(i, cv, ctype) cval.array = car - else: - if _type == 'reference': - _type = 'ref' - if _type == 'ref': - pdata = pywbem2cmpi_instname(pdata) - elif _type == 'string': - pdata = cmpi.CMPIString(pdata) - setattr(cval, _type, pdata) + return cval, _type + if _type == 'reference': + attr = 'ref' + pdata = pywbem2cmpi_instname(pdata) + elif _type == 'string': + pdata = cmpi.CMPIString(pdata) + elif _type == 'datetime': + attr = 'dateTime' + pdata = pywbem2cmpi_datetime(pdata) + setattr(cval, attr, pdata) return cval, _type def cmpi2pywbem_value(cval, _type, is_array=False): @@ -431,7 +441,6 @@ data.type = data.type | cmpi.CMPI_ARRAY if _type == 'reference': _type = 'ref' - if _type == 'ref': pdata = pywbem2cmpi_instname(pdata) pywbem2cmpi_value(pdata, _type, data.value) return data @@ -443,22 +452,49 @@ #TODO error handling if _type is None: _type, is_array = cmpi_type2string(cdata.type) - #TODO array types - val = getattr(cdata.value, _type) + attr = _type + if is_array: + rv = [] + car = cdata.value.array + if car is None: + return None + for i in xrange(0, car.size()): + adata = car.at(i) + pdata = cmpi2pywbem_data(adata, _type, is_array=False) + rv.append(pdata) + return rv + if attr == 'datetime': + attr = 'dateTime' + if attr == 'reference': + attr = 'ref' + val = getattr(cdata.value, attr) + if val is None: + return None if _type == 'string': val = val.to_s() + if _type == 'boolean': + val = val == 0 and 'false' or 'true' + if _type == 'datetime': + val = cmpi2pywbem_datetime(val) + if _type == 'reference': + val = cmpi2pywbem_instname(val) return pywbem.tocimobj(_type, val) +def cmpi2pywbem_datetime(dt): + return pywbem.CIMDateTime(dt.to_s()) +def pywbem2cmpi_datetime(dt): + return cmpi.CMPIDateTime(str(dt)) + _pywbem2cmpi_typemap = { 'boolean' : cmpi.CMPI_boolean, 'real32' : cmpi.CMPI_real32, 'real64' : cmpi.CMPI_real64, - 'uint8 ' : cmpi.CMPI_uint8, + 'uint8' : cmpi.CMPI_uint8, 'uint16' : cmpi.CMPI_uint16, 'uint32' : cmpi.CMPI_uint32, 'uint64' : cmpi.CMPI_uint64, - 'sint8 ' : cmpi.CMPI_sint8, + 'sint8' : cmpi.CMPI_sint8, 'sint16' : cmpi.CMPI_sint16, 'sint32' : cmpi.CMPI_sint32, 'sint64' : cmpi.CMPI_sint64, @@ -468,14 +504,15 @@ } _cmpi2pywbem_typemap = { + 0 : None, cmpi.CMPI_boolean : 'boolean', cmpi.CMPI_real32 : 'real32', cmpi.CMPI_real64 : 'real64', - cmpi.CMPI_uint8 : 'uint8 ', + cmpi.CMPI_uint8 : 'uint8', cmpi.CMPI_uint16 : 'uint16', cmpi.CMPI_uint32 : 'uint32', cmpi.CMPI_uint64 : 'uint64', - cmpi.CMPI_sint8 : 'sint8 ', + cmpi.CMPI_sint8 : 'sint8', cmpi.CMPI_sint16 : 'sint16', cmpi.CMPI_sint32 : 'sint32', cmpi.CMPI_sint64 : 'sint64', @@ -584,11 +621,49 @@ pinst.properties['n'] = pywbem.CIMProperty('n', None, type='uint32') cinst = pywbem2cmpi_inst(pinst) ninst = cmpi2pywbem_inst(cinst) - assert(ninst['n'] is None) + #assert(ninst['n'] is None) assert(ninst.classname == pinst.classname) + pinst['sint16'] = pywbem.Sint16(16) + cinst = pywbem2cmpi_inst(pinst) + ninst = cmpi2pywbem_inst(cinst) + assert(ninst['sint16'] == 16) + pinst['sint8'] = pywbem.Sint8(8) + cinst = pywbem2cmpi_inst(pinst) + ninst = cmpi2pywbem_inst(cinst) + assert(ninst['sint8'] == 8) + pinst['uint8a'] = [pywbem.Uint8(1), pywbem.Uint8(2), pywbem.Uint8(3)] + cinst = pywbem2cmpi_inst(pinst) + ninst = cmpi2pywbem_inst(cinst) + assert(ninst['uint8a'] == pinst['uint8a']) - + pdt = pywbem.CIMDateTime.now() + cdt = pywbem2cmpi_datetime(pdt) + ndt = cmpi2pywbem_datetime(cdt) + assert(pdt == ndt) + cdt = cmpi.CMPIDateTime('20080623144759.823564-360') + print '** ctd.is_interval()', cdt.is_interval() + print '** ctd.to_s()', cdt.to_s() + pinst['dt'] = pywbem.CIMDateTime('20080623144759.823564-360') + cinst = pywbem2cmpi_inst(pinst) + ninst = cmpi2pywbem_inst(cinst) + print '** ninst["dt"]', ninst['dt'] + print '** pinst["dt"]', pinst['dt'] + assert(ninst['dt'] == pinst['dt']) + pargs = { + 'one':'one', + 'two':pywbem.Uint32(43), + 'three':pywbem.CIMDateTime.now(), + 'four':['one','two','three'], + 'five':[pywbem.CIMDateTime.now(), pywbem.CIMDateTime.now()], + 'six':[pywbem.Sint32(-1), pywbem.Sint32(-2)] + } + iargs = dict([(k, (pywbem.cimtype(v), v)) for k, v in pargs.items()]) + cargs = pywbem2cmpi_args(iargs) + nargs = cmpi2pywbem_args(cargs) + assert(pargs == nargs) + + print '** tests passed' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-06-24 03:54:04
|
Revision: 670 http://omc.svn.sourceforge.net/omc/?rev=670&view=rev Author: bartw Date: 2008-06-23 20:54:09 -0700 (Mon, 23 Jun 2008) Log Message: ----------- dev checkpoint Modified Paths: -------------- cmpi-bindings/swig/cmpi_types.i Modified: cmpi-bindings/swig/cmpi_types.i =================================================================== --- cmpi-bindings/swig/cmpi_types.i 2008-06-23 05:00:40 UTC (rev 669) +++ cmpi-bindings/swig/cmpi_types.i 2008-06-24 03:54:09 UTC (rev 670) @@ -693,12 +693,10 @@ return CMNewArgs(_BROKER, NULL); } ~CMPIArgs() { - _BROKER->mft->freeArgs(_BROKER, $self); + //_BROKER->mft->freeArgs(_BROKER, $self); + // TODO: determine if we were created by NewArgs() or clone(). + // Free if the later. } - const char* to_s() { - CMPIString *s = CDToString(_BROKER, $self, NULL); - return CMGetCharPtr(s); - } /* Adds/replaces a named argument. */ void set( char *name, const CMPIValue * value, const CMPIType type) { CMAddArg( $self, name, value, type ); @@ -831,7 +829,7 @@ %extend _CMPIArray { /* count: Maximum number of elements * type: Element type - */ + */ CMPIArray(int count, CMPIType type ) { return CMNewArray( _BROKER, count, type, NULL); } @@ -845,7 +843,7 @@ int size() { return CMGetArrayCount( $self, NULL ); } - /* Gets the element type. / + /* Gets the element type. / int CMPIType cmpi_type() { return CMGetArrayType( $self, NULL ); } @@ -919,7 +917,9 @@ } ~CMPIDateTime() { - _BROKER->mft->freeDateTime(_BROKER, $self); + // _BROKER->mft->freeDateTime(_BROKER, $self); + // TODO: determine if we were created by NewDateTime*() or clone(). + // Free if the later. } const char* to_s() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-06-23 05:00:32
|
Revision: 669 http://omc.svn.sourceforge.net/omc/?rev=669&view=rev Author: bartw Date: 2008-06-22 22:00:40 -0700 (Sun, 22 Jun 2008) Log Message: ----------- coded the rest of the operations Modified Paths: -------------- cmpi-bindings/swig/python/pycmpi_provider.py Modified: cmpi-bindings/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-20 05:49:36 UTC (rev 668) +++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-23 05:00:40 UTC (rev 669) @@ -87,7 +87,7 @@ def get_logger(self): return Logger(self.broker) def get_cimom_handle(self): - pass + return SFCBUDSConnection() def get_user_name(self): pass def get_context_value(self, key): @@ -160,7 +160,6 @@ pinst = self.proxy.MI_getInstance(self.env, op, plist, cc) except pywbem.CIMError, arg: return (arg[0], arg[1]) - cinst = pywbem2cmpi_inst(pinst) rslt.return_instance(cinst) rslt.done() @@ -168,18 +167,34 @@ def create_instance(self, ctx, rslt, objname, newinst): - inst = cmpi2pywbem_inst(newinst) - print '** newinst.objectpath()', newinst.objectpath() - objname.thisown = 0 - rslt.return_objectpath(objname) - print inst + pinst = cmpi2pywbem_inst(newinst) + try: + piname = self.proxy.MI_createInstance(self.env, pinst) + except pywbem.CIMError, args: + return (args[0], args[1]) + + ciname = pywbem2cmpi_instname(piname) + rslt.return_objectpath(ciname) + rslt.done return (0, '') + def set_instance(self, ctx, rslt, objname, newinst, plist): - pass + pinst = cmpi2pywbem_inst(newinst) + cc = _get_class(objname.namespace(), objname.classname()) + try: + self.proxy.MI_modifyInstance(self.env, pinst, None, plist, cc) + except pywbem.CIMError, args: + return (args[0], args[1]) + return (0, '') def delete_instance(self, ctx, rslt, objname): - pass + piname = cmpi2pywbem_instname(objname) + try: + self.proxy.MI_deleteInstance(self.env, objname) + except pywbem.CIMError, args: + return (args[0], args[1]) + return (0, '') def exec_query(self, ctx, rslt, objname, query, lang): @@ -188,22 +203,61 @@ def associator_names(self, ctx, rslt, objName, assocClass, resultClass, role, resultRole): - pass + piname = cmpi2pywbem_instname(objName) + try: + for i in self.proxy.MI_associatorNames(self.env, piname, + assocClass, resultClass, role, resultRole): + ciname = pywbem2cmpi_instname(i) + rslt.return_objectpath(ciname) + except pywbem.CIMError, args: + return (args[0], args[1]) + rslt.done() + return (0, '') def associators(self, ctx, rslt, objName, assocClass, resultClass, role, resultRole, props): - pass + piname = cmpi2pywbem_instname(objName) + try: + for i in self.proxy.MI_associators(self.env, piname, + assocClass, resultClass, role, resultRole, props): + cinst = pywbem2cmpi_inst(i) + rslt.return_instance(cinst) + except pywbem.CIMError, args: + return (args[0], args[1]) + rslt.done() + return (0, '') + def reference_names(self, ctx, rslt, objName, role, resultRole): - pass + piname = cmpi2pywbem_instname(objName) + try: + for i in self.proxy.MI_referenceNames(self.env, piname, + piname.classname, role): + ciname = pywbem2cmpi_instname(i) + rslt.return_objectpath(ciname) + except pywbem.CIMError, args: + return (args[0], args[1]) + rslt.done() + return (0, '') + def references(self, ctx, rslt, objName, role, resultRole, props): - pass + piname = cmpi2pywbem_instname(objName) + try: + for i in self.proxy.MI_references(self.env, piname, + piname.classname, role, props): + cinst = pywbem2cmpi_inst(i) + rslt.return_instance(cinst) + except pywbem.CIMError, args: + return (args[0], args[1]) + rslt.done() + return (0, '') + def invoke_method(self, ctx, rslt, objName, method, inargs, outargs): print '*** in invoke_method' op = cmpi2pywbem_instname(objName) @@ -289,7 +343,11 @@ # TODO remove this when cmpi.py is fixed. continue data, _type = pywbem2cmpi_value(prop.value, _type=prop.type) - cinst.set_property(str(prop.name), data, _pywbem2cmpi_typemap[_type]) + ctype = _pywbem2cmpi_typemap[_type] + if isinstance(prop.value, list): + # TODO make this reusable for other related funcs. + ctype = ctype | cmpi.CMPI_ARRAY + cinst.set_property(str(prop.name), data, ctype) return cinst This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-06-20 05:50:07
|
Revision: 668 http://omc.svn.sourceforge.net/omc/?rev=668&view=rev Author: bartw Date: 2008-06-19 22:49:36 -0700 (Thu, 19 Jun 2008) Log Message: ----------- got enuminstances, enuminstancenames, getinstance, and invokemethod working Modified Paths: -------------- cmpi-bindings/mof/CMakeLists.txt cmpi-bindings/src/cmpi_provider.c cmpi-bindings/swig/cmpi_types.i cmpi-bindings/swig/python/CMakeLists.txt cmpi-bindings/swig/python/pycmpi_provider.py Added Paths: ----------- cmpi-bindings/mof/Py_UnixProcess.mof cmpi-bindings/mof/Py_UnixProcess.reg cmpi-bindings/swig/python/Py_UnixProcessProvider.py Removed Paths: ------------- cmpi-bindings/swig/python/pycmpi_provider_tb.py Modified: cmpi-bindings/mof/CMakeLists.txt =================================================================== --- cmpi-bindings/mof/CMakeLists.txt 2008-06-19 20:01:49 UTC (rev 667) +++ cmpi-bindings/mof/CMakeLists.txt 2008-06-20 05:49:36 UTC (rev 668) @@ -5,6 +5,9 @@ SET( CMPI_REG_DIR /var/lib/sfcb/stage/regs ) INSTALL(FILES Swig_Generic.mof DESTINATION ${CMPI_MOF_DIR}/root/cimv2) +INSTALL(FILES Py_UnixProcess.mof DESTINATION ${CMPI_MOF_DIR}/root/cimv2) INSTALL(FILES Swig_Generic.reg DESTINATION ${CMPI_REG_DIR}) +INSTALL(FILES Py_UnixProcess.reg DESTINATION ${CMPI_REG_DIR}) INSTALL(CODE "MESSAGE(\"Now run 'sfcbrepos -f'.\")") #INSTALL(SCRIPT "sfcbrepos -f") + Added: cmpi-bindings/mof/Py_UnixProcess.mof =================================================================== --- cmpi-bindings/mof/Py_UnixProcess.mof (rev 0) +++ cmpi-bindings/mof/Py_UnixProcess.mof 2008-06-20 05:49:36 UTC (rev 668) @@ -0,0 +1,11 @@ +[ Description("Model a Linux Process, For use with PyWBEM Provider QuickStart Guide")] +class Py_UnixProcess : CIM_UnixProcess +{ + [Description("Send a signal to a process.")] + sint32 kill( + [Description("The signal to send the process"), + ValueMap{"1","9","15"}, + Values{"SIGHUP","SIGKILL","SIGTERM"}, + IN(true), OUT(false)] + uint16 signal); +}; Added: cmpi-bindings/mof/Py_UnixProcess.reg =================================================================== --- cmpi-bindings/mof/Py_UnixProcess.reg (rev 0) +++ cmpi-bindings/mof/Py_UnixProcess.reg 2008-06-20 05:49:36 UTC (rev 668) @@ -0,0 +1,5 @@ +[Py_UnixProcess] + provider: Py_UnixProcessProvider + location: pyCmpiProvider + type: instance method + namespace: root/cimv2 Modified: cmpi-bindings/src/cmpi_provider.c =================================================================== --- cmpi-bindings/src/cmpi_provider.c 2008-06-19 20:01:49 UTC (rev 667) +++ cmpi-bindings/src/cmpi_provider.c 2008-06-20 05:49:36 UTC (rev 668) @@ -77,7 +77,6 @@ static char* _MINAME = NULL; #ifdef SWIGPYTHON PyObject* _PYPROVMOD = NULL; -PyObject* _PYPROVTBMOD = NULL; #endif static char* fmtstr(const char* fmt, ...) @@ -140,52 +139,103 @@ return pl; } + + #define TB_ERROR(str) {tbstr = str; goto cleanup;} static CMPIString* get_exc_trace() { char *tbstr = NULL; + PyObject *iostrmod = NULL; + PyObject *tbmod = NULL; + PyObject *iostr = NULL; + PyObject *obstr = NULL; + PyObject *args = NULL; + PyObject *newstr = NULL; + PyObject *func = NULL; + CMPIString* rv = NULL; - if (PyErr_Occurred()) PyErr_Print(); PyObject *type, *value, *traceback; + _SBLIM_TRACE(1, ("PyErr_Occurred() %d", PyErr_Occurred())); PyErr_Fetch(&type, &value, &traceback); + _SBLIM_TRACE(1,("** type %p, value %p, traceback %p", type, value, traceback)); + PyErr_Print(); PyErr_Clear(); PyErr_NormalizeException(&type, &value, &traceback); + _SBLIM_TRACE(1,("** type %p, value %p, traceback %p", type, value, traceback)); - PyObject* obstr = PyObject_CallMethod(_PYPROVTBMOD, "traceback2string", - "(OOO)", - type, value ? value : Py_None, - traceback ? traceback : Py_None); + iostrmod = PyImport_ImportModule("StringIO"); + if (iostrmod==NULL) + TB_ERROR("can't import StringIO"); + iostr = PyObject_CallMethod(iostrmod, "StringIO", NULL); + + if (iostr==NULL) + TB_ERROR("cStringIO.StringIO() failed"); + + tbmod = PyImport_ImportModule("traceback"); + if (tbmod==NULL) + TB_ERROR("can't import traceback"); + + obstr = PyObject_CallMethod(tbmod, "print_exception", + "(OOOOO)", + type ? type : Py_None, + value ? value : Py_None, + traceback ? traceback : Py_None, + Py_None, + iostr); + if (obstr==NULL) + { + PyErr_Print(); TB_ERROR("traceback.print_exception() failed"); + } - PyObject* raw = PyTuple_GetItem(obstr, 0); - PyObject* formatted = PyTuple_GetItem(obstr, 1); - tbstr = PyString_AsString(formatted); - _SBLIM_TRACE(1,(PyString_AsString(raw))); + Py_DecRef(obstr); + obstr = PyObject_CallMethod(iostr, "getvalue", NULL); + if (obstr==NULL) + TB_ERROR("getvalue() failed."); + + if (!PyString_Check(obstr)) + TB_ERROR("getvalue() did not return a string"); + + args = PyTuple_New(2); + PyTuple_SetItem(args, 0, PyString_FromString("\n")); + PyTuple_SetItem(args, 1, PyString_FromString("<br>")); + + func = PyObject_GetAttrString(obstr, "replace"); + //newstr = PyObject_CallMethod(obstr, "replace", args); + newstr = PyObject_CallObject(func, args); + + tbstr = PyString_AsString(newstr); + + char* tmp = fmtstr("cmpi:%s", tbstr); + rv = _BROKER->eft->newString(_BROKER, tmp, NULL); + free(tmp); + cleanup: PyErr_Restore(type, value, traceback); - CMPIString* rv; - if (tbstr != NULL) + if (rv == NULL) { - rv = _BROKER->eft->newString(_BROKER, tbstr, NULL); - } - else - { - rv = _BROKER->eft->newString(_BROKER, "", NULL); + rv = _BROKER->eft->newString(_BROKER, tbstr ? tbstr : "", NULL); } + Py_DecRef(func); + Py_DecRef(args); + Py_DecRef(newstr); + Py_DecRef(iostr); Py_DecRef(obstr); - Py_DecRef(type); - Py_DecRef(value); - Py_DecRef(traceback); + Py_DecRef(iostrmod); + Py_DecRef(tbmod); + + return rv; } + static int call_py_provider(PyObject* hdl, CMPIStatus* st, const char* opname, int nargs, ...) @@ -300,7 +350,6 @@ #ifdef SWIGPYTHON Py_DecRef(_PYPROVMOD); - Py_DecRef(_PYPROVTBMOD); Py_Finalize(); _SBLIM_TRACE(1,("Cleanup(Python) called")); #endif @@ -786,13 +835,6 @@ Py_Initialize(); SWIG_init(); - _PYPROVTBMOD = PyImport_ImportModule("pycmpi_provider_tb"); - if (_PYPROVTBMOD == NULL) - { - if (PyErr_Occurred()) PyErr_Print(); - _SBLIM_TRACE(1,("Python: _PYPROVTBMOD at %p", _PYPROVTBMOD)); - return -1; - } _PYPROVMOD = PyImport_ImportModule("pycmpi_provider"); if (_PYPROVMOD == NULL) { Modified: cmpi-bindings/swig/cmpi_types.i =================================================================== --- cmpi-bindings/swig/cmpi_types.i 2008-06-19 20:01:49 UTC (rev 667) +++ cmpi-bindings/swig/cmpi_types.i 2008-06-20 05:49:36 UTC (rev 668) @@ -266,6 +266,9 @@ void return_objectpath(CMPIObjectPath *path) { CMReturnObjectPath( $self, path ); } + void return_data(const CMPIValue* value, const CMPIType type) { + CMReturnData( $self, value, type); + } void done() { CMReturnDone( $self ); } Modified: cmpi-bindings/swig/python/CMakeLists.txt =================================================================== --- cmpi-bindings/swig/python/CMakeLists.txt 2008-06-19 20:01:49 UTC (rev 667) +++ cmpi-bindings/swig/python/CMakeLists.txt 2008-06-20 05:49:36 UTC (rev 668) @@ -55,4 +55,5 @@ # pycmpi_provider.py: provider implementation # INSTALL(FILES pycmpi_provider.py DESTINATION ${PYTHON_LIB_DIR}/site-packages ) -INSTALL(FILES pycmpi_provider_tb.py DESTINATION ${PYTHON_LIB_DIR}/site-packages ) +INSTALL(FILES Py_UnixProcessProvider.py DESTINATION /usr/lib/pycim ) +Py_UnixProcessProvider.py Added: cmpi-bindings/swig/python/Py_UnixProcessProvider.py =================================================================== --- cmpi-bindings/swig/python/Py_UnixProcessProvider.py (rev 0) +++ cmpi-bindings/swig/python/Py_UnixProcessProvider.py 2008-06-20 05:49:36 UTC (rev 668) @@ -0,0 +1,474 @@ +"""Python Provider for Py_UnixProcess + +Instruments the CIM class Py_UnixProcess + +""" + +import pywbem +import os +from socket import getfqdn + +class Py_UnixProcessProvider(pywbem.CIMProvider): + """Instrument the CIM class Py_UnixProcess + + Model a Linux Process, For use with PyWBEM Provider QuickStart Guide + + """ + + def __init__ (self, env): + logger = env.get_logger() + logger.log_debug('Initializing provider %s from %s' \ + % (self.__class__.__name__, __file__)) + # If you will be filtering instances yourself according to + # property_list, role, result_role, and result_class_name + # parameters, set self.filter_results to False + # self.filter_results = False + + def get_instance(self, env, model, cim_class): + """Return an instance. + + Keyword arguments: + env -- Provider Environment (pycimmb.ProviderEnvironment) + model -- A template of the pywbem.CIMInstance to be returned. The + key properties are set on this instance to correspond to the + instanceName that was requested. The properties of the model + are already filtered according to the PropertyList from the + request. Only properties present in the model need to be + given values. If you prefer, you can set all of the + values, and the instance will be filtered for you. + cim_class -- The pywbem.CIMClass + + Possible Errors: + CIM_ERR_ACCESS_DENIED + CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized + or otherwise incorrect parameters) + CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM + Instance does not exist in the specified namespace) + CIM_ERR_FAILED (some other unspecified error occurred) + + """ + + logger = env.get_logger() + logger.log_debug('Entering %s.get_instance()' \ + % self.__class__.__name__) + + # TODO fetch system resource matching the following keys: + # model['CreationClassName'] + # model['OSCreationClassName'] + # model['Handle'] + # model['OSName'] + # model['CSCreationClassName'] + # model['CSName'] + + #model.update_existing(Caption=<value>) # TODO (type = unicode) + #model.update_existing(CreationDate=<value>) # TODO (type = pywbem.CIMDateTime) + #model.update_existing(Description=<value>) # TODO (type = unicode) + #model.update_existing(ElementName=<value>) # TODO (type = unicode) + #model.update_existing(EnabledDefault=<value>) # TODO (type = pywbem.Uint16 self.Values.EnabledDefault) (default=2L) + #model.update_existing(EnabledState=<value>) # TODO (type = pywbem.Uint16 self.Values.EnabledState) (default=5L) + #model.update_existing(ExecutionState=<value>) # TODO (type = pywbem.Uint16 self.Values.ExecutionState) + #model.update_existing(HealthState=<value>) # TODO (type = pywbem.Uint16 self.Values.HealthState) + #model.update_existing(InstallDate=<value>) # TODO (type = pywbem.CIMDateTime) + #model.update_existing(KernelModeTime=<value>) # TODO (type = pywbem.Uint64) + #model.update_existing(ModulePath=<value>) # TODO (type = unicode) + #model.update_existing(Name=<value>) # TODO (type = unicode) + #model.update_existing(OperationalStatus=<value>) # TODO (type = [pywbem.Uint16,] self.Values.OperationalStatus) + #model.update_existing(OtherEnabledState=<value>) # TODO (type = unicode) + #model.update_existing(OtherExecutionDescription=<value>) # TODO (type = unicode) + #model.update_existing(Parameters=<value>) # TODO (type = [unicode,]) + #model.update_existing(ParentProcessID=<value>) # TODO (type = unicode) (Required) + #model.update_existing(Priority=<value>) # TODO (type = pywbem.Uint32) + #model.update_existing(ProcessGroupID=<value>) # TODO (type = pywbem.Uint64) (Required) + #model.update_existing(ProcessNiceValue=<value>) # TODO (type = pywbem.Uint32) + #model.update_existing(ProcessSessionID=<value>) # TODO (type = pywbem.Uint64) + #model.update_existing(ProcessTTY=<value>) # TODO (type = unicode) + #model.update_existing(ProcessWaitingForEvent=<value>) # TODO (type = unicode) + #model.update_existing(RealUserID=<value>) # TODO (type = pywbem.Uint64) (Required) + #model.update_existing(RequestedState=<value>) # TODO (type = pywbem.Uint16 self.Values.RequestedState) (default=12L) + #model.update_existing(Status=<value>) # TODO (type = unicode self.Values.Status) + #model.update_existing(StatusDescriptions=<value>) # TODO (type = [unicode,]) + #model.update_existing(TerminationDate=<value>) # TODO (type = pywbem.CIMDateTime) + #model.update_existing(TimeOfLastStateChange=<value>) # TODO (type = pywbem.CIMDateTime) + #model.update_existing(UserModeTime=<value>) # TODO (type = pywbem.Uint64) + #model.update_existing(WorkingSetSize=<value>) # TODO (type = pywbem.Uint64) + return model + + def enum_instances(self, env, model, cim_class, keys_only): + """Enumerate instances. + + The WBEM operations EnumerateInstances and EnumerateInstanceNames + are both mapped to this method. + This method is a python generator + + Keyword arguments: + env -- Provider Environment (pycimmb.ProviderEnvironment) + model -- A template of the pywbem.CIMInstances to be generated. + The properties of the model are already filtered according to + the PropertyList from the request. Only properties present in + the model need to be given values. If you prefer, you can + always set all of the values, and the instance will be filtered + for you. + cim_class -- The pywbem.CIMClass + keys_only -- A boolean. True if only the key properties should be + set on the generated instances. + + Possible Errors: + CIM_ERR_FAILED (some other unspecified error occurred) + + """ + + logger = env.get_logger() + logger.log_debug('Entering %s.enum_instances()' \ + % self.__class__.__name__) + + model['CreationClassName'] = 'Py_UnixProcess' + model['OSCreationClassName'] = 'CIM_UnitaryComputerSystem' + model['OSName'] = 'Linux' + model['CSCreationClassName'] = 'CIM_ComputerSystem' + model['CSName'] = getfqdn() + for file in os.listdir('/proc'): + if not file.isdigit(): + continue + model['Handle'] = file + if keys_only: + yield model + else: + try: + yield self.get_instance(env, model, cim_class) + except pywbem.CIMError, (num, msg): + if num not in (pywbem.CIM_ERR_NOT_FOUND, + pywbem.CIM_ERR_ACCESS_DENIED): + raise + + def set_instance(self, env, instance, previous_instance, cim_class): + """Return a newly created or modified instance. + + Keyword arguments: + env -- Provider Environment (pycimmb.ProviderEnvironment) + instance -- The new pywbem.CIMInstance. If modifying an existing + instance, the properties on this instance have been filtered by + the PropertyList from the request. + previous_instance -- The previous pywbem.CIMInstance if modifying + an existing instance. None if creating a new instance. + cim_class -- The pywbem.CIMClass + + Return the new instance. The keys must be set on the new instance. + + Possible Errors: + CIM_ERR_ACCESS_DENIED + CIM_ERR_NOT_SUPPORTED + CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized + or otherwise incorrect parameters) + CIM_ERR_ALREADY_EXISTS (the CIM Instance already exists -- only + valid if previous_instance is None, indicating that the operation + was CreateInstance) + CIM_ERR_NOT_FOUND (the CIM Instance does not exist -- only valid + if previous_instance is not None, indicating that the operation + was ModifyInstance) + CIM_ERR_FAILED (some other unspecified error occurred) + + """ + + logger = env.get_logger() + logger.log_debug('Entering %s.set_instance()' \ + % self.__class__.__name__) + # TODO create or modify the instance + raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED) # Remove to implement + return instance + + def delete_instance(self, env, instance_name): + """Delete an instance. + + Keyword arguments: + env -- Provider Environment (pycimmb.ProviderEnvironment) + instance_name -- A pywbem.CIMInstanceName specifying the instance + to delete. + + Possible Errors: + CIM_ERR_ACCESS_DENIED + CIM_ERR_NOT_SUPPORTED + CIM_ERR_INVALID_NAMESPACE + CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized + or otherwise incorrect parameters) + CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified + namespace) + CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM + Instance does not exist in the specified namespace) + CIM_ERR_FAILED (some other unspecified error occurred) + + """ + + logger = env.get_logger() + logger.log_debug('Entering %s.delete_instance()' \ + % self.__class__.__name__) + + # TODO delete the resource + raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED) # Remove to implement + + def cim_method_requeststatechange(self, env, object_name, method, + param_requestedstate, + param_timeoutperiod): + """Implements Py_UnixProcess.RequestStateChange() + + Requests that the state of the element be changed to the value + specified in the RequestedState parameter. When the requested + state change takes place, the EnabledState and RequestedState of + the element will be the same. Invoking the RequestStateChange + method multiple times could result in earlier requests being + overwritten or lost. If 0 is returned, then the task completed + successfully and the use of ConcreteJob was not required. If 4096 + (0x1000) is returned, then the task will take some time to + complete, ConcreteJob will be created, and its reference returned + in the output parameter Job. Any other return code indicates an + error condition. + + Keyword arguments: + env -- Provider Environment (pycimmb.ProviderEnvironment) + object_name -- A pywbem.CIMInstanceName or pywbem.CIMCLassName + specifying the object on which the method RequestStateChange() + should be invoked. + method -- A pywbem.CIMMethod representing the method meta-data + param_requestedstate -- The input parameter RequestedState (type pywbem.Uint16 self.Values.RequestStateChange.RequestedState) + The state requested for the element. This information will be + placed into the RequestedState property of the instance if the + return code of the RequestStateChange method is 0 ('Completed + with No Error'), 3 ('Timeout'), or 4096 (0x1000) ('Job + Started'). Refer to the description of the EnabledState and + RequestedState properties for the detailed explanations of the + RequestedState values. + + param_timeoutperiod -- The input parameter TimeoutPeriod (type pywbem.CIMDateTime) + A timeout period that specifies the maximum amount of time that + the client expects the transition to the new state to take. + The interval format must be used to specify the TimeoutPeriod. + A value of 0 or a null parameter indicates that the client has + no time requirements for the transition. If this property + does not contain 0 or null and the implementation does not + support this parameter, a return code of 'Use Of Timeout + Parameter Not Supported' must be returned. + + + Returns a two-tuple containing the return value (type pywbem.Uint32 self.Values.RequestStateChange) + and a dictionary with the out-parameters + + Output parameters: + Job -- (type REF (pywbem.CIMInstanceName(classname='CIM_ConcreteJob', ...)) + Reference to the job (can be null if the task is completed). + + + Possible Errors: + CIM_ERR_ACCESS_DENIED + CIM_ERR_INVALID_PARAMETER (including missing, duplicate, + unrecognized or otherwise incorrect parameters) + CIM_ERR_NOT_FOUND (the target CIM Class or instance does not + exist in the specified namespace) + CIM_ERR_METHOD_NOT_AVAILABLE (the CIM Server is unable to honor + the invocation request) + CIM_ERR_FAILED (some other unspecified error occurred) + + """ + + logger = env.get_logger() + logger.log_debug('Entering %s.cim_method_requeststatechange()' \ + % self.__class__.__name__) + + # TODO do something + raise pywbem.CIMError(pywbem.CIM_ERR_METHOD_NOT_AVAILABLE) # Remove to implemented + out_params = {} + #out_params['job'] = # TODO (type REF (pywbem.CIMInstanceName(classname='CIM_ConcreteJob', ...)) + rval = None # TODO (type pywbem.Uint32 self.Values.RequestStateChange) + return (rval, out_params) + + def cim_method_kill(self, env, object_name, method, + param_signal): + """Implements Py_UnixProcess.kill() + + Send a signal to a process. + + Keyword arguments: + env -- Provider Environment (pycimmb.ProviderEnvironment) + object_name -- A pywbem.CIMInstanceName or pywbem.CIMCLassName + specifying the object on which the method kill() + should be invoked. + method -- A pywbem.CIMMethod representing the method meta-data + param_signal -- The input parameter signal (type pywbem.Uint16 self.Values.kill.signal) + The signal to send the process + + + Returns a two-tuple containing the return value (type pywbem.Sint32) + and a dictionary with the out-parameters + + Output parameters: none + + Possible Errors: + CIM_ERR_ACCESS_DENIED + CIM_ERR_INVALID_PARAMETER (including missing, duplicate, + unrecognized or otherwise incorrect parameters) + CIM_ERR_NOT_FOUND (the target CIM Class or instance does not + exist in the specified namespace) + CIM_ERR_METHOD_NOT_AVAILABLE (the CIM Server is unable to honor + the invocation request) + CIM_ERR_FAILED (some other unspecified error occurred) + + """ + + logger = env.get_logger() + logger.log_debug('Entering %s.cim_method_kill()' \ + % self.__class__.__name__) + + + pid = object_name['handle'] + if not os.path.isdir('/proc/' + pid): + raise pywbem.CIMError(pywbem.CIM_ERR_NOT_FOUND, + 'Process %s does not exist' % pid) + rval = pywbem.Sint32(0) + try: + os.kill(int(pid), param_signal) + except OSError, arg: + rval = pwbem.Sint32(arg.errno) + out_params = {} # kill() has not output parameters + return (rval, out_params) + + + class Values(object): + class Status(object): + OK = 'OK' + Error = 'Error' + Degraded = 'Degraded' + Unknown = 'Unknown' + Pred_Fail = 'Pred Fail' + Starting = 'Starting' + Stopping = 'Stopping' + Service = 'Service' + Stressed = 'Stressed' + NonRecover = 'NonRecover' + No_Contact = 'No Contact' + Lost_Comm = 'Lost Comm' + Stopped = 'Stopped' + + class RequestedState(object): + Enabled = pywbem.Uint16(2) + Disabled = pywbem.Uint16(3) + Shut_Down = pywbem.Uint16(4) + No_Change = pywbem.Uint16(5) + Offline = pywbem.Uint16(6) + Test = pywbem.Uint16(7) + Deferred = pywbem.Uint16(8) + Quiesce = pywbem.Uint16(9) + Reboot = pywbem.Uint16(10) + Reset = pywbem.Uint16(11) + Not_Applicable = pywbem.Uint16(12) + # DMTF_Reserved = .. + # Vendor_Reserved = 32768..65535 + + class HealthState(object): + Unknown = pywbem.Uint16(0) + OK = pywbem.Uint16(5) + Degraded_Warning = pywbem.Uint16(10) + Minor_failure = pywbem.Uint16(15) + Major_failure = pywbem.Uint16(20) + Critical_failure = pywbem.Uint16(25) + Non_recoverable_error = pywbem.Uint16(30) + # DMTF_Reserved = .. + + class ExecutionState(object): + Unknown = pywbem.Uint16(0) + Other = pywbem.Uint16(1) + Ready = pywbem.Uint16(2) + Running = pywbem.Uint16(3) + Blocked = pywbem.Uint16(4) + Suspended_Blocked = pywbem.Uint16(5) + Suspended_Ready = pywbem.Uint16(6) + Terminated = pywbem.Uint16(7) + Stopped = pywbem.Uint16(8) + Growing = pywbem.Uint16(9) + Ready_But_Relinquished_Processor = pywbem.Uint16(10) + Hung = pywbem.Uint16(11) + + class EnabledDefault(object): + Enabled = pywbem.Uint16(2) + Disabled = pywbem.Uint16(3) + Not_Applicable = pywbem.Uint16(5) + Enabled_but_Offline = pywbem.Uint16(6) + No_Default = pywbem.Uint16(7) + # DMTF_Reserved = 8..32767 + # Vendor_Reserved = 32768..65535 + + class EnabledState(object): + Unknown = pywbem.Uint16(0) + Other = pywbem.Uint16(1) + Enabled = pywbem.Uint16(2) + Disabled = pywbem.Uint16(3) + Shutting_Down = pywbem.Uint16(4) + Not_Applicable = pywbem.Uint16(5) + Enabled_but_Offline = pywbem.Uint16(6) + In_Test = pywbem.Uint16(7) + Deferred = pywbem.Uint16(8) + Quiesce = pywbem.Uint16(9) + Starting = pywbem.Uint16(10) + # DMTF_Reserved = 11..32767 + # Vendor_Reserved = 32768..65535 + + class OperationalStatus(object): + Unknown = pywbem.Uint16(0) + Other = pywbem.Uint16(1) + OK = pywbem.Uint16(2) + Degraded = pywbem.Uint16(3) + Stressed = pywbem.Uint16(4) + Predictive_Failure = pywbem.Uint16(5) + Error = pywbem.Uint16(6) + Non_Recoverable_Error = pywbem.Uint16(7) + Starting = pywbem.Uint16(8) + Stopping = pywbem.Uint16(9) + Stopped = pywbem.Uint16(10) + In_Service = pywbem.Uint16(11) + No_Contact = pywbem.Uint16(12) + Lost_Communication = pywbem.Uint16(13) + Aborted = pywbem.Uint16(14) + Dormant = pywbem.Uint16(15) + Supporting_Entity_in_Error = pywbem.Uint16(16) + Completed = pywbem.Uint16(17) + Power_Mode = pywbem.Uint16(18) + # DMTF_Reserved = .. + # Vendor_Reserved = 0x8000.. + + class kill(object): + class signal(object): + SIGHUP = pywbem.Uint16(1) + SIGKILL = pywbem.Uint16(9) + SIGTERM = pywbem.Uint16(15) + + class RequestStateChange(object): + Completed_with_No_Error = pywbem.Uint32(0) + Not_Supported = pywbem.Uint32(1) + Unknown_or_Unspecified_Error = pywbem.Uint32(2) + Cannot_complete_within_Timeout_Period = pywbem.Uint32(3) + Failed = pywbem.Uint32(4) + Invalid_Parameter = pywbem.Uint32(5) + In_Use = pywbem.Uint32(6) + # DMTF_Reserved = .. + Method_Parameters_Checked___Job_Started = pywbem.Uint32(4096) + Invalid_State_Transition = pywbem.Uint32(4097) + Use_of_Timeout_Parameter_Not_Supported = pywbem.Uint32(4098) + Busy = pywbem.Uint32(4099) + # Method_Reserved = 4100..32767 + # Vendor_Specific = 32768..65535 + class RequestedState(object): + Enabled = pywbem.Uint16(2) + Disabled = pywbem.Uint16(3) + Shut_Down = pywbem.Uint16(4) + Offline = pywbem.Uint16(6) + Test = pywbem.Uint16(7) + Defer = pywbem.Uint16(8) + Quiesce = pywbem.Uint16(9) + Reboot = pywbem.Uint16(10) + Reset = pywbem.Uint16(11) + # DMTF_Reserved = .. + # Vendor_Reserved = 32768..65535 + +## end of class Py_UnixProcessProvider + +def get_providers(env): + py_unixprocess_prov = Py_UnixProcessProvider(env) + return {'Py_UnixProcess': py_unixprocess_prov} + Modified: cmpi-bindings/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-19 20:01:49 UTC (rev 667) +++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-20 05:49:36 UTC (rev 668) @@ -95,7 +95,21 @@ def set_context_value(self, key, value): pass +_classcache = {} +_conn = SFCBUDSConnection() +def _get_class(ns, cname): + key = ns + ':' + cname.lower() + try: + print '***** trying cache' + return _classcache[key] + except KeyError: + print '***** cache miss' + cc = _conn.GetClass(cname, namespace=ns, IncludeQualifiers=True, + IncludeClassOrigin=False, LocalOnly=False) + _classcache[key] = cc + return cc + class CMPIProvider(object): @@ -104,100 +118,54 @@ self.broker = broker self.miname = miname self.env = ProviderEnvironment(self.broker) - #self.proxy = ProviderProxy(self.env, - # '/usr/lib/pycim/'+miname+'.py') + self.proxy = ProviderProxy(self.env, + '/usr/lib/pycim/'+miname+'.py') def enum_instance_names(self, ctx, rslt, objname): print 'provider.py: In enum_instance_names()' -# cmpi.LogMessage(1, "cmpi", "Hi from LogMessage") - print 'namespace: %s, classname: %s' % (objname.namespace(), objname.classname()) - print dir(ctx) - print dir(rslt) - print dir(objname) - print '** objname.key_count()', objname.key_count() - op = cmpi2pywbem_instname(objname) conn = SFCBUDSConnection() - cc = conn.GetClass(op.classname, IncludeQualifiers=True, - LocalOnly=False) + cc = _get_class(op.namespace, op.classname) for i in self.proxy.MI_enumInstanceNames(self.env, op.namespace, cc): cop = pywbem2cmpi_instname(i) rslt.return_objectpath(cop) - ''' - op = cmpi.CMPIObjectPath(objname.namespace()) - op.set_classname('Cmpi_Swig') - cv = cmpi.CMPIValue() - cv.string = cmpi.CMPIString('Hello') - op.add_key('hello', cv, cmpi.CMPI_string) - op.thisown = 0 - rslt.return_objectpath(op) - cv.string = cmpi.CMPIString('World') - op.add_key('hello', cv, cmpi.CMPI_string) - op.thisown = 0 - rslt.return_objectpath(op) - ''' rslt.done() return (0, '') def enum_instances(self, ctx, rslt, objname, plist): print 'provider.py: In enum_instances()' - print 'namespace: %s, classname: %s' % (objname.namespace(), objname.classname()) - print dir(ctx) - print dir(rslt) - print dir(objname) - print 'plist:', plist - test_conversions() + #test_conversions() op = cmpi2pywbem_instname(objname) conn = SFCBUDSConnection() - cc = conn.GetClass(op.classname, IncludeQualifiers=True, - LocalOnly=False) + cc = _get_class(op.namespace, op.classname) for i in self.proxy.MI_enumInstances(self.env, op.namespace, plist, cc, cc): cinst = pywbem2cmpi_inst(i) rslt.return_instance(cinst) - - ''' - op = cmpi.CMPIObjectPath(objname.namespace()) - op.set_classname('Cmpi_Swig') - cv = cmpi.CMPIValue() - cv.string = cmpi.CMPIString('Hello') - op.add_key('hello', cv, cmpi.CMPI_string) - - inst = cmpi.CMPIInstance(op) - inst.set_property('hello', cv, cmpi.CMPI_string) - - inst.thisown = 0 - rslt.return_instance(inst) - cv.string = cmpi.CMPIString('World') - op.add_key('hello', cv, cmpi.CMPI_string) - inst = cmpi.CMPIInstance(op) - inst.set_property('hello', cv, cmpi.CMPI_string) - inst.thisown = 0 - rslt.return_instance(inst) - ''' rslt.done() return (0, '') def get_instance(self, ctx, rslt, objname, plist): - #cop = cmpi2pywbem_instname(objname) - op = cmpi.CMPIObjectPath(objname.namespace()) - op.set_classname('Cmpi_Swig') - cv = cmpi.CMPIValue() - cv.string = cmpi.CMPIString('Hello') - op.add_key('hello', cv, cmpi.CMPI_string) + print 'provider.py: In get_instance()' + op = cmpi2pywbem_instname(objname) + conn = SFCBUDSConnection() + cc = _get_class(op.namespace, op.classname) + try: + pinst = self.proxy.MI_getInstance(self.env, op, plist, cc) + except pywbem.CIMError, arg: + return (arg[0], arg[1]) - inst = cmpi.CMPIInstance(op) - inst.set_property('hello', cv, cmpi.CMPI_string) + cinst = pywbem2cmpi_inst(pinst) + rslt.return_instance(cinst) + rslt.done() + return (0, '') - inst.thisown = 0 - rslt.return_instance(inst) - return (0, None) def create_instance(self, ctx, rslt, objname, newinst): inst = cmpi2pywbem_inst(newinst) @@ -237,9 +205,25 @@ def invoke_method(self, ctx, rslt, objName, method, inargs, outargs): - pass + print '*** in invoke_method' + op = cmpi2pywbem_instname(objName) + cc = _get_class(op.namespace, op.classname) + mm = cc.methods[method] + pinargs = cmpi2pywbem_args(inargs) + try: + ((_type, rv), poutargs) = self.proxy.MI_invokeMethod(self.env, + op, mm, pinargs) + except pywbem.CIMError, args: + return (args[0], args[1]) + pywbem2cmpi_args(poutargs, outargs) + data, _type = pywbem2cmpi_value(rv, _type=_type) + rslt.return_data(data, _pywbem2cmpi_typemap[_type]) + rslt.done + return (0, '') + + def authorize_filter(self, ctx, filter, className, classPath, owner): pass @@ -279,13 +263,33 @@ inst = pywbem.CIMInstance(cop.classname, props, path=cop) return inst +def cmpi2pywbem_args(cargs): + r = {} + for i in xrange(0, cargs.arg_count()): + data, name = cargs.get_arg_at(i) + _type, is_array = cmpi_type2string(data.type) + pval = cmpi2pywbem_data(data, _type, is_array) + r[name] = pval + return r + +def pywbem2cmpi_args(pargs, cargs=None): + if cargs is None: + cargs = cmpi.CMPIArgs() + for name, pval in pargs.items(): + data, _type = pywbem2cmpi_value(pval) + cargs.set(str(name), data, _pywbem2cmpi_typemap[_type]) + return cargs + + def pywbem2cmpi_inst(pinst): cop = pywbem2cmpi_instname(pinst.path) cinst = cmpi.CMPIInstance(cop) for prop in pinst.properties.values(): + if prop.value is None: + # TODO remove this when cmpi.py is fixed. + continue data, _type = pywbem2cmpi_value(prop.value, _type=prop.type) cinst.set_property(str(prop.name), data, _pywbem2cmpi_typemap[_type]) - print '** returning cist', cinst return cinst Deleted: cmpi-bindings/swig/python/pycmpi_provider_tb.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider_tb.py 2008-06-19 20:01:49 UTC (rev 667) +++ cmpi-bindings/swig/python/pycmpi_provider_tb.py 2008-06-20 05:49:36 UTC (rev 668) @@ -1,43 +0,0 @@ -############################################################################## -# Copyright (C) 2008 Novell Inc. All rights reserved. -# Copyright (C) 2008 SUSE Linux Products GmbH. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# - Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# - Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# - Neither the name of Novell Inc. nor of SUSE Linux Products GmbH nor the -# names of its contributors may be used to endorse or promote products -# derived from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL Novell Inc. OR SUSE Linux Products GmbH OR -# THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -############################################################################## - -# Author: Bart Whiteley <bwhiteley suse.de> - -import traceback -import cStringIO - -def traceback2string(_type, value, tb): - iostr = cStringIO.StringIO() - traceback.print_exception(_type, value, tb, None, iostr) - s = iostr.getvalue() - return (s, 'cmpi:' + s.replace('\n', '<br>')) - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-06-19 20:02:01
|
Revision: 667 http://omc.svn.sourceforge.net/omc/?rev=667&view=rev Author: kkaempf Date: 2008-06-19 13:01:49 -0700 (Thu, 19 Jun 2008) Log Message: ----------- provide default constructor for CMPIData Modified Paths: -------------- cmpi-bindings/swig/cmpi_defs.i Modified: cmpi-bindings/swig/cmpi_defs.i =================================================================== --- cmpi-bindings/swig/cmpi_defs.i 2008-06-19 19:27:12 UTC (rev 666) +++ cmpi-bindings/swig/cmpi_defs.i 2008-06-19 20:01:49 UTC (rev 667) @@ -23,9 +23,10 @@ # %extend CMPIData { - CMPIData(const CMPIData *dp) + CMPIData() { - return clone_data(dp); + CMPIData *data = (CMPIData *)calloc(1, sizeof(CMPIData)); + return data; } ~CMPIData() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-06-19 19:27:40
|
Revision: 666 http://omc.svn.sourceforge.net/omc/?rev=666&view=rev Author: bartw Date: 2008-06-19 12:27:12 -0700 (Thu, 19 Jun 2008) Log Message: ----------- implement a local SFCBUDSConnection Modified Paths: -------------- cmpi-bindings/swig/python/pycmpi_provider.py Modified: cmpi-bindings/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-19 15:15:10 UTC (rev 665) +++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-19 19:27:12 UTC (rev 666) @@ -37,6 +37,9 @@ from pywbem.cim_provider import ProviderProxy +def SFCBUDSConnection(): + return pywbem.WBEMConnection('/tmp/sfcbHttpSocket') + class BrokerCIMOMHandle(object): def __init__(self, broker, ns): self.broker = broker @@ -115,7 +118,7 @@ op = cmpi2pywbem_instname(objname) - conn = pywbem.SFCBUDSConnection() + conn = SFCBUDSConnection() cc = conn.GetClass(op.classname, IncludeQualifiers=True, LocalOnly=False) for i in self.proxy.MI_enumInstanceNames(self.env, op.namespace, cc): @@ -150,7 +153,7 @@ test_conversions() op = cmpi2pywbem_instname(objname) - conn = pywbem.SFCBUDSConnection() + conn = SFCBUDSConnection() cc = conn.GetClass(op.classname, IncludeQualifiers=True, LocalOnly=False) for i in self.proxy.MI_enumInstances(self.env, op.namespace, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-06-19 15:15:56
|
Revision: 665 http://omc.svn.sourceforge.net/omc/?rev=665&view=rev Author: kkaempf Date: 2008-06-19 08:15:10 -0700 (Thu, 19 Jun 2008) Log Message: ----------- install pycmpi_provider_tb.py Modified Paths: -------------- cmpi-bindings/swig/python/CMakeLists.txt Modified: cmpi-bindings/swig/python/CMakeLists.txt =================================================================== --- cmpi-bindings/swig/python/CMakeLists.txt 2008-06-19 14:51:41 UTC (rev 664) +++ cmpi-bindings/swig/python/CMakeLists.txt 2008-06-19 15:15:10 UTC (rev 665) @@ -55,3 +55,4 @@ # pycmpi_provider.py: provider implementation # INSTALL(FILES pycmpi_provider.py DESTINATION ${PYTHON_LIB_DIR}/site-packages ) +INSTALL(FILES pycmpi_provider_tb.py DESTINATION ${PYTHON_LIB_DIR}/site-packages ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-06-19 14:52:06
|
Revision: 664 http://omc.svn.sourceforge.net/omc/?rev=664&view=rev Author: bartw Date: 2008-06-19 07:51:41 -0700 (Thu, 19 Jun 2008) Log Message: ----------- added Added Paths: ----------- cmpi-bindings/swig/python/pycmpi_provider_tb.py Added: cmpi-bindings/swig/python/pycmpi_provider_tb.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider_tb.py (rev 0) +++ cmpi-bindings/swig/python/pycmpi_provider_tb.py 2008-06-19 14:51:41 UTC (rev 664) @@ -0,0 +1,43 @@ +############################################################################## +# Copyright (C) 2008 Novell Inc. All rights reserved. +# Copyright (C) 2008 SUSE Linux Products GmbH. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# - Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# +# - Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# - Neither the name of Novell Inc. nor of SUSE Linux Products GmbH nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL Novell Inc. OR SUSE Linux Products GmbH OR +# THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +############################################################################## + +# Author: Bart Whiteley <bwhiteley suse.de> + +import traceback +import cStringIO + +def traceback2string(_type, value, tb): + iostr = cStringIO.StringIO() + traceback.print_exception(_type, value, tb, None, iostr) + s = iostr.getvalue() + return (s, 'cmpi:' + s.replace('\n', '<br>')) + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-06-19 06:17:42
|
Revision: 663 http://omc.svn.sourceforge.net/omc/?rev=663&view=rev Author: bartw Date: 2008-06-18 23:17:24 -0700 (Wed, 18 Jun 2008) Log Message: ----------- got enumInstanceNames to work with existing python providers. having problems with NULL CMPIValues Modified Paths: -------------- cmpi-bindings/src/cmpi_provider.c cmpi-bindings/swig/cmpi_types.i cmpi-bindings/swig/python/pycmpi_provider.py Modified: cmpi-bindings/src/cmpi_provider.c =================================================================== --- cmpi-bindings/src/cmpi_provider.c 2008-06-18 22:44:04 UTC (rev 662) +++ cmpi-bindings/src/cmpi_provider.c 2008-06-19 06:17:24 UTC (rev 663) @@ -77,6 +77,7 @@ static char* _MINAME = NULL; #ifdef SWIGPYTHON PyObject* _PYPROVMOD = NULL; +PyObject* _PYPROVTBMOD = NULL; #endif static char* fmtstr(const char* fmt, ...) @@ -145,12 +146,13 @@ char *tbstr = NULL; + if (PyErr_Occurred()) PyErr_Print(); PyObject *type, *value, *traceback; PyErr_Fetch(&type, &value, &traceback); PyErr_Clear(); PyErr_NormalizeException(&type, &value, &traceback); - PyObject* obstr = PyObject_CallMethod(_PYPROVMOD, "traceback2string", + PyObject* obstr = PyObject_CallMethod(_PYPROVTBMOD, "traceback2string", "(OOO)", type, value ? value : Py_None, traceback ? traceback : Py_None); @@ -298,6 +300,7 @@ #ifdef SWIGPYTHON Py_DecRef(_PYPROVMOD); + Py_DecRef(_PYPROVTBMOD); Py_Finalize(); _SBLIM_TRACE(1,("Cleanup(Python) called")); #endif @@ -782,10 +785,18 @@ Py_SetProgramName("cmpi_swig"); Py_Initialize(); SWIG_init(); - + + _PYPROVTBMOD = PyImport_ImportModule("pycmpi_provider_tb"); + if (_PYPROVTBMOD == NULL) + { + if (PyErr_Occurred()) PyErr_Print(); + _SBLIM_TRACE(1,("Python: _PYPROVTBMOD at %p", _PYPROVTBMOD)); + return -1; + } _PYPROVMOD = PyImport_ImportModule("pycmpi_provider"); if (_PYPROVMOD == NULL) { + _SBLIM_TRACE(1,("Python: _PYPROVMOD at %p", _PYPROVMOD)); PY_CMPI_SETFAIL(get_exc_trace()); return -1; } @@ -811,6 +822,7 @@ } *self = provinst; + _SBLIM_TRACE(1,("PyInitialize() succeeded")); return 0; } Modified: cmpi-bindings/swig/cmpi_types.i =================================================================== --- cmpi-bindings/swig/cmpi_types.i 2008-06-18 22:44:04 UTC (rev 662) +++ cmpi-bindings/swig/cmpi_types.i 2008-06-19 06:17:24 UTC (rev 663) @@ -607,7 +607,6 @@ } /** Gets a Property value defined by its index. * index: Position in the internal Data array. - * name [Output]: Returned property name (suppressed when NULL). */ #if defined (SWIGRUBY) VALUE @@ -709,15 +708,38 @@ return CMGetArg( $self, name, NULL ); } /* Gets a Argument value defined by its index. - * name: [out] argument name. */ - CMPIData get_at( CMPICount index, CMPIString ** name ) { - return CMGetArgAt( $self, index, name, NULL ); +#if defined (SWIGRUBY) + VALUE +#endif +#if defined (SWIGPYTHON) + PyObject* +#endif + get_arg_at(int index) { + CMPIString *s = NULL; + CMPIData data = CMGetArgAt( $self, index, &s, NULL ); + +#if defined (SWIGRUBY) + VALUE rbdata = SWIG_NewPointerObj((void*) clone_data(&data), SWIGTYPE_p__CMPIData, 0); + VALUE rl = rb_ary_new2(2); + return rb_ary_push( rb_ary_push( rl, rbdata ), rb_str_new2(CMGetCharPtr(s) ); +#endif +#if defined (SWIGPYTHON) + #TODO memory leak alert (clone_data) + PyObject* pydata = SWIG_NewPointerObj((void*) clone_data(&data), SWIGTYPE_p__CMPIData, 0); + + PyObject* pl = PyTuple_New(2); + PyTuple_SetItem(pl, 0, pydata); + PyTuple_SetItem(pl, 1, PyString_FromString(CMGetCharPtr(s))); + return pl; +#endif } /* Gets the number of arguments contained in this Args. */ - int size() { + + int arg_count() { return CMGetArgCount($self, NULL); } + } #----------------------------------------------------- Modified: cmpi-bindings/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-18 22:44:04 UTC (rev 662) +++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-19 06:17:24 UTC (rev 663) @@ -35,13 +35,75 @@ import pywbem +from pywbem.cim_provider import ProviderProxy + +class BrokerCIMOMHandle(object): + def __init__(self, broker, ns): + self.broker = broker + self.default_namespace = ns + def EnumerateInstanceNames(self): + pass + def EnumerateInstances(self): + pass + def GetInstance(self): + pass + def Associators(self): + pass + def AssociatorNames(self): + pass + def References(self): + pass + def ReferenceNames(self): + pass + def InvokeMethod(self): + pass + def GetClass(self, *args, **kwargs): + raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED) + def EnumerateClassNames(self, *args, **kwargs): + raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED) + def EnumerateClasses(self, *args, **kwargs): + raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED) + + +class Logger(object): + def __init__(self, broker): + self.broker = broker + def log_debug(self, msg): + print msg + def log_info(self, msg): + pass + def log_error(self, msg): + pass + def log_fatal(self, msg): + pass + + +class ProviderEnvironment(object): + def __init__(self, broker): + self.broker = broker + def get_logger(self): + return Logger(self.broker) + def get_cimom_handle(self): + pass + def get_user_name(self): + pass + def get_context_value(self, key): + pass + def set_context_value(self, key, value): + pass + + class CMPIProvider(object): + def __init__(self, miname, broker): print 'called CMPIProvider(', miname, ',', broker, ')' self.broker = broker self.miname = miname - + self.env = ProviderEnvironment(self.broker) + #self.proxy = ProviderProxy(self.env, + # '/usr/lib/pycim/'+miname+'.py') + def enum_instance_names(self, ctx, rslt, objname): print 'provider.py: In enum_instance_names()' # cmpi.LogMessage(1, "cmpi", "Hi from LogMessage") @@ -49,6 +111,19 @@ print dir(ctx) print dir(rslt) print dir(objname) + print '** objname.key_count()', objname.key_count() + + + op = cmpi2pywbem_instname(objname) + conn = pywbem.SFCBUDSConnection() + cc = conn.GetClass(op.classname, IncludeQualifiers=True, + LocalOnly=False) + for i in self.proxy.MI_enumInstanceNames(self.env, op.namespace, cc): + cop = pywbem2cmpi_instname(i) + rslt.return_objectpath(cop) + + + ''' op = cmpi.CMPIObjectPath(objname.namespace()) op.set_classname('Cmpi_Swig') cv = cmpi.CMPIValue() @@ -60,6 +135,7 @@ op.add_key('hello', cv, cmpi.CMPI_string) op.thisown = 0 rslt.return_objectpath(op) + ''' rslt.done() return (0, '') @@ -71,6 +147,18 @@ print dir(rslt) print dir(objname) print 'plist:', plist + test_conversions() + + op = cmpi2pywbem_instname(objname) + conn = pywbem.SFCBUDSConnection() + cc = conn.GetClass(op.classname, IncludeQualifiers=True, + LocalOnly=False) + for i in self.proxy.MI_enumInstances(self.env, op.namespace, + plist, cc, cc): + cinst = pywbem2cmpi_inst(i) + rslt.return_instance(cinst) + + ''' op = cmpi.CMPIObjectPath(objname.namespace()) op.set_classname('Cmpi_Swig') cv = cmpi.CMPIValue() @@ -88,7 +176,7 @@ inst.set_property('hello', cv, cmpi.CMPI_string) inst.thisown = 0 rslt.return_instance(inst) - test_conversions() + ''' rslt.done() return (0, '') @@ -110,6 +198,7 @@ def create_instance(self, ctx, rslt, objname, newinst): inst = cmpi2pywbem_inst(newinst) + print '** newinst.objectpath()', newinst.objectpath() objname.thisown = 0 rslt.return_objectpath(objname) print inst @@ -192,7 +281,7 @@ cinst = cmpi.CMPIInstance(cop) for prop in pinst.properties.values(): data, _type = pywbem2cmpi_value(prop.value, _type=prop.type) - cinst.set_property(prop.name, data, _pywbem2cmpi_typemap[_type]) + cinst.set_property(str(prop.name), data, _pywbem2cmpi_typemap[_type]) print '** returning cist', cinst return cinst @@ -211,10 +300,10 @@ def pywbem2cmpi_instname(iname): cop = cmpi.CMPIObjectPath(iname.namespace) - cop.set_classname(iname.classname) + cop.set_classname(str(iname.classname)) for name, val in iname.keybindings.items(): data, _type = pywbem2cmpi_value(val) - cop.add_key(name, data, _pywbem2cmpi_typemap[_type]) + cop.add_key(str(name), data, _pywbem2cmpi_typemap[_type]) return cop def pywbem2cmpi_value(pdata, _type=None, cval=None): @@ -362,6 +451,7 @@ return (tp, is_array) +''' def traceback2string(_type, value, tb): import traceback import cStringIO @@ -369,6 +459,7 @@ traceback.print_exception(_type, value, tb, None, iostr) s = iostr.getvalue() return (s, 'cmpi:' + s.replace('\n', '<br>')) + ''' def test_conversions(): @@ -389,9 +480,15 @@ l = ['python','is','great'] cl, _type = pywbem2cmpi_value(l) nl = cmpi2pywbem_value(cl, _type, is_array=True) - print '*** l', l - print '*** nl', nl assert(nl == l) + + l = [pywbem.Real32(3.4), pywbem.Real32(3.14159)] + cl, _type = pywbem2cmpi_value(l) + nl = cmpi2pywbem_value(cl, _type, is_array=True) + assert(_type == 'real32') + for i in xrange(0, len(l)): + assert(abs(l[i] - nl[i]) <= 0.001) + @@ -419,6 +516,12 @@ cinst = pywbem2cmpi_inst(pinst) ninst = cmpi2pywbem_inst(cinst) assert(ninst.classname == pinst.classname) + pinst.properties['n'] = pywbem.CIMProperty('n', None, type='uint32') + cinst = pywbem2cmpi_inst(pinst) + ninst = cmpi2pywbem_inst(cinst) + assert(ninst['n'] is None) + assert(ninst.classname == pinst.classname) + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <np...@us...> - 2008-06-18 22:44:00
|
Revision: 662 http://omc.svn.sourceforge.net/omc/?rev=662&view=rev Author: npaxton Date: 2008-06-18 15:44:04 -0700 (Wed, 18 Jun 2008) Log Message: ----------- Remove a few more build files that shouldn't have beenchecked in Removed Paths: ------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.in cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.in cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.in Deleted: cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.in =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.in 2008-06-18 21:23:05 UTC (rev 661) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.in 2008-06-18 22:44:04 UTC (rev 662) @@ -1,620 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = . -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ - config.guess config.sub depcomp install-sh ltmain.sh missing -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno configure.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -ALLOCA = @ALLOCA@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CP = @CP@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -YACC = @YACC@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -AUTOMAKE_OPTIONS = gnu -SUBDIRS = \ - . \ - src \ - mof - -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive - -.SUFFIXES: -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.h: stamp-h1 - @if test ! -f $@; then \ - rm -f stamp-h1; \ - $(MAKE) stamp-h1; \ - else :; fi - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: $(am__configure_deps) - cd $(top_srcdir) && $(AUTOHEADER) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f config.h stamp-h1 - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile config.h -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr \ - distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ - check-am clean clean-generic clean-libtool clean-recursive \ - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ - dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-generic distclean-hdr distclean-libtool \ - distclean-recursive distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - maintainer-clean-recursive mostlyclean mostlyclean-generic \ - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ - tags tags-recursive uninstall uninstall-am uninstall-info-am - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: Deleted: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.in =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.in 2008-06-18 21:23:05 UTC (rev 661) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.in 2008-06-18 22:44:04 UTC (rev 662) @@ -1,319 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = mof -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALLOCA = @ALLOCA@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CP = @CP@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -YACC = @YACC@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXTRA_DIST = \ - linux-fan-profile.mof - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mof/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu mof/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: Deleted: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.in =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.in 2008-06-18 21:23:05 UTC (rev 661) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.in 2008-06-18 22:44:04 UTC (rev 662) @@ -1,503 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# *********************************************************************** -# MACROS and VARIABLES -# *********************************************************************** - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/Makefile.incl.am -subdir = src -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(providerdir)" -providerLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(provider_LTLIBRARIES) -liblinux_fanprovider_la_DEPENDENCIES = -am_liblinux_fanprovider_la_OBJECTS = Linux_FanProvider.lo -liblinux_fanprovider_la_OBJECTS = \ - $(am_liblinux_fanprovider_la_OBJECTS) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(liblinux_fanprovider_la_SOURCES) -DIST_SOURCES = $(liblinux_fanprovider_la_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALLOCA = @ALLOCA@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CP = @CP@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -YACC = @YACC@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -providerdir = $(libdir)/cmpi -provider_LTLIBRARIES = \ - liblinux_fanprovider.la - - -#lib_LTLIBRARIES = \ -# libomc_xenvmbuilder_common.la -INCLUDES = -I$(top_builddir) - -### -# libomc_xenvmbuilder -### -liblinux_fanprovider_la_SOURCES = \ - Linux_FanProvider.c - -liblinux_fanprovider_la_LDFLAGS = \ - -lpthread \ - -lsblim_cmpiutil \ - -version-info 1 - -liblinux_fanprovider_la_LIBADD = \ - -lkonkret - -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu src/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-providerLTLIBRARIES: $(provider_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(providerdir)" || $(mkdir_p) "$(DESTDIR)$(providerdir)" - @list='$(provider_LTLIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(providerLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(providerdir)/$$f'"; \ - $(LIBTOOL) --mode=install $(providerLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(providerdir)/$$f"; \ - else :; fi; \ - done - -uninstall-providerLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @set -x; list='$(provider_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(providerdir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(providerdir)/$$p"; \ - done - -clean-providerLTLIBRARIES: - -test -z "$(provider_LTLIBRARIES)" || rm -f $(provider_LTLIBRARIES) - @list='$(provider_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -liblinux_fanprovider.la: $(liblinux_fanprovider_la_OBJECTS) $(liblinux_fanprovider_la_DEPENDENCIES) - $(LINK) -rpath $(providerdir) $(liblinux_fanprovider_la_LDFLAGS) $(liblinux_fanprovider_la_OBJECTS) $(liblinux_fanprovider_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Linux_FanProvider.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/.. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(providerdir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-providerLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-providerLTLIBRARIES - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am uninstall-providerLTLIBRARIES - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-providerLTLIBRARIES ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-providerLTLIBRARIES install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-info-am \ - uninstall-providerLTLIBRARIES - - -# *********************************************************************** -# TARGETS -# *********************************************************************** - -### -# libomc_xenvmbuilder_common -### - -#libomc_xenvmbuilder_common_la_SOURCES = \ -# vmbuilder-util.c \ -# vmbuilder-db.c \ -# vmbuilder-db.h - -#libomc_xenvmbuilder_common_la_LDFLAGS = \ -# -lpthread \ -# -lomc_cmpi \ -# -lsqlite3 \ -# -version-info 1 -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <np...@us...> - 2008-06-18 21:23:32
|
Revision: 661 http://omc.svn.sourceforge.net/omc/?rev=661&view=rev Author: npaxton Date: 2008-06-18 14:23:05 -0700 (Wed, 18 Jun 2008) Log Message: ----------- cleanup build files that should not have been checked in Removed Paths: ------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/aclocal.m4 cmpiprofiles/sblim-cmpi-fan_profile/trunk/autom4te.cache/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.guess cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.sub cmpiprofiles/sblim-cmpi-fan_profile/trunk/configure cmpiprofiles/sblim-cmpi-fan_profile/trunk/depcomp cmpiprofiles/sblim-cmpi-fan_profile/trunk/missing cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/ Deleted: cmpiprofiles/sblim-cmpi-fan_profile/trunk/aclocal.m4 =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/aclocal.m4 2008-06-18 21:19:32 UTC (rev 660) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/aclocal.m4 2008-06-18 21:23:05 UTC (rev 661) @@ -1,7227 +0,0 @@ -# generated automatically by aclocal 1.9.6 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- - -# serial 48 AC_PROG_LIBTOOL - - -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) -# ----------------------------------------------------------- -# If this macro is not defined by Autoconf, define it here. -m4_ifdef([AC_PROVIDE_IFELSE], - [], - [m4_define([AC_PROVIDE_IFELSE], - [m4_ifdef([AC_PROVIDE_$1], - [$2], [$3])])]) - - -# AC_PROG_LIBTOOL -# --------------- -AC_DEFUN([AC_PROG_LIBTOOL], -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. - AC_PROVIDE_IFELSE([AC_PROG_CXX], - [AC_LIBTOOL_CXX], - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX - ])]) -dnl And a similar setup for Fortran 77 support - AC_PROVIDE_IFELSE([AC_PROG_F77], - [AC_LIBTOOL_F77], - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 -])]) - -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. - AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [ifdef([AC_PROG_GCJ], - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([A][M_PROG_GCJ], - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([LT_AC_PROG_GCJ], - [define([LT_AC_PROG_GCJ], - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) -])])# AC_PROG_LIBTOOL - - -# _AC_PROG_LIBTOOL -# ---------------- -AC_DEFUN([_AC_PROG_LIBTOOL], -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -# Prevent multiple expansion -define([AC_PROG_LIBTOOL], []) -])# _AC_PROG_LIBTOOL - - -# AC_LIBTOOL_SETUP -# ---------------- -AC_DEFUN([AC_LIBTOOL_SETUP], -[AC_PREREQ(2.50)dnl -AC_REQUIRE([AC_ENABLE_SHARED])dnl -AC_REQUIRE([AC_ENABLE_STATIC])dnl -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_LD])dnl -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl -AC_REQUIRE([AC_PROG_NM])dnl - -AC_REQUIRE([AC_PROG_LN_S])dnl -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! -AC_REQUIRE([AC_OBJEXT])dnl -AC_REQUIRE([AC_EXEEXT])dnl -dnl - -AC_LIBTOOL_SYS_MAX_CMD_LEN -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -AC_LIBTOOL_OBJDIR - -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -_LT_AC_PROG_ECHO_BACKSLASH - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] - -# Same as above, but do not quote variable references. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -AC_CHECK_TOOL(AR, ar, false) -AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CHECK_TOOL(STRIP, strip, :) - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - AC_PATH_MAGIC - fi - ;; -esac - -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -enable_win32_dll=yes, enable_win32_dll=no) - -AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -AC_ARG_WITH([pic], - [AC_HELP_STRING([--with-pic], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [pic_mode="$withval"], - [pic_mode=default]) -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -AC_LIBTOOL_LANG_C_CONFIG -_LT_AC_TAGCONFIG -])# AC_LIBTOOL_SETUP - - -# _LT_AC_SYS_COMPILER -# ------------------- -AC_DEFUN([_LT_AC_SYS_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_AC_SYS_COMPILER - - -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -AC_DEFUN([_LT_CC_BASENAME], -[for cc_temp in $1""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -]) - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -AC_DEFUN([_LT_COMPILER_BOILERPLATE], -[ac_outfile=conftest.$ac_objext -printf "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -AC_DEFUN([_LT_LINKER_BOILERPLATE], -[ac_outfile=conftest.$ac_objext -printf "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_LINKER_BOILERPLATE - - -# _LT_AC_SYS_LIBPATH_AIX -# ---------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } -}'` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } -}'`; fi],[]) -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -])# _LT_AC_SYS_LIBPATH_AIX - - -# _LT_AC_SHELL_INIT(ARG) -# ---------------------- -AC_DEFUN([_LT_AC_SHELL_INIT], -[ifdef([AC_DIVERSION_NOTICE], - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], - [AC_DIVERT_PUSH(NOTICE)]) -$1 -AC_DIVERT_POP -])# _LT_AC_SHELL_INIT - - -# _LT_AC_PROG_ECHO_BACKSLASH -# -------------------------- -# Add some code to the start of the generated configure script which -# will find an echo command which doesn't interpret backslashes. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], -[_LT_AC_SHELL_INIT([ -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` - ;; -esac - -echo=${ECHO-echo} -if test "X[$]1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X[$]1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} -fi - -if test "X[$]1" = X--fallback-echo; then - # used as fallback echo - shift - cat <<EOF -[$]* -EOF - exit 0 -fi - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL [$]0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL [$]0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "[$]0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" -fi - -AC_SUBST(ECHO) -])])# _LT_AC_PROG_ECHO_BACKSLASH - - -# _LT_AC_LOCK -# ----------- -AC_DEFUN([_LT_AC_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; - ]) -esac - -need_locks="$enable_libtool_lock" - -])# _LT_AC_LOCK - - -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED]) -AC_CACHE_CHECK([$1], [$2], - [$2=no - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - printf "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $rm conftest* -]) - -if test x"[$]$2" = xyes; then - ifelse([$5], , :, [$5]) -else - ifelse([$6], , :, [$6]) -fi -])# AC_LIBTOOL_COMPILER_OPTION - - -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ------------------------------------------------------------ -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], -[AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $3" - printf "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" -]) - -if test x"[$]$2" = xyes; then - ifelse([$4], , :, [$4]) -else - ifelse([$5], , :, [$5]) -fi -])# AC_LIBTOOL_LINKER_OPTION - - -# AC_LIBTOOL_SYS_MAX_CMD_LEN -# -------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], -[# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - ;; - esac -]) -if test -n $lt_cv_sys_max_cmd_len ; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -])# AC_LIBTOOL_SYS_MAX_CMD_LEN - - -# _LT_AC_CHECK_DLFCN -# ------------------ -AC_DEFUN([_LT_AC_CHECK_DLFCN], -[AC_CHECK_HEADERS(dlfcn.h)dnl -])# _LT_AC_CHECK_DLFCN - - -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# --------------------------------------------------------------------- -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "$cross_compiling" = yes; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<EOF -[#line __oline__ "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include <dlfcn.h> -#endif - -#include <stdio.h> - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -}] -EOF - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_AC_TRY_DLOPEN_SELF - - -# AC_LIBTOOL_DLOPEN_SELF -# ---------------------- -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen="shl_load"], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen="dlopen"], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) - ]) - ]) - ]) - ]) - ]) - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) - ]) - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -])# AC_LIBTOOL_DLOPEN_SELF - - -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) -# --------------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - printf "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -]) -])# AC_LIBTOOL_PROG_CC_C_O - - -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) -# ----------------------------------------- -# Check to see if we can do hard links to lock some files if needed -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], -[AC_REQUIRE([_LT_AC_LOCK])dnl - -hard_links="nottested" -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test "$hard_links" = no; then - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS - - -# AC_LIBTOOL_OBJDIR -# ----------------- -AC_DEFUN([AC_LIBTOOL_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -])# AC_LIBTOOL_OBJDIR - - -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) -# ---------------------------------------------- -# Check hardcoding attributes. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_AC_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then - # Linking always hardcodes the temporary library directory. - _LT_AC_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) - -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH - - -# AC_LIBTOOL_SYS_LIB_STRIP -# ------------------------ -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], -[striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) -fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -])# AC_LIBTOOL_SYS_LIB_STRIP - - -# AC_LIBTOOL_SYS_DYNAMIC_LINKER -# ----------------------------- -# PORTME Fill in your ld.so characteristics -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], -[AC_MSG_CHECKING([dynamic linker characteristics]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -if test "$GCC" = yes; then - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib<name>.so - # instead of lib<name>.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. - if test "$GCC" = yes; then - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` - else - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' - fi - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -kfreebsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='GNU ld.so' - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[123]]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - freebsd*) # from 4.6 on - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix3*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -knetbsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='GNU ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[[89]] | openbsd2.[[89]].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER - - -# _LT_AC_TAGCONFIG -# ---------------- -AC_DEFUN([_LT_AC_TAGCONFIG], -[AC_ARG_WITH([tags], - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], - [include additional configurations @<:@automatic@:>@])], - [tagnames="$withval"]) - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - AC_MSG_WARN([output file `$ofile' does not exist]) - fi... [truncated message content] |
From: <np...@us...> - 2008-06-18 21:20:21
|
Revision: 660 http://omc.svn.sourceforge.net/omc/?rev=660&view=rev Author: npaxton Date: 2008-06-18 14:19:32 -0700 (Wed, 18 Jun 2008) Log Message: ----------- initial checkin Added Paths: ----------- cmpiprofiles/ cmpiprofiles/sblim-cmpi-fan_profile/ cmpiprofiles/sblim-cmpi-fan_profile/branches/ cmpiprofiles/sblim-cmpi-fan_profile/tags/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/AUTHORS cmpiprofiles/sblim-cmpi-fan_profile/trunk/COPYING cmpiprofiles/sblim-cmpi-fan_profile/trunk/ChangeLog cmpiprofiles/sblim-cmpi-fan_profile/trunk/INSTALL cmpiprofiles/sblim-cmpi-fan_profile/trunk/LICENSE cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.am cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.in cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.incl.am cmpiprofiles/sblim-cmpi-fan_profile/trunk/NEWS cmpiprofiles/sblim-cmpi-fan_profile/trunk/README cmpiprofiles/sblim-cmpi-fan_profile/trunk/aclocal.m4 cmpiprofiles/sblim-cmpi-fan_profile/trunk/autom4te.cache/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/autom4te.cache/output.0 cmpiprofiles/sblim-cmpi-fan_profile/trunk/autom4te.cache/output.1 cmpiprofiles/sblim-cmpi-fan_profile/trunk/autom4te.cache/requests cmpiprofiles/sblim-cmpi-fan_profile/trunk/autom4te.cache/traces.0 cmpiprofiles/sblim-cmpi-fan_profile/trunk/autom4te.cache/traces.1 cmpiprofiles/sblim-cmpi-fan_profile/trunk/bootstrap.sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.guess cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.h.in cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.sub cmpiprofiles/sblim-cmpi-fan_profile/trunk/configure cmpiprofiles/sblim-cmpi-fan_profile/trunk/configure.ac cmpiprofiles/sblim-cmpi-fan_profile/trunk/depcomp cmpiprofiles/sblim-cmpi-fan_profile/trunk/install-sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/ltmain.sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/missing cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.am cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.in cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/Makefile cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/config.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/config.log cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/config.status cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/libtool cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/mof/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/mof/Makefile cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/.deps/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/.deps/Linux_FanProvider.Plo cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/.deps/fan.Plo cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/.libs/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/.libs/liblinux_fanprovider.a cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/.libs/liblinux_fanprovider.lai cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/.libs/liblinux_fanprovider.so cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/.libs/liblinux_fanprovider.so.1 cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/.libs/liblinux_fanprovider.so.1.0.0 cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/src/Makefile cmpiprofiles/sblim-cmpi-fan_profile/trunk/mybuild/stamp-h1 cmpiprofiles/sblim-cmpi-fan_profile/trunk/sblim-cmpi-fan_profile.changes cmpiprofiles/sblim-cmpi-fan_profile/trunk/sblim-cmpi-fan_profile.spec cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ConcreteJob.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Linux_Fan.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Linux_FanProvider.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.in Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/AUTHORS =================================================================== Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/COPYING =================================================================== Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/ChangeLog =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/ChangeLog (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/ChangeLog 2008-06-18 21:19:32 UTC (rev 660) @@ -0,0 +1 @@ +Initial. Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/INSTALL =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/INSTALL (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/INSTALL 2008-06-18 21:19:32 UTC (rev 660) @@ -0,0 +1,229 @@ +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software +Foundation, Inc. + + This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. + +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. (Caching is +disabled by default to prevent problems with accidental use of stale +cache files.) + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You only need +`configure.ac' if you want to change it or regenerate `configure' using +a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not support the `VPATH' +variable, you have to compile the package for one architecture at a +time in the source code directory. After you have installed the +package for one architecture, use `make distclean' before reconfiguring +for another architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=PATH' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the `--target=TYPE' option to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +will cause the specified gcc to be used as the C compiler (unless it is +overridden in the site shell script). + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of the options to `configure', and exit. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/LICENSE =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/LICENSE (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/LICENSE 2008-06-18 21:19:32 UTC (rev 660) @@ -0,0 +1,19 @@ +SBLIM work within the OMC project is primarily constrained by EPL License. + +Please pay attention to the license for each file. + + +Notice for Projects/Files Released Under the EPL License + +/****************************************************************************** +* Copyright (c) [YEARS], Novell, Inc. All rights reserved. +* +* This file is provided under the terms of the Eclipse Public License v1.0 +* ("Agreement"). Any use, reproduction or distribution of this file +* constitutes recipient's acceptance of the agreement. +* +* You can obtain a current copy of the Eclipse Public License from +* http://www.opensource.org/licenses/eclipse-1.0.php +* +******************************************************************************/ + Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.am (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.am 2008-06-18 21:19:32 UTC (rev 660) @@ -0,0 +1,10 @@ +## Process this file with automake to produce Makefile.in + +AUTOMAKE_OPTIONS = gnu + +SUBDIRS = \ + . \ + src \ + mof + + Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.in =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.in (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.in 2008-06-18 21:19:32 UTC (rev 660) @@ -0,0 +1,620 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = . +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ + config.guess config.sub depcomp install-sh ltmain.sh missing +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno configure.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-exec-recursive install-info-recursive \ + install-recursive installcheck-recursive installdirs-recursive \ + pdf-recursive ps-recursive uninstall-info-recursive \ + uninstall-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CP = @CP@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MV = @MV@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +RM = @RM@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +YACC = @YACC@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +AUTOMAKE_OPTIONS = gnu +SUBDIRS = \ + . \ + src \ + mof + +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ + cd $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: $(am__configure_deps) + cd $(top_srcdir) && $(AUTOHEADER) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + mkdir $(distdir) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(mkdir_p) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + distdir) \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && cd $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' +distuninstallcheck: + @cd $(distuninstallcheck_dir) \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile config.h +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: + +install-exec-am: + +install-info: install-info-recursive + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-info-am + +uninstall-info: uninstall-info-recursive + +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ + check-am clean clean-generic clean-libtool clean-recursive \ + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ + dist-shar dist-tarZ dist-zip distcheck distclean \ + distclean-generic distclean-hdr distclean-libtool \ + distclean-recursive distclean-tags distcleancheck distdir \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + maintainer-clean-recursive mostlyclean mostlyclean-generic \ + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ + tags tags-recursive uninstall uninstall-am uninstall-info-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.incl.am =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.incl.am (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/Makefile.incl.am 2008-06-18 21:19:32 UTC (rev 660) @@ -0,0 +1,10 @@ +# *********************************************************************** +# MACROS and VARIABLES +# *********************************************************************** + +providerdir = $(libdir)/cmpi + +# *********************************************************************** +# TARGETS +# *********************************************************************** + Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/NEWS =================================================================== Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/README =================================================================== Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/aclocal.m4 =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/aclocal.m4 (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/aclocal.m4 2008-06-18 21:19:32 UTC (rev 660) @@ -0,0 +1,7227 @@ +# generated automatically by aclocal 1.9.6 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- + +# serial 48 AC_PROG_LIBTOOL + + +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) +# ----------------------------------------------------------- +# If this macro is not defined by Autoconf, define it here. +m4_ifdef([AC_PROVIDE_IFELSE], + [], + [m4_define([AC_PROVIDE_IFELSE], + [m4_ifdef([AC_PROVIDE_$1], + [$2], [$3])])]) + + +# AC_PROG_LIBTOOL +# --------------- +AC_DEFUN([AC_PROG_LIBTOOL], +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. + AC_PROVIDE_IFELSE([AC_PROG_CXX], + [AC_LIBTOOL_CXX], + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX + ])]) +dnl And a similar setup for Fortran 77 support + AC_PROVIDE_IFELSE([AC_PROG_F77], + [AC_LIBTOOL_F77], + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 +])]) + +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. + AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [ifdef([AC_PROG_GCJ], + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([A][M_PROG_GCJ], + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([LT_AC_PROG_GCJ], + [define([LT_AC_PROG_GCJ], + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) +])])# AC_PROG_LIBTOOL + + +# _AC_PROG_LIBTOOL +# ---------------- +AC_DEFUN([_AC_PROG_LIBTOOL], +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +# Prevent multiple expansion +define([AC_PROG_LIBTOOL], []) +])# _AC_PROG_LIBTOOL + + +# AC_LIBTOOL_SETUP +# ---------------- +AC_DEFUN([AC_LIBTOOL_SETUP], +[AC_PREREQ(2.50)dnl +AC_REQUIRE([AC_ENABLE_SHARED])dnl +AC_REQUIRE([AC_ENABLE_STATIC])dnl +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl +AC_REQUIRE([AC_PROG_NM])dnl + +AC_REQUIRE([AC_PROG_LN_S])dnl +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +AC_REQUIRE([AC_OBJEXT])dnl +AC_REQUIRE([AC_EXEEXT])dnl +dnl + +AC_LIBTOOL_SYS_MAX_CMD_LEN +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +AC_LIBTOOL_OBJDIR + +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +_LT_AC_PROG_ECHO_BACKSLASH + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] + +# Same as above, but do not quote variable references. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +AC_CHECK_TOOL(AR, ar, false) +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + AC_PATH_MAGIC + fi + ;; +esac + +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +enable_win32_dll=yes, enable_win32_dll=no) + +AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +AC_ARG_WITH([pic], + [AC_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +AC_LIBTOOL_LANG_C_CONFIG +_LT_AC_TAGCONFIG +])# AC_LIBTOOL_SETUP + + +# _LT_AC_SYS_COMPILER +# ------------------- +AC_DEFUN([_LT_AC_SYS_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_AC_SYS_COMPILER + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +AC_DEFUN([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +]) + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +AC_DEFUN([_LT_COMPILER_BOILERPLATE], +[ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +AC_DEFUN([_LT_LINKER_BOILERPLATE], +[ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* +])# _LT_LINKER_BOILERPLATE + + +# _LT_AC_SYS_LIBPATH_AIX +# ---------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi],[]) +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +])# _LT_AC_SYS_LIBPATH_AIX + + +# _LT_AC_SHELL_INIT(ARG) +# ---------------------- +AC_DEFUN([_LT_AC_SHELL_INIT], +[ifdef([AC_DIVERSION_NOTICE], + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +$1 +AC_DIVERT_POP +])# _LT_AC_SHELL_INIT + + +# _LT_AC_PROG_ECHO_BACKSLASH +# -------------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], +[_LT_AC_SHELL_INIT([ +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +echo=${ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat <<EOF +[$]* +EOF + exit 0 +fi + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(ECHO) +])])# _LT_AC_PROG_ECHO_BACKSLASH + + +# _LT_AC_LOCK +# ----------- +AC_DEFUN([_LT_AC_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) LD="${LD-ld} -64" ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; + ]) +esac + +need_locks="$enable_libtool_lock" + +])# _LT_AC_LOCK + + +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED]) +AC_CACHE_CHECK([$1], [$2], + [$2=no + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $rm conftest* +]) + +if test x"[$]$2" = xyes; then + ifelse([$5], , :, [$5]) +else + ifelse([$6], , :, [$6]) +fi +])# AC_LIBTOOL_COMPILER_OPTION + + +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ------------------------------------------------------------ +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], +[AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + printf "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $rm conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + ifelse([$4], , :, [$4]) +else + ifelse([$5], , :, [$5]) +fi +])# AC_LIBTOOL_LINKER_OPTION + + +# AC_LIBTOOL_SYS_MAX_CMD_LEN +# -------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], +[# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_c... [truncated message content] |
From: <kk...@us...> - 2008-06-18 19:29:57
|
Revision: 659 http://omc.svn.sourceforge.net/omc/?rev=659&view=rev Author: kkaempf Date: 2008-06-18 12:29:28 -0700 (Wed, 18 Jun 2008) Log Message: ----------- fix global function decl, needs a C and a Swig part Modified Paths: -------------- cmpi-bindings/swig/CMakeLists.txt cmpi-bindings/swig/cmpi.i cmpi-bindings/swig/python/pycmpi_provider.py Modified: cmpi-bindings/swig/CMakeLists.txt =================================================================== --- cmpi-bindings/swig/CMakeLists.txt 2008-06-18 19:10:29 UTC (rev 658) +++ cmpi-bindings/swig/CMakeLists.txt 2008-06-18 19:29:28 UTC (rev 659) @@ -4,7 +4,7 @@ FIND_PACKAGE(Ruby) IF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH) -# MESSAGE(STATUS "Building Ruby...") + MESSAGE(STATUS "Building Ruby...") # ADD_SUBDIRECTORY(ruby) ENDIF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH) Modified: cmpi-bindings/swig/cmpi.i =================================================================== --- cmpi-bindings/swig/cmpi.i 2008-06-18 19:10:29 UTC (rev 658) +++ cmpi-bindings/swig/cmpi.i 2008-06-18 19:29:28 UTC (rev 659) @@ -29,6 +29,11 @@ #include "../src/cmpi_provider.c" +static void LogMessage(int severity, const char *id, const char *text) +{ + CMLogMessage(_BROKER, severity, id, text, NULL); +} + %} # Definitions @@ -39,7 +44,4 @@ # _BROKER callbacks -void LogMessage(int severity, const char *id, const char *text) -{ - CMLogMessage(_BROKER, severity, id, text, NULL); -} +void LogMessage(int severity, const char *id, const char *text); Modified: cmpi-bindings/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-18 19:10:29 UTC (rev 658) +++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-06-18 19:29:28 UTC (rev 659) @@ -41,9 +41,10 @@ print 'called CMPIProvider(', miname, ',', broker, ')' self.broker = broker self.miname = miname - + def enum_instance_names(self, ctx, rslt, objname): print 'provider.py: In enum_instance_names()' +# cmpi.LogMessage(1, "cmpi", "Hi from LogMessage") print 'namespace: %s, classname: %s' % (objname.namespace(), objname.classname()) print dir(ctx) print dir(rslt) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-06-18 19:11:51
|
Revision: 658 http://omc.svn.sourceforge.net/omc/?rev=658&view=rev Author: kkaempf Date: 2008-06-18 12:10:29 -0700 (Wed, 18 Jun 2008) Log Message: ----------- define 'LogMessage' Modified Paths: -------------- cmpi-bindings/swig/cmpi.i Modified: cmpi-bindings/swig/cmpi.i =================================================================== --- cmpi-bindings/swig/cmpi.i 2008-06-18 19:07:56 UTC (rev 657) +++ cmpi-bindings/swig/cmpi.i 2008-06-18 19:10:29 UTC (rev 658) @@ -36,3 +36,10 @@ # Data types %include "cmpi_types.i" + +# _BROKER callbacks + +void LogMessage(int severity, const char *id, const char *text) +{ + CMLogMessage(_BROKER, severity, id, text, NULL); +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |